News for hackers. Stuff that matters.

Tautologistics

Re:HTML5 Features you need to know on Sunday May 26, 2013 @02:29PM (#5771956)
Forgot the SOL/EOL markers; the above will still match a substring, e.g. xxx@[email protected]. Try:

^[^ @]+@[^ @]+$

That said, HTML5 has something even better if the input is expected to be an email address: input@type=email

See http://www.w3.org/TR/html-markup/input.email.html for more details.

Here's a bookmarklet:

  javascript:(function () { var script = document.createElement('script'); script.onload = function () { TowTruck(); }; script.src = 'https://towtruck.mozillalabs.com/towtruck.js'; document.getElementsByTagName('body')[0].appendChild(script); })();
When they stuck the work gloves into water, the effect of the treated glove looked exactly like Magic Sand. I loved playing with that hydrophobic stuff when I was a kid:

http://www.youtube.com/watch?v=-1id-gHQjbs

Re:AeroFS/S3: Private syncing to Amazon's Cloud made easy on Wednesday June 27, 2012 @07:15AM (#4166391)
I got burned by AeroFS recently. Uninstalled AeroFS and then wiped one computer; when I woke another one up, all the data I had synced with the first computer started getting deleted, as indicated by many Growl notifications.

I could not stop the action and was only able to recover bits and pieces of data from deleted blocks. On OSX, one might think that deleted actions would move the file to the trash but, nope, straight up deleted. These two unexpected behaviors have convinced me drop AeroFS and stop telling others about it.

Re:Big Cuts at Airy Labs, Ex-Employees Blame Management on Sunday February 12, 2012 @08:16AM (#3581735)
Conversely, if you happened to be the one getting paid less, it would be to your benefit to discuss salary.
Re:I'll tell you why movie revenue is dropping... on Thursday December 29, 2011 @02:24PM (#3404927)
Was just about to mention them! I have been there twice when visiting my sister in Bend and loved the experience and the campus-like layout (thanks to its history). If I wasn't planning to move out west already I would be considering opening up something like that in one of the counties north of NYC.
Unless I am missing something, the bullet point near the end, "Progressive rendering", is not correct when it states that template rendering is asynchronous and parallel. Fetching of data, sure, but unless they are using web workers to execute the templates client side, and I do not see workers mentioned anywhere, this is not accurate. When a template is rendering, all other JS and UI will stop.

Having applied the same approach as LinkedIn on past projects and jobs (e.g. BN.com), there is definitely a lot to be gained if done right, and web workers, when available, ease some of the issues with rendering large templates and/or large datasets.

Re:Kendo UI - a framework for modern HTML UI on Tuesday September 13, 2011 @08:22AM (#2991087)
Read the FAQ, the beta version has a different license than the full release will:

Q: How is Kendo UI licensed? Is it open source?

Kendo UI is dual-licensed, Commercial and Open Source (GPLv3).

The Commercial license includes full source, professional support, access to the latest Kendo UI hotfix builds, and priority influence on the Kendo UI roadmap. During the Beta phase, the framework is licensed under a Beta license and no commercial license is available.

Re:AMD needs 1000 Developers with Linux Skills on Monday March 14, 2011 @12:44PM (#2323196)
Nothing wrong with JIRA or Greenhopper but its use, by itself, does not make a group "agile".
Re:AMD needs 1000 Developers with Linux Skills on Saturday March 12, 2011 @07:23PM (#2317858)
This is such an annoying new trend to claim one's company is in "startup mode" when it is all just superficial or even straight out bullshit; it has become quite the trend in NYC now.

One place I declined to work at claimed to be in startup mode yet their offices looked like those of a financial company (which they were not), everyone seriously dressed up, and the code base and infrastructure was pretty big and inherited from the parent organization.

A place I used to work at is also going through the motions of "becoming a startup" -- a company that has not been an internet startup for over 10 years. Apparently being a startup means rewriting the whole codebase in Java, offering free snacks and drinks, tearing down the walls from the cubicles (say goodbye to ever getting "in the zone" when coding), and calling daily standups and using JIRA "being AGILE". Sticking feathers in ones butt does not make one a chicken...

Re:"You've angered the hive" on Monday February 07, 2011 @05:03PM (#2190966)
OK, so then forget your "super secure" server. I would instead focus on compromising one of the admin computers that has the "special user" ssh key and the port knock sequence; or maybe I will hit one of the servers communicating with this "secure" computer and see if you remembered to bounds check all the data coming in; maybe even see if you network stack has any exploits in its tcp/udp implementations while I am at it...
Re:Landing a Job at 9 Hot Startups on Monday January 31, 2011 @01:20PM (#2162545)
The hardest part about landing a startup job right now is choosing which one to go with =)

Seriously, there are so many interesting startups popping up lately but, if the uptick in cold calls and emails are an indicator, apparently not so much of the necessary talent.

There are currently a lot of developers on the market in NYC but from the interviewing I have been assisting with, it seems to consist mostly of "lifers" (the 9-5 devs that are happy to just plod away on some big project, adding features or fixing bugs). I do not mean that in a condescending way; there is definite value in their work but it is simply not what a startup needs.

Once money/licensing is involved, it does become an issue of openness. Think of it as the letter of the spec versus the spirit of the spec.

If h.264 becomes the de facto standard for HTML5 video encoding, then a browser such as Firefox, or any free/open browser, will be financially unable to implement a completely standards compliant browser due to the cost of licensing.

Yes, one could supply other codecs to support the video tag since no codec is specified in the spec but if the majority of content out there is focused on h.264 then the effect is the same as not supporting the video tag at all.

Re:Oracle in conflict with another open source project? on Tuesday November 30, 2010 @12:54PM (#1954916)
If we are talking rivers here then "Rubicon" might be an apt project fork name.
Re:Zero to a Million Users in 15 Days on Sunday November 07, 2010 @07:21AM (#1879203)
Just a quick FYI - once one goes to the blog (either the blog link or the "more info" on the homepage) many of the bottom nav ("Other Clicks") links do not work because they are relative paths (they all map to blog URLs).
Re:MakerLegoBot: A Lego Mindstorms NXT 3D Lego Printer on Tuesday October 19, 2010 @10:06AM (#1807146)
> Thank you, thank you. I'll be here all night.

Thanks for the warning ;)

Re:My relentless pursuit of the guy who robbed me on Tuesday September 21, 2010 @06:44AM (#1712081)
That is the short sighted view though. If everyone always turns the other cheek then there is little consequence to hurting or screwing others, which then reinforces the wrong-doers behaviors and perhaps even encourages others to join in. Within reason, one should always make it clear that certain actions are simply not acceptable and that there are clear consequences for those actions. If not for your self, it may save someone else from that same injustice.

The long term results of action vs. inaction will always have an impact on society as a whole and on one's personal quality of life; it just might not immediately noticeable.

If however, one is driven solely by revenge then it might cause one to expend way too many resources or cause one to take things too far but, still, intention has little effect on the external impact of an action.

Re:Justin.TV launches an iPhone live video broadcasting app on Thursday September 16, 2010 @05:50PM (#1699276)
This is another step closer a device I have been thinking about for many years. Imagine having a silent witness to any incident one gets involved in where it is one person or group's word against another. This device would record audio/video/time/location and send that data, real time, to a remote server that can timestamp and saved it. Police brutality, a bar fight, war crimes, an auto accident? Even if the cameras/phones are confiscated, stolen, or destroyed, the truth has already been set free and there is no way to cover it up.
Re:Oracle set to merge Java virtual machines on Monday September 13, 2010 @09:22AM (#1686442)
It is likely that some of each VMs design decisions are so fundamental that it precludes an incremental migration of pieces from one to the other.
Re:Use Dropdown Login Boxes for a Faster Login on Friday September 10, 2010 @07:44AM (#1678552)
It does not remove the visual processing step, it simply reduces the amount of visual processing required.

Eyes tend to automatically fixate on motion. When the whole page transitions the eye has no single point of change/motion to fix on and must scan the whole page to identify the shapes that represent a login form. With a dropdown, the only change/movement is the login form, which the eye is naturally drawn to.

I know this is a throwaway account and you cannot get too detailed about the nature of the work but if you do decide to start over, I might be interested in applying if my skills fit the job.
Re:Smear campaign against Wikileaks begins on Saturday August 21, 2010 @07:48AM (#1622643)
Scenario 3: Assange coordinated with these two women to file charges in order to convince people that he really is under attack by various governments and garners more support for his cause and efforts.

I do not necessarily believe this scenario but since where throwing possibilities out there.

Re:Writing a Redis client library for Node.js on Saturday July 10, 2010 @05:24PM (#1504378)
Congrats on the kid!

I came away with the impression that the focus was on trying something new in order to learn and that a lack of transactions in existing libs was merely the excuse to experiment. There is still the performance issue with his approach, which I am investigating out of curiosity, so I wouldn't worry about it replacing yours.

It's hard not to take criticism personally but there will always be people who think you code is shit and approach all wrong.

BTW - I'm still running a patched version of the latest redis-client in production. Any thoughts about the patch to fix the internal buffer length calculations (changing "Math.max(currentLength * 2, atLeast * 1.1);" to "Math.max(currentLength * 2, offset + atLeast * 1.1);")?