User Profile

Collapse

Profile Sidebar

Collapse
Subsciber123
Subsciber123
Last Activity: Sep 26 '12, 01:16 AM
Joined: Nov 11 '06
Location: Eastern Time Zone
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Subsciber123
    replied to Firefox Accessibility with Python
    Locked in means no motor control. They are using a P300-based interface.

    If you could point me to a greasemonkey script that already does something similar, that would be helpful. I have very little experience with javascript.
    See more | Go to post

    Leave a comment:


  • Subsciber123
    started a topic Firefox Accessibility with Python

    Firefox Accessibility with Python

    I am working on a program that would make firefox accessible to locked-in patients.

    What I need to be able to do is from python, find all the links and buttons on the active web page. I need to be able to find their physical locations on the screen, and I need to be able to tell the browser to follow ("click on") them later.

    Does anybody know how I would go about doing this? I do not know how to write an extension...
    See more | Go to post

  • Subsciber123
    replied to wxGrid
    So far, I've used a dirty hack. I've created a timer with events, and as soon as someone clicks on the title, it starts the timer. When someone drops the title, the next timer event stops the timer and I can make the program do what I want it to do. So much for good form. At least I'm not using threads.

    Please post if you have a better way of doing it.
    See more | Go to post

    Leave a comment:


  • Subsciber123
    replied to wxGrid
    Ah. It's wxGrid.GetColPo s()

    Okay, what about that event? I need to know when the column position changes.

    Thanks in advance.
    See more | Go to post

    Leave a comment:


  • Subsciber123
    replied to wxGrid
    This problem turns out to be even more annoying than I thought.

    I just realized that when you drag a column to a different position (say column zero) it retains the same column number (i.e. zero).

    I guess that the question now is, if you have a column, how do you tell whether it is to the right or the left of another column within wxGrid?

    An event to tell me when someone drags a label around would still...
    See more | Go to post

    Leave a comment:


  • Subsciber123
    started a topic wxGrid

    wxGrid

    Hi,
    I'm using Python 2.6, and I'm trying to write a gui program that uses wxGrid. I have made it so that the columns can be dragged around to different locations, but I need to bind to an event that tells me when they are moved, and which one moved where. Can anybody help me with this? I don't see any events that jump out at me as being relevant.

    Thanks.
    See more | Go to post

  • Squigy Dunkens
    Squigy Dunkens posted a Visitor Message for Subsciber123
    hi, I have been trying to get grail web browser to work for almost a week now, and have been fixing things and searching for a long time now. i stumbled upon this thread by you:
    http://bytes.com/topic/python/answer...on-web-browser
    Did you ever get this to work? And even if you didn't, do you think you could send me the files you have anyways. because you got way farther then me, i haven't even gotten it to do anything...
    See more | Go to post

  • Subsciber123
    started a topic Swap for suspend-to-disk only

    Swap for suspend-to-disk only

    Is it possible to disable a swap partition for normal memory usage but allow it to be used for suspend-to-disk?

    This would be useful in the case that a program decides to explode and use up all the memory. This would give it a memory error instead of wasting time swapping data out.
    See more | Go to post

  • Subsciber123
    replied to How to create Zombie ?
    Zombies are processes that have terminated but whose return value has not been read by the parent. waitpid() collects return values and kills zombies.

    Orphans are child processes whose parents have died. Orphans are supposed to be adopted by init (which has PID=1).
    See more | Go to post

    Leave a comment:


  • Subsciber123
    replied to operating systems and deadlocks
    Sometimes they have rules such as: if you need to acquire two locks, they must be acquired in the correct order. That way one process won't have one and want the other while another process has the other and wants one.

    That's just an example. Keep researching. Google and Wikipedia are your friends.
    See more | Go to post

    Leave a comment:


  • Subsciber123
    replied to Nested loops and goto line
    Also, you don't need all the parentheses around everything.

    "if something==some thing_else:"
    works just as well as
    "if (something==som ething_else):"
    See more | Go to post

    Leave a comment:


  • This would require writing a proxy that put this in every page, which would be unwieldy.
    Anyway, this is no longer a problem, as I have moved onto bigger and better operating systems and bigger and better projects since then....
    See more | Go to post

    Leave a comment:


  • Subsciber123
    replied to Using Multi-core Machine
    You might want to use threads. They work as follows:

    thread.start_ne w_thread(functi on, argument_tuple [,keyword_dictio nary])

    This will either return None (successful) or raise an exception if it is unable to start a new thread.
    See more | Go to post

    Leave a comment:


  • Subsciber123
    replied to Heloop!
    You really need to look at some sort of Python tutorial. You seem to be going down the river without a paddle. Look into diveintopython. org and start there. Or look at the .chm help file that comes with the ActiveState version of python.
    See more | Go to post

    Leave a comment:


  • Oh, also:
    If anybody can give me any hints as to how to do the inverse of the function that I wrote in C++, that would be appreciated. The problems I have include not knowing how long the string should be and the inability to cast a RossiBigInt to a char. Keep in mind that this should be large endian, as that is what I have defined in the standard for my hash.

    If anybody wants to see the hash that I wrote (the Python version)...
    See more | Go to post

    Leave a comment:


  • That's a bummer :(
    I hope they fix the problem soon....
    See more | Go to post

    Leave a comment:


  • After some research into C++, I have managed to implement the first of the two functions, and it looks as though I can still implement the hash without the other (and probably a bit more efficiently, at that). Anyway, if anybody has suggestions on how I can improve the function, please tell me! I tested it, and it is functional, at least.

    [CODE=C]void strToInt(const char* str,int len,long& num) // big endian
    {
    num=(long)0;...
    See more | Go to post

    Leave a comment:


  • converting strings to numbers and back (large endian)

    I have a couple of short functions that I wrote in Python as part of a hash algorithm, and now I want to implement it in C++. I already have found an arbitrary precision integer library, but I don't know enough about C++ to know how to implement these two functions. Anyway, here is the equivalent code in Python:

    [CODE=Python]def strToInt(string ): # big endian
    ret=0
    for byte in string:
    ret<<=8
    ...
    See more | Go to post

  • Subsciber123
    replied to designing an avatar
    As an afterthought, I might add that this was how I created my avatar....
    See more | Go to post

    Leave a comment:


  • Subsciber123
    replied to designing an avatar
    What sort of avatar? You can do lots using PyX, which is a python wrapper around TeX/LaTeX. It can create scalable pdf image files, which can be converted to jpg or other formats using the GIMP or other programs that can read pdf images.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...