Today I …

…Learned. …Remembered. …Share. Learning is key and also never stops. Here I'm writing down new things I learned, things I remembered or simply stuff I want to share.

Exponential Notation for CSS Property Values

The other day I opened up some SVG files in my text editor to change their color values and I came across a rather strange looking value for opacity. <style>.svgitem { opacity:3.500000e-02; } </style> It turns out that this is called “ Exponentional Notation ” and actually does what you wanted it to do in the first place. ;) If I'm not mistaken, those files have been saved with Adobe Illustrator. Here's how it works: The E tells you how …

Running a Local Server

In this tweet Andy Bell mentions that you can run a local Python server with these easy commands: Open your Terminal cd to your project directory Run python -m SimpleHTTPServer Open your browser to localhost:8000 Done I didn’t know about the Python way, but another possibility is to run a PHP server, which is a similar process: Open your Terminal cd to your project directory Run php -S localhost:9090 Open your browser to localhost:9090 Done As Z …

Layering Objects in Apple Keynote Templates

A new, but incredibly helpful feature landed in Apple’s Keynote: Allowing layering with your master templates. This is a great new addition and there have been many cases, where in the past I would have wished this to be possible. When in View -> Edit Master Slides the Format sidebar options display the new checkbox option: Screenshot: Apple Keynote “Edit Master Slides” Appearance Panel showing “Allow layering” When you are creating a new slide fro …

Learning Styles

Yesterday I replied to a tweet about learning resources for JavaScript. In my reply I said “…depends on your learning style…”. It reminded me of the different learning styles of people and their different preferences when it comes to consuming new information. I love to read books and can learn by reading very well. I used to have a lot of discussions with my business partner Jane back in the days, where she would ask me how something works and I’d be …

Kirby Snippets in V3

Well, the Kirby snippets in V3 do work a little differently now and do require a variable passed to them, otherwise they won't find the variable and hence not work. It took me a little time to actually think that this could have changed. I wish there was a better reference of changes between the versions though.

Content-Security-Policy and Base 64 Images

Not too long ago I started to add some additional security headers to the sites I build. I started doing this on my own site to explore new techniques, but then started to like the idea and a little extra security doesn't hurt. A problem that I have ran into: When using base64 encoded images in your code and you want to add a Content-Security-Policy (CSP), the image-src directive in the header needs a little extra instruction. It's not enough to …