Press "Enter" to skip to content

Posts tagged as “Webworks”

Checking out something with the theme…

centaur 0
...if this was a real post, I'd say something substantive, like that I suspect if the top post has an image in it, it can cause the header to move up and be covered by the banner image, which is wrong. Stay tuned... -the Centaur UPDATE: No and yes. If a post has a WordPress-style image in it, it can chomp its own header, regardless of whether it is the first post.  Got a little bit of debugging to do... UPDATED UPDATE: Teh problem wasn't that the image had a theme error, the problem was the post had no title. Easily fixed: add a title, OR update the theme to write "This Post Title Unintentionally Left Blank" in the box... :-) UPDATED UPDATE POSTSCRIPT: And I award Chrome's Developer Tools (themselves based on the WebKit Inspector) the prize for helping me find this bug by giving me an easy way to navigate down to that element and see that it wasn't just squeezed out (which had happened in an earlier iteration of the theme I'd tested locally on my laptop via MAMP) but was indeed missing its content. Hm. Another fix for hte bug would be to set a minimum height on the div for the title of the post ... interesting ...

Blogging from a mobile phone, take 2 (3?)

centaur 0
Almost easy enough to do when taking a walk. Easier to use voice input. Almost. It didn't successfully read the previous sentence (or this one) but it was close. - the centaur

And so … the WordPress adventure begins.

centaur 0
Actually it was quite an adventure just getting this far, for which I've taken notes that I plan to blog.  But I thought I should make the following points:
  • Yes, I know a number of widgets on the site are broken.
  • Yes, I know a number of parts of the theme are messed up.
  • Yes, I know there are parts of the theme that are messed up, that I don't yet know are messed up. :-(
And I shudder to think how the site must appear in IE. I'm working on it, though. Trust me. More in a bit... -the Centaur UPDATE: I have indeed checked out the site in Firefox for Mac, Safari for Mac, Chrome for Mac and IE for Windows. It actually looks a bit better than it did before (IE in Windows had developed some recent error). Yaay! Now all I need to do is fix the list items, the search box, restore the twitter and flicker boxes, get the footer working right again ... sigh.

No, THIS is the Dawning of Val Mar

centaur 0
BWAH HA HAHAAHAA! Posting to the blog is LIIIIVE again. And for those that don't get it, "The Dawning of Val Mar" is a private in joke that about 3 people on Earth will get ... that was originally the "first post" on my WordPress blog before I had to delete it. The post is gone, but the in joke lives on.  Massive flurry of posts to follow, God willing. Peace out. -teh Centaur

Stopgap Publishing

centaur 0
Blogger has discontinued FTP, so I am migrating to WordPress. (No, I have zero interest in remaining with Blogger when they have discontinued the feature that made me select them, and having spoken with the team, I'd love to say I respect their reasons, but ... well, if you don't have anything good to say (and, really, I most sincerely don't) then vote with your feet.)

In the meantime, because writing novels and spending time with my wife and cats has to take precedence over Webworks, I let the deadline to migrate lapse before my WordPress installation was ready. SO I can make any necessary announcements for those who read this blog via Reader or RSS feed, I have reluctantly ported the Library of Dresan to http://blog.dresan.com/ - don't get used to this; it is going away.

Further announcements forthcoming.
-the Centaur

Anonymous Commenting Disabled

centaur 0
who gave me this dang thing

Sorry, commenters, but the signal-to-noise ratio of anonymous comments was approaching zero. :-( It was getting to the point I almost rejected some real though short comments because they were looking like the spam comments I was getting - I apologize if I dinged a real person by accident. But when you don't know who's sending a gift, you never know what's inside the wrapper.

-the Centaur

Pictured is my cousin Bryan Norman, receiving a joke gift of a mailbox at last Christmas's White Elephant gift exchange - though I dispute the Wikipedia article, I lived 38 years in the Southeastern United States and never heard it called a "Yankee swap" - always "White Elephant" or the less-politically-correct "Chinese Christmas".

The Last Hurrahs of Blogger FTP and Earthlink

centaur 1
As some of you may noticed, posting to the Library was down for a while because my FTP provider changed its configuration silently. Blogger was able to publish to the old site without errors - but that old site was no longer being published to the web. This is one of the many reasons Blogger has decided to discontinue FTP. I've talked with the team and read over their documentation, and while there are some usage patterns that I can do for many of my blogs, I'll be transferring the Library of Dresan over to a new hosting provider and blogging provider. There will be some disruption for a while all the way down to my email addresses as I get my online life a little more under control. Please be patient while this goes on ... I'll keep posting via Blogger through maybe March until I get this sorted out.

Has Blogger *ALREADY* Discontinued FTP?

centaur 1
Or is my FTP flakey, proving the need for them to discontinue FTP?

Testy Testerton from Testtown, Testania. Test. Test.

I’m very depressed…

centaur 0
... I researched the Blogger issue. Three, maybe four of the blogs I manage will work well with the new system.

This one, the one I post on the most, won't. And there's no good workaround yet, though I am looking into it.

*sigh*.

I'm pretty sure I *can* do this - keep the Library of Dresan site completely static HTML pages so that there's no software on it to hack - but the existing FTP blogging clients seem pretty niche. And using WordPress or MovableType in this mode will, as I understand it, require that I set up WordPress on my laptop or desktop and write some software to rewrite the files and FTP them up to the site. You know, the feature Blogger handled automatically for me.

*sigh*

-the Centaur

Blogger FAIL

centaur 0
Blogger is discontinuing FTP:
In evaluating the investment needed to continue supporting FTP, we have decided that we could not justify diverting further engineering resources away from building new features for all users. For that reason, we are announcing today that we will no longer support FTP publishing in Blogger after March 26, 2010. We realize that this will not necessarily be welcome news for some users, and we are committed to making the transition as seamless as possible.
Looks like it's time to find a new blogging provider.

-the Centaur

Spam comments: the new black.

centaur 0
Hey black hat guys, comments are STILL MODERATED. This is doing you no good. Cut it out.

Qumana FAIL

centaur 0
A nice blog editor, but when I tried more complex formatting in the last post it didn't display it well in preview mode, leading to errors which required heavy editing on the actual Blogger side. Still, it helped me get the essay written.

-the Centaur

Making Blogging Easier, Part I

centaur 1
chihuly art at palo alto medical foundation

So I want to blog more, ideally approaching one a day.  If I was just tossing up blog entries for filler, like I sometimes do, that wouldn't be a problem; however, I'd like to put up more substantive articles.  But I find that putting up more substantive articles takes a lot of time - so keep up the pace I need to improve my process.

I already have trained myself to use Blogger more efficiently, use tools like Qumana to make it easier to access Blogger while offline, and am experimenting with AndroBlogger in an attempt to make it easy to post while, well, anywhere I've got my Nexus One.  But there are still barriers to putting up entries.

One barrier is my process.  Note the last paragraph?  It has four links.  I like to put in links to topics I reference, so a certain amount of time is taken up finding appropriate web pages and linking them in.  There isn't much I can do about this except not go down the rabbit hole - ideally, I'd like to post a short paragraph about each link, but that's too much detail.

Another barrier are my goals.  One of my friends, Jim Davies, thinks that blog posts should have pictures - and I agree, though I can't immediately find the blog post in which he said it - perhaps that means we discussed it aloud.  So ANYWAY, there was another chunk of time wasted trying to find a link.  Where was I?  Ah.  The barriers of my goals.

If I want to blog an article with a picture, the picture needs to be on the web.  But I try to avoid linked images for copyright  reasons (and to prevent brittleness in case the target takes it down; for embedded Youtubes, which, well, there isn't a good substitute for yet).  So I need to upload the image to MY site, a chore I currently do with the Cyberduck ftp client.

And here the constraints get harder: in precisely the same way I don't let iTunes tell me where to put songs, I choose not to use Blogger's interface because I have scheme for posting images which predates Blogger and which I will continue to use after Blogger is gone: http://www.dresan.com/images/imagename.jpg, which is simple and easy to remember.

What's worse, my cameras take images at huge resolutions, so I need to shrink and resize the images to fit in the width that fits on my website.   For a variety of reasons, I go with 800x600 or 600x800, in a standard block of HTML which shrinks the image, adds a link to the source of the image, and ads some alt text.

So now I've put on myself a huge set of constraints which makes the simple task of putting up images on my website a chore - get the picture, resize it, start Cyberduck, upload it, write the two lines of HTML gloop necessary to display it, and then and only then see the preview so I can see I made a mistake.  There has to be a better way.

chihuly art at palo alto medical foundation

Enter UNIX shell scripting, Python and the ImageMagick toolkit.

The first thing that I did to make my life easier was to auto-generate the stanza of text that displays the image.  I mean, it's the same thing each time - an anchor tag pointing to the image, with alt text, then the img tag itself, with the same alt text, sizing and border information, like this:

 
some alt text
src="https://www.dresan.com/images/image.jpg" />

So why write ALL of that every time? Why not just write the changes and let the computer do it for you? SO I wrote a piece of code in Python which does just that, produces that text for me:

#!/usr/bin/python
import sys

TEXT= """
%s
"""
if len(sys.argv) < 3:
print "usage: %s image alt text" % sys.argv[0]
else:
image = "http://www.dresan.com/images/%s" % sys.argv[1]
alt = ' '.join(sys.argv[2:])
print TEXT % (image, alt, image, alt)

I'm not going to turn this into a Python tutorial, so, briefly, all this does is check to make sure I specify a filename and some alt text, stuffs it into a template, and prints it out so I can cut and paste. Here's an example of that in operation, turning chihuly.jpg and "chihuly art at palo alto medical foundation" into a stanza of HTML (spaces added for readability):

centaur@Deliverance (Wed Jan 13, 22:48:25) [520] ~/Development/Workspace/Webworks:
$ ./imagelink.py chihuly.jpg chihuly art at palo alto medical foundation



alt="chihuly art at palo alto medical foundation"
src="https://www.dresan.com/images/chihuly.jpg" />

That saves me several minutes of typing each time. This is one of the great Programmer's Virtues: laziness - making the computer do something you don't want to do for yourself.  The maybe thirty minutes I've spent tweaking that little script have paid off not just in the time that I saved typing, but in the extra blog posts that I've done because they were easier to do.

In the next installment (or two, depending), I'll write a tool to shrink the images to size with ImageMagick and upload them automatically with UNIX tools, and discuss some of the other tools and organization schemes I use which make it easier for me to collect the images and keep them organized - schemes that work even if you switch between operating systems.

-the Centaur

 chihuly art at palo alto medical foundation

The images are Chihuly glass sculptures hanging in the Mountain View campus of the Palo Alto Medical Foundation.

AndroBlog FAIL

centaur 0
First posting claimed it failed; retrying resulted in a double post. Plus it can't handle multiple blogs on one Gmail account, and capitalization of the first words in sentences is oddly broken. And it crashed while writing this post. Meh.

The Year of Blogging Dangerously

centaur 0
So, last year I had an extraordinarily complicated series of New Year's Resolutions which almost completely failed. Looking back, I succeeded at my major goals for the year, but the complex plan of weekly / monthly things completely failed.

So, here's a simpler set of New Year's resolutions, goals, what have you:
  • Establish a weekly pattern of exercise, including some karate
  • Set aside some time each month to do art in addition to writing
  • Post to this blog on the average once a day, measured each week
The last one is the hard one, of course; I'm already 4 posts behind. But I have such a huge backlog of articles and ideas in folders that I shouldn't find this too hard ... if I can just change my habits.

In other news, Warren Ellis has already blogged 365 times since January 1st. Damn him.

-the Centaur

Shameless Filler

centaur 0
Yes, I'm trying to fill out those 1-blog-posts-a-day I promised at the beginning of the month. But there is a serious topic: I realized today, for reasons which will become clear shortly, that I'm just plain awful about blogging stuff that happens in my life. So that's going to change, shortly; however, it wasn't appropriate to put this message in that article. Go about your blogrolling business; nothing to see here.

Latest Spam WTF

centaur 0
Some time back I received a spam email that was blank. This is understandable, actually; probably just someone trying out a list of email addresses. I also got one containing the cryptic text "podmena traffica test"; this turned out also to be a "spoofing traffic test". Now I've got a bit of comment spam, which also seemed mysterious, until I dug into it a bit. From my email:

Anonymous has left a new comment on your post "Why I Write":

I can not participate now in discussion - it is very occupied. I will be released - I will necessarily express the opinion. [url=DELETED]acheter levitra[/url] This rather good idea is necessary just by the way

Publish this comment.

Reject this comment.

Moderate comments for this blog.

The deleted URL is to a French eBay site, "acheter levitra" is French for "buy Levitra," which is a brand name of Vardenafil, which is, of course, a Viagra clone. So this is essentially random pseudo-English text with a "buy Viagra" link, depending on the 1% of people who click on such links and the 1% of people who buy to pay for the cost of putting this spam on my blog. Charming.

Comment reeejected.

-the Centaur

UPDATE: I got a similar post of with a less obvious spam form, targeting one of the more popular pages on my blog (can you say pooound cake?):
"I found this site using [url=http://google.com]google.com[/url] And i want to thank you for your work. You have done really very good site. Great work, great site! Thank you! Sorry for offtopic"

But the [url=XXX]TEXT[/url] pattern was a dead giveaway. A search on Google for ["[url=http://google.com]google.com[/url]"] - note that's the '[url.../url]' thing in double quotes; the outermost brackets are the syntax you use to indicate a chunk of text is a query, like [centaur] - SO anyway, a search on Google for that nonsense revealed that the exact text of that comment has appeared elsewhere. So this is just more comment spam, trying to see if comments are unmoderated here.

Comment flattering! But reeejected.