Search:

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

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    319

    Re: Hit a key, play a WAV file

    "Which one will reach the other side of the river: The one who dreams of a raft, or the one that hitchhikes to the next bridge?"

    ;)



    You should consult the OpenAL documentation. Also,...
  2. Replies
    6
    Views
    319

    Re: Hit a key, play a WAV file

    As I see it, you have two options:


    Run an existing program from your C program (like a player) that will play the WAV files.
    Use an audio library that provides WAV playback functions that you...
  3. Replies
    8
    Views
    789

    Re: Code editor for Ubuntu

    Learn Vim.

    It can do everything you want, and much more.
    It's small, and quick to load.
    It's already installed.

    * The downside is - it's a somewhat steep learning curve, but the initial time...
  4. Replies
    7
    Views
    332

    Re: Soon to start Software Engineering!

    +1

    Same recommendation from me, for the same exact reason.
  5. Re: C++ references instead of pointer mem variables

    This is a general programming forum, so it's just as good (if not better in certain cases).

    @muteXe

    This should work:



    class Main{
    public:
  6. Replies
    5
    Views
    297

    Re: Trouble displaying images

    Can you kill the existing process?

    If not, then maybe a short delay before the rm, using the sleep command?

    Just a few ideas.
  7. Replies
    14
    Views
    604

    Re: Recruitment agencies

    I would say that the perceived value of their network is largely determined by the number of users they have.



    Almost every bank in NYC is a crappy company, but their ability to exploit market...
  8. Replies
    5
    Views
    741

    Re: OpenGL (C#) programming on Ubuntu?

    Well, you can't compare Java to OpenGL in that way: Java is a language, OpenGL is a 3D graphics library.

    Really, if you're programming on Linux, C# doesn't seem like the right choice (it's more in...
  9. Replies
    14
    Views
    604

    Re: Recruitment agencies

    Both sound equally probable. I assume that Linkedin would look for ways to monetize - offering recruitment agencies access to some broadcasting features would be one service they could offer, among...
  10. Replies
    14
    Views
    604

    Re: Recruitment agencies

    Probably.

    Although, even if they, as a recruiting agency, seem genuinely interested in you, it's usually not to help you, but to expand their database.

    You see, for them, people like you are a...
  11. Replies
    14
    Views
    180,244

    Re: how to declare a 2D array in python

    It's not an error. The syntax is correct, and results in correct behavior, but it might be behavior that you didn't really expect, because you misunderstood the nature of the statement.

    Anyway, I...
  12. Replies
    14
    Views
    180,244

    Re: how to declare a 2D array in python

    Run this:



    l_variable = [[[2]*3]*4]*5
    print l_variable

    l_variable[0][0][0] = 5
    print l_variable
  13. Replies
    14
    Views
    180,244

    Re: how to declare a 2D array in python

    Yes, it will, but a three dimensional array of what?

    Independent lists, or references to a single list?

    This would be a good test to run:


    l_variable[0][0][0] = 5
    print l_variable
  14. Replies
    5
    Views
    741

    Re: OpenGL (C#) programming on Ubuntu?

    Not specifically for C#.

    Actually, even for C/++, there are few modern tutorials; most are still using deprecated calls like glVertex and such.

    That said: Even if the syntax is slightly...
  15. Replies
    4
    Views
    220

    Re: Pygame Tutorials

    I wouldn't say that pygame is essentially SDL - it's a fairly customized wrapper, since it does provide facilities in addition to those found in SDL (such as the sprite, and other, higher-level...
  16. Re: buffer problem (i think) only on my ubuntu system

    As Seq said - it's undefined.

    Use this function instead:



    void input_flush(){
    while(getchar() != '\n')
    ;
    }
  17. Thread: lib help

    by Senesence
    Replies
    6
    Views
    176

    Re: lib help

    The standard libraries would probably not be included, because they are standard, and should therefore already be present in your build environment.

    On Linux, these files are usually found is...
  18. Replies
    4
    Views
    734

    Re: SQLite Commit Frequency

    Large, infrequent commits would make for best performance - I was told this many times.

    Your metric should be based on a reasonable unit of storage; it doesn't have to be raw memory (as in bytes),...
  19. Replies
    2
    Views
    260

    Re: C++ STL question about map

    Need more context.

    This works fine for me:



    #include <iostream>
    #include <string>
    #include <map>
  20. Replies
    3
    Views
    1,066

    [SOLVED] Re: C++ error: expected ')' before 'g'

    "Genome g" would imply an instance of Genome, but you can't have instances of an abstract class (http://www.cplusplus.com/doc/tutorial/polymorphism/).

    Try "Genome* g" instead (obviously, you would...
  21. Replies
    8
    Views
    303

    Re: Educational Game Idea.

    I believe that. :)
  22. Replies
    3
    Views
    444

    [SOLVED] Re: Stumped on a C program

    @ Bachstelze

    Man, you're fast.

    @ Lubert

    Yea, the fact that you're allocating space for chars instead of space for char pointers is probably the culprit here.

    When you declare char** args,...
  23. Replies
    8
    Views
    397

    [SOLVED] Re: Python Word manipulation

    You can iterate over each character like this:



    my_str = "Bird"

    for c in my_str:
    print c
  24. Re: [Java] What do programmers do in this case?

    I would agree with Bachstelze.

    Although, if you really need to save up memory:

    A byte is still a byte, so if you could just copy the raw bits from unsigned char to java byte, you could store...
  25. Replies
    7
    Views
    2,440

    Re: Spritesheet animations in Python/Pygame

    This is what I expected you to do:


    Copy-paste my code to a file named spritetest.py
    Download the sprite-sheet (previously attached - 512x512 png image called "walk_cycle.png") to the same...
Results 1 to 25 of 167
Page 1 of 7 1 2 3 4