HNHacker News
TopNewBestAskShowJobs

susi22

1,891 karma · joined March 17, 2013

Email: anonymousmd55 at gmail
submissionscomments
susi22··on Terence Tao: the Mozart of maths
FYI:

The publication [1] that improved on the MRI results was the famous paper that layed out the foundation of the what is called "Compressed sampling" / "Compressive sensing". This is the main field of research for Signal Processing folks since around 2006. (Before it was mostly "just" Wavelets for a few decades).

In MRI you sample in the frequency domain (FFT) and compressive sensing can be used since MRI signals (which are structured signals) are sparse in that domain.

[1] Stable signal recovery from incomplete and inaccurate measurements

susi22··on Introduction to Facebook's Flux architecture
Has anybody in the client side community ever made the connection to rules engines?

This flow of logic is awfully close to how a rule engine works. I wonder if people will at some point arrive at it.

There isn't a whole lot of rules engine in JS. Just nools [1] which is huge. I'd love to see a very simple forward chaining rule engine + Immutable + React and see how that would work out.

My guess is that they aren't popular at all because they have the notion of being enterprisey (Drools/Jboss). I'm a big fan of them. They /can/ make life & code very nice and elegant. Maybe somebody writes an JS adapter to clara rules [2].

[1] https://github.com/C2FO/nools

[2] https://github.com/rbrush/clara-rules

susi22··on React Tips and Best Practices
Has anybody in the client side community ever made the connection to rules engines? This flow of logic is awfully close to how a rule engine works. I wonder if people will at some point arrive at it.

There isn't a whole lot of rules engine in JS. Just nools [1] which is huge. I'd love to see a very simple forward chaining rule engine + Immutable + React and see how that would work out.

My guess is that they aren't popular at all because they have the notion of being enterprisey (Drools/Jboss). I'm a big fan of them. They /can/ make life & code very nice and elegant. Maybe somebody writes an JS adapter to clara rules [2].

[1] https://github.com/C2FO/nools

[2] https://github.com/rbrush/clara-rules

susi22··on Amazon to Let Shoppers Bargain for Lower Prices with New “Make an Offer” Option
They've also just started including external websites such as Dell.com to be listed right at their offers. Note, that this will take you to the external website and not go though Amzons checkout:

http://www.amazon.com/gp/offer-listing/B00I053ICY/sr=8-1/qid...

You can see that it sends you to Dell's website.

susi22··on Angular 2 Core
Every Angular documentation page has a link to edit the doc right in github.

The same is true for React but not for Amber nor jQ.

However React's docs are much simpler than Angular since it only provides the View and the docs are only a few pages really.

susi22··on Show HN: ReadMe.io – Beautiful Documentation Made Easy
The most important feature for documentation is /a really good/ search. I can't see anything about searching on the site? Can you clarify?

IMO everybody should use https://readthedocs.org/ for documentation since all the docs will be put into elasticsearch (backed by Rackspace FYI) and the results when searching are of really good quality.

susi22··on Germany turns up pressure in suspected US spy case
Sorry, I meant /this/ spying incident. The minster of the interior already said that the documents didn't really have anything important in it. The guys received ~$25k for the documents. It's not a huge deal actually. It was very very stupid of the American to do this and if I were Obama I'd be mad at the NSA. Why? Because the risk was big but the reward was tiny. You didn't gain much from the documents, yet you now have another huge dent in your relations (again!) and it's starting to piss of German politians & Germans.

America doesn't realize it fully yet, but it's making itself very unpopular in the last 5 years and this will be a huge problem in the future when all that's left is UK, Mexico & Canada (Maybe India) as your friends.

susi22··on Germany turns up pressure in suspected US spy case
Merkel doesn't care that much and she --even though I hate to say it-- is right that we shouldn't. This spying case isn't a big deal. It doesn't hurt Germany. Also the spying on her phone last year. She didn't really care all that much. After all, USA is the biggest partner of the EU/Germany. Germany can't afford a dent in the relationship with the US. It's the US who's providing security to most of the western world. Who's supposed to protect us from Putin? The NATO?

The biggest fear for Merkel is twofold:

- Industry espionage. This would attack Germany at what they're best at and be huge problem. USA has been lucky to not be caught about that (in Germany).

- The much bigger problem for Merkel is however the growing Anti-Americanism in Germany. There has always been a good amount of it. But mostly, Germans see the US as a partner. There is in huge decline and it's a growing problem. Germans are much more serious about their privacy than Americans and the spying scandal didn't help America. Merkel also knows that she has to listen much more to the German public than for instance Obama has to listen to Americans. Germany has a very well functioning Democracy and any pressure from the public will quickly result in resignations or losing the next election. Germany has done this before: Kohl's affair got his party out. The FDP got thrown out of the parliament last year. You can quickly go from 40% to under 20% in Germany. Due to the many US scandals in the last 2 years, Germans see America very very skeptic these days. Der Spiegel yesterday's issue has some numbers: Who should Germany work together with? USA: 56%. Russia: 53%.

If you read many of the forums in Germany you'll see the growing dissatisfaction with the US as a partner. And more and more understanding for Putin these days.

My point of this post is: What this means it that if USA continues to bully the German people, then Merkel will be forced to take action and do something that she doesn't actually want to. She knows very well that America is extremely important and without a good relationship things will get much tougher in Europe/Germany. After all Germany is benefiting from the huge security the US provides to us. But Germans don't think that far ahead and only see the bully in America these days. I hope it doesn't get this far that Merkel is forced (by the German people/media) into getting distance from America since it would hurt both, Germany and the US. I'm very certain that Obama know that Merkel will always be his friend. But I'm not so sure if he realizes that the German people can make Merkel do something that she otherwise wouldn't do.

America: Watch out how far you take the bullying. It might just happen that the next generation of Westerners will end up hating you in 10-20 years down the road. And then, you will have no friends left but only enemies. What Obama and America's government does can be very dangerous for America in the future.

susi22··on No crankshaft, no problem: Toyota's free piston engine is brilliant
Don't forget that for an electric motor you need a sine shaped AC and not DC so it's pretty convenient that this design produces exactly that. Whereas with a "continuous" design you'd need to make it AC.
susi22··on Postmortem for outage of us-east-1
You know what's also fun. Try deleting all files that start with a . in your current directory:

    rm -rf .*
Would you expect this to go UPWARD? I would have never. I.e. even if you're in /x/y/z it will traverse up the tree and start deleting /x and eventually /.
susi22··on Sherpas, Death, and Anger on Everest
I much prefer "Abstieg zum Erfolg", "Bergsüchtig" (Hans Kammerlander) and "Der nackte Berg: Nanga Parbat" (Reinhold Messner). They explain very well what you have to go through and what they did to climb in alpine style. Though, they're in German and I don't think there is an English translation form them. (Looks like Messner has some in English like "All Fourteen 8,000ers")

Best of them was probably "Abstieg zum Erfolg".

susi22··on Reactive UIs with React and Bacon
There is also a todomvc with undo using baconjs. It's pretty neat when you can use Bacon model:

https://github.com/hura/todomvc-react-baconjs

susi22··on Meet the People Taking over Hacker News
"Kat Manalac (katm) and Garry Tan (garry) will be the voice of YC on HN. They'll be the ones who respond to most "Ask YC" posts and individual comments related to YC."

but the guidelines say:

"Please don't post on HN to ask or tell us something (e.g. to ask us questions about Y Combinator, or to ask or complain about moderation). If you want to say something to us, please send it to info@ycombinator.com."

Should they be updated?

susi22··on ASCII Delimited Text – Not CSV or TAB delimited text
Related: This tool:

https://github.com/dbro/csvquote

will convert all the record/field separators (such as tabs/newlines for TSV) into non-printing characters and then in the end reverse it. Example:

    csvquote foobar.csv | cut -d ',' -f 5 | sort | uniq -c | csvquote -u
It's underrated IMO.
susi22··on Image Background Removal
Frankly, I'm not very impressed. This problem is a very very well known problem in Image Processing. Usually people call it background subtraction or the more general form is image segmentation.

There is many really well working algorithms in this field. A google search with the major research conferences (ICCV, ICIP, SIGGRAPH etc) will give you the latest and the greates of these algorithms. You'll also find good (image segmentation) work if you limit the search for csail.mit.edu.

If you want your uploader to help you, you can also go for one of the supervised image segmentation algorithms. Otherwise you'll need an unsupervised algorithm.

Given that the authors also want to detect what is in the image, this might be helpful for them:

http://people.csail.mit.edu/mrub/papers/ObjectDiscovery-cvpr...

This guy is also doing some great work in that field:

http://www.engr.uconn.edu/~cmli/

susi22··on How I Judge the Quality of Documentation
ReadTheDocs [1] is by far the best platform to have documentation. The simple reason: Everything gets into an Elasticsearch server (sponsored by Rackspace) which means you get wonderful full text search (and faceting).

See:

http://read-the-docs.readthedocs.org/en/latest/search.html?q...

[1] https://readthedocs.org/

susi22··on Ways to avoid using the word 'very'
OCR'd it since I'm going to add it to my dotfiles. Might help somebody:

http://paste.ubuntu.com/6949984/

susi22··on Twitter Bootstrap Expo
I wish there was a website which collects decent looking websites which are under the Creative Commons License.
susi22··on Monte Carlo Simulations and Fibonacci: Why Developers Still Need The Basics
Monte Carlo Simulations (MCS) weren't invented to do software testing and I wouldn't really recommend to use it as such. There is better ideas. MCS are used daily for processes/algorithms that are so difficult that a analytical solution is hard or impossible to find. You just throw in some data in your black box and put a "probe" at your variable that you're interested in. Do it many times and you see the pattern (eg. plot a histogram when probing a variable of 1 dimension etc).

If you have an algorithm that you understand and is not too complicated, then I'd argue that MCS are NOT the way to go (maybe in addition but NOT solely). The reason is that due to the law of large numbers it keeps simulating the nice cases instead of the edge cases. Unless you change your input distribution.

I really expected the article to conclude with a link or explanation to Quickcheck [1] since this is exactly what the author is trying to get to (Ie automatically check the edge cases and automatically minimize the input which fails it). Many languages have been porting these ideas. The Scala/Clojure ones are pretty nice.

[1] http://en.wikipedia.org/wiki/QuickCheck

Original paper of 2000:

http://www.eecs.northwestern.edu/~robby/courses/395-495-2009...

susi22··on GitHub goes to school
Side note:

When you have 15 links in one sentence where every word is a link to somewhere and the word actually has no meaning, then I think it's time for a bullet list. It might just make people actually click a link. But all those links in one sentence are of little help IMO.

susi22··on Tex – Show off your best scientific illustration
For those who want to create similar looking (in quality) graphics: Check out asymptote [1] (IMO one of the most undervalued software in the TeX community). It has a pretty nice programming language only made for drawing. It's got types, structs, modules etc and is a real joy to program. It's also very quick to compile which allows for very quick feedback loop (almost "live" editing with a keybinding on vim/emacs)

Of course, if you're already a TikZ pro then just stick with that.

To give you a taste:

http://www.marris.org/asymptote/animations/index.html

http://www.piprime.fr/developpeur/asymptote/surveys-asy/frac... (many more examples)

[1] http://asymptote.sourceforge.net/

susi22··on Lattice Quadrilaterals on Project Euler
Btw, the problem was solved by 61 people so far.

Random thoughts:

I think the mod is just there to distract or for hinting that you shouldn't come up with a brute force method.

Observations:

1. Assume an infinite grid. Add 3 random points _not_ on a line. Clearly, they'll be a convex set (a triangle).

2. Add a 4th point such that it is not on an existing line.

You've now a quadrilateral.

So for the case of Q(2,2) = 94 = choose(9,4) - 32. 32 is the number of points that would make 3 of the 4 points lie on a line.

Come up with a recurrence relations and solve it.

susi22··on JZed.js – The functional JQuery alternative
So you're saying that you shouldn't criticize others just because they're giving it away for free?

If you question that others shouldn't complain about other things then we quickly end up in a world where movie critics can't criticize a movie since they didn't pay for them. Where I can't criticize google since their services are for free.

You should always speak up and voice your opinion. But your argument "don't complain, take it or leave it; it's for free" can't be applied anywhere IMO. In fact, the author should be thankful for any critique he's getting. Not getting any feedback means that nobody cares about your work or doesn't care about you failing.

susi22··on Dual-Pivot Binary Search
A few mistakes in this post IMO:

1. Note that a 3 way pivoting (partitioning or decision) is EXACTLY the same as doing two consecutive 2-way pivoting. Check both functions. They have the exact same # of comparisons and index calculations.

2. Note that Quicksort and Quickselect (QS) and Binarysearch (BS) are very very similar. Quicksort recurses on BOTH partitions whereas QS and BS only recurse on ONE. This is important! You don't care if your pivot in Quicksearch is a little of. You still have to do the work anyways. For QS/BS you do care a lot since the other part gets immediately discarded!

3. Where 2) implies: Quicksort is harder to get non-recursive implementation. You still have to maintain some sort of stack even for the iterative part. Whereas for QS and BS it is very very easy to do an iterative version.

Now notice how you actually worsened the runtime complexity with your new approach:

1. A standard BS discards exactly half the array. Thus, after two iterations you discarded 3/4.

2. Your new algorithm's one iteration is the same as the default BS two iterations but you only remove 2/3.

Conclusion: It makes little sense (other than having fun) to apply this to BS/QS. Though, I like the complexity analysis and the overall post.

susi22··on The "Window Resizer" extension for Chrome now contains malware (2013)
Same with Read later fast: It rewrites all your URLs:

https://chrome.google.com/webstore/detail/read-later-fast/de...

susi22··on EFF has 2x matching donations until Dec 17th
I know my comment has little to do with EFF, but if you feel generous also consider donating to Give Directly. Goodventures will match every dollar for them until Jan 31st:

http://www.goodventures.org/research-and-ideas/blog/our-givi...

susi22··on Ask HN: 15 inch laptop without numpad
Thinkpad T530, the 4th gen CPUs vs 3rd gen CPUs is marginal. I bought one with Full HD for ~$700 and it's a super fast machine.

HTH

susi22··on PostgreSQL: Don't use CHAR or VARCHAR
I have to disagree. You should always put limits on everything, as said nicely here [1]:

"Put a limit on everything. Everything that can happen repeatedly put a high limit on it and raise or lower the limit as needed. Block users if the limit is passed. This protects the service. Example is uploading files of logos for subreddits. Users figured out they could upload really big files and harm the system. Don’t accept huge text blobs either. Someone will figure out how to send you 5GB of text."

Sure, you should ideally do this in your application code. But if there is multiple interfaces (such as a REST api etc) to your database then you have to remember to put them in place everywhere. I don't see a good reason to make a username field to be TEXT instead of a generous VARCHAR(300). If somebody wants to choose a longer username than that, he's probably malicious. It protects you with zero cost and allows you to make some user input sanitation mistakes (we're all humans) in your application code.

[1] http://highscalability.com/blog/2013/8/26/reddit-lessons-lea...

susi22··on Why I Canceled Amazon Prime
Why not use Amazon Lockers [1]?

It's actually sad that it's amazon specific. I'd love to see this rather implemented for the post services like USPS/UPS. In Germany, we have DHL Packstation and you can just have it shipped to those location and pick up your package 24/7. It started getting a bunch of locations in 2004 and nowadays they have them every ~300-500m around big towns (like Munich for instance).

[1] http://www.amazon.com/gp/feature.html/ref=locker_hp_fd?docId...

susi22··on FastR: An implementation of the R language in Java [pdf]
Video presentation for the slides:

http://download.oracle.com/technetwork/java/javase/community...

← PreviousPage 3 of 9Next →