Recover a broken/partitioned/whatever harddrive(external or internal)

So, who HAS NOT experienced a harddrive crash?! The answer is likely no one(either they know it or not).

The Problem
Since I experienced this lately I thought I write a tiny howto, to easy the pain and suffering for you. What happened to me was that I got delivered an external USB harddrive(WD 500GB Essential) and got told that “I NEED MY PICTURES BACK”….apparently after some digging into why it stopped working I found out it “might have been dropped or bumped while connected”. So this means theres a pretty good chance of errors! The harddrive was NTFS and were unable to mount at all – seemed there were no chance to get onto it.

What you need:
Computer running linux(I used Ubuntu Lucid 10.04)
The faulty harddrive connected
Software: testdisk/photorec
Note: You can also use a software called “foremost”, but on my drive it did a quick recover and skipped too much data. Ended up with about 3GB of pictures.

Target
Recover as much data(pictures) as possible!
Read more

How to get system-information with dmidecode

Ever wondered what kind of RAM your system supports? Or maybe you can’t remember your motherboard brand or model? Well, luck you, linux has a perfect tool for finding this information.

First, let’s have a look at what we actually can find out:

Type Information
────────────────────────────────────────
0 BIOS
1 System
2 Base Board
3 Chassis
4 Processor
5 Memory Controller
6 Memory Module
7 Cache
8 Port Connector
9 System Slots
10 On Board Devices
11 OEM Strings
12 System Configuration Options
13 BIOS Language
14 Group Associations
15 System Event Log
16 Physical Memory Array
17 Memory Device
18 32-bit Memory Error
19 Memory Array Mapped Address
20 Memory Device Mapped Address
21 Built-in Pointing Device
22 Portable Battery
23 System Reset
24 Hardware Security
25 System Power Controls
26 Voltage Probe
27 Cooling Device
28 Temperature Probe
29 Electrical Current Probe
30 Out-of-band Remote Access
31 Boot Integrity Services
32 System Boot
33 64-bit Memory Error
34 Management Device
35 Management Device Component
36 Management Device Threshold Data
37 Memory Channel
38 IPMI Device
39 Power Supply

Read more

Apple iPad – Problems And Solutions

So, received my new iPad and thought I would post some guides on how to work around different problems I encountered.

Air Video on Ubuntu
So I found this lovely app that enabled me to live convert and stream my videos from my computer(s) to my iPad! So excited I took a closer look and found out that the server-software was only made for OSX and Windows. Luckily, the server software was made mostly in Java, which means a port to linux could easily be made.

Here is a guide on how to comile and install the required packages in Ubuntu: http://wiki.birth-online.de/know-how/hardware/apple-iphone/airvideo-server-linux
And here is a forum-post about the issue on providers website: http://www.inmethod.com/forum/posts/list/34.page

Another issue I encountered, was that the ahavi-daemon setup didn’t work – so I found a working one in the forum post. Create a file called /etc/avahi/services/airvideoserver.service – and add the following lines:

<?xml version=”1.0″ standalone=’no’?><!–*-nxml-*–>
<!DOCTYPE service-group SYSTEM “avahi-service.dtd”>
<!– $Id: airvideoserver.service 995 2010-04-12 15:06:53Z sam $ –>
<service-group>
<name replace-wildcards=”yes”>%h</name>
<service>
<type>_airvideoserver._tcp</type>
<port>45631</port>
</service>
</service-group>

Read more

Microsoft kills “Courier”

As most of you read on both Gizmodo and Engadget, Microsoft has terminated the “Courier” project. To be really honest, the “Courier” and “Nadal” are pretty much the only exciting and innovative projects Microsoft had going for them, at least from a gadget-geek-perspective. So I’m not trying to hide my disappointment when they terminated the “Courier”.

http://gizmodo.com/5527442/microsoft-cancels-innovative-courier-tablet-project
http://www.engadget.com/2010/04/29/microsoft-confirms-kills-courier-in-one-fell-swoop/

So why is it, that they suddenly kill this project? Did anyone ever see or touch a prototype? Was this really all a concept-video?

There’s a lot of questions to ask regarding this sudden cancellation, but what I take personally from this is that the road from a concept to prototype to product is not a walk in the park. Another punch in the face could be the cancellation of the HP Slate tablet. If you listen to the sources who tried the Slate – it was buggy and laggy, pretty much unresponsive. How would you then do a double-screen keeping a low-cost AND have touchscreen gestures work smoothly? This isn’t possible if you need to keep the cost down. But what I really want to know the answer to is: was this a decision based on the fact that Microsoft couldnt make it fast enough vs cheap enough? Or weren’t they able to make the product in a reasonable timeframe on a reasonable platform at all?

My first thought that struck me was the comparison to Apple and the way they *never* show prototypes like that, but still manage to hype their products like no one else. I think this is were Microsoft has much to learn. Either way, maybe next time at least have a prototype before you go out and hype it – or else you will look like the loser fools you do this time – because lets face it – there were a lot of interest around this product!

Anyhow, it’s a shame that it got terminated, but maybe they’ll pick up the thread at a later stage when they(maybe) have a better and lighter framework to work on. The Windows platform just don’t cut it when it comes to lighter tablets!

Ubuntu on ASUS UL30VT

So, lately theres been a fair few problems with the UL30VT. This is a post to compile the general solutions to especially the hybrid graphics cards.

This guide is intended to the new Ubuntu release Lucid Lynx(10.04 LTS), but would probably work for the Karmic(9.10) release too.

Hybrid Graphics – The problem
First off, the hybrid drivers found in Windows 7 seems to be developed by Asus themselves. Another problem is that to be able to “hotswitch” between the Nvidia and Intel graphics card it need to be implemented into the Xorg core – and this I would imagine we will not see in a long time. As it stand in Windows, only Windows 7 is able to the “hotswitch”, earlier versions like Vista and XP need to same solution as Xorg – a service restart(re-login).

Hybrid Graphics – Solution
So there are several solutions depending on the outcome you want.

  • Running only Intel
  • Running only Nvidia
  • Running “hotswitch” between Intel and Nvidia

Hybrid Graphics – Solution “Running only Intel”
So – this solution pretty much work out of the box. Since the Lucid install utilize the Intel card by default using the Intel drivers, this is the easiest solution. The only thing you need to do is pretty much install Ubuntu as you would on any other computer.
Read more

OpenGL and CG Shaders – introduction

I wanted to write a little introduction on how to setup and use the nVidia CG Toolkit and start creating some shaders for first and most OpenGL, who cares about D3D anyway?!?

Getting the toolkit

Head over to nVidias CG site and fetch the toolkit from there. Remember to get latest version!

What else do you need? You need, or preferrable want to update your graphics drivers to latest version in case you’re running on some old shit that doesn’t support different OpenGL extensions.

Getting started

Well, first I’m gonna give you an address to a beginners tutorial to CG, just so you have something to look up in, in case you were to, not that I’m saying you ever are, get stuck somewhere.

nVidia CG Tutorial book

It’s a good place to start, maybe not go through all the chapters straight away, but have a look at the first chapters and you get a general idea. That is pretty much what I’m gonna go through here too.

I already asume you are familiar with how to add library to your Visual Studio, cause we do need some of those cg librarys loaded. I will also use function oriented programming to demonstrate how this works, but theres no reason why you cant access it FROM objects so don’t be scred if you’re a OOP guru.

First, lets have a look at the CG shaders we’re gonna use. This is the simplest of the simplest ones, just to get you started. Lets have a look at the vertex shader:
Read more

Zend PHP Certifications

As I hope you all know Zend is a big contributer within the PHP community. They provide debugging, server enhancement and framework to support your PHP-development. Since it has stated such a huge reputation within the PHP-circle, I figured I’ll go ahead and take a PHP5 certification. Also I don’t have any education underlying my 4 years of PHP-experience, so I thought this might be a good way to get some papers on what I already know.

So I went ahead and bought a Zend PHP5 Certification bundle package, which includes free test-exams, a book in pdf and paperback and the examination itself. The package came to about $165 USD.

I went ahead and fired up one of the test-exams too see if I actually were something of a PHP-developer at all, and luckily I passed on my first attempt. Although I did miss a fair questions, I’m not too worried since it was all related to the Soap-extension(I’ve used the nusoap library for my soap purposes, but might actually change back soon).

So there it goes, my exam is book for the 28th of August(Friday so I can hopefully go out celebrate afterwards, or drown my sorrows!). I was actually surprised of how much the certification exam coverd. Everything from design patterns, databases, security to OOP – sweet!

Have a look over at Zend Certification if you’re interested in using their services. It’s highly recommended to take a look at the framework they provide. It’s an easy and fast way for creating web-sites and services.

OpenGL without the glaux library on Visual Studio(Replacement code)

I’ve been doing a lot of 3D programming lately, mostly due to assignments at school…yey! I started googling a fair bit for the glaux library to work under Visual Studio, but found soon enough out that the library was obsolete at this stage. So I thought I would post some replacement code for the many tutorials still relaying on the glaux library.

Thanks to the boys over at NeHe Productions – give them a visit – awesome tutorials regardgin OpenGL and 3D programming. You can even download all the tutorials in PDF! Kudos boys, spent many hours on your site.

Back to the point, go fetch the library from their site or download here:

GLaux replacement code

At the moment I’m having a crack at bump mapping, fun when you realize you’ve done the wrong aproach for half a day. Gotta love CG shaders…

Chrom(ium) vs Firefox – personal opinion!

So, the news about Chromium(Google Chrome for linux/mac) is out. Personal I’ve been using the development build for a month already…and theres a reason WHY!

If you’re anything like me, you pretty much have Facebook up all the time – perfect place to procrastinate from whatever you are doing. So hey, whats wrong with that? I’ll tell you whats wrong – firefox memory build up! This does apply to several version of Firefox too, I’m using the newest stable release.

Firefox and memory

What happens to firefox after having facebook up for a while, is that it’s claiming all my memory, often we’re talking about up til 40% of my 2GB memory. No this is of course after my firefox have been open for about 2 days straight!(Why would you ever need to close your browser?!). So my main thought is that the javascript engine over at mozilla labs is not doing a proper enough job freeing up memory, which sucks!

Chromium the saviour?

So, can Chromium do anything about it? Hope so, at least looking promising now. Chromium is running the V8 javascript enginge coupled with the Webkit rendering engine, which apparently go well together in a bundle;) What happens to my memory consumption when running Chromium?

I’LL TELL YOU WHAT! After running it for several days straight(without crashing or anything) it still only claim about 4% of my memory, that is 10 times as little as Firefox would claim!

Why is this? Chromium on steroids?

I still havent figured out why! The question is more; what is wrong with who? Is Firefox javascript engined really flawed, or is V8 THAT good?…or is it something else?

I’ve been planning to investigate into this at a later stage, but for now I don’t have an answer for you. As soon as Chromium develops into a full blown and stable browser I’ll do new tests with proper data and see if it still is as fast and memory efficient as it is now.

Stay tuned..

Palm Pre is coming…

The long anticipated Palm Pre is right around the corner and figured I’ll post some links to reviews and previews! I’m guessing I’m not the only one froathing from my mouth when looking at this phone. And definatly not the only one who wish there was some more competition to the iPhone!

Personally I have big faith in the Android platform from Google, not only because I want competition, but also cause it’s open source and more freedom when it comes to developing applications.

Anywhooooo…heres some links to Palm Pre, which this post is really about!

http://i.gizmodo.com/5126702/palm-pre-preview-simply-amazing

http://www.engadget.com/2009/06/03/palm-pre-review/

Palm Pre Ad – awesome

http://gizmodo.com/5277499/palm-pre-review