Website Optimization
Web Development
|
This article will give you tips and facts about how you can make your website lighter and faster. Website optimization is often underestimated by web programmers but it is very important for 3 reasons:
User Experience
By optimizing your website, it will be downloaded faster and use the cache of the user's web browser to provide a more comfortable user experience while browsing the website.
Bandwidth
Making your website smaller will save you upload bandwidth and your users will save download bandwidth. It's always good to save money... View In Full
 |
0 Comments |
|
|
How to use Memcache on Windows
Web Development
|
I will quickly run you through an example of HOW to use memcache and how it works.
Download Memcache
http://jehiah.cz/projects/memcached-win32/
And load up the .exe - you should just get a blank command box appear - the server is then running on localhost:11211
Install the Memcache extensions in to PHP
If you use something like xamp or easyphp - just enable the memcache exentions (just a case of maybe uncommenting a line or ticking a box like in easyphp).
Code Example
$memcache = new Memcache();
$memcache->connect('localho... View In Full
 |
0 Comments |
8.00 out of 10 |
|
Software engineering <:: before we start::>
Software Development
|
I have been programmer since 2004
And software engineer for only a one year
I will try through some articles to introduce you to software engineering world
BUT Before defining software engineering let me ask you some questions
Have ever developed a huge project with about 10000 lines of code
And let us suppose that you really did, now the next question is raising up
Did you try to change some service in your project after a period “may be a year” so you open those 10000 line of code and start t... View In Full
 |
0 Comments |
4.00 out of 10 |
|
PHP Sessions = Member Database Cache
Web Development
|
Let’s go over what a session is.
Sessions
First you call session_start() which gives you a unique ID such as: dde2ds2g67xs2zxjh89s3j8923
Everything you then save to $_SESSION is saved in a file on the server such as:
$_SESSION['message'] = 'hello';
Would be saved to:
tmp/phpsess_dde2ds2g67xs2zxjh89s3j8923
and next time you call session_start(), $_SESSION['message'] will still exist and will have 'hello' in it!
Database Problem
So, you record a members total page hits on your site, and the last time they made a page hit on... View In Full
 |
0 Comments |
|
|
N-Queens-Series Part I (Only the fittest survive)
Programming
|
Introduction:
This is the first article of a series i'm going to present here.
The entire series will be dealing with the 8 queens problem,or more general the n-queens-problem.
I assume that all of you know what the problem is about.
If not just google it out, there are loads of resources. Also i will shortly explain what it's all about.
So why dedicate quite some articles to this problem?
Well at a first glance it's just a relativly easy scientific problem.
But if you look closer you'll notice that solutions to this problems can... View In Full
 |
13 Comments |
9.67 out of 10 |
|
Speed Up Delivery of your JavaScript Libraries
Web Development
|
Hello,
I am going to show you how to speed up delivery of you external .js files along with examples. I will use the prototype and scriptaculous javascript libraries as a benchmark which contains 8 seperate .js files.
Unoptimized .JS
Here are the results using YSlow to benchmark the speed of the JS files downloading when there is no gzip compression, no cdn, and no minification of the js code:
Response Time (ms): 4477 (all files)
File Size (kb): 248.7
4.4 seconds to download some JS files! Thats 4.4 seconds, on broadband, to wai... View In Full
 |
6 Comments |
6.00 out of 10 |
|
A cool tool ^^
Web Development
|
Address barjavascript: document.body.contentEditable='true'; document.designMode='on'; void 0
If you copy/paste the above code in your address bar, you can visually edit their page-
(like a frontpage setup, whatever) it's cool. You can't save anything(as far as I know)
But I sort of.. stumbled on it. I tested it in Forefox and it works (and whatever works in firefox, usually works in in IE7.) I just thought it was kinda cool
This works on every page I've seen, and it's great fun! What's cool is when you stump the admin wondering how thei... View In Full
 |
5 Comments |
6.50 out of 10 |
|
AJAX - When to use it?
Web Development
|
Recently AJAX has had a lot of hype about how it is used in the whole Web 2.0 scene. But which the great power that AJAX brings to a website, it has the capability to either destroy your site, or turn it in to something to admire!
The uses of AJAX
AJAX should be used to do one or more of the following:
Speed up delivery of content
Since only the portion of the page that is of interest needs to be loaded it means only a couple of kilobytes needs to be downloaded, instead of the whole page.
Reduce server stress
Because only a secti... View In Full
 |
1 Comments |
8.25 out of 10 |
|
Currying in JavaScript: Fun for the Whole Family!
Programming
|
As I've said before, I'm quite partial to JavaScript. Lately, I've been reading about currying functions, so let's see if currying can be done in JavaScript.
The begs the question, What is currying? Currying is a technique to transform a function that takes some number of arguments to a function that takes fewer. The process was named after the logician Haskell Curry. The goal is to get something that works like this:
Figure 1function add(a, b)
{
return a + b;
}
alert(add(3, 4)); // 7
var add_3 = add(3);
alert(typeof ad... View In Full
 |
7 Comments |
9.00 out of 10 |
|
Reading And Programming In Binary
Other
|
Binary is the basis of all systems. The only language that computers know is binary, a two-base numerical system; consisting of only 1s and 0s. For example, here's the number 105 in binary:
1101001
Wait, what?
I'm sure you were thinking that, so let me explain.
A great way to interprete binary is using the "bowl" method. Say you have an infinite line of bowls. Starting with the first one on the left. The first bowl has a value of 1, and each bowl to the left has a value of double of the previous bowl. Next, you have some stones. You... View In Full
 |
3 Comments |
7.00 out of 10 |
|
|
 |
Categories |
 |
|
|