Search:

Type: Posts; User: sharpdust; Keyword(s):

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds; generated 54 minute(s) ago.

  1. Replies
    31
    Views
    4,709

    Re: Beginner's Programming Challenge 18

    Correct me if I'm wrong, but is this not an exact duplicate of a previous challenge?
    See: http://ubuntuforums.org/showthread.php?t=772016
  2. Replies
    8
    Views
    19,714

    Re: how do i install ruby 1.9.2

    Where are you intending to install it? The 1.9.1 stuff exist there for comparability reasons, see the FAQ on this page.
  3. Replies
    4
    Views
    1,379

    Re: Bash and X and Window Managers.

    I don't think you can switch window managers without logging out of X first.

    You can define what window manager runs first (as well as starting other apps) in your .xinitrc file
    # .xinitrc...
  4. Replies
    18
    Views
    52,701

    Re: Can't install Ruby on Rails

    To the original poster: Rails is not compatible with ruby 1.9.1, you have to use 1.9.2 or 1.8.7.

    Try installing libzlib-ruby from apt-get.

    If that doesn't work, then install with rvm which is...
  5. Replies
    8
    Views
    19,714

    Re: how do i install ruby 1.9.2

    ./configure --prefix=/YOUR/NEW/DIRECTORY

    Might I also suggest that in the ruby community, using rvm is the preferred way of installing ruby.
  6. Replies
    46
    Views
    9,151

    Re: Beginners Programming Challenge 15

    Just to throw another entry in, here is a recursive solution in ruby. Beware, this is extremely, extremely slow. No optimization here :)


    #!/usr/bin/env ruby

    def lev(a, b)
    # Base cases
    ...
  7. Replies
    3
    Views
    351

    Re: Learning Ruby on Rails

    Read through this online book: http://railstutorial.org/book
    It's the most up to date out there.
  8. Replies
    62
    Views
    7,703

    Re: Beginner Programming Challenge 14

    You are absolutely correct. I was copying and pasting from my other program and I appear to have missed the temporary variable part.

    Here's a pretty clean fix without having to use a temporary...
  9. Replies
    62
    Views
    7,703

    Re: Beginner Programming Challenge 14

    Very impressive, works beautifully. I'll take it that this wins the speed test.
  10. Replies
    62
    Views
    7,703

    Re: Beginner Programming Challenge 14

    Thanks. I've never taken linear algebra before so I was going just based on geometry.

    Here is the improved version. The case/when statement could be replaced with Object.send, but I figured that...
  11. Replies
    62
    Views
    7,703

    Re: Beginner Programming Challenge 14

    Here is my solution in ruby:


    #!/usr/bin/env ruby

    transformations = STDIN.gets('end')

    STDIN.gets # call gets again since STDIN still has a newline in it.

    coordinates = STDIN.gets
  12. Replies
    0
    Views
    454

    makedepend and boost

    I am trying to include boost in my project.


    #include <boost/xpressive/xpressive.hpp>

    However when running makedepend over my project, it looks at that line and then starts looking in the...
  13. Replies
    3
    Views
    435

    [SOLVED] Re: Java Opposite of Generics

    Thank you Reiger, that's exactly what I wanted.
  14. Replies
    3
    Views
    435

    [SOLVED] Java Opposite of Generics

    I am trying to extend the java.util.Hashtable class. However, I would like it so that when somebody tries to use my CustomHashtable class, they can only construct it use Strings for the types for the...
  15. Replies
    2
    Views
    1,636

    Re: [wxPython] Can't load menu icons

    I really doubt that that image is part of the wxPython library. I imagine that when they say the word 'stock' they are referring to a generic image for a stop icon, not something specific to...
  16. Replies
    7
    Views
    442

    Re: Strange C++ Error (Compiler bug?)

    What compiler are you using?

    I get the following when I try to compile your code


    gcc engine.C
    engine.h:11: error: 'SDL_Event' has not been declared
    engine.h:12: error: 'SDL_Event' has not...
  17. Sourcing a File in A Different Directory

    In my .cshrc I do the following:



    source someDirectory/someFile


    In someDirectory/someFile, I have
  18. [SOLVED] Re: trying to set up a git repo on my home server

    You need to append the .git on to the end of the git repo...


    git clone jason@<ip address>:gitosis-admin.git
  19. [SOLVED] Re: trying to set up a git repo on my home server

    You should make the initial commit on the server machine.
    Once you're able to authenticate yourself, you can edit it using your account.
  20. Replies
    3
    Views
    1,120

    [ubuntu] Re: xinerama second display

    bueller...
  21. Replies
    3
    Views
    1,120

    [ubuntu] Re: xinerama second display

    Uhh...I think you may be confused. xinerama is not a video editing app.
    And I understand the difference between a display and monitor. I guess the correct term would be screen since that's what...
  22. Replies
    3
    Views
    1,120

    [ubuntu] xinerama second display

    So I've got xinerama working just fine. I have a question. I understand that xinerama treats dual monitors as if they were one single monitor, but is there a way for it to tell which window is on...
  23. Replies
    9
    Views
    2,155

    Intermediate Programming Challenge #2

    There are 292 ways to make a U.S. dollar using only U.S. coins (293 if you include the dollar coin).
    For those who unfamiliar with U.S. currency, here is a run-down.

    penny = 1 (100 pennies equal...
  24. Replies
    3
    Views
    708

    Re: C++ Variable types that handle strings

    GNOME is a window manager, not an OS. All it is just a GUI overlay to a terminal and what you're requesting just doesn't make sense.
  25. Replies
    66
    Views
    5,915

    Re: Intermediate programming challenge

    The expert challenge should be next where it uses numbers that are outside the range of primitive types.
Results 1 to 25 of 67
Page 1 of 3 1 2 3