<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>Paul Gross's Blog - All Comments</title>
  <id>tag:www.pgrs.net,2008:mephisto/comments</id>
  <generator version="0.7.3" uri="http://mephistoblog.com">Mephisto Noh-Varr</generator>
  <link href="http://www.pgrs.net/feed/all_comments.xml" rel="self" type="application/atom+xml"/>
  <link href="http://www.pgrs.net/" rel="alternate" type="text/html"/>
  <updated>2008-03-15T00:37:49Z</updated>
  <entry xml:base="http://www.pgrs.net/">
    <author>
      <name>Eric</name>
    </author>
    <id>tag:www.pgrs.net,2007-10-08:91:1139</id>
    <published>2008-03-15T00:37:49Z</published>
    <updated>2008-03-15T00:37:49Z</updated>
    <link href="http://www.pgrs.net/2007/10/8/useful-unix-tricks-part-2" rel="alternate" type="text/html"/>
    <title>Comment on 'Useful unix tricks - part 2' by Eric</title>
<content type="html">Luis:  Just about everything doesn't come with Solaris by default.</content>  </entry>
  <entry xml:base="http://www.pgrs.net/">
    <author>
      <name>Paul Gross</name>
    </author>
    <id>tag:www.pgrs.net,2008-03-13:1103:1125</id>
    <published>2008-03-14T04:31:58Z</published>
    <updated>2008-03-14T04:31:58Z</updated>
    <link href="http://www.pgrs.net/2008/3/13/flying-towards-a-hub" rel="alternate" type="text/html"/>
    <title>Comment on 'Flying towards a hub' by Paul Gross</title>
<content type="html">James, return tickets are often cheaper than two one-ways, but it depends.  I have booked tickets where the legs were on different airlines, but this can be more of a hassle.  I find that it is better to stick with one primary airline in order to maximize miles and airline status.</content>  </entry>
  <entry xml:base="http://www.pgrs.net/">
    <author>
      <name>Kasper</name>
    </author>
    <id>tag:www.pgrs.net,2008-03-13:1103:1116</id>
    <published>2008-03-13T21:34:55Z</published>
    <updated>2008-03-13T21:34:55Z</updated>
    <link href="http://www.pgrs.net/2008/3/13/flying-towards-a-hub" rel="alternate" type="text/html"/>
    <title>Comment on 'Flying towards a hub' by Kasper</title>
<content type="html">Rule 240 might be appliable to some of those cancellations
http://www.msnbc.msn.com/id/22900119</content>  </entry>
  <entry xml:base="http://www.pgrs.net/">
    <author>
      <name>James Webster</name>
    </author>
    <id>tag:www.pgrs.net,2008-03-13:1103:1108</id>
    <published>2008-03-13T07:21:47Z</published>
    <updated>2008-03-13T07:21:47Z</updated>
    <link href="http://www.pgrs.net/2008/3/13/flying-towards-a-hub" rel="alternate" type="text/html"/>
    <title>Comment on 'Flying towards a hub' by James Webster</title>
<content type="html">Are domestic airfares not sold by the leg in the US? In Australia and (I believe) Europe, most domestic fares are priced such that a 'return' ticket with one airline is not cheaper than two single tickets with the same airline... in my experience. If the same thing applies with the US, why not fly out with the airline that has a hub in your destination city, and back home with the airline that has a hub at home?

I have alot of respect for North American-based consultants and the amount of flying you do... I did a bit of consulting there myself a few years ago, I stayed put in San Antonio but everyone else was flying in and out. One guy lived in Jacksonville, FL so had to go via Atlanta every week. Needless to say the number of times his flight's were cancelled or connections were missed was ridiculously high!</content>  </entry>
  <entry xml:base="http://www.pgrs.net/">
    <author>
      <name>JoshG</name>
    </author>
    <id>tag:www.pgrs.net,2008-02-26:914:1096</id>
    <published>2008-03-12T14:48:30Z</published>
    <updated>2008-03-12T14:48:30Z</updated>
    <link href="http://www.pgrs.net/2008/2/26/reducing-build-time" rel="alternate" type="text/html"/>
    <title>Comment on 'Reducing build time' by JoshG</title>
<content type="html">G'day mate,

As you will remember from reading our December Innovation Newsletter ;-) my suggestions to solve the underlying problem is to test and build _less_.

JTestMe helps by letting you have very fast feedback from smoke tests that only test what you've just changed. Less to test (initially).

Breaking the application down into smaller, composable pieces is also a good idea. Less to build and test :-)

Cheers,
Josh</content>  </entry>
  <entry xml:base="http://www.pgrs.net/">
    <author>
      <name>anonymous coward</name>
    </author>
    <id>tag:www.pgrs.net,2007-10-08:91:1066</id>
    <published>2008-03-10T13:38:40Z</published>
    <updated>2008-03-10T13:38:40Z</updated>
    <link href="http://www.pgrs.net/2007/10/8/useful-unix-tricks-part-2" rel="alternate" type="text/html"/>
    <title>Comment on 'Useful unix tricks - part 2' by anonymous coward</title>
<content type="html">On example one, using `less` instead of `tail`:

I don't agree that it should be considered a good practice.  The number one reason is the line tracking functionality of `less`.  When you `less` a very large file - as /var/log/messages tends to get to be - you may then have to wait on the system to catch up while it numbers all the lines in the file.

Instead, my recommendation is to create a `tail` alias by doing this:
echo 'alias tail=&quot;tail -n 1000&quot;' &gt;&gt; /etc/profile</content>  </entry>
  <entry xml:base="http://www.pgrs.net/">
    <author>
      <name>Nikolai</name>
    </author>
    <id>tag:www.pgrs.net,2007-10-08:91:1026</id>
    <published>2008-03-05T19:01:57Z</published>
    <updated>2008-03-05T19:01:57Z</updated>
    <link href="http://www.pgrs.net/2007/10/8/useful-unix-tricks-part-2" rel="alternate" type="text/html"/>
    <title>Comment on 'Useful unix tricks - part 2' by Nikolai</title>
<content type="html">Good examples, thanks. I did not know about the last one :)

The above user is correct, there is no dash in &quot;ps f&quot; command. the &quot;ps -f&quot; command is basically the same as &quot;ps&quot;; it prints some extra info.</content>  </entry>
  <entry xml:base="http://www.pgrs.net/">
    <author>
      <name>Chris</name>
    </author>
    <id>tag:www.pgrs.net,2008-02-26:914:1016</id>
    <published>2008-03-04T21:52:56Z</published>
    <updated>2008-03-04T21:52:56Z</updated>
    <link href="http://www.pgrs.net/2008/2/26/reducing-build-time" rel="alternate" type="text/html"/>
    <title>Comment on 'Reducing build time' by Chris</title>
<content type="html">I've had great success with seriously increasing the speed of selenium test suites by making the application under development set suitable cache-control headers in responses, enabling the browser to cache content.  500x so on one project.

You have to be a little more careful to clean your caches at the start of each build, but it's well worth the effort.

There's also a catch with Firefox - by default selenium disables both disk AND memory caching (huh?!) in Firefox.  This can be fixed, but I don't remember how right now...</content>  </entry>
  <entry xml:base="http://www.pgrs.net/">
    <author>
      <name>Mark Wilden</name>
    </author>
    <id>tag:www.pgrs.net,2008-02-26:914:922</id>
    <published>2008-02-26T17:29:03Z</published>
    <updated>2008-02-26T17:29:03Z</updated>
    <link href="http://www.pgrs.net/2008/2/26/reducing-build-time" rel="alternate" type="text/html"/>
    <title>Comment on 'Reducing build time' by Mark Wilden</title>
<content type="html">Thanks a lot for this - good stuff.

However, 'rake spec --trace' doesn't seem to show task timings for me. Is there something else?

On the other hand, we just added

--format
profile

to our spec.opts, and that showed us the top 10 slowests specs, which was very useful.

///ark</content>  </entry>
  <entry xml:base="http://www.pgrs.net/">
    <author>
      <name>isecore</name>
    </author>
    <id>tag:www.pgrs.net,2007-10-08:91:911</id>
    <published>2008-02-25T23:54:34Z</published>
    <updated>2008-02-25T23:54:34Z</updated>
    <link href="http://www.pgrs.net/2007/10/8/useful-unix-tricks-part-2" rel="alternate" type="text/html"/>
    <title>Comment on 'Useful unix tricks - part 2' by isecore</title>
<content type="html">Ghettohaxor: There's no dash (-) in the command. Just &quot;ps f&quot; without the quotes.

As for lsof, that's one powerful command. There's very few things you can't find out about your machine using that command.</content>  </entry>
  <entry xml:base="http://www.pgrs.net/">
    <author>
      <name>StarTrader</name>
    </author>
    <id>tag:www.pgrs.net,2008-02-21:860:871</id>
    <published>2008-02-22T16:18:57Z</published>
    <updated>2008-02-22T16:18:57Z</updated>
    <link href="http://www.pgrs.net/2008/2/21/activerecord-serialize-only-saves-data" rel="alternate" type="text/html"/>
    <title>Comment on 'ActiveRecord serialize only saves data' by StarTrader</title>
<content type="html">Yep, I've run into this as well.  One of the places I've been bit most often is something like:

  hash = Hash.new([])

Everything works fine until it comes back from the database and forgets that it needs to return an empty array for unknown keys. 'NoMethodError: undefined method `&amp;lt;&amp;lt;' for nil:NilClass' is the usual result.  

I've not found a good way around this yet.</content>  </entry>
  <entry xml:base="http://www.pgrs.net/">
    <author>
      <name>Matt Williams</name>
    </author>
    <id>tag:www.pgrs.net,2008-02-21:860:863</id>
    <published>2008-02-21T14:14:38Z</published>
    <updated>2008-02-21T14:14:38Z</updated>
    <link href="http://www.pgrs.net/2008/2/21/activerecord-serialize-only-saves-data" rel="alternate" type="text/html"/>
    <title>Comment on 'ActiveRecord serialize only saves data' by Matt Williams</title>
<content type="html">You might also consider looking at java2java -- it will dump to a string the current code of a class; I think it may work on objects as well.</content>  </entry>
  <entry xml:base="http://www.pgrs.net/">
    <author>
      <name>Ghettohaxor</name>
    </author>
    <id>tag:www.pgrs.net,2007-10-08:91:857</id>
    <published>2008-02-20T19:17:40Z</published>
    <updated>2008-02-20T19:17:40Z</updated>
    <link href="http://www.pgrs.net/2007/10/8/useful-unix-tricks-part-2" rel="alternate" type="text/html"/>
    <title>Comment on 'Useful unix tricks - part 2' by Ghettohaxor</title>
<content type="html">the ps -f flag doesnt work in most unix clones. it doesnt work in FreeBSD for example.</content>  </entry>
  <entry xml:base="http://www.pgrs.net/">
    <author>
      <name>paco</name>
    </author>
    <id>tag:www.pgrs.net,2008-01-23:536:850</id>
    <published>2008-02-20T08:40:11Z</published>
    <updated>2008-02-20T08:40:11Z</updated>
    <link href="http://www.pgrs.net/2008/1/23/remove-files-that-are-not-in-subversion" rel="alternate" type="text/html"/>
    <title>Comment on 'Remove files that are not in subversion' by paco</title>
<content type="html">I like to use awk instead of cut in these situations, sometimes cut + whitespaces are evil :-P

Here you are my line:

svn st |grep ^\?| awk '{print $2}'|xargs rm</content>  </entry>
  <entry xml:base="http://www.pgrs.net/">
    <author>
      <name>Techdudes.blogspot</name>
    </author>
    <id>tag:www.pgrs.net,2007-10-08:91:846</id>
    <published>2008-02-19T06:58:36Z</published>
    <updated>2008-02-19T06:58:36Z</updated>
    <link href="http://www.pgrs.net/2007/10/8/useful-unix-tricks-part-2" rel="alternate" type="text/html"/>
    <title>Comment on 'Useful unix tricks - part 2' by Techdudes.blogspot</title>
<content type="html">Good one.

but i want some more on cygwin...
i am winXP user and using cygwin for my scripting needs...
so it will be very good if you can provide detailed one on cygwin and which packages i need to install on windows.

Techdudes.</content>  </entry>
</feed>
