News for hackers. Stuff that matters.

w0000t

Re:C++ Hints on Thursday August 27, 2015 @05:30PM (#10132245)
.
Re:How security flaws work: the buffer overflow on Wednesday August 26, 2015 @08:47AM (#10122511)
What!? Size of the array is always known to the programmer in C. In fact, if the programmer wants to get rid of that information, he/she must deliberately do so. Once one does that, the array becomes useless.

You also haven't explained how would that size information, which we already have, magically solve the problem.

Re:Fix Windows 10 on Tuesday August 25, 2015 @03:18PM (#10118869)
Just a note. The quote Eiriksmal posted is from the section: Why would I NOT want to use Arch?
Re:Fix Windows 10 on Tuesday August 25, 2015 @01:57PM (#10118359)
Re:Fix Windows 10 on Tuesday August 25, 2015 @12:11PM (#10117462)
In my opinion, if those privacy issues bother you, the first step should be an overview of non-Microsoft operating systems.
Re:C++ Hints on Tuesday August 25, 2015 @06:55AM (#10115558)
Yep, C doesn't define that uintptr_t can be modified and converted back to a pointer. It is only for storage.
Re:How to Destroy a Laptop with Top Secrets [video] on Tuesday August 25, 2015 @03:26AM (#10115005)
Since watching CITIZENFOUR I've always wondered, why would they bother destroying their laptops, since it is so easy to make and conceal a copy of those documents.
False. Mill does not do register renaming. ( Or use "lies". I failed to comprehend you second sentence. )

Here is a talk from one of the designers explaining how it is done: https://www.youtube.com/watch?v=QGw-cy0ylCc&feature=youtu.be...

No ordinary registers. Instead you have a FIFO queue( belt ), where every element( register ) is accessible and has a relative address( offset ).

https://www.youtube.com/watch?v=QGw-cy0ylCc&list=PLFls3Q5bBI...

All ASCII characters are easily accessible. Your suggestion is a strawman, most coding is in plain text form and is typed.

I did a quick calculation a while back. I don't want to repeat it, since I lost the source, but the conclusion was that typing speed doesn't matter for programmers, since most of the time they actually think, not type. I.e. the bottleneck is information no the input of it.

I also wish C++ had a large Standard library. Including <vector>, just works, you don't even have to think about it. Now imagine doing the same for <sound> or <window>.
Re:The Manual One-Time Pad on Sunday August 23, 2015 @07:11AM (#10105241)
And prevent learning?

No, what you need to do, is to learn whatever you enjoy, as much as you want in any direction, but recognize your limited knowledge in the field and act accordingly.

Re:Cat purr generator on Sunday August 23, 2015 @06:36AM (#10105195)
So the sound is completely artificial, constructed by you?

( It is very convincing. )

Re:Where should the “6” key be? on Saturday August 22, 2015 @11:40AM (#10102766)
Actually 'b' is at a completely wrong position( on a ordinary keyboard ). It is inaccessible for both hand, without moving your wrist which causes strain.

I have globally remapped 'b' to the right of 'l'. It feels much better. The old 'b' key is now unused.

Re:An Introduction to Quantum Field Theory on Friday August 21, 2015 @02:38PM (#10099436)
I wouldn't call it Ether, since that would imply some absolute reference frame.
Re:Errors and Exceptions on Friday August 21, 2015 @01:44PM (#10099064)
Yes, I did. But so far I haven't been regularly checking printf return value. :-( I wonder if checking the result of every printf or asserting it, depending on the circumstances, would reduce the amount of time spent on writing+debugging the code on the long run.
Re:Errors and Exceptions on Friday August 21, 2015 @01:42PM (#10099055)
That sort of thing is actually a completely valid approach.

You made a small mistake, since fprintf and printf call the same underlying code, the error handling should be either log the error in any way still available, and then depending on the design of the whole program, exit or continue. If printf fails you know exactly what is going on or have to exit. ( And printf would be wrapped in a function if you plan to use it repeatedly. )

Re:Petition UK government to not ban encryption on Friday August 21, 2015 @01:35PM (#10099018)
Thank you. Yes, I meant steganography.
Re:Petition UK government to not ban encryption on Friday August 21, 2015 @10:13AM (#10097570)
That is not what OP is talking about. You cannot get different information out of the same chunk of encrypted data. That would basically make infinite compression.

What the methods you mentioned are doing, is hiding information in places which are marked as: random data no information here. But in reality there is information there. You then need to have dummy information somewhere else.

Re:Petition UK government to not ban encryption on Friday August 21, 2015 @10:05AM (#10097517)
Storing the different information in the same place is impossible. You could use stenography but then anyone with access to the program/source will immediately discover the deceit.

You can use what hiq is suggesting, https://news.ycombinator.com/item?id=10097533, but that is a different method.

Re:Announcing the D-Wave 2X Quantum Computer on Friday August 21, 2015 @06:27AM (#10096755)
http://www.dwavesys.com/press-releases/d-wave-systems-breaks...

This announcement, claims:

Every additional qubit doubles the search space of the processor. At 1000 qubits, the new processor considers 2^1000 possibilities simultaneously, a search space which dwarfs the 2^512 possibilities available to the 512-qubit D-Wave Two.

Since we still aren't able to factor any large numbers with it, those 2^1000 bits don't really work like they say they do. I'm guessing there are many caveats behind their description.

I would appreciate any explanation from an expert.

Re:Errors and Exceptions on Friday August 21, 2015 @05:24AM (#10096625)
The problem is it needs to be applied to every function that returns a value. And I'm pretty sure you can't apply it to C library functions. Gcc seriously needs a global flag for this.
Why did you give up?
This is also addressed in the article.

Reading the title is not enough, you have to read the article.

You missed this paragraph, which occurs in the first 10% of the article.

The second caveat is that the class of functions which can be approximated in the way described are the continuous functions. If a function is discontinuous, i.e., makes sudden, sharp jumps, then it won't in general be possible to approximate using a neural net.

Re:The Strange Appeal of Watching Coders Code on Thursday August 20, 2015 @01:16PM (#10093230)
Can you name the those compilers?
Re:The Strange Appeal of Watching Coders Code on Thursday August 20, 2015 @01:35AM (#10090160)
That is a pretty naive point of view. That amount of know-how, and I'm assuming he knows much more that has presented, is normal for someone who has been programming for 15+ years straight.

If you find yourself still seriously programming after a few years, try evaluating this position then.

Very convincing. Just by skimming over the text( finding key phrases and words ), I would be fooled into thinking it is a real Reddit thread. On average, only by reading at least two complete sentences it is possible to determine that the whole thing doesn't make any sense.
Re:The Weird Abandoned Spaces of Virtual Worlds on Wednesday August 19, 2015 @06:24AM (#10084591)
Don't you have to spawn at the coordinates 0,0, or at the so called "spawn point". How did you start at 5000+?

I'm assuming you used an offline version.

Older »