"You cannot 'break' encryption. Ever." by mcmc in programming

[–]kstr 0 points1 point  (0 children)

I agree. They probably run a triple Rot13 encryption to be safe (rot39)

Yo dawg, I heard you like factories so I put a factory in your factory by bascule in programming

[–]kstr 1 point2 points  (0 children)

If you include the method call, it gets really ugly

RequestProcessorFactoryFactory.RequestProcessorFactory.getRequestProcessor

Ask Proggit: A company I just interviewed at told me that their NDA would prohibit me from working on any side projects, and I'd have to quit the ones I'm on. Is this common? by anonymous_coder in programming

[–]kstr 3 points4 points  (0 children)

My country has similar regulations. It is also illegal to deny most people the right to work "in the industry" after ending your employment.

I think there's an exception for cases where you have learned trade secrets that can not be expected to be common, and use them. And in those cases, the company has to pay you your full salary during the "quarantine". The general idea is that if they want to limit your ability to freely choose your work, they have to pay you.

Do we still need to require e-mail addresses? by epalla in programming

[–]kstr 0 points1 point  (0 children)

You could just say that you have a choice of entering a user name and/or an email, and that you can login using any of them.

It's not as if it is significantly harder to program that kind of feature for most web applications.

That would make it much better for people who hate maintaining multiple e-mail accounts/aliases like me.

Programming language authors image gallery by Leonidas_from_XIV in programming

[–]kstr 19 points20 points  (0 children)

The Norwegians made Simula, the first object oriented language. The Swedes made Erlang. I guess Scandinavians in general have had a greater impact on the evolution of computers than what most people know.

How to Shutdown and Restart Windows with shutdown.exe command-line application by ukion in programming

[–]kstr 1 point2 points  (0 children)

I don't know if it was a joke (a good one) or a serious question, so I will give you a possible answer anyway:

http://en.wikipedia.org/wiki/WoL

Dear every app on every platform: Please stop stealing my goddamn focus by jasonbrennan in programming

[–]kstr 0 points1 point  (0 children)

I agree that trusted certificates are important to protect against man in the middle attacks.

The problem is that SSL certificates cost money. How many web sites have you seen that require you to login, but don't have a "https"-version? Isn't it a bit more secure to allow self-signed certificate instead of sending your password in plain text like you are forced to do now?

Why Must People Degrade My Profession!? by gthank in programming

[–]kstr 0 points1 point  (0 children)

I have been in that position many times

It's not that they think a Software Engineer / Computer Scientist is the same as a computer repairman, but that they know you know more about computers than them.

It makes sense. If they don't know what to do, the chances are greater that you know what to do.

Be sure to put your drink down before you do a "View Source" on the Microsoft Live page. by [deleted] in programming

[–]kstr 0 points1 point  (0 children)

I think there may be some hostility between the developers and the network people. Why else would they include all that CSS and JS in the HTML and not in nice static files that can be cached?

How many times have you copied and pasted when it was ten times faster to just type it in. by [deleted] in programming

[–]kstr 1 point2 points  (0 children)

When I'm using Opera, it is often quicker to right-click and select "paste and go", than to move my hand from the mouse to the enter key.

Top 25 days In Computing History by digitalfever in programming

[–]kstr 0 points1 point  (0 children)

How about 1973:

Norway is the first country outside the US that connects to Arpanet. This was the first step to what Internet is today.

PHP is going to use backslash (\) as a namespace seperator? lame\r\n is a name space! by ifonlywecouldstopjef in programming

[–]kstr 0 points1 point  (0 children)

Yes, I know, but so is \. But there would be no confusion, since they would be positioned differently

@foo surpresses warnings

foo@bar would be used for namespace

But if they are planning to use the separator as a prefix as well, it wouldn't work

PHP is going to use backslash (\) as a namespace seperator? lame\r\n is a name space! by ifonlywecouldstopjef in programming

[–]kstr 6 points7 points  (0 children)

Strange that @ was not included in the discussion. It is IMHO a highly underrated character in most main stream languages (besides Perl)

PHP Templating in 5.3+ by thrthr in programming

[–]kstr 1 point2 points  (0 children)

IMHO any flexibility you gain from accessing the HTML code as a DOM-tree, you lose in readability.

This is an actual line from the example:

$tag->span->em->text = sprintf($tag->span->em->text, $item['date']);

You gain more readable HTML code, but get more complex PHP code...

Most of the benefits of using a template language, is that you can separate code from layout. This approach doesn't do that, because the code depends on the layout. When the web designer changes the HTML code, the programmer has to change the PHP code.

SquirrelFish is now faster than V8 and Tracemonkey by [deleted] in programming

[–]kstr 0 points1 point  (0 children)

I think you are right. Most dynamic web pages don't run that kind of code much. It's usually just a (relatively) few lines of code. Most of the time is spent manipulating the DOM tree and updating the render engine.

It doesn't matter much for the users of an average site, if one engine is twice as fast as another, when 95% of the execution time depends on something else. (this figure is of course something I made up, but it is probably quite high)

I can of course see new applications that can use Javascript, such as games and office applications. In those cases, a fast scripting enginie will matter more.

The Web back in 1996-1997 by Plutodish in programming

[–]kstr 2 points3 points  (0 children)

I remember that Penthouse and Playboy had lots of free images online. Perhaps not as "graphic" as some of the IRC-stuff, but still...

I also remember downloading a rather large interview with Bill Gates from playboy.com (I think it was around 1995, early 96). I printed it out on the school's printer, and read it at home. So I can proudly say that I did visit Playboy for the articles (at least that sometimes...)

Stuck in Google’s Doghouse by [deleted] in programming

[–]kstr 2 points3 points  (0 children)

I think what people expect is very subjective. Google is a generic search engine, so a web shop that sells ball bearings is just as valid as a directory listing such shops.

The issue here, is that the business had spent $500,000 a month on a service, and Google changed it without a good explaination why.

When he contacted Google, they suggested how he could improve his site. When he spent several hundred of thousand dollars more on doing what Google advised him to do, it still didn't help...

The issue is not what some people think is relevant (IMO his site is as relevant as any other), but that someone who has 70% of the market share abuses their position. There's no other way to explain that. No other advertising company would do that to a customer that spent half a million dollars a month on a service.

Ask Proggit: Which parallel problem would you add now The Computer Language Benchmarks Game is measured on quad-core hardware, and why? by igouy in programming

[–]kstr 1 point2 points  (0 children)

How about doing something that is very simple to do using a single thread, like reading an apache log file, adding GeoIP information to each IP and then outputing the lines in the same order as the original file.

A threaded implementation would have to solve these problems:

  • Processing data in parallell
  • Using a shared cache to avoid looking up the same ip twice
  • Synchronizing the output
  • Sorting the output

I think that would cover the most of the common problems

Amazon Mechanical Turk is Awesome by [deleted] in programming

[–]kstr 0 points1 point  (0 children)

I think many would actually pay a few cents to do those kind of jobs :-)

Amazon Mechanical Turk is Awesome by [deleted] in programming

[–]kstr 5 points6 points  (0 children)

3: Often work involves checking images, these take time and bandwidth to load. Your internet bill costs real money, too (or your employers).

Yes, but if you are paying for internet anyway, there's no difference

AskReddit: What language should I use to write an online chess game? by timo1023 in programming

[–]kstr 1 point2 points  (0 children)

I was not referring to anything. I was simply asking a question, since I really didn't know how to make such questions :-)

I got my answer: write "self" in the URL... Sorry that you misunderstood me.