Sunday, November 11, 2012

The Way It Has Been


The sun is high in the sky on a late autumn morning. The large bazaar is open down the street, and cars and trucks line the road in all directions. A man is calling out, 'Nuts! Walnuts!', and he stands patiently next to his handcart, loaded full of his walnuts.

The call of the muezzin echos through the neighborhoods, the tinny speakers carrying his sad song of joy into the homes of all around him. He sits in a mosque far away from where the speakers beckon the worshippers. He had sipped on some tea to moisten his throat before his song. His Koran was open and on the table in front of him, next to the telephone handset which served as a microphone and sent his voice into many mosques around the district. Though each mosque has their own muezzin to lead prayers, its less discordant to have a single voice heard for kilometers around, rather than the competing discordant sounds of calls. If one wishes to have discordant calls, one can go into the Old Town.

Before the song is even completed, old men begin to wander down to the little mosque, nestled between the apartment buildings here near the heart of the city. At this time of day, the old men are the only patrons of Allah, waiting between television programs and games of backgammon for their call to move and show their faith, the march of those who have no direction, no job, and stay close to home. Only the oldest men cover their head with skullcaps, but none of them are younger than 40 years of age.

Going the opposite direction are women. Some are old and bent nearly in half with age, some are young, many with daughters to help them, but all are walking to the bazaar and most all of them wear the scarf. Many have carts with them to carry back their treasures, which they hope will last through to the next bazaar. If a meal requires onions, and they have no onions, they will not cook that dish until the next bazaar allows them to restock their cupboards. This is the way it is.

There are modern grocers scattered about. Many of the small stores, what we would call mini-marts in the west, sell eggs, juice, fruit, and canned goods. For the modern Turk, one doesn't have to walk far to get the staples needed for a meal. Fresh loaves of bread, with hard crusts and soft crumb, is hanging in baskets and stacked neatly in display cases at every store. But the traditional women of the new city do not like to purchase their goods at a grocer - instead, they tighten their scarf and walk to the bazaar, where fresh goods are brought in from around the surrounding countryside to be sold, bargained for, and traded, as this is the preferred way to purchase food.

There are stacks of tomatos, onions, leafy greens in all shapes and sizes, and the long and mild peppers that the Turks love so much. There are large wodden boxes full of oranges of every shape and size, apples, pears, tangerines, cherries, grapes, and lemons, and even the occassional seller of strawberries. There are walnuts, almonds, pistachios, and peanuts. Roasted and fresh. Sweet, salty, or plain. In the shell, or not. 'Fresh tomatos! The freshest tomatos here! Good price!', you will here at every third stall.

There are people selling sheep, both alive and butchered, and the scent of rotting vegetables and the musk of animal is nearly overpowering. People are packed in, shoulder to shoulder, going here and there, haggling, arguing, laughing, and looking for the best price. No cost is fixed - everything is negotiable, but to get the best deal, you must ask around and listen for the sellers who are trying to offload quickly as you can drive their price even lower.

The bazaar is a three-floor open sided building, dark and oppressive from the outside, even in the midday sun. Once inside, the lighting is adequate to see that you are indeed purchasing an orange instead of a lemon.

There are sellers of leather goods, knock-off designer sunglasses, and the occassional candy and sweet sellers.

By the time one old woman finally reached the bazaar, her husband had already finished praying. After he stands from kneeling for prayers, he straightens his clothes and walks into the courtyard of the mosque. He puts his shoes on and calls out to a group of men. He walks up to kiss his friends and smoke a cigarette. They chat for a while about the latest soccer match, discuss politics, take turns lamenting their pain over the recent death of their friend. A few of them manage to break out some tears, and only one man is heartless enough to say 'He drank too much, he had turned his eyes from Allah.'

His funeral had been the previous day at this same mosque. His body had been prepared and wrapped in linens and put on display as verses from the Koran were read. His widow weeping loudly and crying out her pain and loss. He had no other family, or at least none of them showed up to mourne. This is also the 10th of November, the national day of mourning for the death of the Republic's hero, Ataturk.

After a respectful time of mourning and remembering their old friend, they then walk together to the local game house were the clinking sound of okey tiles and backgammon pieces can be heard drifting through the clouds of smoke and laughter, late into the night. He will rise again with many of his friend in a couple of hours time and walk again to the mosque, to kneel and worship as proscribed in the Koran. He may return home to eat the meal his wife has cooked for him, but he'll return to the game house afterwards to count away the hours until sleep will take him.

Saturday, November 10, 2012

Modern Web Programming in Perl

I created my first webpage back in the late 90's using some silly site generator. Not long after I generated the code, I had to make some changes and the HTML was absolutely AWFUL. I couldn't understand it and it looked nothing like the examples in the book I was reading! This spurred me to learn HTML.

A few years later I was getting proficient with perl and realized I could use CGI to generate HTML! Neat! I wrote some code and adapted a chatter bot I found and soon had a webpage where I could chat with my page, and I didn't have to maintain a bunch of HTML files. The code quickly became a nest of 'if this param or session variable, do this' and I lost interest in the project because it was so difficult to maintain.

I used CGI (and later, CGI::Application) for various projects over the years but have not had to do any web coding for a number of years now. I hadn't bothered to really learn anything new either.

My most recent employment experience had me working on a project that started as a simple perl script and quickly spiraled into a full-fledged back-office web-app. CGI and its family didn't take enough of the complexity out of the code and it quickly became a nightmare to change anything.

I've been using Mojolicious this past year as my stepping stone into modern MVC design. Its quite a nice framework. Dancer and Catalyst seem to be quite popular  but I liked Mojo because all the tools I needed were integrated. I've had problems with some CPAN modules not playing nicely, and I was attracted to the idea that all the web tools I'd need (session/cookie management, config usage, helpers and plugins, DB accessors) were all 'baked in'.

I'm working on a large-ish project now and have been using Mojolicious for it.

One of the quotes on their website says this:

Duct tape for the HTML5 web - Web development for humans, making hard things possible and everything fun.

Fun is a matter of perspective, but its a pleasure to work with, and I quite enjoy it. If you're a perl coder and are looking at Rails with envy, take a look at Mojolicious. It has everything you'd need to quickly get a true MVC app up and running with a minimal amount of effort. The documentation is quite good, ok, its not perfect, but the author and maintainers are quite responsive on the mailing list and there have been no features I couldn't understand or get working without reading through the docs.

Take a look, take it for a spin, its easy to write a 'lite' application and turn it into a full-fledged app. It runs under its own threaded app server (hypnotoad), or can be run with fast_cgi, behind nginx/apache, and is quite flexible. If you end up using it, I hope you enjoy it as much as I have.

Friday, November 2, 2012

The Source of Contentment

I'm reading 'My Name is Red' by Orhan Pamuk. This is the English translation, my Türkçe is nowhere near good enough to read the original. He won the Nobel Prize in Literature in 2006 for this book, justifiably so, it's a beautifully written historical mystery book, its inspiring and haunting with thickly layered themes and perspectives, and takes place in Istanbul in the same neighborhoods where I've spent a few weeks and its answering a question for me - 'What was this place like in the days of the Sultanate?' I've been to many of the locations that this book takes place in, and this is making the book so real in my mind that I feel as if I can hear the sounds of the street vendors hawking their wares.

If you haven't read this book I highly recommend it. 'My Name is Red' is one of the few books I've read recently that absolutely envelopes you with prose and imagery and transports you into a poetic world of the authors creation.

There is a parable being related by a master illustrator as they examine books of illustrations in the treasury of the Sultan's Palace - it made me laugh and stop and think about it for a long while. Below is the story which I have shamelessly typed up from the book - the master is relating this story to two others who are looking at an illustration with him:

"This is the work of Lütfi of Bukhara whose ill-temper and belligerence caused him to leave each of his illustrations half-finished; he fought with every shah and khan claiming that they understood nothing of painting, and he never remained in one city for long. This great master went from one shah's palace to another, from city to city, quarreling all the way, never able to find a ruler whose book was deserving of his talents, until he ended up in the workshop of an inconsequential chieftain who ruled over nothing but bare mountaintops. Claiming that 'the khan's dominions might be small, but he knows painting!', he spent the remaining twenty-five years of his life there. Whether he ever knew that this inconsequential lord was blind remains, even today, a subject of conjecture and source of humor."

Thursday, October 25, 2012

Kurban Bayram, the Festival of Sacrifice

Bayramınız mübarek olsun!


Muslims across the world today are celebrating Eid al-Adha, or the Festival of Sacrifice. In turkish it is called Kurban Bayramı. The blood and candy flow freely today, and the feeling in the air is one of excitement and joy. The religious meaning is a rememberance of the sacrifice Abraham made after Allah spared Ishmael due to their faith and devotion to his commandmens. Eid al-Adha on wikipedia

A small child who lives in this building knocked on the door an hour ago. He wanted to give me a traditional greeting that a child gives an elder. He took my hand and kissed it, and then held it to his forehead. I know I'm supposed to kiss him on the cheeks afterwards but he ran off very quickly! I believe I should have given him some money or candy, but it happened quickly and I was quite unprepared.

Today is the day when you can walk outside in a Muslim nation and see people bending over a tied-up lamb or ram and slicing its throat.

In Turkey, the municipalities set up public areas where people can gather to do this - its quite bloody when you slaughter an animal and halal requires specific steps, and this was done to try and isolate both the mess and tourists from each other. In years past, I was told it was common to see a sacrifice taking place on every corner, but today I've only seen a few families sacrificing on their porches or on the side of their apartment building. The open lots reserved for bayram are *packed* with people and animals.

Islamic law requires that the throat of the animal is cut, leaving the spine intact, and the blood is then drained. Death occurs quickly this way. After the blood is drained, the head of the animal is severed and is lined up towards qibla (mecca) while the butchering occurs.

There are people walking home with buckets of meat, and children seem to be quite excited - judging by the amount of Bayram candy I saw for sale, the children are most likely looking forward to this and the feasts that will occur this evening, as well as seeing cousins and friends and having some time off from school. Family and friends gather together to celebrate the sacrifice and there is a sense of excitement about the event.



As a foreigner, this is about as...foreign..as it gets for me. In the west we are incredibly sheltered from the food chain, and I doubt any one who doesn't live on a farm has ever seen an animal slaughtered. There is great respect for the animal, but as this is my first time seeing such things, its definitely making me feel very odd and a bit wrong. Perhaps its because the head seems to watch over its own butchering. I can now hear singing outside and the laughter of children.

Of course any discomfort I feel means I'm a bit of a hypocrite as I can smell the feast beginning to cook in the kitchen and I'm quite looking forward to some very tasty food.

Tuesday, October 23, 2012

Freedom to be a hypocrite



This is just a rant. This is only a rant. Had this been an actual essay I would include more cursing - but I don't care, I'm just letting off steam.


Someone today told me I was being offensive towards their beliefs and to stop it (a christian! a mormon!! on facebook!!!!!).


The 'freedom of speech' cuts both ways. You have the right to say what you want. That means people have the right to say they are offended and ask you to stop. Notice I never said that you 'have to do' anything, just that in America, people have the right to say what they will. Especially on Facebook - block me! Don't read it!


I insulted Mormonism on a friends Facebook post - the post itself was 'insulting' to Mormons only because of how accurate it is and this friend had a Mormon friend who took affront to my biting comment, but not at the picture... I'll include the picture below because its just so awful and true at the same time:






I was told I was being offensive and should stop, by a Mormon who likes Fox News and is a self-declared Conservative who likes Hannity. These are the class of people who were most offended by the offense Muslims took at the Mohammed insult videos. "Freedom of speech", they cried! "Don't watch it" they yelled!


If you want to accept your freedom to say what you want, then accept that other people will have it to, and will insult you for silly beliefs - I mean, this a religion which says in no uncertain terms that 'hot drinks are not for the body or belly' - and yet they all drink hot cocoa.


That's why this is only a fake rant, how can you really take anyone seriously that believes there is a planet on the other side of the sun that we can't see?


I don't care who is president. They are all ineffective and political at this point.

Friday, October 19, 2012

Brand Recognition

I am residing in Turkey, and was sitting and drinking a latte at my favorite coffeehouse near a popular tourist intersection. On my way to get the latte, I noticed a T-shirt with an American Flag and another with an Apple logo.

I decided to play a little game I call 'Count The Logos'. In about 30 minutes, I watched all the people walk by, an even mix of Turks and foreigners. If you're into marketing foreign brands in Turkey, especially American Brands, this blog post is for you.

Here is a list of the brands I recognized and the total count for those logos:

#1 - Adidas - 43 items of clothing, mostly shoes with a random shirt/sport trousers/bag thrown in.

The local boys at the coffee shop were enjoying this game and helping me spot logos. At the end I gave them the count and they said 'Adidas is popular because they are the cheapest'. I'm guessing they mean cheapest of the Big Brands as I see non-mainstream shoes or knock-offs that are incredibly cheap.

#2 - Nike - 42 items of clothing, mostly shoes with a few shirts here and there.

Interestingly enough, Nike and Adidas were nearly tied for the top place.

#3 - Converse - 28, all shoes except for two t-shirts

There may have been  more as I saw many 'Converse-like' shoes, but if I didn't see a logo, I didn't count them.

From here, the counts drop dramatically.

#4 - Reebok - 16
#5 - Puma - 7

The top five places are all Shoe/Sport manufacturers. Hmm...

#6 - Lacosste - 6

These were all shirts with the little crocodile head logo on them

Tied at # 7

The American Flag - 5
Levi's - 5
LC Waikiki - 5

I did see a flag with Mickey Mouse on it, so I counted the logo for each one, and at this point I consider the Stars and Stripes an American Logo. LC Waikiki is the only major turkish brand I recognized. There may have been many pairs of Levi's Jeans, but I only counted T-shirts with the logo on it as I couldn't really ensure the brand logo on jeans.

Tied at #10

McDonalds - 3
FILA - 3

McDonald's brand was on cups of ice cream. McDonalds Ice Cream is heavily marketed here and they have many different  types of sundaes and other things here that they don't have in the USA.

Tied at #12

Hollister - 2
New York - 2
California - 2
Mickey Mouse - 2
Minney Mouse - 2
Los Angeles - 2
Hello Kitty - 2

Now we're getting into non-clothing brands. The US cities and states (NY/NYC/LA/CA) are a brand, make no mistake, these are the most recognizable US places to every non-american.

The rest all had a single showing:

Hollywood
Miami Heat
Apple
Smurfs (Papa Smurf)
Pacifico
Sketcher
America (Just the word, no flag)
Polaris
Legend
US Navy
Heritage
Batman
Coca-Cola
Unlimited Eagles
'Girls Just Wanna Have Fun' lyrics
Loft
Replay
Miller (beer)
Native American Chief Headress
American Football (Mauraders??)
Scarface
Spiderman
Grand ol Opry
Pacific Area
'Rock and Roll never dies'
Reno
Gold Rush
No Fear
Ford
Super Mario
Jansport
Newport Beach
Las Vegas
New Balance
Popeye
Madonna
Ferrari

I'm probably biased towards the American  brands, but to be fair there were a LOT of American Brands.

Tuesday, August 28, 2012

New Laptop time! System76 Gazelle Pro..

I needed a new laptop and decided I wanted a system that was as guaranteed as possible to run out of the box with all hardware components working with zero configuration hassle.

I went with System76 and ordered their Gazelle Professional 15.6" laptop. Their website is simple, but intuitive, and configuration was a breeze. My requirements were simple:
 - It Just Works in Linux.
 - 16GB or more of RAM
 - Ordered with 2 drives
 - Core i7
 - 1080p
 - 15.6" or smaller
 - $1000, +\- 10%

Their RAM upgrade on their website was a bit pricey, so I opted for the minimum, a single 4GB DIMM and a matched pair of after market 2x8GB. Replacing the RAM was a snap, and I notice its a socketed and (for a laptop) easily replaceable CPU. I got 2x500GB Seagate 7200 RPM drives, with the nifty hybrid 4GB SSD on drive cache. Linux aggressively caches as much as it can in RAM, so the "on subsequent loads" for commonly used apps isn't as apparent, especially with the entire OS loaded on a RAID1. Hey, its a laptop, they are spindles, and I want redundancy over write speed. But reads are nice and quick.

I rebooted the OS a bunch of times, and by the sixth time the boot time had dropped from ~12 seconds down to ~7 seconds, so perhaps that was a good idea.

I also have a keyboard that doesn't have a Windows logo on the meta key!! Too bad its a sticker, and too bad its off center by a millimeter! But I don't look at it that often, but its still a bit annoying - just not annoying enough to send it back.



System76 themselves have been great - they open a support case with you that gives you the current information and status of your order - once the order has been processed, you then get a message when its being built, then a shipping number and S/N(s) of your product(s). Its a social-networking sort of support system, with avatars and such. It makes you feel like there is a real person handling your expensive new gear.

They ship with Ubuntu, but as I used Fedora for work and don't like the context switch of yum/apt and other stuff like that, I reinstalled and had zero problems with any devices. The laptop is very fast, and indeed, everything works Out Of The Box. HDMI with audio passthrough worked with zero configuration, other than having to enable the HDMI profile in KDE (a GUI only feat, nice!)

Blue tooth had a weird setting in the BIOS and was disabled, but once that was enabled it worked just fine. All the OSD animations for volume and brightness and such work great. Standby works as well, and all wireless devices seem to resume their sessions on wakeup.

Things I don't like:
 - limited accessories selection, lack of international power adapters, lack of 9 cell battery
 - off-center Ubuntu logo
 - The touchpad - Ok this is a a toss-up. It doesn't have any vertical physical presence indicators - its smooth and hard to know when you've reached the edge of the pad, but otherwise it works fine and I do like it visually.
 - Heat under the left palm - its not too awful, and I have a laptop chiller.
 - Lack of sensors (or lack of support in lmsensors) - haven't investigated too far, but I simply have CPU temperatures and no voltages/fans or anything else.
 - lack of choice for illuminated keyboard - I'd pay extra for this as well!
 - lack of choice for nvidia/ati discreet adaptors. I'm guessing this is either due to their suppliers lack of models, or the lack of good support for that switchable technology all the new chipsets use.

Hopefully the graphics situation will be remedied by the next time I purchase a laptop, I didn't want an Nvidia or ATI solution this time. An intel 4000 series graphics experience is enough for me. It played a 1080p movie beautifully and only showed some vertical slashing, and 99% of my time will be spent programming and office work, with movies and music sprinkled here and there.

But even these things negative aren't enough to stop me from really liking this laptop - its lightning fast, has a better display than even my last Macbook (early 2011), has no Windows Logo, has a support forums on the official Ubuntu Forums, is easily upgradeable and workable, and I'm supporting a company that doesn't seem to act like every other hardware vendor.

Monday, August 20, 2012

Cloud Management

I've been creating a cloud management and automation utility during the daylight hours the last couple of months. I'm using Mojolicious to manage the REST routes and UI, and some custom backend Perl apps and modules to manage the vcloud, spacewalk and other APIs.

I chose not to use any existing Vcloud perl modules as none of them were v1.5 compatible. I was seeing some slowness in the v1.0 compatibility calls, and I found that >50% of the API calls I wanted weren't coded up anyway and I was having to parse more XML than I wanted to with someone elses module that I didn't feel like modifying. VMWare, why did you stop making your SDKs for your new projects in perl? :(

I chose Mojolicious as the framework for the REST interface because the last time I did any web development in perl, CGI::Application was the tool of choice and I was automating system information gathering and IT-like functions, back in the early 00's. REST is all the rage these days and a long-polling API call with a 20 second wait in the browser without feedback just doesn't work anymore.

I looked at Dancer and Catalyst and both are similar in spirit, but Mojo just seemed more intuitive. I have a complete toolkit of everything webby that I need. I do wish some of the eccentricities were better documented, but they are easy enough to pick up, and many are just because I've never used a modern web framework before. I've had a couple of questions and the mailing list and bug tracking folk are friendly and quick to respond, another bonus.

I'm using various other tried-and-true CPAN modules for the Controller and Agent pieces, and MongoDB for the database. I had no choice in the cloud software or package management.

The REST framework authenticates a user and builds, loads, and configures apps, which consist of multiple machines running dozens of customized RPMs, each requiring dozens of steps to configure. Its a non trivial app, and the cloud management was the easy part.

Most modern Cloud Management Suites have similar designs for a reason:

- A Cloud, basically a virtual cluster with some sort of framework for creating/deleting/manipulating VMs and networks.
- A Package Manager - this could be "app libraries", or RPMs, or some other deployable code.
- A Controller, some sort of Master Planner that takes tasks and translates them into action. Some actions it will need to have might be:
    - queries the APIs at certain intervals to populate a DB
    - create vms with some network and some resources and put some pkg on them and configure with XML
    - reset and reload a vm
    - update a vm with the latest pkg
- A Database, something that can store the information about the various infrastructure and VM pieces.
- A Front end, where the end users can feed actions to the Controller
- An Agent, a Pub/Sub client commando which resides on your various VM/and maybe infrastructure pieces that collects running data and feeds back commands to the VM from the controller and logs its actions. (commands might be restart app, update app, etc)

To get off the ground quickly, I started with Mojolicious and built REST calls and used templates for GUI interaction and javascript for ajax fun to keep long page load times down on long polls to the various APIs. No database or agent, just straight queries against everything. This was a quick way to get everything off the ground quickly and define the process and I'm glad I did it this way. I'll followup with more posts on the rest of the design choices and its evolution from there.

Thursday, August 9, 2012

Why Doctor Who beats Back To The Future

If Doc Brown had gone back to 1885 and sent Marty a letter in 1955, and Mmarty had shown it to the young Doc Brown in 1955, then the old Doc Brown from 1985 that is living in 1885 would have remembered having sent Marty that letter and known that he got it, and if he had known that he got it, he could have then changed his choices so as to not be sitting in the stupid DeLorean when it got struck by lightning, or at least would have parked it, which would have allowed him to change the past and the present and the future at the same time.

As it is the doctor from 1885 is shocked that Marty shows up, when in reality he should remember Marty having received the letter in 1955 when Doc Brown was 30 years younger. He remembers to wear a silly bullet proof vest against the Libyans, why not that?

Of course, when the fuel line got hit they could have just siphoned the rest of the gas off the DeLorean that Doc Brown had shoved in a cave, and then he could have written a note that said "You'll need a new fuel line and some more gas, sorry". 

But if I'm going there, then a half-dozen intergrated circuits that look like microcontrollers *could not* be replaced by a dozen vacuum tubes and some weird wires.

Also, if they had left the almanac in 1955 and Biff got rich, then as soon as they zapped into the future they both would have ceased to exist. His girlfriend Jennifer had "the world shift around her and she woke up in the morning in normal 1985 as if nothing had happened". What???

See in Doctor Who's land he would have known he was going to send himself the letter and done it anyway and all these things would suddenly fall into place and they'd have to get the girlfriend and take her in the time machine back to the real timeline or she would probably be in serious timey-wimey trouble.

Yes, these are the things I think about when waiting for a computer thing to finish. 

Sunday, July 22, 2012

Statement on the intelligence of life on Earth

Everything on Earth that has a biochemical reaction process to reproduce has intelligence.


In order for a decision to occur, there must be things that prove the decision tree. What I mean is, for a sustained reaction to be sustained and self-replicating, like the reproduction of DNA, there must be a set of basic variables that determine the outcome of an event. That determination is the equation of intelligence for that specific thing.


There is intelligence in an ameoba. It does not sit. It moves towards what it senses as food. You could easily program this. If food here, eat food. If not, then If food is in direction X, go to X. else move random direction. if food supply high and processed food = high then reproduce... loop back to beginning regardless of whether you reproduce or not. 


Its quite simple. Each level of complexity in genetic life patterns tends to increase the level of intelligence displayed in a creature, and this tends to be exaggerated within the predator and omnivore category. I could not even begin to give you the decision matrix for a gnat, let alone a crow or a dog. The more complex the movements of the creature become, the more decisions have to be processed, and eventually you need higher level processors to aggregate that data into easier decisions, and eventually you get consciousness.


With that in mind, a tree is intelligent. A mold is intelligent. Anything that has a decision tree to make regarding its reproduction is an intelligent creature.


I think that we tend to confuse communication and brain storage capacity with intelligence. They are * degrees* of intelligence. I think once that subtlety is recognized widely our planet will actually be greener as people will think twice about what it means to be alive, but perhaps I'm just wishful thinking. 


Now, there may be intelligent life in the universe that does not reproduce, but I cannot see how this would be, unless its evolution was self-contained, meaning it changed itself over into more complex forms, but the problem with this theory is that if you hit a mutational "wall" or block so to speak, you didn't reproduce, of course, there may be other things that can over come that, but the idea that reproduction drives intelligence, which we call "self-preservation", is one that I cannot overcome.


if you take a random set of amoebas, there might be one that has a mutation that adds in a simple instruction like "if no food, follow another amoeba." that seems so simple...but it VASTLY increases its chances of finding a food supply, because if that other ameoba dies it can at least chew on its bones, not that it *knows* that but thats the reality of the machine of biochemical reactions. the amoeba that has a food supply wins. 


The Game of Life is a mathematical thing where you can play this game where there are simple rules, and patterns that are created with it. Its incredibly simple, but has a seriously large amount of diversity in the patterns it creates. This is a great example - a "requires two of our species" interaction and replication process - http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life








With this in mind, when it comes to classifying the potential for a given species to have intelligence, we can look at a few factors in determining this:

  1. The complexity of its body. The more complex and coordinated and fast its movements have to be, the more likely it is to have a faster and denser nervous system.
  2. The size of its body in relation to its complexity. Again, the larger a creature is, the more food it needs, and the more likely it is to be picked off by bigger predators than it.
  3. The density of neurons. This implies a larger decision matrix and more dedicated cells to these individual trees.
  4. The overall ratio of nervous tissue to body mass. Again, this will have more or less impact based on #3, as a denser and larger nervous system indicate the need for the life form to have more of its resources dedicated to body coordination and decision making.
  5. The pressures on the life form in terms of its reproduction and life cycle. This could be:
    1. Scarcity of food supply
    2. High level of predators
    3. Toxic environment
    4. Difficult reproduction conditions (few members of the opposite sex or specific chemical/environmental conditions required).
  6. The age of the life form. This by itself does not determine intelligence but it must be considered that for a creature to live an incredibly long time it must be well adapted, which means a highly refined decision matrix was created, its sustainability is very superior, and predators on this planet are everywhere. 
But then again, life gets lucky sometimes. These are just generalizations..but they make sense.


It makes me realize that any life that can be trained to make decisions outsides its instinctual decision matrix are conscious, or at least have the building blocks of it. You have to have a storage facility in order for this to occur, and this means that the decision matrix has evolved a set of conditions for making decisions based on things that may be outside what the decision matrix can handle.


In programming speak, that would be like allowing input to occur and creating a function out of it and storing it in memory for reference again later. I'm sure some type checking occurs. :) 

Friday, May 25, 2012

The Arrow of Time

A few years ago a close friend and co-worker died of cancer (lets call him J). For four years I watched J struggle and fight melanoma as it spread through his body. He was a very big man, active, and had led an interesting life.

His death made me re-evaluate quite a bit in my life. It was not because of his death itself - I've experienced that a few times at this point in my life. No, it was because of his life just prior to his death.

When he was not in the hospital nearly dying from chemotherapy or radiation, he was at work slumped over his desk, pale as a ghost, with the stink of death coming from him. He did this every day (and I'm guessing on the occassional weekend) from the day he was diagnosed until just a couple days before he died.

Oddly enough I had another co-worker (who was also a good friend of J's) die not long before J did, except it was lung cancer. He called in sick with pneumonia - he came back into work for a day, then two days later he was dead. He was an incredibly heavy smoker and, judging by the things he said and were said about him, he did not live a very clean life. His age was about 50. I was secretly hoping this would wake up J, but it didn't, in fact if anything he was in the office even more than his normal 60+ hour weeks.

How one dies does not matter in the end, its how we approach it that does. In that sense, we are all steadily walking each day closer to our death. That seems unnecessarily morbid but its been on my mind a lot recently.

J was a stubborn bastard who was given 6 months to live and managed to stretch it out to 4 years. At first I admired that he was strong and coming to work, but then I realized one day the man was rich by just about anyone's standards. He could have taken his wife and run off to just about any place in the world - but he chose to work.

In my mind he suddenly went from "trying to provide as much for his wife as possible before he dies" to "he's hiding from his wife's pain and he's hiding from the fact that he's going to die soon."

Now, if he had founded the company or had a personal pet project he was fostering to life, I almost would have understood, but he was working on a menial project and the end result of all his years of struggling as he was dying resulted in some nice pretty certification logos being printed on the side of a box, which was only sold for a year before being thrown away.

I guess we all want to feel like what we do is making a difference, and that no matter how trivial it is we'll feel like we've made a contribution.

There are no second chances to do things right and we typically only get one shot at making a choice. Time is a waterfall, slowly running off the edge of the universe, and its current is too powerful to even think about swimming upstream, its hard enough just to turn and look back sometimes. We're trapped on this life-raft and one day we'll fall off the edge.

After watching J be a bastard to his wife, inconvenience his co-workers, and make me pick up after him for years, I came to a serious conclusion. I kept expecting him to die every day at his desk, he was just that sick. And each day he came back - but who knows when our trip on this boat will end? Each day he surprised me, and when he finally died it came as a shock, even though I had been expecting it nearly every day for four years.

I determined at that time that I would never say this: "I need more time! I haven't written the things I wanted, seen the places I wanted to go, spent time with loved ones that I needed, and I haven't said the things I'm feeling to let the people in my life know how important they are."

Well, if I died tomorrow I might still say that but it would not be for lack of trying. I laugh, I cry, I do my best, and I let myself love. I'm not scared of feeling pain, and even though I live most of my life in pain I do my best to still allow myself to love and lose.

The arrow will pierce your heart one day and you'll go with it over the edge of the universe, hopefully you are living your life in such a way that you would have no regrets if the edge found you tomorrow.

Wednesday, May 23, 2012

Linear Progression

I only have a few days left in Turkey, and I plan on spending them exploring as much of the Antalya region as I can. I don't want to leave, but work beckons.

There was a point in my life where I would follow whims without thinking too heavily about my own long term needs or the consequences that would follow. Quite frankly if I was still that person, I wouldn't be leaving. I'd have an apartment and job lined up within a few days but my work in the states and my roommate would both be sending curses my way.

When we make choices for the wrong reasons the consequences may not even hit us - at first...but allowing oneself to follow hormonal or ego based decision making leads to a certain change in the logic flow in the brain and it becomes easier and easier to make the wrong choice. I've posted many blogs about "what is a right choice", and that is not an easy answer.

The right choice, whether I like it or not, no matter how much I'll fight it, is to go back and continue working and follow through on a current offer. This would give me time to learn Turkish, settle my affairs, and do things "right".

The 18 year old version of me inside of my head is kicking me in the forehead right now, repeatedly, and blasting me with various emotions in an attempt to be irresponsible. Its a good thing I welded shackles on his wrists a long time ago.

Today I'm off to see Termessos and Perge, its shaping up to be a beautiful day in Antalya!

Saturday, May 19, 2012

What I Like About Turkey #2

Turkey doesn't allow foreign cell phones on their networks without being registered, and since I can't find my carrier in town I opted to get a cheap pay-as-you-go phone from a local Major Carrier. (The excuse for why they don't allow them is "the government is scared of a big influx of stolen phones". Hah, its for tracking purposes, who cares about stolen phones?)

Anyway, I walk into this store and ask the girl if she speaks english. "A little." Enough to sell me a phone it appeared. After a few minutes of gestures and dialogue to explain what I wanted, she sat me down and started up the process. About 3 minutes in shes asks, "Would you like water? Tea?"

What?? I'm in a commercial chain store, think Verizon in the USA, kiosks of phones, angry customers yelling about lost minutes, and suddenly the employee gets up, walks into the back, and comes out with a nice glass of tea for me, complete with sugar cubes.

I sipped my tea as she completed the paperwork. The angry woman (with two children who were running rampant about the store) finally left, and the man that she had been talking to looked amazed and bewildered and was shaking his head. I shook my head and he said something that sounded incredulous, so I made a gesture towards where the kids had been trying to break things and shook my head again, then put a palm across my face. He had a good laugh, slapped me on the shoulder, then walked out.

I had finished my tea a bit later and she noticed this and asked, "Ok? Water? More tea?"

"tessekular, hayir"

"uh juice?"

"hayir, hayir, no no thank you very much."

It took about 30 minutes for me to get my phone. It was the cheapest one there, with low minutes, and I was given a seat and given tea and treated very politely and well. The girl I was working with even used an internet translator at one point to give me instructions, she tried so hard to use her own english but wanted to make sure I understood that if i didn't use the phone for 3 months, the minutes would reset.

Cordial warmth, inviting and friendly people, and decent glass of tea. At a cell phone store.

Friday, May 18, 2012

What I like about Turkey

I've been asked a few times recently (by turks) Why do you want to move here? I think everyone wants to get away from their home. The grass is always greener.

My first answer is always THE FOOD - fantastic, tasty mediterranean fare, mixed with ottoman dishes and interesting spices. I've had to pick at random a few times, and I've never had something that wasn't mouth-watering and absolutely delicious. Ok, I ordered liver one time, and I'll admit, it wasn't as vile as the liver I've had in the states, but I'd still rather eat ANYTHING ELSE.

But that answer is too easy. There are plenty of countries and cultures that have delicious foods.

My second answer is THE GIRLS - I really like the look of Turkish Women. That's superficial, perhaps, but how many random strangers do you talk to every day? Now, think about how many you look at. Wouldn't you rather be surrounded by people who you *like* looking at?

Again, thats too easy. There are plenty of places, even in the states, where I could find an 'easy-on-the-eyes' location, though to be fair they typically show a lot of skin, and most times I'd rather just not see skin in public. Sexy is not in the skin - and if you don't agree, you've probably never met a persian girl.

Today at lunch we ordered in for lunch, a traditional food place, tiny, with 3 tables inside and a few family members running the place. Nothing fancy, just good home-cooked food. I'm used to paper or plastic or aluminim throw-away packaging, but these folk brought over plates and bowls and forks and spoons. No deposit, no counting of how many things were left, just trust.

I mentioned this to M and she said "Well, they are across the street from the office and they know us well now, we eat there all the time."

Even in the states that wouldn't happen so I asked "What if they didn't know you? Would they give you the dishes still?" She said "Yes, they would."

The friendliness and focus on business through relationships and not profit/loss margins is an example of the sort of cultural personality difference that I like here. People matter - they can barely stay open, and they know the people around them really like their food, and no one wants to steal their plates, and no one is going to throw the plates away, so it works well.

Can you imagine opening a restaurant in a major US city and using real dishes and utensils for take away or delivery and expecting to not lose half your stock of them every week?

Frist poist!!11!

I've decided to let my writing free again. I figure I'm going to overwhelm people (sorry C!) or have an aneurysm from not letting this out, so once more my words will be naked for the world to see.