🍱Felipe Alvarez's Blog

Canada wins Gold Medal in Men’s Hockey 2010 Vancouver Olympics

...

A new beginning

I got hired at my old job. I’m very happy for that. They’re happy I came back! Saves them money and time on training, and the off-chance of hiring a ‘lemon’ that quits after 4 weeks. I’ve entered into a Digital Forensics project. I need to develop a tool that will automate some of the labourious tasks involved in digital forensic evidence acquisition. I’ll probably need to brush up on GNU Bash scripting, and PHP....

Happiness

Health Drink plenty of water. Eat breakfast like a king, lunch like a prince and dinner like a beggar. Eat more foods that grow on trees and plants and eat less food that is manufactured in plants.. Live with the 3 E’s — Energy, Enthusiasm and Empathy Make time to pray. Play more games ...

Incheon, Korea (near Seoul)

Flight was good. Good food, Good service. I’m very happy with korean Airlines, and I’d travel with them again, just maybe not from Toronto to Brisbane (Brisbane to Toronto, however, was flawless, arguably the best flight I’ve ever taken in my life). These are pictures of the free Hotel room Korean Air set me up with. I had to wait 16 hours for my next flight. They provided me with a free lunch coupon, but I got hungry by 7:00 AM and just looked for a decent local joint to satisfy my kimchee and bibimbap craving....

Regular Expression

Previously we have an example on regular expression, but It doesn’t shows the power of square brackets ( [ ] ) Let say you want to search for string fprintf, vprintf and sprintf using grep, usually what you do is egrep "fprintf|vprintf|sprintf" *.c You may be ask why don’t just uses the word “printf”? If uses the word printf, it will return all of them but also include printf itself. But in this case i don’t want to grep other printf besides f,v,s printf....

Password-less Logins with OpenSSH, scp, and rsync

UPDATE: I changed ‘>’ (erase file, then write to file) to ‘>>’ (append to file). This avoids you overwriting your, or other peoples’, public keys. Setting up password-less logins is both dangerous, and mighty. It allows one to authenticate to an OpenSSH server without typing in a password. Authentication is gained via knowledge of a private key. Generate a Public/Private Key Pair $> ssh-keygen -t rsa Generating public/private rsa key pair....

Software RAID-5 on GNU/Linux Using mdadm In 6 Easy Steps

For this setup, I used 4 320GB sata 300 hard drives. This array is not configured for booting, just for redundant storage. My four drives are: sdb sdc sdd sde 1. Ensure all partitions on the drives are erased There are a few ways to do this. I just overwrite the first million bytes with zeroes. $> dd if=/dev/urandom of=/dev/sdb bs=1M count=1 Another way to do it, is using fdisk, like this...

No More Promises

I will never again buy a RAID Controller card from Promise again! They claimed to support GNU/Linux, and they don’t. They said they didn’t have drivers for Windows 7, and then suddenly they magically appear on their Downloads page. We weren’t even notified. I’m going to go with mdadm and try my luck with software RAID on Mint. If I must buy another card, for whatever reason (namely software RAID is much too slow, and hardware RAID will offload the work to the card itself) I’ll go with Adaptec....

OGG Vorbis vs. MP3

I just ripped some of my CD’s to MP3, but I was just curious what OGG would do for me. I had never actually compared the two encoding formats, side-by-side, but today, I was simply stunned. A song compressed with MP3 (VBR 128Kbps Normal Quality) was around 5.1 – 5.8 MB. It sounded good, but ‘clearly’ inferior to the actual CD Quality sound. The OGG rip (VBR 128Kbps), on the other hand knocked my socks off!...

Heading back in just a few weeks

I’m flying back to Brissy soon, it feels good. I miss so many people back ‘home’. Some I’ve spoken with many times since I came back to Canada, some only just a few. I appreciate the friends I have, and I’m thankful for them. I have yet to meet many of my Canadian friends. Many Hamilton friends I have not yet seen, and long to see. I shall see them soon, with luck....