Hacker Newsnew | past | comments | ask | show | jobs | submit | griffindy's commentslogin

jersey[0], the reference implementation of JAX-RS[1] does this if you specify an incoming query string parameter as a `List`

[0] https://jersey.java.net/ [1] https://jax-rs-spec.java.net/


While the fonts themselves are proportional, usually each letter (counting space as a letter) has the same width every time, it just happens that an 'i' takes up less space than 'w'. Regular spaces are usually 'en-spaces', meaning the width of the 'n' in whatever typeface you're using.

That being said, spacing is obviously very different in justified type (and a huge pain to set by hand), where it will change depending on which words fit in the line.


Spaces usually are half an en wide. You can compare with the en dash, for example.


> What kind of creation are you building that you are expecting > to not know which methods are available while running your program?

`method_missing` is more useful for dynamically responding to method calls than actually not knowing how to respond. A good example of this is rails' (version 3.2 and lower) dynamic finders:

User.find_by_username('a_username')

`find_by_username` is never defined anywhere, it is dynamically responded to using method missing. this allows code to be much more precise and DRY (though at the expense of readability if you don't know what's going on)


but very few people who are in college right now were perhaps old enough to remember floppy disks. I graduated from college in 2012 and remember having floppy disks as a kid (I think for Encarta?) but don't remember ever using them.

I think that we're right on the cusp of people graduating college who have never used a floppy disk.


I figure a college freshman's knowledge of tech should surely go at least twelve years back in all but the rare case. I haven't seen continuous stationary printers, 8-tracks, or even 5.25" floppies since I was in elementary school, but those things would not baffle me today, let alone 12 years from when I saw them.

12 years ago flash drives were barely 1 year old, were quite expensive, and barely stored more than a floppy anyway. Network storage in organizations like schools was abysmal (actually, this hasn't really changed from what I have seen...), services like dropbox were non-existent for regular consumers, and who the hell ever used zip drives? Floppies were everywhere.

If you told me that people graduating highschool right now did not know why floppies were called "floppies", then I would not be terribly surprised, but I think we've still got a few years left until they don't know what they are.

I don't know, maybe my school district had some sort of technology lagging bubble around it. That actually seems plausible.


I also remember using floppy disks in around 2004, so it's not just you.


If michh is working on plugins for other people, shared hosts can be pretty behind on their PHP versions. I just had to backport a wordpress plugin to 5.2(!), which came out in 2006.

EDIT: meant PHP versions, not plugins.


Thats the curse of distributable code unfortunately. And PHP only makes it worse because it's old versions are absolutely terrible...


> And PHP only makes it worse because it's old versions are absolutely terrible...

You just need to put your foot down. 5.2 is absolutely too much, I would never develop for it. Just tell them to stop being so damn cheap and upgrade to a decent hosting company. AWS is free for a year for new clients, there's no reason for them not to switch to something decent.


me too, and I was very pleasantly surprised!


I'm not trying to be rude or anything, but what exactly is a 'linux' or 'unix' pro?


I would probably say a sysadmin, although an ops-capable developer would do.

A short list:

- Systems monitoring and being able to recognize and resolve performance problems

- Being able to fix/compile/modify/package software

- Being somewhat of a polyglot. Knowing shell, a few scripting languages, config languages, regular expressions, etc.

- Being able to identify and fix hardware related issues


I think a lot of people assume Linux pro means kernel dev or someone who writes software for Linux but my take, here at least, is that Linux pro encompasses server admins and people familiar with Linux on a networking / infrastructure level.


I haven't read it yet, but the linked report may have the answer:

The 2013 Linux Jobs Report, conducted by Dice, [...] includes insights into why employers are seeking Linux talent now and what the top incentives are for Linux pros, among other important findings. Download the complete report [1]today.

By looking at the infograph, it seems developers, syadmins, and devops are amongst these 'UNIX pros', so not really kernel hackers. I'd assume few companies are in need of 'kernel hacking skills'.

[1]http://www.linuxfoundation.org/publications/linux-foundation...


Probably just someone who has used Linux or some other Unix derivative on a daily basis for a few years and is very comfortable with the terminal.


I think the distinction he was trying to make is that UNIX skills are those that are transferable between UNIX modelled OS's e.g. shell programming, administration, application development. Whereas a Linux pro would be someone whose skills are specifically on that platform. The most obvious reason being kernel programming expertise which is almost the epitome/definition of Linux.


Could also be someone from a Unix background that also knows specifics of how to optimally manage typical Linux business deployments (usually RHEL, SLES, etc). I can't tell you how many long-time Unix admins I've worked with that didn't know anything about how to create a start/stop init script that was chkconfig compliant (chkconfig originated from Irix I belive), and end up making symlinks in /etc/rcX.d manually. Or be able to debug boot problems (requires knowledge of at least some kernel boot parameters, the initrd, order of the various startup scripts, etc).


on a unix system you could put them inside `/etc/profile.d/user.sh` as environment variables so that whenever that user is running something those variables exist. then if you're using chef (not familiar with puppet, etc.) you could keep those passwords/keys in an encrypted data bag and set them during provisioning.


Good idea...and, yes, you can do the same with puppet.


Nice solution.


a nice framework and a great site, good job!


I've always liked testing ajax requests with sinon [1]. It injects its own version of an XMLHttpRequest object to keep track of all requests, and you can also send specific responses to test success and failure handling.

[1] http://sinonjs.org/docs/#useFakeXMLHttpRequest


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: