Siafoo

the intersection of pastebin, help desk, version control, and social networking

More Info & Screenies Demos Browse the Site Recent Activity

Options Subscribe
Recent Activity
06 February 2010 1 1
Edit David Underhill edited the Python snippet “Automatic replacement of logging statements with pass (and vice versa)
three days ago at 09:13 PM
" fixed bug in my reST syntax; added a link to an article explaining the motivation of this snippet " diff
David Underhill posted the Python snippet “Automatic replacement of logging statements with pass (and vice versa)
three days ago at 08:48 PM
This script parses a Python file and comments out logging statements, replacing them with a pass statement (or vice versa). The purpose of commenting out these statements is to improve performance.... more
05 February 2010 1 2
Comment David Underhill commented on the article “Python Tips, Tricks, and Hacks
four days ago at 04:35 PM
" _ " reply
Comment David Underhill commented on the article “Python Tips, Tricks, and Hacks
four days ago at 04:35 PM
" You did a nice job with this article. I found the bits on decorators, generators, and any/all particularly helpful. Thanks David!David Underhillhttp://www.dound.com " reply
article “Python Tips, Tricks, and Hacks” was rated as a 5
four days ago at 04:31 PM
The new average is 4.90909 of 5.0 with 11 ratings. rate
04 February 2010 7 3 6
David posted the Python snippet “Strip HTML and XML tags
five days ago at 09:11 PM
Strips tags from a string, leaving only the text bits.
Stou S. posted the C snippet “Lennard-Jones potential Molecular dynamics monte-carlo
five days ago at 09:02 PM
This is some sort of monte-carlo simulation of 10 particles in a Lennard-Jones potential that I wrote for what appears to be thermodynamics. It uses the ROOT framework so good luck getting it to... more
Edit David edited the C snippet “Fixed Point Iteration
five days ago at 08:33 PM
David posted the C snippet “The Newton-Raphson Method
five days ago at 08:32 PM
Uses the Newton-Raphson Method to find zeros of a function.
Comment Stou S. commented on the C snippet “Finding Epsilon
five days ago at 08:27 PM
" Man I remember when I bought a 350MB Hard Drive from circuit city for around $300... " reply
Comment David commented on the C snippet “Finding Epsilon
five days ago at 08:26 PM
" holy crap... i can't imagine needing much better precision than that. I mean I'm sure there is some case, but wow. " reply
Comment Stou S. commented on the C snippet “Finding Epsilon
five days ago at 08:25 PM
" If I use long double I get 1.991227e-314 " reply
Comment David commented on the C snippet “Finding Epsilon
five days ago at 08:24 PM
" and hey, that was a $1400 computer when i bought it, remember when computers cost that much? And that didn't even include the monitor. I used the whole $1900 computer stipend the school gave us. " reply
Comment David commented on the C snippet “Finding Epsilon
five days ago at 08:23 PM
" Well, good to know that doubles really give you double precision... " reply
David posted the C snippet “Eigenvectors and Eigenvalues
five days ago at 08:20 PM
Numerically find the eigenvectors and eigenvalues of a matrix using the Power Method.
David posted the C snippet “Euclidian Norm
five days ago at 08:18 PM
Finds the euclidian norm of a matrix you specify.
Comment Stou S. commented on the C snippet “Finding Epsilon
five days ago at 08:17 PM
" Wow a 533Mhz Power Mac G4 you must be a real "Power User" (Who remembers the Mac Performa commercials from the late 90s?). For my machine I get 5.960465e-08 but if I change the datatypes to doubles... more " reply
Edit David edited the C snippet “Finding Epsilon
five days ago at 08:16 PM
" added public domain note to code " diff
David posted the C snippet “Fixed Point Iteration
five days ago at 08:15 PM
Find zeros of a function near a given point.
Edit David edited the C snippet “Finding Epsilon
five days ago at 08:13 PM
" Removed info about the class i wrote this for : ) " diff
David posted the C snippet “Finding Epsilon
five days ago at 08:12 PM
Find the machine epsilon of a computer, that is, the smallest number E such that 1+E != 1 . (using single precision only)
03 February 2010 3
Edit David edited the Diff snippet “Patch Trac to allow arbitrary project properties
3 February at 11:17 AM
" Added link to snippet 276 " diff
Edit David edited the Diff snippet “Patch Trac to allow arbitrary project properties
3 February at 11:15 AM
" Added trac-hacks link " diff
Edit David edited the Python snippet “Pass arbitrary options from conf.ini to templates in Trac
3 February at 11:01 AM
" Changed infos to point to version 1.0, easy_install-ability and trac-hacks pages. " diff
01 February 2010 3 3 1
Edit David edited the article “Python Tips, Tricks, and Hacks
1 February at 12:32 PM
" Reverted the abstract. " diff
Edit David edited the article “Python Tips, Tricks, and Hacks
1 February at 12:31 PM
" Added some links to other Python articles I've written " diff
David posted the Python snippet “Print yourself
1 February at 12:05 PM
A stupid snippet that prints its own source.... more
Comment David commented on the blog entry “Siafoo has been updated
1 February at 11:39 AM
" We really did update Siafoo, despite forgetting to change the email and the what's new page! I've finally just updated the what's new page, so if you'd like, you can see everything that's changed:... more " reply
Edit Michael Case edited the blog “Ad blocking
1 February at 08:17 AM
Michael Case created the blog “Ad blocking
1 February at 08:17 AM
hehehe, hey guys, thought you'd like to know :)... more
Stou S. posted the blog entry “Siafoo has been updated
1 February at 01:06 AM
If you haven't noticed yet, Siafoo was updated on Saturday. This release brings a much cleaner home page,... more
31 January 2010 1
Comment Stou S. commented on the blog entry “Adjector
31 January at 04:20 PM
" Maybe I should clarify. GWT is an excellent toolkit, if you are using Java. GWT might also work fine with a Python backend. If you are using Java maybe SmartGWT works too. Pylons + GWT + SmartGWT... more " reply
30 January 2010 1
David posted the blog entry “Adjector
30 January at 12:01 PM
I'm glad to "officially" release our open-source ad server, Adjector.... more
29 January 2010 2 2
Stou S. posted the blog entry “Protocol Buffers and Eclipse
29 January at 08:45 PM
One of my current projects involves sending data to a remote server using Google's Protocol Buffers. PBs let you define your data using a simple definition language which is then compiled into... more
Edit Stou S. edited the Perl snippet “Encode a password for VNC access to OS X
29 January at 03:25 PM
" Fixed newlines " diff
Edit Stou S. edited the Perl snippet “Encode a password for VNC access to OS X
29 January at 03:22 PM
Stou S. posted the Perl snippet “Encode a password for VNC access to OS X
29 January at 03:21 PM
Usage:... more
27 January 2010 1
Edit newacct edited the Python snippet “Pretty Prints a Tree of Dictionaries in Python
27 January at 12:21 AM
25 January 2010 1
Edit newacct edited the Python snippet “Using precompiled headers with Scons
25 January at 11:28 PM
24 January 2010 3 1
Stou S. posted the Python snippet “Using sympy to generate C++ code for Legendre Polynomials
24 January at 11:58 PM
A bit of code for generating sums of Legendre polynomials using the SymPy framework's C++ code generating facilities.
David posted the library “TV Episode Organization
24 January at 07:30 PM
Different automated methods to rename and organize downloaded TV episodes.
Stou S. posted the Python snippet “TV Show episode organizing script
24 January at 06:09 PM
A simple script for moving TV show episodes to their appropriate folders...... more
Edit David edited the C snippet “Roll N Dice with M Sides
24 January at 11:14 AM
" I suppose this should be N dice with *M* sides... as sides not necc = to dice " diff
22 January 2010 3 1 1 1
Edit David edited the algorithm “Floyd's Cycle Detection Algorithm (The Tortoise and the Hare)
22 January at 08:02 PM
" changed title, added link to 11 " diff
David posted the algorithm “Brent's Cycle Detection Algorithm (The Teleporting Turtle)
22 January at 07:55 PM
How do you determine if your singly-linked list has a cycle? In 1980, Brent invented an algorithm that not only worked in linear time, but required less stepping than Floyd's Tortoise and the Hare... more
David posted the algorithm “Floyd's Cycle Detection Algorithm (The Tortoise and the Hare)
22 January at 07:26 PM
How do you determine if your singly-linked list has a cycle? In the late 1960s, Robert W. Floyd invented an algorithm that worked in linear (O(N)) time. It is also called Floyd's cycle detection... more
Comment David commented on the C snippet “Calculate Wind Chill
22 January at 02:29 AM
" write one with celsius and kph or m/s! unit conversion go! " reply
C snippet “Calculate PI to 17 Million Digits” was rated as a 5
22 January at 02:11 AM
The new average is 5.0 of 5.0 with 1 ratings. rate
David posted the C snippet “Calculate PI to 17 Million Digits
22 January at 01:43 AM
17 million digits in O(n^1.7), using the Salamin/Brent/Gauss arithmetic/geometric mean pi formula.
Comment Stou S. commented on the C snippet “Calculate Wind Chill
22 January at 01:35 AM
" That's pretty much what I thought. Also I find the use of imperial units offensive. " reply
Siafoo News
1 February at 01:06 AM
If you haven't noticed yet, Siafoo was updated on Saturday. This release brings a much cleaner home page,...
8 August 2009 at 10:45 PM
14 July 2009 at 12:39 PM
10 June 2009 at 03:57 PM
Random Snippet
Creates a dictionary tree from file
Creates a tree of dictionaries from a file defined by treeChar. Basically this is handy if you want to write out a tree in a plain text file and then convert it to a dictionary set in python. This...