Newest BLOGGER Bookmarks

 

 

 
Newest Twitters

     

    Newest BLOGGER Blog Items

     
    Using MacVim Almost Everywhere in Mac OS X

    MacVim 7.1 snapshot 24 was released on 2008-March-14 and includes built-in [*] support for the ODB Editor Suite protocol. If you activate "External Editor" in the MacVim >Preferences > Integration panel, a menu item named "Edit in MacVim" will appear in the Edit menu of lots of Mac OS X applications, including the apps listed here. This is fantastic and has made Mac OS X much more fun for me. For example, I'm currently editing this blog item in Blogger running in Safari. If I want to mess around with the HTML of this blog item, I can do this: 
    1. Click the Blogger "Edit Html" tab.
    2. From the Safari Edit menu, choose Edit in MacVim.
    3. Use MacVim to edit the HTML and then use the Vim command :wq to write and quit.
    4. The focus returns to the Blogger blog item text box, which now contains the text that MacVim wrote out.
    This makes Blogger blog editing infinitely easier and possibly means that I can stop my search for another blog editing tool. And maybe I'll start blogging more!

    Tip 1: To tell  MacVim that you are editing an HTML file, you can either use the following command within MacVim:
    :set ft=html
    Or put this line in your .vimrc:
    autocmd BufRead *.safari setfiletype html
    This autocmd works because Safari uses the extension .safari for the name of the temporary file that is read by MacVim.
     
    Tip 2: For more HTML+Vim tips, see the thread HTML editing and tag completion that I started in the vim_mac mailing list.

    [*] In Snapshot 23 and earlier, the ODB Editor could not be activated in the Preferences panel but instead needed to be activated via a complicated sequence of commands.

    Libellés : , , , , ,


     
    A Blogger And Twitter Experiment

    This is step 1 of an experiment, the title is currently A.Blogger.And.Twitter.Experiment. Details after I find out what happens...

    Update 1: Step 2 is to change the title to A Blogger And Twitter Experiment (dots replaced by spaces).

    Update 2: Here's what I learned: If you change a Blogger blog item title, the original URL is preserved. You can use this trick as a way to create a blog item URL that does not contain the dash character (-) and thus won't be TinyURLed by Twitter. The URL of this blog item is deflexion.com/2008/03/abloggerandtwitterexperiment and I link to it from this Twitter item.

    But, I'd rather that Twitter gave users the ability to turn off TinyURLing!

    Libellés : ,


     
    Hi from ecto

    I'm still searching for a desktop blog editor. Today I'm trying ecto 3 βeta 24, which is $18 and runs on Mac OS X and MS Windows. Today is day 1 of my 21-day trial and so far it seems pretty good.


    BTW, Happy New Year, Gung hay fat choy, Sun nien fai lok, Xin nian yu kuai, Godt Nytår, Gelukkig nieuwjaar, Aide shoma mobarak, Bonne année, Aith-bhliain Fe Nhaise Dhuit, Gutes Neues Jahr, Hauoli Makahiki Hou, Shanah tovah, Nyob zoo xyoo tshiab, elamat Tahun Baru, Buon Capo d'Anno, Akemashite Omedetou Gozaimasu, Godt Nyttår, Maligayang Bagong Taon, Szczesliwego Nowego roku, Feliz ano novo, La Multi Ani, S Novym Godom, Feliz Año Nuevo, Wilujeng Tahun Baru, Gott Nytt År, Yeni Yiliniz Kutlu Olsun, Blwyddyn Newydd Dda!



    Libellés : , , , ,


     
    Blogging with MarsEdit

    MarsEdit: Powerful Blog Authoring Made Simple. I'm still searching for a good desktop tool to manage my blogs and today I'm trying MarsEdit. I've resisted MarsEdit because it's not cross-platform (it's Mac only) and it costs $30. In a perfect world, I'd use only cross-platform FLOSS software. I want cross-platform because it makes it easier for me to switch platforms and it also makes it easier for me to support people who are not using one of the platforms I use. I want FLOSS because I think that's the way software in general is moving and I think it's more likely that a FLOSS app will be around in a few years. Also, it helps that FLOSS apps are usually gratis! But, I'm not very happy with Bleezer, which is cross-platform, or Flock, which is cross-platform and FLOSS, so I'm trying out this single-platform non-FLOSS app.

    So far I like it. I especially like that:
    • I can make the MarsEdit post editor window font whatever size I want; this is not the case in Flock.
    • I can launch an alternate editor, such as vim, from the MarsEdit post editor.
    • Assigning labels to a post is simple -- just check them off in the Options/Categories sidebar.


    Libellés : , , , ,


     
    Trying Flock, the Social Web Browser

    I'm experimenting with Flock, the social web browser, and this post is mainly to test Flock's built-in blogging tool. Flock is based on Firefox and is produced by a for-profit company named Flock. The Flock browser is gratis, but I'm not sure how libre it is. If you have thoughts about Flock, please post a comment.

    Update: According to the Flock (web browser) page at Wikipedia.org, the Flock browser can be licensed under either the GPL license or the MPL/GPL/LGPL tri-license, so it seems that it is FLOSS.

    To learn more about Flock, the company, see Flock at AboutUs.org and at CrunchBase.com.

    Libellés : , , ,


     
    Blogger, PHP, and Labels

    I'm in the process of updating my Blogger template so that my new Blogger labels and their corresponding label pages have a reasonable user interface and are actually useful. My goals are to:
    • Make it clear when a label page is being displayed by including the label name in the page title and in any relevant headers & sidebar sections.
    • On the page for a label named label, display my bookmarks that are tagged with label on del.icio.us (and, of course, also display my blog items that are labeled with label).
    The first step is to use PHP to get the label name into a variable, which I call $label. Here's how I do this:
    <MainPage>
    <?php
    $label = strtoupper(basename($_SERVER['PHP_SELF']));
    if ($label == 'INDEX') {
    $label = NULL;
    }

    // Note: This assumes no label will be named index

    ?>
    </MainPage>
    This sets the $label variable to the upper-cased label name if a label page is being displayed and to NULL if the top page (deflexiοn.com/index) is being displayed. Determining the label name is as simple as determining the page's filename (basename) because Blogger names each label page label.extension and I've set up my blog to use extensionless URLs.

    Once the variable $label is set, I use code such as the following to unconditionally process statements:
    <?php
    echo "$label Deflexions (bookmarks)";
    ?>
    Note that this does the right thing on label pages and on the the top page (index). For example, on a label page this resolves to:
    LABEL Deflexions (bookmarks)
    And on the top page, this resolves to:
    Deflexions (bookmarks)
    To conditionally process statements, I use code like the following:
    <?php
    if ($label) {
    echo "↓ deflexions & reflexions labeled $label";
    }
    ?>
    Note that on the top page $label is NULL, which is considered FALSE, and statements inside the squiggly brackets will not be run.

    I'm still updating my template so things are kind of a mess at the moment. I'm posting this now because I'd love to get feedback on my PHP code and my template. Please post your thoughts and tips as a comment to this blog item - thank you!

    Libellés : , , ,


     
    Am I the Last to Switch to the New Blogger?

    Now that it's been a couple months since Blogger forced everyone to switch to the new Blogger, I hope the bugs have all been worked out and my site will not be trashed when I click the PUBLISH POST button! For details about the Blogger transition, see the 2007-May-4 Blogger Buzz item titled Old Blogger is dead! Long live Blogger!

    OK, let's see what happens!

    Libellés : ,


     
    Blogger permalinks seem permanent, but are they?

    I think I've now set up Blogger and the .htaccess file [*] at my web-hosting provider so that all the reflexion archive-page URLs and the new reflexion item-page URLs (permalinks) have no extension. I want this because I don't want to be locked in to the .php extension that I've been using, for example, I might switch from PHP to another scripting language at some point in the future, and because extensionless URLs are nice [**].

    What I want, but haven't been able to figure out how to do, is to change the permalink of all my old reflexions. Does anyone know how to do this in Blogger or via the Blogger API? I tried turning off "Post Pages", republishing, turning "Post Pages" back on, and republishing again, but Blogger remembers the old permalinks. I can understand why the Blogger developers would do this, since they are supposed to be permalinks, but I've used these URLs for less than a week and I can solve the problem of broken bookmarks and broken links via .htaccess tricks.

    If anyone has any suggestions, please leave a comment here. Or just leave a comment so I know that someone has read this -- don't be shy!

    Update: It turns out that when I edit an old reflexion and then republish it, it gets a new extensionless URL. I'm slowly going through my old posts and turning on comments, removing extraneous newlines, and republishing with extensionless URLs.

    [*] I use the following .htaccess lines tell the Apache web server that file names with no extension are to be interpreted as PHP files:
      DefaultType application/x-httpd-php
    DirectoryIndex index index.php index.html
    [**] To learn about the value of permalinks and extensionless URLs, see:

    Libellés : , , ,


     

     

    Each item © Nancy McGough
    Each comment © the author of the comment
    Deflexion.com web site hosted by DreamHost.com
    deflexions powered by del.icio.us · reflexions powered by Twitter & Blogger
    ← More deflexions & reflexions, & feeds available via the sidebar top & bottom