Posted 10 months ago
For me the following do not work:
sed 's/(\[|\])//g'
sed 's/[[]]//g'
The following do work:
sed 's/[][]//g'
sed -e 's/\[//g' -e 's/\]//g'
Example:
echo '[foobar]' | sed 's/[][]//g'
>foobar
echo '[foo]bar' | sed 's/[][]//g'
>foobar
The environment is Debian 4.0, GNU sed version 4.1.5.
Posted in Linux, Tech | Tags sed | no comments
Posted 10 months ago
I finally configured amavisd-new with my Postfix configuration. It is a simple setup using only ClamAV and Spamassassin. However I do want to implement DKIM through amavisd-new of course that requires a newer version of amavisd-new than is in the packaging system of the release of Ubuntu I am running.
Further I would like to switch my Linode to Debian over Ubuntu.
It is safe to expect some downtime soon likely tonight as a result of upgrading through two releases.
I will post a part 2 once the upgrade is complete and I implement DKIM with the details of what I did.
Posted in Website, Network Admin, Linux, Tech | Tags amavisd, clamav, debian, dkim, domain keys, new, postfix, spamassassin, ubuntu | no comments
Posted 10 months ago
My grandpa is fairly old school. Even when I drove junkers he would always make sure I was waxing the car. I would wax them every once in a while, but never gave it much attention, I just got the job done. Now I have a pretty nice car and pay more attention to detail. I also wax the car every few washes, probably about once a month. Waxing is not an easy job, once you've already cleaned the car, waxing just makes the work put into keeping your vehicle nice looking grow enormously. The work is rather tedious and exhausting.
One issue I constantly get into is getting wax on the plastic parts of cars and the rubber that seals the windows when they are up. I waxed my girlfriends car not too long ago and left some wax under the plastic bumper. Now her car is in good shape minus some paint and light body damage along the passenger side. So while getting the damage inspected, a body work professional told her the wax had soaked into the plastic from being in the sun and would need to be re-painted. Although I feel over the appropriate conditions this would happen I smelled bullshit. The bumper is mostly beneath the car and a good deal protected from the sun. I took a long soft bristled brush to the plastic and eventually got the wax off. It took some elbow grease and some persistence but it came off quite nicely.
I just finished washing and waxing my car today and did essentially the same with my rear bumper which is similarly protected from the sun. However, my side view mirrors also have the same pressed type of plastic around them and had previously had wax left on them. The car has seen a good deal of direct sunlight over a period of time. I took an old soft bristled tooth brush to the plastic and the wax came right out. Another great use for the good old used tooth brush, we keep them stashed in a junk drawer because they come in handy for a lot of different things.
Also make sure to avoid scrubbing the wax with water, it does not help at all and will keep the wax from breaking up and coming out of the plastic. I also do not recommend steel brushes or anything that could damage the plastic or surface of the paint on your car.
Update: Apparently the most common home remedy is peanut butter.
Off to drink a little more beer after a long weekend.
Posted in General | Tags car, plastic, toothbrush, wax | no comments
Posted 10 months ago
So the move to Typo has not gone as smooth as I'd hoped. Not to any fault of the Typo software, I feel that the issues are mostly related to typical migration from a custom built application to a prebuilt solution. Furthermore I am not turning back by any means. I know that once I get some of the details ironed out the site will get more attention and I will be much happier with it.
I need to tweak my Capistrano deployment scripts to be Typo friendly. Some confusion seems to exist when Capistrano tries to restart Typo, I have concluded that when Typo tries to stop the current running daemon it cannot find the pid.txt because it exists in the previous release which has already been unlinked. Some simple Capistrano magic will fix that.
I am also having some issues with themes. They worked fine at first but now it seems that only the default Typo theme actually installs its images and stylesheets into public. Each theme when active installs its custom images and stylesheets into public/images/theme and public/stylesheets/theme. The proper URL's are not generated either.
Lastly I have only migrated in the old blogs, I have migrated categories but none are linked up yet. I will probably migrate the comments, but since so few exist I have prioritized getting the site functioning the way I want it.
Posted in Website, Ruby on Rails, Capistrano, Tech | Tags blogs, Capistrano, comments, migrate, theme, typo | no comments
Posted 10 months ago
I am considering moving the site to Typo to replace the blog and using Flickr to manage the photo album. I am not sure what I will do about the Utilities. I need to see if I can easily extend Typo or not.
The main reason for this is simply that I end up spending more time managing code and adding new features than I do managing the content of the site. I have yet to dive into Typo and see what capabilities are there. Hopefully if I decide to make this migration, the change will cause me to upload more photos, write more blogs about stuff nobody cares about, and just improve the content of the site in general.
Sean
Posted in Website, General, Ruby on Rails, Tech | no comments