Search:

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

Page 1 of 3 1 2 3

Search: Search took 0.03 seconds.

  1. JavaScript - why does this script work differently on Firefox than on IE or Opera?

    Hi,

    I'm trying to get a site's javascript to work with Mozilla Firefox. I'm trying to get JavaScript to correctly resize a div. The code is almost working, but the onMouseUp works differently for...
  2. Re: Optional Static Typing in Python - language designer speak his mind

    FWIW, That article is rather old, and I don't think that the plan currently is to include optional static typing in Python 3.0. Guido has a presentation on it (can be found on Google Video) and I...
  3. Replies
    2
    Views
    616

    Re: GNOME Icons and MIME types

    Bump :)

    Noone knows? Maybe it's simply a limitation of GNOME, and can't be done :-(
  4. Replies
    2
    Views
    616

    GNOME Icons and MIME types

    I posted this in desktop earlier, but received no help...Any takers?

    """"""""""
    Hi,

    I program in Python, and to visually distinguish my Python files from my other text files, I'd like to have...
  5. Re: Python - Help choosing an appropriate data structure

    Having them in seperate dictionaries is a terrible idea, IMO: Is is in general always best to related data collected.

    So, my approach would be lists of dictionaries, with the track list being a...
  6. Replies
    41
    Views
    2,528

    Re: Python functions

    Nice trick :-)
  7. Re: How to Create a GTK application to write to a OpenOffice Database

    Openoffice Base is not not much more than a graphical interface to a database type called HSQL. So, learn about HSQL and how you can interface with it from your programing language and you'll have...
  8. Thread: C# or Python?

    by Van_Gogh
    Replies
    26
    Views
    10,895

    Re: C# or Python?

    This tutorial is probably even more basic, is somewhat more modern and is also very easy to follow.

    It also has quite good a follw-up tutorial to show some advanced tree view/list stuff. Highly...
  9. Re: Trick: Firefox: click to select url in address bar

    I've always been annoyed by the difference in Firefox bahaviour in windows and Ubutnu, so I think this is a really great tip.

    Another small tip is that you can change it programatically too, if...
  10. Replies
    2
    Views
    2,239

    Re: Gnome Mime Types - Please Help

    I found this tutorial which I think explains a lot. I think it solves your problem.

    Me, I haven't yet found a way to set icons based on full mime-types rather than just partial mime type(i.e...
  11. Replies
    2
    Views
    2,239

    Re: Gnome Mime Types - Please Help

    I'd be interested in this too.


    Does this mean that this way you can decide yourself the icon type for each mime type? I've been trying to have a Python icon for all my python(*.py) files, but...
  12. Replies
    15
    Views
    1,028

    Re: Im new please dont bash me :/ Python

    It's because Pythonistas think there are better/more readable ways :-D E.g. instead of

    for(i=0;i<10;i++){
    doSomething()
    }
    Pythonistas do

    for i in range(10):
    doSomething()
    }
  13. Re: What is the easiest way for a web developer to make apps?

    You could also check out the doc-string of the function/class/method you want to use. e.g. opening a file is done by the function open. So if you try


    print open.__doc__
    and you'll get some info...
  14. Replies
    8
    Views
    1,872

    Re: Fortran program needs a GUI

    I've used f2py and it was really great. However, if I remember correctly it doesn't support custom types, something which may or may not be a problem for your app.
  15. Replies
    34
    Views
    3,876

    Re: C, C++ or Python?

    I agree and disagree with JDD :), because it certainly is possible to do non-simplistic things with Python. And I agree with most of the guys here: Learn Python first, it's mush easier. Though you...
  16. Replies
    30
    Views
    1,585

    Poll: Re: What is your favorite programming language?

    Python's my favourite here. It's just Very Nice and I love how you can get things done quickly but still in a very solid manner. And yes, this poll is woefully lacking some of the more popular...
  17. Replies
    13
    Views
    4,115

    Re: stackless python - how to install?

    Hi somenoob,

    Stackless is not in any repository as I already said. I don't know why it isn't, but I think it's because it needs to overwrite some part of standard Python installation.

    About...
  18. Replies
    13
    Views
    4,115

    stackless python - how to install?

    Hi all,

    After reading this tutorial, I've become really interested in trying out Stackless Python. However, it is not in any repository and only exists in source form for Linux, and basically I...
  19. Replies
    6
    Views
    1,061

    Re: OS specific command in Python

    os.system is fine, but it is recommended actually to use the subprocess module instead, as os.system will deprecate in the future.

    However, I will usually rather use os.system myself for most...
  20. Thread: Simple python

    by Van_Gogh
    Replies
    12
    Views
    763

    Re: Simple python question

    This to me seems the correct way to go about it, and I don't consider it a workaround either. However, I think function two should be defined before function one, as function one calls function two:...
  21. Replies
    20
    Views
    2,054

    Re: Python as everyday command line shell?

    Hmm, ok. I don't actually use pysh myself, it just gets bundled with the Windows version of ipython(THE interactive Python interpreter IMO). Pyshell does indeed look more mature.
  22. Replies
    20
    Views
    2,054

    Re: Python as everyday command line shell?

    Noone suggested Pysh yet...:-|
  23. Replies
    42
    Views
    3,095

    Re: What text editor should i use?

    Ok, I've just meddled with Scribes for an hour and...I'm loving it! It's got all the features Gedit lacks, without being complex. It's Nice Stuff(t). Especially I like:

    automatic parentesis and...
  24. Replies
    42
    Views
    3,095

    Re: What text editor should i use?

    I've been a bit stuck on Windows because I haven't yet been able to find an editor on GNOME that could surpass the fantastic Windows-only Notepad++. However, judging from the Flash-animation, Cream...
  25. Replies
    7
    Views
    3,039

    Re: Pythoin list. limit size?

    try


    print len(listVar)

    My guess is your list is of length 972. This means as you try to access item 973, you're out of your list's range - just as the error message says...

    A way to avoid...
Results 1 to 25 of 64
Page 1 of 3 1 2 3