This post should help a lot of people starting in jQuery and javascript. For ease of reference, I have borrowed code present in the ajax jquery docs. The standard way in jQuery to make an ajax call is by using, $.ajax({ type: 'POST', url: url, data: data, success: success, dataType: dataType }); This gives you an infinite number of tweaks ...
CData tags are usually swallowed up by an XSLT transformation. If they are important to your output document, you can use the following method to include CData tags. <xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text> <!-- text between CData tags here --> <xsl:text disable-output-escaping="yes">]]></xsl:text> The output will look like: <![CDATA[ ]]> ...
Leveraging Big Data has become a commodity for most IT departments. It’s like the mobile phone. You can’t remember the times when you couldn’t just call someone from your mobile, no matter where you are in the world, can you? Similarly, IT folks can’t remember the days when files were too big to summarize, or grep, or even just store. ...
I thought of writing this post after reading that SL police decided to offer 1 million rupees (~9500 USD) to anyone who offered a clue about the infamous robbery of the Colombo museum. After reading this I thought what an awesome use it would be, if we could use big data analysis to solve crimes in this country. Let’s map ...
You will first need to get a reference to the OSGI HTTP Service. You can do this through a declarative service. This post will concentrate on steps after getting a reference to the HTTP Service. Note: The complete class for this post is located here When registering a servlet through the OSGI HTTP Service, it provides you with an option ...
Big data has spawned a set of tools that deliver results beyond the buzz. It has started delivering real insights for companies, which result in more effective decisions. When middleware natively supports big data, big data becomes more than just another option. It becomes the default. Let’s examine this idea: Big Data Storage Whenever you think of storage, (almost) everyone ...
The screenshots above show the final result of a Service statistics monitoring use case. Data across many servers got published to BAM, had to be analyzed and then presented on the dashboard you see above. Nothing better than a cool dashboard to make sense of all that data It has been an enduring journey with an abundance of learning curves that ...
I wanted to write this post after learning so much from running FindBugs and Idea code inspections on my code over a period of time. There was once a simple code I wrote after seeing some performance gaps, to introduce some local caching. So I used a simple HashMap implementation, which really couldn’t go wrong. Or so I thought. We ...
If you are working with generating an html page through xslt, you might be interested in loading some scripts just when the page is browsed from Internet Explorer (IE). You can use the following XSLT section to include a IE specific script. In this case it will be for IE versions less than 9. <xsl:text disable-output-escaping="yes"><!--[if lt IE 9]><script language="javascript" ...
Curl is one of the best utilities for HTTP based testing. So, naturally, it’s a great for REST based services which are built on top of HTTP. If you want to do HTTPS testing but not validate the certificate use -k For basic auth, use --user username:password For a url form encoded post use -d "foo=bar". If you just want ...
I will be doing an introductory webinar on the recently released WSO2 BAM 2.0.0 at the following times on Wednesday, 19th September, 2012: 09:00 AM – 10:00 AM (PDT) 10:00 AM – 11:00 AM (GMT) In that I will be two quick demos based on, Defining custom KPIs and Analytics based on data from an iPhone App Monitoring the WSO2 ...
If you are trying to deploy a CXF JAX-RS service inside an OSGI container, you can be haunted by the exception given below. But, surprisingly, the fix could be pretty simple 2 step process. Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.sun.ws.rs.ext.RuntimeDelegateImpl at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:122) at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:91) at javax.ws.rs.core.MediaType.<clinit>(MediaType.java:44) .
If you are migrating between Idea versions, you may want to migrate your code styles as well. Let’s assume you want to migrate a code style called foo-codestyle.xml. In Idea 9.x versions this is present at ~/.IntelliJIdea90/config/codestyles/foo-codestyle.xml Now, open up Idea 11, and go to Settings->Code Style, click on Manage and create a code style named foo-codestyle. Now close Idea, and ...
I’m extremely proud to be presenting at WSO2Con. I’m proud, not only because of the opportunity I have to present, but more so, because I’m part of something much bigger. I’m part of something that represents a rising of a tiny island nation through open source tech. To date, Sri
Introduction Runtime governance can be defined as the process which allows you to control and manage parameters in your runtime execution environment. A runtime execution environment can vary from a single web server that hosts a simple web page, to gigantic deployments that can span to 1000+ servers. This means the complexity of implementing runtime governance can depend heavily on ...
The Kindle Fire is said to ‘disrupt’ the tablet market. I certainly agree after looking at the very attractive price tag of $199. It seems like a super deal for someone who wants a tablet experience but hates to spend too much. But this is all so attractive only if you live in the US. Yes, it’s only sold in ...
This should work on other Mountain Lion versions as well, but I have not tested it. First of all, let’s install a set of dependencies required for the building process. The easiest way (at least for me) was to install them through macports. Note: You need to install Xcode and the Xcode command lilne tools for macports to work. Xcode ...
XML Parsing Error: no element found Location: moz-nullprincipal:{e04285c3-86a1-f146-b683-55bb667191ea} Line Number 1, Column 1: ^ If you are getting the above error in firebug, you are most probably making a cross browser request that is not allowed and not having invalid XML in your response. Cross browser requests are not allowed, unless you use jsonp or script as the data type. ...
If you are facing an exception like the one at [0], then the problem might be hard to figure out. Because, if you look at the Queues in the MQ explorer, the queu named FOOQ will be there. So, the missing part here is the JMS binding of that queue. This takes 10 minutes to solve. Right click on the ...
WTH is BAM? To start off, let us understand what exactly is meant by a business activity. It’s important to understand that Business Activity Monitoring (BAM) was coined with respect to monitoring business activities run in BPM in a SOA deployment. But soon, it was understood, that not every business activity went through BPM software. A business activity can either ...