User contributions for Egge
29 June 2009
- 20:3220:32, 29 June 2009 diff hist +140 Nm Find world writeable directories Created page with 'Test to make your system is secure! <geshi lang="bash"> find /home -type d -perm -007 -ls </geshi> Category:Bash Category:Security' current
28 June 2009
- 21:5321:53, 28 June 2009 diff hist +297 Nm Ruby regular expressions Created page with 'Comments are one of the great, yet little used, features of modern regular expression engines. Consider the following: <geshi lang="ruby"> "Ruby is fun" =~ /(?#a)r(?#e you able…' current
- 03:3603:36, 28 June 2009 diff hist −9 m Robots.txt No edit summary current
- 03:3503:35, 28 June 2009 diff hist +650 m Robots.txt No edit summary
25 June 2009
- 20:5820:58, 25 June 2009 diff hist +244 Nm Vim arrow keys New page: Using rxvt and vim 7.1, sometimes the arrow keys produce 'A', 'B', 'C', 'D' instead of navigating. Adding this to my ~/.vimrc seems to fix the problem. <geshi lang="bash"> :set term=built...
- 07:2607:26, 25 June 2009 diff hist −1 m Stack Overflow page design →header current
- 00:5200:52, 25 June 2009 diff hist +17 m Main Page No edit summary
- 00:5100:51, 25 June 2009 diff hist +19 m Stack Overflow page design No edit summary
- 00:4600:46, 25 June 2009 diff hist +249 m Stack Overflow page design No edit summary
- 00:4200:42, 25 June 2009 diff hist +1,903 m Stack Overflow page design No edit summary
24 June 2009
- 23:0523:05, 24 June 2009 diff hist +3,088 Nm Stack Overflow page design New page: == What do the smart people at Stack Overflow put in their HTML pages? == === header === <code> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd" >...
- 02:0402:04, 24 June 2009 diff hist +397 m Encrypt a file No edit summary
23 June 2009
- 21:5621:56, 23 June 2009 diff hist +1,209 Nm Oracle DBMS OUTPUT.PUT LINE New 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
- 20:4320:43, 18 June 2009 diff hist +17,176 m Solaris binary files quick reference No edit summary
17 June 2009
- 23:5423:54, 17 June 2009 diff hist +23 m Create vintage image online No edit summary current
- 23:5323:53, 17 June 2009 diff hist 0 N File:Vintage.jpg No edit summary current
- 23:5323:53, 17 June 2009 diff hist +648 Nm Create vintage image online New page: I needed to create an vintage version of a couple of existing images for a project. Since I don't have GIMP installed on my machine, I wanted to use an online tool. I should have used a ...
10 June 2009
- 21:3221:32, 10 June 2009 diff hist +55,102 Nm Solaris binary files quick reference New page: '''file''' - determine what kind of executable you have <geshi lang="bash"> $ file /usr/bin/ssh /usr/bin/ssh: ELF 32-bit LSB executable 80386 Version 1, dynamically linked, stripped </g...
8 June 2009
- 21:2021:20, 8 June 2009 diff hist +1,303 Nm Using mkfifo and netcat to redirect a file to a remote machine New page: On a resource bound server we had an issue where there wasn't enough disk space or RAM to record the log files. Our vendor wanted a record of our logs, with the logging turned up to the m... current
3 June 2009
- 00:3700:37, 3 June 2009 diff hist +649 Nm Bash completion New 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
- 21:4021:40, 2 June 2009 diff hist 0 N File:Cygwin-sqlite.PNG No edit summary current
- 21:4021:40, 2 June 2009 diff hist +632 Nm Sqlite ruby cygwin New page: To get sqlite 3 running in ruby under Cygwin, I followed these steps: 1. Install libsqlite3_0 and libsqlite3-devel from the Cygwin setup. <br> Image:cygwin-sqlite.PNG 2. Installed th...
26 May 2009
- 02:0502:05, 26 May 2009 diff hist +972 m Ruby Solaris Install No edit summary current
25 May 2009
- 20:5620:56, 25 May 2009 diff hist +712 m 10 Things I've Learned from other Languages No edit summary current
15 May 2009
- 20:5320:53, 15 May 2009 diff hist +224 m Ruby mXML error No edit summary current
- 09:5409:54, 15 May 2009 diff hist +6 m Ruby Tips →Shuffle a list of numbers
- 09:4509:45, 15 May 2009 diff hist +853 Nm Ruby mXML error New page: I received this error on my Mac OSX 10.5 After using Mac Ports to install Ruby, and then installing Ruby gems 1.3.3, I received this error when installing rubyosa. <geshi lang="bash"> $...
23 March 2009
- 01:2701:27, 23 March 2009 diff hist +1,825 Nm Javascript callback recursion New 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 time New 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
- 00:4900:49, 2 March 2009 diff hist +1,169 m Encrypt a file No edit summary
23 February 2009
- 18:0818:08, 23 February 2009 diff hist +3,037 Nm Sybase Packet Trace New 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
- 15:5915:59, 18 February 2009 diff hist +21 m Sybase Wait Time No edit summary current
- 15:5815:58, 18 February 2009 diff hist +3,820 Nm Sybase Wait Time New page: View Sybase wait statistics. <pre> select m.WaitEventID, Description, Waits, WaitTime from master..monSysWaits m, master..monWaitEventInfo i where m.WaitEventID = i.WaitEventID order by W...
16 February 2009
- 01:0201:02, 16 February 2009 diff hist +246 Nm Encrypt a file New 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 IO New 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
- 21:3721:37, 7 January 2009 diff hist +106 m Solaris tar No edit summary current
2 January 2009
- 01:5501:55, 2 January 2009 diff hist +190 m Java Tips →replaceAll Backreferences
23 December 2008
- 18:5818:58, 23 December 2008 diff hist +1,244 Nm Lesspipe.sh New page: http://www-zeuthen.desy.de/~friebel/unix/lesspipe.html lesspipe is a input filter for the less pager. Recently I asked the author about supporting '''wget''' and he provided me this p... current
11 December 2008
- 23:0323:03, 11 December 2008 diff hist +449 Nm Testing firewall rules with netcat New page: It's quite easy to test to see if a firewall will allow traffic on a specific port if you have control of the server behind the firewall. Example: On the remote side, listen to a port: <... current
- 22:0022:00, 11 December 2008 diff hist +15 m Reformat Java Sql No edit summary current
- 21:4521:45, 11 December 2008 diff hist +397 Nm Reformat Java Sql New page: Occasionally, I come across a large multi-line SQL block inside Java code. The following sed one liner takes the code off from my clipboard, tidies it up, and puts it back in the clipboar...
- 19:4019:40, 11 December 2008 diff hist +274 Nm Transmit error: code 1314 New page: <geshi> $ tracert somehost Tracing route to somehost.pc.internal.bigbank.com [10.202.60.244] over a maximum of 30 hops: 1 Transmit error: code 1314. Trace complete. </geshi> The e... current
8 December 2008
- 22:0122:01, 8 December 2008 diff hist +191 m DaCapo No edit summary
4 December 2008
- 18:1318:13, 4 December 2008 diff hist +74 m String Concatenation optimization No edit summary
3 December 2008
- 02:2002:20, 3 December 2008 diff hist +2,884 Nm And vs Modulo performance New 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.4 New 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:1421:14, 23 November 2008 diff hist +19 m EqualityTestCase No edit summary
21 November 2008
- 02:0502:05, 21 November 2008 diff hist +870 Nm How to upload large data to a web server New page: One area where applications are often vulnerable is attacks which post large amounts of data to the server. The server might be expecting only a user name, and may fail if given a large a... current
11 November 2008
- 04:3104:31, 11 November 2008 diff hist +375 m BITS No edit summary current
- 02:2102:21, 11 November 2008 diff hist +2,425 Nm BITS New 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
- 22:4022:40, 5 November 2008 diff hist +37 m HttPerf No edit summary
- 22:3922:39, 5 November 2008 diff hist +480 m HttPerf No edit summary
12 October 2008
- 17:3317:33, 12 October 2008 diff hist +18 m SwingWorker Example No edit summary current
10 October 2008
- 02:5402:54, 10 October 2008 diff hist 0 N File:Lucky2.PNG No edit summary current
- 02:5402:54, 10 October 2008 diff hist 0 N File:Lucky1.PNG No edit summary current
- 02:5302:53, 10 October 2008 diff hist +3,467 Nm SwingWorker Example New page: Here's a basic example of how to use a SwingWorker for a long running background task. Idle Image:lucky1.PNG Running Image:lucky2.PNG <geshi lang="java5"> package swingworker; ...
2 October 2008
- 18:2418:24, 2 October 2008 diff hist −6 m Use Curl to Monitor Websites No edit summary
- 03:5103:51, 2 October 2008 diff hist +641 Nm Use Curl to Monitor Websites New page: Here's a simple script which you can check to see if a website is up and responding. <geshi lang="bash"> #!/bin/bash # $1 = URL to check # $2 = expected text to be found in the page func...
1 October 2008
- 03:3103:31, 1 October 2008 diff hist +1,153 Nm Java Proper Case New 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.rb New 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
- 04:4504:45, 29 September 2008 diff hist +42 m Metasend No edit summary current
- 03:2303:23, 29 September 2008 diff hist +336 m Ruby Tips No edit summary
28 September 2008
- 23:2523:25, 28 September 2008 diff hist +328 m Solaris Tips No edit summary current
26 September 2008
- 05:1505:15, 26 September 2008 diff hist +10,217 Nm Log4j file rotation New 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
- 07:2707:27, 24 September 2008 diff hist +857 m Top 10 ways to increase traffic to your wiki No edit summary
- 07:0207:02, 24 September 2008 diff hist +178 m Python Tips No edit summary
21 September 2008
- 21:1621:16, 21 September 2008 diff hist +2,802 Nm Nothing Compares to You New 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 Tips New 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
- 20:3320:33, 15 September 2008 diff hist +1,940 Nm Java File.listFiles order New page: The documentation for the Java JDK specifically mentions that the files returns can be in any order. <blockquote> There is no guarantee that the name strings in the resulting array...
- 03:1203:12, 15 September 2008 diff hist +154 m Linux Tips No edit summary
- 02:1102:11, 15 September 2008 diff hist +266 m Javax.net.debug No edit summary
- 02:0802:08, 15 September 2008 diff hist −39 m Top 10 ways to increase traffic to your wiki No edit summary
- 02:0402:04, 15 September 2008 diff hist +880 m Top 10 ways to increase traffic to your wiki No edit summary
14 September 2008
- 22:2722:27, 14 September 2008 diff hist +470 m Ruby One Liners No edit summary current
10 September 2008
- 19:1119:11, 10 September 2008 diff hist +20 m HttPerf No edit summary
- 19:1019:10, 10 September 2008 diff hist +21 N HttpPerf HttpPerf moved to HttPerf current
- 19:1019:10, 10 September 2008 diff hist 0 m HttPerf HttpPerf moved to HttPerf
- 19:1019:10, 10 September 2008 diff hist +22 N Httpref Httpref moved to HttpPerf: Misspelled current
- 19:1019:10, 10 September 2008 diff hist 0 m HttPerf Httpref moved to HttpPerf: Misspelled
- 02:2802:28, 10 September 2008 diff hist +198 m IPhone Annoyances No edit summary current
9 September 2008
- 21:5921:59, 9 September 2008 diff hist +19 m Forking Classloader No edit summary current
- 21:5621:56, 9 September 2008 diff hist +5,357 Nm Forking Classloader New page: The other day we were having an issue with a JBoss container, which has about 30 war & ear files deployed (not counting the bundled deployments like Tomcat). One of the ear's occasionally...
- 00:0100:01, 9 September 2008 diff hist 0 N File:Excel cant undo.PNG No edit summary current
- 00:0000:00, 9 September 2008 diff hist +6 m Excel Undo No edit summary current
8 September 2008
- 23:5923:59, 8 September 2008 diff hist +510 Nm Excel Undo New 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
- 08:1108:11, 7 September 2008 diff hist +7 m Slicehost No edit summary
- 08:1008:10, 7 September 2008 diff hist +184 m Slicehost No edit summary
2 September 2008
- 19:1119:11, 2 September 2008 diff hist +467 m Pfiles No edit summary current
- 19:0519:05, 2 September 2008 diff hist +914 m Java Unique List No edit summary
1 September 2008
- 20:2820:28, 1 September 2008 diff hist +214 Nm Ruby One Liners New 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
- 23:5323:53, 31 August 2008 diff hist +12 m Java Unique List No edit summary
- 18:5118:51, 31 August 2008 diff hist +190 m Mimetex No edit summary
27 August 2008
- 02:3602:36, 27 August 2008 diff hist +20 m IPhone Annoyances No edit summary
13 August 2008
- 20:0620:06, 13 August 2008 diff hist +224 Nm SingletonList New 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
- 02:4702:47, 5 August 2008 diff hist +630 m IPhone Annoyances No edit summary
4 August 2008
- 21:3021:30, 4 August 2008 diff hist +743 Nm Pfiles New 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
- 20:4120:41, 30 July 2008 diff hist +8 m Ruby sort ps No edit summary current
- 20:4120:41, 30 July 2008 diff hist +13 m Ruby Yaml to Enum No edit summary
- 20:4120:41, 30 July 2008 diff hist +5 m Ruby Tips No edit summary
- 20:4020:40, 30 July 2008 diff hist +32 m Ruby Patch to Zip No edit summary current