04 Nov 2015
For years, the criminalization of Marijuana sale and usage has made data collection and research on the topic difficult to perform. In Washington state, Recreational Marijuana went on sale in local dispensaries starting mid-2014. The question of whether or not the opening of a dispensary produces a spike in the amount and type of Marijuana use is a valid question for legislators, administrators, doctors and more.
As an exploratory exercise, I created the following map using call-center data gathered by the Washington State Poison Center on marijuana use and data scraped from the web on the location and opening date of retail marijuana shops in Washington State. Data ranges from January 2014 to August 2015. Both calls and shops are localized by zip code. By scrolling through we can see where and when shops and cases cropped up.
“Cases” are any calls that went to the Washington Poison Center related to Marijuana usage. This could be anything from “My child got into my weed cookies” to a doctor calling to consult on someone who ingested too much Marijuana.
In this period of time there were only a few hundred cases. This was enough however to see some trends in the data. The highest number of cases occurred in the U District and in Pioneer Square.
Please note that currently only shops in KING COUNTY are shown.
This map was created using
24 Aug 2015
The command-line can be a little unintuitive when dealing with multidimensional objects since it is a 2D medium. It is therefore hard to envision objects greater than 2-dimensions. They exist however!
An array, in R, is simply a vector (list of objects) where each element has additional “dimension” attributes. In other words, each vector element is given a dimensional position. This is fairly easy to represent 3-dimensionally (see below) but there is no reason why additional dimensional attributes cannot be applied to each vector element, placing them in the 4th, 5th…nth dimensions.
array(), I created a 3-dimensional array object (represented by that box with numbers you see below) populated with values 1 to 4. Each of these is given a dimensional attribute, the 1’s located are located at [1,1,1] and [1,2,1]. The 4’s are located at [2,1,2] and [2,2,2], and so on.
Here is the array function:
The first argument of
array() is the actual data to be used. The second argument is
dimensions which is an integer vector referring to the maximum dimensions of the array; for the example above, this is 2 by 2 by 2.
apply(), we can perform functions on elements which are aligned in certain directions, in this case
array() function takes the following arguments:
X is the array over which apply should be…applied,
margins is an integer vector telling R which margins (dimensions) to maintain and which to collapse, and
FUN is the function to by applied. Basically, the
apply() function is taking the sum over all elements in a certain edge of the cube. The
margin attributes simply tell R which edges we are summing over. In the examples below, R converts a 3D array object into a 2D object. You can see the effect of changing the
margins attribute on the final result of the summed arrays shown below.
07 Jun 2015
Things Americans might find strange in France
I created this list based on things that my other American friends and I noticed in France.
1. Square Pillows
If you go to an IKEA or any sort of bedding store in France, odds are you will only find square pillows for your bed. I’m sorry but this is ridiculous. They have 50% of the capabilities of a rectangular pillow, and are just not as comfortable.
2. Separate Toilets
I don’t mean like in a separate bathroom alcove, no. In both apartments I had in France and many of the ones I visited the toilet (WC) was completely on the opposite side of the apartment from the bathroom. This meant that after going to the bathroom you would have to cross the entire apartment, including kitchen and dining room, just to wash your hands.
3. Sugar Daddy
When you need sugar in France, you need Daddy.
4. Hollywood Gum
Hollywood gum is a very popular brand of gum in France and french people were always a bit shocked that we don’t carry it in the US.
5. Soldiers with Machine Guns
One thing that I did find a little unnerving in France was that there were a significant amount of military patrolling city centers, train stations and trains.
6. Line Etiquette is Nonexistent
There is no such thing as a line. It is a free-for-all full of elbows, dirty glances and money-waving. The worst culprits are the miniscule, ancient French women sporting completely polyester wardrobes who wield their shopping carts like elven-forged swords.
7. Drivers don’t use AC to save gas
As of today (June 6, 2015), gas is $5.54/gallon in France. When the dollar was weaker this number was more like $7/gallon. It’s no wonder that Europeans try to save on gas.
8. Post-Dinner Coffee
Coffee must be taken after dessert. This has however led to the magic that is Cafe Gourmand.
A couple other small things:
You’ll get looks if you put milk in your coffee after 9am and aren’t a baby
There is a total lack of peanut butter in Europe
Strikes or les grèves (they are a way of life in France)
You don’t tip in restaurants
It seems like every single person in France smokes sometimes
Things French people might find strange in America
These items were curated by real-life french people (Merci Denis et Marjo).
1. Sour Cream
Just sour cream.
2. Pristine Fruits and Veggies
Our fruits and vegetables are all unnaturally perfect. From my experience, the fruits and veggies in France were tastier and smaller than their American counterparts. Except avocados. Avocados in France aren’t great.
3. American pedestrians wait at red lights
I personally think this depends more on the city that you are in but we do seem to follow the rules a bit more about crossing the street.
4. No dessert with every meal
French people might find this shocking but not every meal here ends with something sweet.
5. 24/7 Dining
Restaurants are always open, you can pretty much eat whenever you want.
A couple other small things:
Employees say “how are you” as a way of saying “hi”
Our restaurants don’t often have price fix menus
Carpool lanes do not exist in France
If there are any international quirks that you’ve noticed please let me know in the comments below! :)
17 May 2015
One of the goals that I’ve had for a long time is to create the wikipedia page for freeze-casting. Even though it’s a relatively “hot” technique, at least in the ceramics world. There wasn’t a single entry for freeze-casting. This meant that when I started the project I actually had to read scientific literature to figure things out. The closest thing to freeze-casting on wikipedia was a topic known as freeze-gelation which is really not freeze-casting. 4+ years after I started my thesis there was still nothing on wikipedia in regards to freeze-casting. I’d already done all the research and spent literally 100s of hours creating figures and getting references for the topic so I figured why shouldn’t I do it. The article isn’t comprehensive as there are many topics to cover but I think it does a good job at explaining the basic concepts required for freeze-casting. Apparently wikipedia however thinks it still has many problems (it was graded as a Class-C article) but it’s been accepted and is available for public viewing.
For reference, a C-Class Wikipedia is defined as follows:
The article is substantial, but is still missing important content or contains much irrelevant material. The article should have some references to reliable sources, but may still have significant problems or require substantial cleanup.
If you’re interested please take a look, make edits if necessary and link to it if desired. Thanks for reading!