Getting Geeky

This past week or so I was busy getting seriously geeky.

First, there’s the background. There’s a push among the foreigners in my city of Ulsan to have some city services, particular emergency services, cater to the foreigners. Without going into too much detail, Korea imports thousands of teachers like me – people with university degrees and speak English. They do not require us to speak Korean. However, the society here is, despite the enormous effort to teach English, surprisingly unable to communicate in English.  A recent rape of a teacher here has prompted a lot of the foreigners to wonder how they’d deal with an emergency. Koreans can call 119 (Fire) or 112 (police) but unless you speak Korean it won’t do much good for a foreigner to call – all you’ll get is frustrated.

So, as part of my role of city reporter and techno-geek for my other website, UlsanOnline.Com, I had to get into some serious programming. I’ve dabbled in stuff since we started the site, particularly in the menus, and layout. But this time I had to bring out the big guns. None of my cohorts on this site are technical. In fact, few foreigners here are. None are technical to my level – no brag, just fact – I have a degree in computer science. So, I have to strut my stuff here and at least let you, Dear Readers, get a taste of my technical prowess.nerd

First was to create a survey. We hope to use the survey as data that the foreigners are ill-served in Ulsan. The local police are aware and on board, provided we can prove there’s a need. The survey itself, can be found here.

(Unless you live or lived in Ulsan DON”T CLICK THE SUBMIT BUTTON!!!! )

It’s pretty. Sure. It’s just some forms that are easily created in HTML. No big deal. But I put in javascript code to validate the data – each field must be filled out, numbers in some, not in others. If you said other, then expect some text, etc., If you want to see the gyrations I went through, go to the survey and then on your browser click on “View” and click on “Page Source” and you’ll get the actual code I wrote to create that survey and validate the data.

But wait – there’s more. To get the 10 Ginsu knives, I had to save the data from all those submit button clicks. That means a database. We were out of databases on ulsanonline.com and would need to upgrade (that means pay $) to get more. But on this server, martypants.us, on which you are reading now, I have scads of database headroom available.  So I created a new database here javascript_logoand wrote the code to move data from the submit button click on the ulsan computer to this computer. Then I had to write code on this machine to stuff the answers from that survey into a database.   My Ginsu knife code cuts the survey into bite size pieces and puts them into tiny slots, each in their respective places.

But wait, there’s more! To get the handy tomato slicer, I had to write code to get the data back out. That’s another page that pulls the data out in tabular form so one can make charts, graphs, understand trends, etc., – essentially slice and dice the data like the handy tomato slicer.   phpThat page actually lives on this server, as does the database.  To get a peek at the data, still in its early days of foreigners completing the survey, click this link.

In summary, I wrote HTML/CSS code to do layout and pretty work. I used Javascript code to validate it. I used PHP code to cross transfer the data and stuff the database. I used SQL code to create the database and accept the data into a mysql-logodatabase. Then I used PHP, SQL  and HTML again to pull the data back out for viewing.

And if anyone actually understands any of this, then you, too, get the 10 Ginsu knives.

And that, has been the extent of my week in Korea.

Happy Thanksgiving to everyone back home!

Off we go, into the wild, blue yonder

A friend of mine, Jared, organized a day trip for a bunch of us to go on this past weekend. I’d seen people do it before and had wanted to try it. Jared, the consummate wheeler-dealer and chief herder put this little paragliding trip together. I hope you enjoy the video.

[kaltura-widget wid=”kc2ktqcegg” width=”400″ height=”365″ addpermission=”0″ editpermission=”3″ /]

We went from Ulsan to Miryang, not very far as the crow flies, but a couple of mountain ranges west of us. We spent just under 2 hours driving to get there and  then another 4 hours prepping for and taking our turns. There were 15 of us foreigners and 5 pilots. So we went in groups of five.  There were a lot of other people there, too. This spot was one of only dozens of paragliding places in Korea. Lots of god wind and mountains.

It was awesome to watch the take-offs, which I thought would be much more hair-raising, but were actually quite gentle.  Mine was uneventful, but I didn’t fit my big ass in the seat too well.  I bet its a lot better going alone than going tandem with a pilot behind.

SaTang had a great time. I considered leaving her at home, but she’d have been locked up for almost 10 hours. Besides, she’s a lovable dog and almost everyone was happy with her there. Lots of the foreigners left their pets behind in their home countries so welcomed a friendly dog around. She barked everytime someone took off or flew overhead but otherwise stayed out of the way. When it was my turn to fly, she got a little concerned and didn’t want to be left behind. I had to have Nina, one of our group, hold her for my takeoff.

Of the group that went,  the nationalities represented was truly global. There were Canadians, Britons, Australians, New Zealanders, a South African, Koreans, an adopted Korean who was raised as an American and me.

Class Dismissed

OK, SaTang finally got some lessons in animal attraction.  After several days of frustrating her suitor, she finally succumbed to his wiles.

PB180003

She doesn’t look terribly happy about it, either. Neither was I – she got hooked up just as I was taking her out for the last time before I went to work. I had to wait for things to, shall we say, deflate, before she could extricate herself and I could go to work. Meanwhile, there was lots of wailing and gnashing of teeth. And some of my students in the later classes wandered by and asked why the two dogs were standing butt-to-butt for so long. Try explaining that in Korean.

We’ll see if all their efforts will bear fruit. It’ll be about 5 weeks before even a vet can detect a dog pregnancy, and only 9 weeks to whelp.  If all goes well, we’ll have a littler of pups sometimes in mid to late January 2010.

Basic Training Required

Where’s a dog supposed to learn thus stuff?

The past couple of times she’s been in heat, I never allowed her to, shall we say, consummate the deal?  There we’re a couple of dogs around, but they had already been cleaved of their  ability to breed. Instinct runs deep and despite their willingness and apparent know-how, their um…fortitude was lacking. So, I let them “play” for a bit and then we’d go inside.

Now that we’re ready for her to make a family, I’m willing to let her mate with a male dog. Two weeks in and we’re not having much luck. The one dog that remains able to do more than fog his figurative glasses seems a little old.  He can’t quite make the connection. SaTang for all her wanton lust just isn’t comfortable with penetration and so jumps away just at the crucial moment. The male dog, frustrated at playing coitus interruptus is unable to do more and simply stands by, panting heavily. SaTang, still playful and wants  more and is willing to take matters into her own hands.  She just doesn’t understand how to make things work.

Photo091116_000

After several more attempts at trying to force the issue, she gives up. He’s spent. She looks like she’s looking for her next victim.

CAUTION – Don’t Look too close.

Photo091116_001

Martin, you want married?

No, not me, I am married already.  I just want my dog to have babies.

But saying all that in Korean well enough for the vet to understand is difficult. SaTang is almost 3 years old and we haven’t fixed her yet. We have a number of friends who like the dog and would want a pup should she have a litter.  I’d like to keep one, too, but MyeongHee isn’t so sure.  Let her play with a few cute little puppies and she’ll change her mind.

In the meanwhile, SaTang is in heat and it’s time to do the deed. A lot of the dogs around here are pocket dogs – constantly held and not allowed to run free in the park. The dogs that do roam the neighborhood are scruffy mutts that live on the nearby farms. They live on the wrong side of the tracks, according to MH.  So, I ventured to the vet to see if he knows of any un-neutered male dogs in the area.  That was not an easy conversation. I know some Korean, but asking for a date for my dog is not something I studied much on.

He checked SaTang’s privates and then popped the question, in English: “Martin, you want married?” I didn’t try to correct him. I just went with the flow.

MyeongHee thinks he’ll charge bug bucks for a hook-up with one of his other “patients.”  Sounds like a pimp deal to me. I’m not convinced he’d charge too much, but I’d expect a small fee. We’re supposed to call back in a day or two on what he’s found. We’ll see.

A Door for a room with no walls

Photo091104_001

I love the new door to the park that got installed last week.  It even has a lock on it to keep out the undesirables, whatever or whoever they might be. Two years ago, I wrote about this park and how just after they completed refurbishing it, the kids in the neighborhood did their level best to destroy it.  The door, I think, failed due to shitty workmanship. The metal hinges just broke. Cheap metal. Lots of other things have fallen victim to the ruthless destructiveness of Korean children, bored by a place that has little or nothing to offer in the way energetic, constructive behavior.  In the two years since I wrote that piece, I’ve watched the two picnic tables get slowly torn apart and are now discarded heaps of wood in an unused corner.  The benches have all lost their arm and back rests. and are nothing but flat boards resembling more cadavers than benches. The fence itself, which now has a bright shiny new door, is riddled with holes torn by children too lazy to walk to that single door. And so now, the door stands as a gleaming reminder of all that once was new while the four walls around it stand in ruin.

Photo091104_000
A man-size hole opposite the door - makes it convenient for those kids in Taekwondo class adjacent to the park to avoid the long trek to the door

Photo091104_002Photo091104_003

The goal areas have their own tears in the fence. Once started, there is little to stop the kids from enlarging them, making that long walk to the door unnecessary.

Photo091104_004The nets, having been replaced a few times, are shredded again. Kids continue to climb on them while parents sit idly by, refusing to chastise them.

When I was a kid, almost any adult would have chased us off had we been caught tearing up public property. Here, that doesn’t happen. They don’t want the precious little snowflakes to “lose face.”   There’s lots of things I like about Korea, but this isn’t one of them – that Confuscion tendency to save face and not embarrass others for their behavior.  They don’t need to worry about kids losing face – they need a piece of their asses trimmed off, though.

So now, we have a nice new door – for a room with virtually no walls.