Stoppt die Vorratsdatenspeicherung! Jetzt klicken &handeln! Willst du auch an der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:

Archived entries for

Diverses zu CSS (3)

Hier einige CSS3 Tips und Effekte sowie ein CSS IE Bug die im Feed-Reader gelandet sind:

In Behind the Scenes: Building the New Visual Annotations wird geziegt was mit border-image möglich ist. Sehr, sehr cool, wie dort CSS-Sprites ähnliche Techniken zum Einsatz kommen.

Ein ganz hübscher Effekt ist ein box-shadow als image :hover Property.

Und Chris Coyier merkt an, dass der Fallback für den rgba Cross-Browser Support im IE nur mit der Kurzschreibweise background, nicht aber mit background-color funktioniert.

Stupid IE Thing.

11 PHP mistakes, misconceptions, bad practices

11 Tips für besseren PHP Code.

We have all had that moment where we looked back on a script that we wrote years ago and thought “what the hell was I thinking?”. But it is a process. You make mistakes, you learn from those mistakes and then you move on.

PHP: 5.2 to 5.3 Migration

Stas Malyshev stellt ein Skript vor was bei der Migration von 5.2 auf 5.3 hilft:

Quick research shows that most prominent applications had to be patched or changed, even though minimally, to work cleanly with 5.3. To help people to convert their web applications to 5.3, I present here a migration script that would allow you to inspect your applications for potential migration problems.
Do not expect supernatural wonders from it, but it may save you some valuable time.

Entfernung zwischen zwei lat/long Werten berechnen

Könnte mal praktisch sein: John D. Cooks Computing distance using lat/long coordinates.

function distance() {
	// Get numeric values out of form elements.
	var lat_1 = parseFloat(document.getElementById("lat1").value);
	var lat_2 = parseFloat(document.getElementById("lat2").value);
	var lon_1 = parseFloat(document.getElementById("lon1").value);
	var lon_2 = parseFloat(document.getElementById("lon2").value);
	// Compute spherical coordinates
	var rho = 3960.0; // earth diameter in miles
	// convert latitude and longitude to spherical coordinates in radians
	// phi = 90 - latitude
	var phi_1 = (90.0 - lat_1)*Math.PI/180.0;
	var phi_2 = (90.0 - lat_2)*Math.PI/180.0;
	// theta = longitude
	var theta_1 = lon_1*Math.PI/180.0;
	var theta_2 = lon_2*Math.PI/180.0;
	// compute spherical distance from spherical coordinates
	// arc length = \arccos(\sin\phi\sin\phi'\cos(\theta-\theta') + \cos\phi\cos\phi')
	// distance = rho times arc length
	var d = rho*Math.acos( Math.sin(phi_1)*Math.sin(phi_2)*Math.cos(theta_1 - theta_2) + Math.cos(phi_1)*Math.cos(phi_2) );
	// Display result in miles and in kilometers
	var output = "Distance = " + d + " miles or " + 1.609344*d + " kilometers";
}

U.S. enables Chinese hacking of Google

Bruce Schneier hebt einen wichtigen Punkt in der Debatte über chinesische Einbrüche in Google Account hervor:

This problem isn’t going away. Every year brings more Internet censorship and control, not just in countries like China and Iran but in the U.S., the U.K., Canada and other free countries, egged on by both law enforcement trying to catch terrorists, child pornographers and other criminals and by media companies trying to stop file sharers.

The problem is that such control makes us all less safe. Whether the eavesdroppers are the good guys or the bad guys, these systems put us all at greater risk. Communications systems that have no inherent eavesdropping capabilities are more secure than systems with those capabilities built in. And it’s bad civic hygiene to build technologies that could someday be used to facilitate a police state.

Dem kann ich zu 100% zustimmen.



Copyright © 2004–2009. All rights reserved. – Impressum

RSS Feed. This blog is proudly powered by Wordpress and uses Modern Clix, a theme by Rodrigo Galindez.