HNHacker News
TopNewBestAskShowJobs

ntoshev

3,065 karma · joined March 12, 2007

nik@t1mr.com

http://www.underengineering.com

[ my public key: https://keybase.io/ntoshev; my proof: https://keybase.io/ntoshev/sigs/-piodh_N3Iz_KHRDy9q8DwzUm8hyzhfGYMQHzguhJhI ]

submissionscomments
ntoshev··on The Founder Visa (again)
Almost more international == just a little less international
ntoshev··on Mailgun Down – SSL cert is expired
Sure, checking for a string on the web page is also in the basic functionality. We also ping your site every minute, so you'll know about problems immediately.

The advanced (paid) functionality is a restart of your vps or other automatic ssh action trying to recover it when it's down.

ntoshev··on Mailgun Down – SSL cert is expired
We have this at our website monitoring and recovery service https://t1mr.com and it's free.
ntoshev··on Helsinki’s personalized bus service is like Uber for public transit
I'm running a service optimizing deliveries (https://fleetnavi.com, Bulgarian language only although it's fully usable when auto-translated with Chrome). I've been thinking of using the engine to do public transit like this, or a courier service (airbnb for couriers), or a transportation services exchange. Contact me if you think we could work together on something similar.
ntoshev··on It’s Time to Make OpenStreetMap Your Only Street Map
I wonder if there is a way to integrate in OSM automatically gathered data from users smartphones, like Waze does. There seem to be incentives to smartphone app makers to provide that.

Is there any nice description of the ecosystem around OSM data? How do all these companies providing routing or geocoding make money?

ntoshev··on The Older Mind May Just Be a Fuller Mind
That theory would predict that people on the same age, but with bigger vocabulary (or expertise in a particular domain) take more time to pick words (or make decisions in that domain) which is the opposite of what seems to happen in everyday life.
ntoshev··on ForceRank - simpler team decision-making
So, how does it aggregate rankings? Arrow's theorem says there is basically no good way to do it ;)
ntoshev··on Frameworkless JavaScript
Of course. Not using any framework (external or built in-house) would mean that the team didn't find any useful abstractions that could be layered on the raw JavaScript. Very unlikely.
ntoshev··on Show HN: We made 1 app this year
How does it work? Do I have to type in my expenses manually?
ntoshev··on Peter Thiel’s Graph of the Year
That chart compares median income with total student debt. Also the scale for median income is not zero-based. The point is still valid, but this widespread use of misleading charts is awful.
ntoshev··on YC is joining Alexis Ohanian's Without Their Permission Tour
US only?
ntoshev··on Stanford researchers to open source model they say has nailed sentiment analysis
I fed it with "I'm surprised how well it can parse the sentiment of sample sentences I threw at it." and it thought that was negative - so I corrected it. The whole level of interaction and transparency with the model is great. "Buy" occurs 12 times. I wonder if stemming could help.
ntoshev··on Google is defragging Android
Who cares about the tech bloggers? Android customers don't care about fragmentation. They care about having working apps. Developers care about fragmentation, and this approach (unlike updating Youtube in this way) helps with their problem, regardless of what bloggers say and who is in a "war" with whom.
ntoshev··on Dark Patterns - User Interfaces Designed to Trick People
Found it without hesitation. I don't see a better place to put it. It's not a setting, it's an action, related to the Privacy settings.
ntoshev··on Startup advice
50.  You can create value with breakthrough innovation, incremental refinement, or complex coordination.

How can complex coordination create value? An example, perhaps?

ntoshev··on Bookmarking is more complex than you think
My favorite for #4 is Google's +1. You need a Google Plus account. +1 is like Facebook like, only it boosts the ranking of that link whenever you are logged in and search. Not every page has a +1 button, but there is a chrome plugin for that. Side effect: the links you +1 are boosted for your G+ friends too, so the bookmarks are sort of public.
ntoshev··on My customer wants me to record a video of how I develop his software product
It may be a difficult client, but I can also see someone doing this out of curiosity: would it work? In a freelance relationship that is just beginning, there is not much to lose.

Historically computers have made micromanagement easier. Think about company vehicles being tracked by GPS. It also enables managers to manage more people more effectively, have a flatter organisational structure. IT people are doing this to others, there is no reason to expect it wouldn't happen to us :)

ntoshev··on Travelling Salesman – Official Movie Site
A "review" from Luis Guzman, https://plus.google.com/u/0/103069458643902853500/posts/Jg8R...:

So what is the movie about?

"Travelling Salesman is an intellectual thriller about four mathematicians hired by the U.S. government to solve the most elusive problem in computer science history -- P VS. NP. The four have jointly created a "system" which could be the next major advancement for our civilization or destroy the fabric of humanity.

The solution's immediate use would exist within computer science. However, it's application would soon extend to countless other disciplines. For example, by utilizing the solution to P vs. NP, a hacker can crack advanced encryption codes within seconds--a task that now takes weeks, months, or even years. He could break into La Guardia's air traffic control or China's communication grid. But the mathematical algorithm would also serve as the basis for accelerated biological research, curing diseases such as AIDS and cancer."

So what is the P vs. NP problem?

Well, the P vs. NP problem is a real mathematics problem and is one of the seven Clay Mathematics Institute's Millennium Problems. A correct solution to any of the problems results in a $1,000,000 prize.

The Clay Institute states: "Suppose that you are organizing housing accommodations for a group of four hundred university students. Space is limited and only one hundred of the students will receive places in the dormitory. To complicate matters, the Dean has provided you with a list of pairs of incompatible students, and requested that no pair from this list appear in your final choice. This is an example of what computer scientists call an NP-problem, since it is easy to check if a given choice of one hundred students proposed by a coworker is satisfactory (i.e., no pair taken from your coworker's list also appears on the list from the Dean's office), however the task of generating such a list from scratch seems to be so hard as to be completely impractical. Indeed, the total number of ways of choosing one hundred students from the four hundred applicants is greater than the number of atoms in the known universe! Thus no future civilization could ever hope to build a supercomputer capable of solving the problem by brute force; that is, by checking every possible combination of 100 students. However, this apparent difficulty may only reflect the lack of ingenuity of your programmer. In fact, one of the outstanding problems in computer science is determining whether questions exist whose answer can be quickly checked, but which require an impossibly long time to solve by any direct procedure. Problems like the one listed above certainly seem to be of this kind, but so far no one has managed to prove that any of them really are so hard as they appear, i.e., that there really is no feasible way to generate an answer with the help of a computer. "

So what is the travelling salesman problem?

Well, the travelling salesman problem (TSP) is also a real mathematics problem and it asks the following question: Given a list of cities and the distances between each pair of cities, what is the shortest possible route that visits each city exactly once and returns to the origin city? It is an NP-hard problem in combinatorial optimization, important in operations research and theoretical computer science. So you can see it is related the the P vs. NP problem!

In the book, In Pursuit of the Traveling Salesman: Mathematics at the Limits of Computation by William J. Cook, it states: "Selecting the best tour through a set of points and knowing it is the best is the full challenge of the TSP. Users of a brute-force algorithm that sorts through all permutations can be certain they have met the challenge, but such an approach lacks both subtlety and, as we know, practical efficiency. What is needed is a means to guarantee the quality of a tour, short of inspecting each permutation individually. In this context, the tool of choice is linear programming."

So what is linear programming?

Well, linear programming (LP), or linear optimization, is not computer programming! It is a mathematical method for determining a way to achieve the best outcome (such as maximum profit or lowest cost) in a given mathematical model for some list of requirements represented as linear relationships. Linear programming is a specific case of mathematical programming (mathematical optimization).

In the book, In Pursuit of the Traveling Salesman: Mathematics at the Limits of Computation by William J. Cook, it states linear programming is: "an amazingly effective method for combining a large number of simple rules, satisfied by all tours, to obtain a single rule of the form 'no tour through this point set can be shorter than X.' The number X gives an immediate quality measure: if we can also produce a tour of length X then we can be sure that it is optimal."

The founders of this subject are Leonid Kantorovich, a Russian mathematician who developed linear programming problems in 1939, George Dantzig, who published the simplex method in 1947, and John von Neumann, who developed the theory of the duality in the same year.

So what is the simplex method?

Well, the simplex method, or simplex algorithm, is just a popular algorithm for linear programming! Dantzig provided an original example of this method by finding the best assignment of 70 people to 70 jobs to exemplify the usefulness of linear programming. The computing power required to test all the permutations to select the best assignment is vast; the number of possible configurations exceeds the number of particles in the universe. However, it takes only a moment to find the optimum solution by posing the problem as a linear program and applying the Simplex algorithm! In 2000, it was named one of "The Top Ten Algorithms of the Century".

Who was George Dantzig?

There's a well-known account of Dantzig, "the father of linear programming," during his time as a mathematics student at UC Berkeley. One day, Dantzig was running late to a class taught by the famous Jerzy Neyman. When he arrived, he saw two problems on the blackboard and scribbled them down as homework problems. After class, Dantzig began working on them and turned in the solutions several days later.

Six weeks later, on a Sunday morning, Dantzig was woken up by the noise of someone banging on the door of his house. He opened the door and was surprised to see his professor, Jerzy Neyman, at the door holding a handful of papers. His excited professor said, "I've written an introduction to one of your papers! Read it so I can send it out right away for publication!"

As it turns out, these two problems on the blackboard were not homework problems, but famous unsolved problems in mathematical statistics. Without knowing it, Dantzig solved two unsolved statistics problems for homework.

Later on, when Dantzig was having difficulty finding a topic for his thesis, Neyman told him to just put his solutions to those two problems into a binder and that Neyman would accept the solutions as Dantzig's thesis!

"Sounds like magic, but linear programming is indeed the method adopted in all of the most successful exact TSP approaches proposed to date. Moreover, its application to problems beyond the TSP has made it one of the great success stories of modern mathematics."

References: http://www.travellingsalesmanmovie.com/ http://www.claymath.org/millennium/P_vs_NP/ http://books.google.com/books/about/In_Pursuit_of_the_Travel... http://en.wikipedia.org/wiki/Travelling_salesman_problem http://en.wikipedia.org/wiki/Linear_programming http://en.wikipedia.org/wiki/Simplex_algorithm http://en.wikipedia.org/wiki/George_Dantzig

ntoshev··on Things I set on new servers
Why would a browser use HEAD instead of conditional GET to re-request cached content? It would require one more round-trip if a refresh is actually required.
ntoshev··on Ask HN: How much of your time is spent on classical algorithmic problems?
It's off-topic, but could anyone critique a rule for (not) naming things I came up with recently:

If something (an expression or function) is used more than once, give it a name. If it's used once, name it iff you would otherwise comment to explain it. Otherwise, inline it.

ntoshev··on Ask HN: How much of your time is spent on classical algorithmic problems?
Can you show some code that is the result from this process?

It seems really interesting, although I've always consciously fought with the tendency to overformalize problems I don't yet understand well.

ntoshev··on GitHub was unavailable due to what appeared to be another DDoS attack
Isn't Cloudflare pretty much a general purpose solution for DDoS? Is there any reason not to use them if you're often a target and don't want to deal with it yourself?
ntoshev··on DuckDuckGo Architecture - 1 Million Deep Searches a Day and Growing
I think people choose DDG for its emotional appeal (they like that it's a small company, privacy benefits, all kind of reasons besides search quality). Later they rationalize about it being better.

Frankly, I think this is morally wrong. When they use an inferior search engine, or inferior maps app for that matter, people are dumber than they might otherwise be. They miss a boost of intelligence, perhaps not IQ, but they are less effective operating in the real world. The world as a whole is worse because of it.

ntoshev··on DuckDuckGo Architecture - 1 Million Deep Searches a Day and Growing
To make Google search for the exact word you type, put it in quotes.
ntoshev··on Pinterest Cut Costs from $54 to $20 Per Hour With Automatic Shutdowns
How do you decide whether to run a spot or on-demand instance to handle dynamic load? What happens if spot instance cost suddenly spikes?

Also, how do you use regions/availability zones?

ntoshev··on Pick Your Battles
Great advice, but I've heard it before. Any chance of an article describing what really happened for each of the problems listed, and how you solved it?
ntoshev··on YC W13 Will Be Smaller
That's pretty much what http://www.couchsurfing.org do, but for free. Clearly there is both supply and demand for such a marketplace. Were airbnbs or YC aware of couchsurfing?
ntoshev··on YouTube's top 1,000 channels average $23K each month in ad revenue
Trying to make sense of a power law distribution using average of the head is an interesting crutch, but a fairly crude one.

What are other ways to intuitively understand power law distributions? Where are the raw data for this one?

ntoshev··on Guido van Rossum's Performance tips for Python
Even in Java you don't need the trivial getters/setters anymore. Everyone uses an IDE with refactoring capabilities, so the change can be done instantly when necessary. Why uglify your code in advance?
ntoshev··on Show HN: Matches.js -- Powerful Pattern Matching for Javascript
I've played a bit with pattern matching as a DSL on top of JavaScript: http://jsfiddle.net/ntoshev/q8Ayw/1/
← PreviousPage 4 of 34Next →