News for hackers. Stuff that matters.

torme

Posted a much earlier version of this a while back, made some decent progress on it since then, but still a ways to go. Let me know what you think!
Re:Why is the DOS path character "\"? on Monday March 19, 2012 @11:58AM (#3724500)
So I'm sort of nitpicking your comment here, but the purpose of @"" for verbatim strings wasn't created just to deal with directory slashes, it's just a handy way of writing string without the need for escaping in general.

Also, if you really want to make portable C# code, you should use Path.DirectorySeparatorChar, as it's not platform specific at all.

http://msdn.microsoft.com/en-us/library/system.io.path.direc...

Re:Standalone JavaScript Routing on Wednesday January 25, 2012 @01:21PM (#3510931)
There's also a really nice pre-existing library for this: PathJS.

https://github.com/mtrpcic/pathjs

Been using this for a while, with a lot of success.

Re:The Modern Java Ecosystem (for the Sinatra or web.py lover) on Friday December 02, 2011 @05:27PM (#3306006)
Since everyones already covered the Jetty side of it, I personally like Freemarker as a templating language.

http://freemarker.sourceforge.net/

It's pretty simple and straigtforward, its what I use instead of JSP.

Also, if you're doing web stuff, I HIGHLY recommend sitemesh.

http://www.sitemesh.org/

It's a really clean way of implementing layouts and everytime I use other languages like Python, I always try and find equivalents but am always disappointed.

Re:Ligament.js, the smallest, lightest-weight JS MVC Framework on Friday September 16, 2011 @06:53PM (#3006637)
For rich client apps, having a router is useful in my experience. I've not used backbone however. What makes you think it seems out of place?
Re:400 Percent Increase In Android Malware on Tuesday May 10, 2011 @06:03PM (#2534266)
It does, when you install an app it lists out which parts of your phone the application can access (phone, internet, location, etc)
I'm pretty sure that both Microsoft and Sony are on a 10 year plan with both of those systems, which means you won't hear anything about a PS4 for another couple years at least.

That said, this seems like a pretty smart move on Nintendo's part. They get to release hardware thats not the most expensive/fastest available, but still beats the current market, and gets to live at the top of the performance chart for at least a few years.

Re:CSS: Our best practices are killing us on Tuesday April 12, 2011 @06:07PM (#2439573)
This seems like it's interesting but could really use some audio. This definitely comes off as a slide deck that someone used in a presentation and wasn't meant to just be read. Does anyone have a video version of this by any chance?
Re:HiveSpun.com Beta: Online Art Collaboration on Thursday March 31, 2011 @01:42PM (#2392641)
This is a side project I've been working on for a few months now, and I'd really appreciate your input on it. If you're an artist or designer or just like art, it'd be amazing if you requested a beta account. Let me know what you think or if you have any questions.
Re:9 Women Can’t Make a Baby in a Month on Wednesday March 30, 2011 @03:14PM (#2388740)
No, it's actually been around much longer than that:

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

Not even sure if that's the origin of the phrase.

For a weird, distorting effect, press control to zoom all the way out and pan around. It seems that it tries to put you're view point "behind" the actual camera location. Not sure if it's a "bug" or not, but it looks neat nonetheless.
Re:Moviebarcode - Movies compressed to a single frame on Monday March 07, 2011 @11:59AM (#2297717)
Does anyone have info on exactly what was done to make these? Is it just taking frames and stretching them vertically?
Re:Wolfram Alpha doesn't "get it" on Monday February 28, 2011 @11:24AM (#2271696)
Ok... again, not trying to be combative but:

a) This still doesn't really answer my question.

b) Would it be illegal to put up a website and say that essentially no one can use it? Aside from some exceptions like discrimination, ToS's define how you can use a tool, which is exactly what they were doing. Is there some law stating that if you host a website, you must allow users to link to it in any way they like?

Re:Wolfram Alpha doesn't "get it" on Monday February 28, 2011 @11:14AM (#2271655)
Not being combative, just genuinely curious, but how is this not legal? If it's part of their ToS it seems like it would be enforcable.
Re:Star wars theme played by a floppy disk hack. on Thursday February 17, 2011 @11:53AM (#2231626)
If you haven't seen this yet, this is probably the best example of a hack like this that I've seen. It was submitted for a contest that radiohead held, and I believe was the winner (it takes about a minute to get rolling):

http://www.youtube.com/watch?v=pmfHHLfbjNQ

The sound of the scanner is pretty awesome.

And the original by radiohead in case you need some context.

http://www.youtube.com/watch?v=1ky1td3_6LY

Re:Email address validation: please stop on Monday February 14, 2011 @12:24PM (#2217604)
As someone else mentioned in the thread, make the email address optional, with the understanding that without it they can't recover lost passwords.

This is probably an unacceptable solution for some sites, but I can definitely think of cases where the only reason you need email is for password recovery, and account loss isn't the end of the world.

Re:Mubarak to step down tonight on Thursday February 10, 2011 @11:23AM (#2202400)
Is this really any different? They're just instating the VP instead, who I imagine is probably not much better.

This might make sense if they're planning to hold another election shortly thereafter. That way, at least the figurehead is out of office, and there's the potential for a peaceful transition for a replacement. Given the level of corruption though, is that even a possibility?

Re:Object Oriented CSS on Wednesday February 09, 2011 @08:28PM (#2200239)
She has a blog post explaining the x's here:

http://www.stubbornella.org/content/2010/12/09/the-hacktasti...

Edit: I also agree with your sentiment. This seems to move away from what CSS classes are intended for, and gives things naming conventions that are tied directly to their internal CSS code instead of to their semantic meaning on the page. That said, I haven't used it either, so maybe it's way better this way, but something doesn't sit right with me.

Re:Object Oriented CSS on Wednesday February 09, 2011 @07:54PM (#2200114)
Im curious as to how this works, but there doesnt seem to be any code examples and the download link seems non-existent. Can someone explain how this is used?

Edit: Scratch that, the download seems to be working now, and it contains some better documentation.

Re:The git parable on Friday February 04, 2011 @05:09PM (#2181485)
Somewhat related, but Joel Spolsky has a really excellent tutorial on Mercurial:

http://hginit.com/

It covers a lot of the conceptual differences between the distributed version systems and subversion, and gives a similar sort of story telling walk through of use cases.

Re:Oracle discontinues Ruby/Rails support for NetBeans on Thursday January 27, 2011 @12:05PM (#2148547)
Honestly, I feel like the title here is a little misleading.

The message from the netbeans team is that they just didn't have enough resources to support both Rails and upcoming Java 7 and so they had to drop development. They also are encouraging the community to pick up and continue development of Rails support for the IDE.

I guess it's possible that a lack of resources is just an excuse to remove that support, but to me this seems like a genuine reason. I don't get the sense that Oracle just pulled the plug for political reasons.

It works with some images, but not others. At first glance, it looks like maybe it just doesnt support PNG.
Yeah, the percentage statistics are worded kind of oddly. I tried spain, which has about 18% unemployment rate vs the US's 9%. It tells me I have a 94% greater chance of being unemployed in spain. It took me a couple seconds to get my head around the meaning of that.

It seems like a better wording might be something along the lines of "You're 2x more likely to be unemployed", or something to that extent.

Re:GET vs POST in terms of security on Monday January 17, 2011 @03:53PM (#2113432)
Instead of directing them to a BB, direct them to a site you control and embed a self-submitting form via post. Probably more difficult from a social engineering perspective, but just as effective.
Re:Tomcat 7 finalized on Monday January 17, 2011 @01:32PM (#2112945)
I'm not an expert on this but I'm guessing with tomcat being so ubiquitous they do an initial release of the new version, and then it takes a few revisions out in the wild for them to deem something production stable. I think its the equivalent of doing release candidates ala Firefox but without the RC label.
I'm confused, doesn't Gmail do top posting?
Since I can't access the v6 version of facebook, does that mean that I'm in the 0.001%?
This seems very cool, neat that these companies are taking this upon themselves.

That said, does anyone know the potential risks to these companies for this? I personally tried the facebook IPv6 site and it doesn't work. Are there going to be users who are unable to use these sites on this day?

Older »