[OSys PL Labs] 3 UI/UX Research Engineer Positions for Progr. Languages and Tools (Remote)

2021-08-24 Thread Nick Papoylias
Dear colleagues, The newly founded PL (Programming Languages) research Group at OutSystems has a goal of exploring the UI/UX frontier of Programming Tools. We are looking for 3 UI/UX Research Engineers for Programming Languages & Tools (Remote) to join our group. Please

Python 3

2020-11-06 Thread Nick Li
Does anyone know how to turn a decimal number into duodecimal or if there is a function built-in for it? -- https://mail.python.org/mailman/listinfo/python-list

Re: [python-committers] Thank you Larry Hastings!

2020-10-06 Thread Nick Coghlan
Thank you, Larry! Cheers, Nick. -- https://mail.python.org/mailman/listinfo/python-list

Re: Regarding Python

2020-04-16 Thread Nick Kelley
I need to install python 3.7 or above version, however the previously installed version is python2.7 I tried many commands sudo apt-get install python3.8 after running the command it fails I removed pthon 2.7 but again when I run the command Python --version it again shows python 2.7 please sugge

Re: Recommendations for intro to python+programming lecture to Humanities MA students

2019-11-21 Thread Nick Sarbicki
ll probably struggle to captivate the entire audience with this. Whereas ending with some slightly wilder but more enticing examples can make those who weren't interested in the statistics want to pay more attention to what you have been saying. - Nick On Wed, Nov 20, 2019 at 11:33 PM MRAB

Re: Recommendations for intro to python+programming lecture to Humanities MA students

2019-11-20 Thread Nick Sarbicki
Hi Goktug, Firstly good luck, inspiring a crowd of people who have never learnt to code (and probably never expected to) to want to code sounds like a daunting task. I think you have broadly the right idea in that you want to spend only a little bit of time on the basic syntax before demoing what

Re: Which editor is suited for view a python package's source?

2019-08-19 Thread Nick Sarbicki
Yes the community edition works fine. It seems to require a 64 bit version of Windows 7 or higher (I'm not sure as I haven't used Windows in years). On Tue, 20 Aug 2019, 03:27 , wrote: > Nick Sarbicki於 2019年8月19日星期一 UTC+8下午5時33分27秒寫道: > > PyCharm takes you to the source cod

Re: Which editor is suited for view a python package's source?

2019-08-19 Thread Nick Sarbicki
PyCharm takes you to the source code within the editor for any variables/functions/classes/modules if you ctrl+click on what you want to see. It allows you to browse the relevant bits of code quickly, as well as let you change them in your local environment if need be. That way you don't have to d

[CfP] DLS 2019 - 15th Dynamic Languages Symposium, co-located with SPLASH 2019

2019-03-23 Thread Nick Papoylias
, University of Glasgow Joe Gibbs Politz, University of California San Diego Juan Fumero, The University of Manchester Julien Ponge, Red Hat Mandana Vaziri, IBM Research Manuel Serrano, Inria Marc Feeley, Université de Montréal Mark Marron, Microsoft Research Na Meng, Virginia Tech Nick Papoulias

Python homework

2017-12-08 Thread nick martinez2 via Python-list
I have a question on my homework. My homework is to write a program in which the computer simulates the rolling of a die 50 times and then prints (i). the most frequent side of the die (ii). the average die value of all rolls. I wrote the program so it says the most frequent number out of all the r

Re: Round to 2 decimal places

2017-12-06 Thread nick martinez via Python-list
On Wednesday, December 6, 2017 at 9:32:27 PM UTC-5, nick martinez wrote: > On Wednesday, December 6, 2017 at 9:03:27 PM UTC-5, ssghot...@gmail.com wrote: > > On Thursday, December 7, 2017 at 12:39:38 PM UTC+11, nick martinez wrote: > > > On Wednesday, December 6, 2017 at 8:13:3

Re: Round to 2 decimal places

2017-12-06 Thread nick martinez via Python-list
On Wednesday, December 6, 2017 at 9:03:27 PM UTC-5, ssghot...@gmail.com wrote: > On Thursday, December 7, 2017 at 12:39:38 PM UTC+11, nick martinez wrote: > > On Wednesday, December 6, 2017 at 8:13:36 PM UTC-5, ssghot...@gmail.com > > wrote: > > > The following works:

Re: Round to 2 decimal places

2017-12-06 Thread nick martinez via Python-list
On Wednesday, December 6, 2017 at 8:13:36 PM UTC-5, ssghot...@gmail.com wrote: > The following works: > > import math > > print("This program will calculate the surface area and volume of a > 3-dimensional cone: ") > print() > print() > r = input("What is the radius in feet? (no negatives): ") >

Round to 2 decimal places

2017-12-06 Thread nick martinez via Python-list
I'm stuck. I need my program to round the end solution to 2 decimal places but cant figure it out. Can someone help? I've been trying between printf and round() but cant seem to get either to work. Python 3.5 is what I'm using. import math print("This program will calculate the surface area and

Re: how to fast processing one million strings to remove quotes

2017-08-03 Thread Nick Mellor
plit('|') split_on_dbl_dbl_quote = original_list.join('|').split('""') remove_dbl_dbl_quotes_and_outer_quotes = '"'.join(split_on_dbl_dbl_quote[::2]).split('|') Cheers, Nick > > You need to be sure of your data: [::2] (return jus

Re: how to fast processing one million strings to remove quotes

2017-08-02 Thread Nick Mellor
| is in none of your strings. split_on_dbl_dbl_quote = original_list.join('|').split('""') remove_dbl_dbl_quotes_and_outer_quotes = split_on_dbl_dbl_quote[::2].join('').split('|') You need to be sure of your data: [::2] (return just even-number

Re: Better Regex and exception handling for this small code

2017-07-12 Thread Nick Mellor
here's not much need to compile regexes unless you've got *a lot* of them in your code. The first ones are automatically compiled and cached: https://stackoverflow.com/questions/452104/is-it-worth-using-pythons-re-compile Cheers, Nick -- https://mail.python.org/mailman/listinfo/python-list

Re: Wrong release date in 3.6 whats new docs?

2016-12-14 Thread Nick Sarbicki
I'm aware of the the schedule in the PEP. But if the date at the top of the What's New page is the last day it was updated and not the release date then that is what has caused the confusion. On Wed, 14 Dec 2016, 22:58 , wrote: > On Wednesday, December 14, 2016 at 2:09:22 PM UTC,

Wrong release date in 3.6 whats new docs?

2016-12-14 Thread Nick Sarbicki
Afternoon everyone. Might be missing something obvious but the 3.6 What's New docs point to the release date being the 12th. https://docs.python.org/3.6/whatsnew/3.6.html#what-s-new-in-python-3-6 I got the team excited about Friday's release so that caused some confusion here. Guessing it's a t

Re: Guys, can you please share me some sites where we can practice python programs for beginners and Intermediate.

2016-06-22 Thread Nick Sarbicki
On Wed, Jun 22, 2016 at 9:42 AM Miki Tebeka wrote: > IMO you can do that at https://www.codecademy.com/learn/python > Some people might think differently but I wouldn't recommend a python course which teaches 2.7 over 3.x. It bugs me that learnpythonthehardway and codecademy - probably 2 of the

Re: Recommendation for GUI lib?

2016-06-07 Thread Nick Sarbicki
finitely makes the work go faster. - Nick. > -- https://mail.python.org/mailman/listinfo/python-list

Re: Recommendation for GUI lib?

2016-06-02 Thread Nick Sarbicki
d a really nice GUI editor ( https://en.wikipedia.org/wiki/Qt_Creator). There are a lot of resources around and, as predicted, already has some examples of date pickers: http://www.eurion.net/python-snippets/snippet/Calendar_Date%20picker.html - Nick. -- https://mail.python.org/mailman/listinfo/python-list

Re: Average calculation Program *need help*

2016-05-13 Thread Nick Sarbicki
On Fri, 13 May 2016, 06:52 Jake Kobs, wrote: > Thank you for the help..I think I'm getting closer, but I feel like after > they enter an invalid number, it should reset the invalid number(s) > somehow. Here's my updated code: > > ---

Basic plugin architecture

2016-04-06 Thread Nick Sarbicki
ould import as: > from loader import plugins plugins.plugins would then be a list of imported plugin modules. With this I can use the __dict__ of each plugin module in plugins.plugins to find which classes we want to use. This works. But I wonder if there is a better way. Any suggestions? - Nick. -- https://mail.python.org/mailman/listinfo/python-list

Re: Meta Data

2016-03-29 Thread Nick
I did find a couple of patterns in Effective Python: 59 Specific Ways to Write Better Python (Effective Software Development). Registering classes and a field example. Thanks N. -- https://mail.python.org/mailman/listinfo/python-list

Re: Meta Data

2016-03-28 Thread Nick
Thanks Joel, A quick look on Amazon shows it is probably relevant. N. -- https://mail.python.org/mailman/listinfo/python-list

Meta Data

2016-03-28 Thread Nick
Django has the idea of specifying models using typed Fields. The same exists within SQLAlchemy Are there any tutorials on setting up a similar system. ie. Declare classes and fields, query the meta data. Fields restricted to certain types. N. -- https://mail.python.org/mailman/listinfo/pytho

Re: How to make Python interpreter a little more strict?

2016-03-26 Thread Nick Sarbicki
On Sat, Mar 26, 2016 at 9:59 AM Aleksander Alekseev wrote: > Hello > > Recently I spend half an hour looking for a bug in code like this: > > eax@fujitsu:~/temp$ cat ./t.py > #!/usr/bin/env python3 > > for x in range(0,5): > if x % 2 == 0: > next > print(str(x)) > > eax@fujitsu:~/

[no subject]

2016-03-23 Thread Nick Eubank
Hello All, Found an odd behavior I'd never known about today, not sure if it's a bug or known. Python 3.4.4 (anaconda). True, False, 0, 1 can all be used as dictionary keys. But Apparently True and 1 hash to the same item and False and 0 hash to the same item, so they can easily overwrite (whic

Re: A mistake which almost went me mad

2016-03-03 Thread Nick Sarbicki
On Thu, Mar 3, 2016 at 10:26 AM ast wrote: > Hello > > This has to be told > > I created a file pickle.py > You could stop there. The number of times I've had to correct a student for naming their script "turtle.py". And the number of times I've caught myself doing it... ...

Re: python-2.7.3 vs python-3.2.3

2016-01-26 Thread Nick Sarbicki
one the same. But some systems will still be reliant on it. Then there is also this PEP: https://www.python.org/dev/peps/pep-0394/ - Nick. -- https://mail.python.org/mailman/listinfo/python-list

subscripting Python 3 dicts/getting the only value in a Python 3 dict

2016-01-12 Thread Nick Mellor
[0]] 1 >>> for k in d: ... value = d[k] ... break ... >>> value 1 >>> list(d.values())[0] 1 None of this feels like the "one, and preferably only one, obvious way to do it" we all strive for. Any other ideas? Thanks, Nick -- https://mail.python.org/mailman/listinfo/python-list

python 3.5.1 winsound bug

2016-01-08 Thread nick mcelwaine
Dear python team, On my 64bit windows10 the SND_ASYNC flag doesn’t cause the sound to play asynchronously. Nick McElwaine Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

Re: Administrators and moderators of Python-list, please erase all the messages that I not should have posted here in python-list!

2015-12-10 Thread Nick Sarbicki
p your past you will do more to damage any future relationships you will have with developers. - Nick. On Thu, Dec 10, 2015 at 2:55 PM françai s wrote: > Administrators and moderators of Python-list, please erase all the messages > that I not should have posted here in python-list. >

Re: Regular expressions

2015-11-03 Thread Nick Sarbicki
t of my job is bringing our legacy Python code into the modern day, and one of the largest roadblocks is the amount of regex used. Some is necessary. Some can be replaced by an `if word in str` or something similarly basic. Some spans hundreds of lines and causes acute alopecia. Just yesterday

Re: Einstein's Riddle

2015-09-18 Thread Nick Sarbicki
notice that it's over fourteen years old. > > Time is relative. Perhaps the poster has been travelling at close to the > speed of light, and for him it is only a few minutes after the original > post was sent. > > > -- > Steven > > -- > https://

Re: datetime.datetime.today()

2015-09-16 Thread Nick Sarbicki
sing the today method of the datetime property which inevitably returns a datetime object. Getting today from the date object will return an actual date. Now and today are very, very, similar - but now may be more accurate and gives flexibility with timezones as per https://docs.pyt

Re: Reply to author, reply to list, reply to all (was: Need Help w. PIP!)

2015-09-08 Thread Nick Sarbicki
l technology, | > `\ calls it proprietary, and then tries to keep others from | > _o__) building on it, is a thief.” —Tim O'Reilly, 2000-01-25 | > Ben Finney > > -- > https://mail.python.org/mailman/listinfo/python-list My question then is do you reply

Re: Need Help w. PIP!

2015-09-04 Thread Nick Sarbicki
In the cmd "echo %path%" and send us the output. Also try to run "pip" as opposed to "python -m pip". Nick. On Fri, 4 Sep 2015 17:41 Steve Burrus wrote: > On Thursday, September 3, 2015 at 10:12:23 PM UTC-5, Mark Lawrence wrote: > > On 04/09/2015 02:04

Re: Need Help w. PIP!

2015-09-03 Thread Nick Sarbicki
> Just typing 'pip' as you do does't work because pip.exe is located in Python\Scripts directory which in not included on variable %PATH% Is that new for win10? Just "pip" works fine on my win7 install. Although maybe I had to extend the path and forgot... - Nick

Re: Porting Python Application to a new linux machine

2015-09-03 Thread Nick Sarbicki
y. > > Okay. I don't run any current Ubuntu anywhere, so I don't know. And I > can't even find back the page now where the plans were being > discussed; best I can find is this, about a year out of date now: > > https://wiki.ubuntu.com/Python/3 > > ChrisA > -- > https://mail.python.org/mailman/listinfo/python-list > -- - Nick -- https://mail.python.org/mailman/listinfo/python-list

Re: Porting Python Application to a new linux machine

2015-09-03 Thread Nick Sarbicki
distros with > > Python3.x as default (Fedora?) > > Also Ubuntu. If you want to work across multiple Linux distros, the > easiest way is to tell people to install either "python2" or "python3" > using their system package manager, and then use that. > &

Re: Strange location for a comma

2015-09-03 Thread Nick Sarbicki
Tim, Doesn't work for the first column in SQL, but we tend to put the comma and a space before the column name. It makes it easier to move things around and (debateably) more readable. It is also very obvious when you have missed a comma this way. - Nick On Thu, 3 Sep 2015 16:14 Tim

Re: error

2015-09-02 Thread Nick Sarbicki
h won't work that way (it will work if you type "import p2"). When you should be using "python p2.py" at the terminal. - Nick On Wed, 2 Sep 2015 19:20 wrote: > Hi, > > > I have a Python version: Python 2.7.8 > > I'm runing it on: Fedora release

Re: packing unpacking depends on order.

2015-09-02 Thread Nick Sarbicki
b = 1 > >>> a[b], b = b, a[b] > >>> a > [1, 1, 3, 4, 5] > > I think I understand how it gets these results > but I'm not really happy with them. I think python > should give the second result in both cases. > > -- > Antoon Pardon > > -- > https://mail.python.org/mailman/listinfo/python-list > -- - Nick -- https://mail.python.org/mailman/listinfo/python-list

Re: OFF-TOPIC Ben's sig monster quote [was Re: Parametrized Unit Tests]

2015-08-28 Thread Nick Sarbicki
here is always someone who thinks that it is better than > peace. > > > > -- > Steven > > -- > https://mail.python.org/mailman/listinfo/python-list > -- - Nick -- https://mail.python.org/mailman/listinfo/python-list

Re: Generating list of unique search sub-phrases

2015-06-17 Thread Nick Mellor
On Saturday, 30 May 2015 06:39:44 UTC+10, Nick Mellor wrote: > Hi all, > > My own solution works but I'm sure it could be simpler or read better. How > would you do it? > > Say you've got a list of companies: > > Aerosonde Ltd > Amcor > ANCA > Aus

Generating list of unique search sub-phrases

2015-05-29 Thread Nick Mellor
Hi all, My own solution works but I'm sure it could be simpler or read better. How would you do it? Say you've got a list of companies: Aerosonde Ltd Amcor ANCA Austal Ships Australia Post Australian Air Express Australian Defence Industries Australian Railroad Group Australian Submarine Corpor

paramiko-expect with Python 2->3 'str' buffer interface issues?

2015-03-23 Thread Nick Ellson
using paramiko-expect? It seems to have the usual 'str' type issue I have seen, and used .decode() for, but can't seem to make it happy with this module. Nick Traceback (most recent call last): File "./ssh-expect.py", line 29, in interact.expect(pr

Re: [Python-Dev] Python 2.x and 3.x use survey, 2014 edition

2014-12-13 Thread Nick Coghlan
ling to consider an update to the C extension porting guide to be more in line with Brett's latest version of the Python level porting guide? Regards, Nick. -- https://mail.python.org/mailman/listinfo/python-list

Re: optional types

2014-10-29 Thread Nick Cash
> Am I the only one who'd like to see optional types introduced in Python? Nope! Some dude named "Guido" would like to see them as well: https://mail.python.org/pipermail/python-ideas/2014-August/028742.html -- https://mail.python.org/mailman/listinfo/python-list

Re: Help with parsing a dict from Vendor's API?

2014-10-15 Thread Nick Ellson
t names running code 4.1.9, or display the serial number of the device with hostname 'foo' That should get me on my way to productive fun :-) Nick Nick Ellson - from iPhone (forgive typos) CCIE #20018 Network Hobbyist "Educating Layer 8, one user at a time." > On Oc

Help with parsing a dict from Vendor's API?

2014-10-15 Thread Nick Ellson
009', 'family': '200', 'url-filtering-version': '4390', 'vpn-disable-mode': False, 'logdb-version': '4.1.2', 'serial': '001606008639', 'hostname': 'bib-int-fw'}, <repeats for 180 firewalls> ]}}, 'status': 'success'}} What I want is to parse through each firewall grabbing the "ip-address" value so that I can dump it to a list: For use in another network management tool so I don't rely on outsourced help to remember to place teh firewalls into the correct tools. But dang if every dict tutorial seems to deal with slightly simpler looking structures than what this puts out. I would be very appreciative with help stepping out of the 6 line "address book/grocery list" example world for a taste of something useful :-) Maybe to a Python coder, it maybe a simple even be able to randomly reference a firewall index number and teh value in this structure so one can easily just pluck any A/V pair at will.. just not for me yet :-D Nick -- https://mail.python.org/mailman/listinfo/python-list

Re: Template language for random string generation

2014-08-08 Thread Nick Cash
On 08/08/2014 01:45 PM, cwolf.a...@gmail.com wrote: > On Friday, August 8, 2014 10:35:12 AM UTC-4, Skip Montanaro wrote: >> P.S. Probably a topic for a separate thread, and not actually >> Python-related, but on a related note, I have never found a free password >> keeper which works on all my p

Re: Python's re module and genealogy problem

2014-06-11 Thread Nick Cash
On 06/11/2014 10:35 AM, Michael Torrie wrote: > On 06/11/2014 06:23 AM, BrJohan wrote: >> For some genealogical purposes I consider using Python's re module. >> >> Rather many names can be spelled in a number of similar ways, and in >> order to match names even if they are spelled differently, I

Re: random.seed question (not reproducing same sequence)

2014-04-15 Thread Nick Mellor
ial_id=rnd.randrange(test_size), special_qty=qty, products=[(rnd.choice(PRODUCTS), rnd.choice(range(10))) for r in range(rnd.randrange(7))]) Cheers, Nick -- https://mail.python.

random.seed question (not reproducing same sequence)

2014-04-15 Thread Nick Mellor
ndom to the stockbin parameter, the test passes. Best wishes, Nick for qty in [4, 0]: random.seed(seed) for cart in range(test_size): for special in range(randrange(3)): s.addUpdate_special_to_cart(

Re: Tuples and immutability

2014-02-27 Thread Nick Timkovich
On Thu, Feb 27, 2014 at 10:33 AM, Chris Angelico wrote: > On Fri, Feb 28, 2014 at 3:27 AM, Eric Jacoboni > wrote: > > But, imho, it's far from being a intuitive result, to say the least. > > It's unintuitive, but it's a consequence of the way += is defined. If > you don't want assignment, don't

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread Nick Timkovich
On Tue, Feb 25, 2014 at 2:32 PM, mauro wrote: > > So I wonder why operations such us intersection, union, difference, > symmetric difference that are available for sets and are not available > for dictionaries without going via key dictviews. How would the set operations apply to the dictionary v

Re: Generator using item[n-1] + item[n] memory

2014-02-14 Thread Nick Timkovich
Roy Smith wrote: > In article , > Nick Timkovich wrote: > > > Ah, I think I was equating `yield` too closely with `return` in my head. > > Whereas `return` results in the destruction of the function's locals, > > `yield` I should have known keeps them around, a la

Re: Generator using item[n-1] + item[n] memory

2014-02-14 Thread Nick Timkovich
Ah, I think I was equating `yield` too closely with `return` in my head. Whereas `return` results in the destruction of the function's locals, `yield` I should have known keeps them around, a la C's `static` functions. Many thanks! -- https://mail.python.org/mailman/listinfo/python-list

Generator using item[n-1] + item[n] memory

2014-02-14 Thread Nick Timkovich
belt-and-suspenders-and-duct-tape approach `data = None`, `del data`, and `gc.collect()` does nothing. I'm pretty sure the generator itself is not doubling up on memory because otherwise a single large value it yields would increase the peak usage, and in the *same iteration* a large object a

RE: kivy

2014-02-04 Thread Nick Cash
ou narrow down where the problem lies. -Nick Cash -- https://mail.python.org/mailman/listinfo/python-list

RE: the Gravity of Python 2

2014-01-09 Thread Nick Cash
> and "%s" (which is incredibly useful) is not even documented (I suspect it's > also not available on all platforms). The format specifiers available to Python are just whatever is available to the underlying c time.h. The manpage for strftime indicates that %s isn't part of the C standard, bu

RE: cascading python executions only if return code is 0

2013-12-23 Thread Nick Cash
utions. Which is to say, not at all. -Nick Cash -- https://mail.python.org/mailman/listinfo/python-list

RE: Does Python optimize low-power functions?

2013-12-06 Thread Nick Cash
>My question is, what do Python interpreters do with power operators where the >power is a small constant, like 2? Do they know to take the shortcut? Nope: Python 3.3.0 (default, Sep 25 2013, 19:28:08) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information.

Re: Python and PEP8 - Recommendations on breaking up long lines?

2013-12-04 Thread Nick Mellor
lly. Here's an example: def spreadsheet(csv_filename): with open(csv_filename) as csv_file: for csv_row in list(csv.DictReader(csv_file, delimiter='\t')): yield csv_row then invoked using: for row in spreadsheet("...") # your processing code here Cheers, Nick -- https://mail.python.org/mailman/listinfo/python-list

Re: [Python-ideas] Unicode stdin/stdout

2013-11-18 Thread Nick Coghlan
= codecs.getwriter("utf-8")(sys.stdout.detach()) > sys.stdout.encoding = 'utf8' > sys.stderr = codecs.getwriter("utf-8")(sys.stderr.detach()) > sys.stderr.encoding = 'utf8' Note that calling detach() on the standa

Re: Trying tcompile an use the Python 3.4a

2013-11-14 Thread Nick the Gr33k
Will someone please tell me how to install 'pip' My website is not working because modules are missing and the only way i can install them is by installing python's module manager 'pip' but 'yum install python-pip' fails. How would i install the damn thing? These action should be done via pa

RE: How to tell an HTTP client to limit parallel connections?

2013-11-08 Thread Nick Cash
tc. It's not the prettiest solution, but it could work. -Nick Cash -- https://mail.python.org/mailman/listinfo/python-list

RE: chunking a long string?

2013-11-08 Thread Nick Cash
be added to itertools before, but rejected: https://mail.python.org/pipermail/python-ideas/2012-July/015671.html and http://bugs.python.org/issue13095 - Nick Cash -- https://mail.python.org/mailman/listinfo/python-list

Re: Adding 'download' column to existing 'visitors' table (as requested)

2013-11-06 Thread Nick the Gr33k
Στις 6/11/2013 9:38 πμ, ο/η Nick the Gr33k έγραψε: Ah great!!! I just examined my other MySQL database which just stored webpages and their corresponding visits and voila. Someone was able to pass values into my counters table: look: http://superhost.gr/?show=stats thats why it didn't

Re: Adding 'download' column to existing 'visitors' table (as requested)

2013-11-05 Thread Nick the Gr33k
Ah great!!! I just examined my other MySQL database which just stored webpages and their corresponding visits and voila. Someone was able to pass values into my counters table: look: http://superhost.gr/?show=stats thats why it didn't had 1 or 2 or 3 as 'counterID' but more values were pre

Adding 'download' column to existing 'visitors' table (as requested)

2013-11-05 Thread Nick the Gr33k
I have decided to take your advice. I wasn't able to fit those 'lists' of mine into MySQL's varchar() datatype after converting them to long strings and that sads me. My implementation is like the following. I do not use an extra table of downlaods that i asoociate with table visitors with a f

Re: Help me with this code PLEASE

2013-11-05 Thread Nick the Gr33k
Στις 6/11/2013 12:54 πμ, ο/η John Gordon έγραψε: The code i provided only worked once before it failed and managed to store this: counterID,host,refs,city,userOS,browser,visits,hits,download - 1, 176-92-96-218.adsl.cyta.gr, Euro

Re: Help me with this code PLEASE

2013-11-05 Thread Nick the Gr33k
Στις 6/11/2013 12:15 πμ, ο/η Piet van Oostrum έγραψε: Nick the Gr33k writes: IAM STRUGGLING WITH IT 2 DAYS NOW AND I CANNOT GET IT TO WORK. ALL I WANT IT TO DO IS JUST 1. RETRIEVE 3 COLUMNS THAT CONSIST OF 3 LONG STRINGS 2. CONVERT LONG STRINGS TO LISTS 3. ADD SOME CURRENT VALUES TO THOSE

Re: Help me with this code PLEASE

2013-11-05 Thread Nick the Gr33k
Στις 6/11/2013 12:06 πμ, ο/η John Gordon έγραψε: In Nick the Gr33k writes: # fetch those columns that act as lists but are stored as strings cur.execute('''SELECT refs, visits, downloads FROM visitors WHERE counterID = %s and host = %s

Re: Help me with this code PLEASE

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 10:19 μμ, ο/η John Gordon έγραψε: In Nick the Gr33k writes: IAM STRUGGLING WITH IT 2 DAYS NOW AND I CANNOT GET IT TO WORK. ALL I WANT IT TO DO IS JUST 1. RETRIEVE 3 COLUMNS THAT CONSIST OF 3 LONG STRINGS 2. CONVERT LONG STRINGS TO LISTS 3. ADD SOME CURRENT VALUES TO

Re: Help me with this code PLEASE

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 8:02 μμ, ο/η Denis McMahon έγραψε: On Tue, 05 Nov 2013 19:06:25 +0200, Nick the Gr33k wrote: IAM STRUGGLING WITH IT 2 DAYS NOW AND I CANNOT GET IT TO WORK. Try starting with something simple. The following is a step by step guide to working out how you need to do this. Follow

Re: Help me with this code PLEASE

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 7:41 μμ, ο/η Steven D'Aprano έγραψε: On Tue, 05 Nov 2013 19:06:25 +0200, Nick the Gr33k wrote: ALL I WANT IT TO DO IS JUST 1. RETRIEVE 3 COLUMNS THAT CONSIST OF 3 LONG STRINGS 2. CONVERT LONG STRINGS TO LISTS 3. ADD SOME CURRENT VALUES TO THOSE LISTS 4. CONVERT FROM LIS

Help me with this code PLEASE

2013-11-05 Thread Nick the Gr33k
== # fetch those columns that act as lists but are stored as strings cur.execute('''SELECT refs, visits, downloads FROM visitors WHERE counterID = %s and host = %s''', (cID, host) ) data = cur.fetchone() ref

Re: How to add a current string into an already existing list

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 1:16 μμ, ο/η Dave Angel έγραψε: On Tue, 05 Nov 2013 12:33:49 +0200, Nick the Gr33k wrote: Στις 5/11/2013 12:20 μμ, ο/η Antoon Pardon έγραψε: > Did you read the documentation of fetchone? fetchone is like fetchall except from the fact that the former returned a row

Re: How to add a current string into an already existing list

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 5:45 μμ, ο/η Tim Chase έγραψε: On 2013-11-05 17:39, Nick the Gr33k wrote: data = infile.readlines You're assigning it to the bound function rather than calling the function. Use the "call" operator: data = infile.readlines() -tkc -- infile=open(&qu

Re: How to add a current string into an already existing list

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 3:15 μμ, ο/η Dave Angel έγραψε: On Tue, 05 Nov 2013 14:25:41 +0200, Nick the Gr33k wrote: i tried inserting a type function to notify me of the datatype of 'data' but that didnt help too. What did that print show ? In what way didn't it help? It said the type

Re: How to add a current string into an already existing list

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 1:49 μμ, ο/η Steven D'Aprano έγραψε: On Tue, 05 Nov 2013 12:33:49 +0200, Nick the Gr33k wrote: Στις 5/11/2013 12:20 μμ, ο/η Antoon Pardon έγραψε: Did you read the documentation of fetchone? fetchone is like fetchall except from the fact that the former returned a r

Re: How to add a current string into an already existing list

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 12:20 μμ, ο/η Antoon Pardon έγραψε: Did you read the documentation of fetchone? fetchone is like fetchall except from the fact that the former returned a row of data while the latter returned a list of rows of data. I dont know why it copmains about: TypeError: 'NoneType' o

Re: How to add a current string into an already existing list

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 11:34 πμ, ο/η Nick the Gr33k έγραψε: Στις 5/11/2013 11:10 πμ, ο/η M.F. έγραψε: On 11/05/2013 04:54 PM, Nick the Gr33k wrote: === data = cur.fetchall data = cur.fetchall() That is what the stack trace and Christ tried to inform you. for row in data

Re: How to add a current string into an already existing list

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 11:10 πμ, ο/η M.F. έγραψε: On 11/05/2013 04:54 PM, Nick the Gr33k wrote: === data = cur.fetchall data = cur.fetchall() That is what the stack trace and Christ tried to inform you. for row in data: === The only thing i can understand by looking the

Re: How to add a current string into an already existing list

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 10:21 πμ, ο/η Chris Angelico έγραψε: On Tue, Nov 5, 2013 at 7:07 PM, Nick the Gr33k wrote: How is ti possible for data to be none iterable? Do you know how to call a method in Python? If not, go back to the beginning of the tutorial and start reading. If so, look through your

Re: How to add a current string into an already existing list

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 10:21 πμ, ο/η Chris Angelico έγραψε: On Tue, Nov 5, 2013 at 7:07 PM, Nick the Gr33k wrote: How is ti possible for data to be none iterable? Do you know how to call a method in Python? If not, go back to the beginning of the tutorial and start reading. If so, look through your

Re: How to add a current string into an already existing list

2013-11-05 Thread Nick the Gr33k
Στις 5/11/2013 8:54 πμ, ο/η Nick the Gr33k έγραψε: Στις 5/11/2013 12:46 πμ, ο/η Denis McMahon έγραψε: On Mon, 04 Nov 2013 19:03:58 +0200, Nick the Gr33k wrote: There is no built in support in the python / mysql system for puttinga list straight into a database, because mysql does not have

Re: How to add a current string into an already existing list

2013-11-04 Thread Nick the Gr33k
Στις 5/11/2013 12:46 πμ, ο/η Denis McMahon έγραψε: On Mon, 04 Nov 2013 19:03:58 +0200, Nick the Gr33k wrote: There is no built in support in the python / mysql system for puttinga list straight into a database, because mysql does not have"collection" record type. Does postgresq

Re: How to add a current string into an already existing list

2013-11-04 Thread Nick the Gr33k
Στις 3/11/2013 2:16 μμ, ο/η Roy Smith έγραψε: In article , Gregory Ewing wrote: Nick the Gr33k wrote: I just want a mysql column type that can be eligible to store an array of elements, a list that is, no need for having a seperate extra table for that if we can have a column that can

Re: Printing appropriately based on values retrieved

2013-11-02 Thread Nick the Gr33k
Στις 2/11/2013 8:25 μμ, ο/η Nick the Gr33k έγραψε: for row in newdata: (host, refs, city, useros, browser, visits, hits, downloads) = row if downloads != 'Δεν έχει κατεβάσει ταινία': print( '' ) for n, download in enumerate( downloads ):

Printing appropriately based on values retrieved

2013-11-02 Thread Nick the Gr33k
for row in newdata: (host, refs, city, useros, browser, visits, hits, downloads) = row if downloads != 'Δεν έχει κατεβάσει ταινία': print( '' ) for n, download in enumerate( downloads ): if n == 0: op_

Re: How to add a current string into an already existing list

2013-11-02 Thread Nick the Gr33k
Στις 2/11/2013 3:03 μμ, ο/η Andreas Perstinger έγραψε: On 02.11.2013 12:58, Nick the Gr33k wrote: Trying to add the current filename into the existent 'downloads' column Somehow i don't think i just use the plus sign into an existing column. We don't try to add numbers h

How to add a current string into an already existing list

2013-11-02 Thread Nick the Gr33k
Trying to add the current filename into the existent 'downloads' column Somehow i don't think i just use the plus sign into an existing column. We don't try to add numbers here but add an extra string to an already existing array of strings(list). ==

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-02 Thread Nick the Gr33k
You can see the erro as its appearing here: http://superhost.gr/ Its weird that no single quotes are enclosing the string values though and the other bizarre thign is that 'downloads' list is tryign to fiull in all the movies. -- https://mail.python.org/mailman/listinfo/python-list

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-02 Thread Nick the Gr33k
Στις 2/11/2013 4:00 πμ, ο/η ru...@yahoo.com έγραψε: On Friday, November 1, 2013 9:04:08 AM UTC-6, Ferrous Cranus wrote: Rurpy can you help me please solve this? is enum or set column types what needed here as proper columns to store 'download' list? I'd help if I could but I don't use MySql an

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-01 Thread Nick the Gr33k
Στις 1/11/2013 9:12 μμ, ο/η Denis McMahon έγραψε: On Thu, 31 Oct 2013 11:32:29 +0200, Nick the Gr33k wrote: The error seen form error log is: [Thu Oct 31 09:29:35 2013] [error] [client 46.198.103.93] pymysql.err.InternalError: (1241, 'Operand should contain 1 column(s)') (cID,

  1   2   3   4   5   6   7   8   9   10   >