I really don’t have anything great happened between yesterday and today. But yet, I feel great. May be it is because I laughed so much today.
My colleague was telling me about his life, and I am not going to repeat. But as he talk I was just laughing. It wasn’t anything particularly funny or terrible either. It was just about life and things that could happened to any of us.
Oh well. Here is to keep smiling.
I feel like I am stuck in a rut. I won’t get into details to possibly bore my other self who will read this one day. But right now, things could be very stressful and you didn’t know how to laugh.
Trying to get a house in NC. Dealing with the builder haven’t been the hard part. Getting the loan has been trying, to put it mildly. With my income, credit history, and never had a late payment on my rent, etc. I am almost the perfect person for credit. Taking into account that moving from Cali to NC would reduce just about everything we have to pay for. So again, we will have even more cash available.
Why is the loan process not being managed by humans? Well, it doesn’t feel like it is humans who are making the decisions. We are having so many issues to get aÂ loan. I feel like I am stuck, in a rut so to speak.
Almost a week to the day, I had to admit to myself that my Awk script won’t take me where I wanted. I had worked on it on an over the week, may be a total of fortyÂ hours. I spend just over four hours today before I realized what should have been obvious a few days or hours into the project.
I had a question to answer, and the answer seems to lie in one or more log files. These log file can run into the hundred of thousands of line or even one million. So how to have my question answered without having to looking with my Vim editor and a number of repeated regular expressions?
Enter the idea of a script. A script that would look for a few tell tail patterns. At the end of which, I can say these things happened so this must be the conclusion. Or these things didn’t happen, so something else. It was suppose to be that simple.
I started with a shell script. Found that that with the number of lines I had to read, I would essentially need some way to loop over the files and etc line. Why do that when Sed and Awk already does that. Fortunately, Awk is a lot more flexible than Sed. I guess I could have written it in Perl too. I wanted something powerful, but didn’t want to go down the road of Python or Groovy.
Perl, I dismissed because I had written a lot of Perl code years ago and didn’t want to go back there. It was fun then, but I haven’t had use for Perl since and didn’t want to revisit using it.
I also wanted something I can give to another person to user without much headache. So while most systems have Python, I am not as deft in Python, so it would have taken a bit more time. Oh, I didn’t have much time either. So Awk was going to be it, after I didn’t get more than fifteen minutes into writing in Bash.
It turned out that Awk wasn’t the problem. It was just processing a lot of text and what you might expect to find, may not be there. Since your script is not as flexible as a full fledge language might give you. You really are just looking for a bunch of patterns and reacting. So when something isn’t there that you expect. Well…it all goes South very quickly.
Some of my early testing showed a particular setting of lines. I deduced that if I found those, then I can draw a conclusion or not. When I tested on a later data set. Many of the patterns I had coded for, weren’t even there. Plus my design hinged on finding a start pattern as a marker between distinct events. That was nowhere to be found in some actual logs. Even though, they were there in the test logs I used.
And that is what should have been clear to me early on. That log files don’t always contain what you are looking or what you want. And even when something happened and you thing that everything will be logged so you can go back and tell a story. Sometimes, you just can’t. So now I will just have to go back to using Vim, tail, head, grep/ack, less, and friends. Because writing script to part logs is a non-trivial task, especially in limited scripting language.
The C programming language was one of the first computer language I learnt. As a matter of fact, it was precisely the send language. MyÂ high school offered Pascal programming, and I was taking that. When my my physics teacher at the time, suggested my friend and I learn C. Our teacherÂ was doing his master at the time and said that C is more useful and the future. I am glad I did.
C programming opened a lot of doors for me. Even though I was an electrical engineering student, I still programmed a lot in C. Then I graduated from collected and my first job was as a software engineer. C was a large part of most of the things I did in those early eight years.
I eventually added other languages too, C++, Assembly, Perl, shell scripting, Tcl/tk, Basic and others I don’t remember at different times. C was my constant companion. It has been years now since I wrote any C code. Going on to a solid 3 years without any need to write C. The desire was there, but no work or project.
Until today. A buddy called me and asked if I would explain how functions worked to his daughter. She was in college and taking C. Well, that is surprising, because I thought they stopped teaching C in colleges. Opting mostly for Java and Python. Well, IÂ slipped into coding again like wearing your old favorite pants.
I loved every minute of it. I was having so much fun. That I think I started helping too much on the assign. I eventually got kicked off when my buddy told me that he only wanted me to work on one, and that go out anyway. 🙁 I was having so much fun.
My company is growing quickly and looking for great talent to do so. I have been helping out with interviews. Two things stood out recently that I don’t like. The two things stems from one thing. Not knowing.
Don’t Know – Looking It Up
I have people who didn’t know how to answer questions on the phone interview, look it up or tried to at lease. I can hear them in the background furiously typing as they either silently stalled for words or use fillers as they search. If a person knew something, but forgot, it is very clear from their response. Versus someone who doesn’t know, but is trying to look it up. When they find what they are looking for, they try to regurgitate what they just, and it doesn’t make sense to them nor you. And they soon figure that out and just give up.
Don’t Know – Let Me Interrupt
The other kind of person is the most annoying to me. The first type try to trick you, but if they can’t figure out or find he answer, they will eventually come clean.Â The one tells you up front they don’t know. But soon as you start explaining. Suddenly they know, and must interrupt you. Of course, they stillÂ don’t know, but insist on interrupting. Then goes of an tangent. Instead of staying quiet to hear what you have to say and then ask questions or make suggestions as in any normal conversation. They don’t do that. They feel the need to jump ahead of your conclusion.Â Always interrupting to finish your sentences.
I just don’t get either of these people. If you don’t know, you don’t know. No one knows everything. I guess it irks me because I don’t know why it isn’t apparent that they are not fooling anyone.
I was listening to this story about a family, living in the city, having to get rid of there chickens because the neighbor didn’t like it.Â I realized that many people don’t want the added noise or possibly smell chickens, goats, or any farm animal near them.Â I understand that.
Even though I understand it, I don’t agree.Â We live in the city and sure it is not customary to have farm animals.Â But we put up with noise from cars, trains, and others.Â While we should seek to minimize those noise or all possible noise pollution.Â I see raising or maintaining a small farm as something we should all tolerate, even if it is a slight disturbance to us.
Keeping our food close and local, helps the environment in many ways.Â Chickens for example, would happily eat certain types of kitchen left overs.Â That means less waste to the garbage dump while the family spend less for their grocery, even if it is the cost of eggs and occasionally for meat.
Either way, I think our distaste for the farm like, which we happily consume.Â Puts more control of our foods in the hands of greedy corporations that raise thousands of animals in close proximity and thus causes all kind of food related health problems.Â Problems, we then expect the governement to fix for us.
Let’s play a more active role in our food production.Â Allow, even if you don’t encourage, your neightbors to have a chicken or two, or a goat, or a rooster if they so please.Â Those animals will add some noise to your life, but is that really so bad?Â I don’t think anyone has gotten sick from animal noises.
May be I am biased because I grew up with chickens, pigs, goats, cows, horses, etc. either on the property or close by.Â So I am used to it.Â But even if you haven’t, I am willing to bet, people have gotten used to a lot worst in city living.Â Not only the noise of the city, but the anonymity of people around you, the hustling and bustling, and other sources of stress.Â Â Who knows, may be some farm animal noise might reduce your stress or talk to that distant part of you when farm animals was crucial to our survival.
Few people might actually win best of the year, but this is down right crazy.Â These pics are almost unbelievable, but check em out for yourself.
Certain things go well together; apple-pie and ice-cream, rice and peas, and even Baseball and hotdogs.Â But cramped airplane seats and insensitive passengers is not one of them.Â Apparently a flight from Dulles International Airport had to return to the airport being escorted by two US Air Force F-16 fighter jets.
All because someone reclined their seat just after takeoff and the person behind them, hit them in the head.Â Which, in turn, caused a fight to break out including yet another passenger and the flight attendant.Â Â On top of the melee and having to the pilot turn the plane around.Â The flight was delayed until the next day.
Depending on where I was going, I might have not stressed about being going back to the airport.Â But being delayed another day might have really ticked me off.Â Â I hope the two idiots who stated it weren’t allowed to fly the next day.