|
turns out the cheetah python templating engine (2.0 since year 2006) is quite reminiscent of fortran (since the 1950’s) in their use of the #slurp directive (cheetah) and the $ string. either one, when appended to the end of a string, remove the implicit newline which usually gets printed. it took me ages to figure out how to suppress newline printing back when i did someone’s fortran homework, now i’ve had to struggle with it all o..
|
|
turns out the cheetah python templating engine (2.0 since year 2006) is quite reminiscent of fortran (since the 1950’s) in their use of the #slurp directive (cheetah) and the $ string. either one, when appended to the end of a string, remove the implicit newline which usually gets printed. it took me ages to figure out how to suppress newline printing back when i did someone’s fortran homework, now i’ve had to struggle with it all o..
|
|
i have this software with a gtk mainloop, using dbus and all that fun stuff that seems to play together nicely. i know about the kernel inotify support, and i wanted it to get integrated with that above stack. i thought i was supposed to do it with pyinotify and io_add_watch , but on closer inspection into the pyinotify code it turns out that it seems to actually use polling ! (search for: select.poll) thinking i was confused, i ema..
|
|
i have this software with a gtk mainloop, using dbus and all that fun stuff that seems to play together nicely. i know about the kernel inotify support, and i wanted it to get integrated with that above stack. i thought i was supposed to do it with pyinotify and io_add_watch , but on closer inspection into the pyinotify code it turns out that it seems to actually use polling ! (search for: select.poll) thinking i was confused, i ema..
|
|
Why do all societies we know of practice some form of religion? Either religion must be “true”, or there must be some sort of natural explanation for this universal phenomenon. [caption id=“attachment_403” align=“alignright” width=“161” caption=“Breaking the Spell”][/caption] “Breaking the Spell” by Daniel Dennett presents avenues of research into these explanation. He does not profess to have the answers to this question, or even the right..
|
|
new evanescent released. get your tar balls today. now with pro dbus support, and happier than 0.2 in every way. please send in any patches and bug reports. ps: easy one line installation too! You can hire James and his team at m9rx corporation . You can follow James on Mastodon for more frequent updates and other random thoughts. You can follow James on Twitter for more frequent updates and other random thoughts. ..
|
|
new evanescent released. get your tar balls today. now with pro dbus support, and happier than 0.2 in every way. please send in any patches and bug reports. ps: easy one line installation too! You can hire James and his team at m9rx corporation . You can follow James on Mastodon for more frequent updates and other random thoughts. You can follow James on Twitter for more frequent updates and other random thoughts. ..
|
|
the software (evanescent) that i’m working on is supposed to log out the user from its current X session. originally i had some yucky looking code that ran a kill on gnome-session, which quickly got replaced with: os.system('gnome-session-save --logout-dialog') i’ve decided this was still a little crufty, so i’ve recently replaced this with: bus = dbus.SessionBus() remote_object = bus.get_object('org.gnome.SessionManager',....
|
|
the software (evanescent) that i’m working on is supposed to log out the user from its current X session. originally i had some yucky looking code that ran a kill on gnome-session, which quickly got replaced with: os.system('gnome-session-save --logout-dialog') i’ve decided this was still a little crufty, so i’ve recently replaced this with: bus = dbus.SessionBus() remote_object = bus.get_object('org.gnome.SessionManager',....
|
|
It is literally 23:19 on a Sunday and I’ve been working through the weekend to get a release out of some software I’m working on. The Java application webserver (Jetty) was taking a long time to restart each time I did a change, so for some reason I thought I’d experiment with some new command-line options. Probably not the right time to do that. Normally I would type $ sudo /etc/init.d/jetty6 restart Stopping Jetty: OK Starting Jetty..
|
|
caption id=“attachment_394” align=“alignright” width=“300” caption=“Summer is starting”][/caption] “Predictably Irrational” is a perfect book for lazy summer days on the beach or, in this case, while enjoying a beer from top of Oslo’s tallest office building. Dan Ariely is on a bit of a crusade again..
|
|
After Randolf’s comment on my last post about identifying cursor SQL text from sql trace file I think one thing needs elaboration. I mentioned earlier in this post that this cursor dumping technique works “as long as the cursor of interest is still open”. So how do you know whether this cursor of interest is still open or has been closed and that slot reused by some other statement instead? You would not want to get misled to wrong SQ..
|
|
After Randolf’s comment on my last post about identifying cursor SQL text from sql trace file I think one thing needs elaboration. I mentioned earlier in this post that this cursor dumping technique works “as long as the cursor of interest is still open”. So how do you know whether this cursor of interest is still open or has been closed and that slot reused by some other statement instead? You would not want to get misled to wrong SQ..
|
|
Identify the SQL statement causing those WAIT #X lines in a (top-truncated) sql tracefile
-
tanelpoder.com
-
17 years ago
-
eng
Have you experienced such situation before? A performance issue happens in production – let say some batch job has ran way over time You enable SQL trace on the problem session (while the problem is already ongoing) In tracefile you see lots of waits (or execs or fetches) caused by cursor X You grep for “PARSING IN CURSOR # X ” above the waits in the tracefile but don’t find the corresponding parsing entry nor SQL text there (this is a ....
|
|
Identify the SQL statement causing those WAIT #X lines in a (top-truncated) sql tracefile
-
tanelpoder.com
-
17 years ago
-
eng
Have you experienced such situation before? A performance issue happens in production – let say some batch job has ran way over time You enable SQL trace on the problem session (while the problem is already ongoing) In tracefile you see lots of waits (or execs or fetches) caused by cursor X You grep for “PARSING IN CURSOR # X ” above the waits in the tracefile but don’t find the corresponding parsing entry nor SQL text there (this is a ....
|
|
Yesterday in GCDS there was a session about personal passions . First Jono Bacon gave a talk about the Burnout Cycle , and then various community members talked about what they do outside the sphere of hacking: running, cooking, building experimental airplanes and so forth. I gave a quick talk about adventure motorcycling , speaking about my 2004 trip around the Black Sea , and briefly mentioning the Death Monkey trip on 50cc ..
|
|
Yesterday in GCDS there was a session about personal passions . First Jono Bacon gave a talk about the Burnout Cycle , and then various community members talked about what they do outside the sphere of hacking: running, cooking, building experimental airplanes and so forth. I gave a quick talk about adventure motorcycling , speaking about my 2004 trip around the Black Sea , and briefly mentioning the Death Monkey trip on 50cc ..
|
|
CouchDb is a really cool document-oriented map/reduce database that is nowadays an Apache project. Previously we created the distributed CRM application Ajatus on top of the system and ported CouchDb to Maemo . Here in Gran Canaria Desktop Summit CouchDb has been somewhat a hot topic, as the Ubuntu project is planning to use it as the content repository for desktop applications. We had a lunch with Jan Lehnardt today and d....
|
|
CouchDb is a really cool document-oriented map/reduce database that is nowadays an Apache project. Previously we created the distributed CRM application Ajatus on top of the system and ported CouchDb to Maemo . Here in Gran Canaria Desktop Summit CouchDb has been somewhat a hot topic, as the Ubuntu project is planning to use it as the content repository for desktop applications. We had a lunch with Jan Lehnardt today and d....
|
|
After receiving request to revive my book reviews, I’ve decided to blog about books I read again. If a known terrorist in police custody knew the whereabouts of a ticking bomb about to explode in a large city, would the use of torture be acceptable? Would it be helpful? I stumbled across Alfred McCoy through fora.tv. The program impressed me so much that I decided to pick up his book A Question of Torture.
|
|
Jira is a nice product for issue tracking linked to a SCM repository, yes it’s not free software but they provide a 5$ starter license for 5 users. But Jira lacks of a part that trac is doing very well, source browser, in facts Atlassian provides one: Fisheye but it’s really expensive Simply go to your Jira Administration, on the left click on Subversion Repositories (this menu appears after the installation of the subversion’s plugin).
|
|
After doing my seminar in Spain last month, one of the attendees sent me a secret note about what the CBO would look like in Oracle 12g. Apparently it’s re-engineered from ground and completely different from anything we’ve seen before. It goes beyond being automatic, intelligent and auto-tuning, it’s actually edible too! The New CBO Thanks to John Ospino for sending me this insider-info ;)
|
|
After doing my seminar in Spain last month, one of the attendees sent me a secret note about what the CBO would look like in Oracle 12g. Apparently it’s re-engineered from ground and completely different from anything we’ve seen before. It goes beyond being automatic, intelligent and auto-tuning, it’s actually edible too! The New CBO Thanks to John Ospino for sending me this insider-info ;)
|
|
Oracle memory troubleshooting, Part 3: Automatic top subheap dumping with heapdump
-
tanelpoder.com
-
17 years ago
-
eng
If you haven’t read them – here are the previous articles in Oracle memory troubleshooting series: Part 1 , Part 2 In Oracle, the HEAPDUMP dump event in Oracle allows you to dump various heap contents to tracefile. With adding the “level” parameter to this dump event, you can specify which heaps to dump. Julian Dyke has documented most of the levels here . There are two little known, but useful level bits for heapdumps – bit 0x100....
|
|
Oracle memory troubleshooting, Part 3: Automatic top subheap dumping with heapdump
-
tanelpoder.com
-
17 years ago
-
eng
If you haven’t read them – here are the previous articles in Oracle memory troubleshooting series: Part 1 , Part 2 In Oracle, the HEAPDUMP dump event in Oracle allows you to dump various heap contents to tracefile. With adding the “level” parameter to this dump event, you can specify which heaps to dump. Julian Dyke has documented most of the levels here . There are two little known, but useful level bits for heapdumps – bit 0x100....
|
|
I thought it was about time I wrote about topics where I’m an amateur. This time: Experimental philosophy. As a computer programmer, I often entertain myself with writing computer programs. Last Easter I stayed up a few nights playing with an insignificant, but entertaining program. During a discussion with my philosopher uncle, I discovered that this program might provide some insight as to why determinism is, if not dead, then at least la..
|
|
C and I went to see Jim Sparks talk about his alien abduction experiences last night. It was a very interesting 4 hour talk and even though C is always extremely skeptical about these things, he found it interesting and says he enjoys going to these types of talks with me as it’s nice to see another point of view. I might write some more specifics on the talk later, but overall it was well worth the $30 per ticket for the most part. I’d def..
|
|
Li Jian (TWer in China office) took few days to write ruby code to clean the artifacts repository of Go automatically. It is ruby code on google code (svn checkout http://cruisetools.googlecode.com/svn/trunk/ ). Anyone can check out to use. You can run it to clean the artifacts under the artifacts folder. If some files/folders need to be kept, just put the relative path of files/folders in the file 'foldersToBeKept.txt' (One path in each l..
|
|
needed to convert a proprietary vector .ai adobe illustrator file to the open .svg format, inkscape failed, ai2svg failed, uniconverted worked! yay. very easy just do: $ uniconverter Martlet.ai Martlet.svg You can hire James and his team at m9rx corporation . You can follow James on Mastodon for more frequent updates and other random thoughts. You can follow James on Twitter for more frequent updates and other random t..
|
|
needed to convert a proprietary vector .ai adobe illustrator file to the open .svg format, inkscape failed, ai2svg failed, uniconverted worked! yay. very easy just do: $ uniconverter Martlet.ai Martlet.svg You can hire James and his team at m9rx corporation . You can follow James on Mastodon for more frequent updates and other random thoughts. You can follow James on Twitter for more frequent updates and other random t..
|