Padraig Brady posted a script to generate the best options for your CPU. Padraig saw “speedups of over 300% in integer code by compiling for i686 over i386″ which is impressive!
Niall O Broin replied shortly afterwards with a patch if you’re using a GCC above version 3.2
Tag Archives: Development
Python Vs Perl
A Long list of differences. One of these days I’ll learn enough Python to comment on these statements!
More usable forms
Last month I mentioned the LABEL tag. It makes forms so much more usable! It took me until today to try it out and it’s wonderful! Thanks Simon for pointing this out to me!
Linux: Improving Interactivity
Kernel Trap reports on recent activity to make Linux more responsive. It’s looking good!
I’d handwavingly describe both your patch and sched-2.5.64-a5 as 80% solutions, and the combo 95%.” Robert Love agreed, “This is great for me, too. I played around with some mp3 playing and did the akpm-window-wiggle test. It is definitely the smoothest.”
Cork LUG – /etc under cvs
David Dorgan tackled a difficult subject for his latest article. I tried putting /etc into cvs ages ago but unfortunately didn’t have enough interest in keeping it going!
TODO list
Things I need to do:
- List last updated blogs on front page.
- Page to list all blogs.
- Option to reset template to factory default.
httpd compression update
Something’s wrong. php zlib compression or mod_gzip don’t work on this hostname. It works fine on www.linux.ie so there’s some interaction between mod_gzip, php output buffering, and mod_rewrite. I’ll get it working eventually.
Compressed httpd data
Enabling zlib compression makes a huge difference to a http server. I stress tested this server using Apache Bench. Before compression was enabled I managed just over 1-2 requests of (large) pages per second, but with compression that rose to 10 requests per second! Just add this to a .htaccess file if you’re using PHP 4.
php_flag zlib.output_compression On
Update – Enabling compression that way here causes too many problems. I’ll have to try and convince Colm to install mod_gzip which works everywhere else I’ve used it.
b2 and Smarty Updates
*phew* Got a lot done tonight:
- b2 is playing nicely with Smarty. The main index page, comments, trackback and pingback popups are working.
- I modified the template edit page to edit the .tpl files in the template directory *only* as the user really shouldn’t be seeing PHP. The most complex code in the templates is an if-else statment in some of the popups.
- I created a “new blog” php script based on the register script. Fill it in and it’ll email me. Once I veriify the person I click on the b2install.php file of the new blog and create the db/finish the install. It also emails the user to tell them the blog is ready. An “exit” command in b2config stops the user using the blog until I verify who they are. (This is important for my own case
- The b2options page has been expanded to edit the name and description of the blog.
It’s not all perfect though. When a user registers they’re asked to login as “admin”, not the username they entered on registering..
I may call the b2install script when the user registers so they can enter profile information on registration. I can default to displaying the user first name on blog posts instead of “admin”. Would be nicer.
You want a URL? Mail me! Address is over there on the left I think!
Java Developer's Journal – Des …
Mention the latest design pattern and suddenly your peers will see you as a genius of software engineering, “…you see I have employed the Decorator pattern for this particular class…” While you’re fighting the urge to give them a good slap, allow me to let you into the big secret. There is none!