I got a new Dell Latitude e6410 from work. After trying Windows it for a few days, I decided to get back to Ubuntu, since I really prefer developing on Linux.
Unfortunately, after booting from live CD my screen started showing me colorful snow and flickering. The moment I select the language and choose to “install Ubuntu”, the screen goes “blah”.
After doing some research and trying several solutions suggested on Ubuntu forum, one of them suggested playing with various booting options (nomodeset,vga=771, etc.), still I had no luck. After some more reading, I saw that some people that complain about similar problem, have the same graphics card as me: Nvidia NVS 3100M 512MB.
Martin Wildam did an interesting review of Ubuntu 10.04 in his blog post Ubuntu 10.04 Experiences. So it is known that Linux distros can have problems with various GXF cards …
At the moment, I still haven’t resolved the problem, still looking for solutions …
Last Friday as I was working, I was asked to get some information from the application logs for a particular period of time. I needed to extract some data and count the results. The given period was last twelve months.
Luckily I am working with Linux, so I opened a shell session and typed the following after doing some research on the Internet:
grep -B4 "String1" *.log | grep "String2" | cut -d -f2 | sort -u | wc -l
Basically what the command does is:
- In all files with extension log , grab 4 lines before occurrence of “String1″ and pass the outcome result to the next command
- Find occurrence of “String2″ and pass the outcome result to the next command
- Split by SPACE delimiter and grab the second field and pass the outcome result to the next command
- Sort in unique manner and pass the outcome result to the next command
- Count the results and output
Simple and efficient. The whole process took only few seconds.
I do not think I could have done this so easily if I would be working on Win platform…
You gotta’ love Linux!