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

4261.

No Smoking Outside Starbucks Shops Starting Saturday(npr.org ↗)

6 points · by codegeek · 13y ago · 2 comments

4262.

Report Of Liquid Woolly Mammoth Blood Prompts Clone Talk(npr.org ↗)

2 points · by codegeek · 13y ago · discuss

comment 13y ago · link · parent

You can. Just short the stocks of REITs

comment 13y ago · link · parent

Take a look at Django-CMS (https://www.django-cms.org/en/) if you are interested in Python.

comment 13y ago · link · parent

Agreed in general that you don't need to be a millionaire to do good. But his words "The more he makes, the more good he can do" still makes sense. He is using the word "more" and talking purely in terms of financial ability. In order to do good, money comes second because you have to be *willing" first. But once money comes in the picture, it makes it a hell of a lot easier for someone who makes $100K compared to someone who makes $50K.

4266.

Huge Asteroid Makes Its Closest Pass To Earth Today(npr.org ↗)

5 points · by codegeek · 13y ago · discuss

4267.

Top 1% Control 39% of World's Wealth(cnbc.com ↗)

15 points · by codegeek · 13y ago · 35 comments

4268.

Ask HN: Anyone bought or sold businesses (online/offline) ?

1 points · by codegeek · 13y ago · discuss

comment 13y ago · link · parent

You might want to add it on the official pg thread of suggestions

https://news.ycombinator.com/item?id=363

4270.

Ask HN: How would you calculate a website's valuation/price?

1 points · by codegeek · 13y ago · discuss

4271.

Tesla To Triple Supercharger Network: LA to NY by Year End(cnbc.com ↗)

1 points · by codegeek · 13y ago · discuss

4272.

Nasdaq to Pay $10 Million to Settle SEC Charges Over Facebook IPO(cnbc.com ↗)

1 points · by codegeek · 13y ago · discuss

4273.

Ask HN: How do you provide specifications/RFQ to a web designer?

1 points · by codegeek · 13y ago · discuss

4274.

1976 Apple Computer Auctioned for $650,000 [video](video.cnbc.com ↗)

1 points · by codegeek · 13y ago · discuss

comment 13y ago · link · parent

didnt google but I had to create some example data to think about the solutions. So yes, i would not be able to do it in 5 min.

comment 13y ago · link · parent

Good question. I always find it easier to have the aliases because sometimes, table names are too long for me to remember. Also, tehre are times when we join the same table by itself and at that point, I use x1, x2 etc. In general, aliases always work while direct table names may not work for all cases. So i just keep it simple.

comment 13y ago · link · parent

correct. Edited.

comment 13y ago · link · parent

"List employees (names) who have a bigger salary than their boss"

    SELECT e1.Name FROM Employees e1 LEFT OUTER JOIN     Employees e2
    ON (e1.BossID = e2.EmployeeID)
    WHERE e1.Salary > e2.Salary

"List departments that have less than 3 people in it"

    SELECT d.Name, COUNT(e.EmployeeID) FROM Department d LEFT   OUTER JOIN Employees e
    ON (d.DepartmentID = e.DepartmentID)
    GROUP BY d.Name HAVING COUNT(e.EmployeeID) < 3
"List all departments along with the total salary there"

    SELECT d.Name, SUM(e.Salary) FROM Department d INNER JOIN Employees e
    ON (d.DepartmentID = e.DepartmentID)
    GROUP BY d.Name

"List employees that don't have a boss in the same department"

    SELECT e1.Name FROM Employees e1 LEFT OUTER JOIN        Employees e2
    ON (e1.BossID = e2.EmployeeID)
    WHERE e1.DepartmentID <> e2.DepartmentID

"List all departments along with the number of people there"

    SELECT d.Name, COUNT(e.EmployeeID) FROM Department d 
    LEFT OUTER JOIN Employees e
    ON (d.DepartmentID = e.DepartmentID)
    GROUP BY d.Name

comment 13y ago · link · parent

"provide big data processing for the financial sector " "as close to Wall Street"

Can you clarify who exactly are your target customers. Wall St banks ?

4280.

Vonage: "Unlimited" minutes capped at 3000 minutes.

5 points · by codegeek · 13y ago · 2 comments

4281.

Hot Trend in Automobiles: Not Owning One(cnbc.com ↗)

3 points · by codegeek · 13y ago · discuss

comment 13y ago · link · parent

I love how cell phone companies have "Unlimited" data plans [1]

[1] Speed will be very slow though once you cross x MB or y GB.

comment 13y ago · link · parent

It depends. I usually prefer to stay on the same page. There are use cases however when i am ok with a new window. For example, a help window/pop-up, details on a field while filling out a form (you need it sometimes) etc. Sidenot, the worst thing that I hate: clicking on a link only to find out that the new page now has no menu/link to go back to anything else and rely on the dreaded browser back button.

oh btw, if I prefer a new window, I can always right click and say "Open in new tab" etc.

comment 13y ago · link · parent

reminds of the ad Microsoft is running that they call "Scroogled". They claim that Bing is better than google and even have ppl on TV test it out. I tried taking that challenge and bing fails 95% of the time compared to google results.

comment 13y ago · link · parent

I say go and sell the heck out of it. Even though you already built it before doing validation, it of course will be a waste if you don't even try to do anything now. Look at the bright side, you already have something to show. instead of asking "I am working on xyz that will do abc for you", you can now say "I have xyz that can do abc for you"

comment 13y ago · link · parent

"it’s not things, techniques, or even programming languages that get you rich, it’s people (no one got rich on their own!)."

The best line in this post for me. If only we could all print this and stick on on our walls!!

comment 13y ago · link · parent

"Flask is like Legos in that you choose the pieces to build onto its minimalist stack."

Very well said.

"best for new-comers to web dev to use a full stack that makes decisions for you"

I do not agree. When I started learning web dev. using python, I started with Django. As I moved along trying to hack a simple side project using django, I realized that I was just not understanding the "why" of many things. For example, I tried to create a simple user registration and needed my own fields on the user object. Playing around with User and User_Profile on django, I gave up after a few hours. When I came across Flask, I actually found it easier to do some of my own stuff to understand the whys and then i could always choose a vetted extension/plugin. For example, I wrote my own login system in flask and then switched to Flask-Login later. Btw, this is not about django vs flask but just giving a perspective as a newbie learner.

To newbies, my personal opinion is to understand the "whys" a lot more than just the "what". I actually think that flask is a better way to start learning because it will force you to think about the basics like sessions, user management etc. The more you learn why something works the way it works, the better you will become at it.

4288.

India Bans Captive Dolphin Shows as ‘Morally Unacceptable’(ens-newswire.com ↗)

2 points · by codegeek · 13y ago · discuss

4289.

Tumblr Will Operate Independently: Yahoo CEO Marissa Mayer(cnbc.com ↗)

2 points · by codegeek · 13y ago · discuss

comment 13y ago · link · parent

After working as a contractor (Corp to Corp) for a while, I have realized that death and clients not paying on time is certain in this field. Yes, you can do many things to minimize it but total elimination is not possible.
1
142143144
176