wolf_20140414_025

The 147 CSS3 Color Module color keywords

I use CodePen a lot for testing little things or getting to the bottom of a problem. Often I just need to color some divs or the like and I always fall back to using red or blue or green or simple hex codes like #000 or #ccc.

Recently I couldn’t take it anymore. Even though these are often only temporary pens I want them to please my eye at least a little bit. I remembered that there were some more predefined color names that one could use. What I found out was that there are actually 147 color keywords defined in the CSS3 Color Module. Pretty impressive.

I created a CodePen showing them off so I can go there and grab a nice color next time I need one.

See the Pen 147 CSS3 Color Module color keywords by Martin Wolf (@martinwolf) on CodePen.

Somehow I managed to not show you the photos I took last year while Tatjana and I were in the Harz Mountains. We went there on vacation in autumn.

So over the next couple of days I will post the photos in journal style. Always one day at a time. Enjoy!

wolf_20131012_003 wolf_20131012_004 (more…)

Geschichten aus Ghana Trailer

Ich poste hier ja nicht mehr all zu viel fremden Inhalt, aber für den Trailer zum Film “Geschichten aus Ghana” muss ich da mal eine Ausnahme machen. Bereits die wenigen Szenen haben mich irgendwie berührt und ich freue mich auf Mai, wenn sowohl das Buch Logbuch Ghana von Steffen erscheinen wird wie auch der begleitende Film von Dokumentarfilmer Valentin Schüle.

Weekly Recap

It’s already sunday again, so here I am bringing you a bunch of hot links gathered over the past week. It’s a nice mix of technical posts and articles about meta topics concerning developers.

wolf_20140329_009

Open new iTerm2 tab in current directory

While I work on a project I usually need two iTerm tabs. One to start and monitor my grunt tasks and one for doing git. So every time I start working I have to navigate to a folder two times.
So I searched for a way to open a new tab with the current directory but didn’t find anything. (Yes, for most projects I have an alias, but it’s still more “work”.)
But what I did find instead was an option to always open a new tab with the current directory. And that’s all I need.

Go to Preferences -> Profiles -> General and under Working Directory choose Reuse previous session's directory.

iterm

Using and clearing the Browser Appcache

I’m currently experimenting with the HTML 5 App Cache. It’s important to know that the HTML5 appcache is different from the normal browser cache. Basically you link a manifest appcache file in your html which has instructions on which files the browser should cache and which it should always load new.

<html manifest="cache.appcache">
    Your site goes here.
</html>

Example contents of a cache manifest:

CACHE MANIFEST

# These files will be explicitly cached
CACHE:
index.html
css/styles.min.css
js/scripts.min.js
img/logo.svg

# All other files require the user to be online
NETWORK:
*

In my recent experience the cache works very well, sometimes even too well. It will delete and cache all files new which are otherwise explicitly cached if you change anything in the cache manifest file. You could for example add a timestamp. But this seems to not always work or be at least a little dogged. So if you want to delete the appcache of Chrome for example manually you can do this by going to

chrome://appcache-internals/

and just delete what you don’t need anymore. It’s also just interesting to have a look at what you already gathered while surfing around the web.

In Safari it’s not that easy, but you can find an explanation on stackoverflow.

To have a look at your caches in Firefox you can go to

about:cache?device=offline

But you don’t have the option to delete them there. For that you have can go to Preferences -> Advanced -> Network. Here you find “Offline Web Content and User Data”.

Go ahead and experiment with the HTML5 app cache. It’s pretty cool especially for mobile web apps.

Weekly Recap

Hello lovely readers. This week was a busy one for me so I didn’t manage to read a lot and thus the list is a little shorter than in the past. But there are still very good articles in here. Have fun!

wolf_20140329_013