Search:

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

Page 1 of 10 1 2 3 4

Search: Search took 0.19 seconds.

  1. [SOLVED] Re: Question about creating a Linux distribution

    Is this using GSettings/DConf? If so, take a look here. All you need to create is "vendor patches" in the correct place so you can set the values you want.
  2. Thread: GUI in C

    by nvteighen
    Replies
    3
    Views
    443

    Re: GUI in C

    Although you should take a look at what Google tells you about this topic, in summary, writing a GUI in C (or any other language) is done by using libraries dedicated to this task. There are a couple...
  3. Replies
    8
    Views
    905

    Re: C Programming Advice

    I'd go for C. I know C++ has exactly the same low-level capabilities C has, but it also has a lot of higher-level stuff that is actually considered to be part of "learning C++ correctly". In fact, in...
  4. Replies
    20
    Views
    4,333

    Re: C: deleting row and column from matrix

    I don't get why it has to be made in-place. It can be done, of course, but my take (of course, due to my FP influence) would be to have this as a function that maps two matrices through...
  5. Replies
    20
    Views
    4,333

    Re: C: deleting row and column from matrix

    Why move them? Return a new matrix and leave the original untouched ;)
  6. Replies
    20
    Views
    4,333

    Re: C: deleting row and column from matrix

    Observe the following: if you're deleting column x, then you're deleting everything that is x modulo row_size in your linear order; if you're deleting row x, you're deleting everything that is...
  7. Replies
    20
    Views
    4,333

    Re: C: deleting row and column from matrix

    I hope you're not using a double-pointer "matrix", because that makes everything harder.

    1) If you're allowed to use a library, take a look at the GNU Scientific Library....
  8. Re: Privacy aware WhatsApp alternative using gpg and tor?

    Yesterday I read about Surespot. It's a Free Software alternative to Whatsapp that you might be interested to look at.
  9. Replies
    10
    Views
    834

    Re: Questions about python and Ubuntu :)

    There's a huge difference between Jython, IronPython et al. and our hypothetical kernel space Python. Jython et al. are still running on a high-level space, where the only change from the user's...
  10. Replies
    15
    Views
    11,010

    Re: how do I type Greek letters in Python?

    It's a synonym :)
  11. Replies
    15
    Views
    11,010

    Re: how do I type Greek letters in Python?

    This works flawlessly for me.



    # -*- coding: utf-8 -*-

    alpha = raw_input("Type α:")
    if alpha == "α":
    print "ἄριστα."
    else:
  12. Replies
    10
    Views
    834

    Re: Questions about python and Ubuntu :)

    It's technically impossible if you don't modify the language. Plain vainilla Python wouldn't know anything about memory addresses or embed ASM, even if it ran in kernel space, just because it doesn't...
  13. Replies
    2
    Views
    1,422

    Re: Converting C++ into pseudocode

    Pseudo-code is just an informal representation of the algorithm... I don't see how that can be a problem.
  14. Replies
    10
    Views
    834

    Re: Questions about python and Ubuntu :)

    Well, there are a couple of things that are written in Python: the update-manager, Alacarte, the Bazaar VCS, installation scripts, parts of GIMP, etc. "apt-cache rdepends python" shows a lot of stuff...
  15. Replies
    8
    Views
    800

    Re: python returns variable problem

    Just when I thought I knew Python really well, it hits me with this one... *facepalm*... globals are module-scoped.
  16. Replies
    4
    Views
    564

    Re: Hosting Code Online

    C++ and Flash have nothing to do with this: a Java applet is a program written in Java that is embedded using a tag in HTML (I don't remember if it's <embed> or <object>...). The user is required to...
  17. Replies
    8
    Views
    800

    Re: python returns variable problem

    However, if you don't want to write a class, then just importing (import adder) will make your code work without any trouble.
  18. Replies
    5
    Views
    553

    [SOLVED] Re: In PHP why is (0=='string')

    Obligatory "PHP: a fractal of bad design" http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/
  19. Thread: Pythonhome

    by nvteighen
    Replies
    4
    Views
    2,973

    Re: Pythonhome

    Where did you install Python and how? Did you use the repos? I'm asking this because it's nearly impossible that exporting a variable could harm a Python installation like that (exported variables...
  20. Thread: Oasis

    by nvteighen
    Replies
    3
    Views
    597

    Re: Oasis

    A couple of advices:
    1) When asking for help, please send us some example code that reproduces your problem...not the whole thing nor a link to the source code of the project you want to contribute...
  21. Thread: FP languages

    by nvteighen
    Replies
    11
    Views
    741

    Re: FP languages

    Your goals are a bit mixed up, I thinl. If you all you want is to tackle Lisp macros, go for the more traditional Lisp dialects, i.e. Common Lisp and Scheme, and just avoid whatever that is...
  22. Replies
    3
    Views
    828

    Re: Should GCC Be Pre-Installed by Default?

    I'm not a Ubuntu user for a long time, having sticked to Debian since years... but I think the point is valid for both distros.

    IIRC, the GCC toolchain is installed by default for some reason, but...
  23. Thread: FP languages

    by nvteighen
    Replies
    11
    Views
    741

    Re: FP languages

    If you want 100% FP, without even the possibility to get imperative programming, then, Haskell or Clojure. Both are reasonably popular, i.e. you may not find as many jobs for Haskell or Clojure as...
  24. Re: What sort of license notices do I need for a Qt program?

    Be aware that this only applies if you're distributing the binary. If you distribute just the source of your code, you don't have to credit anyone.

    However, in the GPLv3 (remember that LGPLv3...
  25. Thread: Ncurses

    by nvteighen
    Replies
    7
    Views
    498

    Re: Ncurses

    There should be no space between -l and ncurses, the flag must be -lncurses:



    gcc -o whatever whatever.c -Wall -lncurses
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4