gonzobrains.com

August 27, 2010

Android – How to add a progress dialog to your app

Filed under: Uncategorized — Tags: , — gonzobrains @ 12:18 am

This site was totally helpful when it came to explaining how to add a progress dialog.  Using threads and handlers is totally the way to go:

http://www.helloandroid.com/tutorials/using-threads-and-progressdialog

But I had a problem because, like this other guy, I am an idiot, too:

http://www.anddev.org/override_handlerhandlemessage_-t8782.html

I was relying too much on Eclipse when I had this error.  I tried to use the code from the first website but kept getting an error about not being able to override handleMessage().  It kept telling me to remove the @Override clause.  But doing that causes the progress dialog to never go away because the handler method never gets called.  I had to import the “Message” library just like this other dude did.  I was relying too much on Eclipse.

gb

August 26, 2010

Lucasfilm frowns on “unauthorized” use of the word “droid”

Filed under: Uncategorized — gonzobrains @ 11:35 pm

Last time I checked, the term “droid” is short for “android” and originated in the 1970s.

It’s disturbing when a corporation tries to regulate usage of natural language:

http://www.openintents.org/en/node/711#comments

gb

Android app cannot access Internet

Filed under: Uncategorized — Tags: — gonzobrains @ 11:10 pm

While making a new Android app, I kept receiving errors like UnknownHostException, null pointers, and unresolved hosts.

It turns out you need to add a permission to your app within the app’s manifest file:

uses-permission android:name=”android.permission.INTERNET” />

Massive props goes out to this site for helping me out:

http://stackoverflow.com/questions/3293659/android-java-net-unknownhostexception-host-is-unresolved-strategy-question

August 20, 2010

How to barbecue rice.

Filed under: Uncategorized — Tags: — gonzobrains @ 11:22 pm

Has anyone ever barbecued rice? If so, I wanna hear about it.

August 18, 2010

Sierra Wireless C885 Aircard cannot see micro SD card

Filed under: Uncategorized — Tags: — gonzobrains @ 11:15 pm

Hey party people,

I have a Sierra Wireless C885 Aircard. The 3G portion of it works fine. I can connect to 3G/EDGE/GPRS networks just fine. But I have tried inserting 2GB and 4GB micro SD cards in it to no avail. The memory card doesn’t get recognized in Mac and Win32 PCs. What’s wrong with it?

Thanks,
gb

August 15, 2010

How to view and kill tasks from the command line in Windows XP

So I was sitting in an Internet shop today and needed to check what processes were running in the background. I hate using Internet shops because you never know what kind of viruses/virii and keyloggers may be lurking in the background.

But many shops disable ctrl-alt-del, thus preventing you from opening the task manager. I’m sure there is a way to do this from windows->start but I don’t remember.

But I found this useful tidbit of information…use tasklist and tskill to save your life. They work similar to ps and kill in Linux.

More information a this site:

http://techmonks.net/windowsxp-using-the-command-prompt-to-see-and-kill-processes

Enjoy,
gb

August 8, 2010

I hate people spamming my blog.

Filed under: Uncategorized — Tags: — gonzobrains @ 3:44 pm

Every week I get people spamming my blog. Anyone have a solution to this?

July 30, 2010

My pistol is loaded. I shot Betty Crocker.

Filed under: Uncategorized — Tags: — gonzobrains @ 1:16 pm

Deliver Colonel Sanders down to Davy Jones Locker!

How to create a swap file in OpenSolaris

Filed under: Uncategorized — Tags: , — gonzobrains @ 1:04 pm

Here is an excellent resource on how to create a swap file in OpenSolaris. I needed this because I kept running out of memory as I was evaluating build 125 when using VMWare Fusion on my MacBook even though I had the VM set for 1 GB of RAM.

http://www.cyberciti.biz/faq/solaris-unix-add-swap-file-space/
Enjoy,
gb

How to trick people into thinking you’re good looking.

Filed under: Uncategorized — gonzobrains @ 8:13 am

This was hilarious. Check it out:

http://video.tagged.com/#v=OYpwAtnywTk

Older Posts »

Powered by WordPress