MySQL on CentOS

In case anyone else is struggling like I am… After you install MySQL on CentOS, it doesn’t seem to want to start… You run mysqld and it barfs up an error.

It turns out that it’s because you need to run service mysqld start instead.

(And if you’re looking for how to install GD2 for PHP, and frustrated because a search of “gd2” in yum turns up nothing… That’s because it’s called php-gd, not php-gd2.)

Installation, Lazy

I’m going to use the default Apache and PHP that come from the CentOS repositories (until I get irritated enough with how old they are…).

So I just did an install of php-pecl-memcache and let yum fetch the “dependencies,” which, in this case, included Apache and PHP. O:-)

In other news, I’m slightly confused about why memcache isn’t a package I can install, but the libraries for it are?

Windows Login, Verbose Mode

I made a bunch of changes all at once, and suddenly my system froze when I tried to log in, just saying “Loading your personal settings…”

For a long time, I’ve wanted Windows to show me exactly what it was doing, since “Loading your personal settings…” means nothing. Is it choking on a config file? Trying to reconnect to the network share that doesn’t exist anymore? Is my new anti-virus software conflicting with the old?

I’m still not entirely satisfied, but it turns out that Windows does support extended messages in the login dialog: in HKEY_LOCAL_MACHINE / Software / Microsoft / Windows / CurrentVersion / Polices / system, create a DWORD called “verbosestatus” and set it to 1. (And, per some of the online guides, make sure you don’t have a “DisableStatusMessages” key, or at least make sure it’s set to 0.)

Now, instead of getting “Loading your personal settings…” I can see exactly what file it’s loading. Although to be honest, that wasn’t at all helpful in this case, but this is a setting I’m going to leave on.

As an aside, don’t ever run two anti-virus programs at once. I’m pretty sure that’s the program. Safe Mode doesn’t let you remove software (stupid! stupid! That’s why I needed to get into Safe Mode), but I remembered the old msconfig (Start -> Run -> “msconfig”), where I was able to be judicious in disabling both anti-virus applications, along with some other services that I really don’t need running in the background anyway. And now it works like a charm.

Central NH Photos

I joined my family today in central/Northern New Hampshire. It was opening day at Clark’s Trading Post, a favorite of my brother. My brother encouraged me to go with them, and the forecast called for a decent day, so I figured I’d tag along. The area’s always been quite photogenic, and I figured it’d be a good chance to continue my exploration into HDR.

Climax Locomotive

That’s the train at Clark’s. This is what I like to think of as a halfway-decent HDR shot: a close inspection will reveal some technical flaws, but it’s normally a difficult subject to shoot well. It’s largely a black train, glossy in parts, matte in others, but it also has shiny metal highlights, plus the sky. This isn’t to say that it can’t be photographed, just that the results are ordinarily less than stunning. What I like about this shot is that your first thought isn’t, “What type of surrealist artwork is this?!” As seems to be typical of my shots, the sky looks kind of wonky, but overall, I’m happy with the shot.

Clark's

There’s an example of the type of stuff I’m still on the fence about. It’s just kind of jarring in a way, as the colors, while “correct” in a sense, are unnatural. Rather than correcting for the fact that the camera can’t capture the whole scene the same way the human eye might, it goes further and does something even our eyes can’t. It’s a little surreal, but the style is growing on me. (Trivia: look closely and see how many things you can spot wrong. When stitching together multiple photos in which people are moving, things are bound to not quite match up right. They’re fairly subtle in this photo.)

Clark's

There’s another building, again showing the more “legitimate” aspects of HDR photography in my mind. (Besides the ghostly half-man.) This would ordinarily be a lighting disaster. The building was receiving what was almost direct sunlight, while a dark shadow existed. And the sky was somewhere in between. In this case, I think the blended exposures work perfectly. The same goes true for this shot:

Tuttle House

I didn’t know how it’d turn out at first… It looks like a simple shot, but it wasn’t! My typical method is to set my camera up for auto-bracketing, taking three shots in a row, one properly exposed, one too dark, and one too bright, thus increasing the odds that there’s a good shot in there somewhere. Often the main one looks good, but I know that some of the details from the others will boost it when converting to HDR. In this case, though, none of the three worked. If the bottles looked good, the wooden headstones were washed out. If the wall looked good, the grass was far too bright. I had a nicely-bracketed set of three bad photos. Fortunately, Photomatix worked it magic and produced a good shot.

We eventually tired of Clark’s and went exploring the area. Lost River was nearby… I pondered what lens to take, since it wasn’t practical to carry all of them, and made the right choice to bring my wide-angle 18-50mm lens. And here I realized that shooting for HDR, much like switching to using two computer monitors, starting to carry a cell phone, or buying high-thread-count sheets, is a habit that rapidly becomes very hard to break. I’d take a “normal” shot, but realize that parts were under- or over-exposed, so I’d retake the shot as a bracketed set of three, and spent some time in the car ride back home on my laptop merging them.

Trees & Stuff

This is at the Lost River section; hardly the best shot, but a quick-and-dirty example of an ‘acceptable’ use of HDR. The trees are well-lit, and so is the sky. Difficult to pull off with one exposure, but a piece of cake with three and HDR!

As we went along, I noticed various parts of running water. (I thought this was a lost river… Pretty easy to find.) I’d never actually taken the stereotypical long-exposure moving-water shot, so this served as a good opportunity. I set the camera to ISO 100 (pretty insensitive to light, very low noise, but meaning slower shutter speeds), and stopped the lens down to f/22, which gave me about a one-second shutter speed. I set the camera down on a railing and pressed the shutter. Viola!

But I was curious… How would my newfound obsession with HDR play into this? Could you “bracket” that type of shot, and merge them with any success?

Waterfall

I actually didn’t expect this to work, but it ended up being one of my favorite shots from the day. The shots were something like 1/3 second, 1 second, and 2 seconds, so I expected that the water / person would have moved too much. As luck would have it, they didn’t, and the result was that shot. (A nice side-effect is that I rarely remember to stop the lens down for landscapes, but I necessarily did here… At f/22, everything, in theory, is in focus. Although if you look closely, you’ll notice that some of the photo is kind of soft where things got matched up slightly off-kilter.

We then went to the Indian Head Resort, where, in a welcome break from $15 admission tickets, we paid 50 cents to climb the tower. (In hindsight, they should have paid me to climb that thing!)

Indian Head Tower

Doesn’t it look big and scary? Nevermind that I used a wide-angle lens feet away from the base to distort the perspective, nor that I made it an HDR exposure to boost the ominous dark clouds that really weren’t that ominous or dark.

Indian Head Rock

That’s the Indian Head. For those easily confused like me, the Indian Head, and the Old Man of the Mountain are two separate things. I initially remarked, “It kind of still looks like a face,” before realizing that it was the Old Man that came tumbling down, not the Indian Head.

This was yet another one of those shots that was pretty tricky. I pulled out a polarizing filter for this one to try to boost contrast and get the sky to not look so gloomy; you wouldn’t know from the picture, but it helped. You also wouldn’t know from the picture, but this, too, is an HDR shot.

Facing the other way, I decided to take a series of shots holding the camera vertical, intended to be stitched together into a panorama. Since I have under 500MB free on my hard drive (?!) and since I couldn’t find PanoTools or any of its ilk, I ended up trying Windows Live Photo Gallery, which I installed at Mr. T’s suggestion but never got around to using much. (I also brought the image into Photoshop, where I cropped it and tweaked it.)

I’d like to give it good reviews, as it was very easy and quite intuitive. The problem is that I’m fairly certain this isn’t actually how things looked. The pond looks right, but I’m fairly certain that there were more ‘humps’ off to the left. I’m really not sure what happened, but the end result looks good, so I’m happy.

HDR

I’ve posted before about High-Dynamic Range photography, with, err, lackluster photos to demonstrate the concept. I’ve been trying my hand with Photomatix, which has given be slightly better results:

HDR Front Yard

It’s worth noting that those were dark, ominous clouds. I shot this with auto bracketing on in my camera, meaning it took one “normal” shot, one overexposed +2 EV, and one underexposed -2 EV. And then, in very simple terms, Photomatix ‘merges’ them into one shot, taking the ‘best’ parts of each.

The State of Linux

I don’t really remember precisely when I started using Linux, but I do distinctly remember December 31, 1999, around 11:55pm, sitting in front of my computer and seeing what would happen. (Absolutely nothing out of the ordinary.) I was in KDE at the time, back when they had a HUGE digital clock that looked like crap even then.

I remember when USB thumb drives came into vogue, and I tried using mine in Linux. They worked! I just had to pull up a shell window, su to root, mkdir /mnt/usb, and then mount it there. And one day I forgot to umount before unplugging it, causing a kernel panic. Windows, meanwhile, let you plug the thumb drive in and seamlessly mapped it to a new drive. When you pulled it out, it unmounted the drive for you. (Although it still occasionally gripes at me with “Delayed Write Failed” even after I’ve closed everything using it and let it sit for quite some time. But I digress.)

Today, without thinking, I decided to plug my Logitech G15 into my Linux machine, running Ubuntu’s Hardy Heron release. It worked, but that’s not saying much: any old OS can see a USB keyboard. But what took me by surprise was what happened next. Without thinking, I used the volume wheel on it to turn down my music. It worked! On a whim, I hit the “Previous Track” button, and Rhythmbox started playing the previous song. I had to install drivers for this in Windows, but not in Linux. How’s that for a role reversal?

Of course, this isn’t a “Linux is superior.” There are still some flaws on my system that drive me crazy (why do my graphics drivers keep suspend/hibernate from working?!), but I can say that about Windows too. The point is that Linux used to be laughably far behind Windows in terms of things “just working.” And now I occasionally find myself wishing Windows were as easy to use as Linux in some regards. This is impressive progress!

AIM

I frankly don’t use AIM that much these days, but will often sign on and think, “Wow, lots of people are on tonight!” or, “Wow, almost no one is on tonight!” So I just wanted to list my thought process after noticing this:

  1. I’d be interested in seeing a graph of my “buddies” online over time.
  2. It wouldn’t be too hard to write a little script to sit on AIM 24/7 and watch this.
  3. If I was doing that, I might as well log each time someone signed on and off, which would let me answer those, “I wonder if x has been online in at all lately?” questions.
  4. As long as I have a stalker bot going, it’d be even more interesting to grab their away message text and buddy profile.
  5. And as long as I’m doing that, I might as well add support for using diff to show changes in the above between any two points in time.

Is there anything that can’t be graphed? Or made into a shell script?

CraigsList

I’ve always been a little creeped out by some of the stuff on Craigslist. There’s pretty obvious prostitution and drugs going on, in addition to people seeking affairs. And if you read through the “personals” section (which is pretty entertaining), watch out for ones with pictures… Something they’re, uhh, graphic.

So I went through about 20 recent postings, merged them into a textfile, and used my old Markov chain code to “learn” the text and then spit out text based on it… Some of the stuff on Craigslist is so bizarre that it’s hard to tell what’s nonsense the script spits out, and what’s real. (I’ve omitted anything wildly obscene.)

I love to read, movies, anything to do my hair today medium length i need a new look today im off from work hit me up I have a personality that is a cheater because whats is the beginning of something possibly beautiful and long term.

I love to have a great day! A little about me…I am very mature. I am a very comfortable passenger seat. I may or may not have a degree

Good stimulating companionship and conversation is the point of being with someone if your going to cheat on them. I’m new to this online service and hoping to make new friends.Hope it works…

I love to read, movies, anything to do my hair today medium length i need a new look today im off from work hit me up

I have a personality that is a cheater because whats is the beginning of something possibly beautiful and long term.

If you are Interested to have a big black cruiser with a good place for drinks dancing live music with a rumble between her legs, for occasional rides. Feel the rumble as we hit the open road…wrap your arms around me, and press in close.

meet you, after some phone conversations, in public places only unless of course it is business related or anohter type of function, in which case I would meet you, after some phone conversations, in public places only unless of course it is business related or anohter type of function, in which case I would meet you, after some phone conversations, in public places only unless of course it is business related or anohter type of

normal and fun people, between 30-40 years of age, who are looking to meet some new people to hang out today and maybee 420 a bit. I love being out in the rewards you crave. Where you do not. Once a week, I will visit you. We will go over the goals you set yourself and your mobile number and let’s start texting!

I’m looking for someone to be a hypocrite.

Anyone know of a good place for drinks dancing live music with a lot of chrome, and a very open, spontaneous, and down to earth person.

I’m not looking for a coffee and a very comfortable passenger seat. I may or may not have a great companion. My friends think Im mischievious and I hate writing, so that’s it for me.

I have all camping gears. I am burned out of shape so don’t be shy, just be sensual.

Interested in normal and fun people, between 30-40 years of age, who are looking to make new text message with on a regular basis…what are we going to cheat on them.

I’m looking for someone to play with soon, because the weather is getting to be a marathoner!!!

I’ve heard about Cuddle Parties on the back of a good bar to watch the Celtics where they actually put the sound on the radio and internet but there are none

I’m certainly not someone who puts a twinkle in my stomache

hey im a leo male looking for possible another mom who is self motivated

I am open to a totally awesome 2-year-old boy. My problem is that I am looking to spend some time with an older 30-50.

so please be mature and not very interested in going out at night.

I consider diversity to be really nice !

If you’re not interested in talking through emails because, honestly, I can respond to anyone with a picutre

Good stimulating companionship and conversation is the point of being a hard worker. It’s simply that you have one? Reply now for flirty fun on the TV.

I have always tried to be on the radio and internet but there are none in the Boston area.

I am thankful for every day that I feel like I have no friends!!

this poing in my eyes and butterflies in my eyes and butterflies in my stomache

Please be a real person, please be open-minded and if you would like to get to know me, please just hit a back button, don’t reply.

Anyone know of a good listener and would love to go out and paint the town with.

I look forward to talking to a loser

I work 2 jobs and do not allow myself to be really nice !

my friends are married, and not very interested in talking to a totally awesome 2-year-old boy.

I can occasionally get a sitter but sometimes those are hard to come by so I need a new look today im off from work hit me up I have problems in life.

I am open to speaking to people of all races.

Quick clarification, since I was horrified at first… “Black cruiser” is a guy referring to his motorcycle; he was looking for other motorcycle enthusiasts. As was the “rumble” bit. It just happens to come up in the most inappropriate places. Also, the “2-year-old” thing comes from someone discussing that they have a child.

ssh Brute-force Attempts

I used to get a couple hosts bounced a week… They’d try to brute-force username/password combos over ssh and DenyHosts would ban their IP after 5 failed logins.

For a couple days last week, I probably had about 50 in a 24-hour period, and then they went away as quickly as they started.

Today… Well, today is insane. As this site confirms, GMail limits a “conversation” to 61 conversations. So as this screenshot shows…

Failed ssh logins

A Little Irony?

This falls into the category of things very few people would notice, but….

Microsoft provides time.windows.com, a public NTP server, operating in stratum 2.

I just came across NTPmonitor, a novel Windows app to monitor a handful of NTP servers. (Sadly, it doesn’t offer the option to sync to any of them, probably because most peoples’ computers let them configure it… Mine syncs to a domain controller which seems to want to give me the time, but not with too much accuracy.)

As with most full-featured NTP clients, it shows you what the remote timeserver reports as its reference clock. I’ve got my server in there, ttwagner.com, showing that it’s currently synced to clock.xmission.com. The “pool” server is pool.ntp.org; whichever of the many machines I connected to is synced to rubidium.broad.mit.edu. On the right we have time.nist.gov, synced to “ACTS,” a NIST protocol.

On the left is time.windows.com, the Microsoft NTP server. Its upstream timeserver?

clock3.redhat.com.

Screenshot attached, since I wouldn’t believe it without one.

time.windows.com gets its time from clock3.redhat.com