# User talk:Sweepline

Tell us something about yourself! =)Larry 19:11, 14 Dec 2005 (EST)

Just a note... When creating a new problem, start editing an empty page, type {{subst:problem}} and save the page. This will create the page using the current problem template. I get the impression that you are only copying an older version of the template from some other problem. --Misof 10:56, 10 Jan 2006 (EST)

Hey, how do you create stuff like ? I want to add neat diagrams to some things, but haven't found an app that can quite do it to my liking.. Larry 16:48, 27 Oct 2006 (EDT)

Actually, to make this picture, I wrote a program which generated a random set of points, computed their convex hulls, and produced a postscript code. Then I just converted it to png, and added labels with mspaint. Sweepline 13:25, 28 Oct 2006 (EDT)
These days I would have just used Inkscape instead to draw stuff like that. Sweepline 17:00, 2 April 2009 (UTC)

##  Testing

```#!/usr/local/bin/python

import sys

# If no arguments were given, print a helpful message
if len(sys.argv)==1:
print 'Usage: celsius temp1 temp2 ...'
sys.exit(0)

# Loop over the arguments
for i in sys.argv[1:]:
try:
fahrenheit=float(int(i))
except ValueError:
print repr(i), "not a numeric value"
else:
celsius=(fahrenheit-32)*5.0/9.0
print '%i\260F = %i\260C' % (int(fahrenheit), int(celsius+.5))```

Larry 13:32, 2 April 2009 (UTC)

Great, thanks! Sweepline 16:53, 2 April 2009 (UTC)

Thanks for the time and date template!

I just learned more about templates recently, and was going to convert the tables (UVa problem directory listings) at some point, but this is definitely way more useful!

--Larry 14:31, 22 June 2009 (UTC)

I'm glad you liked it! - Sweepline 03:58, 23 June 2009 (UTC)