Re: Need some advice please

2017-07-30 Thread Rick Johnson
On Saturday, July 29, 2017 at 10:24:20 PM UTC-5, MRAB wrote: > What is the difference between (1) and (4)? Case in point. ;-) -- https://mail.python.org/mailman/listinfo/python-list

Re: Need some advice please

2017-07-29 Thread MRAB
On 2017-07-29 17:59, Rick Johnson wrote: On Saturday, July 29, 2017 at 4:59:26 AM UTC-5, Steve D'Aprano wrote: On Sat, 29 Jul 2017 06:34 pm, Kryptxy wrote: > Would it get me around legal issues, that is making this > tool completely legal? Do you think we are lawyers? We're not. Even if we

Re: Need some advice please

2017-07-29 Thread Rick Johnson
On Saturday, July 29, 2017 at 4:59:26 AM UTC-5, Steve D'Aprano wrote: > On Sat, 29 Jul 2017 06:34 pm, Kryptxy wrote: > > > Would it get me around legal issues, that is making this > > tool completely legal? > > Do you think we are lawyers? We're not. Even if we were, > we're not lawyers who are

Re: Need some advice please

2017-07-29 Thread Steve D'Aprano
On Sat, 29 Jul 2017 06:34 pm, Kryptxy wrote: > Would it get me around legal issues, that is making this tool completely > legal? Do you think we are lawyers? We're not. Even if we were, we're not lawyers who are expert on the legal system of every country in the world. What country's laws are

Need some advice please

2017-07-29 Thread Kryptxy via Python-list
Hello, I have developed a python program (tool) that fetches torrents from thepiratebay proxy sites and displays results in console/terminal window. Here: github.com/kryptxy/torrench Now, since thepiratebay contains illegal content, I am restricted from packaging this tool for other distros

Re: Need some advice

2008-10-24 Thread Larry Bates
alex23 wrote: On Oct 23, 3:15 pm, Larry Bates [EMAIL PROTECTED] wrote: Bruno is correct, the protocol IS https, you don't type shttp into your browser get secure http connection. https[1] and shttp[2] are two entirely different protocols. [1] http://en.wikipedia.org/wiki/Https [2]

Re: Need some advice

2008-10-23 Thread alex23
On Oct 23, 3:15 pm, Larry Bates [EMAIL PROTECTED] wrote: Bruno is correct, the protocol IS https, you don't type shttp into your browser get secure http connection. https[1] and shttp[2] are two entirely different protocols. [1] http://en.wikipedia.org/wiki/Https [2]

Re: Need some advice

2008-10-23 Thread Bruno Desthuilliers
Larry Bates a écrit : azrael wrote: On Oct 22, 9:48 am, Bruno Desthuilliers bruno. [EMAIL PROTECTED] wrote: azrael a écrit : If my memory is me well http transfers data in plaintext. Because of the risk of datacapturing, is there a better soulutioon to suggest to be more secure like shttp I

Re: Need some advice

2008-10-22 Thread Bruno Desthuilliers
azrael a écrit : There have been some discutions with my partner about which protocol to use. We agreed to use also http. But we are looking for a possibility to use something to trasfer python objects like Json objects. 'like' ??? there are a couple json implementation for Python, and for

Re: Need some advice

2008-10-22 Thread azrael
I mean shttp. (secure hyper text transfer protocol) On Oct 22, 9:48 am, Bruno Desthuilliers bruno. [EMAIL PROTECTED] wrote: azrael a écrit : There have been some discutions with my partner about which protocol to use. We agreed to use also http. But we are looking for a possibility to

Re: Need some advice

2008-10-22 Thread Larry Bates
azrael wrote: I mean shttp. (secure hyper text transfer protocol) On Oct 22, 9:48 am, Bruno Desthuilliers bruno. [EMAIL PROTECTED] wrote: azrael a écrit : There have been some discutions with my partner about which protocol to use. We agreed to use also http. But we are looking for a

Need some advice

2008-10-21 Thread azrael
I am starting to work on a application and need some advice. I am planing to develop a desktop application which would have some usage, but also it should be able to comunicate to a web server which hosts a php web application. So I wanted to ask if someone has some expirience with connecting PHP

Re: Need some advice

2008-10-21 Thread Godson Gera
On Tue, Oct 21, 2008 at 9:13 PM, azrael [EMAIL PROTECTED] wrote: I am starting to work on a application and need some advice. I am planing to develop a desktop application which would have some usage, but also it should be able to comunicate to a web server which hosts a php web application

Re: Need some advice

2008-10-21 Thread Tim Chase
I am planing to develop a desktop application which would have some usage, but also it should be able to comunicate to a web server which hosts a php web application. So I wanted to ask if someone has some expirience with connecting PHP webapplications with Python desktop applications. Could

Re: Need some advice

2008-10-21 Thread Bas
On Oct 21, 5:43 pm, azrael [EMAIL PROTECTED] wrote: Need some advice I advice to come up with a more specific subject line for your posts, might give you some more answers -- http://mail.python.org/mailman/listinfo/python-list

Re: Need some advice

2008-10-21 Thread Bruno Desthuilliers
azrael a écrit : I am starting to work on a application and need some advice. I am planing to develop a desktop application which would have some usage, but also it should be able to comunicate to a web server which hosts a php web application. So I wanted to ask if someone has some expirience

Re: Need some advice

2008-10-21 Thread azrael
of datacapturing, is there a better soulutioon to suggest to be more secure like shttp if it is implemented in python On Oct 21, 6:34 pm, Bruno Desthuilliers [EMAIL PROTECTED] wrote: azrael a écrit : I am starting to work on a application and need some advice. I am planing to develop a desktop

Re: need some advice on x y plot

2005-10-25 Thread nephish
well, for what i tried, ticstrings just contained a list of times formatted like [10-21 09:15, 10-21 09:44, 10-21 09:59, and so on.] i did write mine a little different than the example that Grant gave me because its a little different application of time. i think i am having trouble knowing

Re: need some advice on x y plot

2005-10-25 Thread Grant Edwards
On 2005-10-24, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ok, i am stuck a bit here with this line gp('set xtics (%s)' % ','.join(ticstrings)) the error code says that it is looking for a closing parenthesis. Well, what is the value of ticstrings? Try passing the parameter debug=1 to

Re: need some advice on x y plot

2005-10-25 Thread Grant Edwards
On 2005-10-25, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: well, for what i tried, ticstrings just contained a list of times formatted like [10-21 09:15, 10-21 09:44, 10-21 09:59, and so on.] OK. What did ticstrings contain in the demo I wrote for you? [When somebody who is trying to help

Re: need some advice on x y plot

2005-10-25 Thread Frithiof Andreas Jensen
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If the x-axis is time, gnuplot will plot it correctly but it will connect *all* the datapoints and scale the x-axis so that everything will fit on the graph. Is it the autoscaling or conneting that what you think is wrong? Getting a

Re: need some advice on x y plot

2005-10-25 Thread nephish
Ok, first off, thanks for all the help guys, this part set xtics (label pos, label pos, label pos) is mainly what i was confused about. the 'pos' part. i think that the way i am writing this leaves this out. in fact, i am pretty sure. here is the code i am trying out. def draw_chart(self,

Re: need some advice on x y plot

2005-10-25 Thread Grant Edwards
On 2005-10-25, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ok, first off, thanks for all the help guys, this part set xtics (label pos, label pos, label pos) is mainly what i was confused about. the 'pos' part. i think that the way i am writing this leaves this out. in fact, i am pretty

Re: need some advice on x y plot

2005-10-25 Thread Grant Edwards
On 2005-10-25, Grant Edwards [EMAIL PROTECTED] wrote: It looks like it. Though I've used custom tics in the past, it was never for time values. Based on the help from gnuplot, I suspect you can get what you want without doing custom tics, but rather using the commands set xdata time

Re: need some advice on x y plot

2005-10-25 Thread Grant Edwards
On 2005-10-25, Grant Edwards [EMAIL PROTECTED] wrote: It appears that the Gnuplot modules has coerced my data into single-precision -- thus throwing away most of the resolution on the x-axis. Passing Gnuplot.Data a Numeric array object is a good work-around. Otherwise, Gnuplot.Data will

Re: need some advice on x y plot

2005-10-25 Thread nephish
tics.append('%s %s' % (time.strftime(...), x)) # might need time.localtime(x) for that last term. ok, tried this and it worked. but the first plot is at the last plot of data back to that math mistake i mentioned earlier. so, thanks much, i will be back when i mess around with it some

Re: need some advice on x y plot

2005-10-25 Thread nephish
WE DID IT ! little more tinkering and correcting this diff = start_time - end_time (vrs the other way around) and its working. so many thanks gents, a lot ! -- http://mail.python.org/mailman/listinfo/python-list

Re: need some advice on x y plot

2005-10-24 Thread nephish
ok, i am stuck a bit here with this line gp('set xtics (%s)' % ','.join(ticstrings)) the error code says that it is looking for a closing parenthesis. that and i am kinda new enough not to really get what %s is all about. i know it formats a string. can you simply pass a list to 'set xtics' ?

Re: need some advice on x y plot

2005-10-21 Thread nephish
ok, i tried something similar to what you posted. a little simpler though. i am running a query on a database and making a list of time, value pairs kinda like this plot_points = ([time, value], [time, value], [time, value]) gnuplot complains that it needs a float for one of the values. i can plot

Re: need some advice on x y plot

2005-10-21 Thread Kent Johnson
[EMAIL PROTECTED] wrote: i am running a query on a database and making a list of time, value pairs kinda like this plot_points = ([time, value], [time, value], [time, value]) gnuplot complains that it needs a float for one of the values. i can plot just the value, and it shows up ( no x

Re: need some advice on x y plot

2005-10-21 Thread nephish
the time is DateTime.DateTime object from a mySQLdb query. the value is a number anywhere between 0 and 15. the datetime is formatted like 2005-10-20 08:40:34 i could strip it and make a timestamp out of it. but reading the number of seconds since january of 1970 doesn't make a neat chart. any

Re: need some advice on x y plot

2005-10-21 Thread William Park
[EMAIL PROTECTED] wrote: the time is DateTime.DateTime object from a mySQLdb query. the value is a number anywhere between 0 and 15. the datetime is formatted like 2005-10-20 08:40:34 i could strip it and make a timestamp out of it. but reading the number of seconds since january of 1970

Re: need some advice on x y plot

2005-10-21 Thread Grant Edwards
On 2005-10-21, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: the time is DateTime.DateTime object from a mySQLdb query. the value is a number anywhere between 0 and 15. the datetime is formatted like 2005-10-20 08:40:34 i could strip it and make a timestamp out of it. but reading the number of

Re: need some advice on x y plot

2005-10-21 Thread nephish
ok, i have a display, and its a work in progress. lemme get this straight. you used gp('set term png') is this an example of sending normal gnuplot commands? if so, are all of the gnuplot commands available ? thanks so much this is helping me out a lot here --

Re: need some advice on x y plot

2005-10-21 Thread Grant Edwards
On 2005-10-21, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: gp('set term png') is this an example of sending normal gnuplot commands? Yes. if so, are all of the gnuplot commands available ? Yes. -- Grant Edwards grante Yow! Do you like TENDER

Re: need some advice on x y plot

2005-10-21 Thread nephish
this is great, because the docs on gnuplots website are a bit easier for me to grasp. thanks so much for your time on this one. you really have helped me a lot. i will not get a change to work on this till monday. so i may have more questions then. This is sure a point in the right direction.

need some advice on x y plot

2005-10-20 Thread nephish
Hey there, i have tried about every graphing package for python i can get to work on my system. gnuplot, pychart, biggles, gdchart, etc.. (cant get matplot to work) so far, they all are working ok. I need to make an x y chart for some data that comes in from sensors at different times durring the

Re: need some advice on x y plot

2005-10-20 Thread Grant Edwards
On 2005-10-20, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: [...] I need to make an x y chart for some data that comes in from sensors at different times durring the day. i need it to show the value in the y and the time in the x . no problem so far. But what i cannot get to happen is to scale

Re: need some advice on x y plot

2005-10-20 Thread nephish
how ? i have tried to use unix timestamps, and i have also tried with DateTime objects do i need to use a scale that isn't linear (default in most) ? how do i putt this off ? thanks btw. sk -- http://mail.python.org/mailman/listinfo/python-list

Re: need some advice on x y plot

2005-10-20 Thread Larry Bates
I would try to live with time scale being fixed and insert None (or whatever value is used by charting package) for times where observations were not taken. This will mean that you have to preprocess your data by determining a time step step value that will fit your data. If you get 3

Re: need some advice on x y plot

2005-10-20 Thread nephish
i have thought about doing this, just a little different. i was going to list the value pairs. take the start time and end time and plot 100 empty plots between them. add the value pairs, sort by time, and then draw it. The only thing is it get kinda complicated when the times change a lot. they

Re: need some advice on x y plot

2005-10-20 Thread Grant Edwards
On 2005-10-20, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: i have tried to use unix timestamps, That has always worked for me. What happened? and i have also tried with DateTime objects Never tried that. do i need to use a scale that isn't linear (default in most) ? No. how do i putt

Re: need some advice on x y plot

2005-10-20 Thread Grant Edwards
On 2005-10-20, Larry Bates [EMAIL PROTECTED] wrote: I would try to live with time scale being fixed I don't understand what you mean by the time scale being fixed. It's not. If you just pass the time,value pairs to gnuplot, it does exactly what it should. and insert None (or whatever value

Re: need some advice on x y plot

2005-10-20 Thread Grant Edwards
On 2005-10-20, Grant Edwards [EMAIL PROTECTED] wrote: and insert None (or whatever value is used by charting package) for times where observations were not taken. This will mean that you have to preprocess your data by determining a time step step value that will fit your data. If you get 3

Re: need some advice on x y plot

2005-10-20 Thread Kent Johnson
[EMAIL PROTECTED] wrote: how ? i have tried to use unix timestamps, and i have also tried with DateTime objects do i need to use a scale that isn't linear (default in most) ? how do i putt this off ? Here is some code that works for me. It plots multiple datasets against time. The input

Re: need some advice on x y plot

2005-10-20 Thread nephish
ok, yeah, thats exactly what i am looking for. i will give it a go. thanks a whole lot. putt this off is a typo, pull this off is what i was meaning to type. this is cool. -- http://mail.python.org/mailman/listinfo/python-list

I need some advice/help on running my scripts

2005-01-01 Thread Sean
For the last couple of months I have been reading and working throught the examples in Magnus Lie Hetland's Book Practical Python This for all practical purposes is the first computer programming language I have spent any time at learning, so much of what I have covered in the book was for the

Re: I need some advice/help on running my scripts

2005-01-01 Thread Steven Bethard
Sean wrote: My problem is that many of the example scripts are run on Linux machines and I am using Win XP Pro. Here is a specific example of what is confusing me. If I want to open a file from the dos prompt in some script do I just write the name of the file I want to open (assuming it is in