-
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 … -
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 … -
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 … -
Created 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 … -
Marked Solved Status for Python; using a loop to write numbers to a text. Using a loop to read them
I am trying to use a loop to write randomly generated numbers to a text document. Then, using a different program, I need to use a loop to read the … -
Replied To a Post in Pycharm or gedit for Python (Programming in general) beginner?
Another good IDE for many different computer languages is Sublime text (allows for free evaluation). I like the spell checker it has. -
Replied To a Post in Old old programmer needs some personal help!
I think the "Sublime Text" IDE is very nice, but leaves me stranded with an "EOFError: EOF when reading a line" whenever I use the Python input() function. -
Replied To a Post in tf idf calulation
Also take a look at the Python module made for this sort of thing: http://radimrehurek.com/gensim/ -
Edited Word Frequency Count Revisited (Python)
This short snippet shows you how to preprocess a text to remove punctuation marks, then do a word frequency count using Counter() from the Python module collections. Finally, two sorts … -
Replied To a Post in Using Memoization Instead of Recursion
You still do recursion, it's just more efficient in some cases. -
Replied To a Post in A Memoize Decorator for Python Recursive Functions
See also ... https://www.daniweb.com/software-development/python/code/495070/using-memoization-instead-of-recursion#post2166091 -
Replied To a Post in Using Memoization Instead of Recursion
There is also an old snippet at ... https://www.daniweb.com/software-development/python/code/444473/a-memoize-decorator-for-python-recursive-functions -
Replied To a Post in HELP ME PLEASE
Here is a hint ... data_str_raw = '''\ 76 82 29 29 33 57 91 55 36 35 13 32 40 80 75 94 11 57 75 19''' # write … -
Replied To a Post in New OS
Even Windows8.1 is already outdated as Windows10 comes along. It is in Microsoft's interest to end supporting the older Windows versions. There is money to be made! -
Replied To a Post in Words and phrases I wish people would stop using.
Money can't buy love. -
Replied To a Post in There is an elephant on the loo!
Earth's ten richest folks 2015: +---------------------+----------------+-----+---------------------+ | Name | Wealth($) | Age | Source | +---------------------+----------------+-----+---------------------+ | Bill Gates | 79,200,000,000 | 59 | Microsoft | | Carlos Slim | … -
Edited Denary number to roman numerals (golang)
Use Google's modern Go language (aka. golang) to convert a denary number (base 10) to a roman numeral. Just a good exercise to explore Go's map, slice, sort and for … -
Edited Denary number to roman numerals (golang)
Use Google's modern Go language (aka. golang) to convert a denary number (base 10) to a roman numeral. Just a good exercise to explore Go's map, slice, sort and for … -
Edited Denary number to roman numerals (golang)
Use Google's modern Go language (aka. golang) to convert a denary number (base 10) to a roman numeral. Just a good exercise to explore Go's map, slice, sort and for … -
Created Denary number to roman numerals (golang)
Use Google's modern Go language (aka. golang) to convert a denary number (base 10) to a roman numeral. Just a good exercise to explore Go's map, slice, sort and for … -
Edited Another Visit To String Formatting (Python)
We have had several snippets on the format() function. This one gives a condensed overview of the many options you have. -
Replied To a Post in PyCon 2015
Good luck with following David Beazley's speed. -
Created A factorial one-line function (Python)
Here lambda is used to create a one-line function for factorials. -
Created Example of a persistent list class (Python)
Just an example of a persistent list class that could have interesting applications in data mining. -
Replied To a Post in Is Go a legacy language?
@djjeavons just a tongue in cheek remark since I don't know where to put "golang" things on DaniWeb. -
Replied To a Post in Words and phrases I wish people would stop using.
"That's not my job!" -
Replied To a Post in Words and phrases I wish people would stop using.
"downsizing" means fire a bunch of folks, replaces "pink slipping" -
Replied To a Post in Is Go a legacy language?
Go has a goto without a comefrom, so that would make it a legacy language. Here is an example ... // guess_number101.go // // modified: // http://golangcookbook.blogspot.com/2012/12/guess-number-game-v2.html package main import … -
Replied To a Post in Microsoft Small Basic
The problem with Small Basic is that it has a goto but no comefrom. -
Replied To a Post in q basic programming
I am not old enough to ever have used Qbasic. -
Replied To a Post in What are your Other Hobbies Aside from Coding?
Shopping. -
Replied To a Post in Nature's Temper
The smoke from the large forest fires in Russia has made it all the way across the Pacific and is now very noticeable on the West coast of North America. … -
Replied To a Post in Display an image from the WEB (Tkinter)
Another url ... http://prntscr.com/6vrw52 -
Replied To a Post in Convert csv data to a list of records (Python)
Thanks for showing how to read the csv file directly. For testing purposes it was simpler to use the string in the code. -
Replied To a Post in Minimize the surface area of a can (Python)
I guess the emphasis is on "a Python program that explains the steps to achieve this" -
Created Using bitwise 'and', 'or' operators(Python)
Just some interesting applications of the bitwise and (&), or (|) operators. You might find some other uses. -
Marked Solved Status for Launching a Calculator
How to launch a calculator using python in windows and ubuntu -
Replied To a Post in Problem with my menu...
In Python3 the **input()** function returns a string. If you want an integer you use **int(input())**. -
Replied To a Post in Jokes
A golfer whose car broke down flagged down a passing bus and got aboard. He sat down on the bus with his pockets bulging with golf balls next to a … -
Replied To a Post in Wisdom Teeth
The dentist slipped and hit the tooth above, so I had to pay for five teeth. -
Replied To a Post in Launching a Calculator
Is your calculator written in Python code or is it a executable program? -
Replied To a Post in Google Go OOP
Still no GUI toolkit for Go. -
Replied To a Post in Jokes
The most effective way to remember your wife's birthday is to forget it once. -
Replied To a Post in I have got a cold
Smoking is getting to be an expensive addiction in the USA. -
Replied To a Post in Arrrrrhhhhhhhhhhhhhhhhhhhfgfffffhhhhhhhhhhh
I am too old for drinking ethylated water. -
Replied To a Post in Arrrrrhhhhhhhhhhhhhhhhhhhfgfffffhhhhhhhhhhh
Just another normal day! -
Replied To a Post in How do i put a GUI on this program?
The Tkinter widgets you are dealing with in your program are ... tk.Entry() for data input tk.Label() to display info and results tk.Button() to start an action in the form … -
Created Convert csv data to a list of records (Python)
Shows how to convert a comma separated value (csv) string to a list of records, and then do some data processing. The csv strings usually come from csv files created … -
Replied To a Post in Array in Ascending and Descending Order
Which sorting algorithm did you use? -
Replied To a Post in What should I do ??
That TRS80 brings back fond memories.
The End.