Script to get a localhost’s IP address in Linux
I’ll keep this snippet really short: [text] $ ifconfig eth0 | grep "inet addr:" | cut -d: -f2 | awk ‘{ print $1 }’ [/text] Which results in: [text] 10.X.X.X [/text]
I’ll keep this snippet really short: [text] $ ifconfig eth0 | grep "inet addr:" | cut -d: -f2 | awk ‘{ print $1 }’ [/text] Which results in: [text] 10.X.X.X [/text]
Earlier this week I put together a new computer for myself with parts bought from newegg. Building a computer really isn’t that difficult. As Jeff Atwood explains, “If you can put together a LEGO kit, you can put together a PC from parts.” Choosing the parts that will fit into your budget can be time… Read More »
While trying to get IEs4Linux installed (Why not call it ie4linux instead?), I ran into some issues with the latest Ubuntu 9.10 Karmic Koala. The program ‘ies4linux-gtk.py’ received an X Window System error. This probably reflects a bug in the program. The error was ‘RenderBadPicture (invalid Picture parameter)’. (Details: serial 5546 error_code 158 request_code 148… Read More »
This has been an absolutely frustrating few hours (I’m trying hard not to think about how long I’ve fiddled with this issue, ugh). Last night my (mostly) brand new MacBook stopped working. My wife’s connection was still working and so was my laptop running Ubuntu. Weird. First Stab at Troubleshooting Ping yahoo.com? Nothing. Ping 192.168.0.1?… Read More »
A quick look at NSUserDefaults suggests saving app data with Cocoa and the iPhone SDK is easy. I haven’t gotten much of a chance to use it so there might be some gotchas. To store nonsensitive data using NSUserDefaults is as easy as a couple of lines of code: [objc] NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];… Read More »
Let this be a warning to all: SSH knows what you’re doing and SSH is not pleased. Innuendos aside, I got this nice little error trying to SSH into my brand new server at home. And by “brand new”, I mean it’s my wife’s old desktop that is now running Ubuntu Server 9.04. [text] $… Read More »