My online adventures and stuff...

1 2 3 4 ... LAST

Monday, July 16, 2012

Salted Password Hashing - Doing it Right

"If you're a web developer, you've probably had to make a user account system. The most important aspect of a user account system is how user passwords are protected. User account databases are hacked frequently, so you absolutely must do something to protect your users' passwords if your website is ever breached. The best way to protect passwords is to employ salted password hashing. This page will explain how to do it properly."

Wednesday, September 14, 2011

Chinese characters in web pages

When including chinese characters in web pages you need to make sure the charset is set to the appropriate format.

I have had success when setting the charset in the head of the document to utf-8.

One thing to note is that the text editor encoding should also be set to the same setting before inserting the characters into the underlying file. This may upset some existing characters such as ' - so check that out. Just have to set the encoding in the text editor to utf-8 and then retype the problem character.

This worked for me.

Monday, March 21, 2011

Incoming Mail and PHP

Saturday, February 26, 2011

Building a Twitter Extension for Google Chrome

OK. This is slightly out of date because toolstrips have been replaced by browser_action. But it has some handy info.

Friday, January 28, 2011

How to fix: Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP ins

I have been running Wampserver. Recently, after some intensive data manipulation phpMyAdmin threw this at me:

"Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly"

What to do?

Go to phpinfo() which you can find by going to the localhost page from the wampserver icon in your taskbar.

Search for "session.save_path". This will be where the session files are saved. Go to the directory indicated and delete the most recent session files.

That's it. Well, it worked for me anyway. Good luck!

Monday, October 25, 2010

Firesheep In Wolves’ Clothing: Extension Lets You Hack Into Twitter, Facebook Accounts Easily

Developer Eric Butler has exposed the soft underbelly of the web with his new Firefox extension, Firesheep, which will let you essentially eavesdrop on any open Wi-Fi network and capture users’ cookies.

As Butler explains in his post, “As soon as anyone on the network visits an insecure website known to Firesheep, their name and photo will be displayed” in the window. All you have to do is double click on their name and open sesame, you will be able to log into that user’s site with their credentials.