-
Marked Solved Status for Python GUI Programming
HI Guys, I am trying to Create a GUI in Python that calculate the average of three numbers. I am having some issues tring to create the three boxes where … -
Replied To a Post in tkinter entry widget
Since Entry() gives a string, you can ask the user to separate the numbers with a semicolon. Then you can split the string and process it accordingly. For example ... … -
Replied To a Post in How could I reduce the length of this code?
Python is designed for readable code. If you want to write your entire code on one line, you have to pick another language. You can do it C. -
Replied To a Post in Is Go a legacy language?
I parked a few Go language snippets in the "Computer Science" Forum. -
Created A slice of prime numbers (golang)
Another translation of one of my Python snippets. This function will return a slice of consecutive prime numbers from 2 to a given value limit. In Go the 'int' type … -
Replied To a Post in Program not showing correct value
Remove lines 124 to 134, you already have declared these variables in lines 27 to 37. Move lines 27 to 37 into your main program below the win1() line to … -
Replied To a Post in Creating a generator (golang)
This explains the generator action a little better ... // generator_fib5.go // // use a channel to simulate a generator // // channels are the pipes that connect concurrent goroutines … -
Replied To a Post in A slice of structures (golang)
Just a beginner with Go, but I am having fun learning. This snippet online play at: http://play.golang.org/p/i54I8VpI4M -
Created Creating a generator (golang)
Generators are rather familiar objects in Python. Generators supply data on demand. Using Go you can create a generator with a goroutine and a channel. Here the goroutine is an … -
Replied To a Post in wx.lib.plot, PlotCanvas, and wx.DC drawing problem
As far as I know wxPython is slowly patched onto Python3. I have not checked it lately. Some of the problems you encountered may have been corrected. -
Replied To a Post in A slice of structures (golang)
You can actually copy and paste Go code snippets into the online sandbox at http://play.golang.org/ and run the code. You can edit the code and test your changes. -
Replied To a Post in Jokes
A woman goes for her yearly physical and after all the poking, prodding and tests, the physician says gravely, "I'm sorry, but you have only 12 hours to live". Hearing … -
Replied To a Post in "What do you enjoy/like about programming?
Telling the computer what to do! Might be wishfull thinking, but it is a good exercise for your brain. An exercise that could just keep old age Alzheimer's away. -
Replied To a Post in Easter date for a given year (golang)
Here is another version using Butcher's algorithm ... // easter_date.go // // Easter date for any year in the Gregorian calendar (1583 and onward) // modified Butcher's Algorithm // // … -
Created Easter date for a given year (golang)
Some folks go on vacation around the Easter holidays, so it would be nice to know when Easter happens in the years ahead. I had this as a Python snippet … -
Replied To a Post in wx.lib.plot, PlotCanvas, and wx.DC drawing problem
Have not used wxPython ever since Python3 came out. I still have Portable Python276 on my flashdrive and found this. Have you tried wxPython's wx.lib.plot.PlotCanvas()? Here is an example ... … -
Replied To a Post in Getting Error While Scraping Proxies Page
What happens if you leave **.string** off? Also use print(proxy) -
Replied To a Post in Memorable Quotations
"May you be in heaven a half hour before the devil knows you're dead." ... Irish proverb -
Replied To a Post in Jokes
One night at Cheers, Cliff Clavin explained the "Buffalo theory" to his buddy Norm: "Well ya see, Norm, it's like this. A herd of buffalo can only move as fast … -
Replied To a Post in Have you heard of Libre or Abiword?
I used Abiword in my diaper days. Now it's all Open Office. -
Replied To a Post in What is the most powerful programming language?
Application and some personal whim will make the choice. -
Replied To a Post in Grading scores example (golang)
`import s "strings"`means that s is an alias for package "strings", saves you some typing. -
Edited Grading scores example (golang)
This time just a simple example of grading scores (0 - 100) with letters (A - F). Two approaches are presented, one using switch/case in an "on the fly" function, … -
Created Grading scores example (golang)
This time just a simple example of grading scores (0 - 100) with letters (A - F). Two approaches are presented, one using switch/case in an "on the fly" function, … -
Replied To a Post in Python Bresenham Circle Arc Algorithm
Start with: http://rosettacode.org/wiki/Bitmap/Midpoint_circle_algorithm#Java -
Replied To a Post in Using bitwise 'and', 'or' operators(Python)
This is how the exclusive or behaves ... def next_odd_even(n): ''' symbol ^ is the bitwise 'exlusive or' operator use n ^ 1 to turn an even n into the … -
Replied To a Post in An Image Button (Python and Tk)
Are you using an image with a GIF format? -
Replied To a Post in c program for sensor
Here is a typical eaxample ... // // http://www.airspayce.com/mikem/bcm2835/examples.html // #include <bcm2835.h> #include <stdio.h> // Input on RPi pin GPIO 15 #define PIN RPI_GPIO_P1_15 int main(int argc, char **argv) { … -
Replied To a Post in Code Snippet Ideas
Compare C with Google's Go (IMHO modernized C) in the form of snippets. -
Replied To a Post in Memorable Quotations
“Wealth consists not in having great possessions, but in having few wants.” ... Epictetus -
Replied To a Post in Memorable Quotations
“While money can't buy happiness, it certainly lets you choose your own form of misery.” ... Groucho Marx -
Replied To a Post in Memorable Quotations
"Regret of the past and fear of the future are the thieves of happiness." ... Vernon Howard -
Replied To a Post in Random Facts
The 10 happiest countries are Switzerland Iceland Denmark Norway Canada Finland Netherlands Sweden New Zealand Australia Source ... http://www.bloomberg.com/news/articles/2015-04-23/these-are-the-happiest-countries-in-the-world -
Replied To a Post in Scrollbar under panel not working
# templet of wxPython's # wx.lib.scrolledpanel.ScrolledPanel(parent, id, pos, size, style) # default pos is (0, 0) and default size is (-1, -1) which fills the frame # the scrolled panel … -
Replied To a Post in The future!
When the future switches from being a promise to being a threat, it's time to leave! -
Replied To a Post in The future!
"Wherever the art of medicine is loved, there is also a love of humanity." ... Hippocrates -
Replied To a Post in The future!
Dani's Padawan: Enlighten us! -
Replied To a Post in Wisdom Teeth
What happens to your wisdom after the wisdom teeth are gone? -
Replied To a Post in Nature's Temper
In my younger days I lived in Michigan for a while, and still remember the hasty retreats to the basement because the nearby tornado siren went off. -
Replied To a Post in Words and phrases I wish people would stop using.
"Working vacation" the kind of BS you tell your boss. -
Replied To a Post in What are you eating/drinking right now?
One of those high fiber cereals that tastes like saw dust. -
Replied To a Post in Jokes
A condom stands up to inflation, halts production, destroys the next generation, protects a bunch of pricks, and gives you a sense of security while you're actually being screwed. -
Edited Get the content of a web page (golang)
Reading the content of a web page with a given URL is pretty simple with Go. Here we defer the closing of the response body (at an early point, so … -
Created Get the content of a web page (golang)
Reading the content of a web page with a given URL is pretty simple with Go. Here we defer the closing of the response body (at an early point, so … -
Replied To a Post in There is an elephant on the loo!
The stimulant DMBA was found in 12 dietary supplements marketed to improve athletic performance, increase weight loss and enhance brain function. Source: http://news.yahoo.com/fda-warns-another-illegal-stimulant-supplements-181207146--sector.html -
Replied To a Post in Specializing further from a Computer Science degree
The medical field still has lots of jobs and money and so does law and forensics. Another rewarding area to get into is cyber security. -
Replied To a Post in A slice of structures (golang)
IMHO, on the outside Go looks like C that has been modernized to fit present day requirements. Go handles concurrency and multiprocessing in a slick way. -
Marked Solved Status for Base Conversion Module
I'm new to Python, and as I was coding for Project Euler to develop my skills in this language, I needed a function for converting between two bases. I know … -
Replied To a Post in Base Conversion Module
If you are using Python3 ... ''' den2anybase.py denary to any base (2 to 36) conversion Python3 ''' def den2anybase(number, radix): """ well, most any base with a radix in … -
Edited A slice of structures (golang)
Another little adventure into Go coding. This time a slice (a Go open ended array) of structures is used as a record for some data processing. For those who miss …
The End.