JavaScript Binary Search Tree

A binary search tree is a type of binary tree where the data in a node's left subtree is less than the node and the data in a node's right subtree is greater than (or equal to) the node, and the subtrees are also binary search trees. A binary search tree is a data structure upon which algorithms can be run. If a binary tree search was run, using a balanced binary search tree of course, the performance would be at most O(log n) since as you can see the pool of possible results is cut in half with each step (The tree must be balanced, my example does not properly balance when it adds. See: AVL tree or red-black tree).

Custom JavaScript Object Example

I was talking about JavaScript objects with someone at work today and I wanted a simple example to look at, but I couldn't find one quickly. So, I decided to write up a quick example and post it here for future reference. I'm also posting some links to helpful information on the web.

jQuery Extension for Parsing URL Variables

This is an extension that I have been using to parse URL search strings and hash codes. I thought that I would share it with the world, and if the world has a better method I hope that someone shares it with me.

Using Classification with SmartForms

Sometimes it is nice to make a SmartForm more dynamic, especially since they can be a pain to maintain for complicated labels. In cases like this my colleagues in Germany have developed this method to apply SAP classification to SmartForms.

The first step is to create the desired characteristics. Follow these steps for each characteristic that is required.
  • CT04 "Characteristics Management"
  • Create a new characteristic (ZLE_MYLABEL_FIELD1)
  • Basic Data: Data Type (Character Format), No. of chars (1)
  • Descriptions: EN (My field), DE (Meine feld)
  • Values: Char Value (1, 2, 3, …) Description (This is my field) 
  • Restrictions: Class type ZLW
  • Save
Continued after the break...

Early Russia in 1,500 Words

The establishment of Rus was a complicated affair, whose exact origins are still not entirely clear. According to the “Primary Chronicle” a Varangian, or Scandinavian Viking, name Rurik established Novgorod at the behest of the indigenous Slavs who could not rule themselves. Rurik’s successor, Oleg, took control of portions of the Dnieper River and eventually moved the capitol to Kiev in 882 CE. Oleg unified numerous Slavic tribes, and is considered to be the first ruler of Kievan Rus.

The Westernization of Turkey

Modern day Turkey is located in an area that was the heart of the Ottoman Empire; one of the largest Islamic empires in history. Yet today, Turkey is one of the most western style Islamic nations, and is even a candidate for entrance into the European Union. Though it's history is relatively short, the series of events that led up to the Republic of Turkey's westernized state is quite complicated. Through that history, Turkey has been able to balance the demands of maintaining a republic with Islamic traditions.

It would seem as if modern situations in the Middle East mirror aspects of Turkey's history. And, these recent events in world history may tempt Americans to believe that this transformation must have been induced by some sort of allied nation-building efforts after the world wars.1 Though the United States' history influenced the transformation, it was then promulgated by the Turks.

SAP KS13 Tip

There are times when I need to export cost center (work center) information from SAP, and to do so I use transaction KS13 (Display Cost Centers). I have made a selection variant to make the process easier for myself. Once the results are displayed it is easy to click the spreadsheet button and then download the data into Excel.

Domain Restricted Social Networking

Recently the company I work for decided to block LinkedIn, a business-oriented social networking website that has been available for a while now. Presumably they did this in response to the new add-in for Microsoft Outlook that allows for integration with LinkedIn. After questioning the Internet blocking policies with the gatekeepers in Germany a few times, I have given up on trying to understand them. The usual response is that it must be blocked for a reason, though no one knows who makes those decisions or why. Our policies sometimes appear to be based upon avoidance of new technologies rather than exploitation of them.