- More than 10,000 bookmarks at http://Del.icio.us/Deflexion.com/BLOGGER
-
Subscribe to
BLOGGER
deflexions
or all
deflexions
Using MacVim Almost Everywhere in Mac OS X
- Click the Blogger "Edit Html" tab.
- From the Safari Edit menu, choose Edit in MacVim.
- Use MacVim to edit the HTML and then use the Vim command :wq to write and quit.
- The focus returns to the Blogger blog item text box, which now contains the text that MacVim wrote out.
:set ft=htmlOr put this line in your .vimrc:
autocmd BufRead *.safari setfiletype htmlThis autocmd works because Safari uses the extension .safari for the name of the temporary file that is read by MacVim.
Libellés : blogger, html, macvim, osx, safari, vim
A Blogger And Twitter Experiment
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 : blogger, blogging, ecto, languages, software
Blogging with MarsEdit
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 : blogger, blogging, marsedit, osx, software
Trying Flock, the Social Web Browser
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, browsers, floss, web2.0
Blogger, PHP, and Labels
- 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).
<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.
<?php
$label = strtoupper(basename($_SERVER['PHP_SELF']));
if ($label == 'INDEX') {
$label = NULL;
}
// Note: This assumes no label will be named index
?>
</MainPage>
Once the variable $label is set, I use code such as the following to unconditionally process statements:
<?phpNote 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:
echo "$label Deflexions (bookmarks)";
?>
LABEL Deflexions (bookmarks)And on the top page, this resolves to:
Deflexions (bookmarks)To conditionally process statements, I use code like the following:
<?phpNote that on the top page $label is NULL, which is considered FALSE, and statements inside the squiggly brackets will not be run.
if ($label) {
echo "↓ deflexions & reflexions labeled $label";
}
?>
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 : blogger, labels, php, sitedesign
Am I the Last to Switch to the New Blogger?
OK, let's see what happens!
Blogger permalinks seem permanent, but are they?
.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[**] To learn about the value of permalinks and extensionless URLs, see:
DirectoryIndex index index.php index.html
- Cool URIs don't change by Tim Berners-Lee
- Cruft-free URLs in Movable Type by Mark Pilgrim
- Wikipedia: Uniform Resource Locator: Clean URLs
Libellés : blogger, htaccess, sitedesign, url
Each item © Nancy McGough
Each comment © the author of the comment
Deflexion.com web site hosted
by DreamHost.com
←
More deflexions & reflexions, & feeds
available via the sidebar
top
&