The following code will convert an object to an array in Javascript, minding the order of the keys. The keys will be replaced with numbers: /** * Convert an object to an array * @param {object} obj The object to…
Normal Ubuntu 14.04 install commands: sudo apt-get update sudo apt-get install nodejs sudo apt-get install npm If the following error occurs: -bash: /usr/sbin/node: No such file or directory The fix is the following command: sudo ln -s /usr/bin/nodejs /usr/sbin/node …
<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?> <!DOCTYPE ServiceExceptionReport SYSTEM ""> <ServiceExceptionReport version="1.1.1"> <ServiceException code="InvalidSRS"> msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. </ServiceException> </ServiceExceptionReport> This error appears when the map variable of Openlayers…
The following function will help you check if there is an overlap between a certain feature and a layer. In order to work, the example needs ol3 and the JSTS library loaded. /* * The main object */ var factoryJsts…
The code below will help you make Twitter’s Boostrap accordion widget as high as the column it is inserted in. It has been tested in version 3.3.4. The Javascript code: $(document).ready(function () { 'use strict'; var bootstrapAccordionPanelFullHeight = function ()…
Recently, I have encountered following problem in dojo: the interface looked fine, but the upload button did not open the file selection window on click, without showing any error. Apparently, it is important to make sure that the widget is…
In case Facebook shows the wrong image for your link and you want the updates you have done be shown on a new share, you might need to update their cache for your page. To do that, access this page.
mrbunnycooking.com is a cooking blog based on WordPress. Some of the modifications and features will be described below: WordPress child theme; custom css, php and javascript; custom sizes for WordPress images, automatic resize of images inside a post; usage of…