Better HN
topnewbestaskshowjobs
Log inSign up

codegeek

15,869 karma · joined Jul 23, 2012 (14y ago) · 5,253 submissions

SAAS founder. I love to teach what I know even if I am no expert. It is simple. Teaching makes you better. I love to ask the "why" and not just the "what" or "how". I also am a geek and builder by nature.
Submissions

comment 12y ago · link · parent

I would make a couple of assumptions:

- price could be 0.0 for a book

- Total sales means the sum and not count

- Date format will be yyyymmdd (if not, assume that we converted in Oracle or Sybase)

    SELECT a.name, SUM(s.price) FROM authors a
    INNER JOIN books b ON (a.id=b.author_id)
    LEFT OUTER JOIN sales s ON (b.id = s.book_id)
    GROUP BY a.name
    HAVING (s.date >= '20131101' AND s.date <= '20131130')

3752.

10 Signs You're Probably a Techie(cio.com ↗)

1 points · by codegeek · 12y ago · discuss

comment 12y ago · link · parent

Overall a well written article with some solid points and data . However, to my understanding, the article claims that if we praise our kids for their smartness, we are implicitly teaching them not to value hard work and efforts.

It even goes that far by claiming "Giving kids the label of “smart” does not prevent them from underperforming. It might actually be causing it."

Human beings are complicated. Talk about kids; it complicates the situation further. I am a father and I believe in praising with the right attitude. That attitude is "Yes you are good but you are still like many others. Keep going and you are doing a great job". I will go as far as to say that if your kids are under performing even though they are smart, it has nothing to do with your praising but more to do with overall values that are being taught to them by the parents. So go ahead, praise away but teach them the right values by example.

3754.

Hackers stole millions of Phone Numbers and usernames from Snapchat(businessinsider.com ↗)

2 points · by codegeek · 12y ago · discuss

comment 12y ago · link · parent

notice the :)

3756.

Mars One: Human settlement project on Mars(mars-one.com ↗)

2 points · by codegeek · 12y ago · discuss

comment 12y ago · link · parent

I have read this story before and it reminds of the phrase "Necessity is the mother of all inventions". What if that $8M project was never implemented ? The factory worker would then not need to manually go and remove the empty boxes. So one way to look at it is that the $8M project actually created a necessity to be more efficient and gave the guy an idea to not manually move the boxes by installing a fan which in turn solved the overall problem of empty boxes being shipped. May be he would have thought of all this without the $8M project but what are the odds ?

comment 12y ago · link · parent

They do generate it using js and Math.random :)

    <body onload="DrawCaptcha();">
......

    <script type="text/javascript">
	//Generates the captcha function   
	function DrawCaptcha()
    	{	    
	    var a = Math.ceil(Math.random() * 9)+ '';
	    var b = Math.ceil(Math.random() * 9)+ '';      
	    var c = Math.ceil(Math.random() * 9)+ ''; 
	    var d = Math.ceil(Math.random() * 9)+ ''; 
	    var e = Math.ceil(Math.random() * 9)+ ''; 
	       
	    var code = a + b + c + d + e;
	    document.getElementById("txtCaptcha").value =   code;
    document.getElementById("txtCaptchaDiv").innerHTML = code; 
	}
	</script>

comment 12y ago · link · parent

updated

3760.

60 points · by codegeek · 12y ago · discuss

3761.

102 points · by codegeek · 12y ago · discuss

3762.

61 points · by codegeek · 12y ago · discuss

3763.

357 points · by codegeek · 12y ago · discuss

3764.

109 points · by codegeek · 12y ago · discuss

3765.

Poll: How often do you exercise?

34 points · by codegeek · 12y ago · 63 comments

3766.

The real problem with France's 75% tax(cnbc.com ↗)

2 points · by codegeek · 12y ago · discuss

3767.

NSA hacks Microsoft error messages(cnbc.com ↗)

3 points · by codegeek · 12y ago · discuss

3768.

$1,000 Pill For Hepatitis C Spurs Debate Over Drug Prices(npr.org ↗)

5 points · by codegeek · 12y ago · discuss

3769.

Ask HN: Who is working on/knows of WebRTC based projects

5 points · by codegeek · 12y ago · 3 comments

comment 12y ago · link · parent

Primary reason to use Torrents is to get the latest movies that are not out on Netflix yet. I am still waiting for the movie "Escape Plan" and even though i m not big into torrents, it is making me go that route.

3771.

Sandy Hook Elementary School Shooting Report(cspsandyhookreport.ct.gov ↗)

1 points · by codegeek · 12y ago · discuss

3772.

Bye bye bile? Websites try to nix nasty comments(cnbc.com ↗)

2 points · by codegeek · 12y ago · discuss

3773.

Ask HN: How long does GoDaddy sit on a domain after it expires?

3 points · by codegeek · 12y ago · 1 comment

3774.

McDonald's removes worker site after fast food flap(cnbc.com ↗)

8 points · by codegeek · 12y ago · 2 comments

3775.

NLP hacking in Python(blog.scripted.com ↗)

2 points · by codegeek · 12y ago · discuss

3776.

Zuckerberg to sell Facebook shares worth about $2.3 billion(cnbc.com ↗)

4 points · by codegeek · 12y ago · 1 comment

3777.

Pythonic Bayesian Belief Network Framework(github.com ↗)

5 points · by codegeek · 12y ago · discuss

comment 12y ago · link · parent

Whenever I see/hear the word "extreme" in the context of anything, it sounds like a cult to me. Obligatory reference [0]

[0] http://www.youtube.com/watch?v=FO2Abp0FbA0

comment 12y ago · link · parent

"Networking is for people who don't know what they are doing and who don't have better ideas regarding what to do with their time and energy. "

Wait, what ? No. That's not what networking is for. You don't network only because you have nothing better to do and you are at the bottom of the food chain but because networking helps you create influence in a world where ultimately, everything comes down to human beings. Do you believe that successful people don't network anymore ? You are talking about "networking" as if it is a negative last resort kind of thing for losers. Not quite. I bet if you interview any successful person, they will tell you that people skills/networking is one of the most important aspects of success. Go read the book "how to win friends and influence people" to understand what networking is all about.

Networking is not a one time event. It is a continuous process regardless of whether you are rich or poor, success or failure

1
125126127
176