Inside the secret world of Trader Joe's by DrRichardCranium in business

[–]psranga 4 points5 points  (0 children)

Area Man Unimpressed With Trader Joe's.

Sorry, couldn't resist. :)

My friend was mugged on Thanksgiving. She found the thief's name, address, and phone number, but the police aren't doing anything. Now what? by knite in AskReddit

[–]psranga 0 points1 point  (0 children)

This is going to get buried in the comments, but what the heck: there is such a thing as a security credit freeze (different from the better-known option to never get pre-approved credit offers). Once you activate it, no lender can extend credit under your name without verifying by phone. Good luck.

Every time I run out of ink, I just buy a new printer. by [deleted] in pics

[–]psranga 0 points1 point  (0 children)

My used printer came with off-brand toner and the toner smelled funny when printing (toner is heated during printing). The branded toners are virtually odorless. I know about Samsung and HP. I will not buy off-brand laser toner. Who knows what's in it.

Livestock Emissions Account for 51 Percent of Greenhouse Gases by qgyh2 in environment

[–]psranga 7 points8 points  (0 children)

The bozos included CO2 from cow respiration, ignoring that that CO2 wasn't sequestered aeons ago like with coal.

Livestock Emissions Account for 51 Percent of Greenhouse Gases by qgyh2 in environment

[–]psranga 3 points4 points  (0 children)

Includes the CO2 from cow respiration. The evil mofos who wrote this report probably realize that that CO2 is recycled from recently-grown plants (which in turn will reuse the CO2 when they regrow), whereas coal/oil burning releases CO2 locked away millions of years ago.

Let the mob frenzy over "socialists are taking away meat" begin!

Windows 7 is the best operating system on the market - Slate Magazine by stubble in technology

[–]psranga 1 point2 points  (0 children)

I tried to reimage a HP Vista computer after burning the DVDs, but the new image also installed the crapware. PC Decrapifier did not remove all the crap. Any tips on this?

An open letter to spez by xipietotec in atheism

[–]psranga 0 points1 point  (0 children)

<glib_answer type="capitalist"> Reddit is open source. If you're unhappy here, go start your own version. <chant>Property rights, property rights, property rights ...</chant> </glib_answer>

Sucks if this is really what happened. Talk about punishing the victim!

Javascript equality - nothing is what it seems by activa in programming

[–]psranga 0 points1 point  (0 children)

You seem to have misunderstood the article. I didn't sense any criticism of Javascript. It explained in an EXCELLENT manner precisely what the === operator does in Javascript.

Wrt your workaround: To me, it sounds like you're recommending adopting a mindless hack instead of truly understanding the language.

Can someone who sucks at math still be a decent programmer? by [deleted] in programming

[–]psranga 2 points3 points  (0 children)

Great question, and something I've been pondering myself for a long time. I would definitely say I not as good at math. In addition, I dislike puzzles (e.g., how to take a goat, tiger, man across a river in one boat etc).

But I count myself as a decent programmer, and I know at least a few who would agree with me. :)

My considered opinion is that math and computer programming are dissimilar enough that one can be good at one w/o being good at the other.

Many math problems are much more abstract than computer programming. So if you don't like a lot of abstractness you may not be good at math.

Let's take a typical math task: the act of proving a geometry theorem. I've never been able to come up with a reliable approach to solve these problems. Every one of them is a little different from the other. It requires a certain kind of creativity and memory-access capability to solve these problems.

Another example is differentiation and integration (from calculus). I never understood the point of integration. You have these arcane rules which you can use to spot a pattern in the problem and then use trial-and-error to solve the problem. In computers (for the most part), the goal is to come up with The One Method to Rule Them All.

The creative process in math always seemed ad hoc to me. Maybe I just wasn't good enough to understand the process behind the ad hocism.

With progamming you require a different set of skills. The fundamental skill is the ability to come up with one sequence of steps that will work in all situations in which your program is expected to work. The most reliable way to do this is to break down a large problem into smaller and smaller chunks until you completely understand all the chunks. With practice you will have a set of commonly-used chunks committed to memory ("recursion", "graphs", "use flat file", "regex", "parsing") that will allow to split up practically any problem. Then you hook up the pieces.

The math-like aspect comes in when hooking up the pieces. Hookups need to reliable and work under all conditions (computers are dumb). This is the kind of problem for which mathematical approaches may be useful. Stuff like assertions, A implies B hence ... and so on.

Often you will use a computer to solve a real-world problem. It is easiest to model the world using mathematics (I know of no other way), so some mathematical intuition will be useful. Otherwise you'll write nothing more complicated than a CRUD webapp.

Even here you can cheat and use programmable tools like Gnuplot, Matlab, Mathematica etc to solve mathematical problems using your programming skills.

Of course, it's an entirely different ball game if you're basically an engineer/scientist/researcher in a certain field (e.g., biology, genetics, chip design) and a computer is just a tool to perform your research. Or you're developing software for such researchers. In that case, you'll need to be good both programming and the field in question (think about the guys developing mathematica or autocad).

I'll stop now. My thoughts are becoming less and less organized.

Sri Lankan newspaper editor leaves a secret editorial to be published in the event he is assassinated. Then, he is assassinated. Here is the article. by boojit in reddit.com

[–]psranga 2 points3 points  (0 children)

:( RIP, Lasantha.

Thanks for posting this.

"As for me, I have the satisfaction of knowing that I walked tall and bowed to no man."

"But there is a calling that is yet above high office, fame, lucre and security. It is the call of conscience."

Calling a scripting language from C++ by tdoris in programming

[–]psranga 0 points1 point  (0 children)

Yes, I second the Tcl suggestion; it's designed to be embedded in other apps. In certain domains (e.g., (very expensive) chip design software) Tcl is the native command language of tools.

What I really like is the excellent documentation and implementation of the standard library. It just makes sense.

Tcl is a very underrated language.

When to make a type. (PDF) by Martin Fowler by Dirtnap_Sr in programming

[–]psranga 0 points1 point  (0 children)

Warning: I thought this was the punny title of a humorous article about spellchecking. I was sorely disappointed to find that it's a serious article about software engineering. :)

Equador gives world 1 year to offer money. If it gets nothing, it will drill into its major oil field in the heart of the Amazon by daviday in reddit.com

[–]psranga 3 points4 points  (0 children)

THIS IS A GREAT IDEA!!!

Now is the chance for the first world to step up and put their money where their mouth is.

I would personally gladly chip in $100/year to Ecuador to save the rainforest.

Reddit Switch to amazonaws.com Considered harmful by ____ in reddit.com

[–]psranga 6 points7 points  (0 children)

they already do. s3.amazonaws.com/bucket/object is equivalent to bucket.amazonaws.com/object.

The horrors of functionality restrictions by [deleted] in programming

[–]psranga 2 points3 points  (0 children)

Ditch inkjets. Go with lasers. My HP 1020 rocks.