Monday of May 28, 2012
I encountered a problem in loading local html files in mootools, but this feature is managed in jquery. I checked the implementation and mootools can implement the similar behavior based on the following sets of codes below.
function get_content(url,callback) { var str = ''; var f = new IFrame({ src:url, styles:{display:'none'}, events:{ load: function() { var d = new Element('div'); d.adopt(this.contentWindow.document.body); var ds = new Elements([d]); ds.each(function(el){ str+=(el.getElement('body').get('html')); }); f.dispose(); callback(str); } } }).inject(document.body); } get_content('test.html',function(str){ $('target-dom').set('html',str);});Wednesday of April 25, 2012
After working with some "Mootools" codes and conducted my initial testing in Firefox, I have encountered an error in IE6 and IE7 indicating "Expected Identifier" for some of my codes. Initially I thought that I may have extra comma's in my codes, which is the usual cause of this error message. After drinking few milo, I saw this code "$dom_list.in.funcList.id" and realized that IE have some reserved javascript words, which includes "in". After replacing in with another value, Tadaah! Problem solved. Thank you IE for making a developer's life more difficult.
Tuesday of February 07, 2012
Some of my friends wanted a free messenger API for their websites, but doesn't want all the traffic and management to happen on their end. Thus I have created a simple messenger service, 'chat.rankaru' for them, though it is still on it's initial build and still lacks other features. The initial build can perform messaging by user to user exchange or by establishing a group, though it still misses a few features such as storing message in a database or sending secure messages.\r\n
Update 05-17-2016: This feature has been decommissioned. Link is accessible.Friday of February 03, 2012
I wanted my virtual host to point from http://app.rankaru.com:8080/myapplication/ to http://app.rankaru.com instead, removing the port number and directory path. I have done this by configuring the httpd.conf in my apache server to point directly to that directory and to perform a proxy.
ServerName domain.rankaru.comDocumentRoot /usr/local/tomcat/myapplication/ProxyRequests On ProxyPreserveHost OnProxyPass http://127.0.0.1:8080/myapplication/ProxyPassReverse http://127.0.0.1:8080/myapplication/AllowOverride None Order allow,deny Allow from All
Monday of January 23, 2012
The very first entry for rankaru.com re-hauled. Releasing this blog site is a fresh start. This new site is an attempt to experiment on Durpal and to record some of my experiences. I have been migrating my site for the third time now, and I might be blaming my lack of posting to the type of framework that I am using. Wordpress was the first option in creating this website, but due to some modules and flexibility that I will be experimenting or maybe just plain stubbornness to use the typical option. Nevertheless, I am happy and excited to relaunch my site for the third time at a different platform. This rankaru third re-hauled, is dedicated to my grandfather, Leandro Abano who died last June 22, 2011. I pray for my lolo and lola and I miss them so much.