Archive for October, 2009

27
g00gl3’s el33t page Tuesday, 27th October 2009

http://www.google.com/intl/xx-hacker/
©2009 Google www.google.com - pRIv4cy pOlICY - T3rm5 0PH $ERv1C33ND
says it all…

27
HTML5 canvas test Tuesday, 27th October 2009

It’s right below – but IE won’t be able to see it though…

canvas test

Source Code:


<script type="text/javascript">
window.onload = function() {
var canvas = document.getElementById('example');
if (canvas.getContext){
var ctx = canvas.getContext("2d");
var lingrad = ctx.createLinearGradient(0, 0, 0, 100);
lingrad.addColorStop(0, '#00ABEB');
lingrad.addColorStop(0.75, '#fff');
lingrad.addColorStop(1, '#eee');
ctx.fillStyle = lingrad;
ctx.fillRect(20, 15, 460, 115);
ctx.lineWidth = 4;
ctx.strokeStyle = "#fff";
ctx.strokeRect(20, 15, 460, 115);

ctx.beginPath();
ctx.arc(75,75,50,0,Math.PI*2,true); // Outer circle
ctx.moveTo(110,75);
ctx.arc(75,75,35,0,Math.PI,false); // Mouth (clockwise)
ctx.moveTo(65,65);
ctx.arc(60,65,5,0,Math.PI*2,true); // Left eye
ctx.moveTo(95,65);
ctx.arc(90,65,5,0,Math.PI*2,true); // Right eye
ctx.strokeStyle = “rgba(0, 0, 200, 0.5)”;

var facegrad = ctx.createLinearGradient(0, 0, 0, 120);
facegrad.addColorStop(1, ‘#f30′);
facegrad.addColorStop(0.5, ‘#cd0′);
facegrad.addColorStop(0, ‘#69c’);

// ctx.fillStyle = “rgba(200, 80, 80, 0.8)”;
ctx.fillStyle = facegrad;
ctx.fill();
ctx.stroke();
ctx.closePath();

ctx.lineJoin = ’round’;
ctx.lineCap = ’round’;

ctx.beginPath();
ctx.moveTo(200, 25);
ctx.lineTo(250,75);
ctx.lineWidth = 2;
ctx.strokeStyle = “#f00″;
ctx.stroke();
ctx.closePath();

ctx.beginPath();
ctx.moveTo(250,75);
ctx.lineTo(200, 125);
ctx.lineWidth = 5;
ctx.strokeStyle = “#ddd”;
ctx.stroke();
ctx.closePath();

ctx.beginPath();
ctx.moveTo(200, 125);
ctx.lineTo(200, 25);
ctx.lineWidth = 10;
ctx.strokeStyle = “rgba(0,0,0,0.6)”;
ctx.stroke();
ctx.closePath();
}
}
</script>
<canvas id=”example” width=”500″ height=”450″>

Kudos to mozilla dev center (https://developer.mozilla.org/en/Canvas_tutorial) for the excellent tutorial and examples.

15
Adobe screen sharing Thursday, 15th October 2009

HAHA! it’s got the same problem as the app on mac!

This is what happens when u share with urself:

travel in time and space!

travel in time and space!

HAHA!

Alright, it’s still a decent product, and it’s free! I would definitely recommend it to any business user – just make sure you don’t show the dirty bits on your desktop, and don’t forget to turn it off before you go check youtube!

2
Opera 10 os x Friday, 2nd October 2009

I am now writing on opera… speed seems alright, menu is quite responsive (better than safari/firefox).

Haven’t noticed any difference in Javascript performance, will keep testing…