Codenone
Mandelbrot Set Viewer using wxPython
In previous post, I benchmarked several implementation of Mandelbrot Set in Python. To make it more complete, I port a Mandelbrot Set Viewer written in Ruby posted at Codenone using OpenGL to Python and wxPython.
- sugree's blog
- 1 comment
- Read more
- 1561 reads
Mandelbrot Set in Python
I found a good homework and posted at Codenone since last week. The first question is about Mandelbrot Set. Actually, this problem could be categorized in compute intensive which should be solved in low-level language to let it run as fast as possible. However, we are talking about alternative languages aka scripting languages like Python and Ruby so I will try to solve this problem in Python. For the solution in Ruby, please go to another post.
- sugree's blog
- 1 comment
- Read more
- 2338 reads
How to format decimal number in Python
I got a question about formating decimal number in Python by adding comma in appropriate positions. The most recommend approach is to use built-in locale support. In my opinion, this is not too difficult to implement and there are many approaches. I just want to give an example here as a guideline.
- sugree's blog
- Add new comment
- Read more
- 4577 reads
My son's first program
I am a programmer and I also would like to teach all I know for years to my son. He is 5 years old and know a little bit English. Actually, I want to try teaching Python but it might be too difficult for a kids who are not familiar to English language. I don't know which the best language for kid but my first programming language is Logo so I decied to give it a try.
- sugree's blog
- 2 comments
- Read more
- 3649 reads
How to use GCD in RSA
As I posted about Greatest Common Divisor last week, I also promised to discuss the application of GCD. Note that if you are interesting in Ruby, I recommend to read about GCD in Ruby at this blog. Actually, GCD is very simple concept. The only application of GCD I known for many years is to find Prime number. Theoretically, a number x will be a prime number if its GCD is 1. Actually, what we used for recent years are running GCD seamlessly. For example, private key infrastructure or PKI is heavily used GCD for finding a pair of keys.
- sugree's blog
- Add new comment
- Read more
- 3176 reads
wxPython - A Simple Application
A thread at Codenone has been discussing about how to programming with Button in wxPython. In conclusion, there were 2 questions.
- How to fire an event to a specific button whenever
Return
orEnter
key is pressed? - How to specify TAB order to TextCtrl?
In fact, I have never developed GUI program for so long. I guessed as follows.
- Set the button as default.
- Specify tab index.
Above answers are just partially correct.
- sugree's blog
- Add new comment
- Read more
- 2498 reads
Recent comments
3 years 29 weeks ago
3 years 34 weeks ago
3 years 35 weeks ago
3 years 35 weeks ago
3 years 35 weeks ago
3 years 38 weeks ago
3 years 38 weeks ago
3 years 38 weeks ago
3 years 38 weeks ago
3 years 38 weeks ago