[Tutor] webmail client for pop3 in python
Anyone knoow of a good python Webmail client in python for my windows notebook? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] test
test -- Cheers! -Kirk D Bailey THINK +-+ .*.| BOX | ..*+-+ *** THINK ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] test again
test- where is the list, nothing is coming to me! -- Cheers! -Kirk D Bailey THINK +-+ .*.| BOX | ..*+-+ *** THINK ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] wHY
IS NOTHING FROM THE LIST COMING TO ME? -- Cheers! -Kirk D Bailey THINK +-+ .*.| BOX | ..*+-+ *** THINK ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] test again
ook, thi new thunderbird 3.foo is... different, takes some getting used to. Sorry about the noise on the channel. On 2/25/2010 5:31 PM, Kirk Bailey wrote: test- where is the list, nothing is coming to me! -- Cheers! -Kirk D Bailey THINK +-+ .*.| BOX | ..*+-+ *** THINK ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] returning to my quest
for WEBMAIIL portal to a pop3/smtp email service in my server; centrally hosted or in the laptop is fine, what can people recommend? Without going to IMAP, i want to leave the mail on the server. -- Cheers! -Kirk D Bailey THINK +-+ .*.| BOX | ..*+-+ *** THINK ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] code quest
OK, I need to create or find a function that will return a list of DIRECTORIES (only) which are under 'the current directory'. Anyone got some clue on this? Please advise. -- end Very Truly yours, - Kirk Bailey, Largo Florida kniht +-+ | BOX | +-+ think ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] sys.argv?
I never talk to mailboxes, nor to other inanimate objects; I was talking to you. Rikard Bosnjakovic wrote: > On 4/17/07, Kirk Bailey <[EMAIL PROTECTED]> wrote: > >> IF my memory serves well, argument 0 in that list is the name of the >> program itself, as well as the path to it if any was provided. > > Stop replying to my mailbox. > > -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] sys.argv?
use a replyto header, or swap around things so the FROM is the list address, not the submitter, or kill me, or give me food, or something. Luke Paireepinart wrote: > Rikard Bosnjakovic wrote: >> On 4/17/07, Kirk Bailey <[EMAIL PROTECTED]> wrote: >> >> >>> IF my memory serves well, argument 0 in that list is the name of the >>> program itself, as well as the path to it if any was provided. >>> >> Stop replying to my mailbox. >> > I really wish this list would start mungin' some headers already. > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] sys.argv?
As long as the PROBLEM lives, the THREAD will rise from the dead over and over. Kill the problem, you kill the thread. Kent Johnson wrote: > Rikard Bosnjakovic wrote: >> On 4/17/07, Luke Paireepinart <[EMAIL PROTECTED]> wrote: >> >>> I really wish this list would start mungin' some headers already. >> I second that. >> >> Not using a reply-to-tag is braindead. > > Please don't start this thread again. > > Kent > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] sys.argv?
My memory is fine, as is my grip on reality as well as courtesy to my fellow pythonistas. Good day to you sir. Rikard Bosnjakovic wrote: > On 4/18/07, Kirk Bailey <[EMAIL PROTECTED]> wrote: > >> I never talk to mailboxes, nor to other inanimate objects; I was talking >> to you. > > I'm not interested in listening to your ifs about your memory. > -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] ongoing saga
I jujst mounted it in my code website so I can d emo it over the web- using exactly the same script in a FreeBSD server as my windows 2000 laptop is using- and it works. The control station form: http://www.tinylist.org/podium.html The user's end view: http://www.tinylist.org/frametest.html -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] ongoing saga
well now. I had a new idea, a product to let managers communicate to workteramss in offices- sends messages to groups of people. My approach is valuable because iit is so simple, and does not requirte the opeininig of new ports in the fireewwall of a site- it opperates through port 80, the http port. It is very easy to use at bothe ends, and only 1 program is employed to accomlish it's work. Now here is the intresting part- Sellinig it. As offices are so different in their setup, using it takes some case by case 'fitting' to apply it to each office. A house IT staff can install and adapt it to their situationb on their own, or employ our firm to custom install it for them. Therefore, we are going to GIVE IT AWAY, but offer support and installation services. So here's the miravcle of the money tree- we make money by giving it away, then letting people pay us to bring a ladder when they dig their own graves. It will become available to the public in a month. So how's YOUR money tree growing? -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] ongoing saga
Luke Paireepinart wrote: > I was under the impression that managers e-mailed their workteams if > they needed to talk to groups of people. indivigual messages. many offices have teams working on customer service or some group task where a leader needs to address the team, NOW, and often in these environments, will do this by ANNOUNCING messages. This distracts, and disrupts. > If the people are on an intranet, there shouldn't be any firewalls > blocking their communication. > The firewall would be between the computers and the internet, correct? That is the general idea. Some places have several submets and for security reasons channelize and limit communications between them. This is simple enoug to install that the group manager's workstation can mount a simple server for it to use, avoiding the need to breach the wall. banks come to mind as a place where there is considerable need for ligh level security within the firm, devloping something which is classified is another office environment where it would be needed. > > The point of a firewall is to block all traffic which may be harmful to > computers behind it. Ah, but the possibility of human trojan agents is why many office use diskless computers, and internal security. there are situations where one must guard against iinternal threats. > If your software listens on port 80, this is an abuse of the firewall > spec, IMHO. Ho so? A web serveris working normally on port 8o. MANY applications are acccessed through browsers, and through a webserver. So? > The reason people are willing to open port 80 is because they know the > only thing that will be listening > on the other end is Microsoft IIS or Apache, both applications which > have been under constant, stable development for years > and have good security. Putting an application you just wrote from > scratch with no regard to the security of it provides > hackers an entrypoint into your network via your application. But sir, it IS accessed THROUGH apache, or IIS. > > In addition, I doubt the managers would move to universally supporting > your application - many of them would desire to continue to use > e-mail for communication - and this would result in the workers having > just another intrusive application they have to leave open all the time, > as they're already required to leave an e-mail client active, I would > guess. email sits there waiting for you to look at the email client. this displays the message within seconds of sending it- no client must come to the top of the d esk to be visible, it already is. Please look at the example on the link I posted to see what I mean. > > Anyway, I'm just a college kid with no experience in this kind of stuff, > so if I'm completely wrong then correct me, > but that's how I'd see it as working. The dialog is good, and dodging bullets is good mental exercise. raise the objections, let's see if they draw any blood. > > P.S. my money tree's a little dried up right now but I hope with some > water and some love it'll be rejuvenated soon. > -Luke The money tree for me is pretty simple; give it away, let them look at the example, sell them install and support service. And as it is written in python, this community of snake charmers are all potential tech support personell for it. Does that offer any possibility of revenue stream to you? The example PAGES are on the server now, just look at the source code. Want to see the script? Let me know. > > > -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Python & cgi on win98--tinyweb problems, etc
RE: TinyWeb running python in windows PROBLEM: getting python scripts to execute. SOLUTION: Insure the script ends in the name extension .py. Windows associates all such files with the pythonw.exe interpreter program, and will use it to interpret them. IT IGNORES THE SHEBANG (the first line in a script which in the lovely world of un*x points to the interpreter program). Some servers have config files to tell the server what to use. TinyWeb does not, and relies on windows file associations to direct it to the proper interpreter. Also note that it is possible for windows to conceal name extensions in some configurations, and also to create name extensions it does not display, resulting in some interesting hair pulling evenings chasing bugs. Also note that tinyweb checks for the existence of a default page to use if none is specified in an incoming request. IF YOU CHANGE THE FILE NAME AFTER TINY LOADS IT WILL BARK LIKE A DOG. For instance, index.htm or index.html are equally acceptable. You had .htm. then you decided to change it to .html- and the server started woofing. It thinks the file index.htm still is there someplace and is looking for it! If you change the file name, restart the server. I used tinyweb in supporting the development of windows wiki, and in all that crazy alpha stage flakiness, it NOT ONCE blew out. It is BULLETPROOF. But it is it's own strange beast, and has it's own peculiarities. -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] xls file
Ii want to read a xls file and use the data in part of it. What module would help make sense of one? -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] xls file
ok, I installed XLRD and can load a xls file; it works quite well BTW. Now it is returning Unicode objects. I need to strip that to a simple string value. Is there a recommended way or module for handling Unicode objects? Kirk Bailey wrote: > Ii want to read a xls file and use the data in part of it. What module > would help make sense of one? > > > -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] xls file
here s one line from a spreadsheet, as saved in python; [text:u'Bob Dobbs', number:0.0, number:1.0, text:u'n/0!', number:0.0, number:0.0, number:0.0, number:0.0, number:0.0, number:0.0] [text:u'Connie Dobbs', number:22.0, number:4.0, number:0.17001, number:11.0, number:0.5, number:6.0, number:0.28003, number:29.0, number:0.080002] I extracted cell 0,0 and it is >>> x u'Bob Dobbs' >>> So I did this: >>> str(x) 'Bob Dobbs' >>> >>> b[1:-1] 'ob Dobb' >>> oops... well,then i did this >>> print b Bob Dobbs >>> which is as I need it. any use to the rest of the list? Kent Johnson wrote: > Kirk Bailey wrote: >> ok, I installed XLRD and can load a xls file; it works quite well BTW. >> Now it is returning Unicode objects. I need to strip that to a simple >> string value. Is there a recommended way or module for handling >> Unicode objects? > > What kind of characters are in the Excel file? What do you want to do > with non-ascii characters? > > Some options: > unicodeData.decode('ascii') # Will choke if any non-ascii characters > unicodeData.decode('ascii', 'ignore') # Will throw away non-ascii > characters > unicodeData.decode('ascii', 'replace') # Will replace non-ascii > characters with '?' > > Also of interest: > http://www.crummy.com/cgi-bin/msm/map.cgi/ASCII%2C+Dammit > http://groups.google.com/group/comp.lang.python/msg/159a41b3e6bae313?hl=en&; > > Kent > > -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] remmote access in a python program
OK, python program in box 1 needs to build a list of files available to be examined in box 2 on the firms LAN- .xls spreadsheet files. Sounds like a glob.glob task, but in a remote fashion. I never tried this before, what's the smart answer? -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] windowsfiles permissions
So, in windows, when my wiki's editor saves a file, i want to have the option to set it to read only. In windows, how do i get python to set a file's permissions? -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] windowsfiles permissions
Found it. tested it. worked it. sgharinig it for otheers. # os.chmod(filename,stat.S_IREAD ) # print 'This page is now set to read only. Use WindowsExplorer to turn this off.' Let's me edit the terms and conditions page then set it to read only- thought others would also value a convenient way to set pages to read only once polished up to a finished state. just be sure to import stat module. And addressing the windows thread fro adayor so ago; There's gold in them dar hills, even if it is a tad smelly, unlike linux gold; gold washes off nicely. There's one heck of a lot of windows customers out there. Kirk Bailey wrote: > So, in windows, when my wiki's editor saves a file, i want to have the > option to set it to read only. In windows, how do i get python to set a > file's permissions? > -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] MAKING MONEY WITH OUR PYTHON CODE-A YULE GIFT TO ALL
OK, who's a large customer base? Folk i the world running around with laptops, non geek business folk. they knowfrom Adam when it comes to hand installing code. So when we write things hard to install, who buys it? not very many. A few geeks maybe. So we need to make our code easy to install and use if we want to sell much of it to real no kidding non geek customers. So I started learning the inno free windows installer. It's good, and it is free. To practice and learn, I wrote an installer for the very nice and robust but totally manual install tinyweb http server. And in classic refuse to give upmanner, finally succeeded. It works, and is located on the web HERE: http://www.tinylist.org/tinyweb193Asetup.exe So anyone can have a small good utility server in their windows computer. SO WHAT? So now all that fine python code has a ready windows market is so what. (And I can start marketing my windows wiki, which requires a server for it to talk through.) Happy Yule, one and all. Thanks for helping me to learn python. -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] updates andcompletion of goals
Windows Wiki self instller with http server tinyweb: http://www.tinylist.org/WW140A.exe Full featured personal wiki for the travelling laptop user. TinyWeb server selfinstaller alone: http://www.tinylist.org/tinywebsetup193B.exe A good robust devlopment and personal server. Bon Yule, mon ami. -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Obssfurcatedpuytthonlessons nneeded
I aam writing some software which calls for some unreadable code in it to let me secretly set a registration key- it is to be shareware. I know this can be done, but have not the foggiest clue of how todo it. Any links, articles, pointers? -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] list problem
ok, getting back to python and wikiness, I have a problem, this software of mine seems to exibit different behavior under the latest edition of python (2.5) than under the version used when I first wrote it (2.3). It loads the page file, but returns it as a list (which is correcft) of one element, the entire file is in one cell. Prior, it returned each line as an element in the list. this is causing me some processing problems, and I am not a happy camper. I am still getting out the WD-40 and loosening up rusty hinges and joints oin my python processing prefrontals, it's been quite a while. I cna post the current program to a website if it would help, or send it to you off list directly. The idea is to use MiniWiki in one's windoze laptop as a wiki/notebook. Wikinehesa is optimied for freebsd/linux and works fine as is. Discussion on or off list is saught. Constructive criticism will be graciously received and thanked. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] small personal server
I recall how much stirr the python web server program created when I copied it from a book and posted it to the list. Well, if you want something composed in C++ for placing in your notebook or desktop, try this: http://smallsrv.com/index.htm -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Add metadata to a dir of files.
Mark Bystry wrote: > Ok. I'm not sure what programming language I want to try this in...since I'm > not sure how to write > this in any language (thought I'd give python a try. > > Here's my problem: I have a directory full of about 2,000 pdf files. I want > to be able to add the > same comment to the "Category" field of each file (in the document properties > of the file). So I am > looking to batch process pdf files (or any filetype, i guess) to add some > metadata. Just as a shot in the dark, try this as a first guess at proceeding: filelist=glob.glob('*.pdf') # filelist is a list variable; each *.pdf file name is an item in the # list variable. #now we will walk the list, doing the same trhing to every item. for file in filelist: # do the same stuff to every file listed dosomething dosomethingelse See if thie helps getting something started. I know nothing about how to insert data into an existing pdf file, can you advise? > > My needs are very similar to tagging mp3 files. > > Since I'm still new to python I don't even know how to get started. Can > someone provide sample code > that maybe I could expand upon or point to a link somewhere so I can read up > on the subject? > > I would appreciate it. > > Thank-you, > > Mark > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] geeks like us and the rest of THEM
OK, my project is to come up with a wiki which is easy to install and use in a windows laptop, to wikify the notebook into a hypernotebook. ok, it must be EASY to install. And LEGAL. MiniWiki is in python. I can do it in a self extracting installer as there is a nice free pone out there someplace- links please? BUT PYTHON IS ANOTHER MATTER. It needs to have python on the notebook, which is not the case. It aldso needs a small server in the notebook, and I have one in python and another in C++, which alas is not freeware. The hurdle is it must be a legal and simple and almost droolproof solution from soup to nuts. the beta solution is working in this laptop NOW. Now how do I turn this into a turnkey solution for THEM? We are geeks. But the end result is intended for pointy haired bosses, soccer moms with Avon dealerships, and other regular humans. And as awlays, we must avoid the dread lawyer vampires. -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] geeks like us and the rest of THEM
Kent Johnson wrote: > Kirk Bailey wrote: >> OK, my project is to come up with a wiki which is easy to install and >> use in a windows laptop, to wikify the notebook into a hypernotebook. >> >> ok, it must be EASY to install. And LEGAL. >> >> MiniWiki is in python. I can do it in a self extracting installer as >> there is a nice free pone out there someplace- links please? BUT >> PYTHON IS ANOTHER MATTER. It needs to have python on the notebook, >> which is not the case. It aldso needs a small server in the notebook, >> and I have one in python and another in C++, which alas is not freeware. > > You can use py2exe to create an executable that includes Python. You can > create a single file executable or a directory that can be packaged up > with InnoSetup or another installer maker. That's part of it. a good installer is another, and I am loo]king at a couple. A solid and drool-proof server is the remaining leg of the tripod. So far, none of the servers I have seen are satisfactory on all scores- simplicity to install, reliability, economy of cost, (free or unlimited license to me for a modest fee) and ease to configure if the use\r so wishes. the closest I have yet seen SMALL HTTP SERVER. And it is very good. http://smallsrv.com/ The wiki code is considerably improved and is working 99.5% right, and is almost finished. I need to kick it hard with Doc Martins on to insure it is completely righteous before putting it to bed and worrying exclusively about the server and installer issues. This has to be baby carriage reliable and simple for the business road warrior who has not a geekified bone in their body. > > Python has a simple built-in web server - see SimpleHTTPServer and > CGIHTTPServer modules. Beyond that there are many freely distributed web > servers available, CherryPy, Karrigell and Snakelets are all pretty small. > > Kent >> >> The hurdle is it must be a legal and simple and almost droolproof >> solution from soup to nuts. >> >> the beta solution is working in this laptop NOW. Now how do I turn >> this into a turnkey solution for THEM? >> >> We are geeks. But the end result is intended for pointy haired bosses, >> soccer moms with Avon dealerships, and other regular humans. And as >> awlays, we must avoid the dread lawyer vampires. >> >> > > > -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] miniwiki 1.3 BETA bugs
ok, when I have some time to do some coding I will work on trying this. AS is, it is pretty cleaned up, b utg making it less hairy and more definate in it's execution is a Great Good Thing(tm). If the project intrests you I will sip up the current version and leave it on my domain so you can find it. when it is on the4re I will post a link on the list. this may take 2 days, I am being rather busy right now. Barnaby Scott wrote: > Kirk Z Bailey wrote: >> RE leaves me totally confuzzzeddded. Yep, so confuised I'm having >> trouble spelling it. Sp this one line will replace both words and give >> a reliable result? >> >> Barnaby Scott wrote: >> [snip] >>> No idea if it has anything to do with your problem, but it struck me >>> that the iswikiword() function (and processword() which seems to be a >>> helper for it) could be replaced with one line, and it would be >>> reliable! >>> >>> def iswikiword(word): >>> return bool(re.match('^([A-Z][a-z]+){2,}$', word)) >>> >>> Of course you need to import re, but that seems a small price to pay! >>> >>> HTH >>> >>> Barnaby Scott >>> >>> >> > > As far as I know this is 100% reliable - at least it works for me > (www.waywood.co.uk/MonkeyWiki/). I suggest you test the function to your > own satisfaction - feed it tricky 'possible' WikiWords, and see how it > does! > > I know what you mean - RE syntax is an unruly beast to try and wrestle > with, but I *so* glad I made the effort. I don't claim to be anything > like an expert, but I now find it very useful indeed. > > Here's how the function's statement works in case you're interested: > > bool(re.match('^([A-Z][a-z]+){2,}$', word)) > > re.match() will look for a match for us, according to the RE given as > the first argument, and the string you want to match against as the second > > ^ means we demand that the pattern matches from the beginning of the > string to be tested - we don't want to say yes to > anEmbeddedWikiWordLikeThis. (In fact because we are using re.match > instead of re.search this is not strictly necessary, but makes it clearer) > > ([A-Z][a-z]+) means we want a group of letters, starting with a one in > the range [A-Z] i.e. a capital, followed by [a-z]+ , meaning one or more > lowercase letters ('one or more' is specified by the +). That whole > pattern is parenthesised because we want the next element to refer to > the whole thing > > {2,} means we want a match only if our preceding pattern (i.e. a > capitalised word) occurs a minimum of 2 times in a row, and a maximum of > - well, we don't want to specify a maximum, so we leave it out. > (YouMightInFactWantToSpecifyTheMaximumNumberOfWordsThatAreAllowedToAppearInYourWikiLinksToStopPeopleDoingSillyThingsLikeThis). > > > > $ means we want a match only if the pattern reaches the end of the test > string - i.e. we don't want to match a WordLikeThis62734. > > As for bool() - nothing to do with RE, but if a match occurs, the result > returned by re.match() is a MatchObject instance, otherwise None. I have > used bool() to convert these two possible results into True or False > though I guess this is not strictly necessary - the truth testing would > happen implicitly outside the function anyway. However it seems right to > return a boolean if that's what the function's obvious intent is. > > HTH > > > Barnaby Scott > > > > > > > > > -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] httpd in your laptop?!? serve web pages and wikis in your notebook?
ok, I realized SOME TIME BACK that to run MANY THINGS in your windows computer you need a server in there- and a nice SMALL one if it is going to coexist with everything else going on. I found one in python, and posted it, and it caused a stirr. Well, I found a LISTING of them, and tried all the more promising ones. here is that page: http://microsoft.toddverbeek.com/phttpd.html In breif, they are: xitami - fast, powerful, and the basic version is free. Omnihttpd - looks good, very configurable, maqny features. Sambar - many features, more thsan just httpd by a long shot. Savant - SECURE? in my laptop? well, so it says. MAny other features. MiniPortal - includes apache and ftp and a web baised control panel. possibly this is overkill? BadBlue - it talks a good fight, but I found it's setup and installation confuising. possibly a criticism of it's documentaion, or maybe a lack of coffee on my part. give it a look. Viking - another does everthing server. this includes dns and web mail and hosting lists and... jeez louise, will it wask my car? INframail - from the site: "...Inframail is a combination mail/web/ftp/news/gopher server, available in different versions with varying capabilities, all of them inexpensive." Not free, but cheap. SompleServerWWW - trivally easy to install. but not easy to bend to my will. I have to reorganise mu directory tree to suit it, as I could not conviently discover a way to tell it where my webpages live. Maybe studying the manual at length will reveal this, but it is not obvious. Is this a criticism of myself, the program, or the docs? Hmmm... Serving - not to be found on host site. ??? Falcon- limited, but good if it's limitations do now hamper your needed application. it concerned me, so I gave it a miss. TinyWeb - Ignoring the name thing, it is pretty simple to use, is configured witrh command line arguements (old BBS sysop that I am, this is nothing new) and the impact on my laptop was- none. as in less than 1% cpu usage, memory requirements that sound like the guts of my digital watch. And it works. it hosts scripts, invokes python, hands off environment variables, works with the directory tree the way I set it up, and is very sparing with my resources. and it's free. This one is a definate looker, check it out and see if it suits your needs. A GUI front end is available if you want it. Both are $free$. MacHttp - beats me, I do intel/pc stuff. No opinion. RobinHood - did not evalulate. Smallhttps - VERY good, many features, powerful, web management and configuration. $25.free version limits how many simultanious connections to 3, and only licenses for 21 days. Russian author is not ideal for documenting the work for english reading eyes, but I managed. It's VERY good, and my second choice for my personal server. So there it is, click to read the page and go from there and see if something suits ytour needs and wallet. For now tiny is serving my needs with complete satisfaction. I may write a tiddlywiki manual for it as a donation to support the project. -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] MiniWiki
OK, 1.3.0 is coming along well, and works pretty nice. BUT... It lives inside my laptop, and I want to be able to duck out and go back to the regular webpages I put into it. Remember, I have a server in there, tinyweb. So there it is, working well, and I put in a link to referr back to localhost: http://localhost/index.html And it goes banannas, misprocessing the link construction. BUT, when I look it over with a normal link: http://www.tinylist.org/ It processes fine. hmmm... Not seeing it yet, and I know, it's right there in front of me- somewhere... For any who are intrested, here's a link to the current sourcecode for the rendering engine. http://www.tinylist.org/MW.txt And if you like a nice simple server for your testing use, tinyweb is a dandy. while you configure it from the command line, it is very small and low impact on system resources (clock cycles, memory, blab lab la) and supports interpeted python scripts well. http://www.ritlabs.com/tinyweb/ -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] MiniWiki
It's a result problem; I do not see the reason it is doing this. AS I do not yet understand it, I cannot say where the problem is. Anyone got an idea? I am posting musings and rumbling about my project so anyone who is interested may offer suggestions, or simply follow along for their own interest and amusement. Who knows, maybe someone will spark an idea off of it and gain something. Kent Johnson wrote: > Kirk Bailey wrote: >> OK, 1.3.0 is coming along well, and works pretty nice. BUT... >> >> It lives inside my laptop, and I want to be able to duck out and go >> back to the regular webpages I put into it. Remember, I have a server >> in there, tinyweb. So there it is, working well, and I put in a link >> to referr back to localhost: >> http://localhost/index.html >> >> And it goes banannas, misprocessing the link construction. BUT, when I >> look it over with a normal link: >> http://www.tinylist.org/ >> It processes fine. hmmm... Not seeing it yet, and I know, it's right >> there in front of me- somewhere... > > Is that a question? If so, what do you mean by "it goes banannas, > misprocessing the link construction"? Is this a Python problem or a link > problem? > > Kent > > -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] httpd in your laptop?!? serve web pages and wikis in your notebook?
it is good, no arguement, I have a copy. I am trying to come up with the solution that has the MINIMUM impact on the system so as to be supportable on an obsolete laptop with an underpowered processor, so size and clock cycle demands are high priorities. abyss is very good, but not so small, and only moderately thrifty on cycles. So far, i cannot measure the impact tinyweb is having on this laptop I am writing to you on while tiny is running. and being totally free even if issued with sold products, the legal aspect is quite acceptable, unlike another high scoring server i tested and found acceptable. It comes from the people who wrote and sell the bat, an email client. Chris Hengge wrote: > I was using Abyss web server for a long time since it has multi-OS > support and a friendly web based UI for administration. Seemed extremely > light weight to me. > > On 2/27/07, * Luke Paireepinart* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Kirk Bailey wrote: > > ok, I realized SOME TIME BACK that to run MANY THINGS in your > windows > > computer you need a server in there- and a nice SMALL one if it > is going > > to coexist with everything else going on. > You need a server for what now? > Web pages? FTP? SVN? > I can't think of much else. > > I run apache and ftp services on my windows machine, and they're > using... let me check... > 4 MB of ram for the FTP server, and 4.6 MB of ram for Apache. neither > of these are considered 'lightweight' apps. Both are fully-featured. > Neither are listed as using more than 0% CPU. > My IM client uses 14 MB, my music program uses 32 MB, my browser is > using 63 MB, and my e-mail client is using 47 MB. > I would consider Apache fairly resource-friendly, compared to these > other apps. Not to mention it's used on over 50% of EVERY web server, > so I'm pretty sure it's reliable. And I don't see a need to use > anything else. If your software asked me to install some obscure web > server I've never heard of, I would probably cancel the installation and > forget about it, for fear it would interfere with my > already-established > Apache server. > > I found one in python, and > > posted it, and it caused a stirr. > I don't know what you're referring to, maybe it was before I joined the > list. > > Well, I found a LISTING of them, and > > tried all the more promising ones. here is that page: > > http://microsoft.toddverbeek.com/phttpd.html > > > Can I ask why are you looking into this? > As far as I can tell, the software you're writing (miniwiki) will be > served from the client's computer directly to the client's web > browser. No actual web stuff is necessary, right? > I don't understand why you'd want to make the user have to install > another webserver to use your program. You're writing it in Python, why > not use a Python HTTP server library, and have that included in your > distribution when you py2exe it? > It seems by far a better solution. > > JMO, > -Luke > > ___ > Tutor maillist - Tutor@python.org <mailto:Tutor@python.org> > http://mail.python.org/mailman/listinfo/tutor > <http://mail.python.org/mailman/listinfo/tutor> > > > > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 > 3:24 PM -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] httpd in your laptop?!? serve web pages and wikis in your notebook?
Yeppers, prolog is about as normal as a chocolate glazed neon donut. Alan Gauld wrote: > "Luke Paireepinart" <[EMAIL PROTECTED]> wrote >>> forth ... while very good for small programs >>> to imbed into controller cpu's to bury inside some machine, > > It's a relatively little known fact that Sun use Forth as the > monitor/bootloader in their servers. When you do a shutdown > on a Sun box it takes you into a Forth interpreter! > >>> different that rank beginners learn it faster than experienced >>> hands >>> do. it's just so damn odd. > > Yep, it's one of the few languages that I just gave up on, > the pain wasn't worth the gain. I wound up moving to Tcl; > and Tcl isn't exactly mainstream! But it was a lot more > conventional than Forth. The only language I've used that > was equally different was Prolog. > > Alan G. > > > _______ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] forth
Hello world : helloWorld ."Hello World!; that's it. HelloWorld is now part of the language. Now if your language instance lets you compile it down, it will include all functions to create that function, and leave all others out, resulting in a executable. Mine came in at 263 bytes. Microsoft C came in at 47 K. to add 2+ 2: 2 2 + . As it uses Reverse Polish Notation and is stack oriented, doing math is rather intresting, different, and novel. It's a novel language. VERY good for controllers giving you maximum program in a small device such as your usuall PIC chip. Really SHINES in this venue. Here's a link to wikipedia: http://en.wikipedia.org/wiki/Forth_(programming_language) But this is python list, so enough of comparitive languages. -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] miniwiki 1.3.0 beta now available
May The Gods have mercy on my soul. MiniWiki is now offered for downloading. 1.3.0 is not in presentable condition for them what would like to kick it around some. http://www.tinylist.org/MiniWIKI130.zip Included in it is the zip archive for the server I settled on which is a very nice little tool I have yet to break regardless of how I stick my thumbs in it's eye. Robust is an understatement, it is bulletproof. Alas, it will NOT parse ssi includes, but WILL support scripts with environment data and go retreived specified interpeters declared in the shebang line, so it's not so terrible. It is free PERIOD, even if included in commercial releases, as long as you credit the authors- well, I included everything they released, including source code, so go for it. My zip file includes subdirectories and seedpages. One should create a folder such as 'c:\localhost', place the zip in it, and unpack it there. you will get \www, \cgi-bin, \cgi-bin\texts, www\images, and several files in the texts directory. If I got this thing to zip up properly. sheesh. I'm going to bed. -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] geeks like us and the rest of THEM
Andrei wrote: > >> That's part of it. a good installer is another, and I am loo]king at a >> couple. A solid and drool-proof server is the remaining leg of the >> tripod. So far, none of the servers I have seen are satisfactory on all >> scores- simplicity to install, reliability, economy of cost, (free or >> unlimited license to me for a modest fee) and ease to configure if the >> use\r so wishes. the closest I have yet seen SMALL HTTP SERVER. And it >> is very good. >> http://smallsrv.com/ > > You could have a look at Aprelium's Abyss server (X1, which is freely > distributable in unmodified form IIRC, but closed source). It has a good > looking webbased configuration console and is cross-platform if you ever > need that. However, you'll probably end up digging in its config > programmatically to set up paths and such for the user - shouldn't be > too hard using some webscraping if the files are not readily modifiable. > Its setup is about 350 kB. I did. good, but fairly large and noticible impact on cycles as well as memory. smallserve is lighter, and tinyweb lighter yet- and it's terms of use let one include it with commercial products free. and I have yet to throw aqnything at it in spite of it's compact wtructure it could not deal with. > > In terms of installers, NSIS (with the package to make it look modern, > instead of that awful default look - forgot its name) or InnoSetup are > the usual suspects. NSIS has a smaller overhead, but an uglier language. > both look interesting, inno looks like a faster learning curve. -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] miniwiki 1.3.0 beta now available
Anyone who had trouble downloading the file, try again, there was a problem in the server which is now fixed. Kirk Bailey wrote: > May The Gods have mercy on my soul. > > MiniWiki is now offered for downloading. 1.3.0 is not in presentable > condition for them what would like to kick it around some. > > http://www.tinylist.org/MiniWIKI130.zip > > Included in it is the zip archive for the server I settled on which is a > very nice little tool I have yet to break regardless of how I stick my > thumbs in it's eye. Robust is an understatement, it is bulletproof. > Alas, it will NOT parse ssi includes, but WILL support scripts with > environment data and go retreived specified interpeters declared in the > shebang line, so it's not so terrible. It is free PERIOD, even if > included in commercial releases, as long as you credit the authors- > well, I included everything they released, including source code, so go > for it. > > My zip file includes subdirectories and seedpages. One should create a > folder such as 'c:\localhost', place the zip in it, and unpack it there. > you will get \www, \cgi-bin, \cgi-bin\texts, www\images, and several > files in the texts directory. > > If I got this thing to zip up properly. sheesh. I'm going to bed. > > -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] installers and more
1. Installers. Apps which are hard to install do not get installed. MiniWiki is now fit for public display and use, but it still takes the geek nature to install it. I need to become expert with one of the free installers to turn it into something a business executive would be willing to download and fire off as an isntaller. 2. It takes python being in the laptop so it can be used. As I do not own it, I hesitate to bundle it in. What's the legal aspect of providing the language the app needs so it will run? -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] installers and more
OK, so now I need to pick a freeware installer to bundle it all up and install it real easy for the non technical minded, and fire off the python self installer I include with it. So let's refine this tread to INSTALLER discussion. Recomendations, comments, criticisms, links to webpages, etc. Kent Johnson wrote: > Kirk Bailey wrote: >> 2. It takes python being in the laptop so it can be used. As I do not >> own it, I hesitate to bundle it in. What's the legal aspect of >> providing the language the app needs so it will run? > > This is not a problem, you can distribute a package that includes Python. > http://www.python.org/psf/license/ > > Kent > > -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] declaring decaration on ul list
It just occurred to me that when my wiki does a backsearch it is useful to list the results with a * for decorating the unordered list results, so I can mousecopy it to update the category(foo) page, /the normal bullet is mousecopied as a poundsign (#}. How does one specify what to render as a item decoration in an unordered list? -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] windows file permissions
how do I check file permission in windows environments in python? I am modifying an existing editor program in my wiki to refuse to TRY to edit a file if it is set to read only. Until very recently, all my system stuff was in a un*x environment (well, FreeBSD) which is just not the same. -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] windows file permissions
I answered my own question digging around and testing stuff. Here is my solution for a windows environment: if not os.access(pagename,os.W_OK): print 'Sorry, that file is read only,' print 'Please consult your system administrator' print 'if this file must be modified.' print footer() sys.exit() And it works, testing it by manually setting a page in the wiki of my laptop to read only. it now politely refuses to attempt to edit a read only file. This lets me set important pages such as the user license to read only. YES, one may go in and manually turn them over to writable state if one knows how- ie, one is a geek like us. ordinary consumer office road warriors do not. Now to figure out how to best sell the thing to the target market... Kirk Bailey wrote: > how do I check file permission in windows environments in python? I am > modifying an existing editor program in my wiki to refuse to TRY to edit > a file if it is set to read only. Until very recently, all my system > stuff was in a un*x environment (well, FreeBSD) which is just not the same. > -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] MONEY MATTERS
ok, SHOULD THIS BE A THREAD OR A SEPERATE LIST? Many of ius are independants, and write code for the love of it- or to promote and sell independantly. So possibly a thread discussing ways to turn useful code into moiney is a useful idea. If the wish of the list is a thread here, we can do that, or we can start a seperate list for it. What are the wishes of this list? -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] MONEY MATTERS
So be it. The list now exists, and is called Coding4Cash. Here is a weblink to it: http://tech.groups.yahoo.com/group/coding4cash/ And here are email address': Post message: [EMAIL PROTECTED] Subscribe: [EMAIL PROTECTED] Unsubscribe:[EMAIL PROTECTED] List owner: [EMAIL PROTECTED] SPAM need not apply. Hackers, hobbyists, pros, guru's and them what know better but do it anyway for the hell of it are all welcome. This thread is ended in peace and respect; let all who wish come forth to discuss scratching the itch that our wallet does not yet contain. Steve Oldner wrote: > My 2 cents worth is to set up something separate, it'll just keep the > principles and ideas clearer. While I have my own ideas about the > "million dollar application", I would like a forum where I can just > listen and learn any type of ideas without having a worry that someone > will 'steal' my idea and beat me to the market. > > I work for a state government supporting a SAP HR application, so > anything I learn from this list is not directly applicable to my job. > However, the ideas and logic to solve various PYTHON solutions is a big > benefit in expanding my search for alternative solutions. > > And one day, I will have free time to work on my "million dollar app." > (LOL!) > > Thanks, > > Steve Oldner > > -----Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Kirk Bailey > Sent: Wednesday, March 21, 2007 10:14 PM > To: tutor@python.org > Subject: [Tutor] MONEY MATTERS > > ok, SHOULD THIS BE A THREAD OR A SEPERATE LIST? > > Many of ius are independants, and write code for the love of it- or to > promote and sell independantly. So possibly a thread discussing ways to > turn useful code into moiney is a useful idea. If the wish of the list > is a thread here, we can do that, or we can start a seperate list for > it. What are the wishes of this list? > -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] reafline reads file, not just 1 line
a relevant code snip: if os.path.exists('ConfigureMe'): f1=open('ConfigureMe','r') tablebgcolor=string.strip(f1.readline()) papercolor=string.strip(f1.readline()) inkcolor=string.strip(f1.readline()) linkcolor=string.strip(f1.readline()) f1.close() Eacj line in the file contains color configuration information to include into a webpage later on (for instance, 'peach, 'wjhite', 'black', 'Blue'). tablebgcolor contains the entire text file being read, not one line. this program opereates in a windows 2000 environment if this helps any. when examined in a text editor, the file is properly laid out. pLease help, the fingernails are getting very close to the quick. -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] reafline reads file, not just 1 line
EXT line=string.replace(line,'[=',' ') # create header bar line=string.replace(line,'=]','') # end header bar line=string.replace(line,'{{{','') # start preformastted text line=string.replace(line,'}}}','') # end it. line=string.replace(line,'#! ','')# end an image tag line=string.replace(line,'[-',' ') # start an unordered list line=string.replace(line,'-]',' ')# end an unordered list line=string.replace(line,'[#',' ') # start an ordered list line=string.replace(line,'#]',' ') # end an ordered list line=string.replace(line,'* ',' ') # declare a list item page[index]=line# save resulting line index=index+1 # and increase the line pointer. # # wordscanner routine linecounter=0 # reset the linepointer we will use it again... for line in page: # see? wordcounter=0 # start the word pointer over at 0 again wordlist = string.split(line,' ') # split the line into a list of words. for word in wordlist: # massage every word if ((isin(word,'http://')) or (isin(word,'mailto:'))): # if this seems to be a hyperlink: if isin(word,'"'): # DO NOT process a "http- it's imbedded code! pass# DO NOT process; leave the word alone! else: # otherwise, make a hyperlink for them to click. wordlist[wordcounter]='' + word + ' ' else: if iswikiword(word): wordlist[wordcounter]=makewikiword(word) else: pass wordcounter=wordcounter+1 line=string.join(wordlist,' ') page[linecounter]=line linecounter=linecounter+1 # print out the final highly modified page. for line in page: print line, # # Page footer follows print '\r' print '' print '' if not os.access(pagename,os.W_OK): print 'This page is Read-Only' else: print 'Edit '+pagename+'' print '' print ' ' print '' print 'LIST ALL PAGES' print 'http://www.tinylist.org/WW/";>WindowsWiki V:1.4.0' print 'Site home page' print 'FrontPage' print '' -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] reafline reads file, not just 1 line
BINGO! Perfect function! GOD? windows. BUT THANK YOU! (walks off mumbling curses at the billster of gates...) Kent Johnson wrote: > Kirk Bailey wrote: >> a relevant code snip: >> >> if os.path.exists('ConfigureMe'): >> f1=open('ConfigureMe','r') >> tablebgcolor=string.strip(f1.readline()) >> >> Eacj line in the file contains color configuration information to >> include into a webpage later on (for instance, 'peach, 'wjhite', >> 'black', 'Blue'). >> >> tablebgcolor contains the entire text file being read, not one line. >> >> this program opereates in a windows 2000 environment if this helps any. > > My guess is that the file contains non-native newlines. Try opening it > with universal newline support using > f1=open('ConfigureMe','rU') > > Kent > > -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] reafline reads file, not just 1 line
Setting a registry key does sound like a nice idea, but I must research it. Until I understand how so,mething works, I do now want to use it, which is why the RE. definition for determining wikiwords is commented out- someone suggested it, but it leaves me in the fog, I must study re more first. I replied off list due to just clicking reply, not replyall, and this list is not set up with a replyto header. so away it went. -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] windows and python and shebangs, oh my!
OK, in a script, we include a special statement telling the shell where to go find the interpeter. This is the first line of the script, and is a dpecial sort of comment, called informally the shebang. it looks like this: #!C:\path\interpeterprogramname In windows, this is for the current edition C:\python25\pythonw.exe so the shebang is #!C:\python\pythonw.exe Well, gues what? looking at a little used program, inherited from an earlier edition, which pops up the manual for the wiki I am developing, the shebang was: c:\python22\pythonw.exe Notice it is 22. My installed version is 2.5... hmmm... the path indicated does not exist in this computer, and should trigger a error. OK, I took out the path. It still worked. Hmmm... OK, I renamed the interpreter file declared in the shebang to a non existent file name. it still worked. WHAT THE MERRY HELL?!? At a loss, it then occurred to me that the program is a .py name extension. When the auto installer installed python it may have created an association between that name extension and the correct interpreter automatically, so a interpreter declaration line is not required in windows, unlike my beloved FreeBSD that critter my server on the web speaks with only a slightly obsolete accent. Hmmm... So work with me, windows Pythonistas. CAN I rely on windows definitely and reliably having .py files associated with the windows python interpreter, so the script does not need a shebang declaration? Can I skip this part of the configure/install process of the application and count on it working reliably? If so, my task of designing the autoinstaller script just got a LOT simpler. -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] windows and python and shebangs, oh my!
No problem, windoweswiki is shipped with a very simple server which is pretty dullwitted, but handles cgi and http, and nothing else. a little thing called tinyweb, it's efficent, small, and it is bulletproof- and so stupid it's actually easy to use. You can read about it here: http://www.ritlabs.com/tinyweb/ John Clark wrote: > Be aware that by default the Apache web server _WILL_ use the shebang line > even when running on Windows to try to find the Python interpreter when > python is run as a CGI script. > > There is a setting in the configuration file that controls whether to use > the shebang line or to reference the windows registry. The setting is > ScriptInterpreterSource registry > > -jdc > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of Alan Gauld > Sent: Thursday, April 05, 2007 4:28 AM > To: tutor@python.org > Subject: Re: [Tutor] windows and python and shebangs, oh my! > > "Kirk Bailey" <[EMAIL PROTECTED]> wrote > >> OK, in a script, we include a special statement telling the shell >> where to go find the interpeter. This is the first line of the script, >> and is a dpecial sort of comment, called informally the shebang. > > Yes, but it is not a Python feature it is a Unix thing. > When you execute a script (of any kind) in Unix the Unix > shell(*) reads the first line and if its a shebang transfers control to the > appropriate interpreter. > > (*) And not all Unix shells adhere to the convention, but thankfully the > vast majority do. The SVR4 Bourne shell didn't as I recall. > >> In windows, this is for the current edition C:\python25\pythonw.exe so >> the shebang is #!C:\python\pythonw.exe > > This is often done purely as a convention that shows what version of Python > the script was created for. > Python does nothing with it, it is only a comment. > >> At a loss, it then occurred to me that the program is a .py name >> extension. When the auto installer installed python it may have >> created an association between that name extension and the correct >> interpreter automatically, > > Correct, or you can do it manually. tHat is the only way that Windows > associates files with commands. > >> So work with me, windows Pythonistas. CAN I rely on windows definitely >> and reliably having .py files associated with the windows python >> interpreter, > > No, the association can be changed by any user or install script. > > But in practice it rarely is changed so you can habe a good chance of > success. > If you really want to be sure the associations are stored in the registry. > You can look them up and change them (or add a missing one) as you need. > >> If so, my task of designing the autoinstaller script just got a LOT >> simpler. > > On Windows the answer is usually in the registry somewhere, you just need to > figure out where to look! > > Alan G. > > > _______ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] HTML IN PYTHON AND OTHER DELIGHTS
OK, riddle me this. Using css, I supressed the bullet in unordered lists. The Print line prints an '*' before the item in the listing. so you will see displayed: * abba * abbb * abbc * abbd so the listing can be copied and pasted into a listing in a wiki page. It works. but when you mouse copy and paste, you get this: # * abba # * abbb # * abbc # * abbd which did not display. Intresting. why, and how to overcome this design misfeature? -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Command line args
Teresa Stanton wrote: > If one argument to a script is provided I am to take the input from it. > I figure that is presented like this: > > filename = sys.argv[1] Try: filename=sys.arg[1] except exception, E: filename='FooBar' > data = open(filename).read() > > But, if none are provided, input should come from standard input. How > do I write that code? > > TY > > > > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.446 / Virus Database: 269.0.0/750 - Release Date: 4/6/2007 9:30 > PM -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Command line args
ok, try this: Try: filename=sys.arv[1] except Exception, e: if filename='': filename='foo' # define a default value else: if foo: # detect one likely error foobarcode else: if bar: # detect another one morefoobarcode else: # final catchall for things you # did not anticipate Print 'how the heck did you accomplish this?!? I QUIT~! sys.exit(13) i has something vauely like this in the wiki on the slab right now, except it was addressing the query string. other than that, same problem. another idea is simply detect that there IS a argument; if sys.argv[1]; filename=sys.argv[1] if condition: do something else: do this instead else: filename="foo" which avoids try altogether. Somehow I kinda like this way more. Luke Paireepinart wrote: > Kirk Bailey wrote: >> Teresa Stanton wrote: >> >>> If one argument to a script is provided I am to take the input from >>> it. I figure that is presented like this: >>> >>> filename = sys.argv[1] >>> >> Try: >> > the 'try' keyword is not capitalized in Python. >> filename=sys.arg[1] >> except exception, E: >> > you should only catch the exception you expect, so you don't > accidentally silence an unrelated error. > so > except IndexError: > because you're trying to index into a list that might not have 2 or more > elements. >> filename='FooBar' >> > You said you wanted the input from standard input, so just put a > raw_input here. > > so the new code is: > > try: filename = sys.argv[1] > except IndexError: filename = raw_input("Prompt: ") > > HTH, > -Luke > > -- Salute! -Kirk Bailey Think +-+ | BOX | +-+ knihT Fnord. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] seaxtradusa site
ok, here is the link; http://www.seaxtradusa.org/ In the footer of all webppages (not in the wiki or in the forum), is a link so i can edit pages on the site without bothering to use a shell account or upload pages or anything. I just wrote this, and it is password protected. This is a handy little feature and it is kinda useful. The link uses a server side include in a universal footer, and yes, this WILL point the script to the right page: ">Edit This Page NOTE the page name is inserted into the structure with a simple SSI echo command. Place this link in the universal footer of your site, it will work. All pages so edit must be in the root directory for THIS edition, but who knows what the future holds. -- Cheers! -Kirk D Bailey THINK +-+ .*.| BOX | ..*+-+ *** THINK ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] seaxtradusa site
BTW, wordwrap issue, all that is on ONE LINE. Kirk Bailey wrote: ok, here is the link; http://www.seaxtradusa.org/ In the footer of all webppages (not in the wiki or in the forum), is a link so i can edit pages on the site without bothering to use a shell account or upload pages or anything. I just wrote this, and it is password protected. This is a handy little feature and it is kinda useful. The link uses a server side include in a universal footer, and yes, this WILL point the script to the right page: ">Edit This Page NOTE the page name is inserted into the structure with a simple SSI echo command. Place this link in the universal footer of your site, it will work. All pages so edit must be in the root directory for THIS edition, but who knows what the future holds. -- Cheers! -Kirk D Bailey THINK +-+ .*.| BOX | ..*+-+ *** THINK ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] editmypage
I wrote a password protected program to edit webpages via http. thiss iss in 2 files, one serves the editing page, one saves the edited page and shows the rssults. http://www.freeholdmarketing.com/EditMyPage.py http://www.freeholdmarketing.com/EditMyPage2.py This take a link on the page to edit. This can be a universal link by using server side includes such as: >">Edit this page Just a hack to make my life a little simpler. It is free, feel free to rip me off. -- Cheers! -Kirk D Bailey THINK +-+ .*.| BOX | ..*+-+ *** THINK ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] test
is my posting getting through? -- Cheers! -Kirk D Bailey THINK +-+ .*.| BOX | ..*+-+ *** THINK ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] PHP
For reasons of my work, of recent I have started aquiring php. Straightaway, i was impressed by one powerful property; the ability to imbed php into a html webpage, and switch into and out of php as needed, and let normal ssi and html and css work the rest of the time, outside of php. all I have to do is start the php block with # end the php block and continue in html. What a BLOODY shame we can't do that in python, which is otherwise awesome and superior in every way i can thus far evaluate. -- end Very Truly yours, - Kirk Bailey, Largo Florida kniht +-+ | BOX | +-+ think ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] print stack traces not caused by errors
test On 1/4/2011 7:06 PM, Corey Richardson wrote: On 01/04/2011 06:59 PM, Alan Gauld wrote: "Alex Hall" wrote expected at all. I tried the pdb module, but I am running a wx program so it is not helping. I tried: python -m pdb c:\prog\solitaire\game.py The key to using any debugger in a GUI environment is to set break points on the event handlers of interest. Then when the event fires the debugger will stop your code at the start of the event handler and you can examine the stack, variables etc and step through the code. Single line stepping is tiresome so usually you are better off setting another break point within the function (just before or within a loop maybe? Or after reading a line from a file...). A watch point is even better but sadly I don't think pdb supports those. But the debugger in Eclipse and winPDB(?) do I think. And of course print statements work too within the console window. HTH, Alan G. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor I've done almost all my debugging via print statements at crucial points. It's a good way to go, IMO. ~Corey Richardson ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor -- end Very Truly yours, - Kirk Bailey, Largo Florida kniht +-+ | BOX | +-+ think ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Beginner's question
On 11/23/2012 1:10 PM, Brett Ritter wrote: On Thu, Nov 22, 2012 at 10:39 PM, Peter O'Doherty mailto:m...@peterodoherty.net>> wrote: Judging by the volume of replies, is it fair to say that this problem was much too advanced for page 16 of an introductory text? That is a matter of taste. There are two things you need to learn: 1) the syntax of the language 2) how to approach programming problems #1 can be done gradually, #2 necessarily has a "hard" moment. For that, you need a problem that requires you think in programming terms: How can I break this down? What are the different conditions that could break my logic? How do I avoid missing situations? Once you cross that hump, it becomes "easy". Future problems will be hard again, but never to the same degree - once you've internalized the process, it's just a matter of refinement. Myself, I'd prefer to get that hard part over quickly. Up to page 16 obviously taught you enough basic syntax for your initial stab, so I think it was well timed. The important thing is for you to realize that you're learning a thought pattern, like algebra - once you "get it", the rest is merely learning applications and additional rules, but that initial insight requires some mental wrestling that can't really be reduced. If you're worried about the rest of the text (which I'm unfamiliar with) being more hard than enjoyable, I'd recommend continuing to play with this problem. Create variants (lowest POSITIVE even number), learn the typical situations that make it complicated. When someone can give you a problem in that vein and you can write a solution without referring to your previous attempts (or anyone elses), you've crossed the line and are forever changed. From that point forward the best the book (or any programming text) can do is challenge you, it can no longer be "hard". (Disclaimer: certain _concepts_ can once again be hard, such as pointers (not in python), lambdas, closures, etc. These should still be easier than this initial learning step) The bad part is that once you get it, you'll look back and wonder how you considered it hard. The good part is that if you are a programmer at heart, you'll find you love challenges. I think that's part of why you've gotten so many replies - this is an easy problem to understand, quick to provide a solution (right or wrong) for, and the constraints placed on it (just to keep you from getting lost in unfamiliar syntax) make it a mental challenge for us because our first approach is disallowed. Don't be disheartened at the difficulty, and don't fear it being this hard all along. -- Brett Ritter / SwiftOne swift...@swiftone.org <mailto:swift...@swiftone.org> This being said, prehaps an early chapter if not the first should be how to think like a programmer. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor -- -Shaboom. Kirk Bailey CEO, Freehold Marketing LLC http://www.OneBuckHosting.com/ Fnord! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] how to play an mp3 file
How to play a .mp3 audio file in python is the quest of the moment; any prior art, off the shelf solutions? -- -Shaboom. Kirk Bailey CEO, Freehold Marketing LLC http://www.OneBuckHosting.com/ Fnord! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] playing mp3 files
Ok, I found something that works reliably: http://www.mailsend-online.com/blog/play-mp3-files-with-python-on-windows.html Here is the code as modified for my uses (beware text wrap!): -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #!c:\Python25\pythonw.exe # Copyright (c) 2011 by James K. Lawless # ji...@radiks.net http://www.mailsend-online.com # License: MIT / X11 # See: http://www.mailsend-online.com/license.php # for full license details. # from ctypes import *; import os, os.path, sys import cgitb; cgitb.enable() # print "Content-Type: text/html \n" print "Robot Radio Station WHEN" print '' print 'Robot Radio Station WHEN' # winmm = windll.winmm # def mciSend(s): i=winmm.mciSendStringA(s,0,0,0) if i<>0: print "Error %d in mciSendString %s" % ( i, s ) # def playMP3(mp3Name): mciSend("Close All") mciSend("Open \"%s\" Type MPEGVideo Alias theMP3" % mp3Name) mciSend("Play theMP3 Wait") mciSend("Close theMP3") # mp3file="Burns Allen 400529 Sweeping into Office.mp3" # test code. os.chdir("./RadioStation_WHEN/1") # test code. dir management will replace. print "playing",mp3file,"@ strftime("%a, %d %b %Y %H:%M:%S",gmtime())" # Above Logs to the console screen what is played and when playMP3(mp3file) # Above plays a file named in the variable -mp3file- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The close all does not work. Run it again, it plays the file again, OVER the one already playing. Any input? -- -Shaboom. Kirk Bailey CEO, Freehold Marketing LLC http://www.OneBuckHosting.com/ Fnord! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] playing mp3 files
the robotradio program is coming along. It plays. it dances. it sings. IT selects random libraries and random broadcast files. and it restarts itself with consummate ease. Aka, NOW wtf?!? Jim is exchanging letters with me on this, but does not yet have a solution. Here's the code of the hour: BEWARE WORD WRAP!!! #!c:\Python25\pythonw.exe # Copyright (c) 2011 by James K. Lawless # ji...@radiks.net http://www.mailsend-online.com # License: MIT / X11 # See: http://www.mailsend-online.com/license.php # for full license details. # from ctypes import * import os, os.path, sys, time, glob, random import cgitb; cgitb.enable() # # there are 2 directories under this one- com and id. There are also numbered folders which # contain files of old broadcasts. The system only referrs to number name directories to play programs # # # # # # # # # print "Content-Type: text/html \n" print "Robot Radio WHEN" print '' print 'Robot Radio WHEN' # winmm = windll.winmm # def mciSend(s): i=winmm.mciSendStringA(s,0,0,0) if i<>0: print "Error %d in mciSendString %s" % ( i, s ) # def playMP3(mp3Name): mciSend("Close All") mciSend("Open \"%s\" Type MPEGVideo Alias theMP3" % mp3Name) mciSend("Play theMP3 Wait") mciSend("Close theMP3") # def RandomFile(): files=glob.glob("*.mp3") # files is a list of the CURRENT file=random.choice(files) # directories contents print "file=",file,"" return file os.chdir("./RobotRadio_WHEN/")# starts in cgi-bin, move to application's # # home directory. print "- - - - - - - - - - - - - - - - - - - - - - - -" while 1: # this is an endless loop. Get creative to stop it. # ok, let's do the loop. os.chdir("./ID") # go to the station identification folder playMP3(RandomFile()) # and pick one at random and play it. time.sleep(5) # a breif pause os.chdir("../com")# now back go home, then on to the commercial folder playMP3(RandomFile()) # pick one at random and play it. time.sleep(5) # another pause os.chdir("..")# this takes us back to the homne of the application #print "cwd=",os.getcwd(),"" # test code, dummy out later dirlist=glob.glob("*") # get a listing of the directories in this directory os.chdir(str(1+int(random.random()*len(dirlist)-2))) # randomly select a directory and go to it. print "cwd=",os.getcwd() # test code, dummy out later # # now we pick a program library, then # # pick a program in it at random and play it. # mp3file=RandomFile() print "program=",mp3file,"" # os/chdir("./1") #select a program library randomly and make it current. print "cwd=",os.getcwd(),"" # we will log this to the display screen on the console running this program print "cwd=",os.getcwd()," play ",mp3file," AT: ", time.strftime("%a, %d %b %Y %I:%M %p", time.localtime()) playMP3(mp3file) os.chdir("..") # go back to the home directory print "- - - - - - - - - - - - - - - - - - - - - - - -" # Above plays a file named in the variable -mp3file- time.sleep(5) # this gives us some time to do a CNTL-C to break the loop. sys.exit() # maybe. -- -Shaboom. Kirk Bailey CEO, Freehold Marketing LLC http://www.OneBuckHosting.com/ Fnord! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] playing mp3 files
The best I have found still has some cereal in it- lots of flakes and nuts. Anyone got some ideas on playing mp3 files in a windows machine? -- -Shaboom. Kirk Bailey CEO, Freehold Marketing LLC http://www.OneBuckHosting.com/ Fnord! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] Robot Radio program
"Program=", os.getcwd()+"\\"+ mp3file # show us what it is, print "AT:"+ time.strftime("%a, %d %b %Y %I:%M %p", time.localtime()) # And when, playMP3(mp3file) # and play it. os.chdir("../com")# now back go home, then on to the commercial folder mp3file=RandomFile()# pick a commercial playMP3(mp3file)# and play it. print "commercial: ",mp3file," AT: ", time.strftime("%a, %d %b %Y %I:%M %p", time.localtime()),"" # show me the commercial os.chdir("..")# go home again. print "- - - - - - - - - - - - - - - - - - - - - - - - -" # the lines make it easier for they eye to track the half hour segments time.sleep(2)# this gives us some time to do a CNTL-C to break the loop. COUNT=COUNT-1 print "DONE. Station shutdown @ ",time.strftime("%a, %d %b %Y %I:%M %p", time.localtime()) #Now if we could just find a recording of a station shut down... #ZZZzzz... -- -Shaboom. Kirk Bailey CEO, Freehold Marketing LLC http://www.OneBuckHosting.com/ Fnord! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] script in Raspberry pi python
which python /usr/bin/python root@KirksPiBox1:/home/pi: ./RR.py bash: ./RR.py: /usr/bin/python^M: bad interpreter: No such file or directory root@KirksPiBox1:home/pi:_ On 7/25/2013 1:47 PM, Walter Prins wrote: Hi, On 25 July 2013 18:02, Kirk Bailey <mailto:kbai...@howlermonkey.net>> wrote: On 7/23/2013 9:42 PM, Amit Saha wrote: On Wed, Jul 24, 2013 at 11:13 AM, Kirk Bailey mailto:kbai...@howlermonkey.net>> wrote: Python works fine in pi. script works fine IF I invoke it high church: python ./RR.py but this fails: ./RR.py the shebang is #!/usr/bon/python bon -> bin right. Also, don't forget to chmod +x RR.py already done... I think... yep, 755. RWXR.XR.X! Therefore, Fhat the Wuck over? Still not working? Strange. Any error message? What OS? What's the output of the following entered at the shell prompt: which python Walter -- -Shaboom. Kirk Bailey CEO, Freehold Marketing LLC http://www.OneBuckHosting.com/ Fnord! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Fwd: script in Raspberry pi python
originally edited on a windows box, then copied over with a usb stick. I suppose I better open it, copy it to mouse then paste it to a nw file- or what? Please advise. On 7/25/2013 3:45 PM, Walter Prins wrote: Hi, On 25 July 2013 19:45, Kirk Bailey <mailto:kbai...@howlermonkey.net>> wrote: which python /usr/bin/python root@KirksPiBox1:/home/pi: ./RR.py bash: ./RR.py: /usr/bin/python^M: bad interpreter: No such file or directory root@KirksPiBox1:home/pi:_ Dave's correct. That "^M" represents ctlr-m, and is the displayable equivalent of the "Carriage Return" character. Windows text files uses CR/LF (Carriage Return, Line Feed) characters to delimit lines of text in text files. Unix uses only "Line Feed". So the extra carriage return character is taken to be part of the text at the end of the shebang line. And "/usr/bin/python" is not the same as "/usr/bin/python^M" Here's some background: http://mag-sol.com/articles/crlf.html How and where did you create the file? If with an editor, which editor? Walter ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor -- -Shaboom. Kirk Bailey CEO, Freehold Marketing LLC http://www.OneBuckHosting.com/ Fnord! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Fwd: script in Raspberry pi python
ok, I read linked article, then copied the perl script text, which bombs. The TEXT: * #!/usr/local/bin/perl -w** ** use strict;** ** ** while () {** ** s/\r\n/\n/;** ** print;** ** }* This works nicely, and all problems are solved. I tried to download the program using apt-get, but the site for it is not answering th bell, so I just typed this in. Thank you, it i just what the doctor ordered. -- -Shaboom. Kirk Bailey CEO, Freehold Marketing LLC http://www.OneBuckHosting.com/ Fnord! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor