Mindblown: a blog about philosophy.
-
Nested JavaScript inclusions and IE
Consider the following scenario: file.html contains inline JS code to load remote.js and call a function in remote.js And in remote.js function remoteFunction() { alert(‘In remote function’); } You would expect the output in this order and Firefox actually honors this order correctly: Before loading remote.js After loading remote.js In remote function IE on the…
-
Cache Control – Server vs. Client
The server can set Cache-Control as far as it wants but if the client browser (Firefox, IE, etc.) says something else, the client rules. For example: an image with proper server’s Cache-control and Expires headers. If the client says “Cache-control: max-age=0” in its request, a conditional GET request will send and HTTP 304 code would…
-
Writing a persuasive message with AIDA
Writing a persuasive message needs 4 components: Attention = What? You must get audience attention Interest = Okay, then what? You continue to build their interest in the subject Desire = Why? Why should they care, what is in it for them? Action = How? Okay, I’m sold, what’s next? Characteristics of a good persuasive…
-
JavaScript – setTimeout vs. setInterval
If you need to delay execution (like sleep function), use setTimeout. If you need to repeatedly do something (like refresh stats), use setInterval. window.setTimeout(“show();”,2000); // wait 2 seconds then run show() window.setInterval(“show();”,3000); // run show() every 3 seconds
-
Google Ad Manager
98% of Google’s revenue is from advertising so it’s not surprising that Google just released a hosted ad server solution after recent acquisition of DoubleClick. They now have 2 solutions, one developed in-house for the small/medium publishers, one from DoubleClick for larger publishers. It’ll be just a matter of time before Yahoo or Microsoft either…
-
Copycat ad servers
We are flattered to know that our ad serving solution, AdSpeed, got several copycats. It seems like requests to clone certain site are quite normal these days and you can find them easily on the job/project boards for freelancers. Examples: Digg, Youtube all have copycats and that’s simply not the end of the world. Now…
-
Packet loss – mismatch switch speed
Link encap:Ethernet HWaddr 00:16:76:E1:A2:F8 inet addr:xx.xx.xx.51 Bcast:xx.xx.xx.63 Mask:255.255.255.192 inet6 addr: fe80::216:76ff:fee1:a2f8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:11098 errors:2178 dropped:0 overruns:0 frame:1098 TX packets:1493 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:751041 (733.4 KiB) TX bytes:171501 (167.4 KiB) Base address:0x2020 Memory:e0200000-e0220000 If you have packet loss and see RX errors/frame, there could be…
-
Virtual world vs. the real world
A ship drops an anchor and boom, Internet down! Everything is in chaos and the trend is only get worse as we depend more on the Internet for our every day activities. The following diagram shows just how connected and yet vulnerable the whole system is. Optical Cable Undersea
-
Social networking
Just playing with different social network (Facebook, LinkedIn) even I signed up for them a long time to see what I’ve been missing. And I see a reason for using them. Keeping connected with friends is definitely not new, by email, phone, meeting, etc. But it’s time consuming, especially with your larger network. This is…
-
Challenges in hiring
Managing human resource is difficult, very difficult. I believe anyone runs a business would look at job hunting, resumes, cover letter, and everything about working for someone differently. For starter, determine which channels would be the best to announce your job posting, some costs nothing yet very effective, some are expensive yet yield little. Then,…
Got any book recommendations?