, I'm right now in hk and would like the app to
show me time in my current timezone (hong kong). Any guidelines how may I
go about doing this?
thanks a lot in advance :-)
--
warm regards,
Pradnyesh Sawant
--
Believing everybody is dangerous; believing no one is dangerous...
--Abraham Li
#x27;summary'] = "æÂï½ æ½å¤æ¤Ã¨Â±Ã¥Ã£
$errorMessage = "æÂï½ æ½å¤æ¤Ã¨Â±Ã¥Ã£
}
}
**
--
warm regards,
Pradnyesh Sawant
--
Luck is the residue of good design. --Anon
signature.asc
Description: Digital signature
--
http://mail.python.org/mailman/listinfo/python-list
On 02:07, 17Feb2008, Graham Dumpleton wrote:
> On Feb 17, 3:29 pm, Pradnyesh Sawant wrote:
> > Hello,
>
> Your mod_python isn't compiled against Python 2.5 but is using an
> older version. You will need to rebuild mod_python to use Python 2.5
> instead. You cannot ju
On 22:51, 16Feb2008, John Machin wrote:
> On Feb 17, 5:40 pm, Pradnyesh Sawant wrote:
>
> fire up python2.4 interactive prompt
> do this:
> import sys; sys.path
> import xmltramp; xmltramp.__file__
>
> then fire up python2.5 interactive prompt
> do this:
> impor
dule named xmltramp
when used with python2.5. Why is this ambiguity? Ain't the same PYTHONPATH
being used for both?
--
warm regards,
Pradnyesh Sawant
--
We are not just our behaviour. We are the person managing our behaviour.
--The One Minute Manager
signature.asc
Description: Digital sig
too.
thanks!
--
warm regards,
Pradnyesh Sawant
--
We are not just our behaviour. We are the person managing our behaviour.
--The One Minute Manager
signature.asc
Description: Digital signature
--
http://mail.python.org/mailman/listinfo/python-list
Qt4, but i don't
understand why (i'm explicitly mentioning PyQt4). How do i tell eric to use
just Qt4, and not Qt3?
ps: i have made both Qt and Qt4 Directory to contain /usr/share/qt4, in
preferences->qt. but that too does not help.
--
warm regards,
Pradnyesh Sawant
--
Computers a
4/Qt.py", line 4, in ?
from PyQt4.QtOpenGL import *
ImportError: No module named QtOpenGL
I've tried installing python-opengl, and also qt4-dev-tools, but the
error persists.
What pkg do i need to install to get rid of the error message?
Thanks!
--
warm regards,
Pradnyesh Sawant
--
Be yo
On 4/27/07, Pradnyesh Sawant wrote:
> Hello, i have the following code:
> #
> import time
> import sys
> from PyQt4 import QtGui, QtCore
>
> class Counter(QtCore.QThread):
> def __init__(self):
>
bject at 0xb6a8f12c>,
(<__main__.Gui object at 0xb6a8f12c>, (<__main__.Gui object at
0xb6a8f12c>, (<__main__.Gui object at 0xb6a8f12c>, (<__main__.Gui
object at 0xb6a8f12c>, (<__main__.Gui object at 0xb6a8f12c>,
(<__main__.Gui object at 0xb6a8f12c>, (<__main__.Gui obje
4.5-2ubuntu1
qt4: couldn't see just "qt4" in aptitude ???
(have qt4-qtconfig installed though).
qt4-dev-tools not installed (is that needed?)
--
warm regards,
Pradnyesh Sawant
--
Be yourself, everyone else is taken. --Anon
--
http://mail.python.org/mailman/listinfo/python-list
what versions you are using and on
> which
> platform. Whatever they are, try the latest release.
Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02)
[GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2
--
warm regards,
Pradnyesh Sawant
--
Be yourself, everyone else is taken. --Anon
--
the signal before connecting it. Also my crystal ball isn't telling
> me what versions you are using or what platform you are on.
>
> Phil
>
>
--
warm regards,
Pradnyesh Sawant
--
Be yourself, everyone else is taken. --Anon
--
http://mail.python.org/mailman/listinfo/python-list
ows:
tpl: ('Primary', 'priSec')
tpl: (,)
**tpl: ,),),),),),),),)
Can anyone kindly tell me what's happening here? Why is the tuple
("Primary", "priSec") getting converted to this thingy? And
what is this thingy anyways (It looks
nsiderate and kind
enough to point out mistakes/better approaches with the above code.
Thanks a lot!
--
warm regards,
Pradnyesh Sawant
--
Be yourself, everyone else is taken. --Anon
--
http://mail.python.org/mailman/listinfo/python-list
> module_name = "module"
> mod = __import__(module_name)
> class_name = module_name.capitalize()
> cls = getattr(mod, class_name)
> inst = cls()
>
Worked like a magic charm :) Also helped me understand the concept of getattr :D
Thanks a million!
--
warm regards,
Pra
> Can you pull the same information from /proc/stat as opposed to using
> a pipe to top? The first line(s) should contain (at least):
>
> cpu usermode, lowprio, system, idle, hz.
Thanks a lot for the help. I finally decided to go with your suggestion.
--
warm regards,
Pradnyesh
rking condition would be very helpful
Thanks a lot
--
warm regards,
Pradnyesh Sawant
--
Be yourself..everyone else is taken. --Anon
--
http://mail.python.org/mailman/listinfo/python-list
at proc(5).
>
> Thanks,
>
> Jeff
>
>
>
>
>
> On 4/9/07, Pradnyesh Sawant <[EMAIL PROTECTED]> wrote:
> > Hello,
> > I need the cpu usage of a linux box, for which i capture the output of
> > "top" using "popen". However, i am
Hello,
I need the cpu usage of a linux box, for which i capture the output of
"top" using "popen". However, i am facing problems during string
handling. The code snippet is:-
top = os.popen("top -n 1")
rd = top.read().split("\n")
splt = rd[2].split()
# cpu = splt[2][:-4] # why ain't this working
Hello,
I have a string which in reality is the name of a module to be
imported. The name of the class contained in the module also has the
same (although with different capitalization). My requirement is to
import the module, and also create an instance of the class. eg:
str = "module"
hello,
i have some python scripts (especially, PyQt4 scripts) that i want to
deploy on both linux and windows m/c's. different packaging tools that
i checked (cx_freeze, distutils, pyinstaller) allow me to create
"installers". however, i'm interested in creating "executables" that
allow the code to
22 matches
Mail list logo