March
7th

ASP.NET MVC 1.0 Release Candidate is out!

Microsoft release it’s version 1.0 of the new web development framework.

New features and improvements shipped with this new version that looks amazingly cool.

For more information and a complete feature list, check Microsoft’s VP of development blog, Scott Guthrie.

March
2nd

How to install PHP 5 and MySQL on IIS 7 and Windows Vista / Windows 7

PHP Logoiis7

If you are running Windows Vista or Windows 7 and IIS 7 with them, you probably already had trouble on setting up PHP to work correctly in these environments.

The PHP installer did a pretty good job on old Windows XP, but on the new flavors of Windows it doesn’t setup everything you need to start developing for web right away.

Here I’ll show step-by-step on how to accomplish this:

Read the rest of this entry »

February
26th

Master System: Brazilian Man Holds Woman Hostage For 10 Hours… With A Sega Light Gun

Light Phaser 1

A man looking to collect on a debt broke into the house of 60-year-old woman in Brazil’s Federal District, holding her hostage for ten hours on the business end of a Sega Light Phaser.

The Light Phaser, the light gun that shipped with the Sega Master System, must be fairly common in Brazil, considering how incredibly popular the 8-bit console was in the country—it was one of Sega’s strongest markets.

Fortunately, the man released his hostage, unharmed, after negotiating with police (and brandishing a pair of actual deadly knives). “Unharmed” means we can all laugh about it now! In fact, heroic tipster Gustavo even gave us a free joke: “Of course he would not be able to hurt his victim – we can see that the gun was NOT plugged into the console.” ROFL!!

via Master System: Brazilian Man Holds Woman Hostage For 10 Hours… With A Sega Light Gun.

February
26th

Nintendo Controller Soap

nes soap controller

Videogame controllers are typically rated on ergonomics, durability, and responsiveness — though they sometimes get a few bonus points by looking especially cool. The original NES game pad really didn’t have any of those attributes going for it, but that didn’t stop it from becoming a cultural icon, one that has inspired reproductions of all shapes and sizes. The latest one varies not in dimensions but in composition: it’s made of soap. Yes, this controller, which sells for just $8.25, is designed for bath time fun, and what it lacks in functionality it makes up for with natural ingredients and lovely (we presume) fragrances that surely smell a good bit better than those musty hunks of discolored plastic you probably have stuffed in a box somewhere.

Source: Engadget

February
25th

HP Technical Support Review

HP Invent

Yesterday, I was working on my laptop at night when all of a sudden my Firefox froze and so the rest of my computer. After knocking with anger and rage a few times on my keyboard :) I realized that nothing else could be done other than a full reboot.

None was my surprise when the reboot didn’t past through the startup screen: my Hard Disk fried. I double checked it with the Diagnostics tool provided inside HP BIOS utility. The “Replace your hard disk” message nailed my suspicious.

So, there I was, 9 o’clock in the night, calling HP technical department, hoping for a solution on my issue.

When it comes from technical departments, calling huge companies, getting issues fixed I always think that I will get angry, mad, stressed and such. But surprinsingly this time, I can’t complain!!!

My wait time was a few seconds, the representative over the phone quickly looked up my laptop serial number and stated that it was still on warranty, forward me to the more technical section where they just asked me for the error number associated with the “Replace your hard disk” message (for that I had to run the test again, but no problem on that) and after a while they created an order to ship another new hard disk for me!!!

Ok, it doesn’t save my files, but what could’ve they done with a totally fried HD? Nothing. They did what they had to do. Give me another one free of charge. And together with it a free set of recovery disks with the Operating System that I lost with the HD. The recover partition was gone as well.

But wait. Estimated time for the arrival of the replacement parts: 1 week from the call. No way! My life just can’t stop a week. And what was a computer addicted like me supposed to do meanwhile???

So today, as soon as I awoke, I rushed to the next nearby Staples and shell out another 90 bucks for a new HD. This time I bought a Western Digital one instead of Seagate, the same provided with the laptop, for obvious reasons. When the replacement from HP arrives I will save it as spare for any future trouble I may stumble upon.

After a quick install of the Hard Disk I was thinking:

“Why not give Windows 7 a try?”

With the BETA out there, more and more people giving excellent reviews to it, I should try.

That’s exactly what I did! And what a pleasant surprise! My system is already up and running (blogging from it) and faster than ever! Until now I didn’t encounter any application that didn’t run. Everything is smoother. But this is story for another post.

For now, kudos to the HP team and customer support, let’s see if everything arrives as planned.

My advice for y’all: buy HP with confidence. Hardware failures happens and a good customer service backup can help and a lot in a situation like this.

February
22nd

Astronauts drinking coffee in space video

These days, in my regular “Youtube hour”, I found this awesome video of how astronauts drink coffee in space with zero gravity. Look the cup format! There’s an explanation on why the cup has this format and how/why they suck the coffee instead of only sipping it.

Hope you enjoy!

February
16th

Difference between “malloc” and “new” in C++

We could enumerate the differences in the following list:

  1. The first difference is that when new is called with an object as parameter it automatically calls the object constructor whereas malloc doesn’t.
  2. In a similar way, when delete has an object it calls its destructor whereas free doesn’t.
  3. Other difference is that new calculates the size of the object it’s allocating memory for. With malloc the programmer need to specify the size explicitly.
  4. Another one is that malloc returns (void *) whereas new returns a pointer to the desired type and no explicit typecast after the operation is needed making it more safe for the programmer.
  5. One more difference is that new is an operator and can be overloaded and malloc can’t'and it is a function.
  6. New must be matched with a delete call to free up the used memory while malloc must match with a free call.
  7. With new you must specify the number of objects to create and with malloc the number of bytes to allocate.
  8. New operator throws an exception when memory is not available and malloc returns NULL.

From above, we can conclude that new use is preferred when programming in C++ and malloc in plain C.

February
15th

First IPhone App

Hi folks!

Yesterday i finished my first *simple* IPhone application. It’s just a tutorial application, “Hello World” style, but it’s always nice to see something getting done.

I was messing around with the UITableView and created a simple list with car attributes list shown in the screenshot below:

first_iphone_app

And that’s it. But it’s just the beggining, more to come…

February
15th

Difference between C++ Classes and Structs

This is one of the most asked question in developers interview. Although one can think of many differences regarding memory, inheritance, initialization, etc, the answer is pretty much simple and straightforward:

“Members of a Class are private by default, whereas members of a Struct are public. It also applies to inheritance, where inheritance between Classes are private and between Structs are public.”

Finally, in C++ context, we can conclude that “class” is no more than a “struct” keyword clone with privacy set by default.

And that’s all!

February
8th

IPhone SDK and Kalyway 10.5.2

iphone sdk

Hi folks,

I’ve been busy these days trying to make IPhone SDK and Kalyway (Mac OS X for the x86 platform) get along.

Problem is: IPhone new 2.2.1 SDK requires at least Leopard 10.5.5 to be installed and Kalyway is only updated to 10.5.3 which I couldn’t install because of the new ACPI Mac platform that makes my old laptop reboot after Kalyway starts to run.

I tried everything and nothing worked so what I did was to look the other way, instead of trying to update Kalyway, why not make IPhone SDK installs on what I got?

So I hacked my Kalyway system making IPhone SDK believes it was being installed on a 10.5.5 system.

How I achieved that? Simple, I looked for the files with the Mac OS X version info and edited them.

Here’s the solution:

Look for the file

/System/Library/Coreservices/Systemversion.plist

Copy it to your desktop, as a backup.

then edit the original one and find the following keys:

<key>ProductUserVisibleVersion</key>
<string>10.5.2</string>
<key>ProductVersion</key>
<string>10.5.2</string>

then change 10.5.2 to 10.5.5 and, voilá, you’re done!
I installed IPhone SDK and as far as I know, everything is working.
Enjoy!