Blogs


 

Yet again, I have typed up another long entry in Joomla just to have it all disappear because Joomla (and it's Editor components) suck at handling sessions. I won't get into that here, but I do want to get a piece of information across that isn't widely available on the internet.  I messed with my Icon Size and Spacing (horizontal and vertical) in Windows XP and I couldn't find the original settings to change it back to.  I pulled it up on another one of my computers and figured I would post it on the internet for all to see.

Icon Spacing (vertical): 43
Icon Spacing (horizontal): 43

A quick side-note that I made on my original post was the fact that windows will only display icons up to 72px and the built-in windows icons usually only scale "gracefully" up to about 48px. In contrast, Mac OS X will display icons up to 128px and every icon I have ever seen on a Mac will fully scale to that with no problem. To read more about this, see the icon topic at XvsXP.

It's been a while since I've written a blog post to my website, but I guess I've just been busy with a lot of things going on in my life. I've been travelling a ton for work - which has been really cool, but has kept me ultra busy. Since the beginning of the year, I've been on business trips to:

Austin, Texas
Punta Cana, Dominican Republic
Malta, Malta (South of Italy) - Stayed in London, England for a 2 nights
San Francisco, California
Shenzhen, China

The following is a short code snippet on how to view which MySQL databases are available for a user, then a command to back them up. This should work on Unix and Linux variants.

To view what databases are available to be backed up, run the following command:
$ mysql -u root -h localhost -p -Bse 'show databases'

To backup each database, run the following command:
$ mysqldump -u root -h localhost -pmypassword databasename | gzip -9 > faqs-db.sql.gz

I set a lot of reminders for myself on my company e-mail and I don't have a blackberry yet. I kind of want one for all the great features, but on the other hand I'm concerned with how connected that would make me and thus make me feel obligated to respond. Here's a list of e-mail addresses for some of the most popular carriers (in the US) just replace phonenumber in the addresses below with the proper phone number.

T-Mobile: This email address is being protected from spambots. You need JavaScript enabled to view it.

Virgin Mobile: This email address is being protected from spambots. You need JavaScript enabled to view it.

Cingular: This email address is being protected from spambots. You need JavaScript enabled to view it.

Sprint: This email address is being protected from spambots. You need JavaScript enabled to view it.

Verizon: This email address is being protected from spambots. You need JavaScript enabled to view it.

Nextel: This email address is being protected from spambots. You need JavaScript enabled to view it.

As a side note, you can also do this with a service called teleflip. It's the same thing as sending it to one of the other formats, but it adds a footer to the e-mail that says "Email on your cell - teleflip.com". I just use my SprintPCS address like above to send reminder messages to myself and it's not that hard for me to remember the one address. I can see how it would be beneficial if you wanted to send messages to multiple people though. Teleflip also has some commercial offerings on their website that do more advanced e-mail to SMS features. To use teleflip, send the e-mail to the following:

Teleflip: This email address is being protected from spambots. You need JavaScript enabled to view it.

Here's a quick code snippet on how to backup files and restore them from the shell.

To back them up, run the following code:

$ tar -zcvf filename.tar.gz folder/

To backup all files in the directory you are currently in, run:
$ tar -zcvf filename.tar.gz .

Here's a breakout of the parameters:
z - gzip compression
c - compress the files
v - verbose output (lists the files)
f - file

To uncompress the file(s) (eg. unload to server - overwriting files), use the following:
$ tar -zxvf filename.tar.gz

The key difference is the c in the compress command above was replaced with an x for the extract command.

 

Subcategories

About Me

Josh Lyon Profile Picture

Name: Joshua Lyon
Location: Dallas, TX
E-mail: This email address is being protected from spambots. You need JavaScript enabled to view it.
ProfilesGoogle, Twitter, GitHub
Other Sites:
     SharpTools.io
     L2 Technology Services