Better HN
topnewbestaskshowjobs
Log inSign up

cdevfr

8 karma · joined Nov 27, 2014 (12y ago) · 9 submissions

Submissions

comment 11y ago · link · parent

It is basic OOP in C. Look it up.

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

How does that help your point. You still haven't provided any information that would back your claims.

comment 11y ago · link · parent

You are getting some text with a picture, that is not a working site.

comment 11y ago · link · parent

500 Internal Server Error

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

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

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)

comment 12y ago · link · parent

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.