8,437 karma · joined Sep 8, 2011 (15y ago) · 1,419 submissions
comment 13y ago · link · parent
comment 13y ago · link · parent
> dealloc should process instance variables in the same order the @interface declares them, so it is easier for a reviewer to verify.
One engineers idea of 'logical order' may not be another's, so alphabetical order seems as good a sorting method as any. And since the article itself doesn't link to the style guide, here it is:
http://google-styleguide.googlecode.com/svn/trunk/objcguide....
Google keep it regularly updated, so it includes newer developments like ARC and the modern literal syntax.
comment 13y ago · link · parent
There are a lot of pros and cons of both. I used to spend a not insignificant amount of time trying to moderate debates between iOS engineers who favoured one approach versus the other.
Doing all your layout in code isn't inherently bad, and there are lot of Apple written apps that do this (conversely, some of the newer iOS built-in apps do use NIBs). The main problem that I've found with layout entirely in code is that whilst it's fine for you, the sole developer, once you bring in more people onto the project you can have problems with getting people up to speed on what exactly is going on where.
Of course, the solution to this is to enforce strict coding standards over how to layout the views themselves in code, which Google clearly do. And as the article points out, resolving merge conflicts in code is somewhat more enjoyable than in nibs.
That said, just as programatic layout isn't inherently bad, neither is leveraging interface builder strategically. Here's a good example: iPhoto on iPad has a completely custom interface that's mainly laid out programatically, but certain key elements are actually composited together in IB. For example, the brushes that slide up when touching up photos are being brought in from NIBs, but animated and manipulated in code. Using the nib file to load in the images reduces the code without sacrificing understanding (or at least, that's Apple's argument. There's a fantastic WWDC 2012 session that covers how the iPhoto UI is put together in more detail).
The TLDR; - the only risk of programatic layout that I see if developers going 'off piste' and laying out in a non standard way. With the right coding standards you should be fine.
comment 13y ago · link · parent
Getting the Eurostar from London to Paris would take you no more than three hours (2:15 for the journey, checking in 45 minutes before departure). Flying from London to Paris would take two hours (1:15 for the journey, again checking in 45 minutes before departure), but you've got to get to and from the airport, whereas the train is taking you directly into the city.
Across medium distances (SF to LA, Paris to London, etc) high speed rail typically provides better passenger comfort, lower CO2 emissions, and travel times as fast as flying once you factor in transit.
comment 13y ago · link · parent
If it's unclear or people don't understand how Facebook is making its recommendations and as a result become creeped out then that's a problem - whether or not those recommendations were created according to the privacy policy.
comment 13y ago · link · parent
They do! I blogged about this a while back, so the links below are for iOS 5, but they have definitely done it in the past.
http://appadvice.com/appnn/2011/08/apple-takes-steps-against...
http://thenextweb.com/apple/2011/08/05/apple-closes-develope...
http://osxdaily.com/2011/08/05/udid-activation-and-ios-5-bet...
comment 13y ago · link · parent
I disagree with this. By virtue of the market, most porn online is targeted towards men. The majority of pornography thus fulfils masculine desires, which is not necessarily what women want.
One Swedish study (abstract here[1], but you can find the stats I use cited elsewhere in full) of 4,000 high school students found that a much larger proportion of girls described pornography as "sexually off-putting" (it is worth noting that Sweden has an extremely progressive sex education policy in its schools). Pornography re-enforces masculine stereotypes - someone viewing pornography at a young age may take that to be 'how it is done', rather than illustrating a fantasy.
Now that doesn't mean there isn't healthy pornography: as other people have pointed out, there's something for everyone when it comes to porn online. But a 13 year old boy (or girl) looking for porn is almost certainly going to start at the lowest common denominator, and that's porn that's often denigrating to women at best.
Before I'm flamed into oblivion, I am not against pornography: I am merely suggesting that typical porn - the kind that you may run across as a teenager, on the more accessible sites - is not "one of the few 'safe' ways for young people to figure their junk out".
This is why I think if you are a parent it is important not to ban, or discourage, your children from watching pornography, but to make sure they understand that porn fundamentally is about fulfilling fantasies, and is not always an accurate portrayal of reality. Those first encountering porn may not necessarily be aware of that.
[1]: http://www.sciencedirect.com/science/article/pii/S0140197110...
comment 13y ago · link · parent
* Wait Wait...Don't Tell Me, basically the US equivalent of Radio 4's News Quiz
* Tech Nation, the title of which should be fairly self explanatory
* Car Talk, a call-in show about cars. I am not a car person, and I enjoy it (the show stopped production a few months ago, but should be widely available online)
* This American Life, does eclectic long-form journalism.
* Science Friday, which is part of a daily call-in series Talk of the Nation, but all about science.
If you're into science and tech, Radiolab (radiolab.org) is also well worth a listen, it's not technically NPR (there are several different public radio groups in the US), but it uses really innovative production and I wish Radio 4 would broadcast it here in the UK!
Hopefully other people can add their own favorite shows...there are quite a few of them, and I've just highlighted a few that I find interesting as a Brit. I'm in the US a fair bit, and tend to listen to public radio where I can so these are all shows I've just stumbled across and enjoyed.
comment 13y ago · link · parent
You actually get two slightly different warnings, depending upon whether the content is embedded or not. If you go to Twitpic directly you'll see "Google has blocked access to twitpic.com for now", a generally more gentle warning than the one you cite (which you'll see if you're viewing embedded content instead).
It's interesting there are two warnings, only one of which seems to be potentially libelous (if it was a false positive, which at this point is uncertain, especially if the content came in from an ad network).
comment 13y ago · link · parent
It's certainly not illegal for a company to set criteria for which suppliers it will do business with: for example, "we'll only work with ISO9001 certified companies". Is this any different?
I'd be interested to hear more about why this practice is illegal in Brazil, especially as you say it could lead to a prison sentence (which seems odd for what should be a civil case). Is there case law or statute available for someone interested in such things to browse?
comment 13y ago · link · parent
comment 13y ago · link · parent
48 FPS is probably analogous to 3D, rather than talkies. When the talkies came along there was a rapid transition: the big five studios were exclusively shooting talkies about two years after the Jazz Singer was released. Whereas 3D is more prevalent today, but some film-makers choose not to use it. There is not quite the same demand by the audience.
I mentioned this earlier, but I'd love to see a screening of The Hobbit with 24fps for dialog and 48fps for action.
comment 13y ago · link · parent
HFR is really interesting when contextualized in the history of cinema: frame rate was never a problem until directors started changing how they shot action scenes in the 1980s. It was realised that if you made the action fast and blurry you could get away with a lot more: what from a wide shot would look like a slow moving car chase could become a very dramatic action scene.
I think this is being reflected in a lot of the reviews coming out for The Hobbit (I haven't seen it yet): it seems a lot of people don't mind it during action sequences, but it becomes distracting during dialog and less frenetic moments. And this makes sense: why should dialog scenes be in 48fps? There's no technical or artistic reason for them to be.
I'd be really interested in watching a cut of The Hobbit which moves between 24 and 48 fps for dialog/action: people are happy to accept aspect ratio shifts (like moving from full-frame IMAX to CinemaScope in the Dark Knight, etc, and more artistically moving to Academy for a particular scene in Life of Pi), perhaps they'd be willing to accept frame rate shifts too?
comment 13y ago · link · parent
Technicolor films looked fantastic when they were first released. There are a lot of bad transfers that have been done since, but three-strip technicolor (the kind used on the Wizard of Oz, where you shoot using three separate film strips) had incredible saturation.
There were other, considerably less expensive alternatives that you might be thinking of, but Technicolor was the process to use for color: the problem was that to do so required a huge budget (unsurprisingly shooting on three film strips simultaneously requires three times the processing budget), and lots of light (the film speed was very low). One-strip Eastman became the dominant format for reasons of cost, but most people would agree the Technicolor 'look' was in most cases superior.
A lot of film stock from the 30s/40s has deteriorated significantly, and studios do not always take the greatest care when transferring (especially for films not so well known or renowned) - but I personally think three-strip Technicolor films like the Wizard of Oz have great, vivid color.
comment 13y ago · link · parent
If you want to get in touch with me I can forward your CV to the right people. Just checked and we're recruiting Athens based interns right now (and they're paid). Plus you'll get to do a lot of work with our offices in SF and London. Send me a DM on Twitter (@objclxt) and I'll ping you my e-mail.
comment 13y ago · link · parent
Sure there is - it's just that the solution isn't very palatable to people who support the first amendment. You make hate speech illegal. If, for example, the Westboro Baptist Church were to visit the UK and picket a funeral with the same language as they do in the US they'd quickly be arrested (although it's all hypothetical, because church members are already banned from entering the UK for extremism).
comment 13y ago · link · parent
About four years ago I worked briefly for an IT department at a large university. Every staff member at a certain level had to have a one-to-one with the CTO shortly after joining.
About a week before my one-to-one I received a folder from the CTO's PA. It contained:
* The CTO's Myers-Briggs test results in their entirety
* A two page document entitled "How to talk to our CTO", based off said test results
* A discussion of why the CTO's results made him suitable for his job
Needless to say, the guy was a huge jackass and I didn't stay there very long. Do a personality test if you want, but don't let the test dictate how you're doing your job.
comment 13y ago · link · parent
I am reminded of the discussion here a while back about Airbnb and hotel regulation: some of New York's regulations governing hotels are stupid and petty...but others come out of a genuine desire for safety (like adequate fire escapes and sprinklers). Same with the FAA: some rules are outdated, and silly: planes should be able to cope with personal electronic devices...but others are to ensure previous disasters don't happen again.
I'm sure some airlines would happily have fewer cabin crew if the FAA would let them: yes, they can sell in-flight items, but that probably doesn't break even on the cost of employing them.
comment 13y ago · link · parent
Yeah, that's not a great idea. It's generally pretty straightforward to tell, especially for CS (more so than mathematics, but the same principles apply).
I once had a not-so-bright student IM'ing someone in Chinese asking for a solution right in front of me during office hours. Sure, I can't read Chinese, but I can definitely recognise formulae and code.
In a well run class the same person should be grading your homework and exams throughout the semester. I used to find it really obvious when somebody was 'borrowing' something.
comment 13y ago · link · parent
The return ticket doesn't really factor into it: whether you're entering the UK, US, wherever - generally if you're going in on a tourist visa / waiver you can't work. And unless you have some documentation indicating your gigs are unpaid, you've only got your word...which isn't worth much.
comment 13y ago · link · parent
I am not sure this system ever existed, and I would be sad if it did. People have been writing music as their 'day job' since the 16th Century - the difference was their salaries were being paid by patrons rather than the general public.
A system where musicians have to spend 8 hours a day on a 'day job' rather than spending time improving their craft, composing, and playing doesn't sound like a very good system to me.
comment 14y ago · link · parent
You need to bear in mind that we're not dealing with traditional technology here: we're dealing with implanted medical devices. This is not a situation where Moore's law applies. It is vastly cheaper to spend R&D developing speech/music processing algorithms than trying to cram more and more electrodes into implants which require extensive testing and certification by the likes of the FDA.
To be honest, it's not a difficult decision at all. If you're happy with your child having an implant[1], you would be crazy to wait a few years 'just in case' the technology improved. Children implanted at an early age can often adapt far more rapidly than those who are older.
But it's a moot argument, because like I say these implants are not like smartphones that get improved every year. It is simply too costly to not only re-certify, but to re-train surgeons and audiologists on the new devices. Developing improvements to the external processing units is many factors cheaper than upgrading the implants themselves.
[1] There are some parents who do not necessarily approve or want their children to get implants, but not for the reasons you suggest. This mainly happens with parents who themselves are deaf, or part of the deaf community. This is a whole other ethical kettle of fish though!
comment 14y ago · link · parent
More importantly, many patients receiving implants do not have a healthy cochlear, in the sense many of their auditory nerves may be damaged. In this case the electrodes stimulate the surviving nerves, and additional electrodes may not provide much additional benefit.
Again, the audio quality is really down to the algorithms: because each patient is different the processor can require intensive tuning and individual work to get it sounding reasonably decent. Far more research goes into these audio processing algorithms increasing the number of electrodes (not least because improving the processing benefits both new and existing patients).
comment 14y ago · link · parent
I am told (one of my family members works with cochlear implants) that the ideal candidate for a cochlear implant is a young child who has had severe or total hearing loss. This is for two reasons: if you have never heard sound before then the fidelity is far less of an issue, and children can adapt far easier than most adults.
comment 14y ago · link · parent
By far the easiest way to solve this is to do a registration plate lookup: however, I don't know if this is even possible in the US, and it would be on a state-by-state level so a bit of a nightmare. In countries like the UK, where there is a single source of plates that companies can buy access to, it's a lot easier.
Leaky could probably learn a far bit from how insurance quotation engines in the EU and other less complex markets handle this. Here in the UK there are many well established players doing what Leaky do, probably with more success (which is totally down to the fact the UK insurance market is much more centralised).