Programming in Java

Java is a general purpose programming language that was created by Sun Microsystems. It pioneered features now seen in other programming languages such as the use of a virtual machine, which allows for easy code portability. The fact that it is a high-level language and has a large standard library makes it easier to write code, but can also cause performance issues.

A primary feature that Java innovated was the use of the virtual machine. Instead of the compiler outputting an executable written for a specific computer architecture, it turns the source code into what is known as bytecode, a form of machine code that runs on the virtual machine. Then, whenever someone wants to run a Java program, they just need to have the virtual machine installed. This is called “write once run anywhere” because it allows the developer to create a single application that will run in any environment.

The virtual machine also makes it easier to implement managed code tools such as a garbage collector. All Java memory management is taken care of by the garbage collector built into the virtual machine, which prevents memory leaks from occurring in Java applications.

One of the biggest reasons that developers use Java today is because of Java applets, which allows the language to be used as a web programming language. Most web browsers have the Java plugin installed, so you can simply write Java code, place it on a web page, and have it execute inside the web browser. And because it runs in the Java virtual machine, you only need to create a single application and place it on the web server in order for anyone to be able to use it. Java applets are often used in complicated browser-based games such as RuneScape, but they can be used for any sort of web-based development.

However, Java is not without its drawbacks. One of the biggest problems that it has historically had is performance issues. Since all of the code is executed inside a virtual machine, there is a performance penalty. Additionally, low-level code tools are not available. The garbage collector can not be disabled, meaning that writing real-time code is a significant problem, as the garbage collector can suspend the program at any time in order to clean up the memory. Standard pointer arithmetic is not available, as the language abstracts away the use of memory into the various Java classes.

Java can be a useful general-purpose programming language, but it is different from other common languages. While that gives it some advantages, such as the use of Java applets, it also has some disadvantages, such as lower performance.

Posted in Uncategorized | Tagged , , , , , , , , , | Leave a comment

Personal Finance Book Review – How To Give Your Kids $1Million Each

By: Ashley Ormond

ISBN 978-0-73037-548-7

Book Price: $29.95

Senior executive in the finance industry

Ashley Ormond has worked in the finance industry for over 25 years. In this time, he has served as a senior executive in major international banking and finance groups. He has also been a director of several companies including listed, private, charitable and not-for-profit organisations. He has degrees in economic history, law and finance.

A plan to release wealth to our kids

Mr. Ormond reveals a plan to release wealth to our kids. In 9 chapters, he shares, how to find $1 per day (Ch. 2) to invest using investment basics (Ch. 4). He also delves deeper into company shares (Ch. 5), property investments (Ch. 6), growing funds over time (Ch. 7), helping your kids to implement his plan (Ch. 8), & other ideas.

Investing $1 a day adds up over time to $1,000,000

Ashley Ormond shares with a personal tone to educate readers through simple analogies and scenarios. He is an organized and relational writer who discusses his “aim” openly to validate the purpose of his book. Ashley states, “The aim of the $1 million is to enable them to do what they really want to do… rather than what they have to.”

Mr. Ormond establishes foundations for readers to apply his ideas. His willingness to guide them through the process leads him to share 4 ground rules for building wealth as, “Make regular contributions… Invest the money in growth assets… reinvest all investment earnings in the fund… never spend it.” Powerful clues towards increase!

Readers are confronted with their responsibilities, as in Ashley’s advice to invest $1 a day, he challenges readers, “Close your eyes, take a deep breath and say to yourself, ‘My child’s financial future deserves $1 per day… ‘”

Ashley believes in practical application of ideas, hence his provocation towards involving our kids in wealth building, saying, “The earlier they learn good financial habits, the better… the age of 10 is a good time to begin… “

Ormond employs bullet points to quickly connect readers to key information. He does this in the case of keys for gaining wealth, stating, “Wealth comes from: learning some basic rules… having a plan and setting some goals… sticking to the plan.” His ideas are clear, simple, and aimed towards provoking readers towards action.

A plan to give our kids $1 million that works

Ashley Ormond guides readers through a simple and practical plan to give our kids $1 million each. It works!

Success Step: Phone your local bank and set up an appointment with their investment advisor, discuss this review.

Posted in Uncategorized | Tagged , , , , , , , , , | Leave a comment

When To Use A Business Loan Packager

Lenders are extremely busy and are often put off by loan requests riddled with errors and/ or do not meet the basic standards of lending.

But small business borrowers with little knowledge of packaging loan requests can enhance their chances of getting funded through use of experienced loan packagers.

This is what Loan packagers do:

• Examine borrowing causes and clearly determine the borrowing need, thus eliminating vagueness and superfluous needs. Lenders are horrified by borrowers who request for loan amounts “out of the blues” based on nothing other than collateral value.

• Gather all the necessary documentation. Most borrowers are not aware of the loan documentation they need to provide to lenders. They spend weeks sending bits and pieces of information to lenders, thus agitating lenders and prolonging approval times.

• Analyze financial statements to ensure that the trends are right and all ratios make lending sense. If for example you revenues are declining, you must drill deep into the causes and mitigate them intelligently. Failure may lead to loan denial.

• Review Business and Finance Plans. Lenders have little or no time reviewing business and/ or financial plans that don’t make sense.

• Benchmark borrower business with industry peers. This helps in giving a lender the insights of the borrower’s industry and how the borrower is performing compared to the industry. If the borrower’s performance is not up to speed, then the borrower may want to undertake a business diagnosis test to identify the causes of poor performance.

• Match borrowing need with banks’ lending criteria. Banks have different lending policies based on loan amount, sector, purpose, collateral, years in business etc. Borrowers spend endless days shopping for lenders only to be denied having had several of their credit reports pulled.

• Provide insights on questions to expect from lenders. Fussy or lazy lenders will deny a loan on a flimsy excuse, such as, ‘the borrower does not maintain a budget’ or ‘the borrower is unaware of his average inventory carry’ etc.

• Advise on loan structure and terms including interest rates. Loan structure is key to getting favorable loan terms. You need to understand when to apply for a line of credit, a seasonal line, a short term loan or a long term loan. Various loans have different interest rates.

The support offered by Loan Packagers justifies the fees charged because borrowers,

• Close their loans faster

• Get very competitive rates

• Get to know their business finances better

• Reduce cost of loan-shopping

• Save on the opportunity cost of delayed or denied loans

• Minimize the number of credit reports that banks pull

The cost of loan packaging varies widely depending on the type of services provided and the complexity of the loan package.

Posted in Uncategorized | Tagged , , , , , , , , , | Leave a comment

Beginner’s Guide to Music File Formats

Are you confused by the various types of music file formats out there? Most of you would have heard of the popular MP3 format, but are you aware there are other alternative digital music formats like WAV, WMA, RA and MIDI? Some of these give better sound quality than MP3 (e.g. the WAV format) but also need more disk storage space. Others like WMA give file sizes smaller than the MP3 format and are more suited for portable music players.

Let’s run through the various file formats now:

The MP3 File Format

MP3 files have the extension “.mp3” and are available for download from many web sites. MP3 (MPEG-1 Audio Layer-3) technology compresses a sound sequence into a very small file (usually one twelfth of of the original file size). The designers of MP3 compression algorithm managed to do this by eliminating sounds that the human ear cannot perceive. While MP3 technology is impressive, it has been abused by music pirates. One can very easily create MP3 files from commercial CDs and make them available for download. The RIAA and major music companies have been cracking down on the distribution and sharing of MP3 files in this manner.

The WMA File Format

WMA (Windows Media Audio) is Microsoft’s proprietary music file format that it is marketing aggressively. WMA files are smaller in size than MP3 files, but still retain a decent level of sound quality. This format is getting very popular in websites for sampling music and also in portable music players. However, whether WMA will overtake the popularity of MP3 remains to be seen.

The WAV File Format

A wave file is characterized by the file extension “.wav”. This music file format provides raw, uncompressed audio data. Originally invented by Microsoft, wave files are still used widely (examples include your start up and shut down sounds in Windows). Audio quality is excellent, but the file size is huge. A full pop song in wave format may take up to 30 MB of disk space or more.

The AIFF File Format

The AIFF (Audio Interchange File Format) is a popular music file formats used in the Apple Macintosh operating system. In a way, they are the Macintosh equivalent of wave files. AIFF files have the file extension “.aif” when accessed via a PC. They contain raw audio data (which result in excellent sound quality) but take up a large amount of disk space.

The MIDI File Format

The MIDI (Musical Instrument Digital Interface) file format was originally created for recording and playing music on digital synthesizers. MIDI files are very small in size. The reason for this is that the MIDI file only contains information on how music is produced (e.g. note-ons and note-offs). The sound card which plays back the MIDI file takes this information and plays back music using an in-built soundcard wavetable.

The RA File Format

RA (RealAudio) files support streaming technology. Created by Progressive Networks, an RA file is highly optimized for live, streaming audio from websites. RA files are best played back on RealAudio players which are freely downloadable from Progressive Networks.


Well, that wraps up our coverage of the most popular music file formats out there. You may be interested to know that there are many software applications which can convert music from one format to another (e.g. MP3 to WAV or WAV to AIFF). Do a search for these applications at

Posted in Uncategorized | Tagged , , , , , , , , , | Leave a comment

Apple IMac MMQA2LL/A Info – Learn About This 21.5-Inch AiO Machine, Its Features, and Design

This 21.5-inch all-in-one machine measures just 5-mm at the edges, and its display features LED backlighting. Since it’s an Apple product, you can expect it to be of the highest quality possible. If you want a fast, efficient computing experience, then you will likely find that the Apple iMac MMQA2LL/A is a perfect choice, with its dual-core Intel Core i5 processor and 8GB of memory.

Whether you keep it in your office, studio, or living room, the display is always the focal point. Enjoy full HD 1080p playback on the 21.5-inch screen with a 16:9 aspect ratio and 1920 x 1080 native resolution. You won’t even have to physically connect it to the modem, as it comes with advanced 802.11ac wireless internet and Bluetooth 4.2 technologies.

Running out of storage space will never be a problem with this machine, as it comes with a built-in 1TB hard drive (SATA). This is ample storage space for saving all of your documents, files and media content. All of this hardware is stuffed down inside of the thin display that measures 20.8-inches x 6.9-inches x 17.7-inches (W x D x H).

There are some very useful audio features that come with the Apple iMac MMQA2LL/A, including stereo speakers, a headphone port, dual microphones, and a mini-jack. Enjoy having video chats with family, co-workers, and friends with the FaceTime HD camera. Also, the computer simultaneously supports the full native resolution on not only the built-in display, but on a secondary (up to 3-inch) display as well (2560 x 1600). The iMac all-in-one offers support for video mirroring / extended desktop modes. A DisplayPort is supported with the Thunderbolt 3 technology. Use this feature to connect the MMQA2LL/A to an external display.

Keyboad and Mouse That Come With the Apple iMac MMQA2LL/A

For input, you get an Apple wireless, full-sized keyboard with 78 (US version) keys, a “Magic” mouse, and “Magic” trackpad. If you already have a mouse or keyboard that you would prefer to use, you can simply connect them via the USB 3 ports. With the SDXC card slot, you can insert any compatible memory cards and access the files on it whenever you need.

There is no need to waste time downloading and installing all of the essential apps, as they already come pre-installed with this Apple AiO. These include iTunes, iPhoto, Safari, iMovie, Facebook, Keynote, Twitter, iCloud, and dozens more.

Another thing that needs to be mentioned in an Apple iMac MMQA2LL/A review is its graphics. The Intel Iris Plus 640 graphics processor delivers impressive performance for most graphics-related content. With this feature, you can play most games on medium settings.

If you’ve been having trouble finding Apple discounts, you can find them by shopping at an online retail store, rather than trying to order through Apple directly. You can start by looking over and comparing Apple iMac MMQA2LL/A promo codes to learn how to get a great deal.

Posted in Uncategorized | Tagged , , , , , , , , , | Leave a comment

Top 5 Reasons For Getting A Tummy Tuck Surgery After Pregnancy

We all know (especially women) that having a baby changes a lot of things in our lives. A woman who becomes mother would hardly get a straight hour sleep, she would have to stop partying for some time and of course her flat stomach and perky breasts will not be there anymore.

However, there’s no need to get disappointed when it comes to your physique because with the help of various cosmetic surgery procedures, you can easily get your toned body back. One of these highly beneficial cosmetic surgeries is a tummy tuck, which gives your pre-baby body back.

  • What a Tummy Tuck Surgery Can Do

A tummy tuck (medically known as abdominoplasty), can easily make your stomach flat, tight and toned once again. It’s quite common and normal for women to end up getting a stomach pooch after having a baby, even in women who had flat tummies before becoming pregnant. Considering your specific needs and concerns, a tummy tuck surgery can help to remove extra fat from the abdomen area, tighten skin or muscle, and to conceal various types of scars, like c-section scars.

Here are top 5 reasons for getting a Tummy Tuck surgery after pregnancy.

  1. If You Have Extra Skin In The Abdominal Area

During your pregnancy, the skin in your tummy area stretches out and stretch marks clearly prove it. The problem is that the skin won’t bounce back to its shape back again once you deliver the baby. This surgery can work wonders by removing the extra skin in the abdominal area.

  1. To Remove C-Section Scarring

It is a highly effective surgery for covering up different types of scars. A C-section gives a scar running across the abdomen and a tummy tuck will easily conceal the scar by lifting the skin over it.

  1. Diastasis recti

Some women experience after pregnancy a separating of the abdominal muscles known as diastasis recti. A tummy pooch, back pain and constipation can occur due to the split muscles. A full surgery will tighten the muscles, as well as the skin.

  1. You Want To Increase Your Confidence Level

A Tummy tuck surgery, which is performed after pregnancy improves not only the physical appearance of your abdominal area, but also increases your confidence level. After the surgery, you’ll love the way you look and make you more confident in your appearance.

  1. You’re Finished Having Children

One of the most common reasons for getting this surgery is that you’re finished having kids and what to have a perfect body. Often surgeons suggest that you should wait until you’ve finished giving birth to your last child. This will help to ensure that results of this surgery are not affected by future pregnancy.

Posted in Uncategorized | Tagged , , , , , , , , , | Leave a comment

Hospital Linen Chutes and Bacterial Contamination

Linen chutes have been used in hospitals for many years now, but there was a time when chutes were considered a bacterial hazard. The suspicion came not from the fact that the trash chute discharge and laundry chutes doors were not properly cleaned and maintained, but from a concern that contaminated air circulated from one floor to another through the chutes. The installation of chutes has been discontinued for a period due to this suspicion followed by the publication of numerous articles in the papers about this subject. However, carrying the trash and dirty laundry ten flours down was even more troublesome and it lead to waste and laundry pilling up for a couple of days until they were finally disposed of. This became an even more serious problem in the end considering the importance of a clean environment in hospitals. Soon after, the idea of using chutes again became again popular and the problem with the bacteria infection potential was easily solved by adding a ventilator to the chutes used in hospitals and later on by changing the whole design of the chutes.

Linen disposal chutes from several hospitals in America have been studied to verify the statement that airborne bacteria infestations were aided by the use of chutes in hospitals. The idea was that the air movement caused by the upward convection of air or the stack effect and the pumping of air that followed the discharge of linen down the chute. The conclusion of the study was not clear, but it showed the potential danger chutes that are not properly maintained and cleaned had. It also showed the importance of chute doors that closed automatically and air vents. The problems detected in the past have been solved with the help of innovative engineering and the latest technology has also allowed the apparition of even safer linen disposal chutes. Garbage and laundry chute today use advanced technology to ensure the safety of the users. From automatic doors to fire proof doors, the number of improvements brought to the modern chutes has increased tremendously in the past few years. Today, all modern linen chutes are equipped with a laundry chute fusible link.

All in all, trash and laundry chutes are a must in commercial buildings and hospitals. While bacterial contamination was a good reason to discontinue the use of chutes in the past, today, the problem has been solved with the help of modern technology. In fact, the need for chutes is even bigger considering the fact that the tendency is to construct higher and bigger buildings. The measures taken against airborne bacteria contamination include airtight chute doors with automatic shutting, deceleration tracks, the introduction of special fans and a better engineering construction of the entire chute. Nowadays, people have started to use trash and linen disposal chutes in their homes as well, saving them the effort of carrying laundry and garbage down the stairs to the basement and not allowing waste to deposit inside the house putting their health at risk.

Posted in Uncategorized | Tagged , , , , , , , , , | Leave a comment

Baby Health – The Doctor Should Be Pediatric

Baby health is without any doubt the most important concern of any parent. Therefore, they keep doing everything possible to ensure that their kid have a sound and good health. They will give the kid regular foods maintaining the nutrition requirement. They will make him involve in physical activities. They will allow him to take rest. The concern with baby health is their incapability to communicate their problems and complains.

Therefore, parents have to keep keen eyes on their every single activities and facial expression. One good way for parents to see how their baby health is performing is having frequent observation of the baby urine and stool. Any abnormalities that go inside baby body is relayed and reflected in the stools and urine. For urine, you can check the color, the amount of it. For stool, you can check the interval of defecation, the solidity and the color. Anything that appears irregular with your baby should be your sign to count on some abnormalities with the baby health. Then immediately consult with pediatric doctors. If needed build a bond with the doctor. Consult him frequently. Even if your baby is well, playing sound; still visit the doctor regularly to assess whether the growth is in right track. It is solely on the hand of parents.

People are not aware that much about it. Therefore, some tragic situation takes them. Some people prefer to observe the situational development for forty-eight hours. However, it is risky because whatever substances the baby is releasing comes from his entire digestion system. Therefore, everybody should consult doctors immediately.

Posted in Uncategorized | Tagged , , , , , , , , , | Leave a comment

Employment: Finding Job Vacancies During a Recession

Job vacancies are getting harder and harder to find in today’s recession. Employment and an online job search go hand-in-hand though. You can’t seem to find the former without the latter. A job search for employment doesn’t mean it has to be an online job you’re getting. Job vacancies are for all sorts of offline jobs, but the online format s the best conduit to find those jobs.

Job Search aggregators are another source of employment vacancies on the internet. Job aggregators differ from job boards because they pull jobs from many different job boards and niches.

In order to use an online job source engine, you just type in some keywords and select the career or industry. You can also put in your zip sometimes. It’s a great way for employers to find employees and employees to find employers. It’s not one-sided. It’s a circuitous relationship. Both parties can interact with each other.

Advanced job searches usually allow you to do other stuff. The quick search is just on the homepage for easy access if you don’t mind traveling or want to work in a broad category. However, the advanced job discovery is really where you can find the jobs that you want to pinpoint. For example, you can put in your keywords, country, state, zip, radius, job category, experience, and show jobs posted within a certain amount of time. You can also browse by category, location, or job posted date. You can do some pretty advanced searching with a job creation engine online as compared to going to the employment office and just standing in line and waiting for a new career. You’re in control with your career discovery engine. You’re in the driver’s seat. Maximize each opportunity available to you.

An employer can also make use of a career search discovery engine. He can find the employees he wants. He just has to post jobs by category, view, save, and organize resumes online, get resumes via e-mail alert system, and track applicants, filter them by selection, and conduct interviews all online. Compare how easy this is with the old way of going to one office at a time and getting business the slow way. The old-fashioned way is just not how people do it anymore. The new way is through a job discovery engine. More and more, employers are also using it to keep track of potential employees. They can filter, screen, and hire them.

Posted in Uncategorized | Tagged , , , , , , , , , | Leave a comment

How To Create A Standalone Connection Pool In Java?

Following is the method I generally prefer to create the connection pool for any database. I use the BasicDataSource class developed by “Apache Software Foundataion” and available for free. For working with this, you may need to add these jar files to your classpath:

1. commons-dbcp.jar
2. commons-pooljar
3. commons-collections.jar
4. mysql-connector-java-5.1.5-bin.jar (for MySQL database server. Replace this with classes12.jar if you are using Oracle)

To create a DataSource object, just instanciate the BasicDataSource class and set the properties related to the database.

BasicDataSource ds = new BasicDataSource();

Replace the word “localhost” with the IP address of the remote server, if you are using one.

You can now set the connection-pool properties also.


That’s it. You have just created 20 ready to use connection objects in a pool.

Typically you wrap all these statements in a method as below:

DataSource getDataSource(){
BasicDataSource ds = new BasicDataSource();
return ds;

All you have to do to retrieve this is to call the getConnection() method of javax.sql.DataSource.

DataSource ds=getDataSource();
Connection conn=ds.getConnection();

Don’t forget to close the connection, as this would ensure your connection is returned to the pool.

Download sample program from []

Once you have the connection, you can use the same to create Statement, PreparedStatement or use it for transaction management etc.

Posted in Uncategorized | Tagged , , , , , , , , , | Leave a comment