Friday, April 29, 2011

Hackers vs. Coders

http://blog.amirkhella.com/2011/04/27/hackers-and-coders/
Hackers solving user problems, rather than solving implementation problems.

Why programmers are not paid in proportion to their productivity

http://www.johndcook.com/blog/2009/12/23/why-programmers-are-not-paid-in-proportion-to-their-productivity/
Programmers are most effective when they avoid writing code. They may realize the problem they’re being asked to solve doesn’t need to be solved, that the client doesn’t actually want what they’re asking for. They may know where to find reusable or re-editable code that solves their problem. They may cheat. But just when they are being their most productive, nobody says “Wow! You were just 100x more productive than if you’d done this the hard way. You deserve a raise.” At best they say “Good idea!” and go on.  It may take a while to realize that someone routinely comes up with such time-saving insights. Or to put it negatively, it may take a long time to realize that others are programming with sound and fury but producing nothing

Thursday, April 28, 2011

How to block/detect Adblock by jQuery


<div class="myTestAd" style=" text-align:center;margin:10px">
 <!-- advert code goes here -->
</div>


function TestPage() {
    if ($('.myTestAd').height() == 0)
        alert("You are blocking my beautiful adverts, you swine!");
}

$(TestPage);

http://thepcspy.com/read/how_to_block_adblock/

How to use jQuery Wildcard/Start with Selector

Start with:
$("[id^=partofID]").show();

Wildcard:
$("[id*=partofID]").show();
Attribute Starts With Selector 
[name*="value"]

ASP.NET MVC: Create a Custom ActionResult to return XML

http://www.dotnetcurry.com/ShowArticle.aspx?ID=682