Skip to main content

Posts

Today is Asala poyaday for Sri lankans

King Dutumanu sang this song day like today. Obe Namin Saya Badimi Vimanayen Basinu Manawi Swarnamaliye Roobara Swarnamaliye Una Neela Varna Varala Dale Mal Gavisi Liye Naga Indrachapa Debama Asin Viduli Mawana Liye Mana Lamada Kinihiri Pethi Rathna Thilaka Paladi Liye Sinasisi Vimanayen Basinna Swarnamaliye Athe Gigiri Nada Salaba Nura Hadin Hadana Liye Kare Padma Kakulu Mala Hansa Thudin Thalena Liye Kane Thodu Mini Gana Ran Muna Opaya Karana Liye Pama Novi Vimanayen Basinna Swarnamaliye Balachandra Patu Nalalatha Kalka Adun Adina Liye Aaala Vadan Dantha Kakulu W.D Amaradewa

Terminal Hand Book (Ubuntu)

Introduction In traditional UNIX environment using CLI (Command Line Interface) is more interesting and powerful other than using GUI. Specially if some one have to work with UNIX server edition without GUI he has to face big difficulty if he is poor with CLI. With new versions of ubuntu it is providing GUI interface to replace CLI commands. Any way still there are some hidden terminal commands that forgot to GUI, so that having good knowledge of CLI is important. 1. Commands for configure softwares Description Command Install software sudo apt-get install [PackageName] Install ALL the required components using 1 single command sudo tasksel Run .sh (shell commands) files sudo sh filename.sh 2.Monitor Ubuntu software processes Description Command List all process currently running ps aux List selected packge's processes ps aux | grep [package name] many more 3.Common File Operations Description Command Rem...

Hacking joomla core (categorize joomla modules under assigned menu)

Most of the time we have to face many difficulties search specific joomla modules that assigned to specific menu item. Currently (joomla 1.5x) joomla provide categorization of modules under fallowing four way According to template According to Position According to Type According to State My new modification will add another categorization for module as According to assigned menu. This is simple add stride forward. Step 01: Go to administrator\components\com_modules\toolbar.modules.html.php and past as fallow Existing one (line 49) echo $lists['assigned']; echo $lists['position']; echo $lists['type']; echo $lists['state']; After modified echo $lists['assigned']; echo $lists['position']; echo $lists['type']; echo $lists['state']; echo $lists['menu']; Step 02: Go to administrator\components\com_modules\toolbar.modules.html.php and add fallowing(After line: 6...

The ASP.NET Event Model with Post Back feature

ASP.NET providing fully organized event divan code model for its users and In this model you can add control to web form and then can decided what event need to trigger. Each event handler is a discrete mechanism which keeps the page tidy and organized. Lets we looks around how ASP.NET code model work When our page run first time it will create page and control object, the initialize code execute, and then page is render to HTML and send it to client side. After reach web page to client side, page get the users feed backs like click submit button then reach to ASP.NET server side back In the side of sever now compare the page with the state which it had before send to the client. After understanding the difference it will trigger some action in the side of server like DB update operation Finally modify the page and render the html code and send it to client side. This same process will continue from step to over and over again according to the client reaction. Actuall...

Simpale AJAX Shout out box for joomla

If we google as "joomla shout out box" we can get multiple results specific to joomla as show form fallowing link. http://extensions.joomla.org/extensions/communication/shoutbox Other than using above extensions we can implement our own shout out box with fallowing features. Adding our recently entered shout out for waiting shout out list. Normally as a normal users, they may entered deferent type of shout outs with out caring. That type of situation we need a human monitoring system to monitor shout outs. Display recently added shout outs in the side of admin through the separate admin panel. In this type of application admin should has a facility to monitor the shout outs and accept or cancel that shout out easily real time. Adding accepted shout outs to shout list for display all users and remove form waiting list. Identify accepted shout out and rejected shout out easily for users. If there is a restriction like one user can add limited number of shout outs, available nu...

How Code-Behind Files are Connected to web Pages in ASP.NET

Normally start of every aspx pages is referenced to the language and specific code behind file to excite the web page’s controls and events if it is not in a code-Inline structure. In traditional ASP.NET it is using Src attribute to point out the source code file or inherit attribute indicate the compile class name. In these both two approaches have several impairments when considering each other. But common problem is, both may add boilerplate code because of every time have to indicate web control with a member variable in these two methods. To overcome this problem ASP.NET provides oversaw keyword called partial, which has a capability to spit a single class into multiple source code files. Essentially, the model is the same as before, but the control declarations are shuffled into a separate file. You, the developer, never need to be distracted by this file; instead you can just access your web-page controls by name. In code behind file: public partial class TestFormCode...