Development LinksPython Related
Just Useful Tools
Posted by Hoang at 04:39 PM
| Add the first comment
|
Python Programming
, Wonderful Links
This birds-eye view shows Jacksonville and its nearby beaches. The surf has been pretty high these past weeks and the water is starting to cool down. I try to make it out to JAX beach every weekend but need to make time to explore Atlantic Beach as well as Ponte Vedra.
This is detail of the SouthSide area near the Turner Butler Blvd. I'm exploring San Jose blvd since it borders on the river (nothing related to San Jose, the city, of course).
Ok, time to go catch some waves and rays before the sun goes down.
Posted by Hoang at 02:57 PM
| Add the first comment
|
South Eastern United States
Python Execution ContextOne of the greatest benefits of the programming language called Python is that it has a large base of users. Unfortunately, it is also one of its greatest set-backs. Because of the open nature of Python, there are quite a few distributions of the interpreter. The following are some that I know of:
In addition to this, there are different versions of the interpreter floating around: 2.2, 2.3, 2.4, and most recently 2.5. I won't even get started with IronPython.
Compounded upon this wild permutation is the many differing versions of the libraries which we base our code on. Depending on whether the library was included in the core distribution or downloaded and installed on our machine at some point in time, we may have a mix of libraries which differ from anyone else's installation.
Well guess what....: when a Python program executes, the nature of its behavior is very heavily dependent upon whatever permutation of the above is installed on your machine. I was debugging a strange problem that occurred when using the logging module. In the interpreter shell, it operates as expected. From Komodo, it crashes and exhibits very strange behavior. Searching the internet for answers did not help either because logging had been changing quite a bit. On top of this, the answers I found were completely wrong because it assumed a specific version of logging. Of course, all of this is from hindsight so everything seems obvious when it is all laid out.
Ultimately, it turned out that Komodo had packaged their own version of logging (which of course differs from the one my shell uses). Once you know the problem, the answer is pretty easy. However, it does tell me that (in order to obtain consistent program behavior) you practically have to be on top of configuration management for your Python environment. The behavior of your source code is heavily dependent upon the Context of your execution environment.
POST NOTE (9/21/06): the execution context behavior under PythonWin is not exactly the same as in Python. I was using PythonWin along with ctypes. The entire PythonWin executes in the same process context as the script it runs. This means both your editor/debugger and your program run in the same process. (wild!!!) If you execute python.exe from the shell, your script gets spawned as an entirely different process. This is generally how other debuggers work. Depending on what system resources are affected, the script may behave differently whether or not you use PythonWin.
Posted by Hoang at 10:17 AM
| 2 Comments
|
Python Programming
Language LinksPython Related
Other Languages
Just Useful Tools
Posted by Hoang at 01:38 AM
| Add the first comment
|
Python Programming
, Software Development
, Wonderful Links
Anna Nalick in JacksonvilleBreathe (2AM)
(August 30th) It was my second day in moving to Jacksonville and as I was flipping the pages of the local rag, I noticed that Anna Nalick was playing in town today. The newness of the city smacks me in the face and hurricane Ernesto was supposed to hit us tonight. My first thought was, I didn't want to go poking downtown in a strange city so soon. It soon dawned on me that Anna wouldn't come around this way again anytime soon so I took the plunge and went searching for the dive. The place was called Jack's Rabbits that lies in a run-down section of town and behind a single red door. (Looking around, no blue door was to be found)
The crowd that waited for the show was pitifully small. There couldn't have been more than 100 people at the show. And like Anna said later on during the show, "it's a smoky little bar". Maybe it was a blessing in disguise because many concert goers were just well within 2 feet of the stage.
Joshua Radin openned up the set. His music was fully acoustic guitars and he played the set in a wonderfully humble manner. He had one backing guitarist and a girl as an accompanying vocalist (she was pretty cute, by the way). Josh sat in a chair right in the middle of the stage and played some material from Zack Braff's TV shows and movies. His music was mellow, sad, and comforting. Unfortunately the Jacksonville crowd was a little too loud and I felt bad as the band noticed the interruptions during the songs. The acoustic set was lovely.
Anna Nalicks gives a great live performance as she saunters on stage fully comfortable in the strength of her voice. She banters with the crowd in a cheerful manner. There were a few false starts in some of her songs as the band's electric equipment and her microphone flakes out. However she recovered on-stage quite nicely and spurted out some F words that fit the occasion. I was close enough to the front to notice her prominent cheekbones, skinny nose, and the big ugly ring she wears on her index finger. This is an unfortunate comment but she is just not photogenic. Quite the opposite, she looks better in person than in her pictures and videos. It could be that her personality gives a 3-dimensional wholeness which is different than many people you see on stage. As you can imagine, she played most of her album. Everyone was waiting for Breathe and there wasn't much clamor for Wreck of the Day. Too bad because that was the best heart-wrenching track. I snuck out in the middle of Bleed into what's left of Ernesto in an attempt to avoid the departing crowd.
Posted by Hoang at 10:26 AM
| Add the first comment
|
Music
, South Eastern United States