Archive for the 'misc' Category

PHP Extension order and Core Dumps

After updating my FreeBSD port php and apache I suddenly got a whole lot of core dumps. The hosted websites were running fine, but the core dumps didn’t feel quite right.. (of course).

Another FreeBSD server of mine, also updated to the same version, didn’t have these core dumps.

Doing some research on the web I found that a wrong order in extensions.ini could be a cause of my problems.
Changing the order of the extensions.ini solved my problem!

The following extensions.ini is is working for me:

extension=fileinfo.so
extension=filter.so
extension=json.so
extension=zip.so
extension=hash.so
extension=pdf.so
extension=pgsql.so
extension=ctype.so
extension=mysql.so
extension=mbstring.so
extension=gettext.so
extension=dba.so
extension=sysvshm.so
extension=gmp.so
extension=pdo.so
extension=tidy.so
extension=pcntl.so
extension=openssl.so
extension=readline.so
extension=simplexml.so
extension=calendar.so
extension=posix.so
extension=tokenizer.so
extension=bz2.so
extension=dbase.so
extension=xmlwriter.so
extension=ldap.so
extension=session.so
extension=sybase_ct.so
extension=exif.so
extension=sysvmsg.so
extension=mcrypt.so
extension=bcmath.so
extension=pdo_sqlite.so
extension=mssql.so
extension=sockets.so
extension=zlib.so
extension=pcre.so
extension=curl.so
extension=mhash.so
extension=imap.so
extension=iconv.so
extension=spl.so
extension=dom.so
extension=pspell.so
extension=soap.so
extension=xmlreader.so
extension=shmop.so
extension=sqlite.so
extension=xml.so
extension=xsl.so
extension=mysqli.so
extension=wddx.so
extension=sysvsem.so
extension=ftp.so
extension=xmlrpc.so
extension=snmp.so
extension=ncurses.so
extension=odbc.so
extension=ming.so
extension=gd.so

Ruby’s “Begin Rescue” and “Try and Catch”

Thanks to the book “Programming Language Pragmatics”
Programming Language Pragmatics
I’m beginning to appreciate Ruby’s different notation for exception handling.

A sample:

begin
  value = 7 / 0
rescue
  print “Something went wrong! This is an error”
end

The code above is to catch an exception. (In Java or C++ you would use try and catch)

Ruby also has got try and catch, but this isn’t used for exception handling. It is used for implementing “Multi Level Returns”.
A sample:

def search( name )
  # .. some fancy code here ..
  if filename.contains( name ) throw :found_it, filename
end

result = catch :found_it do
  search “one”
  search “two”
  search “three”
  false
end

In the sample above, result will be filled with the found filename. This can be
with the keyword “one”, “two” or “three”. If nothing is found result is filled with false. (the last value in the catch block)

I don’t think I need the catch construct very much, but it’s a nice feature!
Btw. I recommend the book “Programming Language Pragmatics”.

Issue tracker Sourceforge isn’t very Nice

I don’t like the issue tracker that’s available at sourceforge. Some problems it has:

  • Very short Title. Much to short for a descent description.
  • Deleting categories isn’t possible.
  • Very limiting in descriptions etc.
  • I’m missing the features mantis has..

I need to setup a bugtracking system for libhttpd myself

Started My BLog

This is the first posting of my Blog. I started a blog to write things down I’m doing and try to do while coding.

A few days ago I missed a blog so I could rant my frustrations about some Flash development I was trying to do. The same goes for my quest for the perfect text editor.

The projects/thing I would like to place on this blog are:

  • Application Development (java, c++, c .. )
  • Web Development ( php, rails, ajax.. )
  • Tools: editors, version control, grep
  • FreeBSD, Linux and Windows
  • And other important stuff

The start of the Blog is at the right time, just before my Holiday *sigh*. So it’s going to be a little quite at the start. I need to spend some time with my Wife and Kid.

After some fast googling I decided to take Wordpress and some predefined layout for my Blog. It’s just a simple page so I can rant my frustrations.

I hope I will be able to post on a regular basis, but who knows, this time I might succeed ;-)

« Previous Page