Posts Mentioning RSS Toggle Comment Threads | Keyboard Shortcuts

  • donpark 6:04 am on May 14, 2009 Permalink | Reply
    Tags: aptana, gem_lib, radrails, wtf   

    Fixed Aptana RadRails GEM_LIB issue on mac by linking ‘/Users/{user}/.gem/ruby/1.8/gems’ to ‘/usr/local/lib/ruby/gems/1.8/gems’. I can’t blame Aptana for this since it was me who chose to use a tool built by a company that spread itself too thin. I doubt they have more than a couple of engineers working on RadRails which is not enough to provide the necessary quality across the range of environments Aptana is unfortuantely being asked to support.

     
  • donpark 7:30 pm on May 12, 2009 Permalink | Reply
    Tags: fantasy, html5, microdata   

    HTML5 Microdata Fantasy 

    I haven’t been tracking HTML5 design efforts lately but what’s being proposed for microdata (see posts by Sam Ruby and Shelly Powers) yucked me sufficiently to revisit an old fantasy of mine about HTML (man, what a boring life I have). My fantasy was to add general element/structure definition facility to HTML. It should easily extended to support microdata as well.

    The way I envisioned it being used is like this:

    <address>
    <street>123 ABC St.</street>
    <city>Foobar</city>
    <state>CA</state><zip>94065</zip>
    </address>

    which sure is preferable to:

    <div item>
    <span itemtype="street">123 ABC St.</span>
    <span itemtype="city">Foobar</span>
    <span itemtype="state">CA</span>
    <span itemtype="zip">94065</span>
    </div>

    As to how a semantic structures and syntactic sugars can be defined, one very arbitrary way could be:

    <head>
    <def name="address" package="http://test.com/1/mapking"
        params="{{street city state zip}}">
      <div>
        <span>{{street}}</span>
        <span>{{city}}</span>
        <span>{{zip}}</span>
        <span>{{zip}}</span>
      </div>
    </def>
    </head>

    I don’t have any illusions that this fantasy has even a tiny chance of coming true though. Besides, it’s like a beggar asking for caviar when any kind of microdata support will satiate our hunger.

    Boss! Boss! The Plane. The Plane!

    update:

    Here is a more elaborate version of the def element for the bored:

    <def name="name" package="http://ting.ly/name"
      attrs="$$first last$$">
      <span>$$first$$ $$middle$$ $$last$$</span>
    </def>

    which could be used like this:

    <name first="Don" last="Park"/>

    There are lots of wholes in this sketch which is why it’s a fantasy.

     
    • Douglas Hineline 10:31 pm on May 12, 2009 Permalink

      You can’t stop a stampede my man. The general html semantics has too much momentum to change direction too much, besides we’re just now starting to get browsers that act somewhat similar. In the end it is all just XML nodes, but try telling that to IE.

    • donpark 11:25 pm on May 12, 2009 Permalink

      Yeah, I know. I was there when IE core guys explained how the IE worked during a W3C DOM WG meeting. If I could, I would bury W3C in the sand then build an out house over it.

    • Philip Taylor 12:52 am on May 13, 2009 Permalink

      How would your idea differ from simply defining all the data in a separate machine-readable XML file and then using XSLT (or some other templating language) to construct the HTML from it?

    • donpark 8:55 am on May 13, 2009 Permalink

      If it’s done on client-side, only that I think this is easier to learn than XSLT. If XSLT transform is server-side, this is easier to use as well. I find XSLT learning curve rather steep for average HTML jockey.

    • Simon Gibbs 11:25 am on May 14, 2009 Permalink

      If you were to put city state, zip and street elements in a namespace and use CSS3 selectors then you wouldn’t need any syntax transformation in the page, or anywhere else.

      Once the elements are in a namespace and the markup is valid XML getting to RDF (via GRDLL) or unmarshalling objects (XPath, JAX-B) is easy – everyone is happy. Most intelligent people are able to grok XML namespaces given a few days of exposure to them.

      Given CSS3 rather than a def element there is very little missing from standards and tools, so this is not especially fantastic.

    • lun0 3:12 pm on June 4, 2009 Permalink

      hehehe awesome stuff

  • donpark 11:41 pm on May 6, 2009 Permalink | Reply
    Tags: blog,   

    Smiley Profile Image Set 

    I wish I could use a set of profile images instead of just one and have appropriate one displayed based on text content so that if I put a smiley like :-) or ;-) in the text, photo of me smiling or winking will show.

    It doesn’t have to be a face, it could be topic/category images. And I don’t see why tweet-specific images couldn’t be displayed since Twitter already sends out image URL with each tweet (inside ‘user’).

     
    • Linvia 12:00 am on May 31, 2009 Permalink

      Hey this is kind of random, but I stumbled upon your blog when doing a google search.

      I am still very new to this blogging thing and I just installed the P2 theme. I was wondering how you got a display picture up. I don’t know where to even access that.

      If you could help at all that’d be so great :)

      Thanks in advance.

    • donpark 11:07 am on May 31, 2009 Permalink

      Hey Linvia. If you are referring to Flickr Photos, it’s a widget available from WordPress console if you are using WordPress.com service. If you are using your own installation, you’ll probably have to install a WordPress plugin.

  • donpark 10:44 pm on May 6, 2009 Permalink | Reply
    Tags:   

    Trying Twitter/Facebook-like P2 theme to see if that’ll get me to post more often.

    I did change default template’s post body font size and added side paddings for easier reading.

     
    • Tim 5:43 am on May 7, 2009 Permalink

      I just heard about this theme on Matt’s site and WordPress.tv and I’m trying it out as a private site for communications for my youth group. I’m hoping it works good for discussing different topics and activity updates in an easy-to-use format similar to Facebook’s and Twitter’s updates.

    • MiscBytes 1:05 pm on June 1, 2009 Permalink

      I like this theme and think it really encourages conversation. What is is like on the back end? The usual WordPress stuff? I assume you can save drafts if you want – and schedule posts, etc.?

    • test 6:29 am on July 12, 2009 Permalink

      test

    • test 6:31 am on July 12, 2009 Permalink

      test2

c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel