Cool WordPress Related Firefox Extensions

Date: 4 Feb 2010 Comments:0

If you use the FireFox browser and WordPress for blogging platform, here are some FireFox extensions that could make your blogging life easier: 1. WordPress Post FireFox Extension This extension could save you a lot of time, because it allows you to post the text you select from browser directly to your WP blog. URL: [...]

Tags: ,

Freelance Negotiation Tips

Date: 3 Feb 2010 Comments: 1

For couple of years work as a freelancer, I decided to share some tips when you negotiate about a freelance work: 1. Always be Kind I know it’s hard, especially after all day debugging some sh*t. But you should always be kind with your client, that will make the negotiation easier. If you are a [...]

Tags:

PHP Best Practices in Security – Part 2

Date: 2 Feb 2010 Comments:0

If your web server’s access permissions are wrong, it will be easier for somebody to take control over your server. So, next 3 advices are how to fix your access rights: 1. Do not allow PHP files to be writable. 2. Do not allow executable and writeable files in your web root. 3. Do not [...]

Tags:

Simple Tips When Working with jCarousel

Date: 1 Feb 2010 Comments:0

I wanted to create some automatic scrolling list of most popular articles in the home page. I found a jQuery plugin – jCarousel, it was everything I want. The example, I liked most was Carousel with external controls. Here’re few tips how to integrate jCarousel in your website: 1. Reduce the number of javascript and [...]

RSS Directories

Date: 31 Jan 2010 Comments:0

I decided to submit my rss feeds link in some rss directories. Here’s a list of rss feed directories, where you can submit your rss feed info for free: http://www.feedplex.com/add-url.php http://www.rss-network.com/submitrss.php http://technorati.com/ (Requires registration) after login add your blog here: http://technorati.com/account/claim/ http://www.2rss.com/index.php (add RSS feed is the bottom of the page) http://en.newsxs.com/Suggest/ http://www.feeds4all.nl/_NF.aspx http://www.jordomedia.com/RSS/l_op=Addrss.html http://www.feedbomb.com//suggest.php?action=addlink [...]

How to Create a Page in FaceBook

Date: 30 Jan 2010 Comments:0

I wanted to create a page in FaceBook to represent my website. If you also want to create your facebook page, but you don’t know how, you can check the instructions below: 1. Login to your Facebook account. 2. Scroll down to the bottom of the page and click on the Advertising Link: 3. In [...]

ASP.NET md5 function

Date: 29 Jan 2010 Comments: 1

I was pleasantly surprised to found that using System.Security.Cryptography you can create a function that calculates the MD5 hash of string. Here’s an C# example: using System.Security.Cryptography; using System.Text; public string md5(string aString) { byte[] byteStr = Encoding.UTF8.GetBytes(aString); MD5 md5Provider = new MD5CryptoServiceProvider(); return Encoding.UTF8.GetString(md5Provider.ComputeHash(byteStr)); } Here’s the same function in VB.NET: Imports System.Security.Cryptography Imports [...]

Reduce Code Size Tool

Date: 28 Jan 2010 Comments:0

Recently, I added some js files to my website. I notice that the code contains too much comments, white spaces, empty lines, etc. So, I decided to optimize it by removing all that stuff. Instead of doing that by editing the code, I decided to write a tool that can finish this job Here are [...]

Tags:

Bad Habits When You Use a Different Browser than Firefox

Date: 27 Jan 2010 Comments: 1

I use Firefox for my default browser, but sometimes I test my websites under other browsers, very rarely but it happens Then I realize about my bad habits by my Firefox usage: 1. F12 doesn’t work When I want to find the bug in some element  I press F12 to test it with FireBug, but [...]

Tags: ,

PHP Best Practices in Security – Part 1

Date: 26 Jan 2010 Comments:0

Here is the first post of PHP Best Practices Series. We’ll begin with (in my opinion) the most important aspect of web developing – the security. 1. Always Initialize Your Variables Let’s look at the following example: <?php if (check_user($_POST['username'], $_POST['password']) { $login = false; } if ($login) { forward_to_secure_page(); } ?> If the username [...]