<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-10285260</id><updated>2012-01-19T02:50:13.168-08:00</updated><category term='apex'/><title type='text'>Rich's Code Stuff</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://youngerunger.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10285260/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://youngerunger.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Rich Unger</name><uri>http://www.blogger.com/profile/03541340548025935502</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-10285260.post-891448242164484583</id><published>2010-03-16T09:45:00.000-07:00</published><updated>2010-03-16T09:54:42.400-07:00</updated><title type='text'>Custom Settings and MIXED_DML_OPERATION</title><summary type='text'>Some folks have noticed an issue when using the new Custom Settings feature in Apex.  When you have a piece of code that does DML on both a custom setting and a regular object, you get:
"MIXED_DML_OPERATION, DML operation on setup object is not permitted after you have updated a non-setup object (or vice versa)"

What is Mixed DML?  Well, certain types of DML simply do not mix well.  For instance</summary><link rel='related' href='http://community.salesforce.com/sforce/board/message?board.id=apex&amp;thread.id=23399&amp;view=by_date_ascending&amp;page=1' title='Custom Settings and MIXED_DML_OPERATION'/><link rel='replies' type='application/atom+xml' href='http://youngerunger.blogspot.com/feeds/891448242164484583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10285260&amp;postID=891448242164484583' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10285260/posts/default/891448242164484583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10285260/posts/default/891448242164484583'/><link rel='alternate' type='text/html' href='http://youngerunger.blogspot.com/2010/03/custom-settings-and-mixeddmloperation.html' title='Custom Settings and MIXED_DML_OPERATION'/><author><name>Rich Unger</name><uri>http://www.blogger.com/profile/03541340548025935502</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10285260.post-7355508969548417683</id><published>2010-03-11T09:43:00.001-08:00</published><updated>2010-03-11T10:18:44.620-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='apex'/><title type='text'>Apex Describes and class versions</title><summary type='text'>I'm resurrecting this blog for posts related to Apex, as using my java.net blog for that purpose would be inappropriate.  I'm not sure how often I'll post.  When things of general interest crop up while I'm working on the Apex compiler, I suppose.

Today's topic came up as part of a customer support escalation.  It's a tricky gotcha with the Apex getMap() function, used for getting all the fields</summary><link rel='replies' type='application/atom+xml' href='http://youngerunger.blogspot.com/feeds/7355508969548417683/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10285260&amp;postID=7355508969548417683' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10285260/posts/default/7355508969548417683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10285260/posts/default/7355508969548417683'/><link rel='alternate' type='text/html' href='http://youngerunger.blogspot.com/2010/03/apex-describes-and-class-versions.html' title='Apex Describes and class versions'/><author><name>Rich Unger</name><uri>http://www.blogger.com/profile/03541340548025935502</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10285260.post-111160562514034447</id><published>2005-03-23T11:19:00.000-08:00</published><updated>2005-03-23T11:20:25.140-08:00</updated><title type='text'>Moving to java.net</title><summary type='text'>I'm moving this java show over to my new blog on java.net.</summary><link rel='related' href='http://weblogs.java.net/blog/richunger/' title='Moving to java.net'/><link rel='replies' type='application/atom+xml' href='http://youngerunger.blogspot.com/feeds/111160562514034447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10285260&amp;postID=111160562514034447' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10285260/posts/default/111160562514034447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10285260/posts/default/111160562514034447'/><link rel='alternate' type='text/html' href='http://youngerunger.blogspot.com/2005/03/moving-to-javanet.html' title='Moving to java.net'/><author><name>Rich Unger</name><uri>http://www.blogger.com/profile/03541340548025935502</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10285260.post-110927584915615854</id><published>2005-02-24T11:28:00.000-08:00</published><updated>2005-02-24T12:12:42.883-08:00</updated><title type='text'>At the pub with netbeans folks</title><summary type='text'>There are a bunch of sun developers in town for an internal training seminar on netbeans. I'm the only non-Sun employee speaking at this seminar. I'm giving a little talk on the cluster build harness and my Feedreader tutorial (which won the ipod, BTW).

Anyway, last night a bunch of us got together at a pub in Burlingame.  I got to meet Sanjeev of the safari netbeans project, a bunch of folks </summary><link rel='replies' type='application/atom+xml' href='http://youngerunger.blogspot.com/feeds/110927584915615854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10285260&amp;postID=110927584915615854' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10285260/posts/default/110927584915615854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10285260/posts/default/110927584915615854'/><link rel='alternate' type='text/html' href='http://youngerunger.blogspot.com/2005/02/at-pub-with-netbeans-folks.html' title='At the pub with netbeans folks'/><author><name>Rich Unger</name><uri>http://www.blogger.com/profile/03541340548025935502</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10285260.post-110677620574145327</id><published>2005-01-26T13:40:00.000-08:00</published><updated>2005-02-24T12:13:08.820-08:00</updated><title type='text'>MultiView</title><summary type='text'>So, I just made my first multiview  component.  It was easier than I expected, and the source code in the minicomposer example was particularly helpful.

In fact, too helpful. Or, rather, it was so precisely what I needed, that I wonder why it was necessary for me to copy so much source code verbatim, rather than just invoking some higher level API.

If you have a file type that can be edited in </summary><link rel='replies' type='application/atom+xml' href='http://youngerunger.blogspot.com/feeds/110677620574145327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10285260&amp;postID=110677620574145327' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10285260/posts/default/110677620574145327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10285260/posts/default/110677620574145327'/><link rel='alternate' type='text/html' href='http://youngerunger.blogspot.com/2005/01/multiview.html' title='MultiView'/><author><name>Rich Unger</name><uri>http://www.blogger.com/profile/03541340548025935502</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10285260.post-110626509113358273</id><published>2005-01-20T15:49:00.000-08:00</published><updated>2005-01-20T15:51:31.133-08:00</updated><title type='text'>code snippets in blogger.com?</title><summary type='text'>That last post was a pain, to get the whitespace to work.  Anyone know of a better way to get spaces or tabs at the beginning of lines, besides inserting a bunch of &amp;emsp; tokens?</summary><link rel='replies' type='application/atom+xml' href='http://youngerunger.blogspot.com/feeds/110626509113358273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10285260&amp;postID=110626509113358273' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10285260/posts/default/110626509113358273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10285260/posts/default/110626509113358273'/><link rel='alternate' type='text/html' href='http://youngerunger.blogspot.com/2005/01/code-snippets-in-bloggercom.html' title='code snippets in blogger.com?'/><author><name>Rich Unger</name><uri>http://www.blogger.com/profile/03541340548025935502</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10285260.post-110626453467591792</id><published>2005-01-20T15:20:00.000-08:00</published><updated>2005-02-24T12:15:24.380-08:00</updated><title type='text'>TopComponentGroup semantics</title><summary type='text'>I've been struggling with TopComponentGroup semantics. Basically, I have a TopComponent class A, and a singleton TopComponent B that displays property sheets relating to A. So, in my window system delcarations, I make a group containing the singleton B.

The trick is, when do I call open() and close() on the TopComponentGroup?  The conventional wisdom is to have:

protected void </summary><link rel='replies' type='application/atom+xml' href='http://youngerunger.blogspot.com/feeds/110626453467591792/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10285260&amp;postID=110626453467591792' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10285260/posts/default/110626453467591792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10285260/posts/default/110626453467591792'/><link rel='alternate' type='text/html' href='http://youngerunger.blogspot.com/2005/01/topcomponentgroup-semantics.html' title='TopComponentGroup semantics'/><author><name>Rich Unger</name><uri>http://www.blogger.com/profile/03541340548025935502</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10285260.post-110625188467895066</id><published>2005-01-20T13:02:00.000-08:00</published><updated>2005-01-20T12:11:24.676-08:00</updated><title type='text'>New NetBeans Platform Tutorial</title><summary type='text'>I've finished my entry for the netbeans tutorial contest.  Of course, they then extended the deadline.  However, they've allowed me to post it anyway, so folks get get use out of it right away.  Check it out at http://www.cs.wustl.edu/~rbu1/feedreader/.
My office-mate has already (correctly) pointed out that there's no reason for SiteListComponent to subclass CloneableTopComponent, as it's a </summary><link rel='replies' type='application/atom+xml' href='http://youngerunger.blogspot.com/feeds/110625188467895066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10285260&amp;postID=110625188467895066' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10285260/posts/default/110625188467895066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10285260/posts/default/110625188467895066'/><link rel='alternate' type='text/html' href='http://youngerunger.blogspot.com/2005/01/new-netbeans-platform-tutorial.html' title='New NetBeans Platform Tutorial'/><author><name>Rich Unger</name><uri>http://www.blogger.com/profile/03541340548025935502</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
