Converting a time string to a more readable date, time122 (10/27/2008 8:45:29 PM) comp.lang.python I have a python time string which has the following value: 1225137896 The above corresponds to 2008/10/27 16:04:56 What can I use to convert 1225137896 to a more readable date, time format? ... Thierry
How do you build and run binaries from anywhere?031 (3/24/2008 2:42:10 PM) comp.os.linux.misc My current requirement is to build graphviz on a linux and mac machine, place the binaries and libraries under one common folder. The standalone binaries will then have to run from that folder, which build opti... Thierry
How do you continue in a for loop?2555 (7/31/2007 6:30:36 PM) comp.lang.perl.misc In other languages, the for loop has a continue statement feature to skip an interation, how do you do it in perl? Thierry ... Thierry
How do you read the content of internal web pages?6118 (7/25/2007 6:22:28 PM) comp.lang.java.programmer I have the following jsp pages on different tomcat web servers: http://serverone/bugs/download.jsp?num=1234&file=Jul25.txt http://servertwo/bugs/download.jsp?num=1234&file=Jul25.txt http://serverthree/bugs/dow... Thierry
How do you retrieve a char from a string?457 (7/17/2007 7:50:37 PM) comp.lang.perl.misc I have the following string: my $greet = "hello"; print $greet[0]."\n"; The above clearly doesn't work since $greet is not an array. Is there an easy way to access characters at specific index in a string wit... Thierry
Help writing semaphore codes294 (7/12/2007 9:27:43 PM) comp.lang.perl.misc I have the following perl file greet.pl # LOCK ACQUIRED print "hello"; # LOCK RELEASED My linux os can have four threads running the greet.pl file simultaneously. How should I write the semaphore codes so tha... Thierry
How do you scp filenames which contain more than one word?535 (5/31/2007 10:05:47 PM) comp.os.linux.misc I want to scp files like: "my image.jpeg" The following seems to work: scp data/"my image.jpeg" "my image.jpeg" However, the following doesn't seem to work when I try to scp a file from another server: scp my... Thierry
Different number of children in IE, Firefox and Opera793 (3/6/2007 2:32:16 AM) comp.lang.javascript I have the follownig codes: Simple doc function greet() { var table = document.getElementById("greetTable"); var cell = table.rows[0].cells[1]; var output = cell.childNodes.length; alert(... Thierry
lamthierry's replies:
Items(9) /1
Listening to changes in a C++ variable from python324 (5/7/2005 2:56:34 AM) comp.lang.python Let's say I have the following source code in C++: // The following is in a .cpp file int val = 0; for ( int i = 0; i < 10; i++ ) val = i; // Now I'm in a python GUI, glade or GTK Is it possible from the... lamthierry(65)
Mapping a drive to a network path326 (7/22/2005 7:15:21 PM) comp.lang.python In DOS, if I want to map a network path to a drive, I do the following: net use z: \\computer\folder How do we do something similar in python? Thanks Thierry ... lamthierry(65)
Creating Pie Chart from Python523 (9/15/2005 3:10:10 PM) comp.lang.python Let's say I have the following data: 500 objects: -100 are red -300 are blue -the rest are green Is there some python package which can represen the above information in a pie chart? Thanks Thierry ... lamthierry(65)
Creating Pie Chart from Python #2819 (9/15/2005 3:10:17 PM) comp.lang.python Let's say I have the following data: 500 objects: -100 are red -300 are blue -the rest are green Is there some python package which can represent the above information in a pie chart? Thanks Thierry ... lamthierry(65)
Visual .NET not complaining on a C++ semantic error934 (10/4/2005 2:16:42 PM) comp.lang.c++ I have the following piece of codes: for (int i = 0; i < 10; i++) function1(); for (i = 0; i < 5; i++) function2(); Technically, I should be getting an error in the 2nd for loop but when I compile ... lamthierry(65)
Timeout at command prompt822 (1/11/2006 9:24:34 PM) comp.lang.python I can use the python function raw_input() to read any input from the user but how can I add a timeout so that my program exits after x period of time when no input has been entered. Thierry ... lamthierry(65)
How do you execute a target in a Makefile?243 (8/25/2006 8:27:04 PM) comp.unix.programmer Let's say I have the following in my makefile: CURRDIR = "" # ... CURRDIR might get initialized or not ... hello: @echo "Hello World" ERR = $(error Testing) ifeq ($(CURRDIR),"") $(ERR) endif How can ... lamthierry(65)
HTTPS Login217 (8/31/2006 3:48:27 PM) comp.lang.python I am trying to login to a secure website and I am having some difficulty understanding the process. Here is what I have with my limited knowledge of the subject: ##Start Code## #!/usr/bin/env python ... thomas.grove(4)