TheLedgeOfKnow

Oh How I Hate Command Line Tar

It's cuz I'm dyslexic and I always get things backwards. Which comes first? The file I'm trying to create or the one I'm trying to tar up? Here's the answer for future reference.


tar -cf [the file you want to create] [the file(s)/directory(ies) you want to tar]


The "c" stands for "create". The "f" stands for "file" (the default is to pipe the tarred stuff to stdin). You can also turn it into a gzip file in the same go with the letter "z" or into a b-zip file with the letter "j".

Fixing Some Little Network Annoyances

To set your IP address for your Ethernet connection and the gateway address for the world outside your local network, run these as root or sudo them...

ifconfig eth0 [ip address]
route add default gw [gateway ip address]

No More IFrames!!!

So, you want to pull some information from another site into a Web page, and your fancy-pants AJAX idea won't work because you can't grab data from a different server using xmlhttprequest?

Don't reach for that IFRAME!!! Use Object instead.


If you can see this line, your browser doesn't properly support w3c standards.


Secure Copy

scp is like cp for copying files only it can securely copy files from one server to another using the ssh protocol. This is a good thing. The bad thing is that I always forget how to write the line, because I'm a ditz that way.

Here's an example of how to copy a file from a local computer to a location on a remote server:
scp index.php user@web2.websites.com:/mysite.com/httpdocs/index.php

Here's an example of how to copy a whole directory from a local computer to a remote server:

Most Israeli Web Development Sux

Why? Because they think that it's OK to develop important sites for IE only. Those of us on Linux are outa luck if we want to use a bank website or do anything at a government website or even use half the businesses in this country. It's stupid in the extreme, and if I had my way, I'd line up all the decision makers who thought that this was acceptable and slap them each upside the head one at a time. Since I don't have the opportunity, however, I have two different solutions.

Pages

Subscribe to TheLedgeOfKnow