News for hackers. Stuff that matters.

cdevfr

Re:Hidden Costs of Memory Allocation on Wednesday December 10, 2014 @10:21AM (#8729575)
It is basic OOP in C. Look it up.
Re:Hidden Costs of Memory Allocation on Wednesday December 10, 2014 @07:14AM (#8728768)
Sure it is possible. Just pass the constructor your type:

my_type* t = New( MyType ) ;

Where MyType passes information to New() of what to create.

...

I don't know what I'm downvoted.

This clearly works. The naive solution without macros would have MyType be a simple integer and New() has a switch statement. But it is easy to avoid that.

Re:The Pirate Bay down, forever? on Wednesday December 10, 2014 @04:12AM (#8728361)
How does that help your point. You still haven't provided any information that would back your claims.
Re:The Pirate Bay down, forever? on Wednesday December 10, 2014 @04:10AM (#8728354)
You are getting some text with a picture, that is not a working site.
Re:The Pirate Bay down, forever? on Wednesday December 10, 2014 @03:05AM (#8728185)
500 Internal Server Error

If the page loads that doesn't mean it works correctly.

Re:The Pirate Bay down, forever? on Wednesday December 10, 2014 @03:00AM (#8728169)
The Pirate Bay earned up to 35 million kronor ($5.2 million) in advertising revenue from the file sharing website, >>>film companies maintained<<<

And literally the second paragraph in your link:

The claims were dismissed by Jonas Nilsson, legal counsel for one of the defendants, Fredrik Neij.

Nilsson argued that instead of being a profits earner most of the work to keep The Pirate Bay running had been undertaken on a voluntary unpaid basis.

"The revenues, which were not very large, went to buying new equipment," Nilsson said.

Re:RNG Party Tricks on Saturday November 29, 2014 @06:44PM (#8675446)
If you know the character length of the text and it isn't too hard. Take the 26 characters + 6 punctuations and try every possible combination. Hamlet has 31842 words, the average word is 5+1 characters, which gives 191052 characters.

32^191052 == 10^(10^5.458731365078367)

Compared to their result

10^(10^5.198179689961317)

Re:Needed: citizen scientists for Higgs hunt on Friday November 28, 2014 @06:15PM (#8672488)
I'm interested in particle physics but still I don't see any motivation to do it. How can I determine I learned something, how can I compare my progress to others. It just feels like I'm doing a captcha for them.

They should licence a form of StackOverflows's system which basically uses a skinner box approach which is very addicting and still rewarding if you get some positive benefit out of it.