Monthly Archives: December 2010

Joomla Plugin – BaseUri in an Article

If you have ever thought about using the baseuri path in joomla inside an article to help while transitioning from dev to live. In case you may be wondering about Joomla and the potential of why this would not be a stock option on the user interface, then you simply need to think about the way that the interface works and what putting in a baseuri replacement operator would do. Put simple – if you are using a replacement operator on an image, you will loose the ability to see the image. There is a simple fix for this which would simple be to put relative urls in here, however, if are using search engine friendly Urls – this will not work as the path that is relative may change due to the fancy url path. At any rate – if you are looking for a plugin to replace a token with the baseuri path which includes the domain and possibly a subfolder token as defined in .htaccess and configuration.php files, then look no further. The only thing you need to be aware of is that in the content editor – you may loose view ofyour images.

Continue reading

Creating Javascript Widgets

Creating widgets in javascript is not a new idea and is becomming more or less of a wide spread technology thanks to well used web aps like facebook, myspace and even google apps. A widget is basically a simple graphical interface that can be re-used either on the same domain or possible many potential domains. There are more than one way to create a widget but for our example we are going to use straight up javascript and dhtml.

Javascript css float attribute

FYI for those of you trying to perform css float style updates programmatically, you have a little hurdle in order to apply this style correctly. Like the other style that have javascript counterparts through the use of element.style, the float property is a pretty much the same except that the actually style property name is not merely float – it is cssFloat in the case of mozilla and chrome, and in the case of IE: floatStyle.
Continue reading

Perl Socket.so and inet_aton.so

Upon building a module for perl I ran into a build issue with Socket.so in regards to an undefined symbol: inet_aton.so. When taking a closer look at the socket.so lib, it is apparent that the “proper” libraries should be there, however, in Solaris there are a few functions that do not exist in the same spots as other OS&squo;. So in order to properly build you need to add -lresolv or when you are invoking something that is prebuilt like cpan and using perl Socket.so you can simply use:

LD_PRELOAD=libresolv.so path_to_cpan