Logo

Purging old cruise builds

over 1 year ago | Alex Rothenberg: Common Sense Software

Continuous Integration is such an important idea and I love CruiseControl.rb as its so easy to use. However one thing that drives me crazy is that it keeps all builds forever. Over the past few years we run out of disk space every few months causing all our builds to start failing and some tedious manual work to delete some directories.

Today I decided to do something about it and wrote a script to remove all but the most recent builds. After all why do I want an old build lying around as that's what Git of Subversion is for!

If you want to give it a try you can download the script from http://github.com/alexrothenberg/purge_old_cruise_builds

This seems to be working for me and I'd love to hear if I'm making some assumptions you need to change to adapt it to your uses.

Purging old cruise builds

over 1 year ago | Alex Rothenberg: Common Sense Software

Continuous Integration is such an important idea and I love CruiseControl.rb as its so easy to use. However one thing that drives me crazy is that it keeps all builds forever. Over the past few years we run out of disk space every few months causing all our builds to start failing and some tedious manual work to delete some directories.

Today I decided to do something about it and wrote a script to remove all but the most recent builds. After all why do I want an old build lying around as that's what Git of Subversion is for!

If you want to give it a try you can download the script from http://github.com/alexrothenberg/purge_old_cruise_builds

This seems to be working for me and I'd love to hear if I'm making some assumptions you need to change to adapt it to your uses.

Use dashes not underscores in your domain name

over 1 year ago | Alex Rothenberg: Common Sense Software

I recently ran into an issue where users hitting my development server with Internet Explorer kept getting redirected back to my login page no matter how many times they signed in. Everything worked fine for all other browsers I tested and it even worked fine on Internet Explorer when pointing at http://localhost.

After much investigating it turns out the problem lies in the name of my development server. I picked a name like http://myapp_dev.alexrothenberg.com and it was the underscore in myapp_dev that caused the problem. It turns out that IE will not set a session cookie for a domain with a hostname that contains an underscore.

According to microsoft this is not a bug but a feature

Q5: IE won’t set a cookie when the hostname/domain contains an underscore?

A: Correct. Technically, underscore is not a DNS character, and while Windows will let you use an underscore when naming your machine, it warns you that doing so may cause problems. One such problem is that WinINET blocks attempts to set cookies on such domains.


OK, so it looks like IE will let me go to the page but doesn't set the session cookie so my site sees each request as part of a new session by an unauthenticated user and redirects to the login page over and over.

I did a little more research and according to Wikipedia Microsoft is right and underscores are not allowed in hostnames

The Internet standards (Request for Comments) for protocols mandate that component hostname labels may contain only the ASCII letters 'a' through 'z' (in a case-insensitive manner), the digits '0' through '9', and the hyphen ('-') ...
While a hostname may not contain other characters, such as the underscore character (_), other DNS names may contain the underscore.


I'm not sure why IE allows the browsing but not the cookie as that turned this into a subtle bug that was especially hard to track down since Firefox, Safari and Chrome all set the cookie so my site works. From now on I'll have to remember not to use underscores but to use dashes instead like http://myapp-dev.alexrothenberg.com which should work across all browsers.

Use dashes not underscores in your domain name

over 1 year ago | Alex Rothenberg: Common Sense Software

I recently ran into an issue where users hitting my development server with Internet Explorer kept getting redirected back to my login page no matter how many times they signed in. Everything worked fine for all other browsers I tested and it even worked fine on Internet Explorer when pointing at http://localhost.

After much investigating it turns out the problem lies in the name of my development server. I picked a name like http://myapp_dev.alexrothenberg.com and it was the underscore in myapp_dev that caused the problem. It turns out that IE will not set a session cookie for a domain with a hostname that contains an underscore.

According to microsoft this is not a bug but a feature

Q5: IE won’t set a cookie when the hostname/domain contains an underscore?

A: Correct. Technically, underscore is not a DNS character, and while Windows will let you use an underscore when naming your machine, it warns you that doing so may cause problems. One such problem is that WinINET blocks attempts to set cookies on such domains.


OK, so it looks like IE will let me go to the page but doesn't set the session cookie so my site sees each request as part of a new session by an unauthenticated user and redirects to the login page over and over.

I did a little more research and according to Wikipedia Microsoft is right and underscores are not allowed in hostnames

The Internet standards (Request for Comments) for protocols mandate that component hostname labels may contain only the ASCII letters 'a' through 'z' (in a case-insensitive manner), the digits '0' through '9', and the hyphen ('-') ...
While a hostname may not contain other characters, such as the underscore character (_), other DNS names may contain the underscore.


I'm not sure why IE allows the browsing but not the cookie as that turned this into a subtle bug that was especially hard to track down since Firefox, Safari and Chrome all set the cookie so my site works. From now on I'll have to remember not to use underscores but to use dashes instead like http://myapp-dev.alexrothenberg.com which should work across all browsers.

How to Beat the Social Software Adoption Blues

over 1 year ago | Michael Idinopulos: Transparent Office

Does social software adoption have you singing the blues? If so, you're not alone. In the enterprise social software world, everyone's talking about adoption. There are breakouts on it at Enterprise 2.0. Lots of smart people are blogging about it....

Seven Habits of Highly Effective Agile Scrum Product Owners

over 1 year ago | Riju Kansal: Riju's Thoughts Captured...

This is a wonderful post. I wish I get an opportunity to experience it for software projects.


http://www.softwareplanner.com/Newsletters/newsletter_2009_03_SP.htm

Job Satisfaction

over 1 year ago | Shakti Choudhary: Smiling Assassin

In the past couple of years, millions of jobs have been slashed around in the world and there are entire industries, which are walking, wounded. Now as we are one of the fastest growing economies after China and things are looking much better, many people are taking a fresh look at their situations and deciding [...]

I Love you...Rasna

over 1 year ago | Doel Sengupta: Doel

There was queer habit of mine to store the things for the perfect time.

A simple, incident describing this. It was in our school days, when the sachet concept was not in vogue like these days. I got a free sachet of Rasna(a fruit drink, in powder form) from our local grocery shop. I was so excited that I kept it for a long period of time. Each day, when I return from school, I would have seen the sachet on our center-table in the drawing room and thought , I would have it when I would be more tired and thirsty .

Couple of days passed and suddenly on a day I find that sachet no more on it's place.
I searched the entire place, from the pile of newspapers, our telephone diaries (we don't use to have contacts in our cell phone to store the numbers during that time).

Alas! it was not there.

My Brother returned home, and to my surprise he asked me the place from where I got that Rasna sachet? He had it, few days back!!!

My Learning:- Don't wait for the ideal and the perfect situation, whatever and wherever you are you can make it perfect.