Aaron Gadberry

Help – v. helped, help·ing, helps

Was this site helpful?
My Amazon.com Wishlist

Archive for the 'Computers' Category

Anything pertaining to computers.

Installing a OCZ Vertex 2 SSD in a Lenovo T60p

14th March 2011 - By Aaron Gadberry

Well I was very pleased to receive my 120GB OCZ Vertex SSD today, but disappointed when it didn’t fit in my Lenovo T60p. After doing some google searches I didn’t find anyone else with the problem. Isn’t it strange that when google has no results we assume we are doing something wrong?!?

Anyways I tried seating it about 20 times, and was finally able to get it to go all the way in. Don’t force it, just jiggle it. It will go. It may help to remove the bumpers and get it in with just the tray, and then try again with the bumpers.

Good luck!

Posted in Computers | No Comments »

Facebook Phonebook

9th July 2010 - By Aaron Gadberry

Yesterday I saw a status message set to:

*WARNING**Go to the top right of your screen, click Account & then click Edit Friends. Go to the left side of your screen and click Phonebook. Everyone’s phone # is being published. Please repost (sic) to let your friends know of this change in security, so that they can remove their phone numbers or change their privacy settings…

I went and checked out my Phonebook and noticed that all the phone numbers in there were from Facebook friends that had them listed in their profiles. I think it’s not so bad for Facebook to organize the information that people have made available to me already. Apparently this is a pretty old feature I had just never seen. False alarm. Nothing to see here.

Then I saw this message at the top of the screen.

To learn more about Phonebook or to delete any contacts imported from your phone, click here.

Read the rest of this entry »

Posted in Computers, Miscellaneous | 2 Comments »

Teather a Laptop to a Sanyo PRO-700 for Internet via Bluetooth

29th August 2008 - By Aaron Gadberry

Update: This may no longer work without a tethering plan

After 7 calls and 2.5 hours on hold with Sprint I have finally done it.
It was really not that difficult, I just needed the special number to dial (#777) to make it happen.
For the rest of you here is a step by step guide.

  1. Turn bluetooth on for the PC and the phone (Menu, Settings, Bluetooth, On)
  2. Add the computer as a trusted device on the phone (Shouldn’t be necessary but it seems to not work without this configured first)
    1. On the phone visit Menu, Settings, Bluetooth, Trusted Devices, Add New
    2. Choose search. Select your PC name from the list and choose “Add to Trusted”
    3. Enter a NUMERIC pin on the phone. Press Done
    4. The System Tray on the PC will pop up with a pair request. Click on it and enter the code you just entered on the phone. Press OK.
    5. Name the device on the phone (or leave it the same) and press OK
  3. Make the phone visible (Menu, Settings, Bluetooth, Visibility, Visible for 3 min.)
  4. Open My Bluetooth Places on the PC (Right click on Bluetooth System Tray Icon)
  5. Choose Bluetooth Setup Wizard link on the left of My Bluetooth Places.
  6. Choose “I know the service I want to use and I want to find a Bluetooth device that provides that service” and press Next.
  7. Choose “Dial Up Networking” and press next.
  8. Choose the icon representing your phone and press next.
  9. Press “Configure”
  10. Press “Configure” again
  11. Put in the phone number #777 and press Ok twice. Press Finish
  12. Bubble will appear from System Tray asking about pairing. Click on it.
  13. Enter an security code using NUMBERS and press Ok
  14. Phone will alert you of an attempted pairing. Choose Yes, enter the security code you just made up and then choose ok.
  15. Connection will succeed and Dial Up Networking dialog will appear on the computer.
  16. Username and password should be empty and phone number should be #777. Press Dial
  17. It should connect. Your phone will ask you if you want to accept the connection. Say yes
  18. The phone screen will change to read Data Connection.
  19. Your computer is online!

Other things you can do to improve your experience…

  • Turn on auto-accept on the phone for the trusted device
  • Stop the PC from asking you the username, password and phone number by…
    1. Right click on the phone in the My Bluetooth Places screen and choose properties
    2. Choose Configure, then the options tab
    3. Uncheck prompt for name and password and prompt for phone number
    4. Choose OK and then OK again

Posted in Computers | No Comments »

Use NULLS FIRST in TOPLink Expression API Ordering

22nd January 2008 - By Aaron Gadberry

There is no specific method for NULLS FIRST (default is NULLS LAST), but you can still accomplish this through the expression api.

You can simply append some sql to the end of your ordering field expression and it will take care of it for you.

For example, if you are ordering by the name then this would put the nulls last (default):


This code could be ammended into the following to put nulls first:

query.addOrdering(builder.get("name").postfixSQL("NULLS FIRST"));

It’s that easy.

Posted in Programming | No Comments »

Find the Difference Between two Java Dates (Calendars)

17th August 2007 - By Aaron Gadberry

Well the first question to ask is what unit do you want the difference in. This is one of the reasons many people stick to incremental date math instead of math returning an int.

Lets say you want to do a basic age calculation. How old is Joe? His birthday is 7/29/1981. Well you could subtract 1981 from today, then determine if he had a birthday this year, which could mean comparing everything up to the milliseconds. The problem is, such a calculation is not as accurate as it would seem. This style method fails to preserve the validity of the passing of leap years, leap seconds, etc. If you asked how many days old Joe is then your answer would be something like 365 * (current – 1981) + number of days this year – number of days between Jan 1 and July 29. Well you forgot a few leap days in there, at least 5.
Read the rest of this entry »

Posted in Computers, Programming | 4 Comments »