June 15, 2007
Posted by: Pixy Misa at
07:46 AM
| Comments (30)
| Add Comment
Post contains 23 words, total size 1 kb.
Hey, Pixy. Not sure if this is the right place for this question, but here it goes...
I think the page control is bugging with Google's indexing robot. I was checking with google and saw a buttload of warnings about pages that don't exist, like http://youredoingitwrong.mee.nu/?page=34. There's nothing on that page... except a link to page 35. You might wanna check your logs to see if the google bot isn't raping bandwith, requesting page after page of nothing.
Also, robots.txt. I implemented it using a template. I'm not sure if its working, exactly, as if you go to youredoingitwrong.mee.nu/robots.txt it shows as "robots.txt/", and nothing appears in Google's robots tools. I don't think I can set the directory the file is located in (files/robots.txt) and I don't think I can place any files there directly. I also contemplated creating a new directory in the root, but I wasn't sure if I'd completely screw everything up doing that. So I ask you... whah?
Posted by: McGurk at June 27, 2007 06:38 PM (Ri74D)
Posted by: Pixy Misa at June 27, 2007 06:55 PM (PiXy!)
Another question... Sitemaps. I'm trying to work up one right now. It'd be nice if there was an auto updating version. One that listed each directory (update frequency: daily) and one that listed each post (update frequency: weekly). First one would be updated regularly as its important that posts be indexed frequently. The second one would be updated less frequently as user added comments are important to index, but less so. Automatic sitemap generators fail on the blog in general, and that page control that never ends. I tried to create a page that listed every post (youredoingitwrong.mee.nu/all) but it fails with too many templates requested. I think it has something to do with [posts unpaged show=all]. Anything other than [posts:here] also causes the error. I also think that error may hurt any automatic sitemap generator I may create, as each element would be an individual template.
Just thought you weren't busy enough so I'd give ya something to do...
Posted by: McGurk at June 27, 2007 08:05 PM (Ri74D)
I'm surprised you hit the template limit with only 100-odd posts; I'll have to take a look at that.
Posted by: Pixy Misa at June 28, 2007 02:21 AM (PiXy!)
Traceback (most recent call last):
File "/usr/local/lib/python2.5/site-packages/cherrypy/_cprequest.py",
line 342, in respond
cherrypy.response.body = self.handler()
File "/usr/local/lib/python2.5/site-packages/cherrypy/_cpdispatch.py",
line 15, in __call__
return self.callable(*self.args, **self.kwargs)
File "Minx.py", line 101, in index
return Page.go(cherrypy)
File "/var/minx/live1.0/Page.py", line 460, in
go
Template.go_index(page)
File "/var/minx/live1.0/Template.py", line 2234,
in go_index
page.content=do_template(page,t)
File "/var/minx/live1.0/Template.py", line 174,
in do_template
return do_template_text(page,t)
File "/var/minx/live1.0/Template.py", line 237,
in do_template_text
elif ttype=='here':
s=show_here(page,opt,handler)
File "/var/minx/live1.0/Template.py", line 63,
in show_here
return handler(page,opt)
File "/var/minx/live1.0/Template.py", line 528,
in show_entries
text+=show_entry(page,template)
File "/var/minx/live1.0/Template.py", line 538,
in show_entry
text=do_template(page,template)
File "/var/minx/live1.0/Template.py", line 174,
in do_template
return do_template_text(page,t)
File "/var/minx/live1.0/Template.py", line 231,
in do_template_text
text+=show_tag(page,opt,tags)
File "/var/minx/live1.0/Template.py", line 97,
in show_tag
text=Filter.bbcode(text,tags=val[2],restrict=())
File "/var/minx/live1.0/Filter.py", line 425, in bbcode
text+=r % op
TypeError: not all arguments converted during
string formatting
In the post text, include a bracketed editorial comment, the first word of which is a bbcode command. In my case it was this post. The comment is in the last paragraph of the first blockquote, and originally read "color and italics in original - o.g." (brackets omitted to avoid nastiness). Apologies for any screwy formatting.
Posted by: Old Grouch at July 15, 2007 01:50 AM (vVSwn)
Posted by: Pixy Misa at July 15, 2007 03:20 AM (PiXy!)
Posted by: Pixy Misa at July 15, 2007 08:05 AM (PiXy!)
Posted by: Pixy Misa at July 15, 2007 08:05 AM (PiXy!)
Not a major problem except that at some point I need to take that server offline and reinstall the OS; I'll have to make sure that everyone's getting routed to the new servers first.
Posted by: Pixy Misa at July 15, 2007 05:46 PM (PiXy!)
Posted by: Pixy Misa at July 15, 2007 05:48 PM (PiXy!)
Posted by: Old Grouch at July 16, 2007 08:10 PM (4St3+)
Posted by: PatBuckman at September 29, 2007 12:35 AM (6Q1y7)
Posted by: Pixy Misa at September 30, 2007 03:08 AM (PiXy!)
Posted by: PatBuckman at September 30, 2007 09:23 PM (6Q1y7)
The magic word this time is "quote". Text was (with braces substituted for brackets):
"{quote from the original report by...}".
BBCode interpreted this as invocation of blockquote formatting, then ate the rest of the string to the closing bracket.
Posted by: Old Grouch at October 03, 2007 05:23 PM (k8zOE)
You can turn off BBCode for just that post if you're not using it.
Posted by: Pixy Misa at October 04, 2007 05:52 AM (PiXy!)
In this case, I fixed it by changing the text to: "Extract from..."
How about testing for "quote]" as opposed to "quote "? (But what do I know?)
Thanks!
Posted by: Old Grouch at October 04, 2007 02:25 PM (R2uPT)
Posted by: Old Grouch at October 06, 2007 03:10 PM (TTce3)
Posted by: Pixy Misa at October 08, 2007 02:16 AM (PiXy!)
Posted by: Pixy Misa at October 08, 2007 02:20 AM (PiXy!)
Not worth spending a lot of time on then, IMO, but perhaps worth including in the FAQs or the BBCode docs ("Why did it do that?" "Strings beginning with '[' get interpreted as BBCode unless the word following the '[' is NOT a valid command.")
Posted by: Old Grouch at October 09, 2007 12:57 AM (5RhlR)
Posted by: Pixy Misa at October 10, 2007 01:39 PM (PiXy!)
I just had some strangeness happen with a spoiler tag. First I clicked to expand the spoiler text in a comment. Then as I started typing in my reply comment, the entry box jumped up then down a couple of lines each time I pressed the spacebar. Then, when I clicked in the entry box to place the cursor somewhere else, it caused the comment entry box to drop down and cover up the Preview and Submit buttons, effectively locking me out of posting the comment (tabbing to the buttons didn't seem to work, they were simply gone). Is this something that's a browser issue (IE7) more than anything Minx is doing?
Posted by: Will at November 08, 2007 11:03 PM (WnBa/)
Posted by: Raging Tachikoma at December 13, 2007 06:20 AM (SQ2eQ)
To set up multiple authors, first get your brother to sign up at mee.nu. Then go to Friends, and create an Authors group. Add your brother to the Authors group, and he'll be able to post.
Posted by: Pixy Misa at December 13, 2007 12:53 PM (PiXy!)
Minor rendering problem -- in the comments to http://evilpundit.mee.nu/galactic_death_ray some links don't show properly with Internet Explorer, though they are fine in Firefox.
Posted by: Evil Pundit at January 10, 2008 07:31 AM (KENEq)
Something you might want to look at.
I was trolling through Wonderducks archives for an old post. I remembered roughly that it was in June. I came across this post first and it mentioned the post I was looking for in a link (the "a few posts back" one). However, in the switch to Minx, it killed that old numerically indexed link when the post was renamed. For when other mu.nu people start migrateing to Minx, is there a way to keep those old links alive? Having two copies of every old post is wasteful (and would make comments a nightmare), as is wrangling up some code to scrub every old self-referencing link in someone's blog. Seems like a lose-lose-lose situation.
Posted by: Will at January 15, 2008 02:01 AM (E3UGR)
I'm having issues with posts containing blockquotes. For some reason, once the quote starts the text goes black (I currently have it set to dark blue in the style) and stays that way for the rest of the post. I tried editing the post and changing the color there, but that just introduced a new wrinkle as the style tags didn't read correctly. Where every "style color[...]" tag was in the source, in the finished text I got ';">' showing up. I had to edit out all the "color" code before the junk characters would go away. Which leaves me with the original problem.
Any help?
Posted by: Steve Miller at January 15, 2009 04:54 AM (DDXAY)
Posted by: Alice H at June 03, 2009 08:23 PM (qJHYy)
Traceback (most recent call last):
File "/usr/local/lib/python2.6/site-packages/cherrypy/_cprequest.py", line 606, in respond
cherrypy.response.body = self.handler()
File "/usr/local/lib/python2.6/site-packages/cherrypy/_cpdispatch.py", line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "Minx.py", line 158, in default
return go(cherrypy)
File "Minx.py", line 97, in go
return Page.go(cp)
File "/var/minx/live1.1/Page.py", line 402, in go
Form.go(page)
File "/var/minx/live1.1/Form.py", line 3051, in go
handler(page)
File "/var/minx/live1.1/Form.py", line 2602, in form_styleimage
Photo.imagemacro(page,image)
File "/var/minx/live1.1/Photo.py", line 919, in imagemacro
im=im.bannerise(width=opt['width'],height=opt['height'],title=opt['text'],titlesize=opt['text.size'],titlefont=opt['text.font'],titlecolor=opt['text.color'],titleoffset=(opt['text.x'],opt['text.y']),titleopacity=opt['text.opacity'],titlestyle=opt['text.style'],titleimage=tim,menuopacity=opt['menu.opacity'],menucolor=opt['menu.color'],shadow=opt.get('text.color.shadow','black'),outline=opt.get('text.color.outline','black'),adheight=opt.get('ad.size',0),crop=crop,pagecolor=opt.get('page.color','white'))
File "/var/minx/live1.1/Photo.py", line 746, in bannerise
p=p.ctext(title,font=titlefont,size=titlesize,pos=(x,y),color=titlecolor,opacity=titleopacity,style=titlestyle,bgcolor=bgcolor,shadow=shadow,outline=outline,image=titleimage)
File "/var/minx/live1.1/Photo.py", line 615, in ctext
p=p.styletext(text,font=font,size=size,pos=pos,color=color,opacity=opacity,style=style+'only',shadow=shadow,outline=outline,opacities=[31,45,54])
File "/var/minx/live1.1/Photo.py", line 599, in styletext
p=p.textshadow(text,font=font,size=size,pos=pos,color=shadow,align=align,padding=padding,opacities=opacities)
File "/var/minx/live1.1/Photo.py", line 522, in textshadow
fn=self.font(font,size,color,opacity,default=False)
File "/var/minx/live1.1/Photo.py", line 90, in font
font=Agg.Font(color,fontdir+font,size=float(size))
IOError: cannot load font (no text renderer)
Thanks,
Posted by: jcallery at July 16, 2009 01:14 AM (zXDLI)
32 queries taking 0.0712 seconds, 82 records returned.
Powered by Minx 1.1.6c-pink.