I really wanted to Facebook “like” this page, but ironically they don’t provide a link.
So here is my own like link:
icondock.com/free/vector-social-media-icons
Archive for the ‘Technology’ category
Free Fonts Saved the Day
I was trying to match a font on a banner on one of the websites I work on.
First I tried to identify the font by submitting the image to MyFonts’ WhatTheFont tool, but that gave me less satisfactory results.
At that point I used the identifontsite by answering questions about the text available on the banner. It worked well, and gave me the name of the font I needed to buy.
Now I was facing the age long dilemma “if a client wants me to change one word on a 6 word banner, and my hourly rate is X, and I know for certain this is a one time need (the client is about to have a major web site redesign ), assuming it takes me 30 minutes to identify the right font for the job, edit the JPEG file, replace the text, save the file, and replace the file on the server, should I spend money on a font that I will only use for this one tiny project? Should I absorb the cost of the font and expense it on my taxes, or should I charge my client?”.
I didn’t even figure out what would be the price of the font in question, when it occurred to me it might be available to download for free. I Googled the font name, and clicked on one of the links that promised free fonts. The font I was looking for was not there, but a very similar one was available.
The internet saved the day again. Now I can obsess on other age long dilemmas… is it really wrong to wear white after labor day? When is it okay to start wearing white? New year? Easter? I am pretty sure the answer to that one is also only a few clicks away on Google.
Long live the internet!
My Unix Commands
Find text within files in sub directories
find . -type f -exec grep -il “text string” {} \;
Change the photo files name:
for f in 100_*.jpg; do mv $f ${f/100_/p}; done
Add an ‘s’ to thumbnail:
for f in p*.jpg; do mv $f ${f/./s.}; done
List all files including sub directories into file ‘a.txt’:
ls -R > a.txt
Remove the ‘s’ character from the result:
sed -e ‘s/s//g’ a.txt > b.txt
Remove duplicates:
uniq a.txt > b.txt
List directories in reverse order:
ls -r > ‘c.txt’
One fine swoop:
ls -R > a.txt; sed -e 's/s//g' a.txt > b.txt; uniq b.txt > c.txt; sed -e "s/.jpg/' => Array\(2009, 2, 1, \" \"),/g" c.txt > d.txt; sed -e "s/100_/\'100_/g" d.txt > e.txt;
OLD CODE:
ls -R > a.txt; sed -e 's/s//g' a.txt > b.txt; uniq b.txt > c.txt; sed -e "s/.jpg/'\' => Array\(2008, 12, 1, \" \"),/g" c.txt > d.txt; sed "s/p/\'/g" d.txt > e.txt; sed ’s/Thumb.db//g’ e.txt > final.txt; ls -r > dirs.txt;
Create Direcotories a, b, c:
mkdir a; mkdir b; mkdir c
Dang, I swear I look for these commands way too often. So here it is once and for all:
Extract a .gz file:
gzip -d file.gz
Extract a tar.gz file:
tar xvzf file.tar.gz
Long live the internet!
I found this line on centerkey.com:
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'
It was very useful, and created simple graphic tree of my sub-directories.
Live long the internet!
Interesting Web UI articles
I am pretty sure that AlertBox will be an important site to keep track of. Thank you Mike for posting this link to your Facebook Page.

