Java

Economic uncertainty surrounding the U.S. government sequester, European debt crisis and weakening GDP in China has resulted in volatile spending patterns across most segments of the market. According to the latest market study by Intern...
Economic uncertainty surrounding the U.S. government sequester, European debt crisis and weakening GDP in China has resulted in volatile spending patterns across most segments of the market. According to the latest market study by International Data Corporation (IDC), as a result of the current economic climate, business technology spending was slightly below expectations in the second half of 2012 and first quarter of 2013. IDC now projects worldwide IT spending growth of 4.9 percent this year in constant currency, down from the previous forecast of 5.5 percent growth -- and representing a slowdown from the 5.6 percent growth recorded in 2012. As a result, IT spending will reach $2.06 trillion in 2013. Including telecom services, ICT spending will increase by 4.5 percent to $3.7 trillion. So, what are the key trends that are shaping the updated global forecasts? Deteriorating PC Shipments The reduction in IDC’s overall forecast for 2013 is largely driven by rapidly deteriorating PC shipments since the second half of 2012. IDC now expects PC spending to decline by 3 percent in constant currency this year, representing a third successive year of declining PC revenues. The shift to mobile devices remains a key driver for overall tech spending growth. Excluding mobile phones and tablets, worldwide IT spending increased by only 2.8 percent in 2012 and is forecast to grow by just 2.6 percent this year. Worldwide spending on smartphones will increase by 17 percent in 2013 while tablet spending will grow by 32 percent. The combined growth rate for PCs and tablets, meanwhile, will remain stable in the range of 4-5 percent. Cloud Services Cannibalizes Software and IT Services Just as tablets are cannibalizing PC spending, so the growth of managed cloud services continues to cannibalize commercial software and IT services. Software spending in the U.S. grew slightly slower than forecast in 2012, and IDC has consequently reduced the U.S. software forecast to 6 percent growth for 2013 (from 7 percent). IT services demand remains stable, but the pass-through from capital spending and software deployment remains tepid by historical standards. IDC now forecasts growth of 5.6 percent in worldwide software spending in 2013 (constant currency), and 3.8 percent in IT services. Decline in Server Revenues IDC's assessment also suggests a decline in overall server revenues while storage infrastructure spending will cool somewhat after the major spending cycle of 2011/2012. IDC now projects 2.4 percent growth in worldwide storage hardware revenues this year, down from 6.1 percent growth in 2012. Network infrastructure investment was strong in 2012, as many carriers invested in the deployment of LTE networks, but this will also cool in 2013. Service provider spending on network equipment will increase by 1.1 percent this year, compared to 5.8 percent in 2012. Enterprise network spending should remain more stable, projected to post growth of 6.8 percent. The Global Networked Economy Emerging markets are still the engines of growth for Worldwide IT spending, with strong trends continuing in markets such as India and Brazil in recent months. The weakest-performing geographies will be Western Europe and Japan, where slow economic growth is inhibiting IT spending while the U.S. market remains fragile in the context of political uncertainty. "It's all about the economy," said Stephen Minton, Vice President at IDC. "Our surveys confirm that underlying demand for IT products and services remains strong, but that businesses are once again being forced to delay new projects or investments in the face of longer decision-making cycles and a lack of short-term visibility. This storm could pass quickly, if governments in the U.S., Europe, China and Japan succeed in steering their ships towards calm waters in the second half of the year." That being said, it's the savvy forward-looking executive leaders who continue to invest
35 minutes ago
Writing to PDF is very easy with Lowagie’s iText package. You can download the iText.jar required for the following program here. Program below demonstrates how easily one can create, update and manipulate pdf files (including pdf...
Writing to PDF is very easy with Lowagie’s iText package. You can download the iText.jar required for the following program here. Program below demonstrates how easily one can create, update and manipulate pdf files (including pdf merging) in Java. package com.kushal.util; import java.io.FileOutputStream; import java.util.HashMap; import com.lowagie.text.Element; import com.lowagie.text.Image; import com.lowagie.text.PageSize; import com.lowagie.text.pdf.BaseFont; import com.lowagie.text.pdf.PdfContentByte; import com.lowagie.text.pdf.PdfReader; import com.lowagie.text.pdf.PdfStamper; public class PDFManipulation { public static void main(String[] args) { try { // we create a reader for a certain document PdfReader reader = new PdfReader( "D:/GeneralWs/utilities/com/kushal/util/FormToFill.pdf"); int n = reader.getNumberOfPages(); // we create a stamper that will copy the document to a new file PdfStamper stamp = new PdfStamper(reader, new FileOutputStream( "myOutPutFile.pdf")); // adding some metadata HashMap moreInfo = new HashMap(); moreInfo.put("Author", "Kushal Paudyal"); stamp.setMoreInfo(moreInfo); // adding content to each page int i = 0; PdfContentByte under; PdfContentByte over; Image img = Image .getInstance("D:/GeneralWs/utilities/com/kushal/util/Flood.jpg"); BaseFont bf = BaseFont.createFont(BaseFont.TIMES_ROMAN, BaseFont.WINANSI, BaseFont.EMBEDDED); img.setAbsolutePosition(400, 400); while (i Originally posted 2008-06-27 13:50:50.
about 6 hours ago
Look at this Hydrogen Atom’s Electron Orbit Specifically, that electron orbit as viewed through a quantum microscope. For the first time. So you’re looking at a wave function right now. How’s that for the future? Preview Text: ...
Look at this Hydrogen Atom’s Electron Orbit Specifically, that electron orbit as viewed through a quantum microscope. For the first time. So you’re looking at a wave function right now. How’s that for the future? Preview Text: It’s Memorial Day Weekend in the US, and the Internet’s a little quiet. To tide you over, we've got the...
about 6 hours ago
The billion dollar question facing executives everywhere: How do I monetize my data? What small data or big data monetization strategies should I adopt? Which analytical investments and strategies really increase revenue? What pilots sh...
The billion dollar question facing executives everywhere: How do I monetize my data? What small data or big data monetization strategies should I adopt? Which analytical investments and strategies really increase revenue? What pilots should I run to test data monetization ideas out? Preview Text: The billion dollar question facing...
about 7 hours ago
Summary: Using a fake http library to test logic two levels above HTTP is unnecessarily complex and hard to understand. Fake instead the layer directly below the logic you want to test and verify the low-level HTTP interaction separately...
Summary: Using a fake http library to test logic two levels above HTTP is unnecessarily complex and hard to understand. Fake instead the layer directly below the logic you want to test and verify the low-level HTTP interaction separately. In general: Create thin horizontal slices for unit testing, checking each slice separately with nicely focused and clear unit tests. Then create a...
about 7 hours ago
A few months ago Markus Gartner introduced me to the Testing Triangle, or Testing Pyramid. It looks like this: If you Google you will find a few slightly different version and some go by the name of Testing Pyramid. Preview ...
A few months ago Markus Gartner introduced me to the Testing Triangle, or Testing Pyramid. It looks like this: If you Google you will find a few slightly different version and some go by the name of Testing Pyramid. Preview Text: A few months ago Markus Gartner introduced me to the Testing Triangle, or Testing Pyramid. It looks like this... ...
about 8 hours ago
This review was a collaboration between myself, Ron Webb, and John Tesmer (@johngtesmer). Preview Text: One of the teams I work on recently started a test of Asana, a product touted as “…t...
This review was a collaboration between myself, Ron Webb, and John Tesmer (@johngtesmer). Preview Text: One of the teams I work on recently started a test of Asana, a product touted as “…the next big step in productivity”. We were looking for tools to help us manage the work we do on a regular basis. I’ll put our work in two categories: ...
about 8 hours ago
Developers and Production Support Analysts will, in their lifetime, spend a lot of time debugging, specially if the applicaiton is complex and they have no idea on what’s going on. I mentioned Production Support Analysts because th...
Developers and Production Support Analysts will, in their lifetime, spend a lot of time debugging, specially if the applicaiton is complex and they have no idea on what’s going on. I mentioned Production Support Analysts because they are the ones in most companies analyzing and fixing the defects in production environments. Developing the new features probably does not need you as much to debug as it needs for maintenance work, specially if you are trying to understand what’s going on and what is the flow. There are many occasions you don’t want to debug every steps. For example, if there is a for loop that loops for a 1000 times and that you know it fails on the 100th step or are intersted to see what’s going on somewhere around that, would it make sense to go through the 99 steps of debugging before hitting the 100th one? It certainly does not make sense to me unless you have a lot of time to hit those debug short cuts (I love those F5,F6,F7,F8 shortcut keys in Eclipse and IBM RAD by the way). So what can you do about it? Well the IDEs like Eclipse or IBM RAD offer you a way to set conditional breakpoints – the IDE will stop at the breakpoint you set only when certain conditons are met. The following is some piece of code with a for-loop. Let’s say we are interested to look at the value of the variable ‘random’ when the value of i is 100. package com.kushal.tools.published; /** * @author Kushal Paudyal * www.sanjaal.com/java * www.icodejava.com * * Written to be used in a tutorial to show how to do * conditional break points in eclipse */ public class ConditionalBreakPointEclipse { public static void main(String args[]) { doSomeStuff(); } /** Just outputting some random numbers. We would like to * add a conditional breakpoint when the value of i is 100. */ public static void doSomeStuff() { for (int i = 0; i The first step is to set a breakpoint where it says double random = i * Math.random(); Here is a screenshot for that. The second step is to right click on the breakpoint and choose ‘Breakpoint Properties…’. On the third step, enable the checkbox ‘Conditional’. The text area underneath the checkbox will be enabled and that is a place where you can put your conditions. In my case, I simply typed in i==100 because I wanted to stop when the value of i is 100. Now close the window and run the application in debug mode. You will see that after the value of i reaches 100 and when the statement where we put the breakpoint is reached, the IDE will stop for you to evaluate the variables at that point. Isn’t that neat? Once you hit F7, the program should continue without another stop at the breakpoint. Compare this to not having a conditional breakpoint. You would have to step through 99 times before it reached your desired value of i and to finish debugging the program, you would have to hit F7 for another 900 times (or just stop debugging)!! You are going to appreciate that IDEs provide this great feature.
about 18 hours ago
Originally Posted At Ovisual.com This is hilarious! the most stupid geeky jokes I ever heard! While learning for the SCJP exam I’ve found some of these Chuck Norris can make a class that is both abstract and final. Chuck Norris serializ...
Originally Posted At Ovisual.com This is hilarious! the most stupid geeky jokes I ever heard! While learning for the SCJP exam I’ve found some of these Chuck Norris can make a class that is both abstract and final. Chuck Norris serializes objects straight into human skulls. Chuck Norris doesn’t deploy web applications, he roundhouse kicks them into the server. Chuck Norris always uses his own design patterns, and his favorite is the Roundhouse Kick. Chuck Norris could use anything in java.util.* to kill you, including the javadocs. Chuck Norris can hit you so hard your web app will turn into a swing application, and a very bad swing application containing lots of icons of human skulls. Chuck Norris demonstrated the meaning of Float.POSITIVE_INFINITY by counting to it, twice. A synchronize doesn’t protect against Chuck Norris, if he wants the object, he takes it. Chuck Norris doesn’t use javac, he codes java by using a binary editor on the class files. Chuck Norris’ java code never needs to be optimized. His code is so fast that it broke the speed of light during a test run in Sun’s labs killing 37 people. When someone attempts to use one of Chuck Norris’ deprecated methods, they automatically get a roundhouse kick to the face at compile time. The java.lang package originally contained a ChuckNorris class, but it punched its way out the package during a design review and roundhouse kicked Bill Joy in the face. Chuck Norris never has a bug in his code, EVER! Chuck Norris doesn’t write code. He stares at a computer screen until he gets the progam he wants. Code runs faster when Chuck Norris watches it. Chuck Norris’ binary edited classes ignore Java bytecode verifier. Chuck Norris methods doesn’t catch exceptions becuase no one has the guts to throw any at them. Chuck Norris will cast a value to any type just by staring at it. If you get a ChuckNorrisException you’ll probably die. Chuck Norris is the only one who can use goto and const in Java. Chuck Norris can compile Java code in .NET Framework, obviously just by staring at it. Chuck dont need to catch an Exception because Java is afraid of the “flying tornado kick” at the moment it throws Chuck Norris’s code can roundhouse kick all other Java Objects’ privates Java visibility levels are public, default, protected, private and “protected by Chuck Norris”, don’t try to access a field with this last modifier!! Chuck Norris eats JavaBeans and Roundhouse Kicks JavaServer Faces! Chuck Norris can divide by 0! Garbage collector only runs on Chuck Norris code to collect the bodies. Chuck Norris code uses agressive heap natively Every single line code of Chuck Norris runs in real time. Even in a multi threading application. When a CPU load a Chuck Norris class file, it doubles the speed. Chuck Norris can execute 64bit lenght instructions in a 32bit CPU. Chuck Norris implements “Indestructible”. All the other creatures implements “Killable”. Chuck Norris only program Java web applications to get a .WAR in the end. Chuck Norris once roundhouse kicked a Java class very hard. The result is known as a inner class. Chuck Norris can do multiple inheritance in Java. JVM never throws exceptions to Chuck Norris, not anymore. 753 killed Sun engineers is enough. Chuck Norris doesn’t need unit tests because his code always work. ALWAYS. Chuck Norris extends God. Chuck Norris workstation has so memory and it’s so powerful that he could run all java applications in the world and get 2% of resources usage. Chuck Norris codes generics since 1.3. Chuck Norris’ classes can’t be decompiled… don’t bother trying. Originally posted 2009-05-17 11:13:56.
about 18 hours ago
In this month's newsletter we feature tutorials that will help you understand the basics of the Eclipse Modeling Framework (EMF), and show you how get started with the EMF Client Platform and the EMFStore.
In this month's newsletter we feature tutorials that will help you understand the basics of the Eclipse Modeling Framework (EMF), and show you how get started with the EMF Client Platform and the EMFStore.
about 21 hours ago