June 13, 2006
Whoa!
Also Woo!
Got home, plugged the 360 into the new TV (a Samsung LA27T51B), loaded Oblivion and -
Niiiiice.
I was playing it on my computer monitor before. That's a 19" Samsung multifunction, with DVI/VGA/Component/S-Video/Composite/TV inputs, and it's a very nice computer monitor. But it's only 19", and it's 4:3, not widescreen. Effectively (if I can still extract square roots in my head correctly) it's about 17" for a widescreen image.
The new set is 27", which doesn't
sound that much larger, but it is.
And the picture quality, even on component input, is superb.
Let's see what my notebook makes of it...
Hmm. Works -
almost.
At 1280x768, I get a perfect picture. But it's not a 1280x768 screen, it's 1366x768. 16:9, and bugger sensible resolutions. So if I run it in that mode, everything will be about 6% wider than it should be.
My notebook actually recognises the resolution, and offers an option for 1360x768 (which is what the manual says it should do). But either the notebook or the monitor (and I hope it's the notebook) gets the timing wrong, and the image starts about one fifth of the way across the screen; the leftmost fifth is blank.
1280x720 would get rescaled, but would have the proportions right. But the monitor comes up
Mode not supported. Bah. The manual says that it supports all modes between 640x480 and 1360x768, but that don't seem to work so well.
Hmm.
Okay, let's see what we can adjust on the monitor. Fiddle, fiddle, fiddle. Damn. Even at the maximum settings, I can't get the picture quite right. Well, let's try the Auto Adjust, just for laughs.
Hmm. Close, but there's still grey bars down the left and right, which will get kind of annoying. If I could get rid of...
Oi!
What?
Your wallpaper is 1280x1024, right?
Yes?
And this monitor is?
1360 by... oh. Right.
Okay, now that it's working perfectly, let's fire up some widescren video, like, oh, the Kamichu! opening.
...
Okay. I'm sold.
Posted by: Pixy Misa at
08:47 PM
| Comments (8)
| Add Comment
| Trackbacks (Suck)
1
*chuckle*
SO entertaining, you are.
Posted by: Wonderduck at June 14, 2006 01:02 AM (+rGmJ)
2
I've been very happy with my Samsung HLP6163. It does some amusing things when trying to upconvert DVDsof non-HDTV shows, likeSeason 1of The Sopranos.Bunches of small moving objectslike grass and leaves being blown in the wind get sort of shimmery. And the DNIE is very noticeable.
Anything throught theDVI is tres magnifique. I am so very ready for PS3 with the Cell!
Posted by: TallDave at June 16, 2006 12:10 AM (1Fb4e)
3
Somewhat off-topic, but still video-related... is there some easy way to get all the picture of an .avi file to fit onto a TV screen? For example, I'm planning on burning Haruhi to DVD so the Duck U. Anime Club can view it next semester, but in a test disc I've made, the far sides of the picture are "off-screen".
I know this is a fairly common thing, but I've been unable to find a way to rectify it... any suggestions?
Posted by: Wonderduck at June 16, 2006 05:49 AM (+rGmJ)
Hide Comments
| Add Comment
Where The Time Goes
Timings:
| Standard Python | Python + Psyco |
No Comments | 0.26 | 0.22 |
Inline Comments | 0.92 | 0.68 |
Sanitised Comments | 1.31 | 0.92 |
For last 500 entries on Munuviana. All times in seconds. Offer void where prohibited by federal, state or local laws, regulations or institutional policy. Offer ends June 30, 2006. Benchmarked on a Pentium D 820 running Centos 4.2. Python 2.4.2 compiled with GCC 3.4.4. Mileage may vary. Contents may ship during shrinking. Do not eat iPod shuffle. Sanitisation of comments only guarantees valid HTML. The content is your own problem.
Posted by: Pixy Misa at
04:58 PM
| Comments (5)
| Add Comment
| Trackbacks (Suck)
Wait Training
They say
that which does not kill us, makes us stronger and it must be true, because this morning I tucked a 27" TV under my arm and carried it home.
Okay, so it's an LCD and only weighs 12kg. Pfft.
Posted by: Pixy Misa at
11:39 AM
| Comments (2)
| Add Comment
| Trackbacks (Suck)
Galaxy Express 754
MagiPoka episode 16. (That is, the second half of episode 8.)
Both funny and moving. This is turning out to be quite a good series.
Posted by: Pixy Misa at
02:10 AM
| Comments (5)
| Add Comment
| Trackbacks (Suck)
1
This business about each show being divided into two unrelated halves is a bit unusual. Do you think that they're thinking in terms of someday repackaging it as 15-minute episodes?
The only other case I can think of like that is the way the Azumanga Daioh episodes are broken up, but that was a different reason.
I'm looking forward to this one, not least because I'm looking forward to an explanation of why the vampire wears a cross. (And because every picture I see of the werewolf makes me want to see more.)
Posted by: Steven Den Beste at June 13, 2006 11:37 AM (+rSRq)
2
Akahori Gedou Hour Rabuge does it, but that's because it's telling two different stories. (Love Pheremone and Gedou Otometai).
Galaxy Angel does it too.
It works well for lighter shows with episodic stories. The stories in MagiPoka might drag if they were half an hour; 15 minutes is just the right length.
Posted by: Pixy Misa at June 13, 2006 11:50 AM (FRalS)
Hide Comments
| Add Comment
June 12, 2006
The Karma Kittens Come Home To Roost
My dishwasher just blew up.
I see a week of take-away in my future.
Posted by: Pixy Misa at
02:49 PM
| Comments (9)
| Add Comment
| Trackbacks (Suck)
1
Maybe you did desecrate a shrine, or something.
Posted by: Steven Den Beste at June 12, 2006 02:50 PM (+rSRq)
2
This may be a good time to overhaul, say, your gas stove. Before the avenging kitten spirits ever figure out fuel-air explosives.
Posted by: HC at June 12, 2006 08:21 PM (Bgud/)
3
I'll just stand over here... in the US... far away from you... where it's SAFE.
Posted by: Wonderduck at June 13, 2006 03:29 AM (+rGmJ)
4
Are you sure it wasn't actual kittens? Because mine growl atmydishwashersometimes when it starts unexpectedly, visions of thrashing, possibly hostileanimals therein doubtless dancing in their furry heads.
And, ruthless little killing machines that they are,they've already disposed of several other small appliances...
Posted by: TallDave at June 13, 2006 08:21 AM (H8Wgl)
5
Has anybody seen the crew of the GSC Earth-Shattering Kaboom recently?
Posted by: Wonderduck at June 13, 2006 11:18 AM (+FLIL)
6
Funny you mention that, I just saw a bunch of Special Circumstances types in a bar, and they were all giggling about something...
Posted by: Nathan H. at June 14, 2006 11:39 AM (oExUK)
Hide Comments
| Add Comment
Fun With Templates
Minx is currently parasitic* on the MT database and user interface, but it has a template system all its own.
The pages are now fully templated, with no funny stuff going on, so I'll show you what it looks like:
Page Template
<html><head>
<title>Minx Dynamic Pages for Movable Type</title>
<link rel="stylesheet" href="http://ai.mu.nu/styles-site.css" type="text/css" />
<script language="JavaScript" src="http://blog2.mu.nu/cgi/showhide.js"></script>
</head>
<body>
<div id="container"><div id="center"><div class="content">
<center><b>[blog.name]</b></center><p>
[posts:here]
[magic.pager]
[magic.stats]
</div></div></div>
</body></html>
Very simple. You start with a standard HTML/XHTML page, and the Minx tags are marked with [square brackets]. If you have something in your template that's in square brackets that's
not a Minx tag - intentionally or unintentionally - it just gets spat out unchanged. (The
divs look a bit odd, but that's because I'm using an unmodified MT3 stylesheet for testing.)
We can see three types of tags here:
A simple tag, [blog.name], which just looks up the matching database field for the currently active blog and inserts it into the page at that point.
A here tag, which is used to simplify block processing. The [posts.here] and [comments.here] are the most common examples of this. Without any parameters** they loop through the posts or comments using the default settings for your blog and the default post/comment template, as appropriate.
The post and comment templates look like this:
Post Template
<h2>[post.newdate]</h2><p>
<b>[post.title]</b><p>
[post.text]
<p class="posted">
Posted by: [post.authorlink] at
<a href="[post.url]">[post.time]</a>
| <a href="#" onClick="ShowHide('cc[post.id]'); return false;">Comments ([post.comments])</a>
| <a href="http://blog2.mu.nu/cgi/mcomment.cgi?post=[post.id]">Add Comment</a>
| Trackbacks (Suck)
</p>
<div id="cc[post.id]" style="display:none">
[comments:here]
<p class="posted">
<a href="#" onClick="ShowHide('cc[post.id]'); return false;">Hide Comments</a>
| <a href="http://blog2.mu.nu/cgi/mcomment.cgi?post=[post.id]">Add Comment</a>
</p>
</div>
Comment Template
<div id="c[comment.id]">[comment.text]</div>
<p class="posted">
Posted by: [comment.authorlink] at [comment.datetime] </p>
Again, we have regular HTML, with just a bunch of simple tags to insert the desired values.
Minx is intended to let you have full control of post and comment selection from the template, overriding the default settings, but those tags are more complex to process and don't work yet.
Finally, we have magic tags. We have two examples of this, the pager and the stats. Magic tags do magic stuff that isn't necessarily available using regular template substitution. The pager lets you go to the next/previous page of the blog (a fancier pager is coming); the stats show performance information (and a fancier version of that is coming too).
The central idea is to make as much of the feature set as possible available without making the templates scary. So you don't need to have a complex nested structure of post tags and comment tags. Just put [posts.here] in your page template (with maybe some optional parameters) and [comments:here] in your post template. Set the appropriate settings on your blog options screen and you're in business!
Next up: A user interface...
Update: Minx now pulls its templates dynamically from the MT database. If you create index templates called mxPage, mxPost, and mxComment, Minx will use them to override the default templates. (Which are loaded dynamically as well.)
You can also include templates using the [include template]
tag. The template to be included must also begin with "mx", since Minx only looks at those, but you don't actually specify the "mx" when you use the tag. So, for example, you can create a blogroll template called mxBlogroll and include it with the tag [include blogroll]
. (It's not case-sensitive.)
Update: Conditional processing with if
and ifn
. if
and ifn
can be used with any simple tag to test whether the value of that tag is "true" or not. A tag is true if it is a non-zero number or a non-empty string, otherwise it is false. Any text between [if tag]
and [/if]
is included if the value of the tag is true. And any text between [ifn tag]
and [/ifn]
is included only if the value of the tag is false.
You can't nest if
tags, though you can nest an ifn
inside an if
and vice-versa. If you want to get more complicated than that, for now you'll need to use sub-templates with include
.
* Or rather, symbiotic.
** And, um, parameters aren't working yet.
Posted by: Pixy Misa at
01:45 PM
| Comments (10)
| Add Comment
| Trackbacks (Suck)
1
Normal
0
7.8 磅
0
2
false
false
false
MicrosoftInternetExplorer4
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:普通表格;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
Wonderful site, where did you come up with the information
in this article? I'm happy I found it though, ill be checking back soon to see
what other articles you have.
Posted by: yiwu tires at June 21, 2011 10:51 AM (yqqRD)
2
Normal
0
7.8 磅
0
2
false
false
false
MicrosoftInternetExplorer4
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:普通表格;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
I found your blog on Yahoo and I just wanted to say that I
think your writing is simply stunning! Thanks again for providing this content
for free
Posted by: yiwu at June 21, 2011 10:51 AM (yqqRD)
3
zhengjie199054
Nike shox
Nike shox 2011
Nike air shox
Cheap shox
Cheap Nike shox shoes
shox r4
shox nz
shox running shoes
Cheap Nike shox r4
Best Nike Shox Shoes
New Nike Shox 2011
Nike Shox Classic
Nike Shox Deliver
Nike Shox Dreams
Nike Shox Experience
Nike Shox Kids
Nike Shox Monster
Nike Shox Navina
Nike Shox NZ
Nike Shox R2
Nike Shox R3
Nike Shox R4
Nike Shox R4 Cartoon
Nike Shox R4 Flywire
Nike Shox R4 Torch
Nike Shox TL1
Nike Shox TL3
Nike Shox Turbo
Nike Shox Turbo OZ
Nike Shox Turmoil
Shox R3-R4 Combination
TL air Max Dream
Shox shoes
Posted by: Cheap shox store at June 30, 2011 04:49 PM (HHNAl)
Hide Comments
| Add Comment
Whee!
It works!
Rather than writing everything from scratch to start with, I put together what I had and pointed it at our existing Movable Type database (which has a number of changes over the original, admittedly). And it works.
40 milliseconds is a bit depressing, though. I'll have to see if I can speed that up a bit.
Okay, some timings: Last 200 entries at Munuviana, with inline comments: 420ms. Without inline comments: 90ms. Having inline comments causes a lot of extra SQL queries; I don't know if it's that or the text processing that's taking the time.
A normal page only shows 20 entries, and takes around 45ms with comments and 15ms without. It's a bit hard to time that more precisely, which is why I bumped the page size up.
Every post and comment has to be passed through the template engine; every comment is also processed through a SGML parser to strip out unwanted or invalid HTML tags. I'd love to get a complete page out in 10ms, but I don't think I can. Well, if it's cached, then sure, but not if the whole thing needs to be dynamically generated.
<Pause.>
<Goes off to implement caching system.>
...
<Comes back again.>
Retrieved from cache, processing time 0.0 seconds.
Yeah, that'll do.
Only problem is that saving the text up to be cached takes an extra 10ms or so. I need to try the StringIO/cStringIO functions and see if they help.
Update: cStringIO provides no performance advantage at all. Which is good in that I know that the easy way to code it is just as efficient, but bad in that I can't speed it up at all.
Posted by: Pixy Misa at
05:27 AM
| Comments (4)
| Add Comment
| Trackbacks (Suck)
1
Shit, I didn't know memcached worked that well.
Posted by: Jojo at June 12, 2006 11:53 AM (k4GMe)
2
That's not even using memcached; that's just a MySQL table. (I have memcached on the dev box but not on the production server yet.)
The resolution of the timer is 10ms, though, so take it with a ±5ms grain of salt.

Posted by: Pixy Misa at June 12, 2006 12:09 PM (O0soJ)
Hide Comments
| Add Comment
June 11, 2006
Dum De Dum
I've been working on the blog-code, all the live-long
day night...
It's
good to be doing development again, rather than running around like a hamster on crack trying to shore up systems under attack by hackers, spammers, and just plain lousy other-people's-code.
What I've mostly been doing so far, though, is installing stuff. Python needed an update, as did Apache. Didn't have PIL installed, or Numpy or Pyrex. Pysco has been patched. Memcached and its prerequisites. Bumped MySQL up to 5.0.22, and PostgreSQL up to 8.1.4. (I may end up just using MySQL, but at this stage I'm keeping my options open.) CherryPy and Django and ReportLab. And PHP 5.1.4... (fixeds MySQL option) And PHP 5.1.4 (fixes MySQL option
correctly) And PHP 5.1.4 (what do you mean, you can't find zlib? How should I know where it is?)
Okay never mind PHP 5.1.4. I'll do that later.
To work!
Oh, yes: I'm doing all of this on my notebook. Hooray for VMWare Player!
Posted by: Pixy Misa at
11:01 AM
| Comments (4)
| Add Comment
| Trackbacks (Suck)
1
Duhhhhhhhhhhh... I like pie.
I hate it when you put up posts like this one... it reminds me that there's a whole bunch of stuff about computers that I don't understand at ALL.
Posted by: Wonderduck at June 11, 2006 01:30 PM (7+BNY)
2
Mr. Duck, you're not missing anything.
Posted by: Steven Den Beste at June 11, 2006 04:28 PM (+rSRq)
Hide Comments
| Add Comment
June 10, 2006
Duck And Cover
Theme harems? Okie dokie:
1. Urd, from Oh My Goddess
2. Lum, from Urusei Yatsura
3. Yuri, from Dirty Pair (original version only!)
4. Faye Valentine, from Cowboy Bebop
5. Lina Inverse, from Slayers
6. Tira Misu, from Sorceror Hunters
Maid: Honey Kisaragi, from Cutey Honey (She has a maid outfit, so she qualifies!)
Life will never be dull.
Brief, possibly, but never dull.
more...
Posted by: Pixy Misa at
11:53 PM
| Comments (14)
| Add Comment
| Trackbacks (Suck)
1
Criminy, why not just name it the GSC Earth-Shattering Kaboom, Pixy? Or maybe the DSV We Make Nukes Look Small?
Of course, the IJSN Megumi Hayashibara would work too, looking closer at that list...
Posted by: Wonderduck at June 11, 2006 01:16 PM (7+BNY)
2
ROU Look at Those Torpedoes ?
I think even Special Circumstances would want that team on a short leash... or maybe a long leash, so they can be kept far away from civilized types.
Posted by: Nathan H. at June 11, 2006 02:23 PM (qLW7D)
3
The Culture ships were always the best part of those books.
Maybe the ROU Life's a Bitch...
Posted by: HC at June 11, 2006 04:11 PM (vIFan)
4
halten ein hohes Glas, Schluck Wein, während gemächlich vorwärts. Wenn wir Außenseiter zu sehen, zu ermöglichen, wäre sichmbt händlererlich betäubt haben.
In diesem Moment ist Du Yu eine kleine Stadt innerhalb weniger Meilen entfernt, nach ein paar Tagen im Training, dass unangenehme Verletzungenmbt schuhe günstig endlich die fast das gleiche. Abgesehen von ein paar Tage zu erholen, hat er Kinder in der Verfolgung der Spuren Traum kann heute endlich miteinander in dieser kleinen Stadt gefangen.
Träume können den ungebetembt möbel nen Gast vor Kindern einige der Angst, wie sie nicht sehen konnte die andere Seite der Reparatur, wie eine unbekannte, aber in das Gebiet der fünf Bands der jungenmbt büromöbel Meister, fühlte
Posted by: GS3 at April 26, 2011 04:29 PM (z8YdJ)
5
Hey, I just wanted to say what a excellent website. I certainly enjoyed it and found it interesting reading. Anticipating your next post!
Posted by: Web Design Sydney at May 24, 2011 09:26 AM (fIui8)
Hide Comments
| Add Comment
Subtitled For The Thinking Impaired
Can anyone point me to a subtitling program that doesn't screw up my files? Subtitle Workshop and DivXLand need not apply. Something that actually
works without deleting text or formatting or both would be nice.
Posted by: Pixy Misa at
10:57 PM
| Comments (10)
| Add Comment
| Trackbacks (Suck)
1
It does seem that subtitiling programs are often rather buggy.
I use Sabbu (http://www.sabbu.com/) for first pass timing, and a text editor and VirtualDub for scene timing and fine tuning. I've heard good things about Aegisub (http://aegisub.cellosoft.com/), though its more oriented towards the typesetting aspects. Medusa might still be unmatched for syllable (karoke) timing, but it is REALLY buggy.
Posted by: kayle at June 11, 2006 11:47 AM (Qsm1J)
2
Thanks!
I'm using WordPad and VirtualDub at the moment, which works fine, but is painfully slow.
I discovered that Subtitle Workshop has been eating entire lines of my scripts (I'm working with other people's translations, and I was wondering why they were missing some lines of dialog. Doh!) And both it and DivXLand eat the formatting commands in my SSA files. No, I don't want all my subtitles to be identically positioned and sized. Grr.
Posted by: Pixy Misa at June 11, 2006 12:53 PM (O0soJ)
3
Hmmm... If you want lines to be identically formatted and positioned, do it as a style, rather than putting formatting commands in every line.
Posted by: kayle at June 11, 2006 01:22 PM (Qsm1J)
4
Oops, misread that... anyway, you should consider doing most of the line-level formatting in styles though.
Posted by: kayle at June 11, 2006 02:24 PM (Qsm1J)
5
Yep, I did that.
The programs have shown a remarkable fondness for eating my styles. Which seems like a pretty goddam huge bug to me. Put the styles in, load the SSA file, boom, gone. The styles work perfectly when I run them through VirtualDub, but Subtitle Workshop and DivXLand just zap them.
Anyway, I've installed Sabbu and Aegisub, and I'll see how I go with those.
Posted by: Pixy Misa at June 11, 2006 07:04 PM (O0soJ)
6
Just tried Aegisub, and it respected my authoritay styles! Woot!
Posted by: Pixy Misa at June 11, 2006 07:18 PM (O0soJ)
Hide Comments
| Add Comment
Karma: Piss Poor
Did I torment kitties in a past life or something?
Anyway, my new HDTV has
not arrived. Yes, they called me yesterday to tell me I could come and pick it up. No, it's not actually there, as such.
Eh.
Okay, off to set up Apache 2.2 and stuffs.
Update: The other advantage of going for the borrowed word is that
I could understand it as well. Context helps, of course.
Posted by: Pixy Misa at
10:57 AM
| Comments (7)
| Add Comment
| Trackbacks (Suck)
1
Oh noes! Koneko no ribenji!
Posted by: Steven Den Beste at June 10, 2006 11:52 AM (+rSRq)
2
How does one pick up something that is not there? What is the sound of one hand clapping?
*pause*
I never thought I'd hear Steven DenBeste say "Oh noes!"
Posted by: Wonderduck at June 10, 2006 03:03 PM (zBXYv)
3
Seems to me that you haven't heard it now, either. (ahem)
Posted by: Steven Den Beste at June 10, 2006 03:31 PM (+rSRq)
4
I could have sworn I had put quotes around "hear". Hmmmmm.
Posted by: Wonderduck at June 10, 2006 04:04 PM (zBXYv)
Hide Comments
| Add Comment
June 09, 2006
You Think You've Got Problems
Not only do I have a denial-of-service attack to worry about, I've got 3000 incoming trackbacks
per minute.
And that's
after I firewalled off the worst offenders. Don't know what it was before, because it made Apache seize up.
And my notebook, which is where I keep, well, pretty much everything, BSOD'd on me earlier, and is now giving me random Unknown Hard Errors.
Yes, I know. BACKUP NOW. What do you think I'm doing?
Update: Whoops, there it goes again. Okay, time for rsync.
Posted by: Pixy Misa at
10:21 PM
| Comments (3)
| Add Comment
| Trackbacks (Suck)
1
Eep. Sprinkle holy water and garlic around it, Pixy.
Posted by: Wonderduck at June 10, 2006 01:33 AM (+rGmJ)
2
There's reasons I letsomeone elsehandle it all for me. And the #1 reason is, "I barely know what the hell you just said. No way I'd know what to do about it."
I'll just cheer quietly for your from over here in the peanut gallery....
Posted by: ubu at June 10, 2006 07:42 AM (dhRpo)
Hide Comments
| Add Comment
Blue Tuesday Friday
My baby done left me.
My cat left me too.
Can't get this code to compile
No matter what the hell I do.
I got the Blue Screen of Death Blues.
My server got DDoSed.
My hard disk got fried.
Got everything fixed, then
Movable Type lay down and died.
I got the Blue Screen of Death Blues.
Yeah, I got the Blue Screen of Death Blues.
Should have stayed home in bed -
Now I got the Blue Screen of Death Blues.
Posted by: Pixy Misa at
09:05 PM
| Comments (2)
| Add Comment
| Trackbacks (Suck)
Trackbacks Are Dead
We are running a very non-standard trackback system here at munu. The standard trackback script is disabled, and our custom one simply logs the trackback request in a text file, taking a small fraction of a second. Another process comes along once a minute, scoops up the log file, filters out the crud, and posts whatever remains. But that happens entirely in the background, and since 99.8% of trackbacks are spam, and it can detect and reject a spam trackback in 50 microseconds, the processing is very, very efficient.
Nevertheless, we are getting enough trackbacks right now to tie up
fifty Apache processes. That's over half a gigabyte of memory dedicated to returning 404's to spammers.
Posted by: Pixy Misa at
04:43 PM
| Comments (3)
| Add Comment
| Trackbacks (Suck)
Overhead, Without Any Fuss...
I was feeling good this morning.
The chaos caused by the DDoS attack was largely over.
I have an interesting new project at work that will have spillover benefits for munu.
My new HDTV has arrived.
So has my copy of
Rumble Roses XX.
I'd even had seven hours sleep, which is a record for the month so far.
The only problem left to fix was trackbacks, and that wasn't a huge priority. Trackbacks are nice to have, but 99.8% of them are spam anyway.
Oh yes, and the Zarkster had croaked.
So I settled in at my desk at work -
And then I find, over at munu, without any fuss, the blogs were going out. Every time someone got a comment, the main page of their blog would go blank.
I have
absolutely no idea why this was happening.
All I know is that it didn't affect Ace.
Ace was running his own copy of Movable Type. An identical copy (in theory) but still a copy. Using the same database, but still a separate copy of the source code.
It took me a two hours of screaming frustration to find this out, but then I switched everyone over to Ace's copy of MT. And then whacked the server over the head repeatedly. And then it worked.
Posted by: Pixy Misa at
03:07 PM
| Comments (4)
| Add Comment
| Trackbacks (Suck)
Fiddlicreepi
When tasked with building a huge and complex database application, it is valuable to have already spent half your life doing exactly that. Because then, when faced with a seemingly intractable problem, you can simply cast your mind back to how you solved it last time.
Having said that, multi-master replication still poses problems. Having said
that, we're not running a bank here. We
can say
the order of transactions is not guaranteed. The detail lines are in a different order in Japan as compared to the Netherlands? Doesn't matter. As long as they're all present and correct, and the ordering isn't
too badly screwed up (minutes matter; seconds don't), we can get away with it. It's a bit annoying that we need an extra field (the original server number) to guarantee uniqueness on some tables, but that's life.
And for the tables that need to be centrally controlled, well, we centrally control those ones. Makes up 0.01% of transactions and 0.0001% of database operations. No biggie.
Look for it on a website near you, probably around September. I can't divulge the details just yet, but don't worry, you'll know it when you see it.
Posted by: Pixy Misa at
08:30 AM
| Comments (4)
| Add Comment
| Trackbacks (Suck)
1
Daaaaaaaahhhhh... I like pie.
Posted by: Wonderduck at June 09, 2006 09:28 AM (+FLIL)
2
christian louboutin shoes
Christian loubouitn sale
cheap christian louboutin
Discount Christian loubouitn sale
cheap christian louboutin shoes
Discount Christian loubouitn
Christian Louboutin
christian louboutin replica
louboutin shoes
christian louboutin heels
christian louboutin sale
cheap louboutin
Posted by: asdcd at May 30, 2011 12:17 PM (M5+Rm)
Hide Comments
| Add Comment
June 08, 2006
Um...
From the O'Reilly book,
Ajax Hacks:
For example, if you have ever used Google Maps, the way you can drag outlying regions into your view conveys the impression that you have all of the maps stored locally on your computer, for your effortless manipulation. Imagine how unpopular this application would be if every time you tried to "drag" the map the page disappeared for a few (long) moments while the browser waited for another server response.
Imagine living somewhere other than the United States.
Actually, the screen doesn't go blank; instead you see the wrong map for a while as it downloads the tiles, blip... blip... blip... blip... blip...
The application would be so sluggish that no one would use it.
Yeah.
Posted by: Pixy Misa at
05:55 PM
| Comments (3)
| Add Comment
| Trackbacks (Suck)
1
...or imagine you have dialup. You have enough time to eat dinner while the map loads in.
Posted by: Wonderduck at June 09, 2006 07:21 AM (+rGmJ)
Hide Comments
| Add Comment
June 06, 2006
Right
50 milliseconds to start Python and load the cgi, cgitb, MySQLdb, os, psyco, sgmllib, string, sys, and time libraries. (It's not currently using psyco, because it has no benefit for such a short program, but I left it in.)
50 milliseconds to connect to MySQL. (CPU time. Elapsed time is roughly the same, I think.)
7 milliseconds (elapsed) to return the 50 most recent matches from Ace of Spades for the word "bush".
10 milliseconds to process the results.
I'm going to set up a miniminx to get rid of 1 & 2. Just by way of experiment.
Posted by: Pixy Misa at
03:27 PM
| Comments (8)
| Add Comment
| Trackbacks (Suck)
1
Hey Pixy!
I know you have been in the trenches fighting the wars for us. I was just wondering if all of munu was supposed to be back up now?
Thank you for all you do!!
; )
PS if you have not seen the Anime Noir, there are a few of us that would like to send it to you.
Posted by: Christina at June 07, 2006 12:36 AM (nGukS)
2
Sorry about that! A few of the WordPress blogs landed on the wrong server when the musical chairs ended. It should be working shortly.
Oh - I haven't seen Noir, but I do have it. So much anime, so little time. :|
Posted by: Pixy Misa at June 07, 2006 08:41 AM (O0soJ)
3
Woohoo!
Thank you, kind sir!
Noir is my absolute favorite!
Well, heck, what the hell am I to send you then?
Hmmmm...the man who has everything...hmmmm.
Let me think on it.
In the meantime, would you please send me an address??
; )
Posted by: Christina at June 07, 2006 08:44 AM (zJsUT)
Hide Comments
| Add Comment
Taking Stuff For Granted
Ten hours ago I was intently focused on trimming my search routine down to single-digit milliseconds.
Right now I'm just happy to have a working server.
The DDoS attack came back.
Fortunately, this time I had working NFS and no drive failures. Much faster and less painful that way.
Posted by: Pixy Misa at
04:02 AM
| Comments (2)
| Add Comment
| Trackbacks (Suck)
June 05, 2006
Huh?
I was forced to kill the MT 2.6 search routine at Munu because it was (a) taking 180MB of memory, (b) taking a couple of minutes, and (c) because of (b) people were clicking on it multiple times until it, essentially, killed the server.
I just rewrote it.
I tested it on Ace's blog, by searching for "Bush". It's currently set to only search the last 500 entries, but for my test I set it to scan the last 5000.
It takes one second. And 19MB of memory. About 350ms for the SQL query and 650ms for the program itself.
It sure ain't optimised. It selects the last 5000 entries, sorts them (because God forbid there should be a useful compound index), yanks the entire result set into a list, scans them for each of the search terms, uses an SGML parser to remove HTML tags, and kicks the result out.
For more reasonable searches, like searching for "test" on the last 500 entries at Munuviana, it takes 35ms for the query and 130ms for the program.
About 120ms of that is start-up: Launching the Python interpreter and loading the seven or eight libraries involved.
Now, I'm not using a template system for this. Still, one-tenth the memory, one hundredth(?) the processing time. I can't be sure about the processing difference, because I can't run the original script right now. I configured Apache with a 100MB memory limit for CGI scripts.
For Minx, the 120ms start-up time wil disappear because the application runs as a multi-threaded server itself, not as individual CGI (or PHP or ASP) scripts. Can only do so much about the query time, but I'll play around with it. And I'll pre-store the excerpts rather than create them on the fly. Well, probably. I might be able to live with an average search time of 45ms.
Hmm.
What if I get MySQL to do the matching? Let's see...
Okay, not good. Hmm.
Ah, there we go. Don't use regexp's unless you need them. "LIKE" is nice and brisk. With a 500-result limit, the Ace/Bush search is 125ms for the SQL query and 300ms for the program. And doing it that way, I could actually page it, so 50 results at a time. Hmm. And when I'm taking the 50-word excerpts, rather than whitespace-split the entire entry, I'll just look at the first 400 bytes.
And let's go back and add that compound index while we're at it...
Okay,
now we're cooking. 7ms for the query, 100ms for the search script. Since the resolution of the timer seems to be 10ms, and the search script takes 100ms if you feed it an invalid blog id, that's less than 10ms or so for the actual work.
That'll do.
Posted by: Pixy Misa at
05:47 PM
| Comments (3)
| Add Comment
| Trackbacks (Suck)
1
I'm happy to report that there have been no problems with the new search function over at The Pond. In the past, it would usually 'time out' and die on me (I did have ONE successful search, once).
Now, it just works, and well. Brilliant.
Posted by: Wonderduck at June 06, 2006 11:10 PM (7+BNY)
Hide Comments
| Add Comment
NFS Is A Cow
We hates it!
Okay, the problem(s) this time:
If portsentry is running, you cannot start NFS. Solution: Stop portsentry, start portmap and nfsd, restart portsentry.
If sunrpc is not available as a kernel module, rpc.idmapd will not start. Without rpc.idmapd, you can't use NFSv4. Solution: Don't use NFSv4.
Everything is set up correctly, your mount requests are being accepted according to the syslog, and yet the client always sees "Permission denied". Solution: Add the line
none /proc/fs/nfs nfsd noauto,defaults 0 0
to /etc/fstab and
mount /proc/fs/nfs
You can take the
noauto
off once you're happy that everything works.
This, of course, is all explained in great detail in the man pages... err, the online howto's... err, in the kernel mailing list.
Posted by: Pixy Misa at
02:06 PM
| Comments (6)
| Add Comment
| Trackbacks (Suck)
1
http://wonderduck.mu.nu/archives/179920.php
Thanks for your work over the weekend, Pixy!
Posted by: Wonderduck at June 05, 2006 03:56 PM (+FLIL)
2
<i>Useful</i> documentation for open source software? You expected <i>useful</i> documentation? Heh-heh-heh-heh-heh... sob, moan, cry.
My server runs Linux, and if anything unexpected ever happens to it, I am deeply screwed. I've tried to figure it out, and I eventually gave up. (I can't even figure out how to use many of the basic features of ".htaccess" from the documentation; last time I tried to do something new, it shut my entire web site down until I backed out the change.)
Posted by: Steven Den Beste at June 05, 2006 04:23 PM (+rSRq)
3
Yes, I expect useful documentation for open-source software. The documentation for Python, for example, is quite good. Not perfect, not the best I've seen, but more than adequate.
The documentation for Apache, on the other hand, is complete and utter crap.
Posted by: Pixy Misa at June 05, 2006 05:25 PM (FRalS)
4
Lately I've decided the best help is provided by Google. I can solve 95% of my technical issues fastest that way, if I can get thephrasing right.
Now, if only Ace would spell my name the same every time. Then I could find all the stuff I sent him that he linked.
Posted by: TallDave at June 08, 2006 06:54 AM (iQC1I)
Hide Comments
| Add Comment
June 03, 2006
Plus Ça Change
One server taken out by a DoS attack, the other by a disk failure.
BUT I STILL GET SPAMMED.
Posted by: Pixy Misa at
04:04 PM
| Comments (7)
| Add Comment
| Trackbacks (Suck)
1
Is this you saying this:
On Mon Sep 05, 10:03:27 AM IST,
Pixy Misa said...
Thanks for this.
From the other list, I was starting to thinkg that "being poor" was "whining a lot".
And the two anonymouses above only confirm that opinion.
at:
http://zigzackly.blogspot.com/2005/09/being-poor-my-arse.html
in response to this?
http://www.scalzi.com/whatever/003704.html
Be honest.
J,
Posted by: G.T. at June 04, 2006 07:59 PM (rxoAV)
2
Yes.
Not everything is relative.
Posted by: Pixy Misa at June 04, 2006 08:14 PM (cThdm)
3
And John Scalzi agrees:
I see
this list as complementary to, and not in opposition to, my original
list, and it highlights the difference between relative poverty (which
is the situation in the US), and absolute poverty (which is the
situation in much of the rest of the world).
Being poor in the US is a completely different situation to being poor in Bangladesh. Or 8th-century England, for another example. Being poor in the US, today, is to be wealthy beyond dreams and surrounded by opportunity - in comparison to most of the world and most of human history.
Posted by: Pixy Misa at June 04, 2006 08:21 PM (cThdm)
4
Yah, what Pixy said, ten-fold.
I grew up poor. That's "poor" by 1970s and '80s US standards. The Army sent me to Korea in the mid-late '80s, and I saw poor. Major eye-opener, I'll tell you that.
Posted by: SteveF at June 05, 2006 11:09 AM (RiE2L)
5
Where Kui told reporters that Wuxi card in entire of the Department of the dispatched workmen are minimum wage in Wuxi City, to pay social security for the bottom. He was a bargains representative,Christian Louboutin black leather New Simple 120 platform pumps, a good rendition while the monthly proceeds of more than ten thousand, there are a few thousand greenbacks less, but social security has been in Wuxi City, according to 1048 yuan to pay the minimum remuneration, but not the bank to pay, but by sending the company Human Resources Partners
it is in such a high load of work, where sales Kui was significantly prominent. July 2008, he eventually boiled Director of Operations from the sales representatives, and turned into a full-line members. But overtime remains the same, the difference is,Christian Louboutin Sexy 85 patent pump, before he followed the commanders to do business, and then became his to do with a sales representative. However, in 2009 led fair been appointed
where 34-year-old Kui, the original branch of a bank credit card department main of operations in Wuxi. November 2010 after the departure of more than 4 years he worked for the unit to open a bank branch in Wuxi high price out of 1,533,032 yuan overtime bill,Christian Louboutin Simple Botta Leather Boot, but the banks are not recognized by whichever Kui overtime requests. After unsuccessful arbitration, where Kui sued this bank branch in Wuxi Wuxi Chong'an District Court, to the original unit and Wuxi Branch Bank Credit Card Center Credit Card Division presented the pennant, the content is Social Security.
where Kui told reporters that Wuxi card of the existing staff of fifty people, including members of only ten alternatively so lines, but also by the dispatch of workers favor him come to positive. To positive as the overtime without overtime pay before, but there are excellent distinctions in the benefits.
Wuxi, the bank said in the case proceedings, where the issue before Kui dispatch companies ought be prosecuted because they have a legal employment compact between,Christian Louboutin Mater Claude, prefer than sue banks. In this regard,Christian Louboutin Mater Claude Red, where Kui that, notwithstanding in the July 1, 2008 signed a contract with the labor dispatch,christian louboutin hot pink suede Short Tina 120 fringe pumps, but the bank is accepting entity shall bear the corresponding legal liabilities, such as overtime pay and so on. Although there is no labor contract before,Christian Louboutin Peep-Toe Pump, but did not affect the legal liability as a labor unit. In addition, he July 16, 2006 from act commerce on benefit of, July 1,Christian Louboutin Coral Patent Pump, 2008 after the adviser of doing business,Christian Louboutin Sexy 100 patent-leather peep-toe, he can invest the 3 attendance records, may prove the subsistence of overtime situation.
as the defendant, the bank said the staff did come up with the presence disc namely true, namely legitimate, but along apt pertinent provisions of the approval system has to work overtime, working only in electronic period cards as certify of non- apt aid. Bank too presented the bank above January 1, 2004 started the implementation of employee presence treatment approach, which also involves the enhancement of working time regulations.
for the lawsuit, the bank credit card heart of a media interview answer letter had said: The complaints are primarily the statement of individual workers ... ... currently demands the trial has ended, pending the court's final decision. In the overall judicial proceedings,Christian Louboutin Guerriere 120 suede ankle boots, the Department of the Bank are in a reasonable credit card in Wuxi, a positive outlook with the related legal work.
employees: more than four years to work overtime,Christian Louboutin Suede Butterfly Bootie, more than 150 million is not muddle to the
reporter Road, Stay Foolish microblogging Recommended | today's micro-blog peppery (Editor: SN017)
Bank: absence to apply for overtime, not application ambition not be capable to pay
Court: Bank there are result of the trial. Where Kui said,Christian Louboutin Lady Glitter Slingback Nude, no matter the sequel, he must own more than four years for one explanation of overtime, not only on behalf of himself, but also many voices of workers labor dispatch unit.
ahead leaving bureau, where Kui requiring banks to pay their own entry since the overtime, the bank card department of Wuxi reply : litigation, the request to pay overtime ruling Bank 1,533,032 yuan.
month in overtime, including weekends and National Day, often 2 or three in the morn back home yet.
reporter learned that, after the departure of any labor inspection Kui separation to report Wuxi Wuxi Department of the bank credit card pay less social security situation. March 8, 2011 in Wuxi City Labour Inspectorate issued a detachment discipline decision, and ordered the Department of Wuxi bank cards more than a dozen members of the official line in back pay less social security costs within two years of 394,146 yuan, but to send workers for the more serious pay less social security problem is not handled.
reporter capable that, after trial, the tribunal base the original defendants were parties to discuss, but the accuser who Kui said by fewest 40 million additional overtime disburse, and banks can no adopt.
Kui correspondent who saw the indictment, extra than 150 million that the non-payment of overtime amends 170,000 economy and timely payout of overtime without compensation for more than 680,000.
trial justice in the trial, according to the bank side to reflect and comprehend the relevant spectator testimony,Christian Louboutin Pigalle 120 studded denim pumps, the Department of the bank card card concordance giving the sales staff in the normal 8-hour working daytime, which can be done, but also appropriate provocations,Christian Louboutin Mater Claude Nude, but the banks to distend the mall, encourage employees to sell, and give some plan stimuli, such as the great performance of employees into normal employees, indicators of credit card sales are also higher than the target of the award per card plan. reporter.
where Kui told reporters that since July 2006 has been long-standing demand units and compelled overtime, overtime for a long time , strength, nor do any days off, do not pay any overtime.
Wuxi credit card department of a bank employee, for of work without overtime pay high strength, after leaving the original element in the bank to court to demand payment of more than 150 million At present, the circumstance is still in Wuxi during the Sung court.
reporter studied that, July 1,Christian Louboutin Mid-Heel Knotted Napa Pump, 2006, where Kui via a enterprise cried .
Posted by: discount louboutin at May 16, 2011 12:40 PM (OLJhl)
Hide Comments
| Add Comment
The Best Laid Plans
My plans for the weekend involved reading the new Harry Dresden book, having a big bowl of teriyaki beef don, playing with a kitten, and maybe prototyping some new blogging stuff.
They did
not include migrating the whole of munu from one server to another to dodge a DoS attack, much less recovering from a hard disk failure during that migration.
So guess what I actually
am doing.
Posted by: Pixy Misa at
12:39 PM
| Comments (13)
| Add Comment
| Trackbacks (Suck)
1
Any idea who the actual target of the DoS was? (My guess was Ace, but I'm not familiar with the majority of your users so I'm probably wrong.)
Posted by: Steven Den Beste at June 03, 2006 02:53 PM (+rSRq)
2
I was WONDERING what was going on earlier. Sunuvabeechmartin!
Posted by: Wonderduck at June 03, 2006 03:04 PM (7+BNY)
3
If it was Ace, they missed, because I moved his blog to the other server two weeks ago.
Possibly The Jawa Report. There are a number of Munuvians who aren't, how shall I put this, the most practiced of diplomats, so it could be any of a number of people.
Posted by: Pixy Misa at June 03, 2006 03:21 PM (cThdm)
4
No doubt someone disagreeing with my assessment of Wolverine's powers. *snort*
Either way, thank you for your efforts at bringing MuNuvia back up and running, Pixy... A Winner Is You!
Posted by: Wonderduck at June 03, 2006 05:26 PM (zBXYv)
5
We'll have to sling you an extra large care package of noodles, pokki and MMs to keep you going.
Much appreciated.
Baiting comicbook fanboyz is too easy. Hardly a challenge.
Posted by: Andrew at June 04, 2006 02:01 AM (P5BFK)
6
Presumed Guilty? Have fun with it, whenever you get to it. I've been favorably impressed with the changes made to the series as it has proceeded, and this one does much to establish a hidden order underpinning the entire series. Plus, the family Carpenter is back in the spotlight.
I'd be interested in whatever comments you have on it, again whenever you do get to it.
Posted by: HC at June 04, 2006 05:19 AM (Bgud/)
7
I'd say "getting back to the
hidden order underpinning the entire series." It was stated as
far back as the werewolf novel, that something was fishy in Chicago.
Too many tomes, magic belts, and other weird things showing up; in fact
the very first novel opens up with an obvious mystery: who supplied the
book on demon summoning to the killer that targeted Harry?
But "Yay!" for the return of the Carpenters, I agree!
It was definately interesting to see Lily and Fix again; I'd always felt that Summer Knight was one of the weaker books in the series, but they were good here.
Posted by: ubu at June 04, 2006 07:47 AM (ruy7Y)
8
Yes, Lily and Fix have grown up quite nicely.
Do you think that Butcher had planned this from the beginning? I believe that he started with a character, a genre, and a style (wizard, noir, two-fisted) and just threw problems at Dresden for the first few books. Afterward, it dawned on him that he had an indefinitely viable series on his hands, and he began to lay foundations to carry it forward.
He might have been working on this overplot as far back as kicking off the war with the Red Court in book three (see also, Leaninsidhe's/Mab's athame), but I wouldn't bet on it really coalescing much before book six or so, and maybe book seven.
This isn't really a criticism - his reconciliation of past problems with present conspiracies was quite clever, and I can honestly say that the series is improving visibly from book to book at this point. I'm particularly excited about the turn of events with SPOILER, as I think SPOILER is going to be particularly interesting character going forward, given SPOILER's SPOILER and SPOILER.
Incidentally, don't you wan't to know who used SPOILER on the gates of SPOILER? Or who was driving the car when it SPOILER?
Ah, Pixy - read the thing soon, to spare my caps-lock key, if not for its considerable merits.
Posted by: HC at June 04, 2006 01:29 PM (Bgud/)
9
Well, the kitten-playing and lunch-eating entries are ticked off, so I'll tackle the book-reading and blog-prototyping tomorrow.

Posted by: Pixy Misa at June 04, 2006 03:52 PM (cThdm)
10
Yeah and now SPOILER knows about SPOILER! The response was about what I expected, but I'm beginning to wonder about the SPOILER thatHarry's kept ever since SPOILER. And then there's making an enemy out of SPOILER.Better watch his step!
I'm disappointed that the Powers That Be have SPOILER but then an old 80's P.I. series occurs to me... and no, I don't mean Remington Steele; I mean the other one with acouple.
Posted by: ubu at June 06, 2006 05:05 AM (dhRpo)
11
Do you really think Harry's made an enemy of SPOILER? I'm betting that what he did there was exactly what SPOILER wanted - SPOILER does not take kindly to orders, after all, and that whole situation could hardly have been a bigger mess if SPOILER were in on it, and SPOILER was apparently right on the scene, so why not?
I think that I know who fixed the SPOILER, but that's only conjecture so far.
Harry's SPOILER that he has been keeping is due for a plotline - but then, so it the other SPOILER. Also, there's the suggestion that his duties will be expanded to include SPOILER, as well as the certainty that he'll have to spend a lot of time working on SPOILER'S SPOILER. All in all, no shortage of future plotlines.
I'm not up on 80's detective shows, but I think that the PTB pretty much had to have SPOILER. Besides, it's a return to the thematic roots of the series.
Posted by: HC at June 06, 2006 07:25 AM (Bgud/)
Hide Comments
| Add Comment
May 30, 2006
Bulletin Bulletin Bulletin
Future files - and eventually, past files as well - will appear
here.
Posted by: Pixy Misa at
10:26 PM
| Comments (6)
| Add Comment
| Trackbacks (Suck)
1
Torrent tracker still hosed? The (one, lonely) episode at the download page has only a direct download link, no torrent download.
(I've had the three Dirty Pair episodes frozen at n% sharing for a couple of weeks now. I want to be a good citizen and keep them there until I've shared 110% or more, but would also like to free up the disk space.)
Posted by: SteveF at May 31, 2006 10:30 AM (RiE2L)
2
The torrent tracker is working for existing torrents, but if I try to add anything new to it it loses all the old entries.
Not good.
You can probably let go of the DP eps you're seeding. The server is seeding them and so am I. Episode 4 should be up this weekend (finally!)
Posted by: Pixy Misa at May 31, 2006 01:41 PM (FRalS)
Hide Comments
| Add Comment
<< Page 12 >>
Processing 0.03, elapsed 0.1028 seconds.
49 queries taking 0.0846 seconds, 119 records returned.
Page size 106 kb.
Powered by Minx 0.8 beta.