February 4, 2013

Virus Behavior

Virus Behavior

Virus Behavior In early years i heard about the viruses which were famous by infecting the files. I myself experienced that double click a file but it was not opening. Somewhere in books i read that viruses joins the start action of a file to its ending action. We can also elaborate it with constructor […]

January 12, 2013

Session out issue in codeigniter

Session out issue in codeigniter Note: wdwd = websitedesignwebsitedevelopment In fact CI is managing the session with cookies and when you mention your domain in config file so it creates the cookies with that identity. It is already clear that we can have sub-domains as well. So with www. and without www. cookies will have […]

December 21, 2012

MySQL – Sub-query Example, Multiple sub-query, DB De-Normalization, Data Duplication, Data Redundancy

mysql

MySQL – Sub-query Example, Multiple sub-query, DB De-Normalization, Data Duplication, Data Redundancy Example of: Data Redundancy Data Duplication DB De-Normalization Multiple sub-query MySQL – Sub-query Example, Multiple sub-query, DB De-Normalization, Data Duplication, Data Redundancy This post is to show the power of single query which can complete the records by matching and comparing the reference […]

December 12, 2012

difference between wp_footer and get_footer

wordpress

difference between wp_footer and get_footer The get_footer() is a function which is used to include a theme file from theme directory. And wp_footer() is an action hook, which can be used as do_action( ‘wp_footer’ ) to inject scripts in the site HTML footer. get_footer() is a custom html code which is available in footer.php and […]

November 29, 2012

Communications API

Communication

Communications API Communications API is centered around the abstract class CommPort and its two subclasses, SerialPort and ParallelPort, which describe the two main types of ports found on desktop computers.

September 20, 2012

Mouse click activity, mousedown, mouseup and click

Mouse click activity

Mouse click activity, mousedown, mouseup and click Javascript related event handlers like onmousedown, onmouseup and onclick are the subdivisions of an event. These events are triggered by mouse click which is subdivided into the following: onmousedown onmouseup onclick To understand this activity we have to guess that when we press mouse button “left click” that […]

September 17, 2012

Cross-site request forgery (CSRF) Updated

Cross-site request forgery (CSRF) Updated public function csrf_verify() { // If no POST data exists we will set the CSRF cookie if (count($_POST) == 0) { return $this->csrf_set_cookie(); } if((isset($_SERVER[‘HTTP_X_REQUESTED_WITH’]) && $_SERVER[‘HTTP_X_REQUESTED_WITH’] == “XMLHttpRequest”) || isset($_SERVER[‘HTTP_REFERER’])) { if(isset($_SERVER[‘HTTP_REFERER’])) { $parse_url = parse_url($_SERVER[‘HTTP_REFERER’]); if($parse_url[‘host’]!=$_SERVER[‘HTTP_HOST’] && !in_array($parse_url[‘host’], array(‘apps.facebook.com’))) { $this->csrf_show_error(); } else { //echo ‘Safe’; //echo ‘Host […]

September 14, 2012

Cross-site request forgery (CSRF) – Ajax Fix

Cross-site request forgery (CSRF) – Ajax Fix CSRF Security Class is great practice which is not really in practice commonly. The reason is workload of the scope of the project. Developers mostly don’t care about the form class of the CI and 20% or less people use form helper to generate 100% forms in their […]