1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-13 16:45:14 +01:00

build fixes, downgrade rouge for now

This commit is contained in:
Matthias Kretschmann 2014-10-11 19:41:19 +02:00
parent 4839c2c3df
commit 83fdd50f50
6 changed files with 30 additions and 31 deletions

View File

@ -7,7 +7,7 @@ group :development do
gem 'jekyll-sitemap'
gem 'jekyll-timeago'
gem 'jekyll-redirect-from'
gem 'rouge'
gem 'rouge', '1.6.2'
gem 'mini_magick'
gem 'fileutils'
# for faster LSI generation

View File

@ -7,24 +7,23 @@ author: Matthias Kretschmann
date: 2008-02-26 23:24:17+00:00
wordpress_id: 12
categories:
- design
- design
tags:
- tutorial
- tutorial
---
As you may know you can easily password protect your website or parts of it using an htaccess file with special instructions on an [Apache](http://www.apache.org/)-based server. For using this method you just have to put a file named .htaccess (which includes the instructions for the webserver) and a file named `.htpasswd` (which includes the login-accounts) in the directory you want to have password protected. But you have to encrypt the passwords of the login data for yourself, which is a quick task on a Mac.
As you may know you can easily password protect your website or parts of it using an htaccess file with special instructions on an [Apache](http://www.apache.org/)-based server. For using this method you just have to put a file named `.htaccess` (which includes the instructions for the webserver) and a file named `.htpasswd` (which includes the login-accounts) in the directory you want to have password protected. But you have to encrypt the passwords of the login data for yourself, which is a quick task on a Mac.
I won't go into detail what exactly is needed in your `.htaccess`, since it often depends on your hosting provider which instructions are allowed. If you are new to all this stuff and want to password protect your website or parts of it, have a look in the part ["Password Protection"](http://www.javascriptkit.com/howto/htaccess3.shtml) of the [Comprehensive guide to .htaccess written by Feyd](http://www.javascriptkit.com/howto/htaccess.shtml).
I won't go into detail what exactly is needed in your `.htaccess`, since it often depends on your hosting provider which instructions are allowed. If you are new to all this stuff and want to password protect your website or parts of it, have a look in the part [Password Protection](http://www.javascriptkit.com/howto/htaccess3.shtml) of the [Comprehensive guide to .htaccess written by Feyd](http://www.javascriptkit.com/howto/htaccess.shtml).
The login data, in detail just the password is stored encrypted in the .htpasswd-file but you have to encrypt it before writing it in this file. On a Mac you can benefit from the underlying [Unix](http://www.apple.com/macosx/technology/unix.html)-technology for quickly generating your login accounts using the commandline utility `htpasswd`.
Just open Terminal application and type in the following code and replace username and password with your desired data:
```bash
``` bash
htpasswd -nb username password
```
and press enter. Terminal should output a new line containing your login data with an encrypted password. Just paste it in your `.htpasswd`-file and you're done.
It's that easy.
It's that easy.

View File

@ -9,10 +9,10 @@ author: Matthias Kretschmann
date: 2008-06-01 18:43:40+00:00
wordpress_id: 64
categories:
- goodies
- wallpaper
- goodies
- wallpaper
redirect_from:
- /first-wallpaper-chives/
- /first-wallpaper-chives/
---
I have added my first wallpaper to the Goodies section on this website. It's a shot of blooming chives which was altered with Aperture 2.1 and Photoshop CS3.

View File

@ -10,13 +10,13 @@ date: 2008-06-03 14:34:03+00:00
wordpress_id: 67
categories:
- goodies
- icon
- photography
- goodies
- icon
- photography
redirect_from:
- /new-goodie-niepces-camera-obscura-and-the-history-of-the-first-photograph/
-/4-more-icons-niepces-camera-obscura-v11
- /new-goodie-niepces-camera-obscura-and-the-history-of-the-first-photograph/
- /4-more-icons-niepces-camera-obscura-v11
---
These two desktop icons show the Camera Obscura as it was used by Nicéphore Niépce in an Aperture and iPhoto style and are intended as an homage to him. Nicéphore Niépce made it first possible to preserve an image taken with a camera obscura in 1826 or 1827 by using a special mixture of bitumen on a pewter plate, naming it Heliography. This first preserved photograph "View from the Window at Le Gras" is the one you can see in the iPhoto icon contained in this package. The third icon is the folder icon I have created for this icon package.

View File

@ -15,7 +15,7 @@ tags:
- tutorial
redirect_from:
- /ubuntu-as-mac-file-server-and-time-machine-volume/trackback/
- /ubuntu-as-mac-file-server-and-time-machine-volume/trackback/
---
![Ubuntu Mac File Server Connectivity](/media/ubuntu_mac_feature_thumb.jpg)For quite some time I use my Ubuntu machine as a file and backup server for all Macs in my network which is perfectly accessible from the Finder in Mac OS X. There are some instructions available in the web for this task but all failed in my case so I wrote my own tutorial with all the steps needed for it to work properly.
@ -140,7 +140,7 @@ Scroll to the bottom of the document and define your Volume shares. By adding th
Because we want to use the Ubuntu machine as a backup server for Time Machine you should define a second volume just for Time Machine. Create a new folder in your home directory first and name it TimeMachine (or anything you like). Then add the following line to your AppleVolumes.default. This is one line so be sure that theres no line break in your AppleVolumes.default file:
````
/home/username/TimeMachine TimeMachine allow:username1,username2 cnidscheme:cdb options:usedots,upriv
/home/username/TimeMachine TimeMachine allow:username1,username2 cnidscheme:cdb options:usedots,upriv
```
Thanks to [tsanga](http://www.kremalicious.com/2008/06/ubuntu-as-mac-file-server-and-time-machine-volume/#comment-50) for pointing out the usedots and upriv options. The usedots option is required if you want to use invisible files and folders (those starting with a dot in the name). Otherwise afpd would encode them as :2e which is bad if you have to use invisible files (like .htaccess). If you're on Leopard **and have no Tiger installed Macs in your network or mixed OS X versions in your network** you should use the upriv option which adds support for AFP3 unix privileges. If you have Macs with Tiger installed just use options:usedots to avoid unexpected behavior:
@ -199,16 +199,16 @@ A blank document should open in gedit. Now paste the following into the document
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_afpovertcp._tcp</type>
<port>548</port>
</service>
<service>
<type>_device-info._tcp</type>
<port>0</port>
<txt-record>model=Xserve</txt-record>
</service>
<name replace-wildcards="yes">%h</name>
<service>
<type>_afpovertcp._tcp</type>
<port>548</port>
</service>
<service>
<type>_device-info._tcp</type>
<port>0</port>
<txt-record>model=Xserve</txt-record>
</service>
</service-group>
```

View File

@ -8,11 +8,11 @@ author: Matthias Kretschmann
date: 2008-09-23 23:22:16+00:00
wordpress_id: 256
categories:
- goodies
- wallpaper
- goodies
- wallpaper
redirect_from:
- /new-goodie-futurama-mars-university-wallpaper/
- /new-goodie-futurama-mars-university-wallpaper/
---
Show your geeky love for extraterrestrial universities! This is a simple Futurama tribute wallpaper displaying the logo of the Mars University as seen in the first season (1ACV11/S02E02). But I've modified it a bit to get it out of the 2D. Including one high-resolution desktop version for widescreen displays (2560x1600) and one iPhone version (320x480).