Theme Graphic
Theme Graphic

Blogs Home

Welcome to the Programmer's Heaven blogs area! Here you can read blog
posts made by our users, as well as creating and writing your own blog.
Posted on Tuesday, January 22, 2013 at 7:52 PM
1. Passing Attributes to jQuery(…) Pre 1.4, jQuery supported adding attributes to an element collection via the useful "attr" method, which can be passed both an attribute name and value, or an object specifying several attributes. jQuery 1.4 adds support for passing an attributes object as the second argument to the jQuery function itself, upon element creation. Let’s say you need to create an anchor element with several attributes. With 1.4 it’s as simple as: view plaincopy to clipboardprint? jQuery('<a/>', { id: 'foo', href: 'http://google.com', title: 'Become a Googler', rel: 'external', text: 'Go to Google!' });

http://www.javakeexample.com/2013/01/jquery-released-15-new-features-you.html
Comments: 1 Tags: Java, Servlet, tomcat

Posted on Tuesday, January 22, 2013 at 7:50 PM
Introduction Prior to Servlet API 3.0, in order to create servlet implementations that are asynchronous you would have to use something like Comet. However, Tomcat 7 and Servlet API 3.0, it is now possible to create servlets that can operate in both asynchronous and synchronous mode (and are portable across any 3.0 compliant app server, like Tomcat 7 or GlassFish 3.x). With synchronous servlets, a thread handling the client HTTP request would be tied up for the entire duration of time it takes to process the request. For long running tasks, where the server primarily waits around for a response (from somewhere else), this leads to thread starvation, under heavy load. This is due to the fact that even though the server isn’t doing anything but waiting around, the threads are being consumed by lots of requests as they come in (and threads are a finite resource).

http://www.javakeexample.com/2013/01/creating-asynchronous-servlets-with.html
Comments: 0 Tags: Java, Servlet, tomcat

Posted on Saturday, January 19, 2013 at 3:54 AM
Google Guice is a Dependency Injection Framework that can be used by Applications where Relation-ship/Dependency between Business Objects have to be maintained manually in the Application code. Since Guice support Java5.0, it takes the benefit of Generics andAnnotations thereby making the code type-safe. This article provides an overview about the Guice framework with a lot many samples. It then looks into the theories related to Dependency Injection Framework and the advantages of using them in Application. It also explores the various API available in Guice along with the Annotations that simplifies most of the things. The final section presents lots of samples thereby making most of the Guice API to get a much better feel towards the API.

http://www.javakeexample.com/2013/01/comparing-spring-vs-google-guice-by.html

http://www.javakeexample.com/2013/01/google-guice-with-ioc-and-aop.html
Comments: 0 Tags: Java, Spring, guice

Posted on Saturday, January 19, 2013 at 3:45 AM
It’s been a while since the last major Java release and expectations were naturally high for the upcoming release. The Java 7 release initially included many JSRs with exciting features, like support for closures, which were later deferred to Java 8 in order to release JSRs that are already done. This effectively diluted what is now offered in Java 7 and has left some disappointed.

The Java language has undergone major changes since I started using it in 1998. Most of the changes were driven by the Java Community Process (JCP) which was established in 1998 as a formal and transparent process to let interested individuals and entities participate and influence how the language should evolve. This is done through the submission of a change request, known as Java Specification Request (JSR), followed by a review and a voting process. Changes or enhancements made to the language can be usually tracked back to a JSR where they were originally put forward for review. For example, the addition of Generics in Java 5 was done via JSR 14...
Comments: 0 Tags: Java

Posted on Friday, March 23, 2012 at 2:05 PM
Hello and welcome to my first blog post on programmersheaven.com. On this blog, I would be giving examples and tips on how to achieve the Designer-Developer workflow of software UI development with the new JavaFX 2.0.2 technology release by Oracle.

For those that don't know, the Designer-Developer workflow was a key feature of the now deprecated JavaFX 1.x technology. It is a process of software development where the UI design team is separated from the programming logic development team of a software project. The beauty of this approach was that the UI design is left to professional graphics designers while the programmers concentrate on the application logic.

Graphics designers use their preferred graphics tools to design the UI while the programmers use their preferred Development Environments. Both teams can work simultaneously and independently but they only have to agree on the names to label the interactive elements on the UI design. Additionally, the programmers can be working with a simple mock-up of the UI while the designers are fleshing out the final product...

Posted on Wednesday, November 09, 2011 at 3:26 AM
Hello my friends. I present to you the new multi-platform IDE for creating applications.

Quick App Maker Studio L - is Free Ide for develop Cross-Platforms Gui databases applications.

Gui designer suport drag and drop object into Forms. Supports databases access (SQLite for Now), SQL language, reports, multiforms and other.

IDE contains a set of 60 icons and can be used in develop applications. Writing code is very simple. The wizard helps you enter your code. Quick App Maker Studio creates a single file. JAR (JVM). Jar extension you can easily convert to .EXE or .DMG extensions (jar2exe, Jar bundler...).

I'd be glad to try it to make your own program. =)

We hear it even when they are some kind of news.

Thanks.

Posted on Thursday, June 10, 2010 at 3:06 PM
Programming Tutorial Java Tutorial 5 – Arrays In non-trivial computing problems you often need to store lists of items. Often these items can be specified sequentially and referred to by their position in the list. Sometimes this ordering is natural as in a list of the first ten people to arrive at a sale. The first person would be item one in the list, the second person to arrive would be item two, and so on. Other times the ordering doesn’t really mean anything such as in the ram configuration problem of the previous chapter where having a 4 MB SIMM in slot A and an 8 MB SIMM in slot B was effectively the same as an 8 MB SIMM in slot A and a 4 MB SIMM in slot B. However it’s still convenient to be able to assign each item a unique number and enumerate all the items in a list by counting out the numbers.

Java Tutorial 5 – Arrays

Posted on Sunday, June 06, 2010 at 1:19 PM
Programming Tutorial Java Tutorial 4 – Methods All the programs we’ve written to date have been quite simple, well under fifty lines of code each. As programs grow in size it begins to make sense to break them into parts. Each part can perform a particular calculation and possibly return a value. This is especially useful when the calculation needs to be repeated at several different places in the program. It also helps to define a clearer picture of the flow of the program, much like an outline shows the flow of a book.

Java Tutorial 4 – Methods

Posted on Sunday, June 06, 2010 at 1:16 PM
Programming Tutorial Java Tutorial 3 – The For Statement and Operators Java isn’t as redundant as perl, but there’s still almost always more than one way to write any given program. The following program produces identical output to the Fahrenheit to Celsius program in the preceding section. The main difference is the for loop instead of a while loop. Java Tutorial 3 – The For Statement and Operators

Posted on Wednesday, June 02, 2010 at 3:09 PM
Programming Tutorial Java Tutorial 2 – Classes and Objects: A First Look Classes are the single most important feature of Java. Everything in Java is either a class, a part of a class, or describes how a class behaves. Although classes will be covered in great detail in section four, they are so fundamental to an understanding of Java programs that a brief introduction is going to be given here.

Java Tutorial 2 – Classes and Objects: A First Look

Posted on Wednesday, June 02, 2010 at 2:55 PM
Programming Tutorial Java Tutorial 1 – Hello World: The Application At least since the first edition of Kernighan and Ritchie’s The C Programming Language it’s been customary to begin programming tutorials and classes with the “Hello World” program, a program that prints the string “Hello World” to the display. Being heavily influenced by Kernighan and Ritchie and not ones to defy tradition we begin similarly.

Java Tutorial 1 – Hello World: The Application

Posted on Sunday, May 30, 2010 at 12:48 AM
Programming Tutorial C tutorial index C Tutorial 1 – The basics of C C Tutorial 2 – If statements C Tutorial 3 – Loops C Tutorial 4 – Functions C tutorial 5 – Switch case C Tutorial 6 – An introduction to pointers C tutorial 7 – Structures C Tutorial 8 – Arrays C Tutorial 9 – C Strings C Tutorial 10 – C File I/O and Binary File I/O C Tutorial 11 – Typecasting C Tutorial 12 – Accepting command line arguments

C tutorial index

Posted on Sunday, May 30, 2010 at 12:47 AM
Programming Tutorial C Tutorial 12 – Accepting command line arguments Typecasting is a way to make a variable of one type, such as an int, act like another type, such as a char, for one single operation. To typecast something, simply put the type of variable you want the actual variable to act as inside parentheses in front of the actual variable. (char)a will make ‘a’ function as a char. For example:

C Tutorial 12 – Accepting command line arguments

Posted on Sunday, May 30, 2010 at 12:43 AM
Programming Tutorial C Tutorial 11 – Typecasting Typecasting is a way to make a variable of one type, such as an int, act like another type, such as a char, for one single operation. To typecast something, simply put the type of variable you want the actual variable to act as inside parentheses in front of the actual variable. (char)a will make ‘a’ function as a char. For example:

C Tutorial 11 – Typecasting

Posted on Sunday, May 30, 2010 at 12:40 AM
Programming Tutorial C Tutorial 10 – C File I/O and Binary File I/O When accessing files through C, the first necessity is to have a way to access the files. For C File I/O you need to use a FILE pointer, which will let the program keep track of the file being accessed. (You can think of it as the memory address of the file or the location of the file). For example:

C Tutorial 10 – C File I/O and Binary File I/O

Posted on Saturday, May 29, 2010 at 2:18 PM
Programming Tutorial This lesson will discuss C-style strings, which you may have already seen in the array tutorial. In fact, C-style strings are really arrays of chars with a little bit of special sauce to indicate where the string ends. This tutorial will cover some of the tools available for working with strings–things like copying them, concatenating them, and getting their length.

C Tutorial 9 – C Strings C Tutorial 9 – C Strings

Posted on Saturday, May 29, 2010 at 2:16 PM
Programming Tutorial C Tutorial 8 – Arrays Arrays are useful critters that often show up when it would be convenient to have one name for a group of variables of the same type that can be accessed by a numerical index. For example, a tic-tac-toe board can be held in an array and each element of the tic-tac-toe board can easily be accessed by its position (the upper left might be position 0 and the lower right position 8). At heart, arrays are essentially a way to store many values under the same name. You can make an array out of any data-type including structures and classes.

C Tutorial 8 – Arrays

Posted on Saturday, May 29, 2010 at 2:15 PM
Programming Tutorial C tutorial 7 – Structures When programming, it is often convenient to have a single name with which to refer to a group of a related values. Structures provide a way of storing many different values in variables of potentially different types under the same name. This makes it a more modular program, which is easier to modify because its design makes things more compact. Structs are generally useful whenever a lot of data needs to be grouped together–for instance, they can be used to hold records from a database or to store information about contacts in an address book. In the contacts example, a struct could be used that would hold all of the information about a single contact–name, address, phone number, and so forth. C tutorial 7 – Structures

Posted on Friday, May 28, 2010 at 4:17 PM
Programming tutorial Pointers are an extremely powerful programming tool. They can make some things much easier, help improve your program’s efficiency, and even allow you to handle unlimited amounts of data. For example, using pointers is one way to have a function modify a variable passed to it. It is also possible to use pointers to dynamically allocate memory, which means that you can write programs that can handle nearly unlimited amounts of data on the fly–you don’t need to know, when you write the program, how much memory you need. Wow, that’s kind of cool. Actually, it’s very cool, as we’ll see in some of the next tutorials. For now, let’s just get a basic handle on what pointers are and how you use them.

C Tutorial 6 – An introduction to pointers

Posted on Friday, May 28, 2010 at 4:16 PM
Programming tutorial Switch case statements are a substitute for long if statements that compare a variable to several “integral” values (“integral” values are simply values that can be expressed as an integer, such as the value of a char). The basic format for using switch case is outlined below. The value of the variable given into switch is compared to the value following each of the cases, and when one value matches the value of the variable, the computer continues executing the program from that point.

C tutorial 5 – Switch case

 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.