Snakes, Bears and the Unknown

Over the past year it was one of my goals to learn a legitimate programming language. During my freshmen year of college I had taken elementary MATLAB, C, and had briefly opened the VBA editor in Excel, so while at one point I was well versed in the basics, I had quite a bit of catching up to do if I wanted to deploy something complex into my workflow. To start, I needed to pick a language.

I eventually settled on Python. There were a few reasons for this.

  1. Abundance of Education
    1. Codecademy.com is where I learned the basics, with the capstone being file I/O. This is extremely important in a data analysis environment because nearly all of my data is in a tabular format.
    2. The documentation if fantastic and usually provides clear, concise examples
  2. Simple Syntax
    1. I was familiar with static typing from my C days, so trying something dynamically typed interested me in two distinct ways
      1. Developer time doesn't need to be spent typing variables.
      2. More tolerant of mistakes a person new to production of code would make (e.g. integer division).
  3. Speed
    1. I had previously written a lot of my workflow in VBA. If one has ~50,000 lines of data in Excel, that is pushing the limit. Anything beyond 70,000 is too slow (and often a memory hog anyways). 100,000 lines is just plain impossible without a time machine. I needed something faster.
    2. Cython. I haven't delved into this, but the ability get my feet wet in a dynamically typed environment (Python) with the option for massive speed gains should I statically type variables (Cython) intrigued me.
  4. Libraries
    1. Pandas is magical for large data wrangling.
    2. NumPy, which Pandas is built on provides some very nice data structures
      1. Unfortunately, there aren't as many statistical functions as my investigations into the R language leads me to believe, but the list seems to be growing.
    3. I'd like to dig into Django at some point. Having all the data in the world is nice, but it needs to be presented in an easily accessible form.
    4. IPython, while not a library, is certainly a nifty editor/console. It makes rapid development and export quick and easy.
    5. Also not a library, but the Anaconda distribution of Python is a wonderful wrapper of many of the useful libraries. It makes it possible to grab everything you might be interested at once.
python_3_logo.png

With those reasons in mind, Ruby fits many of the criteria, but not all. Similarly, Ruby has attributes Python may not offer as well. For my purposes it seemed that the Python ecosystem fit better.

One of my first major issues was learning that Python is very pointer intensive. I was struggling to understand why some portions of code I had written kept failing. Dictionaries (Python's implementation of a hash table) nested in lists were seemingly untouched despite having their contents modified within a loop. I then discovered that I needed to use the "copy.deepcopy()" function. This is one of the downsides of an interpreted language. Much of the "plumbing" is kept under the floor, which has pros and cons. Such an event wouldn't have happened in C without my explicit permission.

After resolving the deepcopy issue and re-coding some of my VBA (which I had learned on the job) work in Python, massive speed gains were found (~1000x), which surprised me quite a bit. Multiprocessing, which I've used on other projects would improve this even further. Needless to say, I was hooked and barely delve into VBA unless I must. The ability to use a text editor of my choice is also quite huge. The VBA editor is a bit... clunky.

Pandas_Logo.png

Pandas has also been a boon to productivity. The DataFrame is an incredible object. It truly is a light-speed stand-in for my trusty Excel spreadsheet. I'm working my way through Wes McKinney's "Python for Data Analysis" which elaborates on much of the online documentation for Pandas, which naturally revolves around the DataFrame. Pandas + Numpy + Scipy seems to be a wicked combination for wrangling with data to get quick and accurate results.

Overall, I couldn't be more pleased with my current language of choice, and I look forward to other things I can learn with the new tools on my belt!

Israel - Taglit Birthright

Over the past couple weeks I have been lucky enough to receive a Taglit Birthright award for a trip to Israel. It was a positively wonderful experience with wonderful people.

My last trip to Israel was in 2006, and Hezbollah unfortunately decided to do what it does (kidnap and kill IDF soldiers) which put our trip plans in quite a state of flux. Fortunately, this year's trip had no such drama which allowed me to travel to the Golan Heights and see the lushness in northern Israel.

Over our stay, we were housed at Kibbutz Gadot, a hotel near King David's Harp in Jerusalem, a Bedouin Tent, a beachfront hotel in Tel Aviv, and a field school in the Negev. During the latter half of our stay, we were joined by IDF soldiers who were (as always) awesome people to be around.

Sights included:

Click Through to see the Israel Gallery

Click Through to see the Israel Gallery



Utah Ski Trip

_DSC3340.jpg

Some Dallasites from the community and myself took a break from our topographically challenged city and went to Park City, Utah. It is the town known for the Sundance film festival... though our pursuits were much more admirable than sitting in a dark room all day. Instead, we hit the slopes!

Our alpine home away from home was The Silverado Lodge at Canyons Resort and our suite had a spectacular view of the mountain and was all around a lovely place to stay. A storm came in Thursday, our second night, and stayed over the weekend showering nearly an inch of powder every two hours or so. The slopes were wonderful, and it was like gliding on a white puffy cloud. So much snow came down that they would occasionally shut down  the chairlifts and dynamite the mountain to do avalanche control. It is similar to wildfire control (light small, controlled wildfires so that you don't have one big one). 

We had a wonderful time avoiding the use of electronics on Saturday which proved tricky at times, but other humans are of course the best source of entertainment and camaraderie.

San Francisco

Click Through to see the San Francisco Gallery

Click Through to see the San Francisco Gallery

Over Christmas two of my good friends and I went on an excursion out Californee way. Sadly, no Gold was to be found, but we had a great time anyways. One of the highlights was the California Academy of Sciences. It is one of the best natural history museums I've ever been to. Perhaps I'm a bit old for their demographic, but who cares. Butterflies, Jellyfish and Parrots are awesome!

We stayed in a rather "interesting" neighborhood which provided significant motivation to get out and explore the city.

Good Dim Sum was eaten, often without explanation of it's contents, as well as great Italian food and wonderful pastries.

Other sights include:

  • Golden Gate Bridge
  • The Piers (and Ferry Building)
  • Golden Gate Park
  • The Japanese Tea Garden
  • Lands End
  • Chinatown
  • The Palace of Fine Arts
  • Alcatraz
  • Lombard Street

Overall, it was a wonderful trip full of wonderful people having a wonderful time!

Texas State Fair

Big Tex is back... but to me he was never gone. Some of my fellow Texas Instruments New College Grads went to to the Texas State Fair a couple weeks ago.

The fair was quite awesome despite the fact that I was unable to have "Deep Fried Thanksgiving," and instead opted for red velvet funnel cakes (the "healthy" alternative?). We played bumper cars, saw the bird show which features untethered birds, and met some cows, ducks, chickens, rabbits, pigs, dogs and cats.

There was also a master pumpkin carver/sculptor as well as lots of other random things happening all around the fairgrounds. 

 

 

Click Through to see the Texas State Fair Gallery

Click Through to see the Texas State Fair Gallery

Dallas Arboretum

It's about time that I uploaded the pictures from the Dallas Arboretum! 

The arboretum is quite nice, a green patch in the concrete and steel ecosystem of Dallas. There were many beautiful flowers (especially lilies) as well as some other ones I'm not familiar with. The dragonflies and other insects were also neat to get pictures of. 

Due to the recent cold weather, the arboretum isn't what it was a couple weeks ago, but I'm sure it will be just as good next year.

Please peruse the (brief) gallery. The arboretum is 66 acres compared to the Chicago Botanic Gardens 385 acres, so it is a bit briefer visit. 

Click Through to See the Dallas Arboretum Gallery

Click Through to See the Dallas Arboretum Gallery

Texas Instruments and Dallas

I have recently moved to the wonderful city of Dallas, and am excited to start my new career as a Manufacturing and Production Control Engineer at Texas Instruments. Supposedly people come into contact with a TI product every 8 seconds or so, which is pretty impressive. The level of automation in the fab (fabrication facility) is absolutely incredible; people are dusty and robots aren't thus the robots do (almost) all of the work. In the video below, 4:10 to 8:20 illustrates the type of environment, people, equipment and products I have the privilege of working with. It is awesome. 

On the personal front, my apartment is excellent! It has a nice kitchen to cook in and it is LEED certified to keep my utilities down. Woo!

Hong Kong

Hong Kong was excellent, we spent four days in the city and I took 1060 pictures during our time there. Compared with 8 days in Beijing and 717 pictures. Time sure did fly.

As mundane as some may find it, the MTR, Hong Kong's subway is one of the best modes of transportation I have ever had the opportunity to travel on. It is clean, fast and cool (important during monsoon season). It is truly a gem of Hong Kong.

Pictures of Hong Kong are online, they include: 

​Click through to see the Hong Kong 2013 album

​Click through to see the Hong Kong 2013 album

  • Happy Valley Racetrack
  • Victoria Harbor Cruise
  • Hong Kong Park
  • Hong Kong Stock Exchange
  • Kowloon Promenade (Tsim Tsa Tsui) 
  • Man Po Temple
  • MTR
  • Night Markets
  • Ritz-Carlton Ozone Bar
  • Tin Hau Temple
  • Tian Tan Buddha 
  • Victoria Peak
  • Other random sights

Overall, Hong Kong seems to be the citadel of capitalism. The banks print the money, not the government, and there is very lax regulation in pretty much every sector. Due to the absence of taxes on most goods, Hong Kong has become a shipping hub for most of Asia. It is also situated directly next to Shenzen, where Foxconn is located. Victoria Harbor is also very deep which aids with trade as well. Macau, which is very close to Hong Kong and a former Portugese colony does not have the luxury of a deep harbor and thus focuses on gambling for revenue.

We took classes at Hong Kong Baptist University and toured a few companies. One company was Defond, a manufacturer of consumer product switches. They also have some very interesting R&D projects. Additionally we toured Swire Coca-Cola, which as one would guess, makes Coke products for Hong Kong.

 

Beijing, China

Click through to see the Beijing 2013 album

Click through to see the Beijing 2013 album

Pictures are uploaded (more to come). So far they are of the Tsinghua campus, the Summer Palace and Forbidden City.  Click through here to see.

Edit (2013 May 28):

Pictures of the main Beijing sights are up. They include: 

  • Association for Western Returned Scholars
  • Beijing Acrobatics Show
  •  Forbidden City and Jingshan Park
  • Great Wall
  • Summer Palace
  • Temple of Heaven
  • Tienamen Square
  • Tsinghua University
  • Other random sights

Not included in the picture album are company visits which were of Cummins (engine manufacturer), Faergre Baker Daniels (law office), CapitalBio (Biotech system-on-a-chips) and Garage Cafe (a coworking space for startups). 

During our study abroad group's stay in Beijing, we attended courses at Tsinghua University, which has been declared the MIT of China due to its heavy focus on engineering and the high quality of its graduates. We also took classes on cultural differences and communication, US-China relations which was taught by an expert in the field (Prof. Chu Shulong) who is often featured on Chinese TV to discuss issues. Additionally we learned about Chinese history and its evolution through time. Overall, it was a very memorable experience and I learned a lot!