dacaprice.com from fitness to technology. mostly technology. sometimes fitness.

18Jan/100

View text iPhone messages once you start typing.

I'm a big fan of the SMS & MMS user interface on the iPhone. However I've always found it annoying that once you start typing, you can not minimize the keyboard. In other words if you want to view all of your messages from one contact in full screen mode, after you've started typing a new message, you have to go back to the previous screen, then back into the conversation you started in the first place. I found that you can avoid this by clicking edit (upper right-hand corner). You can view all of the messages in edit mode, then hit cancel when you're finished. You don't lose any of the new message you started typing. Just be careful you don't accidentally delete anything!

Tagged as: No Comments
3Jan/100

How to run fsck on a Logical Volume in Linux.

I recently had a problem on my laptop running Fedora 11 where my X session just totally froze when trying to bring the laptop back from a hibernate state.  Outside of the occasional issues coming out of hibernate (usually X not restoring) I'd say Fedora 11 has been pretty solid.  This particular time, my X session restored but everything locked up.  I tried switching to another virtual terminal to log in and kill GDM but some sort of inode error just streamed down the console.  My only option was a hard reboot and after that I couldn't boot Fedora with any kernel.  To fix my problem I booted off the Fedora install CD into rescue mode without mounting  / .  I then performed the following:

# lvm pvscan
# lvm vgscan
# lvm lvchange -ay /dev/VolGroup00/LogVol_home
# lvm lvscan
# fsck -yfv /dev/VolGroup00/LogVol_home

Tagged as: , No Comments
21Nov/091

Connect to Cisco routers using screen

screen is a Linux utility that I use to connect to the console on Cisco routers.  If your router is plugged in to a serial port on a Linux box, you can use the following command to connect to it:

[dacaprice@FedoraBox ~]$ screen /dev/ttyS0

Tagged as: 1 Comment
11Nov/090

Changing sdiff column width in Linux

I use sdiff pretty often to do a side-by-side comparison of config files on my Linux box. The thing that annoys me the most is the default column width; often whatever it is I am comparing, gets cut short because the width is too narrow. I like use the -w ColumnWidth to set a wider width and the -s to supress any common lines.

[dacaprice@fedora]$ sdiff -s -w 150 file1 file2

Tagged as: No Comments
5Nov/091

Nov. 5, 1955: A Flux of Genius | This Day In Tech | Wired.com

Dr. Emmett Lathrop Brown is known for being a member (unverified) of the Manhattan Project, a physics professor at Hill Valley University, and a talented entrepreneur and handyman. But it’s his contribution to the field of temporal physics for which he is best remembered.

According to archival footage, Brown was standing on his toilet seat on the evening of Nov. 5, 1955, attempting to hang a clock in his bathroom, when he slipped and slammed his head on the side of the sink. Upon regaining consciousness Brown reported having “a revelation, a picture, a picture in my head.” A picture which he crudely scrawled down on a piece of paper and subsequently spent 30 years of his life and family fortune to build.

via Nov. 5, 1955: A Flux of Genius | This Day In Tech | Wired.com.

Filed under: Tech 1 Comment