I Drivel

Posts

March 3, 2008

Should have done this a while ago…

Added to .bash_aliases the following alias confgrep='egrep -v "^$|^#"' I find myself too often going through massive config files and only wanting to see what is actually in the config, instead of weeding through a massive amount of whitespace and commented out documentation. I think squid.conf is probably the worst offender of this and the default snmpd.conf has a good amount of spew in it as well. Literally all of squids documentation is located in it’s configuration file, while it is somewhat useful, it’s usually just means a bigger PITA to find what you are looking for.
read more
March 2, 2008

Inline Search and Replace

I was going through some old code tonight from college that had my student id(SS #) in it and I wanted to strip out my SS # from it. I run into this situation a lot where I need to do a mass inline search and replace. I hope this command is useful to anyone else find . -type f -exec sed -i 's/MyIdentity//' {} \;
read more
March 2, 2008

Optimal Configuration for 3 vs 3 seats: PART 1

THE PROBLEM The LIRR has a section of seats in each car that are 3 seats facing one another (see diagram to right). I always aim to sit in these set of seats due to the fact that I’m 6’5 and sitting in the regular seats hardly offers me enough leg room to sit comfortably for an hour long train ride. Of course this only works in my favor if no one sits across from me.
read more
March 1, 2008

Credit Woes

…Most over used 2 words in newspapers this year. Searching google news for “credit woes” in the last day(Feb 29th 2008) produces 914 hits. Everyday the market is down I see the same couple of words in financial headlines over and over again. When the market is down we have a mix of the following words…. Investors, Credit Concerns/Woes, Fear, Inflation, Worries, Economic, Fall, Drop, Housing, Outlook, Profit Taking, Dollar Weakening, Write-offs, Pullback.
read more
March 1, 2008

New houses/buildings numbers

When you put up a new house or building in the middle of a street, how do you determine what the address is?
read more
  • ««
  • «
  • 5
  • 6
  • 7
  • 8
  • 9
  • »
  • »»
© I Drivel 2024