What changes the value of a session variable?219 (4/11/2009 5:39:25 PM) comp.lang.php Hi all, I have the following code. print $_SESSION['page'].'<-c--'; $page = $_SERVER['PHP_SELF']; $name = $_SESSION['name']; $q = $_GET['q']; print $_SESSION['page'].'<-d--'; which outputs: /index.php<-c--/l... Kurda
Is it possible to sum up values of a column?335 (4/11/2009 12:58:52 PM) comp.databases.mysql Hi all, I am wandering if the following is possible in MySQL. I have a table with three columns. The first column contains names of persons, the second column contains name of the month and the third (last) co... Kurda
Python change a value of a variable by itself.217 (2/17/2009 4:19:10 PM) comp.lang.python Hi, I have the following simple code: r = {} r[1] = [0.000000] r_new = {} print r[1][0] r_new[1] = r[1] r_new[1][0] = r[1][0] + 0.02 print r[1][0] It outputs: 0.0 0.02 it is something strange to me since in ... Kurda
How to replace '\n' by '<br>'?521 (2/14/2009 8:35:09 PM) comp.lang.php Hi, I have messages stored in common text files. Then I want to desplay this message on my web-page and I would like to desplay the messages in the same form as they are in the text files. More specific, if in... Kurda
Can user modify names of the variables of a "post" form?320 (2/12/2009 2:25:53 AM) comp.lang.php Hi, I have a page generating html-form. I declare the form in the following way: ..... The form contains a set of text fields. Each text field correspond to a variable (with a specific name). By filling in ... Kurda
Does the size of a table depend on the column types?344 (1/31/2009 11:59:50 PM) comp.databases.mysql Hi, Is it true that the size of a table depend on the type of its columns (but not on an their actual content). For example, I have a column which contains words whose length is always smaller than 8 symbols. ... Kurda
How to re-import a function from a module?332 (11/6/2008 1:36:07 AM) comp.lang.python Hi, I have the following small problem. I run Python interactively. In the beginning of the run I import many functions from many modules. Than I execute some commands and notice that one of the imported funct... Kurda
How to build the pysqlite? Where to find the "sqlite3.h"?179 (11/5/2008 1:47:35 AM) comp.lang.python Hi, I try to "build" and "install" pysqlite? After I type "python setup.py build" I get a lot of error messages? The first error is "src/ connection.h:33:21: error: sqlite3.h: No such file or directory". So, ... Kurda
How to import from a file which is not in the current directory?312 (10/22/2008 9:38:17 PM) comp.lang.python Hi, I would like to import a function from a file which is located not in the same directory as the main program (from which the function needed to be imported). Could anybody pleas tell me how to do that? T... Kurda
ERROR 1062 (23000): Duplicate entry '0' for key 1441 (10/3/2008 2:25:06 AM) comp.databases.mysql Hi, I have a table with 2 columns. The first column is supposed to be a unique ID. After I have created the table I have inserted 15 elements into it. After that I have decide to transform the ID-column into p... Kurda
"register_globals off" and "session side-effect"1015 (1/16/2008 1:11:59 AM) comp.lang.php Hi, I set the register_globals off and try to get my code working under the new conditions. I stuck on the following problem: Warning: Unknown(): Your script possibly relies on a session side- effect which ex... kurdayon(125)
another "print" adds to the previous line227 (2/15/2008 12:12:42 AM) comp.lang.php Hi, I am searching for something which is opposite to the "\n". print "aaa \n bbb"; will output: aaa bbb And I need two print-commands write to one line: print "aaa"; print "bbb"; Desired output: aaabbb C... kurdayon(125)
LayeredGraphPlot without edge crossing.114 (4/30/2008 8:25:16 AM) comp.soft-sys.math.mathematica Hi,
I have a tree-structure-data which I would like to plot. If I use
TreePlot, the plot looks very similar to what I need. However, the
plot algorithm does not pay attention on the direction of edges. I
... kurdayon(125)
Do I need "self" and "other"?1327 (6/27/2008 10:17:33 PM) comp.lang.python Hi, I found one example which defines the addition of two vectors as a method of a class. It looks like that: class Vector: def __add__(self, other): data = [] for j in range(len(self.data)): ... kurdayon(125)
How to make a function associated with a class?710 (7/1/2008 8:43:45 PM) comp.lang.python Hi, I have a class called "vector". And I would like to define a function "dot" which would return a dot product of any two "vectors". I want to call this function as follow: dot(x,y). Well, I can define a f... kurdayon(125)
Web programming in Python.720 (9/28/2008 10:39:22 PM) comp.lang.python Hi, I am totaly newbie in the Python's web programming. So, I dont even know the basic conceptions (but I have ideas about php-web- programming). Does it work in a similar way? First, I have to install a Pytho... kurdayon(125)
How to read fields from a file?343 (9/30/2008 11:47:26 PM) comp.lang.php Hi, I have a file with data written in a "matrix" form. In other words, every row contains a fixed number of fields and I am interested in the value of each field of every row. I managed to read rows in the f... kurdayon(125)
ERROR 1062 (23000): Duplicate entry '0' for key 1441 (10/3/2008 2:25:06 AM) comp.databases.mysql Hi, I have a table with 2 columns. The first column is supposed to be a unique ID. After I have created the table I have inserted 15 elements into it. After that I have decide to transform the ID-column into p... kurdayon(125)
How to build the pysqlite? Where to find the "sqlite3.h"?179 (11/5/2008 1:47:35 AM) comp.lang.python Hi, I try to "build" and "install" pysqlite? After I type "python setup.py build" I get a lot of error messages? The first error is "src/ connection.h:33:21: error: sqlite3.h: No such file or directory". So, ... kurdayon(125)
Is it possible to sum up values of a column?335 (4/11/2009 12:58:52 PM) comp.databases.mysql Hi all, I am wandering if the following is possible in MySQL. I have a table with three columns. The first column contains names of persons, the second column contains name of the month and the third (last) co... kurdayon(125)