Monday, April 30, 2012

Liferay Web Content Tokens

I did not know that even without all the fancy macro/template/velocity stuff that Liferay Journals/Web Content can do, there is the ability to still insert some dynamic content based on stuff like the j2ee context root.

Examples (for mostly unmodified liferay 6.1 guest community content with liferay still deployed to /ROOT):
@cdn_host@:
@company_id@: 10153
@friendly_url_current@: /web
@friendly_url_private_group@: /group
@friendly_url_private_user@: /user
@friendly_url_public@: /web
@group_friendly_url@: /guest
@group_id@: 10179
@image_path@: /image
@layout_set_friendly_url@: /web/guest
@main_path@: /c
@portal_ctx@:
@portal_url@: 127.0.0.1:8080
@protocol@: http
@root_path@:
@theme_image_path@: /my-custom-theme/images

Deprecated tokens

@friendly_url@: /web
@friendly_url_private@: /group
@page_url@: /web

I grabbed the list of tokens from JournalUtil.java instead of the wiki page.

On a side note, you still can't use the Liferay IDE with a non-ROOT j2ee context root yet.

Thursday, April 26, 2012

Correct DDOS Response

Never ever call Comcast business support for help.  They will reset your router/firewall config without asking you and completely fuck up your network. 

Morons.

Wednesday, April 25, 2012

Redfin Quick Review

After missing the initial call from the guy because I can't usually talk on the phone at work in my shared space, I was never able to get a response. 

Redfin, great in theory, probably super busy agents as a result, I'll never really know.

Monday, April 23, 2012

AlloyUI Problem

I'm giving up on abandoning jQuery in my latest iteration of my Liferay theme.  I cannot for the life of me get a dropdown menu using menuNav to work.  If anybody knows how to do this, I would really appreciate a little help.  I can make the yui examples work, but can't get a dropdown in my theme to do anything useful.  Back to superfish menus for now.

Friday, April 20, 2012

OpenHardware DC

That was moderately fun.  Only one stupid question from the peanut gallery (some NASA guy compared open source hardware to growing marijuana and talked for a long time preventing me from getting in my question about when techies should decide to call in the MBAs or take business classes themselves), but several neato things at the demos.

Conductive playdoh for building circuits:
http://courseweb.stthomas.edu/apthomas/SquishyCircuits/index.htm

RepRap, MakerBot, of course (3d printers).  Got to play with one of the gears hearts.

Sparkfun guy was there with tons of arduinos and other gadgets.

A toy piano covered with pieces of either fruit or jello which then work as real toy piano keys.

Bunnie Huang

A seeing eye glove which senses distance and feeds it back to the wearer somehow (I didn't hear how)

HacDC guy talking about the DC hackerspace which is in Columbia Heights and too far away from my house for me to attend.


Thursday, April 12, 2012

Open Hardware DC

I'm excited about this:
http://www.publicknowledge.org/event/ohdc-open-source-hardware-comes-dc

Especially since I don't get to play with hardware nearly enough.  There's not a hackerspace nearby and I don't have space in my home for a workshop.