POST request from a Splunk app using the @splunk/splunk-utils package

This snippet shows how to use the handleError and handleResponse functions from the splunk-utils package to send a POST request from a Splunk app:

November 8, 2021 · 1 min · admin

Using Disqus without any plugins

At TurnGeek we recently had the task to include Disqus (which is great by the way) into our site, so readers of our books can leave comments for each chapter. For a couple of reasons we couldn’t use their Wordpress plugin although the site is running on Wordpress. If you’re running in the same issue or you just don’t want the dependency of another plugin, you can paste the following snippet in your Wordpress posts (by the way, this also works with non WordPress sites):...

October 17, 2015 · 1 min · admin

Cloud Tutorial - Java EE

If you know standard Java and want to quickly learn something more about the core components of the Java Enterprise Edition (Servlets, JSP, JSF, CDI and EJB), you should have a look at this new tutorial I have written with Martin called Cloud Tutorial - Java EE. We call it a cloud tutorial, because you learn everything step by step using an Online IDE. That way you don’t have to struggle with any software configuration and you can directly start learning....

August 22, 2015 · 1 min · admin

Proxy Your Requests With Grunt

Probably you’re already using grunt to serve your local frontend code. Everything is fine, but if you’re developing your backend with something different than JavaScript (Being a Java developer I heard that might happen), you will have problems accessing this backend while running grunt server. With grunt-connect-proxy there exists a grunt module to help you out. It basically delegates requests that match a given URL to a different backend of your choice....

March 13, 2015 · 2 min · admin

Restart a ExtJS 4.2 Application by recreating the Viewport

If you are debugging your ExtJS application, it could be helpful from time to time to restart the application. Sure, simply pressing F5 usually does the trick, but it might happen that you want to keep the state of the application and just restart the viewport. This is simply done by typing the following lines in your favorite JavaScript console: 1. Remove existing viewport with a ComponentQuery Ext.ComponentQuery.query('viewport')[0].removeAll(); 2. Recreate viewport, here the viewport's class name is _myApp....

August 22, 2014 · 1 min · admin