Wanted to share it even though its already in TechCrunch :)
Wanted to share it even though its already in TechCrunch :)
Well, not hoping to write about my dreamy vacation, so will just tip off the few productive days. :) Yeah so i was doing some work for Archmage last few days, gave life to a dead project, played with joomla, wordpress and osCommerce.
After much research and hacking me and few of my friends at Archmage thought of using Joomla and WordPress as core CMSes for our web development tasks, to make the work more rapid and easy. So yeah am hacking and looking for plugins and modules that i can use on joomla. Since last two weeks i was working on a real estate project and an e-commerce one. i was looking for resources on them. so yeah if you are looking for something similar try Estate Agent Improved for real estate and Virtuemart for E-Commerce. both are nicely made, Joomla plugins. With a little bit of customization they can be used like a charm.
digg_bodytext = '<?php echo trim(preg_replace('/\s/', ' ', get_the_excerpt())); ?>';
digg_bodytext = '<?php get_the_excerpt(); ?>';
That will fix the error. yeah so the site looks pretty neat. am sure many over the net uses this theme. even tried some different colors and combinations but thought this is the best combination so kept it in original.
Soo yeah will write some thing with more value soon.
Single sign-on (SSO) is a method of access control, that enables a user to authenticate once, and gain access to the resources of multiple software systems. Well in my case, the task i have given is to authenticate a user in a PHP and a JAVA (Web) system simultaneously.
My PHP web application is the well known Joomla CMS, and my JAVA web application is based on JSF and custom built. After some thinking and research I found several resources which are worth reading (JOSSO, OneSign ), but i couldn’t take any help from them, mostly those SSO frameworks are complex ( yeah :) I couldn’t understand ) and aimed on a general pourpose and most of them are not for free.
So yeah I thought of doing some Hack to joomla and also make some changes in my Java web app’s authentication method. After talking with some of my geeky Friends (Sandaruwan and Anjana). I came up with two approaches. both are involved in handling the cookies manually up to certain extent.
The 1st approach is (Which i didn’t try and had to give up due to the reason that I am using JSF as the web application framework) to log-in to the Joomla site and after loged in to Joomla create a random named temp file in the server (possibly in /home/secrets with 777) with the user-name (if a valid log in) and set a cookie using set_cookie(“name”,$filename) and direct to a jsp page to do the java side authentication.
in this JSP, page read the secret file name from the cookie and read the file from the http server in-order to take the username of the loged-in user. By passing this to the authentication method of the java web app, the java side also can be authenticated.
yup it is pretty simple, but i had to give it up mainly because I use JSF. if I do the user authentication in the above way in the java side. I cannot add the user object to the FacesContext which will be used by my other java side components. so even though i log in. later on in other jsf pages my loged user cannot be found. (Shortly my java login process is not happening according to the JSF implementation procedures.) and secondly i had to give up this method because my Project manger didn’t like the idea of saving temp files in the server. :)
So the Second and the method which i have implemented is, automating the Joomla log-in process by making an http request to the http server from my JSF backing bean. and set the PHP cookie manually via Http Servlet response.
There are two different scenarios.
1. User can visit teh home page of the joomla site 1st and the PHP Cookie is already set.
2. User visit the Java site PHP Cookie is not available.
As i promised today I got some time to write about some PHP programming i did few weeks ago. I had to integrate Google calender with the Sensoria web site, so that the events published in the sensoria site will be automatically published in Sensoria’s public Google calender.
Sensoria Site is created using a famous CMS called Mambo, in Mambo one can install plug-ins for many usage for the customized site they are creating. In this case Sensoria was using Mambo Events Component or now available to download as JEvents in Joomla CMS.
What I did was a small code hack in the eventmanager.php file in com_eventmanager folder in the components directory of Mambo. Its was a pretty easy task, but i had problems while testing. I was behind a proxy and the Zend framework gave a huge trouble when connecting to Google Via an HTTPS connection. After some descutions on Google calender forums.. I found out that it is a bug in the Zend Farmework (Which i could not find a solution and didn’t bother or had time to spend on fixing it). So i had to test it in a live server.
Any how now its all working.. I will publish the code out here.. so anyone who wants to do the same.. please feel free to use it..
This is one wide area that no clear online article is available as a help document. I my self had a huge problem in searching and making my modem to work with Edgy. When you google for the Conexant AccessRunner driver you get the driver file as sources from the sourceforge,
where you have to add those files to the kernel source tree and recompile the kernel creating a great deal of work. But yet luckily the new kernels (after 2.6.10) have this driver inbuilt (Ubuntu Dapper/edgy) so you don’t have to mess up recompiling the kernel.
Any how you have to manually add the firmware, otherwise the modem will not work. (The LEDs wont Blink) for this you have to do few things, things I gathered from many online forums/blogs and help guides.
you have to extract the CnxEtU.sys file from the CD which you got from the vendor of your modem, and have to place it in /lib/firmware directory to make the firmware working. The step by step guide as follows.
for this purpose since we do not have the extract command, we have to download the package that Nicholas Wheeler created. from http://revu.tauware.de/details.py?upid=2426 there are several files but what you have to take is cxacrufw_1.2.orig.tar.gz and cxacrufw_1.2-1.diff .
After downloading these two files unzip the .gz and copy the .diff file in to that folder, and being inside that folder through the terminal patch it using
patch < cxacrufw_1.2-1.diff
then type make and make install. now you mush be havening a command called cxacru-fw. now your ready to extract the firmware.
insert the CD you got from the modem vendor and using the terminal type the following commands.
cp /media/cdrom/driver/ADSL/Wan/CnxEtU.sys ~/
(the above path can be different according to your settings so adjust the folder path)
cxacru-fw ~/CnxEtU.sys ~/cxacru-fw.bin
sudo cp ~/cxacru-fw.bin /lib/firmware
Make sure that the firmware is installed as /lib/firmware/cxacru-fw.bin or else the LED wont light up.
restart your computer and thats it you must be seeing the modem is working fine with the LED lighten up. anyhow though you have attached the modem to the computer and if your ISP is providing you a PPPoE protocol you will still have problems connecting your modem to Internet
there are few sites I saw some details which i think will be useful so just visit till I post a topic on HOW TO configure PPPoE
and if any one who knows on PPPoE please leave a comment….