KoppiePeest

Willekeurige urls of gevonden fragmenten om te onthouden of terug te vinden

  • KoppiePeest

    Willekeurige urls of gevonden fragmenten gekopieerd & geplakt (copy/paste) om te onthouden of terug te vinden.

  • Pagina’s

  • Tweet

Archive for mei, 2010

Online speeddial

Posted by JephapE op 27 mei 2010

http://www.3x3links.com/
en een beginnetje van een eigen exemplaar
http://www.3x3links.com/jeroen237

Inloggen kan met je Google-account, zonder dat ze jouw informatie bewaren. Ze bewaren alleen een hash van je mailadres (sha1 of md5 bijv) om je te herkennen.

Ziet er goed te gebruiken uit.

Posted in Comp | Getagd: , , , | Leave a Comment »

Open Source Twitter

Posted by JephapE op 12 mei 2010

Er is een open source variant van Twitter en die heet StatusNet. Downloaden kan vanaf http://status.net/

Posted in Comp | Getagd: , , , | Leave a Comment »

Web SQL databases

Posted by JephapE op 10 mei 2010

HTML5 is niet alleen:

  • Multimedia zoals <video> en <audio>
  • Nieuwe structuur zoals <section>, <article>, <header>, <aside> etc.

Maar ook:

  • Webdatabases (SQL gebaseerd)

Voor een introductie, zie: http://html5doctor.com/introducing-web-sql-databases/.

Posted in Comp | Getagd: , , , , | 1 Comment »

HTML5-detectie met Modernizr

Posted by JephapE op 6 mei 2010

HTML5 is leuk, en CSS3 zeker ook. Maar ja, backward-compatibility…

Deze lijkt me handig om in te gaan zetten:

http://www.modernizr.com/

Over backwards compatilibitirimity gesproken, dit online boek (al eens in een commentaar genoemd) is goed:

http://diveintohtml5.org/

Posted in Comp | Getagd: , , , | Leave a Comment »

PHP Reflection class

Posted by JephapE op 6 mei 2010

Hoe heten alle class-constanten van een willekeurige PHP-class? En veel meer metagegevens van een class via code uit te lezen met:

http://www.php.net/manual/en/book.reflection.php

Kan misschien van pas komen…

Posted in Comp | Getagd: , , , | Leave a Comment »

Website thumbnail script

Posted by JephapE op 6 mei 2010

Schijnt vooralsnog niet te gaan zonder een (tijdelijk) window in X te lanceren, maar onderstaande ziet er wel handzaam uit:

http://www.coderholic.com/pywebshot-generate-website-thumbnails-using-python/

Je hebt dus python-gtkmozembed nodig, en het script zelf staat op:

http://github.com/coderholic/PyWebShot

Leuk.

Posted in Comp | Getagd: , , , , | Leave a Comment »

Webfonts example

Posted by JephapE op 6 mei 2010

Upload de *.ttf naar de goede lokatie (relatief pad t.o.v. de css).

<!doctype html>
<html>
	<head>
		<title>Web fonts</title>
		<style>
			@font-face { font-family: 'Bookman'; src: url('font/urw_bookman_l_demi_bold.ttf'); }
			@font-face { font-family: 'Bookman'; font-style: italic; src: url('font/urw_bookman_l_demi_bold_italic.ttf'); }

			@font-face { font-family: 'Palladio'; src: url('font/urw_palladio_l_roman.ttf'); }
			@font-face { font-family: 'Palladio'; font-style: italic; src: url('font/urw_palladio_l_italic.ttf'); }

			body, p, div  {
				font-family: 'Palladio', monospace;
			}
			h1, h2, h3 {
				font-family: 'Bookman', monospace;
			}
		</style>

	</head>
	<body>

		<h1>Hoofdstuk 3 <em>(drie)</em> titel in Bookman</h1>

		<p>De tekst van het <em>derde hoofdstuk</em> en wat tekst er omheen in het Palladio lettertype. </p>

		<blockquote>Wat niet wordt herkend, valt terug op een <tt>monospace</tt> font.</blockquote>

	</body>
</html>

Lees de rest van dit artikel »

Posted in Comp | Getagd: , , , | 2 Comments »

HTTP 401 using MySQL

Posted by JephapE op 6 mei 2010

2 things: Webserver config & Database tables

1: Webserver config, in htaccess or VirtualHost.

# mod_auth_mysql - the .htacccess
AuthBasicAuthoritative    Off
AuthUserFile              /dev/null
Auth_MySQL_Authoritative  on

AuthName  "MySQL Testing"
AuthType  Basic

Auth_MySQL  On

Auth_MySQL_Host      localhost
Auth_MySQL_User      apache
Auth_MySQL_Password  htdatabase
Auth_MySQL_DB        auth_apache

Auth_MySQL_Password_Table  users
Auth_MySQL_Group_Table     groups

Auth_MySQL_Username_Field htusername
Auth_MySQL_Password_Field htpassword
Auth_MySQL_Group_Field    htgroupname

Auth_MySQL_Empty_Passwords  off
Auth_MySQL_Encryption_Types  PHP_MD5 Crypt

# require valid-user
require group admins

2: Database tables

-- mod_auth_mysql - The MySQL tables
-- First:
-- CREATE DATABASE ...;
-- CREATE USER ...;
-- GRANT ALL for database to user ...;
-- FLUSH PRIVILEGES;
-- ... and then:

CREATE TABLE groups (
  htusername varchar(32) NOT NULL,
  htgroupname varchar(32) NOT NULL,
  PRIMARY KEY  (htusername,htgroupname)
);

CREATE TABLE users (
  htusername varchar(32) NOT NULL,
  htpassword varchar(32) NOT NULL,
  PRIMARY KEY  (htusername)
);

BTW: don’t forget to enter data in the tables 😉

Posted in Comp | Getagd: , , | Leave a Comment »

Hallo wereld!

Posted by JephapE op 6 mei 2010

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!

Posted in Geen categorie | 1 Comment »