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.
It’s been very warm here, but not too hot, which I like. Yesterday was a bitch, though, felt like 30°C. Fortunately, today was overcast, and so helped to alleviate some of the scorching.
Happiness
Health
1. Drink plenty of water.
2. Eat breakfast like a king, lunch like a prince and dinner like a beggar.
3. Eat more foods that grow on trees and plants and eat less food that is manufactured in plants..
4. Live with the 3 E’s — Energy, Enthusiasm and Empathy
5. Make time to pray.
6. Play more games
7. Read more books than you did in 2009 .
8. Sit in silence for at least 10 minutes each day
9. Sleep for 7 hours.
10. Take a 10-30 minutes walk daily. And while you walk, smile.
Personality
11. Don’t compare your life to others. You have no idea what their journey is all about.
12. Don’t have negative thoughts or things you cannot control. Instead invest your energy in the positive present moment.
13. Don’t over do. Keep your limits.
14. Don’t take yourself so seriously. No one else does.
15. Don’t waste your precious energy on gossip.
16. Dream more while you are awake
17. Envy is a waste of time. You already have all you need..
18. Forget issues of the past. Don’t remind your partner with His/her mistakes of the past. That will ruin your present happiness.
19. Life is too short to waste time hating anyone. Don’t hate others.
20. Make peace with your past so it won’t spoil the present.
21. No one is in charge of your happiness except you.
22. Realize that life is a school and you are here to learn. Problems are simply part of the curriculum that appear and fade away like
algebra class but the lessons you learn will last a lifetime.
23. Smile and laugh more.
24. You don’t have to win every argument. Agree to disagree…
Society:
25. Call your family often.
26. Each day give something good to others.
27. Forgive everyone for everything..
28. Spend time w/ people over the age of 70 & under the age of 6.
29. Try to make at least three people smile each day.
30. What other people think of you is none of your business.
31. Your job won’t take care of you when you are sick. Your friends will Stay in touch.
Life
32. Do the right thing!
33. Get rid of anything that isn’t useful, beautiful or joyful.
34. GOD heals everything.
35. However good or bad a situation is, it will change.
36. No matter how you feel, get up, dress up and show up.
37. The best is yet to come..
38. When you awake alive in the morning, thank GOD for it.
39. Your Inner most is always happy. So, be happy.
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.
Excuse the poor quality pics – they were taken with my laptop’s webcam.
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. Thats the square brackets comes in to lessen your trouble.
egrep "[sfv]printf" *.c
It simply return the result with any character specified in [ ] with word printf concatenated.
The square brackets can be used with other RE symbols, here is another example, let say I want to gets all lists with words start with a character “a to f”, I can do this
egrep "^[a-f]" com-book.txt
It is case sensitive, I want all a to f including the upper case A to F.
egrep "^[a-fA-F]" com-book.txt



