Beta
×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Comments

top

Solar Plant Sets Birds On Fire As They Fly Overhead

jcr Re:god dammit. (440 comments)

He wasn't speaking for them, he was berating them. Your inability to grasp the distinction has invalidated your criticism.

-jcr

yesterday
top

News Aggregator Fark Adds Misogyny Ban

jcr Does Fark still exist? (687 comments)

I quit reading it when foobies.com was split off into a separate site.

-jcr

2 days ago
top

EFF's Cell Phone Guide For US Protesters

jcr STOLEN, not "confiscated". (82 comments)

Confiscation is legal. When a pack of thugs in costumes takes your phone to keep you from exposing their crimes, they're stealing your phone, not confiscating it.

-jcr

4 days ago
top

Apple's App Store Needs a Radical Revamp; How Would You Go About It?

jcr Armchair quarterbacking. (249 comments)

why not assign a small group of adepts to create and shepherd an App Store Guide ...because there are millions of apps, and this would be a hell of a lot of effort just to piss off the majority of developers who won't receive preferential treatment.

-jcr

about a week ago
top

3 Congressmen Trying To Tie Up SpaceX

jcr Re:A P-47 could not... (391 comments)

.carry 8,000lb+ of bombs to target

How many thousands of pounds of explosives does it take to blow up five dudes in a VW bus?

-jcr

about a week ago
top

3 Congressmen Trying To Tie Up SpaceX

jcr Re:You don't say.... (391 comments)

If the F35 is obsolete, all other aircraft in the world are also.

No, just all other fighter aircraft.

The F35 is a cold-war relic. A world war two P47 could do just a good a job at bouncing the rubble in a village in Afghanistan.

-jcr

about a week ago
top

Silicon Valley Doesn't Have an Attitude Problem, OK?

jcr Rents in SF are a GOVERNMENT problem. (261 comments)

SF is extremely hostile to new property development that would increase the supply of housing in the city.

-jcr

about two weeks ago
top

New Process Promises Ammonia From Air, Water, and Sunlight

jcr Re:Keep feeding the Useless Eaters (117 comments)

billions of useless mouths

If you want to reduce the population, feel free to start by offing yourself, Adolf.

-jcr

about two weeks ago
top

New Process Promises Ammonia From Air, Water, and Sunlight

jcr How about growing the bacteria? (117 comments)

So, how does this process compare economically to just growing nitrogen-fixing bacteria?

-jcr

about two weeks ago
top

Why Morgan Stanley Is Betting That Tesla Will Kill Your Power Company

jcr Re:An interesting death spiral (502 comments)

But there are a number of customers who can't leave. Some are simply the poor who can't obtain the credit for the capital costs, others are people in poor solar/wind locations; and then there are the high density customers who simply can't obtain a sufficient amount of renewables from their property such as tall buildings and factories.

I would expect those customers to still be better off, because lowered demand for coal and oil will drop the prices of those fuels.

-jcr

about two weeks ago
top

LinkedIn Busted In Wage Theft Investigation

jcr Re:If only we had a union (108 comments)

ech / IT as a union will put a stop to a lot of this BS

Oh, fuck off. I don't need another goddamned racket sucking money out of my paycheck to buy hookers and blow for politicians and mafia bosses.

-jcr

about two weeks ago
top

LinkedIn Busted In Wage Theft Investigation

jcr Re:How Google Trains Their Recruiters - Old IT Guy (108 comments)

I'm not interested in another battery of wanna-be MENSA admission tests.

I never interviewed at Google, because I know several first-rate developers that got screened out by those hoop-jumping exercises. I have one friend there who asked me several times to apply, but he couldn't tell me what he was working on. Turned out his project was Google Earth. Might have been interesting to work on, but I think I did much better for myself and my career by going to Apple.

-jcr

about two weeks ago
top

LinkedIn Busted In Wage Theft Investigation

jcr Re:Go figure. (108 comments)

The really talented people leave.

That happened at LinkedIn years ago.

I had a phone interview with them once, and I cut it short. The guy interviewing me was in no way qualified to ever be my boss.

-jcr

about two weeks ago
top

Apple $450 Million e-Book Settlement Wins Court Approval

jcr Re:Very disappointing. (93 comments)

you admit that Apple committed the crime,

He did no such thing.

Apple broke up Amazon's monopoly. Because they did so, authors no longer had to just take whatever Amazon was willing to let them have.

-jcr

about two weeks ago
top

Apple $450 Million e-Book Settlement Wins Court Approval

jcr Very disappointing. (93 comments)

The charges were bullshit from the get-go, and they were filed because Amazon pays a hell of a lot more bribe money in Washington than Apple ever will. Steve would have fought this to the supreme court.

-jcr

about two weeks ago
top

The Great Taxi Upheaval

jcr Re:The Free Market has the Technology Now (218 comments)

Finance is lightly regulated:

Speaking as one who has worked on Wall Street and had first-hand experience with financial regulation: you're on crack. Finance is our most heavily-regulated industry, right after medicine and operating nuclear power plants.

-jcr

about three weeks ago
top

The Great Taxi Upheaval

jcr Re:The Free Market has the Technology Now (218 comments)

my experience with medicine and airlines in the US, where I was born, and in the EU, where I have lived for a long time now, certainly speaks in favour of more regulation.

You are mistaken.

The FDA kills people by the thousands by keeping drugs off the market that could save their lives, and air travel is vastly cheaper today than it was when prices were de-regulated during the Carter administration.

-jcr

about three weeks ago

Submissions

top

Ed Roberts, Personal Computer Pioneer, 1941-2010

jcr jcr writes  |  more than 4 years ago

jcr writes "CNET and the Huffpo both report the death of Henry Edward Roberts, best known to all of us as the inventor of the Altair computer, at the age of 88 from pneumonia.

As it happens, I never got to use an Altair, but I did meet Ed once, back in the mid-1980s. Since that time, I've never referred to the Altair bus as the "S100" bus, since I agree with him that an inventor is entitled to name his invention.

-jcr"

Link to Original Source
top

Grow your own heart valves.

jcr jcr writes  |  more than 6 years ago

jcr writes "Medical researchers in Britain have succeeded in growing a heart valve from adult stem cells taken from bone marrow. The research is being reported in the journal of the Royal Society today. Growing a heart value from your own cells means that tissue rejection isn't an issue."
Link to Original Source
top

Non-toxic, paper batteries

jcr jcr writes  |  about 7 years ago

jcr writes "Researchers at Rensselaer Polytechnic Institute have developed a combination battery/capacitor by infusing carbon nanotubes and electrolytes into a paper substrate. The material can be folded, rolled up, or molded to any convenient shape with no effect on power capacity. Operating temperature range is -100 to 300 degrees Farenheit, which beats any other battery I've ever heard of."
Link to Original Source

Journals

top

The tragedy of brain-dead apparatchiki entrusted with the care of children.

jcr jcr writes  |  about 2 months ago

Earlier today, I read an account of a little girl getting a severe sunburn while on a school field trip, because of an unconscionable policy prohibiting children from possessing sunscreen while at school or on school activities. I looked up the name of the spokesman who had the nerve to try to defend this policy to the press, and wrote her the following e-mail:

Miss Chancellor, you and the pinheads you serve in the Northeast Indecent School District are a tragic example of the kind of abject incompetence that pervades American public schools in the past several decades.

I would urge you to resign and pursue employment in the janitorial services industry, but youâ(TM)re obviously too goddamned stupid to be trusted with cleaning supplies.

-jcr

Well, it would appear that Miss Chancellor was offended by my criticism, and she replied thusly:

Your comments do not warrant an intelligent response. Clearly - you do not have all the facts.

Now, it's rather unusual for an apparatchik in a shitstorm to bother to respond to any of the angry e-mails they get, so naturally I have replied:

On Jun 6, 2014, at 10:26 AM, Chancellor, Aubrey wrote:

>Your comments do not warrant an intelligent response.

Since youâ(TM)re entirely incapable of an intelligent response, that just works out fine and dandy now, doesnâ(TM)t it?

>Clearly - you do not have all the facts.

The fact is that when you screw up like this, the thing to do is apologize and promise the parents, the child, and the rest of the community that it will never happen again. You donâ(TM)t double down on your idiotic policy of depriving children of sunscreen.

When children are entrusted to you by their parents, your paramount duty is to ensure their safety and well being. it is NOT to sacrifice their welfare to your psychotic need for obedience.

-jcr

More on this as it develops. Start the popcorn.

top

Throwing in the towel on Facebook.

jcr jcr writes  |  about 3 months ago

Last post to FB:

In the time since I created this Facebook account in 2006, I found a bunch of old friends, met many new ones, wasted a whole lot of time, had some arguments that never would have happened in real life, and been frequently annoyed by the business decisions FB has made.

This post will be my last. I will delete this account 48 hours from now. Those of you who want to keep in touch can reach me as always at jcr@mac.com, which I've had for at least a decade.

All's well that ends. I wish you all peace, love and happiness.

It feels like leaving high school. There are people there that I will always care about, some that I love, some that I barely know, some that I have no idea how I met in the first place or why they're in my FB friends list.

A very smart friend of mine is working on changing social media from a site and a vendor that sells the users' info to advertisers, into a protocol that would operate on a peer-to-peer basis, with strong security to ensure that what we write goes to those we wish, and no one else. I hope he succeeds, and I look forward to making a fair bit of cash shorting FB when the writing appears on the wall.

  I will thank my friends who worked on FB, and every user there who ever shared a heartwarming, interesting, inspiring, or even outrageous bit of information that I wouldn't have found otherwise. Congrats to all the FB millionaires and worker bees, I wish them all the best.

I'll still be NSResponder here on /., on StackOverflow and Twitter. The internet is still a lot bigger than Facebook, and I'll see you all around.

top

Well, that about wraps it up for e-trade.

jcr jcr writes  |  about a year ago

E-mail to Neal Martin, E-trade's vice president of customer service:

Well Neal,

I doubt that this message will actually get to you personally, but what the hell.

After the fracas over the last few weeks in which e-trade failed to issue me a second ATM card, I finally got around to transferring the bulk of my shares to a competent broker.

The automatic mail from e-trade notifying me of the transfer included this paragraph:

E*TRADE strives to achieve best in class service and is focused on meeting all of your financial needs. We would like to understand your reason for your transfer out and see if there are any improvements we can make to serve you better in the future. If you have the time to discuss, please call us at 1-800-ETRADE -1 (1-800-387-2331).

The fact is, after going around with your underlings a few times on my requirement for a second card, and having told each of them several times that this was a deal breaker, I know that the claim that youâ(TM)re âoestriving to achieve best in class serviceâ is nothing but marketing drivel. Indeed, my direct, personal experience has shown me that my business isnâ(TM)t important enough to get on the radar of anyone who would actually solve the problem.

I had already planned to find another broker, but the thing that made me hurry up and do so was receiving your oh-so-thoughtful gift of an e-trade gym bag. So, after refusing my very simple request, you apparently assumed that Iâ(TM)d be satisfied if I just got a bag to advertise an incompetent financial institution to my friends.

Looking at the transaction log, I see that e-trade has charged me $25 for the privilege of taking my property elsewhere. Now, Iâ(TM)m sure you have something in your fine print that allows you to do that, but itâ(TM)s still kind of shitty on your part. Given that youâ(TM)re not even capable of issuing two cards on one account (as you had done for the previous decade or so), waiving that fee is probably entirely beyond the capabilities of the fifth-rate keyboard monkeys in your so-called âoeIT departmentâ, so you can go ahead and keep it. Iâ(TM)m getting a nice welcome gift from your competition, which I didnâ(TM)t even ask for.

Would you like the gym bag back?

-jcr

top

Even less impressed with E-Trade.

jcr jcr writes  |  1 year,13 days

Got this from some minion at E-trade, since the VP I wrote to was apparently too busy to answer a customer personally:

Good Morning Mr. Randolph,

We received your email inquiry to our VP of Customer Service, Neal Martin on 8/5/13. We regret that we are unable to accommodate your request for two ATM cards for your account. We appreciate your feedback and it has been shared with management and our product teams for review. If you have any additional questions or concerns feel free to contact me at [phone number deleted]

Thank You,

[Name redacted]
Corporate Support Manager
Alpharetta GA
E*TRADE Securities LLC
[phone number redacted]

Manager? Yeah, right. In a functioning company, a manager is someone who takes the initiative to solve a problem.

I left the VP's name because he fully deserves to have this come up when someone googles him in the future.

My response:

[redacted],

You might mention to Neal Martin that when a customer responds to an email message that has his name on it, itâ(TM)s rather poor form to pass the buck to someone else unless that other person is capable of solving the problem.

I was a more-or-less satisfied customer of E-trade for over a decade. I will be transferring my assets to another broker in the near future, as soon as I determine which of your competitors can demonstrate the competence that E-trade has abandoned.

-jcr

top

Rather unimpressed with E-Trade today.

jcr jcr writes  |  1 year,15 days

I've been a customer of theirs for over a decade, and I've had two ATM cards for the same account for many years. Recently, I needed to cancel one of the cards and instead of just replacing that card, they cancelled both of my cards. I just sent the following message to Neal Martin, VP of customer service at E-trade.

Neal,

I got a call from one of your employees this morning, Meagan something, who told me that after looking into it she wasnâ(TM)t able to find a way to issue a second card for my account. Her suggested workaround was that I should open another account, and get an ATM card for that account.

So, because of your IT departmentâ(TM)s refusal to fulfill a very simple request, E-tradeâ(TM)s âoesolutionâ is that I should give you MORE of my business, and incur whatever additional costs are associated with having a second account. Not to mention that using a second account means that if I lose a card while traveling, Iâ(TM)ll either be dead in the water for a day while funds get transferred to that second account, or Iâ(TM)d have to have money parked in that second account already.

Now, Iâ(TM)m a software engineer myself with a fair bit of experience in financial systems. In my Wall Street days, I worked at JP Morgan, Salomon Brothers, and UBS/Warburg. I know that there is indeed a way to solve the problem at hand, even if it requires manually editing a database to make it happen. If my business is important enough to you, youâ(TM)ll direct your IT department to do so.

In the meantime, I suggest your inform all of your employees in customer-facing roles that âoesecurity policy" is not an excuse for incompetence.

-jcr

The message above was a follow-up to this one:

Hello Neal,

I have been an E-Trade customer since 2002 or thereabouts, and I currently have about [redacted] in assets on deposit with e-trade.

Iâ(TM)ve got to say, Iâ(TM)m on the verge of taking my business elsewhere and itâ(TM)s because of something that should be trivial for you to solve.

Iâ(TM)ve had two debit cards for my account for a decade or more, and Iâ(TM)ve just been told that I can only have one now. This doesnâ(TM)t work for me, because I travel quite a bit, and I like to keep one card in the safe in my hotel room, and have the other one on me. If I lose a card while traveling, I do not want to be stranded without a way to access my funds.

Yesterday, I spoke with a representative who told me that he had figured it out and was sending me an additional card, but this morning he called me back and told me that he couldnâ(TM)t do it after all. Just now, I spoke with another representative from your âoeCorporate Relationship Managementâ team, and heâ(TM)s looking into it.

Iâ(TM)ve generally been happy with E-trade up to this point, but if you canâ(TM)t issue me two cards as before, itâ(TM)s a deal breaker. I hope you get this figured out.

Also, donâ(TM)t put your name on an e-mail address that doesnâ(TM)t go to you directly. Itâ(TM)s insulting.

-jcr

The upshot is I did some shopping around and found that Scottrade's fees are lower than E-trade's. The first brokerage company I find that can issue two cards on one account will get my business.

top

Another interesting stint at Apple.

jcr jcr writes  |  1 year,16 days

For the last two years (almost), I was back at Apple working on the UI frameworks that the ProApps and the iApps use to give them their distinctive look. Interesting work, nice people to work with, and now I can say that there's some of my code in most of Apple's Pro and consumer apps on the Mac.

To everyone in PhotoApps, ProApps, Frameworks, and Dev Tools, thanks much! I enjoyed working with you.

-jcr

top

Back to Apple...

jcr jcr writes  |  more than 2 years ago

I'm on my way back to Infinite Loop, and I'm starting on Tim Cook's first day as CEO. Wish us luck.

-jcr

top

Is your company new to the Mac or the iPhone?

jcr jcr writes  |  more than 5 years ago

1) Mac users are highly sensitive to the quality of your products' user experience. What this means is, go native or don't bother. Even though Google Earth and Photoshop are rife with UI atrocities, don't imagine that you can get away with ignoring the rules like they can. They're 500-pound Gorillas, and you're not. If you are Google or Adobe, get with the program and write a Cocoa UI, already. It's about time.

2) The native language for the Mac and the iPhone is Objective-C. Get used to it; it's not hard to learn. Any developer familiar with C should be able to learn Objective-C in a day, and be an Objective-C language lawyer within a week if he cares to. Yes, there are Ruby, Python, and other bridges you can use, and they work just fine, but limit this to integrating existing libraries with your apps. DO NOT try to use the bridges as a way to avoid learning the environment you're working with.

3) A cross-platform GUI is neither feasible nor desirable. You can't #ifdef the difference between Cocoa, xlib, and Win32. Don't believe me? Look at OpenOffice. (If OpenOffice looks OK to you, then please, forget about offering your products on the Mac. You'll only cause us pain.)

4) Don't bother with third-party cross-platform GUI libraries like Qt. Yeah, you can make it sort of work, but you'll get a lot of complaints from your Mac customers, and it will be more expensive than properly factoring your code and writing a native GUI for each platform. For every Mac customer who complains about a bad UI, there are many more who took one look at it and decided never to do business with the vendor in question. I just learned from a friend that Qt is far worse than I'd realized: if you use Qt, you wont' get any hardware acceleration , and you won't be able to deliver ADA compliance.

5) If you're shopping for people with years of experience in Cocoa and Objective-C, you should know that they're pretty scarce due to the flood of iPhone projects going on these days. I'm hearing about people getting $200 to 250/hr for iPhone projects. Keep in mind that you're also competing with Apple for those developers, and chances are your project isn't as interesting as Apple's. If you're a start-up and you can offer equity, then it's not too hard to find people who are willing to gamble with you if they believe in your business plan. Mac and iPhone developer tend to be somewhat less risk-averse than the average engineer, in my experience.

6) If you can't afford experienced Mac developers, you'll have to make your own. Save yourself a lot of time and money by sending your people to a class. I recommend Big Nerd Ranch, that's where Apple sent their own people when they quit doing Cocoa training in-house. Keep in mind though, that once your newly-minted Cocoa developers have a year or so of experience under their belts, you'd better be prepared to offer them market rates, or you'll lose them. Back in the NeXTSTEP days, Fannie Mae insisted on low salaries, and they lost people steadily to other NeXTSTEP shops. Attrition is expensive; it will cost you more than you think when your institutional knowledge of your product scatters to the winds.

7) Send your people to the Apple developer conference every year. I can't emphasize this enough. Time is money, and the connections you can make there with the Apple engineers you need to know can save you weeks or months of trial and error.

That should do for starters.

Addition 8/24/09:

8) When interviewing an Objective-C expert, DO NOT try the "Microsoft style interview". (See #5 above.) We are not entry-level, fresh-out-of-DeVry kids who have the time for solving the little brain teasers that someone looked up on the web last night. Talk about the actual work at hand, how the candidate's previous experience is relevant to what you need to do, and ask for some examples of creative solutions they've come up with before.

9) Probably the best place to advertise for iPhone or Mac developers is the cocoa-dev mailing list at lists.apple.com. You have to be a subscriber to the list, and you have to send your ad to the moderator for approval first. In any ad on Cocoa-dev, be very specific about what kind of developer you're looking for, and what the job entails. This is not the place to just list buzzwords or try to lowball anyone.

10) When advertising for candidates, don't hide behind a webform or an e-mail address. Put a phone number in your ad that reaches a human being. People with skills that are in high demand aren't going to mail their resume to recruiter@companyNobodyEverHeardOf, because that kind of thing gets you spammed.

-jcr

top

jcr jcr writes  |  more than 5 years ago

This goes out to every left- or right-wing power seeker, who believes that everything will be just dandy if only they get the right bunch of little tyrants in office.

Ok, time for a bucket of cold water in the face, kids.

First, income is not "distributed", it's earned, and it belongs to those who earn it.
Second, you have no moral right to take someone else's earnings, even if they have more than you do. It doesn't become moral if you hire a thug to do it for you, and it doesn't become moral if you have a group of hundreds of thousands of thugs and bureaucrats to do the dirty work.

The legitimate power of the state can ONLY derive from a delegation of the rights of the people. Free people institute governments to secure our rights, not to interfere with them.

We have a written constitution in this country, and despite its having been routinely ignored whenever government found it inconvenient, it is nevertheless the entirety of the legal basis for the government's existence. If the government doesn't want to follow the constitution, then the government has no legitimate authority, at all.

Maybe you can make a compelling utilitarian argument for some of the currently unconstitutional activities that the federal government engages in, and if so, then propose an amendment, let's have that national debate, and maybe you can get your amendment ratified. Until and unless that happens, the federal government has no legitimate basis to harass sick people for using marijuana, to take our hard-earned wealth and give it to failed banks, to "redistribute" our earnings, to interfere with the choices we make for our health care, to prevent us from traveling to any country we care to visit, or to draft us into "national service."

We are not the property of the state. Get that through your power-hungry little minds.

-jcr

top

jcr jcr writes  |  more than 6 years ago

I happened to hear a recording of a fine performance of our national anthem a short while ago, and the question posed at the end of the song suddenly caught my attention.

"O, say does that star-spangled banner yet wave, over the land of the free, and the home of the brave?"

That's really the most profound thing that Francis Scott Key ever wrote. The question isn't whether the symbol of freedom still exists, we can see that it does. The question is: are we still free? Are we still brave enough to demand and defend our liberty?

A year ago, I would probably have said no. Today though, with Ron Paul's book at #1 on the New York Times' bestseller list, I'm rather more hopeful than I have been in a very long time.

-jcr

top

A rather sad story.

jcr jcr writes  |  more than 8 years ago

Like many other Libertarians, I generally regard self-declared "liberals" as well-meaning, but hopelessly deluded on matters of economics. In the last few days though, in the aftermath of the hurricane, as they scramble to blame the Bush administration for failing to take the precautions that were also ignored by every other administration back to Abraham Lincoln, I began to wonder whether they were actually interested in helping the people of New Orleans, or simply reveling in the opportunity to work up a lather blaming George Bush for a natural disaster.

Then, I came across this discussion.

Now, knowing just how rare it is for a mugger to lure a victim by pretending to have a disabled vehicle, it has been my policy for as long as I've been driving to stop and help anyone whose car has broken down, since I'd like to have the same common decency applied for my benefit should I need the same help. I've stopped to pick up a young couple at 3:00am on a completely deserted road, and been told that a dozen other people had passed them by already, including more than one highway patrol car. Nearly every time I've helped someone on the road, they were surprised that I did so without fear.

That being said, the story that this "demgurl" at democraticUnderground.com tells about zooming away from a woman and a child who needed help, because the mother had performed the unpardonable sin of having a George Bush sticker on the bumper of her van, made me wonder what it might take for me to behave similarly. Perhaps if I spotted a sticker that promoted a racist agenda, I might drive on by. But wouldn't I do better to pick up a person in such a circumstance, and let the Klansman or Nation of Islam adherent know that they had been helped by a Jew?

Let me also offer a suggestion for a "liberal" who might find himself in such a situation. Perhaps the young mother was not the owner of the van she was driving. What then? Should she be left stranded because her brother or grandmother may have supported George Bush? What if she is indeed a Bush supporter? Does that mean that she's not a human being deserving of compassion? Isn't it the Liberals who are always excoriating the Conservatives for callously ignoring people in need?

I'm reminded of a story of a Rabbi a few years ago who was getting hateful phone calls from a neo-Nazi. The Rabbi found out who this man was, learned that he was disabled (wheelchair-bound), and offered him help. He ran errands for him. He patiently listened to all the evils of the "Worldwide Jewish Conspiracy" that the man spewed at him, and pointed out where the man contradicted himself. Sometimes they argued, but the Rabbi consistently helped the man. The Nazi eventually converted to Judaism, and celebrated his Bar Mitzvah in that Rabbi's synagogue.

I'm not a religious person, but there are some very profound sayings in the Torah and the Christian scriptures. One of them that I pay attention to in particular, is "by their fruits shall ye know them." When I look at "demgurl"'s behavior, I see a vicious little misanthrope. I see the other people in the discussion chiming in and telling her that what she did was acceptable. I see a stunted, infantile, and utterly narcissistic world view. The fruits of this woman's world-view are hatred and division. I hope she snaps out of it some day.

-jcr

top

Comments on some of my Obsolete Sample Code

jcr jcr writes  |  more than 9 years ago

I wrote a number of Sample Code projects when I was at Apple, and we didn't have a way to mark them as superseded or obsolete, so let me just give you a few notes on them here. As far as I know, all of these samples work just fine on Mac OS X 10.4 (Tiger), but in many cases, the code in these samples is no longer necessary, or can be greatly reduced by using new features of Tiger.

Animated Slider
Back when I first wrote this sample, iTunes had just added a graphic equalizer, which does a spiffy trick of animating the motion of the sliders from one preset configuration to another. This sample demonstrated how simple it was to add this animation capability to all NSSliders in your app, but today, with the NSAnimation and NSViewAnimation classes it's even easier.

RGB Image
The purpose of this sample was to demonstrate how to use compositing to separate any image into its Red, Green and Blue components. This was superseded by...

RGB Value Transformers
In this program I refactored the compositing code into an NSValueTransformer subclass, called RGBTransformer. It's a much better way to organize the code than its predecessor, but today I would do this kind of thing with no code at all, using the Color Matrix patch in a Quartz Composer composition.

Polygons
This sample is mostly about how to add methods to NSBezierPath for shapes that you might want to draw often. If I were writing this example today, I'd use Bindings, and there would be a lot less glue code. In fact, I'd probably delete the Controller class altogether.

Tinted Image: this app is still handy for testing various combinations of colors and compositing modes. But, if you want to apply coloration to an image in your app, you should look into the much richer capabilities of CoreImage.

Transformed Image:
  Not much to say about this one. I added a category to NSAffineTransform to make shearing a little more obvious.

Monochrome Image:
This is completely obsolete in Tiger. Use the CoreImage monochrome filter, "CIColorMonochrome" instead.

Image Difference:
I was rather proud of this one at the time I wrote it. I was curious what the error was in JPEG images with various levels of compression, so I figured out how to subtract one image from another by compositing. I still had to do some manual bit-twiddling of the image data in the NSBitmapImageRep instances to generate the negative images, which I definitely would not do today. This is another of those things that Quartz Composer can do with no code at all.

Cropped Image
In the Cropped Image sample, I show how to use compositing to extract a portion of an image, and also a few ways to draw a selection indicator. If you have something like this to do today, consider putting the selection marker in its own layer, instead of drawing it over the source image as I did here. It would be far more efficient that way.

Color Sampler
Totally obsolete in Leopard and later. See the WWDC 2009 session on NSImage for how this kind of thing should be done today.

and, on any Mac with Xcode installed, at /Developer/Examples/CoreData/Stickies, you will find the first Core Data app I ever wrote. The Core Data team liked it enough to put it on the Developer Tools DMG.

There's a bug that appeared sometime before Leopard that prevents the sticky windows from resizing. The solution is to explicitly turn on mouseMoved events when there's a mouseDown in the resizing corner. To remedy this, add the following code to "StickyResizeCornerView.m", inside the implementation context:

// Fix for Leopard. Turning on MouseMoved events wasn't necessary before Leopard, but now it is for some reason. -jcr
- (void) mouseDown:(NSEvent *) theEvent { [[self window] setAcceptsMouseMovedEvents:YES]; }
- (void) mouseUp:(NSEvent *) theEvent { [[self window] setAcceptsMouseMovedEvents:NO]; }

top

JCR's first CoreData app..

jcr jcr writes  |  more than 9 years ago

Those of you who have the Xcode tools installed on your Mac, can find my first CoreData app in /Developer/Examples/CoreData/Stickies/.

I wrote it mostly to learn how to use CoreData in a non-document-based app. Once I showed it to the CoreData team though, they liked it enough to include it in the Developer Tools examples.

There's a lot of code in that app, but nearly all of it is just to implement the bizarre little mutant windows that people expect to see in a Stickies application.

The real work of the app, that is, storing rich text notes in a per-user database, requires no code. After more than a decade of NeXTSTEP and Cocoa development, that still amazes me.

When you run CoreData Stickies, open the debug window for a different view of the database.

  If you have any questions about this sample, go ahead and post them in a comment here. I'll check this page from time to time.

Note: on Leopard, there's a bug prevents the windows from resizing. To fix it, add these two lines of code to StickyResizeCornerView.m: // Fix for Leopard. Turning on MouseMoved events wasn't necessary before Leopard, but now it is for some reason. -jcr
- (void) mouseDown:(NSEvent *) theEvent { [[self window] setAcceptsMouseMovedEvents:YES]; }
- (void) mouseUp:(NSEvent *) theEvent { [[self window] setAcceptsMouseMovedEvents:NO]; }

top

Leaving Apple..

jcr jcr writes  |  more than 9 years ago

Posted to the Apple Cocoa Developer's list, on May 18, 2005:


Ladies and Gentlemen,

After about three and a half years at Apple, I'll be departing to pursue new opportunities following the 2005 World Wide Developer Conference. I've enjoyed my time here, and expect to remain an Apple developer and be active in the Cocoa developer community for the foreseeable future.

I'd like to thank many people, chief among them being my fellow moderators, Malcolm, Scott, and Matt, for the great work they've done with the list, and also all of the Apple engineers who've helped us out so much with answers to developers' questions.

To Ali Ozer and all of the Cocoa team, Bill Bumgarner and the CoreData group, Matt Firlik and the Xcode team, John Geleynse and the Apple Evangelists, my colleagues on the WWDR SWAT team, my fellow DTS engineers, and all of my colleagues in Apple Worldwide Developer Relations: thanks for all the help! You're some of the best people I've ever worked with, and I do intend to keep in touch ;-)

As I move on from being an Apple engineer to once again being a customer and developer, I look forward to the business opportunities that Tiger makes possible, and I can't wait to see what Apple comes up with next!

-jcr

Ok then, that being said.. One of the things I'm really going to enjoy about being outside of Apple, is that I no longer have to toe the party line about the relative merits of Carbon Vs. Cocoa. More on this in the near future ;-)

Slashdot Login

Need an Account?

Forgot your password?

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>