Posts

Showing posts from 2014

5 Ways to handle button click event in android

Image
When writing software very rarely is there only one way to do this things,this is true when wiring up View events,five methods are shown here. 1.U sing   Member   Class public   class  main  extends  Activity  {     @Override      public   void  onCreate ( Bundle savedInstanceState )   {          super . onCreate ( savedInstanceState ) ;         setContentView ( R. layout . main ) ;          //attach an instance of HandleClick to the Button         findViewById ( R. id . button1 ) . setOnClickListener ( new  HandleClick ( ) ) ;      }           private   class  HandleClick  implements  OnClickListener {          public   void  onClick ( View  arg0 )   {          Button  btn  =   ( Button ) arg0 ;      //cast view to a button          // get a reference to the TextView         TextView tv  =   ( TextView )  findViewById ( R. id . textview1 ) ;          // update the TextView text         tv. setText ( "You pressed "   +

Simple File System Watcher in C#

Image
In this article I describe the usage of the FileSystemWatcher controller provided by .Net Framework , using C# More information about FileSystemWatcher In C# is here.. Source Code :

Android Activity Animation Tutorial

Image
In this tutorial you can learn how to animate two activities like android navigation drawer style. Android two activity animation like navigation drawer. First of all create 2 activities. MainActivity SubActivity Then 2 XML Files (simple way two xml enough,but we need another two xml to accomplish reverse animation) slide_in_left.xml slide_out_left.xml

Project IGI -I am going in Free Download

Image
Project IGI:1 I am going in - Free Download Full Rip 229 Mb Download from here size:  229 MB (240,114,579 bytes) password : devoptions.blogspot.com

Difference between PHP isset() vs empty() vs is_null()

isset() - Determine if a variable is set and is not NULL empty() - Determine whether a variable is empty is_null() - Finds whether a variable is NULL PHP has different functions which can be used to test the value of a variable. Three useful functions for this are isset(), empty() and is_null(). All these function return a boolean value. If these functions are not used in correct way they can cause unexpected results. Value of variable ($var) isset($var) empty($var) is_null($var) “” (an empty string) bool(true) bool(true) ” ” (space) bool(true) FALSE bool(true) bool(true) TRUE bool(true) array() (an empty array) bool(true) bool(true) NULL bool(true) bool(true) “0″ (0 as a string) bool(true) bool(true) 0 (0 as an integer) bool(true) bool(true) 0.0 (0 as a float) bool(true) bool(true) var $var;  (a variable declared, but wit

MS-DOS And Word Source Code Available To Public

Image
On Tuesday (25-03-2014), First time in the history Microsoft release  MS-DOS and Word for Windows source code for early versions now available in the Computer History Museum . The museum has done an excellent job of curating some of the most significant historical software programs in computing history. As part of this ongoing project, the museum will make available two of the most widely used software programs of the 1980’s, MS DOS 1.1 and 2.0 and Microsoft Word for Windows 1.1a, to help future generations of technologists better understand the roots of personal computing.

Microsoft Windows 8 Source Code Leak ?

Image
Earlier this week, Microsoft admitted that they have accessed a French Blogger's private Hotmail account to identify a former Microsoft employee who had leaked the company's trade secrets in 2012. Microsoft defined this private investigation as part of "Protecting our customers and the security and integrity of our products", mentioned in the Microsoft's terms of service, which says that the action was within the boundaries of the Electronic Communications Privacy Act. U.S. Authorities arrest Alex Kibkalo, ex-Microsoft employee. The indictment states, Kibkalo "uploaded proprietary software and pre-release software updates for Windows 8 RT as well as the Microsoft Activation Server Software Development Kit (SDK) to his personal SkyDrive account in August 2012."