This is where I share all things I find across the world wide web and stumble upon in the so-called reality
10:10 (about 5 hours ago)
134 words
In a few hours, my dad, uncle, my cousin's husband and I are going to Berlin to attend the IFA electronics messe. I'm hearing a lot about tons of different Android tablets, 3D flatscreens and other cool stuff that's gettings presented, so I'm very excited. I'm returning home on sunday, so that gives me three days of awesomeness, and I'm gonna try to post a few words and some photos every night when I get back to the apartment where we're staying every night. And of course, I'm gonna be tweeting and buzzing updates and pictures all through the days, so stay tuned!
Also, Ubuntu 10.10 beta got released yesterday, so go grab it and get on it! http://cdimage.ubuntu.com/releases/maverick/beta/
22/08/10 12:51 (about 12 days ago)
15 words
Everybody who ever IMs, should be familiar with this, although I suspect not many are.
19/08/10 09:38 (about 15 days ago)
15 words
Come on, Facebook. Didn't it ring a bell when the designer suggested it to you? ...
18/08/10 09:31 (about 16 days ago)
669 words
I have a MacBook Pro fifth generation (model 5,5) laptop which I run Ubuntu 10.04 on. It's a very nice computer, and having Ubuntu installed on it makes it just the more appealing. But Mac's aren't the most supported computers by anything other than Mac OS X, so most things work perfect, but some doesn't as well as on OS X. One thing is the fan control, which I seem to have fixed with a script I found on ubuntuforums.org for some older generation macs, which I then tweaked for the fifth generation MacBook Pro's and added an uninstallation feature to also.
More information about the MacBook Pro fan control script can be found at it's github repository.
Another thing is the suspend and hibernation functionality, which is the target of this article.
When I activated suspend or hibernation, Ubuntu just turned on the screensaver and since I just use black screen, I had to find it out the hard way. The first day after installing Ubuntu on my MacBook, I just closed down the lid as usual to make it suspend, and then began my travel home from school—first with bus, then train and at last for a short walk in some warm weather—and as I got home, I went to pull out my laptop yet again, but I quickly noticed the extreme heat coming from it. I quickly pulled it up from my bag, opened up the lid, forced a shutdown to make it cool off. I tell you ... I have never touched a computer so hot—it was wild!
Anyways, I then found out it had been running full power with the screensaver on, so I knew I had a problem since I use suspend all the time.
Finding out that it was a general problem for many laptops, including MacBook Pro's, was easy, so I had to come up with a solution. I found out about the uswsusp software piece, which is available on Ubuntu from the universal repository. uswsusp contains features of which two has importance for this article. They are called s2ram and s2disk, and as the name proposes, the first suspends to ram and the latter to the disk.
$ sudo s2ram --force
$ sudo s2disk
s2ram doesn't recognize my MacBook Pro fifth generation, so I had to use the --force parametre, but otherwise it works just wonderful.
The next problem was how to tell Ubuntu to use s2ram and s2disk instead of whatever it comes bundled with. I tried many things and failed many times, but at last, I got it working with /usr/sbin/pm-suspend and /usr/sbin/pm-hibernate.
## FIX SUSPEND
# backup pm-suspend
$ sudo cp /usr/sbin/pm-suspend /usr/sbin/pm-suspend.backup
# write new content to file
$ sudo sh -c 'echo "#!/bin/bash" > /usr/sbin/pm-suspend'
$ sudo sh -c 'echo "s2ram --force" >> /usr/sbin/pm-suspend'
# fix file permission
$ sudo chmod +x /usr/sbin/pm-suspend
## FIX HIBERNATION
# backup pm-hibernate
$ sudo cp /usr/sbin/pm-hibernate /usr/sbin/pm-hibernate.backup
# write new content to file
$ sudo sh -c 'echo "#!/bin/bash" > /usr/sbin/pm-hibernate'
$ sudo sh -c 'echo "s2disk" >> /usr/sbin/pm-hibernate'
# fix file permission
$ sudo chmod +x /usr/sbin/pm-hibernate
Thats how I do it, and it works great! First the original pm-suspend and pm-hibernate files are backed up, then new content are written to the files and to finish off, we fix the files permissions.
If you try this and wanna go back to as it was before, you can simple do the following, and everything should be fine and dandy:
$ sudo mv /usr/sbin/pm-suspend.backup /usr/sbin/pm-suspend
$ sudo mv /usr/sbin/pm-hibernate.backup /usr/sbin/pm-hibernate
17/08/10 18:43 (about 17 days ago)
64 words
I think this time around, Canonical is definetly on the right track, when it comes to Ubuntu UI! I have been using the ambiance-maverick-beta theme for a few days now, and for the first time ever, I believe that Linux is as beautiful as Mac OS X. What is stopping Linux and Ubuntu from overtaking the entire world now? I don't see it anyways...
05/08/10 08:47 (about 29 days ago)
34 words
Its incredible how such a basic technique as cycling the color palette is, can give so impressive results to something thought ordinary, and then in vanilla HTML5 and Javascript. Hands down for the developers.
02/08/10 08:10 (about 32 days ago)
75 words
I have not been online for a while. Summer vacation equals holiday time which equals family time and beach time. I finally got an apartment with my girlfriend which caused an extra week without internet, but it should be on when I get home from school later today.
Lots of things has been going on, but the short version is, that I have been idle, but I won't be anymore. Not for a while, anyways.
20/07/10 14:42 (about 45 days ago)
122 words
Andy Hertzfeld
Bill's technique used the fact the sum of a sequence of odd numbers is always the next perfect square (For example, 1 + 3 = 4, 1 + 3 + 5 = 9, 1 + 3 + 5 + 7 = 16, etc). So he could figure out when to bump the dependent coordinate value by iterating in a loop until a threshold was exceeded. This allowed QuickDraw to draw ovals very quickly.
Both MacPaint and QuickDraw was two pieces of revolutionary software at its time, and if you ever wondered how it worked, now is your chance to see!
20/07/10 10:01 (about 45 days ago)
39 words
Go get a can of coke, brew some coffe and get your notebook, cause it is time to get dirty with these seven great videos and presentations of all the new and exciting stuff that us web developers love.
16/07/10 09:43 (about 49 days ago)
103 words
You don't get to 500 million friends without making a few enemies.
You are sure right about that, my good sir, and I am pretty sure the only reason I am writing this down, and the only reason I felt intrigued by the film trailer, is because of the movie theme—which is Scalas version of Creep—however, it does have me down kissing its toes right about now, so look and behold: the Facebook movie is coming, and it is going to be HUGE! ... or something
15/07/10 03:39 (about 50 days ago)
63 words
Paul Miller
It looks like the iPhone 4 might be their Vista, and I'm okay with that.
Should we point out to Kevin that attempting to criticize your competition by comparing it to your own flagship products is usually counterproductive, or leave him to figure it out on his own during some early morning magnificent moustache contemplation session?
15/07/10 03:32 (about 50 days ago)
43 words
MG Siegler
Word is breaking that Apple is calling a special press conference on this coming Friday to talk about the iPhone 4. Yes, you can probably guess what this is about.
15/07/10 03:28 (about 50 days ago)
6 words
Go do your thing with it!
14/07/10 12:36 (about 51 days ago)
112 words
Yesterday at 1pm, the mailman dropped off iWoz—a book I have been anxiously awaiting since I ordered it from Amazon a week ago. And boy, did I never think it would be so great! I could not put it down and stop reading, and with only 5 hours of sleep, I just finished it now almost 22 hours later.
If you like books—even if you don't—go pick it up at the local library, a bookstore or somewhere else. I am almost certain, that you won't regret it!
13/07/10 17:33 (about 52 days ago)
84 words
webreflection:
I can't believe none of us knew DOM2
addEventListener('click', {
p: "Hello world!",
handleEvent: function(e) {
alert(this.p);
}
}, false);
This is how a tweet from @SubtleGradient, re-tweeted by @jdalton, has been able to steal my rest tonight ... and this post is the consequence ...
Interesting to see some new—or not really, actually—approaches for such a common thing!
10/07/10 13:15 (about 55 days ago)
26 words
Great to see so many useless, but cool scenarios people can produce using CSS3. Next, something truely amazing that shows the actual power of CSS3. Please.
09/07/10 17:16 (about 56 days ago)
71 words
What the Chromium project and Google Chrome has done for a long time (sort of), Mozilla now proposes as a HTML5 property: prefetching pages and files for faster browsing experience.
The difference? Chromium does it itself, Mozilla puts it in the hands of the webdesigner. I would like to see both features in the same browser. Ought to make a powerful pair!
07/07/10 21:46 (about 58 days ago)
13 words
Holy moly, this is great. I like what Apple are doing with MobileMe!
05/07/10 12:32 (about 60 days ago)
52 words
John Gruber
To start with, gripping almost any mobile phone in certain ways will reduce its reception by 1 or more bars. This is true of iPhone 4, iPhone 3GS, as well as many Droid, Nokia and RIM phones.
We cannot believe we’re getting shit for this.
03/07/10 12:48 (about 62 days ago)
22 words
Although there is a lot of Apple and Mac documentaries out there, this is definetly the most informational, if you ask me!
02/07/10 02:42 (about 63 days ago)
799 words
I like being creative. I like to express myself. Most of the time, this goes in to designing, writing software and my newly found hobby; taking photos.
Today I unveil my newest creative expression hub: this website. I have not been writing for a long time. It never really sticks with me when I first get started. But I have missed it, and is convinced that this time will be different. Especially because of the blurbs-functionality build in to this blogging system, which makes it so easy to be a blogger. I don't need to be highly productive, writing articles on articles every single day. I can just find something interesting, write 1-3 lines about it and share it with a link to its origin. Blogging has never been easier!
A Process
I should maybe tell you a little bit about this new website I have created.
First of all, it took three days of planing, 3 days of creating and 1 day of making some content for it, so it didn't seem dead empty upon release. I have written it from the bottom up, taken advantage of the Mootools Javascript framework, and a handfull of PHP tools I have written myself that I literally use in all my projects - time savers, you may call them. I am using Eric Meyers CSS Reset.
The philosophy of this project was great code. I wanted a project that I could look back on and be proud, and I therefore set some goals. 'Clever hacks is the way' and 'simple UI is poweful UI', but the number one target was a layout that worked across as many screens as possible, but without creating anything targeted at a specific device or browser.
The Flexible Layout
The way I have constructed this site took a bit of tinkering, because if the whole layout should be able to change from one thing to another, the mark-up of the HTML should be created accordingly. Else, I would have to jump through burning hoops to get it to work, and end up with a not-so-flexible layout anyways. After that was done, I created the default look of the page, just as you normally would do, but now comes the funny part! CSS Media queries: they are like an if-sentence in CSS, although limited to specific properties like screen/device width and height.
I have made some pointers to scale the typography of the site. For example, when the width of the browser is wider than 1024px, the font will grow 5%, and when the width is narrower than 800px, the font will have a 5% decrease.
@media screen and (min-width: 1024px) {
body { font-size: 105%; }
}
@media screen and (max-width: 800px) {
body { font-size: 95%; }
}
You can read more about what you can do with CSS Media queries at the Mozilla Developer Center.
The most noticeable flexibility act, is the layout of the site. This is the default look.

Now the browser is narrower, not enough for the font to decrease though, and because the left sidebar is at a fixed position, if we decrease the height of the browser any more, the text will start to disappear out of scroll-area.

So the text started to disappear. But you don't experience that, because instead of just being unavailable and dumb-looking, the text jumps down and joins the flow of articles and blurbs, as seen in this next screenshot. Nice and tight!

When the width of the browser hits lower than 600px, (mobiles, etc.), the layout changes completely to a single-column, mobile and small devices optimized layout.

Now I have a webdesign that works across a multitude of devices and screen sizes, and this was achieved with only 97 additional lines of CSS. Go do it yourself - it definetly pays off!
01/07/10 22:04 (about 64 days ago)
114 words
Bud Tribble
A reality distortion field. In his presence, reality is malleable. He can convince anyone of practically anything. It wears off when he's not around, but it makes it hard to have realistic schedules. And there's a couple of other things you should know about working with Steve.
I Love the stories at folklore.org. Especially the ones authored by Andy Hertzfeld - those are the best if you ask me.
It is so cool to get an insight in how things were at Apple back in the days!
01/07/10 13:18 (about 64 days ago)
45 words
Watch, as a family secret unveils itself, causing only shame, horror and death to everybody involved.
A telling about how a boy from a .NET family discovers Java, and has to fight his way through obstruction to find happiness.
by director Steven Springberg
01/07/10 02:46 (about 64 days ago)
32 words
John Ive:
A big part of the experience of a physical object has to do with the materials,
Hear how the iPhone 4 is crafted from the craftsman himself.
30/06/10 14:28 (about 65 days ago)
11 words
I more or less agree with everything in that blog post!