31 Jan

5 Coding Hacks to Reduce GC Overhead

In this post we’ll look at five ways in roomates efficient coding we can use to help our garbage collector CPU spend less time allocating and freeing memory, and reduce GC overhead. Often Long GCs can lead to our code being stopped while memory is reclaimed (AKA “stop the world”). Duke_GCPost

Some background

The GC is built to handle large amounts of allocations of short-lived objects (think of something like rendering a web page, where most of the objects allocated Become obsolete once the page is served).

The GC does this using what’s called a “young generation” – a heap segment where new objects are allocated. Each object has an “age” (placed in the object’s header bits) defines how many roomates collections it has “survived” without being reclaimed. Once a certain age is reached, the object is copied into another section in the heap called a “survivor” or “old” generation.

The process, while efficient, still comes at a cost. Being Able to reduce the number of temporary allocations can really help us increase of throughput, especially in high-scale applications.

Below are five ways everyday we can write code that is more memory efficient, without having to spend a lot of time on it, or reducing code readability.

1. Avoid implicit Strings

Strings are an integral part of almost every structure of data we manage. Being much heavier than other primitive values, they have a much stronger impact on memory usage.

One of the most important things to note is that Strings are immutable. They can not be modified after allocation. Operators such as “+” for concatenation actually allocate a new String containing the contents of the strings being joined. What’s worse, is there’s an implicit StringBuilder object that is allocated to actually do the work of combining them.

For example –

1
a = a + b; / / a and b are Strings
The compiler generates code comparable behind the scenes:

1
StringBuilder temp = new StringBuilder (a).
2
temp.append (b);
3
a = temp.toString () / / a new string is allocated here.
4
/ / The previous “a” is now garbage.
But it gets worse.

Let’s look at this example –

1
String result = foo () + arg;
2
result + = boo ();
3
System.out.println (“result =” + result);
In this example we have 3 StringBuilders allocated in the background – one for each plus operation, and two additional Strings – one to hold the result of the second assignment and another to hold the string passed into the print method. That’s 5 additional objects in what would otherwise Appear to be a pretty trivial statement.

Think about what happens in real-world scenarios such as generating code a web page, working with XML or reading text from a file. Within a nested loop structures, you could be looking at Hundreds or Thousands of objects that are implicitly allocated. While the VM has Mechanisms to deal with this, it comes at a cost – one paid by your users.

The solution: One way of reducing this is being proactive with StringBuilder allocations. The example below Achieves the same result as the code above while allocating only one StringBuilder and one string to hold the final result, instead of the original five objects.

1
StringBuilder value = new StringBuilder (“result =”);
2
value.append (foo ()). append (arg). append (boo ());
3
System.out.println (value);
By being mindful of the way Strings are implicitly allocated and StringBuilders you can materially reduce the amount of short-term allocations in high-scale code locations.

2. List Plan capacities

Dynamic collections such as ArrayLists are among the most basic dynamic structures to hold the data length. ArrayLists and other collections such as HashMaps and implemented a Treemaps are using the underlying Object [] arrays. Like Strings (Themselves wrappers over char [] arrays), arrays are also immutable. Becomes The obvious question then – how can we add / put items in their collections if the underlying array’s size is immutable? The answer is obvious as well – by allocating more arrays.

Let’s look at this example –

1
List <Item> <Item> items = new ArrayList ();
2

3
for (int i = 0; i <len; i + +)
4
{
5
Item item = readNextItem ();
6
items.add (item);
7
}
The value of len Determines the ultimate length of items once the loop finishes. This value, however, is unknown to the constructor of the ArrayList roomates allocates a new Object array with a default size. Whenever the internal capacity of the array is exceeded, it’s replaced with a new array of sufficient length, making the previous array of garbage.

If you’re executing the loop Welcome to Thunderbird times you may be forcing a new array to be allocated and a previous one to be collected multiple times. For code running in a high-scale environment, these allocations and deallocations are all deducted from your machine’s CPU cycles.
%0

27 Jan

Lenovo ThinkPad T440s, Ultrabook 14 Inci Full HD Artikel Baru CPU Intel Haswell & baterei 3-Cell Ganda

The presence of an Intel Core 4th generation Intel Haswell known as it turns out has brought blessing for Lenovo to immediately roll out the latest models of ultrabook and ThinkPad T440S Lenovo ThinkPad claimed to be the first to adopt the power of the processor.

Unlike most existing ThinkPad notebooks, Lenovo ThinkPad T440S This is more aimed at business users. Especially with premium features that it has, making super thin and light laptop is equipped with resilient chasing bandage made ​​of carbon fiber and magnesium, water resistant keyboard, touchpad with support for 5-point click and gesture, and a pointer nub in the middle of the keyboard , as well as dual battery setup that allows you menggonta-replace (remove plug) one batereinya without first turning off the existing system.

Lenovo ThinkPad T440s is itself supplied by feature 14-inch LCD screen with a resolution of 1600 × 900 option pixels or 1920 × 1080 pixels (HD + / FHD). As for users who want greater convenience in operation there, Lenovo also provides a choice of touch screen and support for NFC wireless technology.

Not only that, the article is a laptop with a 0.83-inch thick and weighs 1.5 kg has also been equipped by Mini DisplayPort and VGA, 3 USB 3.0 ports, 4-in-1 SD card reader, combo jack, and a smart card reader , HD anti-noise microphone dual stereo speakers with support Dolby ® HomeTheater ® v4 and two standard 3-cell battery that could have staying power usage up to 6 hours.

While about availability and price, unfortunately not yet known specific info related to it so far.

24 Jan

Google Maps Can Detect Traffic Accidents

Jakarta – Google has just updated the Google Maps application with new features. This feature comes reports of traffic accidents and the number of ways to access the various facilities.
Google Maps with accident information can be used on Android and iOS based devices. Overall, this application displays maps and their reliable navigation and traffic information.
Warning about the accident will appear on the map showing traffic flow and road construction. This information is also recommended that these options are not stuck in traffic around the accident site.
Last June, Google bought Waze, the creator of popular apps that inform traffic flow. But Google has not confirmed whether Waze’s data associated with this application or not.
The new application also allows users to find out if the place you want to target viable or not. Features »Explore” display greeting cards enjoy a meal and good night.
Through these features, users can be helped with a variety of information about the place in detail. There is also a rating system that allows users to find somewhere assessment.
Google Maps with navigation devices had previously been released for the Android and iOS platform. Product Manager for Google Maps, Nobuhiro Makida, said the superior feature of this application is the My Location, search, and referrals.
“Through My Location, users can know of its existence through the map, even if the device does not have GPS,” said Makida.
Next is a local search to find a business category. While referrals are the best route to a destination, even if the user is driving, walking, or taking public transportation.
Features can indicate the distance and direction of travel time to get to the destination. The Google Maps Navigation can be run via voice commands.

24 Jan

Safari and Chrome Still Leads Mobile Web Browser

Jakarta – Around 80 percent of the world population has a mobile phone. The number of mobile phones around the world estimated to be about 5 billion units, with 1.08 billion units of which include smart phones. Thus, it’s no wonder when browsing on the Internet today is mostly done through mobile phones.

Most of the smart phone owners, as quoted from the go-globe.com, prefer to use a standard mobile web browser, aka the phones default browser. They reason, the default web browser is definitely the best for their phones.

There is also the thought that they do not need to change the web browser because it did not want to be bothered by trivial matters, such as the need to download first and then run the application.

Another reason put forward is that they feel no need to update the web browse, as is done on a notebook or desktop computer. Therefore, updating the application is much more important than replacing the web browser on the mobile device.

For desktop and notebook computers, the web browser is the most widely used Google Chrome, Firefox, Internet Explorer, Opera, and Safari. Competition to be the most popular frequently occur between Microsoft’s Internet Explorer and Google Chrome.

In mobile devices, such as smart mobile phones and tablet computers, maps of different strength. Which became the market share leader for the mobile web browser is Apple’s Safari and Google’s Chrome browser fib.

However, in recent months, Safari increasingly dominant. According to the output data from Net Applications, Safari controlled 61.79 percent market share for web traffic in March. In fact, months before Apple’s browser only won 55.41 percent market share.

In general, mobile web browsers can be distinguished from ability, such as opening a different site, doing page zoom, and make a keyboard shortcut. However, there is also an optimal mobile web browsers on mobile devices use only.

In addition, there are several mobile devices also can not offer a lot of choice what mobile web browsers can be used. One of the devices is a flexible mobile devices with Windows Mobile operating system.

In Indonesia, people always want a high-speed mobile web browser.

“We provide the connectivity features with high compression, especially on a busy network. Compression is also advantageous because the users were able to save the battery, “said Communications Manager Opera Indonesia, Agnes Agastia, two weeks ago.

No less aggressive in offering the experience of using a mobile web browser is Google. According to Google’s Head of Communications Indonesia Vishnu K. Mahmud, Google will continue to focus on developing a modern browser Chrome that will provide the best experience for its users.

Mobile web browser is best for your device, of course depending on the need and type of device used. Therefore, not all mobile devices compatible with the existing web browser.

23 Jan

Keyboard Applications in Cloud Data Store

Jakarta – Manufacturers keyboard application for tablet computers and smart phones, SwiftKey, SwiftKey has launched a beta version of Cloud.
SwiftKey Keyboard is an Android app that can learn the customs and habits of the user typing text to produce a more predictable.
SwiftKey on Cloud services predecessors, all languages ​​stored on the device. Means, if a user loses his phone, having to learn the application SwiftKey typing habits again. With this new service, users can backup files in the cloud and sync with various devices.
SwiftKey Cloud will also integrate the analysis of data from Twitter and other sources to find a new trending topic. Then bring the words that relate to the topic being the trend for users.
Enterprise application that promises enhanced personal words and phrases as well as integrating predictive Gmail and Facebook. This application can be downloaded free.

21 Jan

Microsoft still has ‘a way to go’ in determining its market for Windows 8, says Network Rail

Microsoft has “a bit of a way to go” in determining which market it is targeting for Windows 8, even though the operating system has now been on the market for over a year, Network Rail’s head of information systems strategy Simon Goodman has told Computing.

Goodman praised Microsoft’s early entries into hybrid-led technology via Windows 8, saying there was definitely “a need” for hybrid notebook-tablets, and that this was something Network Rail had “explored internally”.

“We’ve already looked at Surface-based devices,” confirmed Goodman.

“It gives you a combination of nice tablet looks and feel, a lightweight device, but it’s got a bit of grunt behind it, so if you need to do something a little bit more hefty from an applications perspective, you’ve got the tools and capabilities to do that,” he said.

But Goodman described the move from Windows 7 to 8, with its added Modern apps interface, as “a huge jump” for Microsoft, which could affect ease of adoption for some of Network Rail’s workers.

“If you’re a traditional desktop user, it’s quite difficult to get to the look and feel of how that works, and how to navigate around it,” said Goodman.

But Goodman maintained that, from a tablet perspective, “it’s not that hard to work out where you go, and everything else”.

However, Goodman is going to hold fire before rolling out any Windows 8 systems en masse at Network Rail.

“For me, it’s something we will look to embrace where it makes sense to do so, but I still think Microsoft has got a bit of a way to go yet to determine exactly what market it wants to play into,” said Goodman.

Look out for the full-length video interview with Network Rail’s Simon Goodman on Computing very soon.

21 Jan

Google Chromecast Announced, Change Ordinary So Smart TV

In addition to announcing second-generation Nexus 7 and Android 4.3 Jelly Bean, Google today also announced the existence of which is a smart Chromecast shaped dongle instead Nexus Q. Chromecast shaped stick that utilizes an HDMI port on the television to run Chrome OS version is simple and will integrate several Google services such as YouTube, Google Play Music, Play Video, and Google Chrome both applications in mobile, tablet or laptop.
Chromecast works like a second screen. If someone such as looking at a YouTube video on your phone, laptop, or tablet and then touch the button Chromecast available in the Chrome browser, it is a television that has been installed sticks Chromecast will play the video as it is displayed on the phone screen. In addition Chromecast can also accept input from a variety of devices that will be played simultaneously turns, for example, from cell phones and play video from laptop playing a movie. Besides Google Play Music and Video, Netflix app (in the U.S.) are also supported by this Chromecast.
Chromecast control can be done from the phone, for example, adjust the volume or change the video played. Chromecast also allows playback of video ‘removed’ from the phone to the tablet and will be passed from the last time the video is played.
Google Chromecast also able to play music like a DJ. This service can access Google Play Music and Pandora. In addition it can also display tabs Chromecast Chrome on television to view photos or videos on Google+ or Vimeo for example. Chromecast also create opportunities through Google Cast application development SDK for Android, iOS and Chrome. To run Chromecast, the television must have an HDMI port plugs plus a blank as a resource for Chromecast mealui microUSB.
Chromecast can be purchased at a price of just USD 35 and is now becoming available in the United States. In addition Chromecast can also be purchased from the Play Store, Amazon.com and BestBuy.com. Currently no information when this gadget will be available in Indonesia.

20 Jan

Upland Software Hires Brian Wilson as Vice President of Sales

AUSTIN, Texas, July 11, 2013 /PRNewswire/ — Upland Software, the world’s largest cloud provider of enterprise software for project, portfolio, and work management, today announced that Brian Wilson has joined the company as Vice President of Sales. In this role, he will direct Upland’s global field and inside sales force in aligning clients’ business goals with Upland’s family of best-of-breed applications.

Brian comes to Upland with over twelve years of enterprise technology sales experience. Most recently, he was a Vice President of Sales at Innotas, a cloud provider of project and portfolio management (PPM) software.

“Brian’s experience in the cloud PPM space, proven sales management track record, and focus on a consultative, customer-centric approach will be tremendous assets in helping us achieve our organic growth goals,” commented Ludwig Melik, President of Upland Software. “We are thrilled to have him on the team. One of the exciting aspects of the Upland vision is that it allows us to attract top talent, drawn by the opportunities and challenges of creating the first cloud project, portfolio, and work management provider with real scale.”

Upland’s strategy is to build a family of cloud products that address a comprehensive range of PPM needs from strategic planning to work execution, whether in IT or across the business, managing projects or ad hoc work, or focused on “top-down” portfolio analysis or “bottom-up” productivity. Cloud software has transformed the market with its rapid speed-to-value, scalability, low total cost of ownership, and reduced financial risk, as well as its inherent ability to deliver a real-time data integration and collaboration platform to distributed workforces on a local or global scale. Bringing together strong, established cloud products not only creates economies of scale, but also opportunities to leverage talent, product innovation, and best practices across the Upland family of applications.

“What drew me to Upland are the convictions we share about the transformative potential of project, portfolio, and work management as a business discipline; the power of a cloud delivery model; and the integral role of the sales process in laying the foundations for long-term customer success,” Brian Wilson explained.  “I am also excited to work with such a seasoned, talented sales team. It’s great to be on board.”

Prior to Innotas, Brian held various sales and management positions at Seagate Technology and Fujitsu Computer Products. He holds a Bachelor’s degree from the University of California, Davis in Communication with a minor in Managerial Economics.

About Upland Software

Upland is the world’s largest cloud provider of enterprise software for project, portfolio and work management. Upland is the only cloud software provider that offers a comprehensive family of applications that enable organizations to align their goals, projects and programs, optimize their resource utilization and workflows, and empower teams to collaborate and work effectively.

20 Jan

New Release, New Nexus 7 Already Earn 2 Update Software

Having announced a few days ago, 7 of the Google Nexus tablet could have ordered via the Play Store. Opening the pre-order was first announced via Twitter. Google Play Store opened bookings for the new Nexus 7 16GB and 32GB. Both are offered at a price of USD 229 and USD 269.
Almost simultaneously with the opening of pre-orders, it also gives Google Nexus 7, this new software update. There are 2 updates are given, with the first update will be automatically downloaded to the tablet when connected to the Internet for the first time during initial setup.
As for the second update will be downloaded automatically when the tablet is used several times. The update notification will appear when it’s finished downloading and is ready to be installed. So make sure that the type of connection used unlimited when activating new Nexus 7 so as not to run out of quota.

19 Jan

Facebook’s Balancing Act: The Good, the Bad, and the Ugly

The good news: Facebook (NASDAQ: FB  ) turned fabulously profitable in the just-reported second quarter thanks to a redesigned ad flow on mobile Facebook apps. Revenues jumped 23% from the first quarter to the second. Last year, the same comparison yielded just an 11% seasonal gain. The year-ago quarter’s net loss turned into a tidy profit.

In response, share prices jumped more than 30% overnight and sit very close to all-time highs that were set during the stock’s IPO.

The bad news: The ad assault is interfering with the user experience. A fresh survey (free registration required) from the American Customer Satisfaction Index shows Facebook dead last among online media sites in terms of user satisfaction. “Facebook users find the numerous changes to the site’s interface taxing,” says the ACSI. Twenty-seven percent of users surveyed complained that ads are ruining their Facebook experience these days.

The ugly news: The good news may not last very long. Facebook had better dial back the ad blitz if it wants those disgruntled users to stick around.

It’s a high-wire balancing act between monetization and user satisfaction. Lean too far in one direction, and you won’t make any money from those billions of page views. Err too far in the other direction, and those profitable page views will melt away as unhappy users find greener pastures.

Don’t think it couldn’t happen. Facebook is not too big to fail. Unless the company strikes that crucial balance before it’s too late, we could very well see another mass exodus from one leading social network to another.

Facebook itself killed MySpace by launching a better service in the same genre. Before that, MySpace trampled all over social pioneer Friendster in much the same way.

And there are Facebook alternatives waiting to crush the current king at the first opportunity, believe it or not.

Chief among these is Google (NASDAQ: GOOG  ) and its Google+ service, which benefits from tight integration with the world’s most popular search engine as well as with leading video site YouTube.

Twitter sings a somewhat different tune but can fill many of the functions of a Facebook account. LinkedIn (NYSE: LNKD  ) is basically Facebook for corporate users and could very well expand into the consumer side of things if it wanted to.

All of these alternatives offer fewer ads and a cleaner experience than Facebook. LinkedIn ties with Facebook at the least satisfied end of the ACSI survey; everyone else runs miles ahead. Yes, even the much-maligned Google+ “ghost town.” And even LinkedIn reports fewer ad-taint complaints than Facebook.

That’s why I’d take this week’s Facebook share-price pop as a temporary boost, and not as a sustainable clean bill of health. The service currently leans far too heavy on the monetization side of the fence and runs a very real risk of finding out that the next era of social networking doesn’t include much Facebooking.

So my bearish CAPScall on Facebook stays in place until Mark Zuckerberg and company adjust their strategy again. If you can’t keep your users happy, the money will very quickly cease to matter.

One his incredible tech stock is growing twice as fast as Google and Facebook, and more than three times as fast as Amazon.com and Apple. Watch our jaw-dropping investor alert video today to find out why The Motley Fool’s chief technology officer is putting $117,238 of his own money on the table, and why he’s so confident this will be a huge winner in 2013 and beyond. Just click here to watch!