Re: Editor Ergonomics [was: Important features for editors]

2013-07-08 Thread Giorgos Tzampanakis
On 2013-07-06, Skip Montanaro wrote: > More likely, rms ignored the problem and had bad personal ergomonics: > ignorance or lack of understanding of the problem, poor posture, > wrists not in a neutral position, lack of breaks, etc. If you stop to > think about it, all text editors probably prese

Re: Editor Ergonomics [was: Important features for editors]

2013-07-08 Thread Steven D'Aprano
On Sun, 07 Jul 2013 22:34:46 -0700, jussij wrote: > On Sunday, July 7, 2013 12:41:02 PM UTC+10, Steven D'Aprano wrote: > >> I am not an ergonomic expert, but I understand that moving from mouse >> to keyboard actually helps prevent RSI, because it slows down the rate >> of keystrokes and uses dif

Re: UnpicklingError: NEWOBJ class argument isn't a type object

2013-07-08 Thread Peter Otten
skunkwerk wrote: > Hi, > I'm using a custom pickler that replaces any un-pickleable objects (such > as sockets or files) with a string representation of them, based on the > code from Shane Hathaway here: > http://stackoverflow.com/questions/4080688/python-pickling-a-dict-with- some-unpickla

Re: python adds an extra half space when reading from a string or list

2013-07-08 Thread Antoon Pardon
Op 06-07-13 00:40, ru...@yahoo.com schreef: > On 07/04/2013 06:09 AM, Antoon Pardon wrote: >> Op 03-07-13 19:11, ru...@yahoo.com schreef: >>> On 07/03/2013 03:21 AM, Antoon Pardon wrote: Op 03-07-13 02:30, ru...@yahoo.com schreef: > If your going to point out something negative about someo

Re: Tutorials on Jinja

2013-07-08 Thread dtbulmer2
On Wednesday, June 24, 2009 11:46:55 AM UTC-7, Saurabh wrote: > Hi All, > > I am trying to move my application on a MVC architecture and plan to > use Jinja for the same. Can anyone provide me with few quick links > that might help me to get started with Jinja? > > Thanks, > Saby this is a site

Newbie. Need help

2013-07-08 Thread Sanza101
I just started using Python recently, and i need help with the following: Please assist. 1. Create another function that generates a random number (You will have to import the relevant library to do this) 2. Create a function that is called from the main function, that accepts a numbe

Re: Illegal suggestions on python list

2013-07-08 Thread Joshua Landau
On 5 July 2013 08:34, Chris Angelico wrote: > On Fri, Jul 5, 2013 at 5:23 PM, Νίκος Gr33k wrote: >> Of course we all know that a serial/patch/keygen/crack can be found for this >> great edit very easily on warez or torrentz sites so it was like a common >> secret to all of us. > > Actually no, I

Re: Geo Location extracted from visitors ip address

2013-07-08 Thread Joel Goldstick
On Fri, Jul 5, 2013 at 3:08 PM, Νίκος Gr33k wrote: > Is there a way to extract out of some environmental variable the Geo > location of the user being the city the user visits out website from? > > Perhaps by utilizing his originated ip address? > > -- > What is now proved was at first only imagi

Re: Geo Location extracted from visitors ip address

2013-07-08 Thread Jerry Hill
On Fri, Jul 5, 2013 at 3:08 PM, Νίκος Gr33k wrote: > Is there a way to extract out of some environmental variable the Geo > location of the user being the city the user visits out website from? > > Perhaps by utilizing his originated ip address? No, you'd need to take the originating IP address a

Re: Geo Location extracted from visitors ip address

2013-07-08 Thread Robert Kern
On 2013-07-06 09:41, Νίκος Gr33k wrote: Στις 6/7/2013 11:30 πμ, ο/η Chris Angelico έγραψε: On Sat, Jul 6, 2013 at 6:01 PM, � Gr33k wrote: Is there any way to pinpoint the visitor's exact location? Yes. You ask them to fill in a shipping address. They may still lie, or they may choose to

AMQP listening and user-facing daemon

2013-07-08 Thread Justin Chiu
Hi all, What is the best approach to writing a concurrent daemon that can execute callbacks for different types of events (AMQP messages, parsed output of a subprocess, HTTP requests)? I am considering [twisted][1], the built-in [threading][2] module, and [greenlet][3]. I must admit that I a

Re: Geo Location extracted from visitors ip address

2013-07-08 Thread Support by Νίκος
Στις 5/7/2013 10:28 μμ, ο/η Jerry Hill έγραψε: On Fri, Jul 5, 2013 at 3:08 PM, Νίκος Gr33k wrote: Is there a way to extract out of some environmental variable the Geo location of the user being the city the user visits out website from? Perhaps by utilizing his originated ip address? No, you'

Re: Geo Location extracted from visitors ip address

2013-07-08 Thread Chris Angelico
On Sat, Jul 6, 2013 at 7:18 AM, Dave Angel wrote: > On 07/05/2013 04:44 PM, Tim Roberts wrote: >> >> ? Gr33k wrote: >>> >>> >>> Is there a way to extract out of some environmental variable the Geo >>> location of the user being the city the user visits out website from? >>> >>> Perhaps by uti

capture html screen with pexpect

2013-07-08 Thread inq1ltd
python help, I can log into a web site with pexpect but what I want to do is pipe the opening window to a file. Logging into the site opens the site window but I can't get the window to a file. I can't use screen capture I need to get pexpect to pipe it to a txt file. Any help will be appre

A small question about PEP 8

2013-07-08 Thread Xue Fuqiao
Hi all, (English is not my native language; please excuse typing errors.) I'm a Python newbie and just started reading PEP 8. PEP says: --- |The closing brace/bracket/parenthesis on multi-line constructs may |either line up und

Re: Important features for editors

2013-07-08 Thread Skip Montanaro
>> I couldn't live without the keyboard macro record and playback. > > I used to work with a programmer who couldn't live without his insulin > injections. Hyperbole aside, two of my most common "crutches" are Emacs macros and bash history. Given how useful macros are, I find it very odd that rec

Re: Newbie. Need help

2013-07-08 Thread Joshua Landau
On 8 July 2013 09:53, Sanza101 wrote: > I just started using Python recently, and i need help with the following: > Please assist. Rather than saying you want help with "Please assist", why don't you ask a question? I find when people start their post with "I need help, please help" they forget

Re: A small question about PEP 8

2013-07-08 Thread Joshua Landau
On 8 July 2013 00:32, Xue Fuqiao wrote: > Hi all, > > (English is not my native language; please excuse typing errors.) > > I'm a Python newbie and just started reading PEP 8. PEP says: > > --- > |The closing brace/bracket/parent

Re: capture html screen with pexpect

2013-07-08 Thread Dave Angel
On 07/07/2013 01:06 PM, inq1ltd wrote: python help, I can log into a web site with pexpect but what I want to do is pipe the opening window to a file. Logging into the site opens the site window but I can't get the window to a file. I can't use screen capture I need to get pexpect to pipe it

Re: A small question about PEP 8

2013-07-08 Thread Steven D'Aprano
On Mon, 08 Jul 2013 07:32:01 +0800, Xue Fuqiao wrote: > Hi all, > > (English is not my native language; please excuse typing errors.) > > I'm a Python newbie and just started reading PEP 8. PEP says: > > --- > |The closing bra

Re: Newbie. Need help

2013-07-08 Thread Alister
On Mon, 08 Jul 2013 01:53:06 -0700, Sanza101 wrote: > I just started using Python recently, and i need help with the > following: Please assist. > > 1.Create another function that generates a random number (You will have > to import the relevant library to do this) > 2.Create a function

Re: Default scope of variables

2013-07-08 Thread Neil Cerutti
On 2013-07-07, Steven D'Aprano wrote: > On Fri, 05 Jul 2013 13:24:43 +, Neil Cerutti wrote: > >> for x in range(4): >>print(x) >> print(x) # Vader NOoOO!!! > > That loops do *not* introduce a new scope is a feature, not a bug. It is > *really* useful to be able to use the value of

How do I write a script to generate 10 random EVEN numbers and write them to a .txt file?

2013-07-08 Thread Kenz09
Hi, I have been given a task to do. I am a new to programming and Python. My task is to : -Create a function that is called from the main function, that accepts a number as a parameter and determines if the number is even or odd. the next one is, -To create another function that generates a rando

Re: A small question about PEP 8

2013-07-08 Thread Steven D'Aprano
On Mon, 08 Jul 2013 11:39:21 +0100, Joshua Landau wrote: > On 8 July 2013 00:32, Xue Fuqiao wrote: >> Hi all, >> >> (English is not my native language; please excuse typing errors.) >> >> I'm a Python newbie and just started reading PEP 8. PEP says: >> >>

Re: How do I write a script to generate 10 random EVEN numbers and write them to a .txt file?

2013-07-08 Thread Dave Angel
On 07/08/2013 08:01 AM, Kenz09 wrote: Hi, I have been given a task to do. I am a new to programming and Python. My task is to : -Create a function that is called from the main function, that accepts a number as a parameter and determines if the number is even or odd. the next one is, -To create

Re: A small question about PEP 8

2013-07-08 Thread Dave Angel
On 07/08/2013 08:02 AM, Steven D'Aprano wrote: On Mon, 08 Jul 2013 11:39:21 +0100, Joshua Landau wrote: Or you can (be sane) and put it at no indentation: """ a_wonderful_set_of_things = { ..., not_missing_an_end_brace } """ I consider that the least aesthetically pleasing,

ssl handshake operation timed out on Python 3.3.2

2013-07-08 Thread Benedict Verheyen
Hi, for a project, I need to post data to some aspx pages. The aspx pages are hosted by another company. I develop on a virtual Debian Wheezy (Virtual box) running on Windows. I couldn't get the code to run either on Windows nor Linux. On my testserver (also a Debian Linux Wheezy) however, the c

Re: Newbie. Need help

2013-07-08 Thread Joshua Landau
On 8 July 2013 13:05, Sandile Mnukwa wrote: > Hi Joshua, Hello. You replied off-list (to me only, not to Python-list). I imagine this was a mistake, so I'm posting to Python-list again. If this wasn't a mistake, then I apologize and suggest telling people when you mean to reply off-list. Also,

Re: A small question about PEP 8

2013-07-08 Thread Joshua Landau
On 8 July 2013 13:02, Steven D'Aprano wrote: > On Mon, 08 Jul 2013 11:39:21 +0100, Joshua Landau wrote: > Imagine: >> >> """ >> a_wonderful_set_of_things = { >> bannanas_made_of_apples, >> chocolate_covered_horns, >> doors_that_slide, >> china_but_on_the_moon, >> buffalo_with_

Re: How do I write a script to generate 10 random EVEN numbers and write them to a .txt file?

2013-07-08 Thread Joshua Landau
On 8 July 2013 13:27, Dave Angel wrote: > One of your classmates has already posted the question. However, you win > the prize for a better subject line. Or are you the same student, changing > your name and wasting our time by starting a new thread. Considering the body of the question and his

Re: Default scope of variables

2013-07-08 Thread Joshua Landau
On 8 July 2013 12:54, Neil Cerutti wrote: > On 2013-07-07, Steven D'Aprano wrote: >> On Fri, 05 Jul 2013 13:24:43 +, Neil Cerutti wrote: >> >>> for x in range(4): >>>print(x) >>> print(x) # Vader NOoOO!!! >> >> That loops do *not* introduce a new scope is a feature, not a bug. It

Re: Geo Location extracted from visitors ip address

2013-07-08 Thread Grant Edwards
On 2013-07-06, ?? Gr33k wrote: > Yes i know iam only storing the ISP's city instead of visitor's homeland > but this is the closest i can get: > > try: >gi = pygeoip.GeoIP('/home/nikos/GeoLiteCity.dat') >city = gi.time_zone_by_addr( os.environ['HTTP_CF_CONNECTING_IP'] ) >host

Re: Geo Location extracted from visitors ip address

2013-07-08 Thread Grant Edwards
On 2013-07-06, ?? Gr33k wrote: > 6/7/2013 4:41 , ??/?? ?? Gr33k : >> Yes i know iam only storing the ISP's city instead of visitor's homeland >> but this is the closest i can get: >> >> try: >>gi = pygeoip.GeoIP('/home/nikos/GeoLiteCity.dat') >>city

ipython

2013-07-08 Thread davide . dalmasso
Hi, I work with Python 3.3. I downloaded an IPython executable version from http://www.lfd.uci.edu/~gohlke/pythonlibs/ I installed it but no shortcut appears in my start menu. How can I launch it or alternatively is there some other free source of executable file for Windows 7? Many Thanks --

Re: ipython

2013-07-08 Thread Steven D'Aprano
On Mon, 08 Jul 2013 07:44:11 -0700, davide.dalmasso wrote: > Hi, I work with Python 3.3. > I downloaded an IPython executable version from > http://www.lfd.uci.edu/~gohlke/pythonlibs/ I installed it but no > shortcut appears in my start menu. How can I launch it or alternatively > is there some ot

Re: ipython

2013-07-08 Thread Wanderer
On Monday, July 8, 2013 10:44:11 AM UTC-4, davide@gmail.com wrote: > Hi, I work with Python 3.3. > > I downloaded an IPython executable version from > http://www.lfd.uci.edu/~gohlke/pythonlibs/ > > I installed it but no shortcut appears in my start menu. > > How can I launch it or alternati

Re: Default scope of variables

2013-07-08 Thread Joshua Landau
On 4 July 2013 05:36, Chris Angelico wrote: > On Thu, Jul 4, 2013 at 2:30 PM, Joshua Landau > wrote: >> That said, I'm not too convinced. Personally, the proper way to do >> what you are talking about is creating a new closure. Like: >> >> for i in range(100): >> with new_scope(): >>

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread ferdy . blatsco
Hi Chris, glad to have received your contribution, but I was expecting much more critics... Starting from the "little nitpick" about the comment dispositon in my script... you are correct... It is a bad habit on my part to place variables subjected to change at the beginning of the script... and t

Re: Important features for editors

2013-07-08 Thread Sivaram Neelakantan
On Mon, Jul 08 2013,Skip Montanaro wrote: >>> I couldn't live without the keyboard macro record and playback. >> >> I used to work with a programmer who couldn't live without his insulin >> injections. > > Hyperbole aside, two of my most common "crutches" are Emacs macros and > bash history. Give

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread Chris Angelico
On Tue, Jul 9, 2013 at 3:31 AM, wrote: > Unfortunately (as probably I told you before) I will never pass to > Python 3... Guido should not always listen only to gurus like him... > I don't like Python as before...starting from OOP and ending with codecs > like utf-8. Regarding OOP, much apprecia

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread ferdy . blatsco
Hi Steven, thank you for your reply... I really needed another python guru which is also an English teacher! Sorry if English is not my mother tongue... "uncorrect" instead of "incorrect" (I misapplied the "similarity principle" like "unpleasant...>...uncorrect"). Apart from these trifles, you sa

Re: Important features for editors

2013-07-08 Thread Skip Montanaro
> Wasn't it C-x ( ? From the manual > >In addition to the and commands described above, Emacs > also supports an older set of key bindings for defining and executing > keyboard macros. To begin a macro definition, type `C-x (' > (`kmacro-start-macro'); as with , a prefix argument appends th

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread Chris Angelico
On Tue, Jul 9, 2013 at 3:53 AM, wrote: >>> All characters are UTF-8, characters. "a" is a UTF-8 character. So is "ă". > Not using python 3, for me (a programmer which was present at the beginning of > computer science, badly interacting with many languages from assembler to > Fortran and from c t

Re: How do I write a script to generate 10 random EVEN numbers and write them to a .txt file?

2013-07-08 Thread Dave Angel
On 07/08/2013 09:10 AM, Joshua Landau wrote: On 8 July 2013 13:27, Dave Angel wrote: One of your classmates has already posted the question. However, you win the prize for a better subject line. Or are you the same student, changing your name and wasting our time by starting a new thread. C

homework + obfuscation ... this might work ...

2013-07-08 Thread Skip Montanaro
I have an idea. Take the threads where students ask the list to do their homework for them (but don't have the cojones to admit that's what they are doing), and merge them with the obfuscated Python idea. A group of people could come up with the solution off-list, then answer the poster's original

make sublists of a list broken at nth certain list items

2013-07-08 Thread CM
I'm looking for a Pythonic way to do the following: I have data in the form of a long list of tuples. I would like to break that list into four sub-lists. The break points would be based on the nth occasion of a particular tuple. (The list represents behavioral data trials; the particular tu

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread Dave Angel
On 07/08/2013 01:53 PM, ferdy.blat...@gmail.com wrote: Hi Steven, thank you for your reply... I really needed another python guru which is also an English teacher! Sorry if English is not my mother tongue... "uncorrect" instead of "incorrect" (I misapplied the "similarity principle" like "unplea

Re: homework + obfuscation ... this might work ...

2013-07-08 Thread Ian Kelly
On Mon, Jul 8, 2013 at 2:43 PM, Skip Montanaro wrote: > I have an idea. Take the threads where students ask the list to do > their homework for them (but don't have the cojones to admit that's > what they are doing), and merge them with the obfuscated Python idea. > A group of people could come u

Re: homework + obfuscation ... this might work ...

2013-07-08 Thread Skip Montanaro
> You assume that the professor (or more likely, TA) will take the time > to ask them to explain the program and not just grade them down for > the extra work they had to do. Well, that would be fine too. :-) Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: make sublists of a list broken at nth certain list items

2013-07-08 Thread Fábio Santos
You don't want to use index() to figure out the index of the tuples. It is slower, and will not find the item you want if there is more than one of the same. For example, [1, 4, 4, 4].index(4) will always be 1, no matter how many times you loop through it. Instead, use enumerate() to keep track

Re: make sublists of a list broken at nth certain list items

2013-07-08 Thread Joshua Landau
On 8 July 2013 21:52, CM wrote: > I'm looking for a Pythonic way to do the following: > > I have data in the form of a long list of tuples. I would like to break that > list into four sub-lists. The break points would be based on the nth > occasion of a particular tuple. (The list represents

Re: make sublists of a list broken at nth certain list items

2013-07-08 Thread Joshua Landau
On 8 July 2013 22:24, Joshua Landau wrote: > if count == 60: Obviously this should be: if count == length: -- http://mail.python.org/mailman/listinfo/python-list

Re: homework + obfuscation ... this might work ...

2013-07-08 Thread Joshua Landau
On 8 July 2013 21:43, Skip Montanaro wrote: > I have an idea. Take the threads where students ask the list to do > their homework for them (but don't have the cojones to admit that's > what they are doing), and merge them with the obfuscated Python idea. > A group of people could come up with the

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread MRAB
On 08/07/2013 21:56, Dave Angel wrote: On 07/08/2013 01:53 PM, ferdy.blat...@gmail.com wrote: Hi Steven, thank you for your reply... I really needed another python guru which is also an English teacher! Sorry if English is not my mother tongue... "uncorrect" instead of "incorrect" (I misapplied

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread Chris Angelico
On Tue, Jul 9, 2013 at 6:56 AM, Dave Angel wrote: > But Unicode has nothing to do with Guido, and it has existed for about 25 > years (if I recall correctly). Depends how you measure. According to [1], the work kinda began back then (25 years ago being 1988), but it wasn't till 1991/92 that the s

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread Joshua Landau
On 8 July 2013 22:38, MRAB wrote: > On 08/07/2013 21:56, Dave Angel wrote: >> Characters do not have a width. > > [snip] > > It depends what you mean by "width"! :-) > > Try this (Python 3): > print("A\N{FULLWIDTH LATIN CAPITAL LETTER A}") > AA Serious question: How would one find the width

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread Dave Angel
On 07/08/2013 05:49 PM, Chris Angelico wrote: On Tue, Jul 9, 2013 at 6:56 AM, Dave Angel wrote: But Unicode has nothing to do with Guido, and it has existed for about 25 years (if I recall correctly). Depends how you measure. According to [1], the work kinda began back then (25 years ago bein

Re: Editor Ergonomics [was: Important features for editors]

2013-07-08 Thread Rhodri James
On Sat, 06 Jul 2013 16:04:00 +0100, rusi wrote: On Saturday, July 6, 2013 7:40:39 PM UTC+5:30, Skip Montanaro wrote: * a lot of typing, * use of modifier keys (ctrl, alt, command, etc) * movement between the mouse and the keyboard My own experience: The second 2 are the worse culprits. And w

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread Chris Angelico
On Tue, Jul 9, 2013 at 8:45 AM, Dave Angel wrote: > On 07/08/2013 05:49 PM, Chris Angelico wrote: >> >> On Tue, Jul 9, 2013 at 6:56 AM, Dave Angel wrote: >>> >>> But Unicode has nothing to do with Guido, and it has existed for about 25 >>> years (if I recall correctly). >> >> >> Depends how you m

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread MRAB
On 08/07/2013 23:02, Joshua Landau wrote: On 8 July 2013 22:38, MRAB wrote: On 08/07/2013 21:56, Dave Angel wrote: Characters do not have a width. [snip] It depends what you mean by "width"! :-) Try this (Python 3): print("A\N{FULLWIDTH LATIN CAPITAL LETTER A}") AA Serious question: H

Re: UnpicklingError: NEWOBJ class argument isn't a type object

2013-07-08 Thread skunkwerk
On Monday, July 8, 2013 12:45:55 AM UTC-7, Peter Otten wrote: > skunkwerk wrote: > > > > > Hi, > > > I'm using a custom pickler that replaces any un-pickleable objects (such > > > as sockets or files) with a string representation of them, based on the > > > code from Shane Hathaway here

Re: A small question about PEP 8

2013-07-08 Thread Ethan Furman
On 07/08/2013 03:39 AM, Joshua Landau wrote: On 8 July 2013 00:32, Xue Fuqiao wrote: Hi all, (English is not my native language; please excuse typing errors.) I'm a Python newbie and just started reading PEP 8. PEP says: --

the general development using Python

2013-07-08 Thread ajetrumpet
all, I am unhappy with the general Python documentation and tutorials. I have worked with Python very little and I'm well aware of the fact that it is a lower-level language that integrates with the shell. I came from a VB legacy background and I've already "un-learned" everything that I need

Re: the general development using Python

2013-07-08 Thread Joshua Landau
On 9 July 2013 02:45, wrote: > all, > > I am unhappy with the general Python documentation and tutorials. I have > worked with Python very little and I'm well aware of the fact that it is a > lower-level language that integrates with the shell. > > I came from a VB legacy background and I've a

Re: the general development using Python

2013-07-08 Thread Chris Angelico
On Tue, Jul 9, 2013 at 11:45 AM, wrote: > I have to get back into writing Python but I'm lacking one thing ... a > general understanding of how to write applications that can be deployed > (either in .exe format or in other formats). That's one last thing you need to un-learn, then :) You dis

Re: the general development using Python

2013-07-08 Thread Joel Goldstick
On Mon, Jul 8, 2013 at 9:45 PM, wrote: > all, > > I am unhappy with the general Python documentation and tutorials. I have > worked with Python very little and I'm well aware of the fact that it is a > lower-level language that integrates with the shell. > > I came from a VB legacy background an

Re: Editor Ergonomics [was: Important features for editors]

2013-07-08 Thread Jason Friedman
I am right-handed and use a lefty-mouse about 50% of the time. It was difficult at first, now I'm almost as fast lefty as righty. As has been stated by others, changing the muscles being used reduces the impact on any one of them. -- http://mail.python.org/mailman/listinfo/python-list

Re: the general development using Python

2013-07-08 Thread CM
On Monday, July 8, 2013 9:45:16 PM UTC-4, ajetr...@gmail.com wrote: > all, > > > > I am unhappy with the general Python documentation and tutorials. OK. Do you mean the official Python.org docs? Which tutorials? There's a ton out there. > I have worked with Python very little and I'm wel

looking for a new router

2013-07-08 Thread saadharana
Hey i'm looking for a new router. I have no set budget. Only US stores. I have cable internet and few laptops connected to it so it needs to have a strong wireless internet signal. Also i do gaming as well on wireless internet and download many large files. Thank you for the help. - used co

Networked Printer Issues

2013-07-08 Thread saadharana
Hey All, I just built a new PC and networked the printer (just like w/the old setup) but it doesn't seem to work.. I remember when I did it last time it took all of 1 minute to setup but this time the troubleshooting is going on days of my spare time. I'd really like to just get this working. -

Strange networking problems

2013-07-08 Thread saadharana
I have two computers connected through a router, one via cable and running XP, the other via wireless running win 7. This network was set up a while back and then not used for a long time, but at one point it was working, now there seem to be some sort of problems. - used computers in chenna

Re: Default scope of variables

2013-07-08 Thread alex23
On 7/07/2013 11:43 PM, Chris Angelico wrote: Yep. There's a problem, though, when you bring in subtransactions. The logic wants to be like this: with new_transaction(conn) as tran: tran.query("blah") with tran.subtransaction() as tran: tran.query("blah") with tran.sub

crack a router passcode

2013-07-08 Thread saadharana
I need to crack my router passcode to see what firmware it's running. There's a passcode set but I don't remember it and it's not written down anywhere. - used computers in chennai -- View this message in context: http://python.6.x6.nabble.com/crack-a-router-passcode-tp5024180.html Sent f

Re: looking for a new router

2013-07-08 Thread Chris Angelico
On Tue, Jul 9, 2013 at 2:52 PM, saadharana wrote: > Hey i'm looking for a new router. I have no set budget. Only US stores. I > have cable internet and few laptops connected to it so it needs to have a > strong wireless internet signal. Also i do gaming as well on wireless > internet and download

RAM slots problem

2013-07-08 Thread saadharana
I've got some annoying problem with RAM. I was depth cleaning my case, everything regular, it wasn't my first time. And when I put it all together and powered it on, it wasn't working, just beeps fast. But how that happend when I put all back in like it was before?? Later I realised that problem wa

Need to build a server computer

2013-07-08 Thread saadharana
Hey, I'm in a bit of a dilemma and I need help. I need to host 2 or 3 Minecraft servers for a fellow gamer and I. However, I am not sure how much memory or what general kind of processor to get. Obviously, I won't need a lot of graphics power or hard drive space for a basic server, but I'm still st

Re: Default scope of variables

2013-07-08 Thread Chris Angelico
On Tue, Jul 9, 2013 at 2:52 PM, alex23 wrote: > with new_transaction(conn) as folder_tran: > folder_tran.query("blah") > with folder_tran.subtransaction() as file_tran: > file_tran.query("blah") > with file_tran.subtransaction() as type_tran: > type_tran.query("

Re: the general development using Python

2013-07-08 Thread Chris Angelico
On Tue, Jul 9, 2013 at 2:46 PM, CM wrote: >> Target the three most popular desktop platforms all at once, no >> Linux/Windows/Mac OS versioning. > > Ehhh... There are differences, in, e.g., wxPython between the three > platforms, and you can either do different versions or, more aptly, just fix

USB wont format?

2013-07-08 Thread saadharana
Hi guys; i have here a Scandisk Usb that i formatted it to f32 and tried to use on Linux did not work now i'm trying to use it on windows and it says i have to format and i go format it and it wont format . - used computers in chennai -- View this message in context: http://python.6.x6.nab

Re-using my SSD drive?

2013-07-08 Thread saadharana
Hi guys, So I heard that once your SSD is installed with windows with a new motherboard, it will be stuck with it forever? So does that mean SSDs and HDDs are pretty much not-recyclable? Thanks in advance - used computers in chennai -- View this message in context: http://python.6.x6.n

How to Clone a Hard Drive

2013-07-08 Thread saadharana
I just recently realized that my laptop's hard drive was going down the road to failure, so I had to clone all the data from the old drive onto a new drive from Newegg. Since I have all the steps fresh in my mind, I figured I'd write a guide on how to clone a hard drive. - used computers in

Re: looking for a new router

2013-07-08 Thread Dotan Cohen
On Tue, Jul 9, 2013 at 7:57 AM, Chris Angelico wrote: > I recommend you go to a small local store that has friendly people and > real service, tell them what you're needing, and support local > business with your custom. That'll be more helpful to you than asking > on a mailing list that's about P

Re: looking for a new router

2013-07-08 Thread Chris Angelico
On Tue, Jul 9, 2013 at 3:27 PM, Dotan Cohen wrote: > On Tue, Jul 9, 2013 at 7:57 AM, Chris Angelico wrote: >> I recommend you go to a small local store that has friendly people and >> real service, tell them what you're needing, and support local >> business with your custom. That'll be more help

Re: ipython

2013-07-08 Thread alex23
On 9/07/2013 12:44 AM, davide.dalma...@gmail.com wrote: Hi, I work with Python 3.3. I downloaded an IPython executable version from http://www.lfd.uci.edu/~gohlke/pythonlibs/ I installed it but no shortcut appears in my start menu. How can I launch it or alternatively is there some other free so

Re: Default scope of variables

2013-07-08 Thread alex23
On 9/07/2013 3:07 PM, Chris Angelico wrote: The subtransactions are NOT concepted as separate transactions. They are effectively the database equivalent of a try/except block. Sorry, I assumed each nested query was somehow related to the prior one. In which case, I'd probably go with Ethan's su

Re: Default scope of variables

2013-07-08 Thread Chris Angelico
On Tue, Jul 9, 2013 at 4:08 PM, alex23 wrote: > On 9/07/2013 3:07 PM, Chris Angelico wrote: >> >> The subtransactions are NOT concepted as separate transactions. They >> are effectively the database equivalent of a try/except block. > > > Sorry, I assumed each nested query was somehow related to t

Re: looking for a new router

2013-07-08 Thread Steven D'Aprano
On Mon, 08 Jul 2013 21:52:19 -0700, saadharana wrote: > Hey i'm looking for a new router. I recommend this one: http://www.bunnings.com.au/products_product_1350w-aeg-12-router-rt1350e_P6230066.aspx Helpfully-as-ever-ly yrs, -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread Steven D'Aprano
On Tue, 09 Jul 2013 00:32:00 +0100, MRAB wrote: > On 08/07/2013 23:02, Joshua Landau wrote: >> On 8 July 2013 22:38, MRAB wrote: >>> On 08/07/2013 21:56, Dave Angel wrote: Characters do not have a width. >>> >>> [snip] >>> >>> It depends what you mean by "width"! :-) >>> >>> Try this (Python

Re: hex dump w/ or w/out utf-8 chars

2013-07-08 Thread Steven D'Aprano
On Tue, 09 Jul 2013 07:49:45 +1000, Chris Angelico wrote: > On Tue, Jul 9, 2013 at 6:56 AM, Dave Angel wrote: >> But Unicode has nothing to do with Guido, and it has existed for about >> 25 years (if I recall correctly). > > Depends how you measure. According to [1], the work kinda began back >