/dev/random Nonsense Ensured

8Sep/110

My experience customizing an Android phone

forward: Hi, everyone! Nate here, swapping posts with Travis. Or, if he ends up thinking for a while and kind of forgetting, then that's fine too! I hope to mold this outline into more of an article over the weekend.

Look and feel: launchers

If you're unhappy with Android, I recommend downloading ADW Launcher from the market. ADW is what's know as a "launcher," a "home replacement app," a different homescreen, you name it. By default, the Motorola Droid X comes with the "Blur" interface. If you're getting tired of MotoBlur, or getting tired of HTC's "Sense" interface, I recommend checking out a home replacement app. My favorite is ADW because it has the most custom themes and has easy widget resizing. I was also happy with GO Launcher and LauncherPro. So, these custom home screens provide you with a bit more customizability.

Also, another big feature of these "home replacement apps" is that all 3 provide "hide from app drawer" options. So, you can hide the freaking Blockbuster app, the Amazon Kindle app, Madden, all those garbage apps that Motorola and Verizon load onto your phone. The pre-loaded apps pay for the phone through advertising, but I'm not interested in wading though garbage whenever I want to find an app. So, "hide apps from app drawer." It will change your life. For the better.

Battery life

Android's battery life can be a little bit limiting. So, I'll tell you what worked for me, and a bit of background about why it works.

  • screen to dim. The screen is huge. It is bright. It sucks power. Make the Power Widget on your home screen. That should let you adjust the brightness. Unless it's sunny, you probably won't notice the dimmer screen. If you dig down into Android's Settings, should be something like Settings, Battery, View Stats, you can view how much each program is using the battery. Wait a bit after start-up to get a more accurate reading. But yeah, for me, turning the screen down was the biggest battery saver.
  • Don't worry about Task Killers . . . everything on your phone is running there for a reason. If you don't know what it is, don't kill it. Idle processes aren't going to hinder performance. They're in a "sleep" or "ready" state where they aren't running on the CPU (source: Dr. Kapenga in CS 4540 Operating Systems. 5-state diagram, baby). Anyways, if you really don't want the process running, uninstall it. Ask me or search in the forums if you're not convinced about "task killers."
  • GPS: you can turn it off from the Power Control widget. It's a "radio" signal, and it's using battery.
  • If you have $20 and want to invest a week of consciousness, you could buy an "extended battery." I have the Motorola Droid X, which comes with a Motorola BH5X battery. This gave me about 1 day of battery life. That is to say, daily use called for nightly charging. I sprung for the extended battery, called the "BH6X." It's a little fatter, but don't worry about it. I got probably 1.5 days out of this bad boy. A decent performance increase.
  • The biggest thing to remember about battery life is that you're basically carrying around a laptop walkie-talkie in your pocket. It consumes a lot of power. If you're looking for stellar battery life, check out a non-smart phone ("feature" phone), or maybe a netbook. It's a freaking miracle that these devices work. They are 4000+ years of human ingenuity and science, and we're improving all the time. So, we make choices and trade-offs, and we find a useful solution.

(more to come?)

I won't really touch on rooting/gaining superuser access. For an awesome run down onrooting, check out an earlier post from Travis, called Why Root Your HTC Droid Incredible. http://www.dev-random.me/why-root-htc-droid-incredible

Filed under: Uncategorized No Comments
1Sep/111

Intro Guide to SSH, GNU Screen, and irssi

So I finally got tired of explaining what GNU Screen is and how to use irssi with it so you can idle on IRC nets.  To start, I'll draw a picture to help you visualize how this all works (I like drawing pictures, enjoy my MS Paint sillz).

Obviously I'm assuming you (the client) is on Windows, which if you're reading this, you probably are.  Mac and Linux users, obviously just replace PuTTY with Terminal/OpenSSH.  So I guess we'll go ahead and start with ssh.

Secure Shell (SSH)

So, when sshing from Windows, the easiest way is to use PuTTY (there are many ssh clients for Windows, personally I use Cygwin/OpenSSH/mintty, but PuTTY is quick and easy).  When you start PuTTY it'll ask you where to connect, pretty straight foward.  Just enter your username@linux.host.whatever like so:

It will ask you if you want to accept the public key of the server you are trying to connect to if it's your first time, that's fine, accept it.  Then it'll ask you for a password, there will likely not be any feed back, don't worry, it is working.

Now you should be connected to your Linux box!  Woot, now we can start talking about Screen and irssi.

GNU Screen

So to really understand how Screen works, you have to understand the concept of terminals / virtual terminals.  In a nut shell, the way you interact with a Unix/Linux box is a terminal, which you run a shell on top of.  So when you log into your Linux box you get your own virtual terminal to interact with the computer.  Now, normally with just ssh, you get one virtual terminal per session, but what Screen lets you do is take that one terminal and use it to make more virtual terminals.  But it does something else that makes it ideal for IRC idling, you can disconnect from those virtual terminals and completely disconnect from the box, login again, and then reattach to those virtual terminals.  Pretty neat, eh?  I think so :)

Alight, so now that you know more than you wanted, how do make use of it? Well lets start by starting Screen.

Before I launch screen

After I launch screen

So my screen configuration has that neat little bar at the bottom that shows (from left to right) hostname, windows open / current window (red), and load averages on the server (had some problems with fork bombs.... better to keep an eye on 'em ;) )  Anyways, I'll post my .screenrc at the end of this article if you want it.

So now that you're in screen, how do you interact with it?  By default the "modifier key" is control+a.  So what that means is when you press control+a (like select all in winderz) Screen then listens to what keys you press next.  (Note: From now on I'll refer to control+a as ^a)  (Note 2: after you press ^a you can let go, then press the next key)  Anyways, here's a few basic commands you'll need to know:

  • ^a + c   Open New Screen Window
  • ^a + n   Next Window
  • ^a + p   Previous Window
  • ^a + k   Kill Window
  • ^a + d  Detach From Screen (i.e. drop to your ssh terminal)
  • ^a + DD   Power Disconnect (Detach from screen and log out of the server) (I like this one ;) )
  • ^a + ?   Help window (gives some commands and descriptions)

Note that those are only a few, I would recommend at least looking at the help window, if not looking for a more in depth guide.

So now you know how to move around and use screen (kind of anyways) and maybe you decided to try detaching already and are probably wondering how to reattach.  You still reattach with the screen command, but you'll need to pass it some arguments so it doesn't start a new screen session (you can have more than one).  Now there are different ways to reconnect, but the easiest way assuming you're only running one screen instance is to run "screen -rD".  What that tells screen to do is to reattach and disconnect everyone else from it.  Why would you want to do that last part? Well if you accidentally disconnect uncleanly or leave yourself logged in somewhere, you won't be able to reattach before disconnecting those sessions, so just putting the -D on there makes screen always disconnect your other sessions.

Alright, now I know this isn't the easiest to follow, and I'm trying to be too complicated about this, I know it's hard to grasp all of this especially if you aren't used to a Unix like environment, but good job for making it this far! :D

So you have screen attacted and you're at a shell prompt, lets talk about irssi.

irssi (IRC Client)

Alright, so we're almost there now, you've launched irssi and just have to connect to your IRC Server.  Start by doing a "/connect irc.whatever.stuff" and that will connect you to the IRC server you want to connect to.  It'll probably look something like this after you have:

So at this point it's just a matter of doing a "/join #channel" to join the channel(s) you want to idle in.  Remember to do a ^a + d to disconnect, not a /exit (that will exit irssi and defeat the purpose of running it in screen) and when you log back in to do a "screen -rD" to reattach to your screen session.

If you have any questions feel free to ask in the comments or in #geekboy!

Downloads

More Reading

Filed under: Uncategorized 1 Comment
15Feb/100

Welcome to dev-random.me

So, I decided it would be fun to move away from Blogger and onto WordPress since it seems to be the popular thing to do.  So far, I like it.  It's a lot more customizable than Blogger, especially since I get to host it myself.  I also enjoy WordPress themes more then the Blogger ones.  To complement the move, I decided to buy a domain name for the blog as well.  Hopefully in the next couple of weeks I'll blog a bit about some of the projects I'm working on personally and at work.  Topics to expect might include, but are of course never limited to; backing up to tape in Solaris 10, running a personal Linux file server with RAID, converting a RAID 1 to RAID 5, tuning the XFS file system, and who knows what else.  Until then, welcome and enjoy.

17Jan/102

And so it continues

Well, it's been a while.  I've been telling myself I'm going to write a blog entry since ... November.  Woops! Oh well, at least I'm working on one now.  So I guess to start I'll summarize my last semester real quick, meh.  It wasn't bad, defiantly an improvement over last year, but I could have done things a lot better, academically and with my life.  But, here I am, I somehow still scraped by and I'm pressing onward.  Hopefully this time in 2 years, I'll have a degree and I'll be job hunting (assuming I get my academics up a little bit).  I've been doing a serious a mount of thinking over the past few months about my life and it's direction.  I've even debated if I want to continue in my Computer Science degree, but I've been encouraged by older, wiser friends to fight through the tough times and it won't be so bad when it's all over.

I've also been struggling with my relationship status.  I can't seem to really find anyone that I like, and if I do ever meet someone I do they are either taken, or what feels like out of my reach for one reason or another.  I have no idea what to do about this, but I'm young, and I don't have to worry too much about this (yet...).

On a slightly lighter note, I've been elected the President of the Computer Club here at Western Michigan University, which fills up any free time I might have had between the 14 credits I'm taking this semester and the 30 hours/week I work.  I'm finding myself feeling happier when I'm this busy and I'm finally on a normal sleep schedule (11pm - 8am)!  Now that I'm waking up at the same time every day, the rest of the day seems so much easier and things don't seem as hard anymore.  This is good.

It's only been 4 1/2 months since I moved in here at Zimmerman Hall, right?  Well I guess better late than never to post pictures (also I just cleaned my desk!).  So here it is, the place I sleep and live.

My desk and couch (yes it has flowers on it)
My bed is the bottom bunk (no, I don't make my bed, take that dad!)
yes, I do love this screensaver and my memory hog ;)
Tomorrow I'm going to look at apartments which I am very excited about.  I don't mind the dorms, but I really want more space and to start cooking for myself.  I can't wait to start making use of this website!  I am looking forward to this summer, it will be boat loads of fun.  I'm going to work, take one class, and go home on the weekends to sail with my dad.  It's going to be a blast.  Anyways, I will post pictures and thoughts on the apartment later this week.
Filed under: Uncategorized 2 Comments
11Jun/090

Testing, Testing, 1 2 3

Testing out the ability to update my blog from my blackberry. This will handy because I spend 3 hours a day as a passenger in a car riding to and from work. Hopefully my spelling won't be too bad, it's pretty bad to begin with, and now I'm typing on a 2.5 in keyboard, so please, bear with me.

Some food for thought: http://tinyurl.com/mqhdum
I recently reread Atlas Shrugged by Ayn Rand, and so of course I'm a little weirded out about some similarities going on at the moment, and this article is one (of a great many) things that has me worried about the fate of our country.

Filed under: Uncategorized No Comments
11Jun/094

First!

I thought it appropriate to title my first blog "first!" because, we are in fact on the Internet. I'll dedicate this first post to talk about why I've decided to start writing a blog. Firstly, I'm bored. I'm an Intern at DTE Energy and I have a lot of free time, and I need something to do, so I read lots of news between my assignments. That of course lead me to further strengthen my feelings and opinions about world events, politics, philosophy, science, and (my forever favorite) technology. So naturally I've got a lot of these feelings and opinions just built up with no outlet, and twitter by itself just isn't doing it. So, get ready for a compilation of insight and thought about world events, politics, philosophy, science, and lots of technology (and maybe even the occasional off topic post).

Filed under: Uncategorized 4 Comments
  • Twitter
  • Buzz
  • Tumblr
  • Facebook
  • LinkedIn
  • Digg
  • Picasa
  • Flickr
  • Panoramio
  • YouTube
  • Last.fm