Saturday, October 13, 2012

PortalPimba.com

www.portalpimba.com
A voz dos que a não têm...

Friday, October 12, 2012

Free GTR 2 Serials

Here:
http://www.computerbild.de/gutscheinaktionen/cbs-gtr-2-seriennummer-4349161.html

Seriennummer für GTR 2
Hier erhalten Sie per E-Mail eine Seriennummer für den Onlinemodus des Rennspiels GTR 2. Wichtig: Sie können das Spiel auch ohne die Seriennummer spielen, der Code ist für den Einzel- oder Mehrspieler-Modus nicht nötig.
Gang einlegen und los: In dieser realistischen Rennsimulation gehen Sie mit einem von 144 Rennwagen auf die Piste, darunter Modelle von Porsche, Ferrari, Lamborghini und Aston Martin. Für den Online-Modus von GTR 2 benötigen Sie eine Seriennummer. Geben Sie Ihre E-Mail-Adresse in das Feld ein und klicken Sie anschließend auf Seriennummer anfordern. Dann bekommen Sie eine E-Mail mit Ihrer persönlichen Seriennummer zugeschickt.
Wichtig: Diese Seriennummer ist ausschließlich für den Online-Modus von GTR 2 nötig. Für den normalen Einzel- und Mehrspielermodus im Netzwerk benötigen Sie keine individuelle Seriennummer.

Google Translation:
Serial number for GTR 2
Here you will receive by email a serial number for online mode of the racing game "GTR 2". Important: You can play the game without the serial number, the code is not intended for single or multiplayer mode necessary.
Shift into gear and go: In this realistic racing simulation you go with a 144 race car on the track, including models from Porsche, Ferrari, Lamborghini and Aston Martin. For the online mode of "GTR 2" you need a serial number. Enter your e-mail address in the box and click on Order serial number. Then you get an email with your personal serial number sent to you.
Important: This serial number is only for the online mode of "GTR 2" necessary. For the typical single and multiplayer games on the network, you do not need a unique serial number.

Tuesday, September 18, 2012

Registry Fix for Colin McRae Rally 2005 on Win7 64bit

The following registry settings fixed Colin McRae Rally 2005 for me on my Windows 7 64 bit machine.

Create a text file and paste the text at the end of this post into it. Save the file with a ".reg" extension and copy all of the text below this line.

(all you need to do is change it so that it reflects the install directory on your system)


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Codemasters\Colin McRae Rally 2005]
"INSTALL_PATH"="C:\\Games\\Colin McRae Rally 2005"
"CD_PATH"="C:\\Games\\Colin McRae Rally 2005"
"Height"=dword:000003c0
"Width"=dword:00000500
"NO_DISC"="Please insert disk 1 of Colin McRae Rally 2005"
"NO_DRIVE"="Please insert disk 1 of Colin McRae Rally 2005"
"WRONG_DISC"="Please insert disk 1 of Colin McRae Rally 2005"
"ADMIN_RIGHTS"="No administrator rights."
"LANGUAGE"="E"
"AUDIO_PATH"="C:\\Games\\Colin McRae Rally 2005"
"VIDEO_PATH"="C:\\Games\\Colin McRae Rally 2005"
"HDCACHE_PATH"="C:\\Games\\Colin McRae Rally 2005\\HD"
"SAVEGAME_PATH"="C:\\Games\\Colin McRae Rally 2005\\SG"
"SELECTION"="IWBVJXLKHIBXBXCXGSIXBXBXDXFXBXBXPKBWBXBX"
"CD_KEY"=""


[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Codemasters\Colin McRae Rally 2005]
"INSTALL_PATH"="C:\\Games\\Colin McRae Rally 2005"
"CD_PATH"="C:\\Games\\Colin McRae Rally 2005"
"Height"=dword:000003c0
"Width"=dword:00000500
"NO_DISC"="Please insert disk 1 of Colin McRae Rally 2005"
"NO_DRIVE"="Please insert disk 1 of Colin McRae Rally 2005"
"WRONG_DISC"="Please insert disk 1 of Colin McRae Rally 2005"
"ADMIN_RIGHTS"="No administrator rights."
"LANGUAGE"="E"
"AUDIO_PATH"="C:\\Games\\Colin McRae Rally 2005"
"VIDEO_PATH"="C:\\Games\\Colin McRae Rally 2005"
"HDCACHE_PATH"="C:\\Games\\Colin McRae Rally 2005\\HD"
"SAVEGAME_PATH"="C:\\Games\\Colin McRae Rally 2005\\SG"
"SELECTION"="IWBVJXLKHIBXBXCXGSIXBXBXDXFXBXBXPKBWBXBX"
"CD_KEY"=""

Migrating a Windows XP VMware Virtual Machine to a VirtualBox one


When migrating a Windows XP VMware VM to a VirtualBox one you should enable IO APIC option.

Windows may not be able to start the network device because the driver loaded for the PCnet-FAST III device is VMware Accelerated AMD PCnet Adapter.

To get the device working simply replace the device driver with the AMD one: AMD PCNET Family PCI Ethernet Adapter

Don't forget about installing the VirtualBox Guest Additions.

Registry Fix for ToCA Race Driver 3 on Win7 64bit

The following registry settings fixed the english version of ToCA Race Driver 3 for me on my Windows 7 64 bit machine. I simply pulled these key values from the installer script.

Create a text file and paste the text at the end of this post into it. Save the file with a ".reg" extension and import it into your registry as the system administrator. These parameters assume that the game is installed in the default steam directories.

From what I can see valid "LANGUAGE" values are "eng","fre","ger","ita", or "spa".

Copy all of the text below this line.....
(all you need to do is change it so that it reflects the install directory of your Steam install):

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Codemasters\Race Driver 3]
"LANGUAGE"="eng"
"NAME_APPLICATION"="ToCA Race Driver 3"
"NAME_CD"="ToCA Race Driver 3"
"SKU"="eur"
"TITLEBAR"="ToCA Race Driver 3"
"PATH_MAIN"="F:\\Steam\\steamapps\\common\\race driver 3\\gamedata"
"PATH_APPLICATION"="F:\\Steam\\steamapps\\common\\race driver 3"
"PATH_SAVE"="F:\\Steam\\steamapps\\common\\race driver 3\\savedata"
"PATH_VIDEO"="F:\\Steam\\steamapps\\common\\race driver 3\\gamedata"
"PATH_CD"="F:\\Steam\\steamapps\\common\\race driver 3"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Codemasters\Race Driver 3]
"LANGUAGE"="eng"
"NAME_APPLICATION"="ToCA Race Driver 3"
"NAME_CD"="ToCA Race Driver 3"
"SKU"="eur"
"TITLEBAR"="ToCA Race Driver 3"
"PATH_MAIN"="F:\\Steam\\steamapps\\common\\race driver 3\\gamedata"
"PATH_APPLICATION"="F:\\Steam\\steamapps\\common\\race driver 3"
"PATH_SAVE"="F:\\Steam\\steamapps\\common\\race driver 3\\savedata"
"PATH_VIDEO"="F:\\Steam\\steamapps\\common\\race driver 3\\gamedata"
"PATH_CD"="F:\\Steam\\steamapps\\common\\race driver 3"

Friday, September 7, 2012

song-lyrics-generator.org.uk

http://www.song-lyrics-generator.org.uk/



Here's how it works:
  • You choose a style.
  • You give us some keywords to play with.
  • We automatically create lyrics for your single.
  • 3D printers: 10 machines for home manufacturing

    3D printers: 10 machines for home manufacturing

    http://www.techrepublic.com/photos/3d-printers-10-machines-for-home-manufacturing/6379767?tag=nl.e098


    The age of being able to print off anything - from washing machine parts to shoes - in your home is approaching.
    For years 3D printers, which build solid objects layer by layer using computer models, came with a price tag that made them unaffordable to anyone outside big business.
    However in recent years homebrew 3D printer projects such as RepRap in the UK and Fab@Home have demonstrated it's possible to build a 3D printer for about $1,000.
    Today, there are a slew of 3D printers aimed at the home market, many of which are based on the open-source RepRap printers. TechRepublic has rounded up 10 machines for fabricating items at home.
    3D printing noobs should be aware that not only do many of these machines ship as kits that have to be built by the user, most are more complicated to operate than your standard 2D printer.
    Running costs are also not cheap. Most of the printers build objects using filament, typically made of ABS or PLA plastics. A one-kilogram coil of these plastics costs in the region of $70.
    If you do pick up a 3D printer and are lacking inspiration, check out the Thingiverse, a collection of free designs for printable objects.

    Cube 3D

    The Cube 3D, shown above, is a printer designed to make building plastic objects as easy as running off a copy of a document.
    The $1,299 device can print items as large as 5.5 inches cubed. It prints in one colour at a time, squeezing molten plastic from its nozzle, and can produce 10 different shades.
    The Cube is designed to be easy to use, with cartridges that clip into place and software that turns 3D computer models into a form the printer can understand. The software handles models in the STL format, which is output by most CAD packages.
    Designs for objects that can be printed using the Cube are available through its dedicated online store.
    Users can tweak ready-made designs for printable objects, such as toys and jewellery, using a selection of apps.
    Print time is proportional to the size and complexity of the object being built, but the manufacturer says an iPhone case will take about two to three hours to print.
    Each cartridge will print 13 to 15 phone case-sized objects before it needs replacing.
    Photo: 3D Systems Corporation

    Tuesday, September 4, 2012

    Monday, September 3, 2012

    Google Web Fonts

    Fonts for your website available from Google.

    Google Web Fonts makes it quick and easy for everyone to use web fonts, including professional designers and developers. We believe that everyone should be able to bring quality typography to their web pages and applications.

    google.com/webfonts

    Teste de Velocidade Banda Larga PT


    Teste de Velocidade Banda Larga

    A PT disponibilizou um sistema preparado para testar a velocidade Internet com acessos em hiper banda larga até 500 Mbps.

    qos.sapo.pt

    Resolving “MySQL Workbench has stopped working” Error Message – Workbench v5.2 Windows Event ID 1026 and 1000

    Resolving “MySQL Workbench has stopped working” Error Message – Workbench v5.2 Windows Event ID 1026 and 1000

    MySQL Workbench worked fine for a while, but as soon as I start the program now, I get a message box saying “MySQL Workbench has stopped working”.

    Here's the solution


    1. Uninstall (aka “Remove”) MySQL Workbench 5.2

    2. In C:\Users\YOUR_USERNAME\AppData\Roaming\MySQL, rename “Workbench” to “Workbench_old”

    3. Reinstall MySQL Workbench

    4. Check out the folders in “C:\Users\YOUR_USERNAME\AppData\Roaming\MySQL”, and notice the “Workbench” folder is recreated

    5. Launch MySQL Workbench and all is good!

    Extra Note

    Note: For good measure, I renamed back the folders in “C:\Users\YOUR_USERNAME\AppData\Roaming\MySQL” to test if that was the issue, and sure enough, as soon as I put the “old” folder back into place I had the same issue launching MySQL Workbench.

    Thursday, August 23, 2012

    Javascript break out of frames script

    Javascript break out of frames script.
    A simple way to break out of frames on page load.

    <script type="text/javascript">
    if (top != self)
    top.location = self.location;
    </script>

    Friday, August 10, 2012

    10 things to look for in an entry level software developer


    10 things to look for in an entry level software developer
    Takeaway: With the right traits — and a bit of coaching — an entry level developer can prove to be a wise hire.

    People are often afraid to hire entry level developers because they are relatively expensive to hire and it can take months before their productivity is high enough to justify hiring them. In addition, their lack of experience makes it hard to evaluate their abilities before you take them on. At the same time, bringing aboard entry level developers can make for a good long term investment in your company if you are willing to mentor them. Look for these 10 qualities in an entry level programmer to have the best chance of success.

    1: Good attitude

    All employees should have a good attitude, but it is even more important for entry level employees. They have a lot to learn, and the wrong attitude will keep them from learning what they need to. Another factor to consider is that the ROI on entry level developers is already poor; their salaries are much higher than entry level employees in other careers, and it can take months for them to meaningfully contribute to the bottom line. When someone is a “long term investment” in the future of the company, it is really important that they not make someone regret having them around long term.

    2: Computer experience

    While it is true that the typical programmer does not need to spend much time in server rooms or inside the guts of PCs, it is also true that the more general and advanced computer experience they have, the better able they are to understand how to fix problems with their code. For example, I’ve spent a lot of my career as a systems administrator, and I am constantly finding myself using tools and skills I learned while working with servers to find and fix bugs in code. The more computing experience an entry level developer can bring to the table, the better.

    3: Work ethic

    What takes an experienced developer a few hours may take an entry level developer a week. Clearly, it is critical that entry level programmers be willing to put in the time. I am not saying that they should be expected to work 60 hours a week and fire ‘em if they can’t! But what I am saying is that there needs to be the attitude of “I’m not happy until this task is done right,” and if that means paying some dues, some dues need to be paid.

    4: Ability to learn

    Because entry level developers lag so far behind experienced developers, they must be able to get their knowledge levels up quickly. To make this worse, inexperienced developers can often cause friction on the entire team, between the errors that need to be fixed and the help that the rest of the team needs to provide. The longer an entry level programmer takes to learn the job, the longer it takes for the company to start seeing its investment pay off.

    5: Educational history

    Not every developer goes to college, and not every college makes good developers. But educational history can provide an important understanding of what someone’s capabilities and interest are. A person with a science or math degree from a respected institution is likely to  have strong logic skills, for example.

    6: Previous job experience

    Even if someone is new to software development, it does not mean that they are new to the workforce. Previous job history can tell you a lot about who they are. I did not major in computer science, but I worked a number of programming jobs and other computer jobs during college. On the other hand, I saw people with CS degrees who were flipping burgers in school. I really liked working with computers, and that’s why I was working with them even when I did not need to be. Today, I look for the same thing in entry level programmers.
    For “second chancers” (people who are making a major career shift), the previous job experience can be useful to know about. There are a lot of other jobs out there that hone the raw skills that go into a good developer, and it gives these folks a big leg up when they start writing code.

    7: Lack of preconceived notions

    The development industry is filled with dogma. And so long as that dogma is well founded, there is nothing wrong with it. Sadly, too many entry level developers parrot something a professor or online pundit has said, without fully understanding the reason or context. Or worse, they are stuck on an idea that isn’t very good to begin with. Good entry level programmers will respect the opinions of their teachers and mentors but be willing to hear new ideas and approaches to problems.

    8: Passion for programming

    It is pretty easy to separate those who went into development for a paycheck from those who went into it because they were interested in it. Finding the folks with a real desire to be in this industry is critical, because when the chips are down, things like “work ethic” and “good attitude” depend heavily on the desire to learn and grow in the industry. And again, entry level programmers are a long term commitment. If they’re just chasing a paycheck, you can bet that as soon as the job you have given them sweetens their resume, they will be headed to greener pastures.

    9: Ability to ask questions

    One of the most important things for an entry level developer to do is to ask questions. When someone lets the fear of sounding foolish get in the way of asking questions, it makes for a rocky relationship. A good entry level developer is willing to ask questions because it is better to spend a few minutes having a discussion than to lose two days trying to track an answer down.

    10: Soft skills

    In many software development shops, the programmers are little more than machines following a blueprint someone else made to crank out code. But most places need programmers to do more than sit at a desk grinding away. In my experience, soft skills, like written and oral communications and the ability to work with others, are much harder to teach than technical skills. If someone lacks these skills, it will be hard to have the risk you take in hiring them pay off in the long run.

    Source: Justin James TechRepublic

    Mars in first color image sent back by Curiosity

    Mars in first color image sent back by Curiosity. 
    New images returned from NASA's Curiosity rover, which landed on Mars Sunday evening, show a three-dimensional view from the rover's left and right front Hazard Avoidance cameras.



    Curiosity's rear left and right Hazard Avoidance cameras acquire black-and-white pictures from 
    left and right stereo "eyes," which are merged to provide three-dimensional information.      



    During Curiosity's spectacular technical landing on Mars Sunday night, the entry, descent, and landing (EDL) required the rover to jettison hardware as it completed each phase of the operation.

    In this wide view of the landing area, taken by NASA's Mars Reconnaissance Orbiter, we can see the four main pieces of equipment, captured by the High-Resolution Imaging Science Experiment camera about 24 hours after landing.

    The darker areas in all four debris spots are from disturbances of the bright dust on Mars, revealing the darker material below the surface dust.




    During Curiosity's descent, the lens cover on the rover's camera got covered with a thin film of dust. Here, we see a comparison between the dust coated lens on the left and the lens after the protective covering was removed. The Hazard Avoidance camera, or Hazcam, took this image of Mount Sharp in the distance on August 6, 2012.



    Curiosity's parachute and back shell are seen on the surface of Mars in this image captured by the High-Resolution Imaging Science Experiment camera on NASA's Mars Reconnaissance Orbiter about 24 hours after the parachute helped gently set the rover on the surface. When the back shell hit the ground, bright dust was kicked up, exposing darker material underneath.


    This close-up view shows Curiosity's heat shield, center, which helped the rover survive the harrowing journey through the martian atmosphere, on the surface of Mars, captured by the High-Resolution Imaging Science Experiment camera on NASA's Mars Reconnaissance Orbiter about 24 hours after landing.



    The impact of Curiosity's sky crane, which helped deliver the rover to the surface of Mars by lowering it the final 20 feet on a tether, exposed the darker material underneath the surface dust when it landed after being jettisoned away from the rover.      




    This picture of the martian landing site of NASA's Curiosity rover puts a color view obtained by the rover in the context of a computer simulation derived from images acquired by orbiting spacecraft. The view looks north, showing a distant ridge that is the north wall and rim of Gale Crater.

    The color image was obtained by Curiosity's Mars Hand Lens Imager on August 6 PT, the first martian day after Curiosity's landing on August 5 PT. It has been rendered about 10 percent transparent so scientists can see how it matches the simulated terrain in the background. The MAHLI image was taken while the camera's transparent dust cover was still on. Curiosity's descent coated the cover with a thin film of dust.

    The computer simulation is a digital elevation model that incorporates data from the High Resolution Imaging Science Experiment and Context Camera on NASA's Mars Reconnaissance Orbiter and the High Resolution Stereo Camera on ESA's Mars Express.

    The peak seen on the left side of the MAHLI image is about 15 miles (24 kilometers) distant with a height of about 3,775 feet (1,150 meters). The box with arrows at the upper left indicates direction. The arrow pointing up is "up" with respect to the gravity of Mars. The arrow pointing to the right is east. North would be an arrow pointing into the image (that is, the MAHLI view is toward the north).

    The MAHLI is located on the turret at the end of Curiosity's robotic arm. At the time the MAHLI image was acquired, the robotic arm was in its stowed position. It has been stowed since the rover was packaged for its November 26, 2011, launch.

    When the robotic arm, turret, and MAHLI are stowed, the MAHLI is in a position that is rotated 30 degrees relative to the rover deck. The MAHLI image shown here has been rotated to correct for that tilt, so that the sky is "up" and the ground is "down." Here, MAHLI is looking out from the front left side of the rover. This is much like the view from the driver's side of cars sold in the U.S.

    The main purpose of Curiosity's MAHLI camera is to acquire close-up, high-resolution views of rocks and soil at the rover's Gale Crater field site. The camera is capable of focusing on any target at distances of about 0.8 inch (2.1 centimeters) to infinity. This means it can, as shown here, also obtain pictures of the Martian landscape. This was the first time the MAHLI focus mechanism was operated since before launch and it performed flawlessly. 

    Recursive Functions


    Recursive functions

    Recursive functions are functions that call themselves. Several problems are naturaly defined recursively. Those problems may be solved by using recursive functions.

    Example: Factorial of a positive integer number.
    0! = 1
    1! = 1
    n! = n * (n-1)! , if n > 1

    int factorial(int val){
    if(val <= 1)  //stop condition.
    return 1;
    else
    return val * factorial(val-1);  //recursive call.
    }

    Stop condition: Condition to stop recursive calling and return. Written before recursive calling.
    Recursive calling: The problem to solve should be simpler than the previous problem. The recursive calling ends at stop condition.

    Advantages: compact code, easier to write and understand.
    Disadvantages: intensive stack usage, recursive functions aren't faster than equivalent non recursive functions.

    Some usage examples: String manipulation, linked list operations, binary tree operations.

    Example: Count number of characters in a string.

    int count(char *st)
    {
    if(*st == '\0')
    return 0;
    else
    return 1+conut(st+1);
    }

    Example: reverse a string.

    void puts_inv(char *st)
    {
    if(*st == '\0')
    return;
    else
    {
    puts_inv(st+1);
    putchar(*st);
    }
    }



    Examples of incorrect recursive functions:

    long int factorial(long int val)
    {
    return val * factorial(val-1);
    if(val <= 1) return 1;
    }

    long int factorial(long int val)
    {
    if(val <= 1) return 1;
    else return val * factorial(val);
    }

    long int factorial(long int val)
    {
    if(val <= 1) return 1;
    else return val * factorial(val+1);
    }

    C function for getting user input


    C function for getting user input.
    Reads up to uinput-1 characters from stdin to uinput, removes \n adn adds \0. 
    Returns number of characters of uinput.

    int getUserInput(char *uinput, int size){

    size_t last;

    fgets(uinput, size, stdin);

    if (strlen(uinput) > 0){
    last = strlen(uinput) - 1;
    if (uinput[last] == '\n'){ //if last char is \n replace with \0
    uinput[last] = '\0';
    } else {
    //no \n in buffer, discard additional characters.
    fscanf (stdin, "%*[^\n]"); 
    (void) fgetc (stdin); // discard \n
    }
    }
    return strlen(uinput);
    }