Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
deletes
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
32 ms
·
301.
▲
by
deletes
13y ago
Yes, in the passenger version you can't even stand up. You would probably have a huge interactive flat screen in front of you to ease the tension.
302.
▲
by
deletes
13y ago
If we assume they want to hold objects with a size of half a centimeter, a quick calculation shows they are using a sound frequency of 68000Hz. -> 340m/s / 0.005m = 68000Hz. If we limit the frequency to above human hearing rang
303.
▲
by
deletes
13y ago
The link you posted is clearly showing how the internet is centered around the extremely negative. So much coverage over a couple of comments and a misinterpreted comic, while ignoring the explanations and apologies of the afflicted side. O
304.
▲
by
deletes
13y ago
Computer technology covers both software and hardware, and in the latter binary arithmetic must be mastered. For others it is good to understand the fundamentals so in that 0.01 percent of cases you know what are you doing. A general CS cla
305.
▲
by
deletes
13y ago
All the high-school students will be taught the fundamentals of computer technology will become proficient in binary arithmetic and will be trained to perfection in the use of the computer languages that will have developed out of those li
306.
▲
by
deletes
13y ago
Code in the question is a bad test example. As the answer shows, different compilers can optimize the code in different ways to make the outer loop almost meaningless. A better test would have 100000 different arrays to test. Did you enable
307.
▲
by
deletes
13y ago
Already posted about 14(!) times last year. https://www.hnsearch.com/search#request/submissions&q=Why+is... Discussion: https://news.ycombinator.com/item?id=4637196
308.
▲
by
deletes
13y ago
What a great comment from a longtime member of HN. Not only did you make a wonderful example of name-calling and an ad-hominem argument in a single sentence, you also failed to dispute the central argument which was that time is lost while
309.
▲
by
deletes
13y ago
You are informed that the machine is not to be trusted. From then on proceed depending on how secure your data is.
310.
▲
by
deletes
13y ago
The point of assert is to check your code has values within your required parameters, so you the code is easier to debug while coding. Asserts should never be left in your code compiled for release. Even c library assert is aware of that, a
311.
▲
by
deletes
13y ago
Why are agreeing with OP on rule #3 and then saying it is lunatic? Did I miss something? Quote: Better Rule: Use whatever comparison operator is easiest to read in a given situation. One of the very best things any embedded programmer can d
312.
▲
by
deletes
13y ago
That is almost exactly like some code I have written in a project and at that time it did it's job. After revisiting the project months later after I have completely forgotten the details, I got frustrated over the macro and what did i
313.
▲
by
deletes
13y ago
Completely agree with no. 5. After a year with C I realized that macros are only to be used as control structures for headers and ifdefs to enable compatibility. If you need macros to hack C to enable some functionality not inherent to the
314.
▲
by
deletes
13y ago
I have almost immediately remembered this: http://xkcd.com/927/
315.
▲
by
deletes
13y ago
Welcome to HN. I was referring to OPs algorithm which was bogo-bogosort. At first I though my change would not increase the complexity, but I think it is dependent on size of input since for every recursion there is a chance to fail and sta
316.
▲
by
deletes
13y ago
I didn't explain that( was edited ), of course you start at with n at 1,2,3... and so forth. But you can decide when to stop, and so I made two cases. Anyway; you gave me a good exercise to practice on. Thanks.
317.
▲
by
deletes
13y ago
My explanation is not to be understood easily( that doesn't mean it is very clear( or good ) ). Your best bet here would probably be to study big-o notation(+math, function limits) and think of the solution for yourself( there definite
318.
▲
by
deletes
13y ago
(Assuming the programs are of length n generated using random ascii characters 0-127, and the number n starts out at 1, and the next time around is 2, then 3, and so forth.) We are splitting the programs generated this way into two piles. F
319.
▲
by
deletes
13y ago
No, since the complexity of bogosort with sleep is still O(n!), while the algorithm from OP has a higher bound.
320.
▲
by
deletes
13y ago
O(n!/2) == O(n!), the whole paragraph is obviously referring to big o notation. edit:( I have edited the post to respond to your comment, trying to clarify what OP meant; I in no way tried to make your comment "look silly" )
321.
▲
by
deletes
13y ago
My addition to the algorithm: Every time your check if arrays is sorted and it isn't, start from the very beginning throwing away all progress made so far. I doubt this way n == 6 would finish in some normal time period.
322.
▲
by
deletes
13y ago
Doesn't Java still require an instalation of JRE, which is an analogue to .NET? edit: If it somehow didn't need it, I would start considering it as my next language to learn.
323.
▲
by
deletes
13y ago
Not sure if sarcastic. If you have to use a crutch it is probably a hassle to pick it lying on the floor.
324.
▲
by
deletes
13y ago
When I used a bicycle I would often change the position depending on the road type. If in a city the beam would be directed down with a larger angle to prevent from blinding the other drivers and pedestrians, as the road itself is lit and t
325.
▲
by
deletes
13y ago
On a thin bicycle handle? You could if the flashlight is wide enough. ( two pairs seems like a waste ) They should include a pair of slightly equally dented magnets or magnets with a little dent like the one that marks the north, but this o
326.
▲
by
deletes
13y ago
How do you prevent rotation of the magnets when they are stuck together. The light on a bike will experience a force in that direction sooner or later and move. When I saw the dimple I though that was the solution, but it is only a marker f
327.
▲
by
deletes
13y ago
I don't know how long can they keep them ignorant, given the constant technological advancements. For example mobile phones were banned, but are legal now and a lot of people have them.
328.
▲
by
deletes
13y ago
Real life Bespin does sound tempting. I don't see how a leak in Venus differs much from one on Mars. A leak won't immediately exhaust the air, in the worst case( neglecting explosion, and a leak is always confined with sections( a
329.
▲
by
deletes
13y ago
At current technology level Mars seems an easier option. The problem with Venus is an atmosphere containing sulfuric acid and winds reaching 300 km/h, where failure results in a descent to an approximation of hell.
330.
▲
by
deletes
13y ago
Note the OP often mentions that the algorithm doesn't work for lenght == 1, which is unacceptable for a general library function. I didn't read every update of the code but it looks like it is written in c only. Critical code is u
More ›