skysight-inc/HackerNews huggingface dataset:
Assuming we're only talking about the iPhone APIs, then there's no NSImage or CIImage (Mac OS X desktop only).

As for UIImage and CGImageRef, which are on the iPhone, UIImage is an Objective-C class, whereas CGImageRef is a C opaque struct.

CGImageRef comes from the CoreGraphics (aka Quartz) lower-level 2D drawing APIs (implemented using C functions). This framework was around before the iPhone as it is also found in the Mac OS X APIs. UIImage gives you the ability to use a CGImageRef as an object. It doesn't expose all of the functionality found at the CoreGraphics layer, but it can be easier to use with other ObjC classes.
Since I'm not sure the Blog owner is going to clear my comment there, I'll repost here as well.

Your logic is flawed in that you assume that "meta-platforms" can only produce crappy non-Apple like applications. This is simply not true.

The world is going cross platform and it's time to get on the bus. The risk Apple runs now is whether the iPhone becomes 'not worth it' to develop for anymore. Any developer knows that having to maintain X code bases for X platforms only hamstrings your productivity to your end users because of the overhead. I personally like to target more than one user set for my products.

It's interesting how the crack down came well AFTER the platform was an established brand, not when it launched. Had Steve Jobs only cared about purity of the platform they would have established the rules up front. They didn't do this because that would have been a huge roadblock to platform adoption and iPhone app base would not have grown to anywhere near the size it is now. Instead they choose to implement new rules now that they have an attractive user base and a "locked in" developer base. This is not about purity, this is singularly about control.
And using a drive firmware that expects TRIM results in a massive regression when the kernel isn't regularly telling it to trim blocks, as it disables its normal GC.

The Intel GC algorithm was great. I would have preferred it if they had simply ignored all the 'power user' fanboys that constantly harp on about how it would somehow save the day. Let them buy other drives, and leave more for the rest of us.
Sorry, but you are talking nonsense. jQuery uses CSS3 syntax (most browsers understand this syntax just fine) plus some extra. Selector in jQuery is just a parameter.
If I tic-tac-toe which has function t3(position, value) and pass call it t3("top left", "x") would you claim that "top left" somehow is compiled and executed?
Really, how do you execute CSS selector?
jQuery uses sizzle (http://sizzlejs.com) as CSS selector library, it parses CSS and returns elements matched but it does not run anything.
Or do you think that Apple really did ban parsing of parameters passed to JavaScript functions?
On the other hand I'd love to see iPhone app written in CSS selectors.
Apple is the king of shit software....see Windows iTunes.
With the size of Apple's market cap, is it possible that Apple might be looking to buy out AMD? They can do it in one bite and have enough cash in the back 4 times over to do it.
Agreed, and it's amazing how quickly Apple has been able to shift the terms of the debate on this. It's now apparently an extreme position ("abolitionist" in Gruber's post) that if Alice creates a program and wants to send it to Bob, they should be able to accomplish that without begging for permission from the computer manufacturer.
Realistically, you wouldn't normally have more than two versions: one "solid" and one "experimental". But if you do, there's #elif. I repeat: I see conditional compilation as a temporary thing. My code does not end up littered with them.

> with git, there's a nice 'bisect'

How does "bisect" know where the boundaries are? What if you change the original code a bit, like re-indent it or make another trivial change? How can you look at both versions, preferably right in the editor? What happens to time stamps when you switch between the versions? Versions cached in the IDE? Directories? (You may be surprised that Git leaves them around from previous versions)

It's all doable, but not very intuitive. Why bring complexity where there is enough of it already?
All the offices I've worked in here in America, probably more than half (myself included) of the overpaid nerds were overweight.

Sure if you go to the marketing department, that's probably not the case, but that's just because marketing won't hire you if you aren't pretty. We're not so picky over here in Engineering.

Eating healthy does take time and effort and some knowledge, but it doesn't take that much money. Assuming you have access to a stove, healthy food can be had for cheap. Chicken? cheap. rice and beans? cheap. Vegetables? yeah, those are pretty cheap too.
Yes, looks like Obj-C blocks made it to 4.0.

GC is probably a ways off for obvious reasons.
me too. What I've found is that carbonated water is the best substitute when trying to get myself to not drink soda. Safeway sells carbonated water in cans, just like soda pop, so it feels quite similar to drinking a soda.

(I don't know if the acid in the carbonated water would hurt your teeth without the added damage from the corn syrup or not.)
Air Travel Chaos Deepens Into Weekend
What used to be called super size is now just large.
More Than Goldman Sachs In SEC Gun Sight
Make some quick money here..enjoy
Why do I get a runtime error and files downloading any time I visit this site? Doesn't seem simple and certainly not friendly.
kls....the link in the post (to the NPR article about the law) shows all the things that the law does. Those others though, are more abstract and tend to apply to those that might be in 'dire straits'. i.e. those that have overdrafts or exceeded their limit or made a late payment.

However, everybody will benefit from this regardless of their credit history and purchasing habits.

That's all I was pointing out.

Also....as an aside, I am a big fan of Obama (generally speaking) and he has achieved many things. It's just that they are hard to see...which is why I saw it fit to illustrate this thing that's pretty tangible.
Well, a big one is probably the same one: politics. Instead of politics over commit privileges and commit rules, you have politics over who controls mainline, who controls which staging areas, what their rules are for pulling or accepting pushed patches, etc.
Must-read on capital structure
> What problem that I have will switching to subversion solve?

You already have the problem (backups, multiple versions of code) you're just doing it the hard manual way. You could say the same thing about Visual Studio over Notepad -- what problem does it really solve? One is just a superior way to work. You're using stone knives and bearskins.

Version control doesn't prevent you from using conditional compilation. You really wouldn't have to change your work flow at all. But you already make tarball backups -- taking the two clicks to commit your code is going to be much simpler. And if you ever screw something up, you can always go back to a working version.

If you get around to branching and merging the full power of version control reveals itself. I'm currently working on a development branch of my software while the production branch continues to get bug fixes. When I'm ready to deploy, I just merge all those changes together.
Audi outsells Mercedes
I want something less complicated than that. I want to push the Scan button, open my web browser, select the scanner from it's list of Bonjour (aka DNS-SD) discovered web services and then browse, save and delete scans from it's web interface.
I noticed none of the apps were very 'heavy'. Could Apple be concerned that with the 3G opening much larger apps (games, Safari, Skype, etc.) significantly slow the 3G down? Maybe someone who is willing to try the jailbreak can enlighten us.
The SEC's Fraud Case Against Goldman Seems Weak
No, I have made an effort to know it, but haven't actually written code for it.
> give it a try before dismissing it

Giving it a try can only prove the presence of fragility, not its absence :-)

Generally, people are very reluctant to criticize "hip" tools like e.g. Clojure, Haskell, Google Go, Git or its accessories. So, when 3 out of 4 people say they had problems with it, to me it weighs very heavily on the negative side.
Why is the headline in caps?
People care about aesthetics, and quality is, I think, one form of it.

Can't agree more, and I think there could have been many more Apples if more companies were run by technical people with a good sense of aesthetics (in a broader sense), rather than by business people.
Exactly. The real problem with the anti-Apple arguments is that - for the moment - Apple's behavior hasn't hurt them. The iPhone still has more apps, and iPhone owners are far more likely to buy apps. The Android app store is still a wash, despite all Android handsets sold this year.

I think that in the long run Apple's App Store policies would hurt the iPhone if they weren't willing to make the platform more open, but the walled garden approach probably makes more sense while the public is still getting used to the idea of mobile applications.

Apple deserves some credit for persuading people to actually pay for software. How much does the average person spend on third-party software for their PC? Judging from how much shelf space Best Buy devotes to PC software, I'd bet it's pretty small compared to what people are spending on apps now.
Yeah, maybe if it was outright stated that it was a challenge instead of an error. Not much different than a "normal" code puzzle/challenge at that point.
> Purely from the security/retrieval viewpoint

That's the failure in that logic. "Purely from a security viewpoint," it would make sense to strip all airline passengers naked and force them to stow all their luggage/clothes (i.e. no carry-ons), and have armed security agents staring them down the entire flight.
Have you ever considered leasing domains (with an option to buy) out of your portfolio?
Our Future - Cooperative Computing
This isn't what we have though. It isn't just Apple's store they're locking down, it's the whole device. A store that you can't freely put software on is unfortunate but understandable. A computer that you can't freely put software on is just wrong.

Wrong? For most of the world it's exactly what they need. Allowing people to freely put software on their computer leads to a lot of bullshit. Hell, even experienced people will put themselves through a lot of bullshit because they're allowed to change things.

The regular people in the world want and need someone to man the gates of software. It may not be good for FSF or FOSS, but guess what? A whole fucking lot of people (And I mean a shit load) don't care about programming languages, kernels, drivers, or any other of that crap.

(Sorry if this comes off ranty, I have a cold and I get heated really easily when sick)
Pizza, Guns, or Strip Clubs?
> But you already make tarball backups -- taking the two clicks to commit your code is going to be much simpler.

And you are saying I'm not doing it right?

I have a 1-line script that does that, automatically adding time stamps to the name of the tarball. How is checking in your version simpler?

> If you get around to branching and merging the full power of version control reveals itself.

This attitude is unproductive, as I witness from other programmers' experience: they branch and then they branch - stuff gets inconsistent, bugs get fixed in one version, but not another, and the same bugs that were fixed before, get magically released to public 2 versions later (REAL STORY).

My philosophy is MAKE BRANCHING HARD.
Twitter is introducing Annotations, metadata that can be added to a tweet
I think the real loss to the public occurred when AIG was bailed out and GS got paid over $10 billion they would not have gotten if AIG had been allowed to fail.

And it should have been allowed to fail in my opinion. There would have been a lot of pain and other failures, but those are the risks of playing these games.

If you protect people from all of the ultimate costs of doing things that are rewarding in the short term most of the time, but incredibly risky overall, they will keep doing them!

And we will all pay a huge price for these parasites eventually if we don't wake up and stop subsidizing them.
If you're say, changing an API, and then you've modified all the code that uses that API that's a large number of files with defines in them, right?

Your work flow is limited to the method you've chosen not the other way around. To say it works for you sort of misses the point. Version control can free you to work in ways you can't yet imagine.

> How does "bisect" know where the boundaries are?

Clever algorithms.

> What if you change the original code a bit, like re-indent it or make another trivial change? How can you look at both versions, preferably right in the editor? '

The file gets flagged in your editor as having a conflict. Inside the file, any code parts that cannot be merged are included the file (both versions) and you pick which one you want (or edit the changes together manually). It's actually very easy, very intuitive, and works with your editor. In most cases, you won't have conflicts.

> Versions cached in the IDE? Directories?

I've never had a problem with versions cached in the IDE -- probably because almost everyone uses version control it's not something that usually goes wrong. With IDE integration, it's even better. Directories are handled pretty sanely in Subversion, at least.
One could argue that the traditional source control model (where everyone has a copy on their own machine) isn't a great way to deal with huge binary assets. I've worked on game projects where the binary churn was on the order of gigabytes a day. Even though everyone was physically co-located, when everyone arrived at 10am and started to update to head, a hundred computers all trying to download the days worth of 2 gigs of assets over the network didn't make for a pretty picture.

You can try to cronjob the updates, staggered around 4am. Or you can realize that the majority of people are only modifying a subset of these assets, and roll your own link-based asset manager for large binaries.
The point is with centralized systems, only committers can do things such as branching or preparing commits. With a DVCS, everyone gets the same tools, so the rights granted by having the patch accepted are simply having it merged, nothing more or less.
The government should have allowed the weakest auto company to fail. Instead it pumped in many times its total worth to prop it up.

How does that make sense? Coercing the rest of us to take on debt so they can continue an enterprise that doesn't make economic sense?

You're absolutely right when you say there's no difference between subsidizing banks and auto companies. Both actions were wrong.
Goldman received aid from the taxpayer through the AIG bailout. AIG was responsible for the insurance and CDSes that covered any bad assets at Goldman. Had AIG gone under, Goldman would not have gotten paid for those CDSes that were on derivatives of bad mortgages, and would have had a few billion in losses in 2008-2009. Maybe not lethal damage, but it's on the back of the taxpayer that Goldman has been profitable these last 2 years.
You believe this?
No, it is not. Sexism, like racism, never has a positive or neutral connotation in any context in which I have ever heard it used. A black man is not intrinsically different than a white man. Therefore, to treat him such is racist, period. A woman is, however, intrinsically different than a man. To denigrate her because she is a women is sexism. To treat her as if she were a man and refuse to acknowledge her as a woman is, arguably, also sexism. On the contrary, merely to react differently to her, but not negatively, is not sexism.
Ideas for Twitter's new Annotations
Over its history, Apple has bought processors from Motorola, IBM, Intel, DEC, PortalPlayer, Samsung, etc. They also funded Exponential, who never shipped. Bringing processor design in-house creates a lot of risk that the in-house team will fall behind and bring down the whole company.
but will be sold subsidized, so the price will be lower
With binary files, you really want an explicit checkout (exclusive lock) system - since there's typically no way to merge them. This makes the commit/merge style SCSes a bad fit for binary assets (and partially explains the popularity of Perforce, which is a lock-based SCS).
Photos Surface of the Day Einstein Died
is it your site? it looks nice
Analysis of mortgages, especially tranches of slices of portions of thousands of mortgages, just isn't that easy. That's the entire reason that companies like ACA, who Goldman claimed picked the mortgages, exist: to act as an impartial third party that can analyze and rate the risk of the underlying assets when there are too many for the investor to do it herself.

If I sold you one diamond, and you were a shrewd buyer, you'd probably take it somewhere, perhaps to two people, to get it examined and ensure its authenticity. But if I offered to sell you a big ol' bag full of thousands of assorted gemstones, and claimed that everything in the bag was either pure diamond, ruby, emerald or opal, 25% each, you probably wouldn't have the time or money to go through each one and analyze its authenticity. Even if you did, my offer may have expired by the time you do. So instead, I say that the gems were all hand-picked and inspected by the American Gem Trade Association, and that they all checked out to be 100% authentic. If you trust me and the AGTA, you might buy the bag at this point. However, when you get home & find out that they're all rhinestones, I guarantee that you will consider my false assertion that they were picked by the AGTA to be both material and criminal.
Collaborative Editing Made Simple with Bracket Notation
Here is a link I found. http://www.foxnews.com/story/0,2933,540965,00.html

It is well established that socialized medicine entails rationing.
In some sense, the shift in debate came as soon as DRM became acceptable to most people. Apple has capitalized on this shifted ground, to be sure, but I think that the iPad debates are reflective of a much more general struggle and debate.
When I taught advanced compilers last semester, one of the projects was a Scheme-to-C compiler that implemented first-class continuations via call/cc.

I realized when going over that material, however, that most students didn't know what a continuation was, or how to use them, so I created a "by-example" tutorial:

http://matt.might.net/articles/programming-with-continuation...

It covers exceptions, backtracking-search, the magic "amb" function, magic sat-solving, generators and cooperative threads.
I used to do some social media consulting for Time Inc. and some of their subsidiaries (HBO etc.) and across the board what I found is quite simply the companies are not setup to be able to handle these shifts, it's not really that they don't have the ability to understand. This is the natural order: they are too big, and too established to be able to respond to this market with agility.

Time itself has moved away from the strategy of distribution and is going full on into content creation because they feel there is still a market for high quality content. I think they are totally correct about that, but wrong about what is considered "high quality" at this point. There will increasingly be a place for "premium information" such as Bloomberg terminals and other professional related information, but entertainment content has no expertise to sell. It's either good or it's not, I don't really care who made it.

So I'm not sure it's that they "just don't get it" it's more just the natural order of things: they are too big to respond quickly.

But I think we also have to think less about convincing people "these companies are going to die" and more about what we do when an industry goes out of business. Even if these companies survive, the only way to do it will be downsizing like crazy (and outsourcing to international stringers), and that wont really be good for anyone.

All they are trying to do is slow down the shift and preserve jobs. So we can sit here and criticize the MPAA etc (I know I do), but is what we really want a sudden collapse of these industries? I'm not convinced.
I'm in!

I spent years under the misconception that being skinny (but not scrawny) meant I was fit. It wasn't until I started a proper weight/interval training routine that a) I realized how out of shape I was and b) my lower back stopped being so damned fragile.
>Git just isn't well-supported on Windows

Msysgit is stable and fully functional. You can even install it so that the git commands are available on the 'DOS' command line.
Rabobank (NL) has an active civil suit against Merill Lynch (now owned by Bank of America). According to their attorney, ML employed the same mechanism as GS on behalf of Magnetar (discussed below).

http://www.businessweek.com/news/2010-04-16/merrill-lynch-us...
That's part of the whole motivation for mixed economic policies in the first place-- to correct market failures. Monopolies, trusts and other such anti-competitive behavior can undermine any good that comes out of the free market, to say nothing of doing things against the interests of the consumer. Honestly, I think that government intervention here would be a good thing, as it seems that DRM and closed platforms are symptoms of a market failure.
Apple's aesthetics are important, no doubt. But equally important was its decision to standardize its computers on BSD and Intel. Before OS X, Apple was a niche product, and its niche didn't include most developers. After OS X, the dev community started to trickle in, but it really took off after the Intel switch. Partly because the Core Duo was much faster than the PowerPC, but also because the PowerPC was a form of lock-in. It kept good software out, and made it hard to develop for other platforms.

Apple owes a lot to standardization and opening up. It's not all App Store lockdown. The question is, is this App Store crap a general trend? Are they going to bring that to the desktop?
How does tactile feedback help to read for the blind?
I am very excited about prospects of 7" $200 tablets - they will make fantastic auxiliary displays around the house.
I used to see a chiropractor for back pain, and honestly it did help a bit.

The real question is not whether it helped, but rather whether it helped more than the equivalent time to heal and possibly a massage would have.

And that's ignoring the risk of injury from a chiropractor's "corrections".
It turns out that the iPhone is actually an excellent smartphone for the blind - check out VoiceOver.
The SEC lacks authority to bring criminal prosecutions. The DoJ has to do that, although the SEC may assist them. Not sure what role they can or do play in criminal proceedings brought by the State of New York.
I always branch before rebasing. Especially when cleaning up history (merging 5-6 "checkpoint" type commits for a big feature into one, etc.) It makes it easy to get back to where you started and you have the original work for reference purposes.
Well, I meant dialog like "dialog boxes", not like a discourse.

I think the shift represents a change in the primary use of a computer. Early on it was just a thing to let you save and read files written with word processors etc. Now, with the internet, people mostly use it scoot around a global network of files, most of which they have never saved or touched themselves.

It would be interesting to see some truly unique concepts of computer usage. KDE wanted to shake it up with KDE 4 and change the whole paradigm, but they ended up essentially just adding widgets and leaving everything else the same. I don't know if there's just no other logical representation for the way we use our computers (doubtful) or if perhaps nobody can seem to think of it because we're too acclimated to the traditional window-based model.