HNHacker News
TopNewBestAskShowJobs

samarudge

596 karma · joined March 25, 2011

submissionscomments
samarudge··on The Hidden Dangers of Beautiful Themes
W3 Total Cache plugin for Wordpress will combine all CSS and Javascript files into two requests, you can also use something like NGINX, or even better a proper CDN, for serving static resources.
samarudge··on HP Cloud offering Beta Signup
Name

Tell an enterprise you want Amazon to host their software then spend a few days/weeks/months explaining that Amazon does more than just selling stuff. HP is well known, and trusted. For your average start-up, no, there's no difference. But for the enterprise having a name you know is very important. It's why people will pay so much for Oracle software over open source with support contracts.

samarudge··on JQuery Scroll Path - Scroll a page along a custom path
Same =(
samarudge··on Use git from the command line (not a GUI)
If someone is joining a company to work full time, I can see how teaching them to use the tools "correctly" is good, and new skills are always a plus, but I frequently work on projects with freelancers whom I will only speak to for 4/6/8 weeks then they'll move on, particularly with javascript/frontend devs and designers it's tough enough to get them to use version tracking correctly with something 'point-and-click' (GitHub for Mac etc.), if I told them they had to learn how to use the command line too, they'd ether tell me to go away or increase their fee.

People /should/ know how to use the command line, even if they prefer to use other tools daily, but often it's not practical to force people to use it.

samarudge··on Use git from the command line (not a GUI)
I've worked with numerous UI designers/frontend devs who have never used the command line (purely because they've never needed to). The learning curve of git is steep enough without having to teach them the command line.
samarudge··on Key Facts On Email Deliverability You Want To Know
Thought I'd try out the service with the free plan, went through the sign-up process but the activation email got caught by our spam filter (IronPort), kinda weird.

Edit: Fine when using my GMail

samarudge··on Simple, self-hosted, password and credential management for teams
My only worry about software working with this model (one time fee, download install etc.) is the source code. Things like this, particularly, will need to be easily modified and extended to fit into certain environments, and with no sample source code it's very hard to know how easy that will be. Obviously don't open-source, that kills your business model, but maybe it would be nice to provide a few sample files, or even a stripped-down "basic" version, just so we can get an idea of your coding styles and see if we'd be able to extend the code to fulfill our needs. This isn't a specific criticism of this software, which looks cool and seems to provide a lot of the features of the more expensive enterprise-y solutions at a much more friendly price point, it's just a general criticism of software on this model.
samarudge··on Open Web Device
Not sure why, but it amuses me that the "For more info, read our FAQ." link points to an element with the ID myModal
samarudge··on Show HN: YC like button
I've never understood why people randomly put really big pictures of their faces on things, with no context/tag/info, it's just a face, not even "Hey, this is me" in the sidebar.
samarudge··on Need to go down 4 floors at Tech. University of Munich? Take the giant slide.
They just need one going from the bottom floor to the top, now that would be cool
samarudge··on PHP, meet elegance. Laravel 3 has arrived.
I'd completely forgotten about those, you've successfully invalidated my metaphor. My A-Level electronics teacher used to get us wagon wheels every time he forgot to review our prep (basically every week)
samarudge··on PHP, meet elegance. Laravel 3 has arrived.
People seem to spend a lot of time trying to get PHP to be more like Rails, Django, Node/Express, Play and similar, people seem to think it's OK for the entire application to need to be re-initialized on every request (LazyLoading classes) instead of just running the setup once and then handling requests. PHP has it's advantages but why re-invent the wheel using marshmallows?
samarudge··on Engineer rigs nerf gun to shoot himself when his stories are rejected in Pivotal
I believe PaperCut Software have a system that fires foam rockets at any developers who fail unit tests[1]

[1] https://github.com/codedance/Retaliation

samarudge··on Ask HN: What other good mail providers are out there?
Unfortunately the only real competitors are MS Exchange and Kerio, both require your own hardware and are expensive to licence
samarudge··on Ask HN: How do you "learn" a new programming language?
Open source code. Tutorials, screencasts, books, they teach you /how/ to code, they don't actually get you to do it. You can get to the end of a book and have memorized all the code samples but still be without a flying fuck how to write a program or fix a problem.

Keep a reference manual open in a background tab and dive in.

Go to a popular project on Github, go to the issues tab, pick a random issue and try to fix it. This will give you more insight into the ups and downs of a language than anything else. "Pet projects" are stupid as they have no real world use and you already understand most of the logic behind them, solve problems and make things happen.

samarudge··on [dead]
Just for once can we get one of these shot on a decent camera? I'm not asking for 5D Mk II level, but something on a Handycam or one of the Panasonic HDC range would be nice. Also someone who understands the concept of focusing
samarudge··on We are sorry
Translates as "We don't use encryption because it would cost too much, but we have ACLs so only our staff can look at your personal data"
samarudge··on Regular Expressions in CoffeeScript are Awesome
But since nearly every character is valid in an email address before the @ sign (within ""), it's much easier to validate `*@thisisavaliddomain.com` and just try sending an email. The way we do it, if the user enters an email that matches our reasonably comprehensive regexp we consider it valid, if it doesn't match we send the user an email and get them to verify it with a link, that way most users don't have to go through an annoying click-and-confirm email validation but we can still catch a few edge cases of people mistyping
samarudge··on Regular Expressions in CoffeeScript are Awesome
You shouldn't validate emails by regular expressions since, technically (at least according to spec)

"()<>[]:;@,\\\"!#$%&'*+-/=?^_`{}| ~ ? ^_`{}|~."@example.org

is a perfectly valid email address [1]

[1] http://en.wikipedia.org/wiki/Email_address#Valid_email_addre...

samarudge··on Defendant Ordered to Decrypt Laptop May Have Forgotten Password
Are there any guidelines on incorrectly guessing the password? With my laptop's encryption if I get the BIOS or disk password incorrect 3 times the encryption key is destroyed and some other stuff happens to the drive making it very hard (maybe impossible) to recover the data, even with the correct password. One could "attempt" the password 3 times and, deliberately or accidentally, get it wrong each time and permanently destroy the data. Of course if deliberate this could be seen as destroying evidence but how would they prove it was deliberate rather than just trying to comply with the courts orders?
samarudge··on CLI tool for bundling & minifying, CSS & Javascript
Since this is a tool I built for me and open sourced, rather than a project I designed to be open source, I'll try and explain some of my design decisions.

jsmin.c is faster, but since this is something run server-side once per build, I've never seen speed as much of a problem. On my build server this script completes in <1 second for all the files I've ever tried (My build server is Intel i7, so that might have something to do with it). Even so compared to the time needed to rsync the files to the app servers, or compress the images, this doesn't really make much difference.

Dependency graphs are cool and useful, but the idea of this project is, very much, to simply cat files together. It also has the advantage of being able to generate the bundle info file so you can use URLs with hashes in for CDN's/cache-ability (Like Rails asset pipeline does).

So in short, it was built to be a shit simple system to make my life easier, if you dislike it feel free to use something else, as is the nature of Open Source

samarudge··on Motorola vs. Apple: Apple may no longer sell iPhone 3 and 4 in Germany
Is there a particular reason they refer to themselves in 3rd person? Is it a journalistic habit or something to do with syndication etc.?

> Apple’s emailed response to paidContent also indicates that it will be appealing the decision

samarudge··on Hetzner introduces new server product with insane parameters for 59 EUR/mth
Really? I guess you're experience differs from mine. Currently we have 5 servers with OVH (Ranging from high to low end) and have never had a single hardware issue. We've had 4 of these servers for +18 months and 1 for +2 years with no issues at all. That being said, they're not exactly known for their fast response times to support calls although I believe they have a 2hr SLA for critical hardware failures. I guess it's just down to experiences though, I have all our high-profile servers/apps with UK2 or LiquidWeb.
samarudge··on Hetzner introduces new server product with insane parameters for 59 EUR/mth
They have no issues with connectivity, they might have higher latency and lower bandwidth than some of the higher end providers. But since +90% of the data transfer on most sites is static assets, using a CDN to distribute those will reduce the bandwidth requirements on the server.

Of course, if you're working on a larger project with enough budget, services like Akamai provide methods of routing your static content via their network, further reducing the problem.

samarudge··on Hetzner introduces new server product with insane parameters for 59 EUR/mth
They are one of the largest hosts in Europe (~50k dedicated servers if I remember correctly). Large doesn't always mean best, though. Similar to OVH, they provide good hardware, reliability and a decent enough network, but if anything goes wrong you best know how to fix it yourself. I also believe their network isn't /as/ good as somewhere like Rackspace however with CDN's etc. that's probably not as much of an issue.

TL;DR; Yes they're trustworthy, generally speaking

samarudge··on UK network o2 send your number to every site you visit
When using Skype messaging to a mobile number, you can enter your real mobile number as the 'from' address (In Skype settings). To do this Skype first sends you a confirmation message to the number you want to send from. I'm going to assume the confirmation message is Skype being curious, and that the same technology could be used without confirmation. Or is this an agreement with the mobile operators?
samarudge··on UK network o2 send your number to every site you visit
The javascript changes all image URL's to lower quality versions from O2's servers, it also provides a helpful little function which lets you use a hotkey (Alt+D I believe) to download all the images in full quality. The javascript comes from the domain //1.2.3.4/bmi-int-js/bmi.js (Not a real domain, only works behind O2's proxy)
samarudge··on Is My MacBook Pro Always Listening?
Paranoia much? Surely a much better approach to security would be network monitoring, anti-virus and vigilance. This sounds like blacking out the windows because you can't be bothered to close the curtains.

If your tin-hat doesn't feel like enough protection, try downloading and installing Sound Flower (Generally cool app). Basically it lets you 'patch' one audio output on the computer to an audio input, so you could record the output of your computers speakers at near full resolution (Useful for screen-casts/video game play through and probably lots of other things). Activate Sound Flower Bed and select the option along the lines of 'no input'/'no device'. Go into system preferences and select the Sound Flower device as the default input device.

All of that is, however, completely irrelevant since applications can select audio inputs external to system preferences and record the input at whatever volume they like. (E.G. Skype can use a different input to the sys default, Logic Pro can record from all you system inputs at once etc.)

samarudge··on DNS got you down? Share ip addresses with freedom.txt
Off topic, but can anyone tell me the history of

[SOME DATA FORMAT]

---

[SOME OTHER DATA FORMAT]

?

I'm sure there must be a better way to have multiple data types in a single file than just searching for '\n---\n' and splitting, no? What's the general principal when one data-block has a '\n---\n' in it's data?

I first saw it in Jekyll, I believe they call it 'Front Matter' (Though their implementation seems to be using a '---\n' to start the block) but I can't find any more information on it. Is it some sort of standard/specification/thingy I've completely missed?

samarudge··on Breaking CAPTCHA with automated humans
Now to write a script that repeatedly submits CAPTCHAs with the text "terrible job", "boring", "pointless life".
← PreviousPage 3 of 6Next →