4,305 Posted Topics

Member Avatar for vegaseat

The strange title comes from a skit by Benny Hill, where he tells his wife all the facts she shouldn't know, but she always answers "I know! I know!" Anyway, this thread is suppose to be a collection of strange facts. Let's have fun! Here are a few facts to …

Member Avatar for vegaseat
11
9K
Member Avatar for vegaseat

The bubble sort is slow and I thought it would be interesting to visualize the progress as it sorts an array of integers.

Member Avatar for David_50
5
746
Member Avatar for vegaseat

When East Germany fell apart, one of the first things people there did was to storm the buildings that housed the much hated Stasi (Ministry for State Security), the ministry that was in charge of spying on their own population. How important is privacy to you?

Member Avatar for Leigh3
0
591
Member Avatar for wudie47

Best to use module os ... ''' file_splitext.py get a given file's extension ''' import os filename = "myfile.exe" name, extension = os.path.splitext(filename) print("name = {} extension = {}".format(name, extension)) ''' result ... name = myfile extension = .exe '''

Member Avatar for wudie47
0
7K
Member Avatar for fmindlin

Clicking Duplicate and then saving it with a different filename isn't that far off. You can also just click Export. I agree, "save as" is more intuitive!

Member Avatar for vegaseat
0
199
Member Avatar for jamesjohnson25

Advanced unpacking only works with Python3. Here is an example ... # advanced unpacking ... a, b, *rest = range(10) print(a) # 0 print(b) # 1 print(rest) # [2, 3, 4, 5, 6, 7, 8, 9]

Member Avatar for woooee
0
395
Member Avatar for happygeek
Member Avatar for vegaseat
Member Avatar for Kasxar

I recommend ... http://www.tutorialspoint.com/cplusplus/cpp_tutorial.pdf

Member Avatar for vegaseat
0
131
Member Avatar for Hassaan_3
Member Avatar for vegaseat
0
162
Member Avatar for fernando.sawyer.98

My Mac came with Python3 and the IDLE IDE. For scientific work I downloaded the free Anaconda3 package (Python with many modules preinstalled, the Spyder IDE and IPythonNotebook). Apple's Xcode IDE (free download) gives you easy access to C, C++, Objective-C and Swift. Another interesting graphics package called Shoes uses …

Member Avatar for Richard_25
0
253
Member Avatar for nsm2015
Member Avatar for vegaseat
-1
161
Member Avatar for mike_2000_17

Congratulations! Getting your diploma after five years and finding an interesting job, nice work!

Member Avatar for <M/>
5
355
Member Avatar for dbfud1988
Member Avatar for dbfud1988
-1
182
Member Avatar for leonardo123
Member Avatar for Xantipius
Member Avatar for siddy

If you run a Windows box, you can use this approach ... // change text color in Windows console mode // colors are 0=black 1=blue 2=green and so on to 15=white // colorattribute = foreground + background * 16 // to get red text on yellow use 4 + 14*16 …

Member Avatar for vegaseat
0
165
Member Avatar for tobyITguy
Member Avatar for shannon_92
Member Avatar for vegaseat
-1
419
Member Avatar for theredhosting

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.

Member Avatar for bordogamesdev
1
420
Member Avatar for hadisur_rahman
Re: Book

My favorite ... Introduction to Algorithms Second Edition by Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, Clifford Stein

Member Avatar for hadisur_rahman
0
129
Member Avatar for q-_-p

Start a code library. As time goes on you will collect code snippets, hints and tricks from all over the internet. So why not use vb6 to store these cut and pasted pieces of code in a file or files. Add a search utility to search and identify these files …

Member Avatar for q-_-p
-1
224
Member Avatar for jismy jose
Member Avatar for vegaseat
0
216
Member Avatar for Paven123

Maybe of some help ... import datetime as dt # the two measured times in format hh:mm:ss tm1 = "3:00:58" tm2 = "3:01:26" h1, m1, s1 = tm1.split(':') h2, m2, s2 = tm2.split(':') d1 = dt.timedelta(hours=int(h1), minutes=int(m1), seconds=int(s1)) d2 = dt.timedelta(hours=int(h2), minutes=int(m2), seconds=int(s2)) # time difference delta = d2 - …

Member Avatar for vegaseat
0
344
Member Avatar for Slavi
Member Avatar for Slavi
0
493
Member Avatar for vegaseat

A little experiment with custom sorting the result of a word frequency count using Google's Go language.

Member Avatar for vegaseat
2
3K
Member Avatar for iamthwee

My problem with Go is that multiple Scanf() functions in a row seem to pick up an Enter key bounce (?) and skip, very annoying! Haven't found a solution yet. I think I found it, stupid Windows adds a '\n\r' when you press Enter. I am impressed with the speed …

Member Avatar for vegaseat
1
845
Member Avatar for vegaseat

Just an accumulation of worldly wisdom in question answer format. Q: "How Do You Get Holy Water?" A: "You Boil The Hell Out Of It."

Member Avatar for vegaseat
0
323
Member Avatar for Reverend Jim
Member Avatar for vegaseat
1
318
Member Avatar for iamthwee

I use both OS Yosemite 10.10.3 and Windows 8.1. Yosemite starts growing on you after you learn how to spell it.

Member Avatar for RobertHDD
0
298
Member Avatar for Kamal_8

Whatever you might think, most Doctors are human and allow a very ill patient to pass away in peace.

Member Avatar for jwenting
0
259
Member Avatar for theredhosting
Member Avatar for Reverend Jim
0
250
Member Avatar for PETRICIAMARYMALLIGA A

This little tutorial explains data structures very well ... http://www.tutorialspoint.com/cplusplus/cpp_data_structures.htm

Member Avatar for vegaseat
0
130
Member Avatar for Kamal_8
Member Avatar for theredhosting

Better than Linux/Unix? Probably none. Cannot find the "Batter Operating System" anywhere. Interesting name though.

Member Avatar for vegaseat
0
219
Member Avatar for Summers9

You could study Python, a "glue language" for C/C++. It is easy to learn and allows you to develop smaller projects quickly. This might keep you interested in experimenting with some of your own ideas.

Member Avatar for Transcendent
0
190
Member Avatar for printf

Appending to either end of a list/array is much simpler than inserting in the middle. Appending to the end of a list has the lowest overhead.

Member Avatar for JamesCherrill
0
156
Member Avatar for asif49

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.

Member Avatar for HiHe
0
476
Member Avatar for kouty

With Python2 input() uses eval() internally. The eval function can potentially evaluate a statement to erase your harddrive. With Python3 the former input() has been replaced with the functionallity of raw_input().

Member Avatar for kouty
0
947
Member Avatar for theredhosting

Scrambled eggs and mushrooms with a touch of chocolate, very interesting. My sauerkraut cookies turned out well last Christmas. However, the anchovie icecream had only one taker.

Member Avatar for Reverend Jim
0
104
Member Avatar for jrp370
Member Avatar for Riya_2

You are almost there, just have to create another function. I am not sure where the pen() belongs. Maybe something like this ... import turtle def triangle(tu, size): angle = 360/3 for i in range(3): tu.forward(size) tu.left(angle) def flagline(tu, length, num): tu.pen(pencolor='blue') for i in range(num): triangle (tu, length) tu.fd(length) …

Member Avatar for vegaseat
0
315
Member Avatar for vegaseat

This 'sticky' thread is for working examples of Python GUI code. Note that most wxPython examples have their own thread. Please use comments in your code to help the reader. The example code should be usable as a template, so folks get a feel for the toolkit and can use …

Member Avatar for vegaseat
9
45K
Member Avatar for pars99
Member Avatar for Mark54

You could download and install the free Anaconda package, it comes with most modules you need preinstalled. See ... http://docs.continuum.io/anaconda/pkg-docs.html

Member Avatar for vegaseat
0
1K
Member Avatar for samyakonline01
Member Avatar for vegaseat
-1
308
Member Avatar for Jack_11

I read that some of the other languages are called **curly brace** languages.

Member Avatar for Schol-R-LEA
0
373
Member Avatar for hadisur_rahman
Member Avatar for jwenting
-2
144
Member Avatar for Riya_2
Member Avatar for deceptikon

The End.