Filter by topic

All, Development, Systems.

How to detect mobile devices with Vanilla JavaScript

Posted on 16 January 2015 | Development by Raymon

Sometimes you may need to check if your visitor is on a mobile device or not. You don’t need jQuery for this because the information is available in the navigator object. navigator.userAgent

If you change your browser’s useragent to iPhone and type navigator.userAgent in your console, the response will be something like this: “Mozilla/5.0 …

Continue reading

A Foreman Content Pack for Graylog2

Posted on 16 January 2015 | Systems by Daniel Schutterop

This content pack provides you with: – Foreman: Host actions stream – Foreman: Host create actions – Foreman: Host delete actions – Foreman: Host modify actions Foreman is a complete lifecycle management tool for physical and virtual servers and provides a plugin named foreman_hooks with which you can trigger events when creating, updating and deleting …

Continue reading

A vmWare Content Pack for Graylog2

Posted on 16 January 2015 | Systems by Daniel Schutterop

The more recent versions of Graylog2 (0.9x and up) support the use of content packs. Not only is this an ideal way of sharing streams, dashboards and inputs with, say, the community, it also provides a nice backup for the times you wish you hadn’t just deleted the input (or stream, dashboard) and want to …

Continue reading

How to change SVG’s with CSS classes

Posted on 16 January 2015 | Development by Tiety Kooistra

With the now growing support for SVG images in all the major browsers everybody can use SVG images and their powerful options. Example Let’s use classes to change the colour and the hover state of a button. HTML Add the SVG with an object tag to the HTML.

SVG Add a link to the …

Continue reading

How to deploy only your dist folder to the gh-pages branch (Github Pages)

Posted on 17 December 2014 | Development by Raymon

If you do a lot on GitHub, you probably know what GitHub Pages are. In case you don’t: On Github Pages you can host an HTML, CSS & JavaScript website. Simply create an branch called: gh-pages, wait a few minutes and you can find it with this url <github-username>/<github-repo-name>. Only deploy your dist folder to …

Continue reading

Creating a global .gitignore

Posted on 16 December 2014 | Development by Yasin Koçak

It can be handy to create a global .gitignore file, which is a list of rules for ignoring changes to certain files in every git repository on your local machine. Open terminal and run the following command in your terminal: Mac / Linux


Example of a global .gitignore Here is an example …

Continue reading

AngularJS linky filter now markdown-ier

Posted on 11 December 2014 | Development by Yasin Koçak

Yesterday AngularJS released version v.1.3.6 with some new improvements and a ton of bug fixes! You can find all bugfixes and new features at CHANGELOG In this post i will show an example using the link filter which is now markdown-ier and generates links from text which looks like a url and starts with ‘www.’. …

Continue reading

How to run npm without sudo

Posted on 10 December 2014 | Development by Jim Sangwine

The problem A lot of people (myself included) have run into permissions errors installing packages globally via npm. The common reaction (I did it!) is to simply sudo npm install *** which works, but will only cause more problems down the line! I have read a lot of discussions online, and it seems that this …

Continue reading

An Object Oriented JavaScript cheat sheet for people who are new to the language

Posted on 2 December 2014 | Development by Jim Sangwine

This list is not exhaustive – it’s just a collection of the most common patterns beginning JavaScripters are likely to encounter. I have tried to demonstrate how the concepts work, and when they are useful. I hope it helps some people. If you just want the code, you can clone my GitHub repo. Object literal …

Continue reading

Sitemap in robots.txt

Posted on 28 November 2014 | Development by Yasin Koçak

This is a little-known but very useful trick: you can add your sitemap in your robots.txt to make sure that search engines can find it. Example:

You can still add your Sitemap using the provided Webmaster tools like: Google Webmaster Tools Live Webmaster Tools (MSN) Yahoo SiteExplorer

1 2 3 11

Previous / Next

Our website uses cookies to understand how it is used, which helps us to improve your experience. More information