Click to See Complete Forum and Search --> : Need programming project to focus on today...


TheLinuxDuck
12-06-2001, 11:40 AM
<whine>
I'm sick of trying to get this stoopid database thingie to work on CCAE.. I d/led all the jibs necessary for using DBD_CSV, but when I try to open the database and list it's contents, I get nada.. and it's just frustrating me...

I haven't been able to figure out how to print an image in java that looks even partially decent, so I have put that project on the back burner, too.

I finally figured out how to do base conversions in python (http://www.codeexamples.org/tld/BaseConversion.py), so that is done.

I don't wanna get bored today and watch the clock tick slowly by..

::sigh::

</whine>

bwkaz
12-06-2001, 12:04 PM
Learn either Qt or GTK+ and write Minesweeper. I'm going to do that eventually (even though KDE comes with a Qt version of Minesweeper).

TheLinuxDuck
12-06-2001, 12:10 PM
The only platform that I have to code with a GUI is windows, and I haven't found a compiler that I like yet for it. My slack box (running CCAE) doesn't have any GUI stuff installed. I didn't see a point..

Thanks for the suggestions, though... my big trouble is that whatever I start working on, I have to really want to do it, otherwise, I'll slop it, and won't try to do a real good job.

bwkaz
12-06-2001, 01:33 PM
Originally posted by TheLinuxDuck:
<STRONG>The only platform that I have to code with a GUI is windows, and I haven't found a compiler that I like yet for it. My slack box (running CCAE) doesn't have any GUI stuff installed. I didn't see a point..

Thanks for the suggestions, though... my big trouble is that whatever I start working on, I have to really want to do it, otherwise, I'll slop it, and won't try to do a real good job.</STRONG>

Then learn ncurses or whatever and write a console version of Minesweeper (note, I have no idea how one would do the interface, but it'd be cool to have a console-only Minesweeper!).

Or don't. If you don't really want to, like you said, you probably either won't finish it or won't do it very well.

But I think it'd be a good way to get rid of boredom, at least for the moment. ;)

kmj
12-06-2001, 02:26 PM
write a program that determines the length of material you need to frame a picture of porportions x,y; where the material has a width of z.

I.e. if you had a 2'x4' painting, and you wanted a 3" (1/4')wide frame around it, how long would the framing material have to be?

edit - and you have to do it in python, ruby, o'caml, j, or lisp.

[ 06 December 2001: Message edited by: kmj ]

Strike
12-06-2001, 04:33 PM
#!/usr/bin/env python

x = raw_input('Enter width: ')
y = raw_input('Enter height: ')
fw = raw_input('Enter framing width: ')

x = float(x)
y = float(y)
fw = float(fw)

x = x + (2*fw)
y = y + (2*fw)

p = (2*x) + (2*y)

print 'Frame length: %.2f' % p


I could also make it calculate the amount of material needed with a given frame width (assuming the "frame width" asked for is the width from the picture to the inside of the framing material). But this works :) It basically just gives the perimeter, and not the true length of material (unless the material is of width 0 :))

[ 06 December 2001: Message edited by: Strike ]

jemfinch
12-06-2001, 05:20 PM
Write a generic asynchronous networking framework (like asyncore in Python.) It's always fun to see how much performance you tease out of such a framework.

Jeremy

Whipping Boy
12-06-2001, 06:23 PM
An EXCELLENT IDE for Windows is Bloodshed Dev-C++. It uses mingw as its compiler.

George Kilroy
12-06-2001, 07:42 PM
Make a program that calculates Nth prime (well commented of course). I will be your friend (and steal your code for my own little project, hehehe).

Care to hear the totally crazy program I was trying to make? If a any of you listen to me, it will be a first. :)

I was working in javascript a while back on making a program that would print out ALL possible combinations of a word of nine letters or less. Of cource it would only print a few hundred at a time. How it worked? The word's letters were each assigned a number, 1st letter to 1, 2nd letter to 2, and so on. Then the program takes the number 123456789 (which will take the place of the word typed in) and add 9 to that number. Then that number (123456798) is split up into 1,2,3,4,5,6,7,9,8. If each of these number's Nth primes = some big huge number which I forget, then it is kept. If not then it is rejected and the computer adds 9 to that number and trys that number. As a number is kept the numbers are then transfered back into the letters. So if someone typed "Graemlins," the next thing that the program would print would be "Graemlisn." Yes I do realize that there is 64million(+/-) combinations and if I tried to print them all at once your computer might blow up. That is why I would make the user of the program first select a starting point at for which combination to start at and only print a certain amount of the combinations after that. (123456789+(9*n)), where n is the users starting choice.

Gnu/Vince
12-06-2001, 10:47 PM
Make a program in C or in Assembly that will compute the factorial of 65,536 (answer here (http://darkhost.mine.nu:81/fact65536.txt)).