MAX BUILD SPEED
  • Home
  • About
Sign in Subscribe

Max Rohde

Max Rohde
Get the Exact Position and Size of a Window in Windows

Get the Exact Position and Size of a Window in Windows

Problem You would like to know the exact pixel position and size of a window in Microsoft Windows. Solution Use the very useful utility Sizer. You can download it for free from the page below: http://www.brianapps.net/sizer/ I downloaded the portable version (download the Zip Package). Launch

By Max Rohde 18 Apr 2014
Remove Duplicates from Array in CoffeeScript

Remove Duplicates from Array in CoffeeScript

Problem You have an array in CoffeeScript, which contains equal elements multiple times such as: [1,1,2,3,3] You would like to have only unique values in the array. Thus, transform it into: [1,2,3] Solution You can use the following method to accomplish such: removeDuplicates = (ar)

By Max Rohde 01 Apr 2014
Cross-Domain Requests in GWT with JSONP

gwt

Cross-Domain Requests in GWT with JSONP

GWT RPC is built upon AJAX requests and thus is subject to the Same-Origin Policy. However, it is really easy in GWT (as well as in other JavaScript applications) to circumvent this policy using a method called JSON-with-padding (JSONP). Unfortunately, there are a couple of issues one needs to consider

By Max Rohde 31 Mar 2014
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
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.