Latest Post

Latest POSTS

Auto Scrolling Recent Posts Widget for Blogger/Blogspot


If you have a lot of post on the blog, or if you want to show everyone your list of favorite books, but have little space in the sidebar widget this will be a great help to you. This post explains how to add auto scrolling (marquee) recent posts Widget on his blog that looks good on your blogspot blog. This is similar to the display of recent post in your sidebar, but this will have a marquee in this widget. Now if you want to show your blog in this way, either on top or bottom of your blog, then you can use this new widget:




How to Install Auto Scrolling Recent Posts Widget

Adding The Widget To Blogger

Go to Blogger >> template

Step 1  Copy the following code and paste inside an Template (script)

 <div class='head_brnews'>  
  <div class='breaking-news'>   
   <div class='samazhlo'>  
    Latest Post  
   </div>  
   <script src='https://dl.dropboxusercontent.com/u/80436322/autoscroll.js' type='text/javascript'/>  
   <script type='text/javascript'>  
    var nMaxPosts =8;  
    var nWidth = 100;  
    var nScrollDelay = 120;  
    var sDirection = &quot;left&quot;;  
    var sOpenLinkLocation = &quot;N&quot;;  
    var sBulletChar = &quot;&gt;&gt;&quot;;  
   </script>  
   <script src='/feeds/posts/default?alt=json-in-script&amp;callback=RecentPostsScrollerv2&amp;max-results=6' type='text/javascript'/>  
  </div>  
   </div>  

Step 2 Copy the following code and paste inside an Template (CSS)

 .head_brnews{  
       height:30px;  
       background:#fff;  
       width:100%;  
       max-width:1160px;  
       margin:15px auto;  
       border-style: solid ;  
       border-width: 1px;  
       border-color: #0080ff;  
       overflow: hidden;  
       width: 955px;  
       margin-top:15px;  
 }  
 .breaking-news{  
        float:left;  
        height:30px;  
        position:relative;  
        overflow:hidden;  
        margin-bottom:20px;  
 }  
 .breaking-news {  
         background: #fff;  
         display:block;  
         float:left;  
         padding:0 10px;  
         height:32px;  
         line-height:30px;  
         color:#000;  
         font-family: Oswald,arial,Georgia,serif;  
         text-transform:uppercase;  
         font-size:15px;  
         margin-right:10px  
 }  
 .breaking-news ul{  
          float:left  
 }  
 .breaking-news a:hover{  
            color:#333;  
 }  
 .breaking-news ul li{  
           float:left;  
           display:block;  
           list-style:none;  
 }  
 .breaking-news ul a{  
           padding:1px;  
           display:block;  
           color:#333;  
           white-space:nowrap;  
           float:left;  
           line-height:30px;  
           font-size:15px;  
           font-family: 'Droid Serif', serif;  
           display:hidden;  
 }  
 .breaking-news span{  
          display:block;  
          float:left;  
          padding:1px 10px;  
          color:#333;  
          font-size:15px;  
          line-height:30px;  
 }  
 .samazhlo{  
      background:#4371CF;  
      position:absolute;  
      left:0;  
      padding: 0 20px;  
      height: 32px;  
      line-height: 30px;  
      color: #FFF;  
      font-family: 'Yanone Kaffeesatz', sans-serif;  
      text-transform: uppercase;  
      font-size: 20px;  
      margin-right: 10px;  
 }  

HTML (HyperText Markup Language)


Developed by Tim Berners-Lee in 1990, HTML is short for HyperText Markup Language and is a language used to create electronic documents, especially pages on the World Wide Web that contain connections called hyperlinks to other pages. Every web page you see on the Internet, including this one contains HTML code that helps format and show text and images in an easy to read format. Without HTML a browser would not know how to format a page and would only display plain text with no formatting that contained no links. Below is an example of a basic web page in HTML code.

 <!DOCType HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">  
 <html lang="en"><head>  
 <title>Example page</title>  
 <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">  
 </head>  
 <body>  
 <h1>This is a heading</h1>  
 <p>This is an example of a basic HTML page.</p>  
 </body></html>  

In the very basic above example are the key parts to every web page. The first DOCType line describes what encoding the page uses. For most pages, unless they are using XML this line will work. Next, the HTML tag begins letting the browser know that HTML code is being used until it is terminated at the end of the page. Next, the head section contains header information about the page, which will almost always contain the title of the page and the meta tags. Finally, the body section is all content that is viewable on the browser. For example, all the text you see here is contained within the body tags.

HTML5 is the update made to HTML from HTML4 (XHTML follows a different version numbering scheme). It uses the same basic rules as HTML4, but adds some new tags and attributes which allow for better semantics and for dynamic elements that are activated using JavaScript. New elements include section, article, aside, header, hgroup, footer, nav, figure, figcaption, video, audio, track, embed (different usage), mark, progress, meter, time, ruby, rt, rp, bdi, wbr, canvas, command, details, datalist, keygen, and output. There are new input types for forms, which include tel, search, url, email, datetime, date, month, week, time, datetime-local, number, range, and color.
A number of elements have been removed due to being presentational elements, accessibility issues, or lack of use. These should no longer be used: basefont, big, center, font, strike, tt, frame, frameset, noframes, acronym, applet, isindex, and dir.

HTML5 also simplifies the doctype declaration. To declare a document as an HTML5 document, you only need the below tag for the doctype.

HTML Presentation :-

PHP (Hypertext Preprocessor)

php (Hypertext preprocessor)

PHP is a script language and interpreter that is freely available and used primarily on Linux Web servers. PHP, originally derived from Personal Home Page Tools, now stands for PHP: Hypertext Preprocessor, which the PHP FAQ describes as a "recursive acronym."

    PHP is an alternative to Microsoft's Active Server Page (ASP) technology. As with ASP, the PHP script is embedded within a Web page along with its HTML. Before the page is sent to a user that has requested it, the Web server calls PHP to interpret and perform the operations called for in the PHP script.

     An HTML page that includes a PHP script is typically given a file name suffix of ".php" ".php3," or ".phtml". Like ASP, PHP can be thought of as "dynamic HTML pages," since content will vary based on the results of interpreting the script.

PHP is free and offered under an open source license.

Example #1 An introductory example :-
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  
   "http://www.w3.org/TR/html4/loose.dtd">  
 <html>  
   <head>  
     <title>Example</title>  
   </head>  
   <body>  
     <?php  
       echo "Hi, I'm a PHP script!";  
     ?>  
   </body>  
 </html>  

PHP Presentation :-


What is Android


Operating Systems have developed a lot in last 15 years. Starting from black and white phones to recent smart phones or mini computers, mobile OS has come far away. Especially for smart phones, Mobile OS has greatly evolved from Palm OS in 1996 to Windows pocket PC in 2000 then to Blackberry OS and Android.
       One of the most widely used mobile OS these days is ANDROID. Android is a software bunch comprising not only operating system but also middleware and key applications. Android Inc was founded in Palo Alto of California, U.S. by Andy Rubin, Rich miner, Nick sears and Chris White in 2003. Later Android Inc. was acquired by Google in 2005. After original release there have been number of updates in the original version of Android.

 

Features & Specifications

Android is a powerful Operating System supporting a large number of applications in Smart Phones. These applications make life more comfortable and advanced for the users. Hardware that support Android are mainly based on ARM architecture platform. Some of the current features and specifications of android are:

Android comes with an Android market which is an online software store. It was developed by Google. It allows Android users to select, and download applications developed by third party developers and use them. There are around 2.0 lack+ games, application and widgets available on the market for users.
    Android applications are written in java programming language. Android is available as open source for developers to develop applications which can be further used for selling in android market. There are around 200000 applications developed for android with over 3 billion+ downloads. Android relies on Linux version 2.6 for core system services such as security, memory management, process management, network stack, and driver model. For software development, Android provides Android SDK (Software development kit). Read more about open source software. 

Applications

These are the basics of Android applications:
•      Android applications are composed of one or more application components (activities, services, content providers, and broadcast receivers)
•      Each component performs a different role in the overall application behavior, and each one can be activated individually (even by other applications)
•      The manifest file must declare all components in the application and should also declare all application requirements, such as the minimum version of Android required and any hardware configurations required
•      Non-code application resources (images, strings, layout files, etc.) should include alternatives for different device configurations (such as different strings for different languages)
Google, for software development and application development, had launched two competitions ADC1 and ADC2 for the most innovative applications for Android. It offered prizes of USD 10 million combined in ADC1 and 2. ADC1 was launched in January 2008 and ADC 2 was launched in May 2009. These competitions helped Google a lot in making Android better, more user friendly, advanced and interactive.

Android  Presentation:-
 
 

Android updates

Google is constantly working on new versions of the Android software. These releases are infrequent; at the moment they normally come out every six months or so, but Google is looking to slow this down to once a year.
Versions usually come with a numerical code and a name that’s so far been themed after sweets and desserts, running in alphabetical order.
  • Android 1.5 Cupcake
  • Android 1.6 Donut
  • Android 2.1 Eclair
  • Android 2.2 Froyo
  • Android 2.3 Gingerbread
  • Android 3.2 Honeycomb - The first OS design specifically for a tablet, launching on the Motorola Xoom
  • Android 4.0 Ice Cream Sandwich: The first OS to run on smartphones and tablet, ending the 2.X naming convention.
  • Android 4.1 Jelly Bean: Launched on the Google Nexus 7 tablet by Asus
  • Android 4.2 Jelly Bean: Arrived on the LG Nexus 4
  • Android 4.3 Jelly Bean
  • Android 4.4 KitKat: Launched on the LG Nexus 5


Android & Android Phone Presentation :-


Application programmaing Interface (API)

Java API is not but a set of classes and interfaces that comes with the JDK. Java API is actually a huge collection of library routines that performs basic programming tasks such as looping, displaying GUI form etc. In the Java API classes and interfaces are packaged in packages. All these classes are written in Java programming language and runs on the JVM. Java classes are platform independent but JVM is not platform independent. You will find different downloads for each OS.

Java Collections API - Presentation:


Java Environment

JDK contains tools that are required to build and execute Java applications and applets. JDK can be freely downloaded from the sun's website.
  • javac _Java Compiler
The Java source code will be compiled by this compiler, which checks for the syntax of the program and will list out errors if any, or will generate the byte code. The Java compiler generate the .class file (byte code).
  • java –Java interpreter
Java interpreter reads the .class file of the application programs that contains the byte code and executes the code in a local machine.
  • appletviewer
The applet viewer runs the Java applets
  • javadoc_ Java Documentation
 Document generator that can be used to create documents for large source codes.
  • javah_ C header
 Produces header files that are used for writing native methods.
  • javap_ Disassembler
Helps to convert byte code into program description.
  • jdb-Debugger
 Helps to find errors in our program.

For free JDK download visit :-


New Features Of JDK 7 - Presentation: 

 


Features of Java

  • Simple, Small and familiar
  • Compiled and interpreted
  • Platform independent and portable
  • Pure Object_Oriented
  • Distributed
  • Robust
  • Secure
  • High Performance
  • Multithreaded and Interactive
  • Dynamic and Extensible
 Platform Independent:
  • The concept of Write-once-run-anywhere (known as the Platform independent) is one of the important key feature of java language that makes java as the most powerful language. Not even a single language is idle to this feature but java is more closer to this feature.
  • The programs written on one platform can run on any platform provided the platform must have the JVM.
Simple, Small and Familier:
  • There are various features that makes the java as a simple language. Programs are easy to write and debug because java does not use the pointers explicitly.
  • It is much harder to write the java programs that can crash the system but we can not say about the other programming languages.
  • Java provides the bug free system due to the strong memory management. It also has the automatic memory allocation and deallocation system.
Object Oriented:
      To be an Object Oriented language, any language must follow at least the four characteristics.
   Inheritance         
          It is the process of creating the new classes and using the behavior of the existing classes by   extending
          them  just to  reuse  the existing code and adding the additional features as needed. 
   Encapsulation         
          It is the mechanism of combining the information and providing the abstraction.
   Polymorphism          
          As the name suggest one name multiple form, Polymorphism is the way of providing the different       
          functionality by the  functions  having the same name based on the signatures of the methods.
     Dynamic binding  
          Sometimes we don't have the knowledge of objects about their specific types  while writing our code. It is    
          the way  of providing the maximum functionality to a program about the specific type at runtime. 
  • As the languages like Objective C, C++ fulfills the above four characteristics yet they  are not fully object oriented languages because they are structured as well as object oriented languages.
  • But in case of java,  it is a fully Object Oriented language because object is at the outer most level of data structure in java. No stand alone methods, constants, and variables are there in java. Everything in java is object even the primitive data types can also be converted into object by using the wrapper class.
Robust:
  • Java has the strong memory allocation and automatic garbage collection mechanism. It provides the powerful exception handling and type checking mechanism as compare to other programming languages.
  • Compiler checks the program whether there any error and interpreter checks any run time error and makes the system secure from crash. All of the above features makes the java language robust.
Distributed:
  • The widely used protocols like HTTP and FTP are developed in java. Internet programmers can call functions on these protocols and can get access the files from any remote machine on the internet rather than writing codes on their local system.
Portable:
  • The feature Write-once-run-anywhere  makes the java language portable provided that the system must have interpreter for the JVM.
  • Java also have the standard data size irrespective of operating system or the processor. These features makes the java as a portable language.
Dynamic:
  • While executing the java program the user can get the required files dynamically from a local drive or from a computer thousands of miles away from the user just by connecting with the Internet.
Secure:
  • Java does not use memory pointers explicitly. All the programs in java are run under an area known as the sand box. Security manager determines the accessibility options of a class like reading and writing a file to the local disk.         
  • Java uses the public key encryption system to allow the java applications to transmit over the internet in the secure encrypted form. The bytecode Verifier checks the classes after loading.
Performance:
  • Java uses native code usage, and lightweight process called  threads. In the beginning interpretation of bytecode resulted the performance slow but the advance version of JVM uses the adaptive and just in time compilation technique that improves the performance.
Multithreaded:
  • As we all know several features of Java like Secure, Robust, Portable, dynamic etc; you will be more delighted to know another feature of Java which is Multithreaded.
  • Java is also a Multithreaded programming language. Multithreading means a single program having different threads executing independently at the same time.
  • Multiple threads execute instructions according to the program code in a process or a program. Multithreading works the similar way as multiple processes run on one computer.  
  • Multithreading programming is a very interesting concept in Java. In multithreaded programs not even a single thread disturbs the execution of other thread.
  • Threads are obtained from the pool of available ready to run threads and they run on the system CPUs. This is how Multithreading works in Java which you will soon come to know in details in later chapters.
Interpreted:
  • We all know that Java is an interpreted language as well. With an interpreted language such as Java, programs run directly from the source code. 
  • The interpreter program reads the source code and translates it on the fly into computations. Thus, Java as an interpreted language depends on an interpreter program.
  • The versatility of being platform independent makes Java to outshine from other languages. The source code to be written and distributed is platform independent. 
  • Another advantage of Java as an interpreted language is its error debugging quality. Due to this any error occurring in the program gets traced. This is how it is different to work with Java.

History of Java

  • The Java platform and language began as an internal project at Sun Microsystems in December 1990, providing an alternative to the C++/C programming languages. Engineer Patrick Naughton, James Gosling and Mike Sheridan were attempting to develop a new technology for programming next generation smart appliances (like set-top boxes!), which Sun expected to be a major new opportunity. It was called the Green project.

           James Gosling -Father of Java
The team originally considered using C++, but it was rejected for several reasons as follows:
  • Because they were developing an embedded system with limited resources, they decided that C++ demanded too large a footprint and that its complexity led to developer errors.
  • C/C++ does not have garbage collection. This means that programmers have to manually manage system memory - a difficult and error-prone task.
  • C/C++ also suffered from lack of portable facilities for security, distributed programming, and threading.
  • Finally, they wanted a platform that could be easily ported to all types of devices.
Initially, Gosling attempted to modify and extend C++ but soon abandoned that in favor of creating an entirely new language, which he called Oak, after the tree that stood just outside his office.
By the September of 1992, they were able to demonstrate portions of the new platform including the Green OS, the Oak language, the libraries, and the hardware.
Java was initially developed to write software for consumer electronic products like television, ovens etc. Later with the development of Internet and World Wide Web there was a need for a programming language that is platform independent, So Java gained popularity and became one of most popular language for Internet programming.

Java meets Internet
  • In June and July 1994, John Gage, the Director of Science for Sun, Gosling, Joy, Naughton, Wayne Rosing, and Eric Schmidt (the now CEO of Google) re-targeted the platform for the World Wide Web.  With the arrival of the first graphical web browser, Mosaic, they felt the Internet was on its way to evolving into a powerful, highly interactive medium. As a prototype, Naughton wrote a small browser, WebRunner, later renamed HotJava.
  • That year, the language was renamed Java after a trademark search revealed that Oak was used by another company. The first public release of Java and the HotJava browser was on 23 May 1995. Netscape browsers started to include Java support. On 9 January 1996, the JavaSoft group was formed by Sun Microsystems in order to develop the technology.
Major Java Versions
  • JDK (Java Development Kit) 1.0 was released on (January 23, 1996), JDK 1.1 was released on February 19, 1997. Major altereations were on the AWT event model, inner classes, JavaBeans and JDBC were added to the language.
  • J2SE 1.2 (December 8, 1998) — This and subsequent releases were rebranded Java 2. The version name "J2SE" (Java 2 Platform, Standard Edition) was used instead of JDK. J2EE (Java 2 Platform, Enterprise Edition) and J2ME (Java 2 Platform, Micro Edition) were available. Major additions included reflection, a Collections framework and the integration of the Swing graphical API into the core classes. Sun's JVM was equipped with a JIT compiler for the first time.
  • J2SE 1.3 (May 8, 2000) - Notable changes included the bundling of the HotSpot JVM, Java Sound, Java Naming and Directory Interface (JNDI) and Java Platform Debugger Architecture (JPDA).
  • J2SE 1.4 (February 6, 2002) — regular expressions modeled after Perl, exception chaining, an integrated XML parser and XSLT processor (JAXP), and Java Web Start.
  • J2SE 5.0 (September 30, 2004) — Internal version numbered 1.5. A number of significant new language features include the for-each loop, generics, autoboxing and var-args.
  • The current version, Java SE 6 (December 11, 2006) — is bundled with a database manager, facilitates the use of scripting languages (currently JavaScript) with the JVM and has Visual Basic language support.
  • As of this version, Sun replaced the name "J2SE" with Java SE and dropped the ".0" from the version number 6.0. Lots of GUI improvements including native UI enhancements to support the look and feel of Windows Vista and improvements to the Java Platform Debugger Architecture (JPDA) & JVM Tool Interface for better debuging were new featuers.
  • Java SE 7 — Codename Dolphin is in the early planning stages.
History of JAVA - Presentation: