User contributions for Egge

A user with 451 edits. Account created on 5 May 2006.
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽

20 February 2011

25 January 2010

19 October 2009

18 October 2009

17 October 2009

16 October 2009

15 October 2009

  • 00:4700:47, 15 October 2009 diff hist +673 Nm Java BasenameCreated page with 'Ruby contains a nice build in function to get the basename of a file. <geshi> File.basename('https://www.theeggeadventure.com/wikimedia/index.php') => "index.php" </geshi> The h…' current

14 October 2009

13 October 2009

  • 06:0606:06, 13 October 2009 diff hist +1,041 Nm Unix command jokesCreated page with 'Here's some funny Unix command and error messages. A few I've come up with, and the rest I've borrow. For the ones with %, they work inside of csh shell. The ones with the $ pr…' current

12 October 2009

9 October 2009

22 September 2009

21 September 2009

19 September 2009

17 September 2009

13 September 2009

12 September 2009

10 September 2009

4 September 2009

30 August 2009

22 July 2009

19 July 2009

15 July 2009

29 June 2009

28 June 2009

25 June 2009

24 June 2009

23 June 2009

  • 21:5621:56, 23 June 2009 diff hist +1,209 Nm Oracle DBMS OUTPUT.PUT LINENew page: Q: How do I view the output from DBMS_OUTPUT.PUT_LINE statements in a stored procedure. A: You can have the output sent to your screen if you run the following statement before executing ... current

18 June 2009

17 June 2009

10 June 2009

8 June 2009

3 June 2009

  • 00:3700:37, 3 June 2009 diff hist +649 Nm Bash completionNew page: Useful completion function if you have sudo to a number of users with a small number of commands. <geshi lang="bash"> _sudo() { local cur prev opts base COMPREPLY=() cur="${COMP_W... current

2 June 2009

26 May 2009

25 May 2009

15 May 2009

23 March 2009

  • 01:2701:27, 23 March 2009 diff hist +1,825 Nm Javascript callback recursionNew page: Recently, I had the misfortune to have to write some JavaScript which needed to work in IE6. Basically, I wanted to create a loading screen for a web page. Basically the code looks like:... current

8 March 2009

  • 19:4419:44, 8 March 2009 diff hist +694 Nm Average ping timeNew page: This perl one-liner sends ten 100 byte packets to '''hostname''', and then displays the average. <geshi lang="perl"> /usr/sbin/ping -s hostname 100 10 | perl -ne \ 'BEGIN{ $sum = 0.0; $c... current

2 March 2009

23 February 2009

  • 18:0818:08, 23 February 2009 diff hist +3,037 Nm Sybase Packet TraceNew page: Sometimes it's useful to view all the data being sent and received from a Sybase installation. Depending on the hardware one may be able to directly run a packet sniffer to view the traff... current

18 February 2009

16 February 2009

  • 01:0201:02, 16 February 2009 diff hist +246 Nm Encrypt a fileNew page: How to quickly encrypt a file. <geshi lang="bash"> echo "Hello world" > message.txt encrypt -a 3des -i message.txt -o message.txt.encrypted Enter key: decrypt -a 3des -i message.txt.encry...

21 January 2009

  • 00:4300:43, 21 January 2009 diff hist +334 Nm Count Logical IONew page: I append this one liner to my sqsh statement to get a count of logical io. Be sure to '''set statistics io on''' first. <geshi lang="bash">| ruby -pe ' BEGIN{@sum=0}; if $_ =~ /logical re... current

7 January 2009

2 January 2009

23 December 2008

11 December 2008

8 December 2008

4 December 2008

3 December 2008

  • 02:2002:20, 3 December 2008 diff hist +2,884 Nm And vs Modulo performanceNew page: In school I was taught the modulo operator is slow compared with bitwise operators. This is because often modulo is implemented using divide. See http://en.wikipedia.org/wiki/Modulo_oper...

24 November 2008

  • 00:2500:25, 24 November 2008 diff hist +3,039 Nm Ivy+Eclipse 3.4New page: After upgrading to Eclipse 3.4 (Ganymede), I started getting this error when attempting to run a JUnit 3 Test Suite: <pre> junit.framework.AssertionFailedError: No tests found in com.fin... current

23 November 2008

21 November 2008

11 November 2008

  • 04:3104:31, 11 November 2008 diff hist +375 m BITSNo edit summary current
  • 02:2102:21, 11 November 2008 diff hist +2,425 Nm BITSNew page: BITS is Microsoft's '''Background Intelligent Transfer Service'''. Today I wanted to install C# so I could play around with the Communicator API. So, I found the download on Microsoft's ...

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

29 April 2008

27 April 2008

7 April 2008

3 April 2008

2 April 2008

31 March 2008

30 March 2008

29 March 2008

17 March 2008

  • 05:5305:53, 17 March 2008 diff hist +1,120 N Javax.net.debugNew page: If you set "javax.net.debug" to "help" as in : <geshi lang="java"> System.setProperty("javax.net.debug","help"); </geshi> It will produce this useful help, and then cause your app to exi...

15 March 2008

14 March 2008

11 March 2008

  • 04:5304:53, 11 March 2008 diff hist +2,499 N SquidNew page: When compiling squid-3.0.STABLE1 I ran into this error <pre> $ ./configure --prefix=/app/retailtools --with-openssl=/usr/local/ssl ... config.status: creating tools/Makefile config.status... current

10 March 2008

9 March 2008

  • 17:4517:45, 9 March 2008 diff hist +1,531 HttPerfNo edit summary
  • 07:4107:41, 9 March 2008 diff hist +1,256 Nm HttPerfNew page: <geshi lang="bash"> $ httperf --timeout=5 --client=0/1 --server=www.amazon.com --port=443 --uri=/favicon.ico --rate=60 --send-buffer=4096 \ --recv-buffer=16384 --ssl --num-conns=500 --num-...

7 March 2008

4 March 2008

1 March 2008

27 February 2008

26 February 2008

25 February 2008

24 February 2008

19 February 2008

30 December 2007

19 December 2007

6 December 2007

5 December 2007

26 November 2007

18 November 2007

14 November 2007

  • 20:1920:19, 14 November 2007 diff hist +451 Nm Solaris tarNew page: When installing Tomcat I get this error on Solaris 10: <geshi lang="bash"> $ gunzip apache-tomcat-6.0.14.tar.gz && tar xf apache-tomcat-6.0.14.tar && mv apache-tomcat-6.0.14 tomcat && /bi...
  • 00:4900:49, 14 November 2007 diff hist +1,137 N Ruby sort psNew page: Today I needed to sort ps by the total CPU time. I also wanted to sum all the same type processes together. Here's the script I came up with <geshi lang="ruby"> #!/bin/env ruby # # Giv...

13 November 2007

9 November 2007

6 November 2007

5 November 2007

2 November 2007

1 November 2007

31 October 2007

30 October 2007

  • 22:3122:31, 30 October 2007 diff hist +1,657 N Solaris x64New page: Solaris 10 supports both [http://en.wikipedia.org/wiki/X86-64 32 bit and 64 bit architectures]. I installed a version of Solaris 10, using VMWare on a Windows XP 32 bit machine. Everythi...
  • 16:1416:14, 30 October 2007 diff hist +765 Nm Solaris has no idea what a podcast isNew page: I followed a link on Solaris' site to their [http://www.sun.com/training/catalog/operating_systems/zfs_podcast.xml ZFS Podcast]. I looked on the page for the RSS feed, but I only found an...

25 October 2007

23 October 2007

  • 23:3423:34, 23 October 2007 diff hist +1,122 Nm VisibrokerNew page: I was attempting to 'upgrade' to Visibroker 7.0. I started receiving this error message from within ant when running idl2java: <pre> idl2java: [exec] <internal>: unrecoverable erro...

18 October 2007

17 October 2007

15 October 2007

14 October 2007

10 October 2007

9 October 2007

7 October 2007

4 October 2007

3 October 2007

1 October 2007

30 September 2007

28 September 2007

27 September 2007

23 September 2007

30 July 2007

28 July 2007

26 July 2007

20 July 2007

17 July 2007

16 July 2007

15 July 2007

14 July 2007

7 July 2007

5 July 2007