Posts
 
Reputation
Joined
Last Seen
Ranked #199
Strength to Increase Rep
+10
Strength to Decrease Rep
-2
88% Quality Score
Upvotes Received
167
Posts with Upvotes
129
Upvoting Members
42
Downvotes Received
13
Posts with Downvotes
13
Downvoting Members
10
23 Commented Posts
~691.43K People Reached
Favorite Tags

324 Posted Topics

Member Avatar for vegaseat

“Intellectual growth should commence at birth and cease only at death” -- Albert Einstein

Member Avatar for Reverend Jim
15
13K
Member Avatar for Reverend Jim
Member Avatar for Reverend Jim
10
3K
Member Avatar for Duki

Just a simple tomato and mozzarella salad, our garden is full of ripe tomatoes!

Member Avatar for Dani
22
17K
Member Avatar for vegaseat
Member Avatar for LastMitch

Has anyone seen "Fury" yet? Most war movies are such silly fake, so I am reluctant to waste my money.

Member Avatar for LoanHensley
6
6K
Member Avatar for soibac
Member Avatar for Reverend Jim

The dinosaur "Dreadnoughtus" had a 37 foot-long neck, a 30 foot tail, and weighed an estimated 65 tons.

Member Avatar for John_smith
10
21K
Member Avatar for vegaseat

Super fast for very large numbers: def miller_rabin_isprime(a, i, n): """ Miller-Rabin primality test returns a 1 if n is a prime usually i = n - 1 does not test prime 2 """ if i == 0: return 1 x = miller_rabin_isprime(a, i // 2, n) if x == …

Member Avatar for amir_19
3
24K
Member Avatar for HiHe
Member Avatar for martineau
1
21K
Member Avatar for Ancient Dragon

Do not look into the laser beam with your remaining eye!

Member Avatar for jkon
4
4K
Member Avatar for ihatehippies

The wx.calendar.CalendarCtrl() control gives you more flexibility: # explore the wx.calendar.CalendarCtrl() control # allows for point and click date input import wx import wx.calendar as cal class MyCalendar(wx.Dialog): """create a simple dialog window with a calendar display""" def __init__(self, parent, mytitle): wx.Dialog.__init__(self, parent, wx.ID_ANY, mytitle) # use a box sizer …

Member Avatar for gdtraveller
0
2K
Member Avatar for vegaseat

The line `for image in image_files)` is in your error code but not in the original snippet. So, if you doctored up the snippet code, we would have to be mind readers to help you.

Member Avatar for Daniele_2
4
19K
Member Avatar for vegaseat
Member Avatar for almostbob
Member Avatar for vegaseat
Member Avatar for vegaseat
Member Avatar for RikTelner
Member Avatar for vegaseat
Member Avatar for ddanbe
3
569
Member Avatar for vegaseat

Check if an input is numeric then do a calculation (Python2 syntax): [code]def is_numeric(s): """ check if a string s is numeric contains only character like '-+1234567890.' (the period maybe a comma in some countries) """ for c in s: if c not in '-+1234567890.': return False return True def …

Member Avatar for vegaseat
23
34K
Member Avatar for vegaseat

You can apply Python to the control of robots, see: [url]http://wiki.roboteducation.org/Main_Page[/url]

Member Avatar for vegaseat
20
18K
Member Avatar for hadisur_rahman
Member Avatar for vegaseat
-2
161
Member Avatar for vegaseat

[QUOTE=vegaseat;707149]The frog throws up its stomach first, so the stomach (inside-out) is dangling out of its mouth. Then the frog uses its forearms to dig out all of the stomach's contents and then swallows the stomach back down again. A good lunchtime conversation piece![/QUOTE]I got to get myself a frog! …

Member Avatar for vegaseat
11
9K
Member Avatar for vegaseat

Well, there is a record of all the YouTube videos you ever watched, all the emails you send, all the phone calls you made. Wonder who pays for storage and retrieval?

Member Avatar for Leigh3
0
591
Member Avatar for mike_2000_17
Member Avatar for theredhosting

Man or woman programmer against the beastly computer, quite a challenge at times. Make the beast sing when you want it to do so.

Member Avatar for bordogamesdev
1
420
Member Avatar for iamthwee

The Python concurrent.futures module provides a high-level interface for asynchronously executing callables.

Member Avatar for vegaseat
1
845
Member Avatar for andrewumoh

Maybe A = 3 B = 4 C = 6 V = A*B*C PRINT A; B; C; V You have to multiply ABC, can't do it on my lousy iPad.

Member Avatar for HiHe
-1
115
Member Avatar for Kamal_8

Hydrocarbons burn to form water and carbon dioxide. The latter would be hard to collect in your car since it is a gas.

Member Avatar for ddanbe
0
183
Member Avatar for diafol

If other countries would pick your leaders, they would pick the clowns you have.

Member Avatar for diafol
0
272
Member Avatar for theredhosting

My nose ring, eyebrow ring, belly ring, lip ring and ear rings all match.

Member Avatar for HiHe
0
77
Member Avatar for asif49
Member Avatar for HiHe
0
475
Member Avatar for eskalemberg00
Member Avatar for HiHe
0
244
Member Avatar for eskalemberg00
Member Avatar for mmcdonald
Member Avatar for vegaseat

Sounds interesting. You should post this as a code snippet rather than bury in in the back of this thread.

Member Avatar for vegaseat
9
45K
Member Avatar for deceptikon

Get a Raspberry Pi computer (its Linux OS has C, C++, Ruby, Java and Python) and write some C code to explore its IO pins for computer control projects. Note: Amazon.com has kits real cheap. The Raspberry Pi is usually about $35.

Member Avatar for vegaseat
3
748
Member Avatar for rinston
Member Avatar for DragonMastur

The start of a more elaborate editor using the PySide/PyQt GUI toolkit: https://www.daniweb.com/software-development/python/threads/32007/projects-for-the-beginner/14#post1840298

Member Avatar for DragonMastur
0
427
Member Avatar for TObannion

Try file modes "wb" and "rb" Your algorithm will give you non-text characters.

Member Avatar for TObannion
0
377
Member Avatar for Schol-R-LEA
Member Avatar for Niloofar24

Use () to change the order: mylist = [6, '/', 3, '+', 9, '+', 8, '+', 1, '/', 2] result = eval(' '.join(str(x) for x in mylist)) print(result) # --> 19 mylist = ['(', 6, '/', 3, '+', 9, '+', 8, '+', 1, ')', '/', 2] result = eval(' '.join(str(x) …

Member Avatar for Niloofar24
0
333
Member Avatar for Odyssey2001

The MainForm `__init__` arguments are (self, filename, nesting, separator, parent=None) and should give you a hint The author of the book does not do any necessary commenting and should be discounted. I would return the lousy book.

Member Avatar for Odyssey2001
0
606
Member Avatar for Niloofar24

There are a lot of mistakes in that code! Maybe you should study up on Python class and argument passing in Tkinter Button command.

Member Avatar for HiHe
0
10K
Member Avatar for johnny blaz97

Take a look at at: https://www.daniweb.com/software-development/python/code/467452/updated-tiny-tkinter-calculator-python there might be some helpful hints.

Member Avatar for vegaseat
0
1K
Member Avatar for iamthwee

We make it mildly easier to write a GUI program, but you have to learn the somewhat obscure Ruby language. This must be an early April joke.

Member Avatar for iamthwee
1
423
Member Avatar for Niloofar24
Member Avatar for Niloofar24
Member Avatar for vegaseat
0
5K
Member Avatar for rhys_1
Member Avatar for Ene Uran
0
320
Member Avatar for Lardmeister

I don't think too many folks eat rancid hot dogs for football games. In front of the home TV or the Sports Bar monitors it's chicken wing time, they wash down easily with Budwiser. I hope the Seahawks win against the "deflate balls" Patriots.

Member Avatar for HiHe
0
463
Member Avatar for jac@

The End.