I purchased a Windows 7 upgrade recently (my computer came with a full version of Vista). I got a new hard drive and did a clean install of Windows 7. When I attempted to use the key in the installation process, it told me the product key I was using was not valid. From the MS site it looked like I might have to install Vista first. Turns out this is not the case, it’s actually fairly easy around this.

*NOTE: Only follow these steps if you have a VALID Upgrade (I.e.: You legitimately own the previous full version you’re upgrading from)

This is what I did to solve the problem:

1. Do a clean install of Windows and do a keyless installation (I.e.: When it asks you to put in the key, just uncheck the “Validate Windows when I’m online” box and don’t enter the key; click “Next”)Once you’re in Windows, you’re going to have to do some tweaking to “trick” it into letting you active Windows with the Upgrade key. To do this:
2. Once you’re at your desktop, run Command Prompt as Administrator (click Start, then type ‘command‘ in the Search box. You should see Command prompt on the list. Right-click it and click “Run as Administrator”. Click“Yes” on the Security Prompt).
3. At the command prompt, type: regedit
4. Once in Registry Editor, navigate to this key:
HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/CurrentVersion/Setup/OOBE
In that folder, look for the item MediaBootInstall
5. Double-click it and change the value to 0
6. Close out of Registry Editor. You should still have the Command Prompt open. Now, at the Command Prompt, type the following:
slmgr /rearm
7. It should show something that tells you the command was successful.
8. Restart the computer. Then, go to the Activation screen (Click Start, Right-click Computer then click Properties. Scroll to the bottom and choose “Activate my copy of Windows”)
9. Enter your Upgrade product key and it should activate successfully!

mariano/node-db-oracle – GitHub

11 Jan 2012 In: Node JS

db-oracle: Oracle database bindings for Node.js

For detailed information about this and other Node.js database bindings visit the Node.js db-mysql homepage.

INSTALL

Before proceeding with installation, you need to have the OCI instant client libraries and include files. In order for the installation script to locate them properly, you’ll need to set the OCI_INCLUDE_DIR and OCI_LIB_DIR environment variables. For example:

$ export OCI_INCLUDE_DIR=/opt/instantclient/sdk/include/

$ export OCI_LIB_DIR=/opt/instantclient

Once the environment variables are set, install with npm:

$ npm install db-oracle

QUICK START

var oracle = require(‘db-oracle’);

new oracle.Database({

hostname: ‘localhost’,

user: ‘root’,

password: ‘password’,

database: ‘node’

}).connect(function(error) {

if (error) {

return console.log(“CONNECTION ERROR: ” + error);

}

this.query().select(‘*’).from(‘users’).execute(function(error, rows) {

if (error) {

return console.log(‘ERROR: ‘ + error);

}

console.log(rows.length + ‘ ROWS’);

});

});

LICENSE

This module is released under the MIT License.

 

information has been taken from ‘https://github.com/mariano/node-db-oracle’

CSV (comma-separated values) is the most widely supported format for transferring tabular data between applications. The ability to export data in CSV format is a useful feature for many programs, and is becoming increasingly common in web applications. This page explains how to use PHP to create CSV files, and how to ensure that your visitor’s browser offers to download the file instead of displaying it.

The code

The following code assumes that the data to be exported are stored in a MySQL database, but it can easily be modified to work with other data sources, and hence serves as a general template:


// output headers so that the file is downloaded rather than displayed
header('Content-Type: text/csv; charset=utf-8');
header('Content-Disposition: attachment; filename=data.csv');

// create a file pointer connected to the output stream
$output = fopen('php://output', 'w');

// output the column headings
fputcsv($output, array('Column 1', 'Column 2', 'Column 3'));

// fetch the data
mysql_connect('localhost', 'username', 'password');
mysql_select_db('database');
$rows = mysql_query('SELECT field1,field2,field3 FROM table');

// loop over the rows, outputting them
while ($row = mysql_fetch_assoc($rows))
fputcsv($output, $row);


The string ‘data.csv’ on line 3 is the name the browser will suggest for the downloaded file. The array literal on line 9 contains the column headings; this line should be omitted altogether if you do not wish to include column headings. The strings on lines 12 to 14 should be changed to the appropriate connection parameters and query string for your database. In a real application the database connection parameters should be defined as constants in a separate configuration file.

This article is about a serious issue with Windows 7 and Apache which was really really bugging me and caused a lot of time loss on a critical project so hopefully this will help anyone whos having the same problem..

Problem:

Installed a clean copy of windows then as required in my project installed the LAMP stack which we all know usually works out the box. after reading loads of forums about PHP5.3+ having issues with communicating to MySQL i figured it could be part of the problem so ran through their forums trying fixes and nothing worked. for some magical reason i had the internet disconnected as i just turned on the laptop executed the localhost and boom! instantly loaded including all the content from the database.

to my surprise i then figured it was a internet / apache issue connected the internet back up and loading time took a good 1-2min… then disconnected and had a instant load. so as anyone would do i disabled the firewall thinking there was some kind of interferance at no result it still failed to load i then blocked all port 80 going in/out and still no joy. i then reverted all the settings back to default to remove the blocked port 80s and any others i had put on.  to only find out that MySQL  5.5 was for some reason communicating to the outside world so blocking port 3306 for outgoing instantly took my website back to life. giving me loading times of around 200 – 600ms.

Solution:

Block port 3306 for outgoing data.

happy developing everyone, hope it solved your problems like it did mine.

Boost Speaker Volume

Enter the dialer
##634# –> Call
*#0002*28346# (if no response try *#0002*28345#)
Click Get under the Device Gain (max/min)
In the first box keep the number 7
In the second box put 16000
In the third box put 0
Click Set
Click Start
Click the home button
Restart your phone. To verify the setting took click the get button and it should show your values

Boost Headphone Volume

Plug in headphones
Enter the dialer
##634# –> Call
*#0002*28346# (if no response try *#0002*28345#)
Click Get under the Device Gain (max/min)
in ‘device gain’ leave number 5, set 1100 (max) and -1100 (low)
Click Set
MAKE SURE AUDIENCE.CFG IS ON
Click Start
Click the home button
Restart your phone. To verify the setting took click the get button and it should show your values

JD Williams is an online clothing retail giant with over 50 different brands and a business of around £800million per year one of their well known brands are SimplyBe.co.uk and JD Williams. While working with JD Williams the languages I focused on was JavaScript utilizing the jQuery framework creating custom made plug-ins that are used around their whole website. My role with JD Williams was to turn the network of brands into an interactive web experience for their customers creating feature rich JavaScrpt functionality. I worked alongside a wide range of java developers providing them with support for implementing the applications designed into their java Web Sphere environment using Eclipse RAD. Using Eclipse RAD allowed me to learn about CVS, Java and Struts. There were a number of development languages I used while working at JD Williams they are as follow PHP, MySQL, jQuery, Dojo, HTML, CSS, Photoshop and illustrator.

Promethean Planet

31 Mar 2011 In: Portfolio

Working with Promethean I worked on both front and backend development. I worked on creating the core functionality and user interaction attaching my backend php code to the front end jquery functionality creating rich interfaces. The backend consisted of ASP, PHP, Microsoft SQL server and MySQL.

TBG Digital

31 Mar 2011 In: Portfolio

TBG Digital are a media agency who design applications and animations for large companies like Vodafone. Working with TBG Digital I created a feature rich template application from scratch which has allowed them to create dynamic landing pages for Facebook. The application was developed using LAMP stack and also used jQuery to create the rich interface which is fun and interactive to use.

Orphanage Outreach

31 Mar 2011 In: Portfolio

Working with a company in Arizona America I worked on developing Facebook applications. I developed 3 fully working facebook applications for an orphanage in the Dominion Republic allowing them to utilize the facebook audience. These were fun interactive applications made to attract users to their website. Developing these applications I used FBML, FBJS, PHP and MySQL.

Ello U

31 Mar 2011 In: Portfolio

ello-u is a social network site with a rich interface using jQuery and Object Orientated PHP. The social network has a Oracle database allowing the use of Stored Procedures. MVC is used to create simple readable links as well as a structured backend layout and a plugin system all made from scratch using jQuery as the only front end framework and no such backend framework. Its currently taken myself 4 months to get as far as it has already being the only developer having features like a fully functional profile page, jQuery image uploads, message system and also a hotdeals application as well as a fully integrated wallpost and comment system all made from a single idea.

About Daniel Noormohamed

I am an expert level developer focusing on both front and backend developing. Theres a huge number of languages I use to develop with the main being PHP, MySQL and jQuery. I also have experience in building with Oracle PLSQL via PHP creating more powerful applications and modules.

Partnerships

Working with a massive number of large companies I have been able to secure partnership in a company called ello-u.com a super social networking site which is about to hit the social world. features rich functionality to give the user a better more powerful experience and less clutter and hassle. Give that user the real social experience they were originally after.


Sponsors