• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Recent content by unibrow1990

  1. unibrow1990

    What distro are you running?

    Fedora - Main rig and server. Puppy - On my flash drive always. Android - My phone :)
  2. unibrow1990

    Fedora 13 (Goddard) Officially out!!

    Awesome, I've been using Fedora 12 with KDE for a couple months now and I like it way better than Ubuntu. Trying to decide whether to jump right to 13 or wait a bit though :confused:
  3. unibrow1990

    Python, there a metacharacter for the statement to match anything?

    To use regex in python you need to import the 're' module, and the '.' metacharacter is the one you want to use to match anything. However In this case I think you want to use the built in fnmatch module: http://docs.python.org/library/fnmatch.html
  4. unibrow1990

    Help with make error/compiling from source

    Thank you 933k, that solution worked perfectly. :toast:
  5. unibrow1990

    Help with make error/compiling from source

    I have been pulling my hair out all night over this. So i need to install a package called SWIG on my fedora 12 box. Unfortunatly for me I need a specific version of that package: 1.3.38 or lower and the only version availible in the fedora repositories is 1.3.40 meaning I have to compile the...
  6. unibrow1990

    Linux/Unix ?

    It really is trivial to install linux in a dual boot setup if windows is already installed, the easiest way I have found is to use the windows disk management utility to shrink your windows partition and free up the amount of space you want for linux, then just instruct the linux installer to...
  7. unibrow1990

    What programming language/environment is suitable to teach young children

    Just a note about python, It also has turtle graphics included into it as a package. Logo looks like a great learning language, but python has the advantage of being good for instruction and practical for application development. Turtle graphics for python...
  8. unibrow1990

    What programming language/environment is suitable to teach young children

    Python is a great teaching language, it is very easy to understand and use and it has great syntax. There is also a huge knowlegebase of free python learning material available on the web to get anyone started.
  9. unibrow1990

    It's fine, this gives me a chance to pick up another programming language for my arsenal. And...

    It's fine, this gives me a chance to pick up another programming language for my arsenal. And don't feel bad when you don't get something, programming, especially in a LISP dialect, isn't always intuitive.
  10. unibrow1990

    (Scheme) Computer science @ school..

    Scheme has an "and" statement (and form1 form2) It also has or and not:(or form1 form2) (not form)
  11. unibrow1990

    (Scheme) Computer science @ school..

    As far as I can tell you use "set!" in scheme to assign a new value to a variable that has been declared, so you should be able to use that along with an if statement to solve part III really easily. You don't even need "set!" just "if" and the literal values for true and false. If you are...
  12. unibrow1990

    (Scheme) Computer science @ school..

    Awesome :) Just a quick question, where do go to school that they teach you to program using scheme? Also as for not knowing the language, in this particular problem there was virtually no difference between scheme and common lisp(which I know fairly well) otherwise I would have been clueless...
  13. unibrow1990

    (Scheme) Computer science @ school..

    Thats great, your solution seems to wok perfectly and it's different from the two I came up with, just shows what I mean about there always being many ways to solve the same problem. Both of my solutions are in the post above yours.
  14. unibrow1990

    (Scheme) Computer science @ school..

    I came up with a second solution that doesn't use let*, and is based on what you posted above I will post both as spoilers in case you still want to figure is out for yourself. If you want further explanation of any point just ask.
  15. unibrow1990

    (Scheme) Computer science @ school..

    I think you are very close, but to be perfectly honest the problem is going to be much cleaner and easier to solve if you use at least 1 more variable, i.e a variable to hold the number of coins you used so far and one to hold the amount of change you still need to break down. You can do it the...
Top