background preloader

Gson - A Java library to convert JSON to Java objects and vice-versa

Gson - A Java library to convert JSON to Java objects and vice-versa
Gson is a Java library that can be used to convert Java Objects into their JSON representation. It can also be used to convert a JSON string to an equivalent Java object. Gson can work with arbitrary Java objects including pre-existing objects that you do not have source-code of. There are a few open-source projects that can convert Java objects to JSON. However, most of them require that you place Java annotations in your classes; something that you can not do if you do not have access to the source-code. Gson Goals Provide simple toJson() and fromJson() methods to convert Java objects to JSON and vice-versa Allow pre-existing unmodifiable objects to be converted to and from JSON Extensive support of Java Generics Allow custom representations for objects Support arbitrarily complex objects (with deep inheritance hierarchies and extensive use of generic types) Gson Documentation Please use the google-gson Google Group to discuss Gson, or to post questions. Gson Tutorial by StudyTrails Related:  Libraries

android-query - Simpler Coding for Android Latest: Android-Query (AQuery) is a light-weight library for doing asynchronous tasks and manipulating UI elements in Android. Our goal is to make Android coding simpler, easier, and more fun! Why AQuery? Less Code AQuery allows the developer to be more expressive and write-less/do-more. Compare the length of these pieces of code that does the same thing. Before AQuery: public void renderContent(Content content, View view) { ImageView tbView = (ImageView) view.findViewById(; if(tbView ! With AQuery: public void renderContent(Content content, View view) { AQuery aq = new AQuery(view);, "someMethod");;, content.getCreate())).visible();; } AJAX Callback See Ajax Doc JSON Example Features:

Apache Velocity Site - The Apache Velocity Project Page Speed SDK released; HAR to Page Speed tool created Monday, May 3rd, 2010 Releasing the Page Speed SDK (all open source) is one step closer to having a common performance metric across all web development tools and environments. Imagine being able to get the same performance analysis results from Firebug, Web Inspector, HttpWatch, Fiddler, Keynote, and Gomez. This will help us develop a common vocabulary and bring more consistency and quality to the field of web performance optimization. This is a quote from Steve on the new HAR to Page Speed work that he has built on top of other work: The importance of an industry standard HTTP archive format is huge. Once you upload a HAR file you get page speed info and more: For a full example, check out a archive.

A Simple whois program in Java The very simple example that follows opens a connection to a "whois" port on the InterNIC server, sends the command-line argument down the socket, and then prints the data that is returned. InterNIC will try to look up the argument as a registered Internet domain name, then send back the IP address and contact information for that site. Try different domain names and see how the results change. This tutorial is an extract from the "The Complete Reference Part 2 by Herbert Schildt". Java Home | All Java Tutorials | Latest Java Tutorials Be the first one to add a comment

Android Scripts « udinic As a busylazy developer, I always try to automate repeating routines. Those sequence of actions are getting annoying after a few times and always make me gasp. That’s why some of my time is dedicated to writing small scripts to make my life easier, and the development process faster and anger-free. ADB Batch Scripts ADB – Android Debug Bridge, is a very powerful tool. Most of my repeated ADB commands are for DB access. First, I request to start ADB with root access, not applicable on stock ROMs (as least not easily), and pulling out the DB file to a temp location. If we want to modify the DB on the device, I wrote a small script to receive any SQL statement, and run it directly on a DB inside the device: Very simple. Another common thing I do, is executing specific services and activities, great help for my debugging life. I can pass extras, action and even activity attributes as clear-top, no-animation and more. Python Scripts 1. Here’s an example output: That’s all for now. Like this:

HttpClient - HttpClient Home End of life The Commons HttpClient project is now end of life, and is no longer being developed. It has been replaced by the Apache HttpComponents project in its HttpClient and HttpCore modules, which offer better performance and more flexibility. Introduction The Hyper-Text Transfer Protocol (HTTP) is perhaps the most significant protocol used on the Internet today. Although the package provides basic functionality for accessing resources via HTTP, it doesn't provide the full flexibility or functionality needed by many applications. Designed for extension while providing robust support for the base HTTP protocol, the HttpClient component may be of interest to anyone building HTTP-aware client applications such as web browsers, web service clients, or systems that leverage or extend the HTTP protocol for distributed communication. There are many projects that use HttpClient to provide the core HTTP functionality. History

Client-Side Profiling with Selenium 2 - The Automated Tester Tue 23 Nov 2010 Last year David Henderson and I gave a talk at GTAC about how we built a framework to capture the client-side performance of a page using Selenium and YSlow. It was a really interesting project that we did and it got my hooked on Client-side performance metrics. Client-side performance is really important, so much so that venture capitalists look at this before and after they invest in a startup. This year I was chatting to Patrick Lightbody, from BrowserMob, and he was telling me how cool it would be to capture the network traffic and then in a separate task run PageSpeed or YSlow. So this is great that it records but now that we have the data we need to run PageSpeed or YSlow. The code that I created is available on GitHub. ShareThisArea: blog

Arul's IP Address Tracking Program - Track or trace any IP address and find the ISP that owns it This program performs an IP address lookup and finds the ISP (Internet Service Provider) and country of origin.NOTE: The location displayed below is that of your ISP's, and may or may not be the actual geographical location of the person who owns that IP address. What is Arul's IP Address Tracking Program used for? You get abusive mails from somebody and want to know where it has come from! Someone mails you claiming to be from one place and you suspect that he or she is from another place You just want to track an email you received You want to trace an IP address or do an IP address lookup out of curiosity How to find the IP address in an email The first step to tracking any email is to find the IP address of the sender. Other utilities

SimonVT/android-menudrawer SLF4J