-
Create a simple, Vanilla JavaScript SPA
I never really liked frameworks, maybe in the start of my career, because it made life simpler, at first, and then it made life harder. And for a long time I have been aware of the digital footprint that me, as a developer, has left behind, and the responsibilities that I have as a member of the global community. So, after some tinkering, and much thanks to other developers that has coded before me, I finally made a working, minimal footprint, vanilla JavaScript Single Page Application setup.
Written by Alexander in How-to -
How to create a new page in Atlassian Confluence with given template from a link
I was trying to solve an issue, amidst the documentation haze for my latest applications, to create a new page with a given template from a link, to spare me the hazzle of doing it "manually".
Written by Alexander in How-to -
Working with javascript modules, how to load JavaScript dependencies without require.js
In the current project I am working on, we wanted to load our dependencies in "synchronous" order without the use of a big library like require.js.
Written by Alexander in How-to -
How to rename multiple files with git mv
I needed a solution where I had to rename multiple files with git mv, instead of renaming every file first, then use git rm and then git add. Came across a solution that I have tweaked to fit my need
Written by Alexander in How-to -
How to inject proper page styling, with indented chapters, with jQuery and CSS
A friend of mine had an issue with a Drupal theme page, where he could not change the HTML structure to fit his needs with the indented chapter styling. He got it fixed initially by using CSS selectors that increased in size for each chapter, a method that "worked", but was not very efficient.
Written by Alexander in How-to -
How to permanently redirect static content to a subdomain with .htaccess
I wanted to move all my static files to a sub domain to comply with good standards and use a Content Delivery Network. I set up a sub domain and moved all the images, style sheets and javascript files to this subdomain. To play nice with the search engines and cached pages, I needed to set up a permanently redirect (301) so the content would not get lost
Written by Alexander in How-to -
How to add icons to links with css
Have you ever thought your links looked boring and that they needed the little extra? Well, fear not, for I have the solution!
Written by Alexander in How-to -
How to highlight search parameters from Search engines with javascript and prototype.js
I needed some code to help visitors on one of our sites at Aller Internett, to be able to spot the content where the search parameters where mentioned. After some searching and tutorial scavenging, I came up with this script
Written by Alexander in How-to -
How to create a table of contents with javascript and prototype.js
Well, if you write long posts every now and then and you want your users to access the information in an easy way instead of splitting up the post in several pages, this is a very nice solution to this issue
Written by Alexander in How-to -
mod_rewrite made easy
Lately I have been trying to make all my links to look so pretty that even art critics could say something nice about them, and to make it easier for visitors to remember my links. And believe me, it is actually easier than it seems.
Written by Alexander in How-to