MAX BUILD SPEED
  • Home
  • About
Sign in Subscribe

Max Rohde

Max Rohde
Insert Text at Caret Position in Summernote Editor for Bootstrap

bootstrap

Insert Text at Caret Position in Summernote Editor for Bootstrap

Problem Using the very useful Summernote Editor component for Bootstrap, you would like to insert some text at the current caret position programmatically. Solution The Summernote API does not provide any dedicated methods for inserting text. However, that's not a problem since we can use the JQuery/native

By Max Rohde 28 Mar 2014
CoffeeScript Fat Arrow (=>) explained

CoffeeScript Fat Arrow (=>) explained

Anyone who has worked with JavaScript for anything but a very short time will have come across the problem that the meaning of 'this' is often ambiguous at best. CoffeeScript attempts to mitigate this problem somewhat by introducing the Fat Arrow operator (=>). This operator can be used

By Max Rohde 20 Mar 2014
Embed HTML Code in JavaScript File

Embed HTML Code in JavaScript File

Problem You would like to include HTML code as a String in a JavaScript file. Solution Firstly, load the HTML code into a JavaScript variable (e.g. by using jQuery.ajax()). $.ajax({url: 'http://mydomain.com/htmlfile.html'}) .done(function(html) { Then apply the following two simple regular

By Max Rohde 31 Jan 2014
The Dangers of the OK Plateau and How to Overcome Them

daniel-coyle

The Dangers of the OK Plateau and How to Overcome Them

I found the following wonderful quote in Daniel Goleman's Focus: The Hidden Driver of Excellence via Brain Pickings: Amateurs are content at some point to let their efforts become bottom-up operations. After about fifty hours of training — whether in skiing or driving — people get to that “good-enough” performance

By Max Rohde 27 Jan 2014
GWT Exclude Package From Source Path

google-web-toolkit

GWT Exclude Package From Source Path

Problem The Google Web Toolkit Java to JavaScript transpiler is a powerful tool to convert Java source code into JavaScript files. Unfortunately, not all Java code can be transpiled into JavaScript code by GWT. Sometimes, a project contains a mix of Java code that can be converted into JavaScript and

By Max Rohde 22 Jan 2014
JavaScript and JSON Essentials (Packt) Review

json

JavaScript and JSON Essentials (Packt) Review

'JavaScript and JSON Essentials' by Packt publishing is a hands-on guide to developing JavaScript/PHP based web applications while using the JSON data format. This review of the book contains a quick summary of the contents as well as points to consider if you think of purchasing the

By Max Rohde 18 Jan 2014
CoffeeKup: Add Class to Elements

CoffeeKup: Add Class to Elements

CoffeeKup is a very succinct and flexible templating engine to define HTML documents in a less verbose manner. It is based on CoffeeScript. Unfortunately, the documentation of CoffeeKup I could find was not very clear on how to perform one of the most basic tasks in creating HTML documents: How

By Max Rohde 14 Jan 2014
Copy EntrySet of a HashMap in Java

Copy EntrySet of a HashMap in Java

All the key-value pairs of a Map in Java can be accessed through the method .entrySet() on the Map interface. Sometimes it might be required to create a copy of the resulting list. A straightforward approach would be to utilize the constructor of the ArrayList class, which accepts a list

By Max Rohde 14 Jan 2014
Render HTML from Object with CoffeeKup

Render HTML from Object with CoffeeKup

CoffeeKup allows to render HTML from multiple sources: * A String containing valid CoffeeScript code * A JavaScript/CoffeeScript object arranged according to CoffeeKup rules To render HTML from a String is quite straightforward and documented on the CoffeeeScript reference: you can use the methods .compile and .render as documented there. However,

By Max Rohde 14 Jan 2014
Key Shortcuts for Google Chrome

Key Shortcuts for Google Chrome

It is no secret that in order to be more productive in software development, it is good to know the keyboard shortcuts of the IDE or editor of your choice. Using the keyboard is an inevitable part of software development and many other tasks we do at a computer, the

By Max Rohde 12 Jan 2014
Logging Mouse Events in Linux

Logging Mouse Events in Linux

Problem You would like to obtain statistics about how often the mouse is used on a Linux machine. Solution Linux logs all activity of input devices (such as mouse and keyboard) into various device files under /dev/input/*. Mouse activities, in particular, are logged in /dev/input/mice (this logs

By Max Rohde 30 Dec 2013
GWT Object Serialization with gwt-storage

gwt

GWT Object Serialization with gwt-storage

Problem The built in Java Serialization and various serialization frameworks available for Java allow to serialize Java objects conveniently into binary or textual representations. Unfortunately, most of these frameworks are not available for Google Web Toolkit client applications. There is no easily available built in solution for serializing GWT objects

By Max Rohde 27 Nov 2013
See all
MAX BUILD SPEED

MAX BUILD SPEED

be calm & code.

MAX BUILD SPEED
  • Sign up
Powered by Ghost

MAX BUILD SPEED

be calm & code.