Archive for the ‘Uncategorized’ Category

PhoneGap – Great Framework!

Wednesday, August 4th, 2010

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

Google Voice – Dialing free calls or receiving on iPodTouch

Thursday, June 3rd, 2010

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

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

Saturday, May 15th, 2010

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

JQuery to remove any div with id on any web page

Tuesday, March 30th, 2010

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

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

Tuesday, March 9th, 2010
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

Wordpress Highlight comments by multiple Authors.

Monday, March 8th, 2010

<![CDATA

IN Comments.php ADD FOLLOWING RIGHT BEFORE FIRST <ol element that contains comment_author_link():

<?php

$users = get_users_of_blog();

foreach( $users as $user ) {

$role = array_pop( array_keys( unserialize($user->meta_value) ) ); // yeah, I know, looks awkward :)

$user_id = $user->user_id;

if ( $role != 'subscriber' ) // collect id of anyone whose role is greater than 'subscriber'

$roles[ $user_id ] = $role;

}

?>

<style>

#commentlist li { border:2px solid white; } /* not logged or subscriber */

#commentlist li.administrator { border:2px solid red } /* blog admin */

#commentlist li.author { border:2px solid blue } /* author */

#commentlist li.editor { border:2px solid yellow } /* editor */

</style>

NOW EDIT THE FIRST <ol ELEMENT WHICH SHOULD LOOK SIMILAR TO:

<ol id=”commentlist”>

<?php foreach ($comments as $comment) : ?>

<li>

<p>By <?php comment_author_link() ?> – <?php comment_date() ?></p>

<?php comment_text() ?>

</li>

<?php endforeach; ?>

</ol>

AFTER ADDING FOLLOWING:

<?php // The extra stuff to get commenter’s role

$user_id = $comment->user_id;

$role = ( isset( $roles[$user_id] ) ? $roles[$user_id] : ” );

?>

class=”<?php echo $role; ?>”

SHOULD LOOK LIKE THIS:

<ol id=”commentlist”>

<?php foreach ($comments as $comment) : ?>

<?php // The extra stuff to get commenter’s role

$user_id = $comment->user_id;

$role = ( isset( $roles[$user_id] ) ? $roles[$user_id] : ” );

?>

<li>

<p>By <?php comment_author_link() ?> – <?php comment_date() ?></p>

<?php comment_text() ?>

</li>

<?php endforeach; ?>

</ol>

CREATE AUTHOR AND SUSBCRIBER USERS IN WORDPRESS ADMIN, WRITE DUMMY COMMENTS AND TEST THAT.

]]>

Post to Twitter Tweet This Post

  • Share/Bookmark

Unix or Mac OS X Leopard Terminal commands and definitions

Tuesday, February 9th, 2010

1)

To point PEAR to any directory which has correct db2.prop (or info etc):

a.)

First cd folder_that_has_PEAR

b.)

ln -s /Applications/XAMPP/xamppfiles/lib/php/pear PEAR

2.

To see full path of current folder in Terminal:

pwd

3.

To search:

find . -name “db.php”

find . -name “DB.php”

find . -name “*.php”

Create Directory:

sudo mkdir php

Post to Twitter Tweet This Post

  • Share/Bookmark

to submit your web site for SEO to all search engine

Tuesday, January 19th, 2010

to submit your web site for SEO to all search engine

http://www.submitexpress.com/submit.html

The main engines we submit to:

Google
Whatuseek
Wisenut
ExactSeek
Scrubtheweb
Jayde





In addition your site will be listed in the below Search Engines
:

AOL Search
HotBot
Search.com
Metacrawler
Dogpile
Mamma
C4
Canada.com
ixquick
Infogrid
WebInfoSearch
Fast Search (AllTheWeb.com)
Query Server
800go
Debriefing
Highway 61
37.com
OneSeek
MetaSpider
Vivisimo
PlanetSearch
surfwax
qbSearch
ProFusion
Proteus
Go 2 Net
MegaGo.com
WebFile
myGO
Megacrawler
Search Climbers

Post to Twitter Tweet This Post

  • Share/Bookmark

Vanishing a div using JavaScript timer and CSS display none

Monday, January 11th, 2010

Vanishing a div using JavaScript timer and CSS display none

<html>
<head>
<script type=”text/javascript”>
function timedMsg() {
var t=setTimeout(“document.getElementById(‘vanish’).style.display=’none’”, 5000);
}
window.onload=timedMsg;
</script>
</head>
<body>
<div id=”vanish” style=”position:absolute;left:420px;top:750px;”>Game loads after trailer</div>
</body>
</html>

<html> <head> <script type=”text/javascript”> function timedMsg() { var t=setTimeout(“document.getElementById(‘vanish’).style.display=’none’”, 5000); } window.onload=timedMsg; </script> </head> <body> <div id=”vanish” style=”position:absolute;left:420px;top:750px;”>Game loads after trailer</div> </body></html>

Post to Twitter Tweet This Post

  • Share/Bookmark

Converting youtube video into mp3 – how to do it

Friday, January 1st, 2010

1. Download and install youtube to mp3 software free:

http://avs4you.com/AVS-Video-Converter.aspx?type=GoogleAdWordsSearch&gclid=CPXn6s-BhJ8CFQoiagodSh8mmQ

2. Go to your favorite youtube video and copy URL from address bar

3. Run AVS software and paste in the area where it says paste here and remember the path where it’ll output mp3

OPTIONAL THINGS TO DO:

4. Now you can either copy from that folder to your mp3 player or open those files into itune to transfer to your iphone or ipod

5. if you want to rename right click (in pc, mac user ctrl+click) in itune onto a file and select get info to edit file related info i.e. album, artist, url, etc

6. to add another file to this album (group of mp3s) simply open any file in itune by right clicking and open in itune from folder (and rename to same album and artist) or in itune go to file menu and add file to library option.

Post to Twitter Tweet This Post

  • Share/Bookmark