Casa de Lewis http://www.casadelewis.com Casa de Lewis Feed en-us Symphony 2 Command Alias in Command Prompt Using Windows 7 http://www.casadelewis.com/entry/command-alias-in-command-prompt-using-windows-7/ 2011-04-19 http://www.casadelewis.com/entry/command-alias-in-command-prompt-using-windows-7/ <p>I recently organized my projects and in doing so I created some very long paths to type into the command prompt when using <a href="http://git-scm.com/">git</a> and <a href="http://sass-lang.com/">SCSS</a>. I came across <a href="http://superuser.com/questions/183475/how-to-alias-commands-on-3-command-prompt">just what I was looking for</a> to alleviate the verbose typing and thought I would share it here since I found it to be quite an obscure command name.</p> <h3>doskey</h3> <p>Instead of having to type, <code>cd "C:/Users/Mark/Documents/Projects/Symphony/Foo"</code> now I can simply type <code>foo</code> into the command prompt.</p> <p>To achieve the result above, I set up an alias by typing, <code>doskey foo=cd "C:/Users/Mark/Documents/Projects/Symphony/Foo"</code> into the command prompt.</p> <p><code>doskey</code> is a huge timesaver, so start using it now!</p> <h3>There&#8217;s a catch</h3> <p>Once you close the command prompt all <code>doskey</code> shortcut are lost. So, what to do? Well, <code>doskey</code> allows you to create a file containing all of your shortcuts. You can then load this file at the beginning of your session by issuing the following command, <code>doskey /macrofile=FILE_LOCATION</code>.</p> New Symphony CMS Website http://www.casadelewis.com/entry/new-symphony-cms-website/ 2009-05-08 http://www.casadelewis.com/entry/new-symphony-cms-website/ <p>Exciting things are happening in <a href="http://symphony-cms.com">Symphony CMS land</a>! The Symphony team just launched a <a href="http://symphony-cms.com">new website</a> completely powered by Symphony CMS. If you haven&#8217;t checked in on Symphony CMS lately, I suggest giving it another look. You will be amazed by the power and flexibility of this brilliant CMS.</p> <blockquote> <p>Symphony is an open source content management system designed to let developers program exclusively in the XSLT templating language. The philosophy behind Symphony is that nothing should be sacrificed for flexibility – developers should have full control over their website’s markup, URLs and data structures.</p> </blockquote> <p>Whether you&#8217;re checking out <a href="http://symphony-cms.com">Symphony CMS 2</a> for the first time or considering it as a replacement for your current CMS (i.e. ExpressionEngine, Wordpress, Textpattern), you&#8217;re going to love the new community.</p> E-Mail Aliases and Google Apps http://www.casadelewis.com/entry/e-mail-aliases-and-google-apps/ 2008-12-13 http://www.casadelewis.com/entry/e-mail-aliases-and-google-apps/ <p>Google Apps offers both e-mail and domain aliasing for Gmail. If you&#8217;re like me and set up nicknames and then sent one of your newly set up aliases a test e-mail from within your account, you may be scratching your head. I found documentation and additional searching to be somewhat unclear, so let me explain how it works.</p> <p>Google&#8217;s feature for e-mail aliases is referred to as nicknames, although sometimes referred to as aliases in their documentation. You add nicknames to an individual&#8217;s account by clicking on user accounts and then the individual account. Scroll down until you come across Nicknames. Adding nicknames is simple but the way in which they function is unclear, mainly due to the way in which they appear in the interface. Nicknames are always created using the default domain, but they will also work with domain aliases without any additional setup.</p> Dynamic Image Placement in Symphony http://www.casadelewis.com/entry/dynamic-image-placement-in-symphony/ 2008-07-02 http://www.casadelewis.com/entry/dynamic-image-placement-in-symphony/ <p>Until recently I wasn&#8217;t using images in my journal entries or project entries. I haven&#8217;t really had a need until now and I also didn&#8217;t care for the workflow needed to insert images. Although still in beta, Symphony 2 has yet to provide an obvious way to manage images with posts efficiently. The solution is dynamic image placement using a section link and XSLT.</p> <p>Symphony 2 allows you to link one section to another. Although it is possible to have a number of predefined image upload fields in an entry, it is not possible to associate metadata with those images. The ability to create a section link overcomes this limitation by creating an <code>Images</code> section that allows one to upload images and associate the necessary metadata. This also gets rid of limitation on the number of images that can be uploaded. For these reasons, a devoted section for images is preferred.</p> Social Networks You Love to Hate http://www.casadelewis.com/entry/social-networks-you-love-to-hate/ 2008-06-18 http://www.casadelewis.com/entry/social-networks-you-love-to-hate/ <p>Every week I come across an article written by someone conveying their hatred for Facebook or MySpace or other social network. I don&#8217;t necessarily share the hatred for the social networks but I do see some problems.</p> <ul> <li>The application is annoying and difficult to use.</li> <li>The application abuses their trust and privacy.</li> <li>The application becomes overwhelming in its ability to connect you to other people.</li> </ul> <p>I experience these three key points most often. Applications that incorporate communities and social networks beyond their primary purpose may find that it backfires.</p> Change Default XSLT Namespace http://www.casadelewis.com/entry/change-default-xslt-namespace/ 2008-04-02 http://www.casadelewis.com/entry/change-default-xslt-namespace/ <p>Much of the example XSLT on the web use an <code>xsl</code> prefix to indicate the XSLT namespace. The widely adopted prefix has much to do with the specification, but it&#8217;s not part of the specification.</p> <blockquote> <p>This specification uses a prefix of xsl: for referring to elements in the XSLT namespace. However, XSLT stylesheets are free to use any prefix, provided that there is a namespace declaration that binds the prefix to the URI of the XSLT namespace.</p> </blockquote> <p>The <code>xsl</code> prefix used across the web is helpful for web developers learning XSLT, however, it&#8217;s not necessary in practice. During a conversation with <a href="http://chaoticpattern.com/">Allen Chang</a> about Symphony and XSLT I mentioned my dissatisfaction in having to type out the three letter prefix, and he said, &#8220;why not change it?&#8221;</p> State of Casa de Lewis http://www.casadelewis.com/entry/state-of-casa-de-lewis/ 2008-03-29 http://www.casadelewis.com/entry/state-of-casa-de-lewis/ <p>It has been awhile since my last journal entry so I feel a &#8220;State of Casa de Lewis&#8221; address is necessary. The house has been busy with work on four projects simultaneously. I will be talking about one of those projects next week when the site officially launches.</p> <p><a href="http://beta.overture21.com/forum/">Symphony 2</a> has been in beta for the last couple of months and much has been happening. Work continues on the Symphony User Guide, but don&#8217;t expect anything soon; the beta period has been extremely productive squashing bugs and improving Symphony. My main goal of late has been the chapter on introducing XSLT as the templating engine for Symphony.</p> <p>The journal will be quite active in the coming months. Stick around, pull up a chair, and don&#8217;t forget to remove your shoes at the door.</p> iTunes Gift Certificate Dilemma http://www.casadelewis.com/entry/itunes-gift-certificate-dilemma/ 2007-12-24 http://www.casadelewis.com/entry/itunes-gift-certificate-dilemma/ <p>It&#8217;s December 24 and I&#8217;m still shopping for Christmas gifts. I saved one particular gift purchase until last minute because I <em>knew</em> I could easily get it online last-minute. So I thought.</p> <p>I&#8217;m currently faced with two options and neither one is appealing. My first option is to purchase an iTunes gift certificate at one of my local stores that sells gift certificates by the rack. Alternatively, I could stay home and purchase my iTunes gift certificate online.</p> <p>You&#8217;re probably thinking that purchasing the iTunes gift certificate online is the way to go. I thought this as well until I visited the <a href="http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/RSLID?nnmm=browse&amp;mco=19ACBC54&amp;node=home/giftcards/itunes">online Apple store</a>. Would you believe that for an online store that sells digital products, I am only given the option to purchase a gift certificate that is delivered to my snail&#8217;s mailbox.</p> <p>Why must my gift certificate be tangible when its very nature is digital? I&#8217;m not an <a href="http://www.ecogeek.org/">eco-geek</a> but this just rubs me the wrong way. It seems like a waste.</p> <p>Imagine going to a brick-and-mortar store, take goods to the checkout counter, and are told that they will be shipped to you within two business days. I don&#8217;t find this scenario very different from purchasing an iTunes gift certificate online.</p> <p>I understand that they sever a purpose for those that wish to have something tangible to represent their gift, but it shouldn&#8217;t be the only option. I should be able to get the number that represents my gift certificate purchase and have it e-mailed to the recipient. It just makes sense.</p> CSS Formatting http://www.casadelewis.com/entry/css-formatting/ 2007-12-14 http://www.casadelewis.com/entry/css-formatting/ <p>It&#8217;s common practice among good web designers to indent HTML. It&#8217;s easier to work on their code and it makes collaboration more efficient. As such, it&#8217;s amazing that CSS does not have a universal format. I&#8217;m currently aware of three popular formats when working with CSS. There appears to be more but many of them are a combination or a variant of these more widely used formats.</p> <h3>Single Line</h3> <pre><code>body {font:76%/1.7 Verdana, Arial, Helvetica, sans-serif; background:#fff;} p {font-size:1.5em;} </code></pre> <p>The single line rule set was a result of trying to optimize the CSS file to load faster. It might be an easy format to follow initially, but I find it hard to edit and troubleshoot the CSS. Some argue that it decreases vertical scrolling, but often at the expense of horizontal scrolling.</p> Before Its Time http://www.casadelewis.com/entry/before-its-time/ 2007-12-05 http://www.casadelewis.com/entry/before-its-time/ <p>A recent <a href="http://www.strategicprofits.com/blog/gary-vaynerchuk-interview">interview with one of my favorite online presences, Gary Vaynerchuk</a>, reminded me how some industries capitalize on the Internet more than others. I believe this is a direct result of an industry&#8217;s people. Technical industries, by far, have flourished on the web from the beginning. Their users embrace the Internet and do not perceive barriers to its use.</p> <p>There are many groups yet to take advantage of the Internet because their users are not generally tech savvy. I imagine it&#8217;s only a matter of time before these groups propagate their services online. But how will their first attempts turn out? Will the websites fail because they are before their time? The <a href="http://en.wikipedia.org/wiki/Apple_Newton">Apple Newton</a> was one of the first PDAs on the market. Its failure in the market paved the way for the PDAs that we all use today</p> <p>Online services share similar characteristics with products like the Newton. Like the Newton, services online will fail if they do not convince the necessity of their use to the consumer. Unlike traditional products and services, online services require their users to overcome technical barriers. This will be a challenge for online services that market themselves to non-technical users.</p> <p>I&#8217;m currently working on a personal project that must overcome the technical barrier. I expect to spend a significant amount of my time educating and creating awareness among my potential user base. In this instance, it&#8217;s not just about selling a service, you also have to sell the Internet.</p> Technical Writing http://www.casadelewis.com/entry/technical-writing/ 2007-11-25 http://www.casadelewis.com/entry/technical-writing/ <p>I recently <a href="http://overture21.com/forum/comments.php?DiscussionID=1516&amp;page=1#Item_22">started a discussion</a> on <a href="http://overture21.com/">Overture</a>, a website for the <a href="http://www.symphony21.com/">Symphony</a> community, asking for ideas and suggestions. There were many great ideas and one that was expected: improved documentation. I was asked early on to become part of the Overture Team, individuals to moderate and further community desires.</p> <p>I&#8217;m not a technical writer by trade, and I&#8217;m a self proclaimed web designer, but this is a realm that I felt like dabbling in and learning about. I decided I would create the user guide for Symphony.</p> <p>I feel that I am a good candidate for this project because my background is diverse. All too often, documentation is written by those that don&#8217;t understand the end-user. Although it may be clear to them, their technical writing lacks the ability to be understood by more than one audience. It fails to deliver to those that are unfamiliar with the technology.</p> A Different Take on Navigation http://www.casadelewis.com/entry/a-different-take-on-navigation/ 2007-11-06 http://www.casadelewis.com/entry/a-different-take-on-navigation/ <p>In developing Casa de Lewis&#8217; bare bone XHTML I decided to go against the common practice of using an unordered list for the site&#8217;s main navigation. Instead, I opted to utilize a short paragraph at the top of every page to inform the visitor of the site&#8217;s contents.</p> <p>In the example below, which is currently used on this site, I entice the visitor to read my journal and check out the projects I&#8217;m working on.</p> <p><em>Welcome to <a href="/">Casa de Lewis</a>. Read the house <a href="/">journal</a> covering all things related to <a href="/projects/">projects</a> by <a href="/about/">Mark Lewis</a>.</em></p> <p>As simple as these two sentences are, they are extremely powerful. They welcome the user and encourage participation. It tells the user to take an action, unlike the passive tone of most unordered list navigation. Also, the paragraph is twofold in that it defines the purpose of the site.</p> Personality and Design http://www.casadelewis.com/entry/personality-and-design/ 2007-11-03 http://www.casadelewis.com/entry/personality-and-design/ <p>In high school foreign-language classes were part of the curriculum. I was nervous about the prospect of learning a foreign language. There was a consensus that learning Spanish was easier than other languages offered, and so began my love for culture.</p> <p>Back then my appreciation for other cultures wasn&#8217;t evident to those around me, including my Spanish teacher. In fact, I enjoyed fueling the fire for discussions about English as the dominant world language. There&#8217;s nothing more arrogant, yet humorous, than questioning a teachers purpose. Of course, after having traveled around the world, I take it all back and now understand why my Spanish teacher took such joy in teaching us about his beloved culture.</p>