Archive for June, 2005
speed up firefox
June 10th, 2005
saw this on my board and i tried it out. you can really tell a difference in the loading speed of firefox! not sure what the drawback is. if you do, please share.
1.Type “about:config” into the address bar and hit return. Scroll down and look for the following entries:
network.http.pipelining
network.http.proxy.pipelining
network.http.pipelining.maxrequests
Normally the browser will make one request to a web page at a time. When you enable pipelining it will make several at once, which really speeds up page loading.
2. Alter the entries as follows:
Set “network.http.pipelining” to “true”
Set “network.http.proxy.pipelining” to “true”
Set “network.http.pipelining.maxrequests” to some number like 30. This means it will make 30 requests at once.
3. Lastly right-click anywhere and select New-> Integer. Name it “nglayout.initialpaint.delay” and set its value to “0″. This value is the amount of time the browser waits before it acts on information it receives.
*info from forevergeek.com
quickly fill an array
June 9th, 2005
i’ve been wondering what’s the quickest way to fill an array with a constant value? sometimes the code is necessary. for example, i have X number of items in an array and i wish to put them evenly into an table. to call another function, i need to pass in an array of values and an array of table width. well in my case, i just need to fill an array for table width with something like
$table_width = array('50%', '50%');
here’s my code to fill an array assuming $num_cols contains the number X.
$dummy = range(0, $num_cols - 1);
foreach($dummy as $val) {
$width_per[$val] = round(100/$num_cols)."%";
}
Is there a faster way to do this?
i made a font
June 4th, 2005
i made a pixel dingbat font using this page.
pixelstarheart – you should use it with 10px as the font size in photoshop for graphic purpose only!
a taste of shanghai
June 3rd, 2005
OMG i can’t look at this any more. i want to go to SHANGHAI RIGHT NOW!!

