Wednesday, July 27, 2011

nginx 405 Not Allowed

Ever since I was two I have reacted strongly to being told no.

"No you can't" sometimes even brings resentment.

"No you can't, you never will, and you can't change one thing" riles me like nothing else. (well, ok, maybe other things rile me, but whatevs)

For a tool like nginx, a good, capable web server, to repeatedly tell me "405: Not Allowed" is not cool. at. all.

For those of you who aren't terribly fond of technical discussions but are reading this for other reasons, you are perfectly welcome to ignore anything past this paragraph. Thanks for reading. :)

For those who have been Googling this for hours, please stay with me:

For one, nginx caching is powerful, and if you're using version 0.8 or newer it is most likely not the problem.

nginx is smart. If you try to HTTP POST to a static page, it will complain. POSTing is only useful for pages backed by server-side code (in my limited experience).

"But," you might say, as I did, "My nginx.conf very carefully guides all requests to my dynamic web server using the proxy_pass parameter!"

Remember how your nginx.conf uses those pesky semicolons? Think of C. Shudder. Reminisce if you like-- my point is that nginx.conf is, after a manner, a procedural programming environment. If you put your root server block above your dynamic server block, it will interpret them in the order it read them. Every time.

Solution? Change the block order or--as I did--merge the blocks and drop your "location /" section down to the end.

I hope this helps you. Good luck.

:)

Monday, July 25, 2011

DLT

Sequel to Waldoes
The knot in his stomach tightened.

He decontaminated and cycled the airlock, then inserted the DeLaurent Teleresonator in the microwave-sized cavity and recycled the air pressure.

One must be careful, he thought, so that the intense radiation in the chamber didn't escape and so that the particulates in the shielded cabin didn't enter the chamber and cause problems. Not too hard, especially if done right, but a royal pain if done wrong.

Knowing he'd be using this tool he had made sure to get a full night's sleep and to go over his basic quantum electrodynamics one more time with the other crew members, some of whom he'd kept up until odd hours in the past worrying over the problem. He pressed his face to the stereoscopic viewplate and once more inserted his hands into the waldoes' control mechanisms.

He had prepared, sure, but he was nervous. Every probability manifold he'd worked out on paper had indicated that this tool would either precipitate a proper runaway reaction or simply kill the fissile nature of the material. Still, he needed to know, so he proceeded. Besides, his friend told him, Wasn't it a Warshawski manifold? Wasn't there a whole range of non-extreme outcomes?

Arranging the reactor elements on the processing plate of the tool in the simplest, most straightforward arrangement he had come up with, he plugged it in and began to feed it power.

The Geiger counter started clacking more intensely, but from the other readings the baryonic fields weren't accelerating, so he continued.

The glow sharpened, then wavered, then went fuzzy, then turned a hot pink. It was an intense kind of light, with a hardness that suggested--no--

Relaxing the waldoes he pulled the textbook he had been poring over back off the shelf and flipped to the resonance section. Sure enough, there it was...but the only way that could be working at all was that--really? No...his small assembly was actually picking up the primary engine's resonance and...amplifying a harmonic? But, that--impossible--noone had seen it coming...perhaps one line of reasoning had suggested it, sure, but it was ridiculous, a tiny chance, not even in the Hausdorff domain, requiring mathematical gyrations fit for the circus--how--?

The dial said it all. Engine efficiency was up 8%--not perfect, but better, and as he ramped the Resonator's power back down he sat back in shock.

The captain would be happy.

Saturday, July 23, 2011

Waldoes

The engineer pressed his tired eyes against the lenses once more. Inserting his hands into the waldoes' grips he recommenced the rhythmic click-clacking of the cubes of metal in the fuel service area. Their soft, bluish glow reminded him every second of just how dangerous these kinds of operations could be, and he was glad of the layers of indirection the chamber provided.

He had been trying different assembly methods and patterns. Keeping an interstellar drive running was usually uneventful--once cruising speed was reached, just replace a fuel rod now and again and the design took care of itself.

This time was different. The engine had been assembled with one particular pattern of nuclear resonance in mind, with a dozen of the best engineers and a colossal computer working out the simulations, yet a shift in the local values of a few of the universal constants had left it working at less than peak efficiency. They had even planned for this, and only a small change was required to retune the old resonance, but after months in space its vast emptiness was gnawing at him, even with the FTL newscasts. So, without the resources of a shipyard, he was left to mere experimentation, and as he shifted the blocks around he wondered. With this tamper there, this fuel pellet there, a neutron reflector there--almost, but not quite.

Every once in a while his mind would wander and he would visualize his handiwork going critical and taking the ship with it...not pleasant. That was why he hadn't slept well in days--he would wake up in the middle of the night worrying about how he had left the core elements, or wondering if a certain pattern of construction could work.

Ultimately it would either work or it wouldn't, sure, but it was such a complex system...

Sunday, July 17, 2011

Direction

The navigator was examining the fine inscriptions etched into the surface of the compass in the control room bulkhead. He had had it installed in a more prosperous time, when the captain had advocated the acquisition of more expensive and more capable equipment.

Since then a LOT had happened. For one, the user manual had been lost--after all, who needs the manual to use a compass?

It wasn't a digital model. It had a digital interface--as everything nowadays did--but part of the draw of this model had been the ability to watch the spindle move. This had saved them more than once, most notable in the antimatter reefs where it had seemed to anticipate the shifts in the wispy, lethal structures.

The writing was intriguing.
NON-DETERMINISTIC QUANTUM-TEMPORAL REFLECTION SENSOR
5V 300mA DC DO NOT DEGAUSS

He tapped on the glass again. There were two spindles.



Many of my readers know I like to write and publish vignettes like this one. As usual, there may or may not be a metaphor underneath; however, in this case, I couldn't let go of that ending to do the metaphor justice. It was just too flavorful. For this reason, I've decided to publish that original, and then provide a more finished and complete version.



The navigator was examining the fine text etched into the housing of the compass in the bridge bulkhead. It had been installed in a more prosperous time, when the captain could afford to advocate the acquisition of more expensive and more capable equipment.

That had been years ago. During the renovations and crew changes since then, there had been a complete loss of all but the most essential (read: regulatory compliance) documentation, including user's manuals. Besides, who needs a manual to use a simple compass?

He suspected part of the allure of this model had been the free-floating spindle visible under the glass. Sure, it had a digital interface the ship's computer could plug into, but just watching the spindle swing as the ship came about was mesmerizing. It was a little quirky--while navigating the Behrer Antimatter Reefs it had seemed to anticipate the shifts in the wispy, lethal structures and guided them through safely.

The writing was intriguing:
GNOLAUM INSTRUMENTATION CORP.
NON-DETERMINISTIC QUASITEMPORAL QUANTUM REFLECTOMETER
5V 100mA DC DO NOT DEGAUSS
SEE MANUAL FOR CALIBRATION INSTRUCTIONS

He tapped the glass again. There were two spindles.

He remembered, now, that there had been ghost spindles while navigating the reefs. At the time he had just chalked them up to his fatigue. Perhaps the other instruments could provide disambiguating information...

Tuesday, July 5, 2011

It Takes All Kinds

The desk light clicked and its light knifed through the darkness, illuminating the study desk in the navigator's quarters.

His hands smoothed the large sheet of paper sitting there. The creases were still sharp from the years since he'd even considered extricating it from its storage spot.

"Hertzsprung-Russell Diagram (C) 68-74 Interstellar Starlines Corp.," a line of text along the bottom declared. Splayed across the page were points representing every star that had ever been visited by humans, with tentative lines dividing them into categories. He traced these slowly with his finger, noting that his career had only taken him to a few of the sections on it.

He glanced up at the ship status panel he had rigged up some time ago. The ship was in fine health, and its bearing was holding steady at nine-zero-oh-two-two. At this rate it would reach its destination in less than six months. He frowned. The refit they were scheduled for there in the Vega system was a significant one, assuming nothing drastic happened on the way, and he knew it was a good system to be registered in. Still, he wanted to know.

Back to Hertzsprung-Russell. It would require some research.

Sunday, July 3, 2011

Greetings, old friends

I stepped out of the airport doors and a thick, warm, humid presence wrapped me in its arms.

I hugged it back and shouted, "Hi, Humidity!!!" I had forgotten what it was to sweat merely because of one's environs. I had also forgotten how much I love warmth and moisture in one atmosphere.

Today I've been serenaded by a magnificent thunderstorm and pounding rain. I'm just now getting up from that nap. Cracks from lightning and the consequent rolling thunder...happy day.

I also got to tell the story of how I met Marissa to the ladies at church--that was fun. I am always reminded of how different that young lady is, and how much that makes her wonderful. (I also got to show off the pictures she sent me a while back. For not being 'stereotypcally' beautiful, I still think she's gorgeous so I don't often go back to the pictures. :)