User contributions for Egge

A user with 451 edits. Account created on 5 May 2006.
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)

5 November 2008

12 October 2008

10 October 2008

2 October 2008

1 October 2008

  • 03:3103:31, 1 October 2008 diff hist +1,153 Nm Java Proper CaseNew page: A quick search on how to proper case or title case a Java string returned a number way to approach this problem. In C/assembly you can do the replacement in place, and very fast using bit...

30 September 2008

  • 23:1523:15, 30 September 2008 diff hist +1,981 Nm Timeago.rbNew page: Here's yet another timeago function which I found, for those who don't want to include a full Rails framework in your Ruby script. Sorry - I don't remember where I copied this function fr... current

29 September 2008

28 September 2008

26 September 2008

  • 05:1505:15, 26 September 2008 diff hist +10,217 Nm Log4j file rotationNew page: If you have an application writing to a log file using log4j, under what circumstances could the log rotation cause the hosting process to fail? I spent some time investigation this tod...

24 September 2008

21 September 2008

  • 21:1621:16, 21 September 2008 diff hist +2,802 Nm Nothing Compares to YouNew page: One of my frequent pain points with Java Generics concerns the '''Comparable''' interface. In pre-generics, the Comparable interface can be specified at multiple points within an inherita... current

17 September 2008

  • 07:1207:12, 17 September 2008 diff hist +510 Nm Python TipsNew page: Python takes some getting used to. The clean syntax is great, but it has some things which a Java or Ruby programmer might not guess. == How to tell if an object is None == This won't...

15 September 2008

14 September 2008

10 September 2008

9 September 2008

8 September 2008

  • 23:5923:59, 8 September 2008 diff hist +510 Nm Excel UndoNew page: The [http://en.wikipedia.org/wiki/VisiCalc first spreadsheet] came out in 1979. I can't believe it's 2008 and the leading spreadsheet program can't get the '''undo''' function right. I a...

7 September 2008

2 September 2008

1 September 2008

  • 20:2820:28, 1 September 2008 diff hist +214 Nm Ruby One LinersNew page: Parse Awstats html output. <geshi lang="ruby"> ruby -ne 'if $_ =~ /href="http:\/\/www.theeggeadventure.com\/(.*?)".*?([0-9]+).*?([0-9.]+) KB/ then puts "#{$1}\t#{$2}\t#{$3}" end ' \ < aws...

31 August 2008

27 August 2008

13 August 2008

  • 20:0620:06, 13 August 2008 diff hist +224 Nm SingletonListNew page: Instead of writing <geshi lang="java"> List<String> list = new ArrayList(); list.add(item); </geshi> You can simply write: <geshi lang="java"> List<String> list = Collections.singletonLis... current

5 August 2008

4 August 2008

  • 21:3021:30, 4 August 2008 diff hist +743 Nm PfilesNew page: Solaris 10 doesn't come with lsof, and a non-root user can't compile and run lsof. However, the '''pfiles''' command in Solaris 10 can offer similar functionality. Unfortunately, it does...

30 July 2008

28 July 2008

27 July 2008

25 July 2008

20 July 2008

18 July 2008

  • 00:1300:13, 18 July 2008 diff hist +899 Nm GettextNew page: I've spend the past week attempting to recompile [http://www.gnu.org/software/gettext/ gettext] 0.17 for Solaris 10 x86. I've had this compiled before, but I decided to recompile it with ... current

9 July 2008

  • 01:1701:17, 9 July 2008 diff hist +3,218 Nm String Concatenation optimizationNew page: I often see developers needlessly using StringBuffer.append in preference to the built in string concatenation operator. This is based on the idea that the "+" operator always creates a n...

26 June 2008

  • 08:1608:16, 26 June 2008 diff hist +1,314 Nm X extends ExceptionNew page: In response to [http://nat.truemesh.com/archives/000738.html Generic Throws: Another Little Java Idiom] Unfortunately, the "X extends Exception" falls apart fairly quickly with the curren... current

22 June 2008

20 June 2008

15 June 2008

13 June 2008

22 May 2008

  • 01:4601:46, 22 May 2008 diff hist +529 Nm Mod expiresNew page: My Apache2 mod_expires headers: <pre> <IfModule mod_expires.c> ExpiresActive On ExpiresDefault A86400 ExpiresByType image/x-icon A2592000 ExpiresByType application/x-javascript A2...
  • 00:1300:13, 22 May 2008 diff hist +5,607 N CoralCDNNew page: Recently, I've started using the [http://developer.yahoo.com/yslow/ YSlow] tool to optimize websites for speed. One of the recommendations of YSlow is to use a [http://en.wikipedia.org/wi... current

21 May 2008

14 May 2008

(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)