• Member Avatar for vegaseat
    vegaseat

    Replied To a Post in DuckDuck Go, New Search Engine

    The problem with Google is that they keep track of who is searching for what. Let's say you are looking for a brand of shoe, soon after you get shoe …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in So. Does anyone have any good programming/computing jokes?

    By the time a programmer removes the last bug, the software is obsolete.
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in So. Does anyone have any good programming/computing jokes?

    Programmers not only byte, the also nibble a bit. (nipple was wishful thinking, corrected, thanks RJ)
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Need help with Python Program

    Your for loop should look like this ... #declares an empty array (list) called rainfall to #which you can append values with the append method rainfall = [] #for loop …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in What are you eating/drinking right now?

    I have my mind set on some scramble with bacon and cheese, and plan to wash it down with dark roast coffee.
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in So. Does anyone have any good programming/computing jokes?

    Every bug you find is the last one. Oh my giddy aunt, computer language is more baffling than bloomin French!!
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in There is an elephant on the loo!

    The European Central Bank has been printing money at such a fast rate that the price for the Euro has fallen from $1.40/Euro a year ago to $1.08/Euro. Parity is …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in There is an elephant on the loo!

    According to Forbes there are a record 1,826 billionaires in the world, an increase of 181 in the past 12 months. Bill Gates (Microsoft) has now been top of the …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Starting Python

    Counting days ... ''' datetime_diff_days103.py get the difference in days between 2 given dates ''' import datetime as dt # user enters dates in yyyy-mm-dd format dt_str1='2014-05-11' dt_str2='2014-09-11' date1 = …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Starting Python

    `print("Oct{0:o} = Dec{0:d}".format(25))`
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in So. Does anyone have any good programming/computing jokes?

    I get errors when I try to compile this code ... typedef struct n{int a:3, b:29;struct n*c;}t;t* f();r(){}m(u)t*u;{t*w,*z; z=u->c,q(z),u->b=z->b*10, w=u->c=f(),w->a=1,w->c=z-> c;}t*k;g(u)t*u;{t*z,*v,*p, *x;z=u->c,q(z),u->b=z->b,v =z->c,z->a=2,x=z->c=f(),x ->a=3,x->b=2,p=x->c=f(),p ->c=f(),p->c->a=1,p->c->c= v;}int i;h(u)t*u;{t*z,*v,* w;int c,e;z=u->c,v=z->c,q( v),c=u->b,e=v->b,u->b=z->b …
  • Member Avatar for vegaseat
    vegaseat

    Revoked Solved Status for how to update this countdown program and it's labels every second

    Hi friends! I want to create a countdown program. Here is my code: from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.label import Label import datetime class CountdownApp(App): def …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for How can I take the results and auto copy to clipboard?

    ## solution 1: fast enough response, simple function, fail fast from time import clock def isanaword(k,s): """ goes through the letters of second word (s) and returns it if first …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for set an image as a Tkinter window background

    Hello. How can i set an image as a Tkinter window background? I mean the whole background of the window not a photo area.
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for What's the best Python GUI framework?

    Hello friends :) I'm almost familiar with Tkinter and Kivy frameworks, but i'm looking for other python GUI frameworks, soething better than Tkinter. Kivy is also great but i need …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Printing to Columns with print()

    I have used module prettytable in the past this way ... ''' prettytable102.py explore module prettytable get prettytable-0.7.2.zip from https://pypi.python.org/pypi/PrettyTable extract the zip file and copy prettytable.py to /Lib/side-packages ''' …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Old old programmer needs some personal help!

    My evolution was machine language (front panel binary switches), Assembler, Basic, C, Delphi (Pascal), C++, Python (my love) and lately a little Go language.
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for How to print only the content of all <li> tags from a url page?

    Hi. How i can ask my crawler to print only the text of all <li></li> tags in a url page? I want to save the text of all <li></li> tags …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in a tkinter program that needs a background image

    Here is an example ... # use a Tkinter label as a panel/frame with a background image # (note that Tkinter reads only GIF and PGM/PPM images) # put a …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in There is an elephant on the loo!

    Bradley Horowitz, a longtime Google+ product VP, has taken over at Google+ from David Besbris.
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in There is an elephant on the loo!

    Over 1,500 newspapers, 1,100 magazines, 9,000 radio stations, 1,500 YV stations and 2,400 publishers are owned by these six US corporations: GE, NEWSCORP, DISNEY, VIACOM, TIME WARNER, and CBS
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for how to update this countdown program and it's labels every second

    Hi friends! I want to create a countdown program. Here is my code: from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.label import Label import datetime class CountdownApp(App): def …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for error with a .py and .kv

    Hello. I have copied these 2 files of code from a website. main.py: from kivy.app import App from kivy.uix.label import Label from kivy.uix.boxlayout import BoxLayout from kivy.clock import Clock from …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for count number lines

    Hi everyone, I am a beginner in python, and I would really appreciate if someone could help me with this. Basically I am trying to write a program where I …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in strip() method with chars doesn't seem to work

    Most of the time strip() is used to remove whitespaces at either end of a string. rstrip() is handy for removing trailing (to the right) newline characters that might come …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for strip() method with chars doesn't seem to work

    This is Python 3.4.2 The documentation says that s2 = s1.strip('a') will strip out all the 'a' in s1. When I run it, only the leftmost character - and only …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Projects for the Beginner

    Enter a phrase and scramble the word order. For instance "advice is easier to give than to receive" could turn into "to give to than advice is easier receive" Ask …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Projects for the Beginner

    Swap every two words in a text. For instance "is the zebra considered black or white" would turn into "the is considered zebra or black white" Important, make it work …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Projects for the Beginner

    Sort the characters in a word. eg. combine --> bceimno
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in There is an elephant on the loo!

    The Ford Motor company is gettting into the electric bicycle business with innovative foldable designs. The bike has a maximum speed of 25 miles/hr and the battery lasts about 9 …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in need help for finding special NAMES in a url page (homework)

    A dictionary in this case would be a list of special names you expect to find. Simply create a text file with each name on its own line that you …
  • Member Avatar for vegaseat
    vegaseat

    Created Exploring Tkinter's ScrolledText Widget (Python)

    The Tkinter GUI toolkit comes with a scrolled text widget that is called ScrolledText. To get access to it you have to import it separately. It allows you to display …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in strip() method with chars doesn't seem to work

    From the Python manual that ships with every installation: str.strip([chars]) Return a copy of the string with the leading and trailing characters removed. The chars argument is a string specifying …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in PyQT4 TreeModel example

    Another example ... http://rowinggolfer.blogspot.com/2010/05/qtreeview-and-qabractitemmodel-example.html
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Is Go a legacy language?

    Schol-R-LEA is correct, it would be nice if we could go with the modern times and post some Go goodies here. I got the itch! Sooner or later Go will …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Super Bowl XLIX

    The modern day circus extravagance called the "NFL Super Bowl XLIX" (XLIX is 49 for the many non Roman citizens) will be played on Sunday, February 1, 3:30 PM at …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Memorable Quotations

    "Computers make excellent and efficient servants, but I have no wish to serve under them." ... Spock, Star Trek
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in What are you eating/drinking right now?

    Roastbeef, mashers, peas and carrots. Some white tea.
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in count number lines

    A simplified version could be ... ''' text_analyze101.py a simple way to analyze text ''' text = '''\ A dad is on his way home a bit late from the …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Pygal chart

    import pygal data = [ ["Python", 30.3], ["Java", 22.2], ["C++", 13], ["Ruby", 10.6], ["Javascript", 5.2], ["C#", 5], ["C", 4.1], ["PHP", 3.3], ["Perl", 1.6], ["Go", 1.5], ["Haskell", 1.2], ["Scala", 1], ["Objective-C", …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in There is an elephant on the loo!

    In the US you have to fill out your tax forms and pay any remaining taxes for last year by 15-april-2015. For those of us working for a living and …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for any suggestion for tutorial to create web crawler with python urllib?

    Hi again. I want to create a robot or spider or crawler with python urllib. Still couldn't find any good tutorial. Any suggestion?!
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Help needed sorting averages from highest to lowest

    scores = [0, 8, 9, 1] # use slicing to get the last three scores print(scores[-3:]) # [8, 9, 1]
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Help needed sorting averages from highest to lowest

    Make your life easier by creating a list of (average, name) tuples. That list can be sorted as is. Something like this (stick with the default dictionary as you did …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Trouble sorting dictionary into highest to lowest

    I have been trying to create a program which the teacher log in to view the scores of a test of a school class. The scores are stored in a …
  • Member Avatar for vegaseat
    vegaseat

    Revoked Solved Status for Trouble sorting dictionary into highest to lowest

    I have been trying to create a program which the teacher log in to view the scores of a test of a school class. The scores are stored in a …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Trouble sorting dictionary into highest to lowest

    This might be a less complicated approach ... import collections as co # assume this is a string read from a file # showing name:score data on each line data_str …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for What is the usage of urljoin?

    Hi everybody. What is the usage of `urljoin`? An example: >>> from urlparse import urljoin >>> url = urljoin('http://python.org/','about.html') >>> url 'http://python.org/about.html' I think the answer is that when we …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Raspberry Pi LED control (Python)

    I did some detective work using Python looking at some of the ordinal values. I found pairs of ascii values of 160 and 194 that seem to sneak in from …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Raspberry Pi LED control (Python)

    Hmmm, highligting the code by double clicking works, but I have no luck with copy and paste to an editor on Debian Linux (Windows works fine). I left a copy …

The End.