Sending Email from a PHP Script

April 30th, 2012 by admin
0

All it takes is the right configuration (to send mail using a local or a remote server) and one function:

  • mail().

Send Email from a PHP Script Example

The first argument to this function is the recipient, the second specifies the message’s subject and the third one should contain the body. So to send a simple sample message, we could use:

<?php

$to = ““;

$subject = “Hi!”;

$body = “Hi,\n\nHow are you?”;

if (mail($to, $subject, $body)) {

echo(“<p>Message successfully sent!</p>”);

} else {

echo(“<p>Message delivery failed…</p>”);

}

?>

 

Post to Twitter Tweet This Post

  • Share/Bookmark
Posted in Uncategorized

Displaying a piece of code in browser using HTML 5

April 29th, 2012 by admin
1

HTML 5 <code> Tag

The HTML <code> tag is used for indicating a piece of code. The code tag surrounds the code being marked up.

The code being marked up could represent an XML element name, a filename, a computer program, or any other string that a computer would recognize.

Browsers often display text surrounded by <code> tags in a monospaced font (also called a fixed-width or non-proportional font) such as Courier (unless it has been styled otherwise using CSS).

Multiple lines of code can be marked up by surrounding the <code> tags with <pre> tags.

Example

To display the code on browser, type the following:

<code>var faq = new Array(3)</code>

The out put of the code will display like this:

var faq = new Array(3)

Post to Twitter Tweet This Post

  • Share/Bookmark
Posted in Computer Programming, Tutorial, User Interface Egnineering, Web Programming

Cache Manifest – HTML5 to ensure that web app caches for offline browsing

April 25th, 2012 by admin
0

1. Add this in index.html html tag:
<html manifest=”cache.manifest”

2. create a file:
cache.manifest

3. Add files with relative paths being used for this project in cache.manifest file:

CACHE MANIFEST
# Explicitly cached ‘master entries’.

CACHE:
favicon.ico
index.html

images/img1.jpg

script/script1.js

styles/style1.css

NETWORK:

ifYouHaveServerFile.php

 

For Details:

http://diveintohtml5.info/offline.html

Post to Twitter Tweet This Post

  • Share/Bookmark
Posted in Uncategorized

Top 10 SEO tips for your website

May 31st, 2011 by admin
0

Web masters and website owners can now enjoy top 10 SEO tips. Through hundreds of techniques you can definitely achieve a higher rank in the search results, but these top ten tips are most valuable and timeless. After years of practical applications with hundreds of client websites, these top ten tips were created.

Here are the top ten SEO tips

  • Select the best keyword- You need to invest on some resources in finding the best keywords, those that turn your searches into leads or purchases. Paying for the best end design and sponsored ads is the best place to start on with. Several SEO tools and SEO software’s are available for you to find the best keywords. Most of them are offered with search engines themselves.
  • Find out what your competitors are doing-Fantastic edge will be given if you know how many incoming links your competitors have. Following an important linking criteria should be included in analysis of your competitors
    1. Competitor rank can be achieved in search engines.
    2. Incoming links that has quality as well as quantity.
    3. What are the keywords they have used in the titles of their linking page and so on.
  • See to that every sharable and linkable content is written.
  • See to that Meta tags and HTML titles are different in each and every page of your websites. To reach an accepted conclusion these two pieces of codes are experimented by the seo experts.
  • Make sure you optimize your headings and sub headings since headings play a vital role in organizing information’s so see to that you are included with one H1 tag when you’re assembling your page.
  • For telling the search engines, using of title attribute is direct method.
  • File nomenclatures must be optimized- You need to save your images, web pages and media wherever possible by using the keywords in the file names.
  • Say the search engines on what to index
  • Make sure you feed XML site maps and search engines statics. Every page linked to the site map on the website helps the web crawlers to easily find the content.
  • See to that you use validators and checklists.

From: http://www.digimantra.com/seo-2/top-10-seo-tips-website/

Post to Twitter Tweet This Post

  • Share/Bookmark
Posted in Uncategorized

27sep10 Running MajicJack first time No Data Error Fix:

September 27th, 2010 by admin
50

1. Search folder:

mjusbsp

Delete content of every folder within this folder except folder ug00000

2.  Double click install in ug00000 folder or run following command from Start > Run >

C:\Documents and Settings\lenouser\Application Data\mjusbsp\ug00000\install

It will install majic jack make sure it’s connected via usb and no majic jack process is running in ctrl+alt+del

September 27, 2010

===============================

MajicJack on iPhone:

http://blog.javachap.com/index.php/how-to-make-voip-calls-on-iphone-using-magicjack-connection-and-siphon/

Post to Twitter Tweet This Post

  • Share/Bookmark
Posted in Uncategorized

PhoneGap – Great Framework!

August 4th, 2010 by admin
0

PhoneGap is an open source development framework for building cross-platform mobile apps. Build apps in HTML and JavaScript and still take advantage of core features in iPhone/iTouch, iPad, Google Android, Palm, Symbian and Blackberry SDKs.

http://www.phonegap.com/

Post to Twitter Tweet This Post

  • Share/Bookmark
Posted in Uncategorized

Google Voice – Dialing free calls or receiving on iPodTouch

June 3rd, 2010 by admin
27

This is the only completely free method of both calling and receiving calls on your Ipod Touch that I’ve found. And I’ve done lots and lots of looking.

Although Gizmo5 can be used as call-out, the free version only works for 3 minutes.  This restriction can be bypassed however, by the following method:

1. Sign up/ possess a GV account.

2. Jailbreak Ipod (warranty is fine, all you have to do is restore it. research it. it’s completely safe)

3. Download GV Mobile App through Cydia

4. Download Truphone for your Ipod Touch

5. Sign up for a free Gizmo5 account.

6. Once you sign up for the gizmo account, put in your truphone account address where gizmo has an option for incoming call forwarding ( I think)

7. Add a phone through your GV Mobile application on the ipod. Enter your Gizmo number into this area.

Now you can make calls from your ipod (provided you have a microphone, I would suggest an inline adapter, you plug your headphones in. amazon for $5)

A.To call, you must open up the Truphone Application, and then Hold the Home button. With your jailbroken Ipod, this will put the application in the background.

B. Then, open up the GV Mobile application, and enter Whatever number you would like to dial.

C. Soon you will hear a ringing (with your headphones in), this is your truphone ringing. Hit the home button and accept the call. The call will then be completed to the phone number you dialed.

If you want to receive calls on your ipod, have people call your google voice, which will forward to gizmo, which then forwards to truphone, which you must be running in the background.

I know this is a very convoluted process, but any process that isn’t convoluted costs money. It will take some time, but I’m sure you will enjoy all of your free calling.

Note: When you place a call in GV, your Google Voice calls Gizmo, which then forwards to Truphone, which you must have running in the background. This sounds complicated, but it really only takes about 10 more seconds to set up the call than just dialing from your cellphone.

When your GV number receives a call, it will forward to Gizmo, which forwards to Truphone, which you also must have running in the background if you want to receive calls.

If your area has ubiquitous WiFi service, like my college campus, you can call/receive calls for free all the time.

If you have any questions that can’t be answered by reading the above carefully, my email is nrhine1@gmail


=======================================================

OR

Can Google Voice ring my iPod Touch with iPhone 3.0 software?  I know push notifications are in the works, but would this ring my iPod?  I want to use my iPod Touch as a phone since I live on a college campus with ubiquotous wifi, and I don’t want to pay for the data plan that an iPhone requires.  Do you see any possible solutions besides jailbreaking and going to T-Mobile?

YES, it is available now, and it is fairly easy to do.

1) Buy a microphone: https://secure.easyanswer.net/truphone/

2) Create a TruPhone account and install the software: http://www.truphone.com/ipod/

3) Create a Gizmo5 account: http://gizmo5.com/pc/

4) Sign into your Gizmo5 account

4a) Note your Gizmo5 phone number

4b) Configure Gizmo5 to forward all calls to SIP using “YourTruPhoneUsername@truphone.com” as the address

5) Sign into your GoogleVoice account

5a) Create a new phone called Gizmo5. (Settings \ Phones)

5b) Enter your Gizmo5 number like this example: +17475551212

5c) Under Phone Type choose Gizmo5

You can now recieve calls from GoogleVoice

You can make Google Voice calls using mobile web page: www.google.com/voice/m

You can dial directly, like a phone, with GVDialer:http://www.gvdialer.com/

Because of the need for a wired headset/microphone, I think I would rather buy a used cellphone (iPhone!) that will work with TruPhone and would allow a bluetooth headset.

For detail:

http://www.google.com/support/forum/p/voice/thread?tid=22622a539146aeed&hl=en

Post to Twitter Tweet This Post

  • Share/Bookmark
Posted in Uncategorized

Installing 500GB Hitachi 7200 RPM 2.5″ on 1.83GHz Macbook

May 15th, 2010 by admin
21

Installing 500GB Hitachi 7200 RPM 2.5″ on 1.83GHz Macbook

Macbook has Core 2 Duo, 2GB, 60GB hard drive using Leopard.

Someone needed it to get upgraded:

1. bought 500GB 7200rpm Hitachi 2.5″ delivered $85 from NewEgg.com

2. removed battery and 3 screws from the tin around the battery space

3. pulled white plastic on left to pull hard drive out

4. bought a star (6 corners) screw driver very small (8-1) to remove screws around hard drive frame

5. after putting same way new hard drive closing everything turned on and placed Leopard Snow 10.6 disc

6. Follow steps, It won’t detect hard drive, go to utilities choose Disk Utility

7. select hard drive from top to 2nd icon and click on partition tab

8. select partition 1 from drop down menu and ensure in next option Mac Partition (Extended Journal)

9. click Apply and close this utility

10. you will see it has now the hard drive to choose for installation

Post to Twitter Tweet This Post

  • Share/Bookmark
Posted in Uncategorized

JQuery to remove any div with id on any web page

March 30th, 2010 by admin
24

JQuery to remove any div with id on any web page

Usually you need this kind of situation when you are using any framework or templates where header is in different file but being used as common and you need not to show anything specific from that header only on this page, where you can add this:

http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js

<script type=”text/javascript”>
$(“#adTag1″).remove();
</script>

<script type=”text/javascript”>$(“#adTag1″).remove();</script>

YOU CAN ALSO USE ANY OF THESE:

To remove the element with id equal to removeme only if it is empty:

$(“#removeme:empty”).remove();

To remove all empty <div>s:

$(“div:empty”).remove();

EDIT: If it’s not empty, but has whitespace:

if($.trim($(“#removeme”).text()) == “”) {

$(“#removeme”).remove();

}

Post to Twitter Tweet This Post

  • Share/Bookmark
Posted in Uncategorized

IE issue when using WordPress 2.7 (IE 6, 7, 8) troubleshooting

March 9th, 2010 by admin
66
IE issue when using WordPress 2.7 (IE 6, 7, 8)

I was running this live blog with thousands of visitors for a gaming site, the issue I noticed was that none of IE version was loading sidebar and footer when tried to visit this blog. I had rolled back all my svn changes. When I run that blog on local with empty db on local it doesn’t produce issue. When I tried using live db downloading on local I could produce the issue. Now I tried removing contents of elements as well as indented elements and made sure every tag has closing tag but did not work. I also tried Tidy an Add-on for Firefox that currently only supports Windows platform. My frustration was increasing finally I decided to go out and take an hour walk despite it was very windy and cold that my eyes were tearing and then I got back. I thought may be it’s number of posts which are so many if I reduce them and test how it reacts and finally it worked. I logged in to blog admin, clicked to Settings, Reading and changed 10 to 5 posts by the label “Blog pages show at most”. Thought people out there should not face 2 days on this type of issue and use this post to save time.

Post to Twitter Tweet This Post

  • Share/Bookmark
Posted in Uncategorized