Better HN
topnewbestaskshowjobs
Log inSign up

objclxt

8,437 karma · joined Sep 8, 2011 (15y ago) · 1,419 submissions

Submissions

comment 13y ago · link · parent

> Perhaps other iOS developers can weigh in on this, but I feel like it's fair to say that the most qualified developers do everything programmatically.

It's really variable. XIBs have issues with source control, but they can be very useful for bringing in assets without needing a load of boiler-plate image loading code. iPhoto, for example, is laid out programatically but most of the controls are coming in from XIBs.

comment 13y ago · link · parent

Well, sort of. I wouldn't really call it running "ruby code on the Objective-C runtime". Your Ruby code is effectively being converted to Cocoa API calls during the compilation process. RubyMotion has a number of Objective-C subclasses that match back to Ruby objects (for example, strings in RubyMotion aren't NSStrings, but a subclass of them). If you dump the headers out of a RubyMotion app you can pretty clearly see this.

Ruby and Objective-C definitely aren't that similar internally - as someone else has suggested, there's no technical reason you couldn't do something similar for Python. It just happens that Ruby to Cocoa bindings have been around for a while (for some time with Apple support), and as a result there has been generally more interest in carrying it forward.

I've probably failed to adequately explain how it works, but the MacRuby source is available on GitHub, and Laurent Sansonetti has done a run through how RubyMotion does it's thing here: http://rubysource.com/laurent-sansonetti-on-rubymotion-inter...

comment 13y ago · link · parent

Firstly, civil rights protesters were charged with numerous crimes - not just related to the Jim Crow laws, but as part of an active campaign to silence them (Martin Luther King, for example, was charged with tax fraud by Alabama, which he was found innocent of).

Secondly, I don't see the relevance of the number of felonies being charged at any one time. Many in the civil rights movement were repeatedly arrested, charged, and tried over many, many years. And many faced length sentences off only one or two charges.

I'm not totally sure of the point you were trying to make, but if you're trying to equate Aaron Swartz's persecution with that of those in the civil rights movement then you're treading onto extremely shaky ground.

comment 13y ago · link · parent

It is an interesting acquisition - clearly, Twitter has a lot of use for the product internally, and they were probably one of, if not the biggest, client (in terms of raw data collected). There is something to be said for mitigating the risk that your third party suppliers disappear from under your feet.

I don't know what Crashlytics enterprise pricing structure is like, but if it's anything like other similar services they'll probably be on twelve month agreements with their clients, which would be complex to untie. I doubt the service will go anywhere for paying clients for a little while. If you're relying on a free third-party service in your apps you always have a recovery plan should something get bought, retired, or just plain go wrong.

comment 13y ago · link · parent

The British government has no authority to negotiate. It is not up to them to talk to Assange. The UK has legally binding treaty obligations to enforce the European Arrest Warrant that Sweden issued.

It is up to Sweden, not the UK, to decide whether it wants to negotiate or not.

comment 13y ago · link · parent

For the US Embassy yes, but there can't be more than a dozen people working at the Ecuadorian embassy (I believe it's physically located inside a block of flats). Diplomatic missions for poorer, or smaller, countries tend to be relatively mundane affairs.

comment 13y ago · link · parent

...because when you have Argentina grandstanding over the Falkland Islands the best thing to do is piss off everyone else in South America. The UK needs all the goodwill it can get in the region.

comment 13y ago · link · parent

iPhoto is an interesting one: the layout is done programatically, but the xibs are used to load the images. For example, the brush panel is all animated and arranged in code, but xibs are used to hold the brush PNG images since it reduces the code burden (of manually creating the UIImageViews, etc etc).

999.

Snapchat vulnerability opens up users' cellphone numbers(cleveryou.net ↗)

1 points · by objclxt · 13y ago · discuss

comment 13y ago · link · parent

>"he was threatened with spending a life in jail and being bankrupted, without the option to get off without pleading guilty."

...I don't quite understand this. Surely he did have an option to "get off without pleading guilty" - to be found not guilty by a jury of his peers.

comment 13y ago · link · parent

It is worth perhaps pointing out that suicide is, unfortunately, something that MIT and its' peers have to deal on a regular basis. It is not the first time, nor will it be the last, that MIT has appointed a faculty member to independently investigate whether their actions were appropriate.

comment 13y ago · link · parent

I don't see how. Hal Abelson is on the boards of Creative Commons and the Free Software Foundation (and as such is hardly a standard bearer for restrictive copyright), and he's being asked to independently review how MIT handled the entire series of events leading up to this. How is he being thrown under the bus?

comment 13y ago · link · parent

Laws are meant to be beneficial to society as a whole. In the US, laws must be passed by a democratically elected body.

The judicial system is one of the few areas where "just doing your job", no matter how 'evil' it may seem, is morally right. Even the most heinous and obviously guilty defendant deserves the best defence available. And similarly, is a prosecutor enforcing a law that society chose to enact inherently evil?

It is far, far better to take all this outrage and anger and direct it towards changing the outdated laws that govern computer crime.

comment 13y ago · link · parent

I wholeheartedly agree. It's understandable that after a tragic, upsetting event like this people look for someone to blame. If you are looking for someone to blame, blame the law. Prosecutors take cases they think they can win. No prosecutor wants to lose a case. The decision to take a case is made based on the law and precedent.

Getting a DA fired solves nothing. What happens once you have achieved it? What have you accomplished? The law remains the same, and these type of cases continue to be brought.

Change is difficult. But I hope that if people really cared about this they would put as much effort as they can into changing the law, rather than trying to place the blame on a single individual - because the latter can easily result in even more misunderstandings.

comment 13y ago · link · parent

Hope it goes well for you! Even if, like me, you don't end up with an offer I think they're fantastic experience.

comment 13y ago · link · parent

Ketamine may be effective, but is it useful for 'immediate' prevention? I suppose this depends on what you mean by 'immediate'. Someone already posted a link here suggesting a significant number of suicides are impulsive, and many people have planned suicides without their friends or family having any idea.

I can't see how in many of these situations a controlled drug is going to help. We could only administer ketamine to those who exhibit depression or suicidal tendencies, but sadly these signs are not always visible or picked up.

comment 13y ago · link · parent

Well, not all new homes - homes in neighbourhoods where fibre is already available. The article says that China is aiming for 40 million households to have fibre connections by 2015, which is just under 10% of the total households (if you go by Wikipedia's figures).

comment 13y ago · link · parent

I am pretty sure (and given this is HN I'm sure a googler will be along soon to confirm/deny this) that Google have a policy of no longer asking those kind of brain-teasers for their software engineering roles. They may still do so for PMs, etc.

Certainly when I had my Google on-site for an engineering role I was spared the infamous questions that crop up in articles like this from time to time.

comment 13y ago · link · parent

The problem with market share stats is that they don't always correspond with usage. People with 3D TVs don't simply seem to be very interested in watching 3D content on them.

Case in point: in the UK 27 million people watched the Olympic Games opening ceremony on TV, but only 0.4% of that audience (just over 100,000 people) watched it in 3D[1]. For a technology with 20-30% penetration this is pretty dismal.

[1]:http://www.pocket-lint.com/news/46728/3d-tv-viewing-update-b...

comment 13y ago · link · parent

Somebody covered this further up, but in more detail:

It is not the rotation itself that is the problem, but saving the resultant file. If you're working directly with the pixel buffer you only do a lossless JPG rotation if the image height and width are multiples of 8 (or 16, in some situations). This is because once you've performed the rotation you'll need to save the resulting output as a JPG, and unless your dimensions factor into the block size you'll need to recompute. This SO answer covers it in more detail[1].

However, if you're not working with the pixel buffer this doesn't apply. You can use jpegtran (part of libjpeg), for example, which manipulates the JPG file directly and never decodes it. Many basic image viewers and editors (like the Windows Picture Viewer, and probably the iOS Photos app but I'm not sure) don't use this approach though.

[1]: http://photo.stackexchange.com/questions/12361/are-windows-p...

comment 13y ago · link · parent

It is worth noting that when the extension was first proposed the European Commission paid for a report that recommended the law remain as it was, since none of the arguments for a copyright extension were convincing. Thanks to some rather effective lobbying this was ignored, although the proposal was modified from the 95 years the industry wanted to 50 years.

http://www.ivir.nl/publications/helberger/EIPR_2008_5.pdf is the report itself, if you are interested in such things.

Interestingly, you'll find certain artists much more passionate about retaining their recording rights than others. Cliff Richard was one of the major proponents for the EU extension, whereas Noel Gallagher is on the record as not really caring at all[1]. It's not a coincidence that the former wrote virtually none of his songs, and the latter will own much more lucrative publishing rights (which have the standard life+70 clause) in addition to recording rights.

[1]: http://www.guardian.co.uk/music/2011/sep/15/copyright-extens...

comment 13y ago · link · parent

Because Tide is universally popular in the US, amazingly so. You could go into a CVS or Walgreens in the US and 70%+ of the detergent on sale will be Tide branded.

Since people are always going to wash clothes, retailers can guarantee they'll shift, and it's virtually un-perishable - and because the margins on tide are rather low, shops will happily buy suspect goods: they're practically untraceable and will shift fast.

Practically everyone does laundry, but not everyone drinks coffee. And those who do drink coffee will have differing tastes and far more varying brand loyalty than the detergent market.

comment 13y ago · link · parent

>There's loads of licencing and control issues though ("apps are only $1, just buy a new licence for every new pupil")

There is a volume licensing program for the App Store, where schools retain ownership and can buy in bulk at a discount (where developers opt in to allow such discounts). But in fairness, distribution still isn't perfect out of the box (it's done via one-time codes on the App Store. It is possible to automate this, but not as standard).

comment 13y ago · link · parent

...it's a terribly misleading story (which doesn't come as a surprise to me, it's the Daily Mail after all), because it conveniently omits breakage rates of one-to-one laptop deployments.

It may not come as a surprise to many people to learn that laptops break almost as often as tablets when deployed one-on-one in schools. A quick Google led me to one study from 2004 in Maine, where over an 18 month period 50% of laptops required repair, and 35% of students experienced laptops breaking down or being accidentally damaged[1].

The main difference is that a higher percentage of tablets require total replacement, which is somewhat understandable as tablets (be they Android or iOS) are far less user serviceable.

[1]: http://maine.gov/mlti/articles/research/PCHSLaptopsFinal.pdf

comment 13y ago · link · parent

There is something to be said for service continuity. After-market support from Android manufacturers can be variable, whereas it's something of a known quantity with Apple. There's also the software issue: there is simply a better and more wide reaching range of tablet optimised educational software on iOS than Android.

Also, on a more practical level, trying to procure a thousand Nexus 10s is no easy task. I don't think one platform is inherently better than the other in the education market, but it should be pretty self-evident that Apple is better set-up to currently sell into the sector.

comment 13y ago · link · parent

I think you misunderstand the purpose of the two courses. The overwhelming majority of students taking CS50 on campus will never take another CS course. Harvard undergraduates are required to take a quantitative reasoning course regardless of major, which CS50 fulfils.

Both Harvard's CS50 and MIT's 6.00 are intended to introduce people with little or no experience to programming. However, the former has far more students with humanities and arts backgrounds. This requires a different approach to teaching. Neither course is 'better' than the other, and the student evaluations bear this out. The feedback I hear from contacts at edX is that both courses are being very well received.

The assumption you seem to be making is that the majority of people taking CS50 care about working in the industry, whereas they just want to find out more about programming. And that's not a bad thing.

comment 13y ago · link · parent

"There's no "intro to programming" course at Harvard—this is it [...] I think CS50 is great for the first two-thirds, but completely lacking for the last third. There's just too much material in too little time."

There is actually a course for the last third, it's CS1. I used to Head TF it: like CS50 it counts for Gen Ed credit, but it is designed primarily for that last third you talk about that may find CS50 too fast paced. It uses Java rather than C. No plans to take it to edX though (with both MIT and Harvard's Intro CS classes the space is crowded enough!).

CS1 was originally designed pre-Malan when CS50 was basically only taken by those majoring in CS, and it is somewhat less popular now as many students want to take CS50 for the 'experience'. The massive success of CS50 at Harvard (now one of the top three most popular classes across the entire undergraduate catalog) is both a blessing and a curse: it's great that more students are interested in learning to program, but it's also meant the department is having to rethink what it offers post-CS50.

comment 13y ago · link · parent

I don't know if you'd say that when they inevitably manage to collapse a case.

Clearly, it is a good thing that Anonymous is drawing attention to this case: going by the Atlantic's and the NYTime's reporting, there's a lot of suspect stuff going on and it should absolutely be investigated by people without any skin in the game.

However, Anonymous are not lawyers. Releasing potential evidence into the public eye is hugely problematic, because it may in the end not be admissible.

Suppose there exists a piece of evidence that appears to absolutely and totally prove the guilt of the accused. However, this evidence is inadmissible in court (this happens more than you might think). The jury wouldn't get to see or hear about this evidence. Now, imagine this key piece of evidence is leaked before the trial by somebody like Anonymous. Suddenly, it's everywhere, all over the news. The defence team are going to have a field day: it's mistrial time. Their client can't possibly receive a fair trial.

So I am in two minds about this: on the one hand, it's undoubtedly a good thing that attention is being drawn to this case. This would have been unlikely to happen on such a large scale if Anonymous hadn't gotten involved.

On the other, if Anonymous keep going down this road they will cause a mistrial. And that's going to result in the complete opposite of what they're trying to achieve.

comment 13y ago · link · parent

Sure, sorry - I should have put that in my original post. It's Session 243, iPhoto UI Progression and Design, with Randy Ubillos himself.

comment 13y ago · link · parent

> Seriously, if it wasn't illegal gambling where these people gambled I don't see a problem

That's not the case. What appears to have happened is the guy's software was sub-licensed or resold to a company that took bets from people living in the US (which is, until the US legalizes online gambling, illegal).

However, if you go by the Wired article then the Manhattan DA doesn't actually have any proof that the developer of this software knew this was going on. You can only be an accessory to a crime if you have knowledge of it: selling your gambling software to a company that you knew was running an illegal operation would be a crime. Selling it to a company that subsequently resells it to an illegal operation and doesn't tell you would not.

If you go by the Wired article what seems to have happened is the developer in question had no knowledge of this, but received some terrible legal advice advising him to sign the plea bargain.

1
333435
48