<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>andrewxhill</title>
    <description>something i once said</description>
    <link>https://andrewxhill.com/</link>
    <atom:link href="https://andrewxhill.com/feed.xml" rel="self" type="application/rss+xml" />
    <pubDate>Wed, 14 Oct 2026 15:37:29 +0000</pubDate>
    <lastBuildDate>Wed, 14 Oct 2026 15:37:29 +0000</lastBuildDate>
    <generator>Jekyll v3.10.0</generator>
    
      <item>
        <title>Virtual reality walks in Snowzilla</title>
        <description>&lt;p&gt;As NYC retires into the grip of Jonas I thought it might be fun to go for a wintery hike. So many stories are popping up right now that I was tempted to go experience a bit of it firsthand. At the same time, I thought I could make an interesting contribution to the topic if I snapped a bunch of photospheres, Google’s VR-ready photos. If you have a Cardboard viewer, download one of the photos down below and load it up for full on virtual reality. Get the visual experience of Snowzilla from the comfort of your warm couch.&lt;/p&gt;

&lt;p&gt;If you don’t have a Google Cardboard compatible viewer, you can just use the Google Streetview embeds below to look around at Brooklyn in Snowzilla. If you have a Google Cardboard device, throw it on your camera and load up the links below!&lt;/p&gt;

&lt;iframe width=&quot;100%&quot; height=&quot;450&quot; frameborder=&quot;0&quot; style=&quot;border:0&quot; src=&quot;https://maps.google.com/maps?layer=c&amp;amp;panoid=F:-tcwj73r4ZzE/VqP4U9MzvKI/AAAAAAAAK2g/FQRwYg23III&amp;amp;ie=UTF8&amp;amp;source=embed&amp;amp;output=svembed&amp;amp;cbp=13%2C100%2C%2C0%2C1.8&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;

&lt;p&gt;&lt;a href=&quot;https://plus.google.com/photos/107020500010126408534/albums/6243103610187687841/6243106547374996642?pid=6243106547374996642&amp;amp;oid=107020500010126408534&quot;&gt;Download from Google+&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is right by my apartment and was the first photosphere I captured. The streets were immediately different in appearance. Row after row of entombed cars. People walking in the street to avoid the knee-high drifts of snow on the sidewalks. And cars getting stuck every time they didn’t make a light at an uphill intersection…&lt;/p&gt;

&lt;iframe width=&quot;100%&quot; height=&quot;450&quot; frameborder=&quot;0&quot; style=&quot;border:0&quot; src=&quot;https://maps.google.com/maps?layer=c&amp;amp;panoid=F:-LvgoMJB82lo/VqP4FrxtYaI/AAAAAAAAK2A/4uzGCTsVDF0&amp;amp;ie=UTF8&amp;amp;source=embed&amp;amp;output=svembed&amp;amp;cbp=13%2C100%2C%2C0%2C1.8&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;

&lt;p&gt;&lt;a href=&quot;https://plus.google.com/photos/107020500010126408534/albums/6243103610187687841/6243106284999893410?pid=6243106284999893410&amp;amp;oid=107020500010126408534&quot;&gt;Download from Google+&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It was strange to think of how many times I’ve passed the Kosciuszko Pool in beautiful weather but had never stepped foot inside. Someone had swung open the gate and was using the cabanas to park cars out of the snow. So besides a few illegally parked cars, I had it all to myself.&lt;/p&gt;

&lt;iframe width=&quot;100%&quot; height=&quot;450&quot; frameborder=&quot;0&quot; style=&quot;border:0&quot; src=&quot;https://maps.google.com/maps?layer=c&amp;amp;panoid=F:-ErhG523R8v0/VqP10np16dI/AAAAAAAAK1k/MnWKHsD0zQI&amp;amp;ie=UTF8&amp;amp;source=embed&amp;amp;output=svembed&amp;amp;cbp=13%2C205%2C%2C0%2C1.8&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;

&lt;p&gt;&lt;a href=&quot;https://plus.google.com/photos/107020500010126408534/albums/6243103610187687841/6243103792812124626?pid=6243103792812124626&amp;amp;oid=107020500010126408534&quot;&gt;Download from Google+&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My favorite photosphere of the hike I captured from the waterfront. The East River was empty and quiet. The bridge didn’t seem to connect Brooklyn to anything but clouds.&lt;/p&gt;

&lt;iframe width=&quot;100%&quot; height=&quot;450&quot; frameborder=&quot;0&quot; style=&quot;border:0&quot; src=&quot;https://maps.google.com/maps?layer=c&amp;amp;panoid=F:-Y0blh-7vIjI/VqP1pcaEwwI/AAAAAAAAK1Y/jEkhqhGD_4E&amp;amp;ie=UTF8&amp;amp;source=embed&amp;amp;output=svembed&amp;amp;cbp=13%2C205%2C%2C0%2C1.8&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;

&lt;p&gt;&lt;a href=&quot;https://plus.google.com/photos/107020500010126408534/albums/6243103610187687841/6243103600814637826?pid=6243103600814637826&amp;amp;oid=107020500010126408534&quot;&gt;Download from Google+&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Seeing the bridge from down below made me want to see it from up above too. Surprisingly there was a meager but steady flow of people walking across the pathway. The top reminded me less of a bridge and more of the peak of a mountain on a bad day. The wind whipped and the snow stung at times. That is one thing I really like about the raw Google Cardboard camera, it also captures a loop of sound, making the VR come even more to life.&lt;/p&gt;

&lt;iframe width=&quot;100%&quot; height=&quot;450&quot; frameborder=&quot;0&quot; style=&quot;border:0&quot; src=&quot;https://maps.google.com/maps?layer=c&amp;amp;panoid=F:-HDb_EdEFZDc/VqP4N7ZhVdI/AAAAAAAAK2U/gLpPSxI5IjQ&amp;amp;ie=UTF8&amp;amp;source=embed&amp;amp;output=svembed&amp;amp;cbp=13%2C105%2C%2C0%2C1.8&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;

&lt;p&gt;&lt;a href=&quot;https://plus.google.com/photos/107020500010126408534/albums/6243103610187687841/6243106426632361426?pid=6243106426632361426&amp;amp;oid=107020500010126408534&quot;&gt;Download from Google+&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Downtown Williamsburg. A few bars remained open and a number of snowball fights were breaking out and dispersing on the streets. The number of windows with upturned stools and dinner tables reminded me more of a Maine coastal town in winter than of Brooklyn.&lt;/p&gt;

&lt;iframe width=&quot;100%&quot; height=&quot;450&quot; frameborder=&quot;0&quot; style=&quot;border:0&quot; src=&quot;https://maps.google.com/maps?layer=c&amp;amp;panoid=F:-sNUW4YHSZgM/VqP37uMmrhI/AAAAAAAAK10/DPEeG3TjqMs&amp;amp;ie=UTF8&amp;amp;source=embed&amp;amp;output=svembed&amp;amp;cbp=13%2C105%2C%2C0%2C1.8&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;

&lt;p&gt;&lt;a href=&quot;https://plus.google.com/photos/107020500010126408534/albums/6243103610187687841/6243106113850879506?pid=6243106113850879506&amp;amp;oid=107020500010126408534&quot;&gt;Download from Google+&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;McCarren Park had a good amount of life in it. People were playing tag football, parents were pull heavy sleds of children and the dogs were running like mad. Overall, it made the storm feel pretty playful and pleasant.&lt;/p&gt;

&lt;iframe width=&quot;100%&quot; height=&quot;450&quot; frameborder=&quot;0&quot; style=&quot;border:0&quot; src=&quot;https://maps.google.com/maps?layer=c&amp;amp;panoid=F:-_wcp2sp80zw/VqUUgQ3q1_I/AAAAAAAAK68/2LS3I-SyQFM&amp;amp;ie=UTF8&amp;amp;source=embed&amp;amp;output=svembed&amp;amp;cbp=13%2C105%2C%2C0%2C1.8&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;

&lt;p&gt;Williamsburg at night&lt;/p&gt;
</description>
        <pubDate>Sat, 23 Jan 2016 00:00:00 +0000</pubDate>
        <link>https://andrewxhill.com/blog/2016/01/23/a-vr-walk-in-snowzilla/</link>
        <guid isPermaLink="true">https://andrewxhill.com/blog/2016/01/23/a-vr-walk-in-snowzilla/</guid>
        
        <category>random</category>
        
        
        <category>blog</category>
        
      </item>
    
      <item>
        <title>How to avoid Idea Averaging</title>
        <description>&lt;p&gt;Ideation skills are super important for effective team work. Collaborative ideation is the process where you tell me an idea, I try to identify any weakness or missing piece, augment the idea and hand it back to you. I have a good friend that I love to ideate with. We often will grab beers and just start riffing on startup ideas, technology ideas, or any crazy ideas. Single threads can pass through many topics and often aren’t bound to any objective, so it is more brain gymnastics than anything else.&lt;/p&gt;

&lt;p&gt;One time we had a third person with us that didn’t have much experience collaborating this way. Instead, everytime he would suggest an idea, we would polish it one way or another and pitch it back to keep building the idea. But he started to get sooo frustrated. Finally he came out and said what he was feeling. He felt like we were “stealing” his ideas and just “repeating” back what he already said. So instead of falling into the rhythm of ideation, he setup something of an &lt;em&gt;idea blockade&lt;/em&gt;. I kid you not, the night ended with him being escorted out of the bar. Lesson(s) learned.&lt;/p&gt;

&lt;h3 id=&quot;idea-averaging&quot;&gt;Idea Averaging&lt;/h3&gt;

&lt;p&gt;There is another, less obvious, type of behavior that can at times negate the value of good ideas. It is something I call, &lt;strong&gt;Idea Averaging&lt;/strong&gt;. Here is how it goes,&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;I have an idea.&lt;/li&gt;
  &lt;li&gt;I pitch my idea to the group&lt;/li&gt;
  &lt;li&gt;Someone comes back and says, “Great idea, but what if you did it this way?”&lt;/li&gt;
  &lt;li&gt;I decide we can just do both ideas at the same time.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;What I’ve just done is averaged our ideas. Instead of giving the two options a throrough and objective review to select the best way forward, I’ve averaged them. Now, you might be thinking, “Hey, sometimes both ideas are better together”. Sure, they are, but to make them work together takes that polish step of the ideation where you actually will blend and create a new, third idea.&lt;/p&gt;

&lt;p&gt;Don’t &lt;em&gt;average&lt;/em&gt;, have the confidence to &lt;em&gt;ideate&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Idea Averaging makes everyone feel &lt;em&gt;okay&lt;/em&gt;, but will almost never get you the full value of the best idea. I only say &lt;em&gt;okay&lt;/em&gt; because really good team members probably wont feel great with Idea Averaging. Great collaborators will have a feeling that the ideas weren’t evaluated completely, that somehow an optimal solution was missed. With an averaged idea, your final output is going to be bigger, or slower, or take longer to execute than either individual idea alone. Even worse, if you make Idea Averaging a norm, you will build a team around average ideas!!!&lt;/p&gt;

&lt;h4 id=&quot;the-root-of-idea-averaging&quot;&gt;The root of Idea Averaging&lt;/h4&gt;

&lt;p&gt;One potential cause of Idea Averaging is hedging. By averaging two different versions of an idea, you gain the advantage of not having to fail by choosing one. But there are better ways to avoid that problem. I believe Idea Averaging actually comes from good intentions. We do it because we feel like all parties have the potential to contribute great ideas, so why block any of them? I’m not sure, but I bet some really great communities can be built around a culture of Idea Averaging, but they probably don’t execute their best possible ideas.&lt;/p&gt;

&lt;p&gt;In reality, people feel more rewarded by having their ideas objectively evaluated, even if ideas are ultimately rejected at times. Through objectively evaluating ideas, ideation becomes communal, contributors are pushed to improve and provide feedback for other’s ideas. There is no shame in pointing out flaws with ideas as long as it is done in a collaborative framework where everyone wins by selecting the right path forward.&lt;/p&gt;

&lt;h4 id=&quot;how-to-avoid-idea-averaging&quot;&gt;How to avoid Idea Averaging?&lt;/h4&gt;

&lt;p&gt;One of the easiest ways to avoid Idea Averaging is to create a strong culture of feedback. Giving team members settings where they can point out flaws in current projects will help shift their mind into critical thinking mode. Feedback also gives you a tool to help measure, detect, or predict the failure of a project. In this way, the ideas you choose to act on are never set in stone, they are constantly being re-evaluated and rethought.&lt;/p&gt;

&lt;p&gt;The second way to avoid Idea Averaging is very related to the first, be experimental. By “experimental”, I simply mean don’t be afraid to assess an ongoing project and kill it. Be humble and willing to accept when your own experiments fail. An experimental environment also makes ideas feel less binary, instead they are living and always ready to be changed. Selecting one right one today doesn’t mean that we can’t revisit and pivot to the second tomorrow.&lt;/p&gt;

&lt;p&gt;Finally, practice identifying Idea Averaging. You’ll see it pop up all over the place. Idea Averaging is great for a communal feeling of &lt;em&gt;getting all ideas in&lt;/em&gt;. Be careful not to allow ideation to isolate members of your team, ensure humble and honest discussion goes on around ideas. It is a stronger community when you can consider ideas and evaluate openly which are the best one to move forward with, even if it means some ideas will be left on the drawing board.&lt;/p&gt;

</description>
        <pubDate>Mon, 04 Jan 2016 00:00:00 +0000</pubDate>
        <link>https://andrewxhill.com/blog/2016/01/04/idea-averaging/</link>
        <guid isPermaLink="true">https://andrewxhill.com/blog/2016/01/04/idea-averaging/</guid>
        
        <category>cartodb</category>
        
        <category>teams</category>
        
        <category>strategy</category>
        
        <category>ideas</category>
        
        
        <category>blog</category>
        
      </item>
    
      <item>
        <title>BrainHubs</title>
        <description>&lt;p&gt;In my &lt;a href=&quot;/blog/2015/12/01/communication/&quot;&gt;post last week&lt;/a&gt;, I started digging into the challenges of getting ideas to move quickly in a startup culture. The post briefly summarizes four years of observation, and only near the end did I start to get at the current state of idea flow in the office. In reality, the topic of idea flow is something I’ve been getting more proactive about improving. Today, I’d like to talk about one solutions I’ve been crafting called, BrainHubs.&lt;/p&gt;

&lt;h3 id=&quot;introducing-brainhubs&quot;&gt;Introducing BrainHubs&lt;/h3&gt;

&lt;p&gt;BrainHubs are the yin to the Company Townhall yang.&lt;/p&gt;

&lt;p&gt;Here is the basic idea. Each week 5 random people join me for a BrainHub and coffee. The first 3 minutes we go over ground rules,&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Laptops are closed until the end.&lt;/li&gt;
  &lt;li&gt;BrainHubs start and end sharp, 30 minutes only.&lt;/li&gt;
  &lt;li&gt;Each person shares what they are working on for 2-3 minutes.&lt;/li&gt;
  &lt;li&gt;The last 10-15 minutes we have round table questions and brainstorming about topics brought up.&lt;/li&gt;
  &lt;li&gt;At 27 minutes we stop and everyone fills out a feedback form before leaving the room.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I try to be there just to keep the conversation moving along. But I typically go first in the 2 minute share, to help get people comfortable with the scope of sharing. The idea is to share about &lt;strong&gt;right now&lt;/strong&gt;, today or this week’s project. Not to share the overview of your position or your 6-month plan. I also try to step back while the brainstorming is happening, but I will sometimes jump in, for example when only one person is being asked questions by everyone else, I’ll divert the group with a question to a new person.&lt;/p&gt;

&lt;p&gt;There are some nuggets I’ve been learning. BrainHubs aren’t good for new recruits, better to wait 3-4 weeks until they have some feet beneath them. Five people plus me is a really nice number to work with in just 30 minutes but 4 works fine in a pinch.&lt;/p&gt;

&lt;h3 id=&quot;brainhub-objectives&quot;&gt;BrainHub Objectives&lt;/h3&gt;

&lt;p&gt;When I started imagining a solution like BrainHub, the problem I was trying to fix was simple. I noticed that at lunchtime or other relaxed moments at the company, people were rarely asking each other about their work or exciting projects going on. Conversations defaulted to things like weekend plans, relationships… or worse, the weather. I had a suspicion that the reason people weren’t talking about the amazing things they were working on was because they didn’t know the right questions to ask each other. They didn’t know where to start those conversations.&lt;/p&gt;

&lt;p&gt;So the objective of BrainHub seems obvious at first, &lt;em&gt;share ideas&lt;/em&gt;. But as I started formulating the concept, I realized I could target a deeper set of objectives:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Focus on the small (what are you working on right now) so that people aren’t afraid or bashful to share with each other the small things. As a company, we spend a lot of time celebrating and communicating the big things, so it can be easy to forget just how important the small things are.&lt;/li&gt;
  &lt;li&gt;Build a stronger culture of asking questions. The best way to learn about your colleagues and the amazing things they are working on, is to ask.&lt;/li&gt;
  &lt;li&gt;Try to loosen any hierarchical barriers. Someone’s position or tenure at the company shouldn’t ever make them intimidating to others. Everyone comes through BrainHubs, from founders to interns.&lt;/li&gt;
  &lt;li&gt;Seed people’s minds with at least a basic map of what other people are working on in the company directly through the sharing in the BrainHub. That map can serve as an important reference when they have a new idea they want to share or a project they need to make successful.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;feedback&quot;&gt;Feedback&lt;/h3&gt;

&lt;p&gt;Each BrainHub ends with all five members filling out a quick feedback form. I just created it as a Google Form. Through the form, I collect various bits of information about how people feel at the company, related to how much they know or feel like they don’t know. I also solicit suggestions to improve the BrainHub itself, and various other questions that help me measure the culture at the company.&lt;/p&gt;

&lt;p&gt;For example, I ask people how satisfied they are with their knowledge about the company. I want this number to keep going up. It wont be BrainHubs alone that makes that number hit the top, but BrainHubs are a great place to track it.&lt;/p&gt;

&lt;p&gt;I ask people how frequently they would like to be included in a BrainHub. Overwhelmingly people see a value in being part of a BrainHub every 2 weeks. For a company our size, it means I would need to run a BrainHub more than once per day every day to get people through fast enough…&lt;/p&gt;

&lt;p&gt;I also ask how much they learned new during the BrainHub. I actually want this number to go down, and if we can get it low enough we’ll no longer need BrainHubs to help move ideas around.&lt;/p&gt;

&lt;h3 id=&quot;an-experimental-approach-to-problem-solving&quot;&gt;An experimental approach to problem solving&lt;/h3&gt;

&lt;p&gt;I’m not sure yet if BrainHubs will work. They appear to be having a really positive impact. People come out of them feeling like they learn a lot about the work of others, that they didn’t know otherwise. I’ve also overheard a few conversations since they started, that I don’t think would have taken place had it not been for the two people sitting in a BrainHub together.&lt;/p&gt;

&lt;p&gt;In reality though, BrainHubs are an experiment. I’m doing my best to collect hard information about their success. Because with all experiments, there is the chance that your original hypothesis was totally incorrect. In those cases it is important to be comfortable saying, &lt;em&gt;this is wrong, let’s find a different solution&lt;/em&gt;. Right now, the feedback is really positive, so let’s see!&lt;/p&gt;

&lt;p&gt;If you are interested in learning more, &lt;a href=&quot;https://twitter.com/andrewxhill&quot;&gt;shoot me a tweet&lt;/a&gt;.&lt;/p&gt;

</description>
        <pubDate>Sun, 06 Dec 2015 00:00:00 +0000</pubDate>
        <link>https://andrewxhill.com/blog/2015/12/06/brainhubs/</link>
        <guid isPermaLink="true">https://andrewxhill.com/blog/2015/12/06/brainhubs/</guid>
        
        <category>cartodb</category>
        
        <category>growth</category>
        
        <category>communication</category>
        
        <category>startups</category>
        
        
        <category>blog</category>
        
      </item>
    
      <item>
        <title>The beauty of growth and the labor of information</title>
        <description>&lt;p&gt;A few years ago, I was part of a collaboration doing research on communities of soil microbes. In the research, I was taking sequence data from soil samples, building phylogenetic trees, and trying to find interesting hints of the universe within the exotic soils from mountain tops, glacial fields, and Antarctic deserts. I remember one day meeting with one of my committee members to try and learn some things about an interesting phylogeny I was looking at. I remember asking, &lt;em&gt;So, what do Verrucomicrobia normally do in the soil?&lt;/em&gt; My phylogeny had a huge branch sticking out the side of it, full of this microbe I’d never heard of before. He answered, &lt;em&gt;It’s hard to tell, they are diverse and we haven’t had much luck growing them in the lab to study.&lt;/em&gt; To which I exclaimed, &lt;em&gt;But the soil is all Verrucomicrobia!&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;About a year ago, I saw a &lt;a href=&quot;http://www.ncbi.nlm.nih.gov/pubmed/25281372&quot;&gt;paper published&lt;/a&gt; about an almost accidental discovery (&lt;a href=&quot;https://en.wikipedia.org/wiki/Alexander_Fleming#Accidental_discovery&quot;&gt;some of the best are&lt;/a&gt;) that the entire setup process before growing cultures in the lab created an environment in the petri dishes that inhibited the growth of some microbes – Verrucomicrobia among them. Growing cultures in the lab petri dish is considered a necessary step to describing microbial species and studying their role in the environment. So when I saw the paper I chuckled thinking of all the grad students that would be racing to better understand all those Verrucs for the coming year.&lt;/p&gt;

&lt;p&gt;The processes inside startups can be a lot like those lab petri dishes – sometimes you set the perfect conditions and grow the exact thing you wanted. While other times it takes a lot more perseverance, experimentation, or even a mistake to make it work the way you want. Until you have success in your petri dish, many aspects of the startup environment can remain mysterious and unexplained. And just like science, the times you get it right (and wrong) are worth sharing.&lt;/p&gt;

&lt;h3 id=&quot;the-startup-experiment&quot;&gt;The startup experiment&lt;/h3&gt;

&lt;p&gt;The experiments you run in a startup petri dish are diverse and often have pretty big impacts. You find yourself running experiments to answer complex questions like, &lt;em&gt;What type of measurable characteristics separate normal job candidates from future leaders?&lt;/em&gt; Or, &lt;em&gt;How should teams be managed when they are small versus when they are large?&lt;/em&gt; And huge questions like, &lt;em&gt;What is our market? How do we remain innovative? How do we attract the best hires?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;In some of the more interesting experiments, you realize that the startup environment isn’t static. Your startup grows and changes the environment around it. When this happens, you need to get good at scrapping bad ideas, recognizing ideas that work, and changing your experiment regularly. Recognizing inflection points becomes a core competency.&lt;/p&gt;

&lt;p&gt;One set of environmental conditions within the startup that fascinates me deeply, are the ones the control how &lt;strong&gt;communication&lt;/strong&gt; happens. Now, I don’t mean blogging and Tweeting, nor do I necessarily mean Slack and Gmail, although I do mean them all a little. I mean the type of communication that enables &lt;em&gt;idea creation&lt;/em&gt; to become &lt;em&gt;idea execution&lt;/em&gt; efficiently. To understand how it changed over time, it helps to start at the beginning.&lt;/p&gt;

&lt;h3 id=&quot;communication-in-the-early-startup-environment&quot;&gt;Communication in the early startup environment&lt;/h3&gt;

&lt;p&gt;Early stage startups aren’t very much like full-fledged companies. In fact, they are so different that you really have to experience it to understand what makes them work. In our &lt;a href=&quot;http://cartodb.com&quot;&gt;company&lt;/a&gt;, we had a level of informality and fluidity that you can’t find in many corporate adventures. Some days you’re an engineer, some days you’re salesman. Together, we were just a collaboration of smart and hard working individuals wanting to get something done and realizing that it could be done bigger, faster, and prettier if we all worked together.&lt;/p&gt;

&lt;p&gt;The informality of these early days also created an informal flow of information. You didn’t need meetings to learn from your team. Another team member’s ideas seemed to enter your brain through a process osmosis. Any person on the team could have an idea in the morning and by lunchtime everyone else in the company would be familiar enough with the idea to understand how they could contribute or provide feedback.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/posts/0615-organization/flow.png&quot; alt=&quot;an organization &quot; /&gt;&lt;/p&gt;

&lt;p&gt;That informality effects the way that good and bad ideas are evaluated. In those early days, if you thought an idea was good enough, you just put your head down and worked hard until you could say, “Look, I can prove how good this is!”.&lt;/p&gt;

&lt;p&gt;This process of company ideation is exciting but probably pretty dangerous. It is only possible with the right environment. We fortunately had a team of smart individuals that cared for each other and respected one-another’s ideas enough to build space and support through those times of ideation. I’m not sure what happens when startups don’t have the right environment at this stage, but my guess is that to succeed, they work a lot harder and move a bit slower early on.&lt;/p&gt;

&lt;h3 id=&quot;communicating-as-a-company&quot;&gt;Communicating as a company&lt;/h3&gt;

&lt;p&gt;As a company grows the edges on its internal social network necessarily grow exponentially. There is an important inflection point hidden in that growth and related to the idea flow within the company. Ideas will begin to move a little bit slower or worse, get lost completely. Osmosis no longer works.&lt;/p&gt;

&lt;p&gt;This is a risky moment. The obvious risk is that some good ideas may become lost in your organization before they reach the right individuals that can execute on them. The less obvious but potentially more dangerous risk is that some members of your team may miss information and not be able to contribute effectively. We definitely experienced this frustrating moment in our growth.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Side note: how singular organisms come together to form collective individuals with shared motivations and livelihood has been a fascination of mine since reading &lt;a href=&quot;http://www.amazon.com/Evolution-Individuality-Princeton-Legacy-Library/dp/0691084688/ref=mt_hardcover&quot;&gt;Leo Buss’s work&lt;/a&gt; many years ago. I borrowed the images in this blog post from those essays.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;My feeling is that a lot of people probably get to this stage and throw Slack (or another communication platform) at the problem. While I think Slack can be great, I don’t think Slack alone &lt;em&gt;solves&lt;/em&gt; the problem of moving ideas efficiently at this stage in a startup.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/posts/0615-organization/organization-ind.png&quot; alt=&quot;an organization &quot; /&gt;&lt;/p&gt;

&lt;p&gt;Team members need to know who to talk to about each area of the company. Who’s working on what and what’s their role. Team members need to know where we are all going, what is our short and long term goals, and what are the key milestones to know we are getting there. And finally, team members need to know and celebrate when we reach those milestones.&lt;/p&gt;

&lt;p&gt;With the right new environment in place, team members are more capable of self-evaluating ideas and then pushing their best ideas directly to the other team-members that can help make them reality. Knowing full well that if they succeed they will all celebrate. At this point, Slack can then be very helpful to &lt;a href=&quot;https://en.wikipedia.org/wiki/Allen_curve&quot;&gt;reduce the distance&lt;/a&gt; across the startup petri dish and to allow ideas to move quickly.&lt;/p&gt;

&lt;p&gt;We are still working at building that environment. Processes such as company wide meetings, team level virtual stand-ups, and various other tactics are all being tested. I’ve started a couple of mini-experiments myself that I’ll write about here in the future.&lt;/p&gt;

&lt;p&gt;Come this far? Congratulations, you have something like a full-fledged startup in your petri dish. So what’s next?&lt;/p&gt;

&lt;h3 id=&quot;building-an-idea-machine&quot;&gt;Building an idea machine&lt;/h3&gt;

&lt;p&gt;For a while I thought that the transition from osmosis style ideation into a new environment that facilitated better parallel ideation was the final big move within an organization. Then I dug deeper.&lt;/p&gt;

&lt;p&gt;What you find when you dig deeper is that there is something more profound out there related to startups and the flow of ideas. I’ve read a lot lately on the concepts, many of which are caught up in &lt;a href=&quot;https://en.wikipedia.org/wiki/Holacracy&quot;&gt;Holacracy&lt;/a&gt; and new &lt;a href=&quot;http://www.nytimes.com/2015/07/19/business/at-zappos-selling-shoes-and-a-vision.html&quot;&gt;(non)management practices&lt;/a&gt; but not inherently dependent on them. To understand what it is, we probably need to go back to the beginning.&lt;/p&gt;

&lt;p&gt;In those early days of a start-up, you are a cult of individuals. To prove an idea was good, you just did it. That cult has long lasting effects, both good and bad. The good is that many of those individuals are probably some of the most talented people you will ever collaborate with. The bad, is that people not from the cult of individuals will find it harder to build ideas into company strategies.&lt;/p&gt;

&lt;p&gt;The mathematics of an organization (a startup in our case) hint to me that you will reach a point where the entire organization will always be smarter than any single individual… every time. What this means in practice is complex, but it means reducing the dominance of the cult of personalities.&lt;/p&gt;

&lt;p&gt;I’m not sure I know how to setup the right petri dish for such an experiment, but I’m watching the startup world closely to see who does.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/posts/0615-organization/organization-none.png&quot; alt=&quot;an organization &quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;If you liked this post help me out by &lt;a href=&quot;http://twitter.com/home?status=The%20beauty%20of%20growth%20and%20the labor%20of%20information%20--%20thoughts%20on%20moving%20ideas%20in%20a%20startup&quot;&gt;sharing it on Twitter&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Thanks&lt;/strong&gt; to &lt;a href=&quot;https://twitter.com/eightysteele&quot;&gt;Aaron Steele&lt;/a&gt; for reading my drafts.&lt;/p&gt;
</description>
        <pubDate>Tue, 01 Dec 2015 00:00:00 +0000</pubDate>
        <link>https://andrewxhill.com/blog/2015/12/01/communication/</link>
        <guid isPermaLink="true">https://andrewxhill.com/blog/2015/12/01/communication/</guid>
        
        <category>cartodb</category>
        
        <category>growth</category>
        
        <category>communication</category>
        
        <category>startups</category>
        
        
        <category>blog</category>
        
      </item>
    
      <item>
        <title>Full text search for maps</title>
        <description>&lt;p&gt;This post is going to be short. Basically, CartoDB runs on the coolest database in the world, &lt;a href=&quot;http://www.postgresql.org/&quot;&gt;PostgreSQL&lt;/a&gt;. Because it runs on such an amazing open source technolgy, we often get to tap into amazing advances and amazing documentation of methods that come from the community.&lt;/p&gt;

&lt;p&gt;One really nice write-up I came across over the week was, &lt;a href=&quot;https://blog.lateral.io/2015/05/full-text-search-in-milliseconds-with-postgresql/&quot;&gt;Full text search in milliseconds with PostgreSQL&lt;/a&gt; by &lt;a href=&quot;https://twitter.com/maxnovakovic&quot;&gt;Max Novakovic&lt;/a&gt;. If you haven’t read the post, it just shows you the handful of steps you need to take in order to make really fast, full text search possible in your PostgreSQL tables. I read the post and was like, “CartoDB readers need to know this”.&lt;/p&gt;

&lt;p&gt;If you didn’t know, no matter type of CartoDB account you use, you have the ability to create functions and triggers that work on your tables that generate your maps. Given this flexibility, we can follow Max’s write-up for full text search directly in the CartoDB Editor.&lt;/p&gt;

&lt;h2 id=&quot;full-text-search-on-cartodb&quot;&gt;Full text search on CartoDB&lt;/h2&gt;

&lt;p&gt;I have a really nice dataset from a weekend hack I did a couple years back. Basically, it is a bunch of (poorly) georeferenced text from the &lt;a href=&quot;http://andrewxhill.com/blog/2014/01/26/Mapping-the-world-of-Mark-Twain/&quot;&gt;complete works of Mark Twain&lt;/a&gt;. You can find the complete dataset over on my &lt;a href=&quot;https://team.cartodb.com/u/andrew/tables/twain/public&quot;&gt;public profile page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Okay, given a table named &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;twain&lt;/code&gt; in my account, and two columns of text, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;name&lt;/code&gt; which is the placename identified and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;passage&lt;/code&gt; which is the fulltext of the line geocoded, let’s replicate the steps to make fast full text search possible.&lt;/p&gt;

&lt;h3 id=&quot;adding-columns-and-indexes&quot;&gt;Adding columns and indexes&lt;/h3&gt;

&lt;p&gt;&lt;img src=&quot;/img/posts/full-text-search/add-column.png&quot; alt=&quot;add column&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Right in the CartoDB Editor, we are going to run the following SQL statements one at a time.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-sql&quot; data-lang=&quot;sql&quot;&gt;&lt;span class=&quot;k&quot;&gt;ALTER&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;TABLE&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;twain&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;ADD&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;COLUMN&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tsv&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tsvector&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;and then&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-sql&quot; data-lang=&quot;sql&quot;&gt;&lt;span class=&quot;k&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;INDEX&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;twain_tsv_idx&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;ON&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;twain&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;USING&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;gin&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tsv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;When adding indexes in CartoDB, I often include the name of the table directly in my index name, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;twain_tsv_idx&lt;/code&gt; for example. I do this so that I don’t hit the same index name twice if I use it on multiple tables. I don’t imagine this will be my last tsv example, so it will be good to do here.&lt;/p&gt;

&lt;h3 id=&quot;updates---setting-our-tsvector-values&quot;&gt;Updates - setting our tsvector values&lt;/h3&gt;

&lt;p&gt;Just like addeing columns and indexes in CartoDB, we can run UPDATEs directly in the editor. Here we are going to follow Max’s method, but we aren’t using a JSON column as input, I’m just using my two text columns &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;name&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;passage&lt;/code&gt;, so my query looks a little bit different.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-sql&quot; data-lang=&quot;sql&quot;&gt;&lt;span class=&quot;k&quot;&gt;UPDATE&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;twain&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;SET&lt;/span&gt; 
  &lt;span class=&quot;n&quot;&gt;tsv&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;
   &lt;span class=&quot;n&quot;&gt;setweight&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to_tsvector&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coalesce&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;A&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;||&lt;/span&gt; 
   &lt;span class=&quot;n&quot;&gt;setweight&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to_tsvector&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coalesce&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;passage&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;D&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;h3 id=&quot;creating-functions-and-triggers&quot;&gt;Creating functions and triggers&lt;/h3&gt;

&lt;p&gt;Creating functions and triggers is just as easy, write them directly in the SQL editor in your account, hit &lt;strong&gt;apply query&lt;/strong&gt; and if no errors are returned, you are gold. Again, I’m going to add the tablename to my function to ensure I don’t clash with future functions.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/posts/full-text-search/add-function.png&quot; alt=&quot;add column&quot; /&gt;&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-sql&quot; data-lang=&quot;sql&quot;&gt;&lt;span class=&quot;k&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;FUNCTION&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;twain_search_trigger&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;RETURNS&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;trigger&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;AS&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;$$&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;begin&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tsv&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;setweight&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to_tsvector&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coalesce&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;A&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;||&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;setweight&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to_tsvector&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coalesce&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;passage&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;D&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;err&quot;&gt;$$&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;LANGUAGE&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;plpgsql&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Same thing for creating our INDEX,&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-sql&quot; data-lang=&quot;sql&quot;&gt;&lt;span class=&quot;k&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;TRIGGER&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;twain_tsvectorupdate&lt;/span&gt; 
&lt;span class=&quot;k&quot;&gt;BEFORE&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;INSERT&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;OR&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;UPDATE&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;ON&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;twain&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;FOR&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;EACH&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;ROW&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;EXECUTE&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;PROCEDURE&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;documents_search_trigger&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;h3 id=&quot;running-a-full-text-query&quot;&gt;Running a full text query&lt;/h3&gt;

&lt;p&gt;Final thing is to see it in action. Here, I’m going to query for Mark Twain passages that include the phrase, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;river&lt;/code&gt;,&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-sql&quot; data-lang=&quot;sql&quot;&gt;&lt;span class=&quot;k&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;cartodb_id&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;passage&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tsv&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;FROM&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;cartodb_id&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;passage&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tsv&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;FROM&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;twain&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;plainto_tsquery&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;river&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;AS&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;q&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;WHERE&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tsv&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;@@&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;q&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;AS&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;t1&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;ORDER&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;BY&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ts_rank_cd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;t1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tsv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;plainto_tsquery&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;river&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;DESC&lt;/span&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Here we can see it in action,&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/posts/full-text-search/query.png&quot; alt=&quot;add column&quot; /&gt;&lt;/p&gt;

&lt;p&gt;And if you are building an application, you can run the same query &lt;a href=&quot;http://andrew.cartodb.com/api/v2/sql?q=SELECT%20ST_X(the_geom)%20longitude,%20ST_Y(the_geom)%20latitude,%20cartodb_id,%20name,%20passage,%20tsv%20FROM%20(%20SELECT%20cartodb_id,%20the_geom,%20the_geom_webmercator,%20name,%20passage,%20tsv%20FROM%20twain,%20plainto_tsquery(%27river%27)%20AS%20q%20WHERE%20(tsv%20@@%20q)%20)%20AS%20t1%20ORDER%20BY%20ts_rank_cd(t1.tsv,%20plainto_tsquery(%27river%27))%20DESC%20LIMIT%2010&quot;&gt;over the SQL API&lt;/a&gt; to retrieve the data as a JSON object.&lt;/p&gt;

</description>
        <pubDate>Sun, 10 May 2015 00:00:00 +0000</pubDate>
        <link>https://andrewxhill.com/blog/2015/05/10/search-text-fast/</link>
        <guid isPermaLink="true">https://andrewxhill.com/blog/2015/05/10/search-text-fast/</guid>
        
        <category>cartodb</category>
        
        <category>sql</category>
        
        <category>methods</category>
        
        <category>search</category>
        
        
        <category>blog</category>
        
      </item>
    
      <item>
        <title>More on the Torque unknown</title>
        <description>&lt;p&gt;Classifying Torque maps is a neuron-twister. They are essentially rasters, but they regenerate based on zoom and respond to headers defined on the fly by the users. They resemble vector points when you finally see them. I dunno, they are kinda Point-based Vector Tiles with built in simplification… they are kinda not. At the end of the day, they are just Torque and all the rest are imitators.&lt;/p&gt;

&lt;p&gt;If you aren’t familiar with how Torque works, this &lt;a href=&quot;http://gijs.github.io/images/cartodb_datacubes.pdf&quot;&gt;very old slide deck&lt;/a&gt; still has some relevant information. Also review the posts of &lt;a href=&quot;http://javisantana.com/blog.html&quot;&gt;Javi Santana&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;static-maps-that-static&quot;&gt;Static maps that static&lt;/h2&gt;

&lt;p&gt;Given that Torque does a great job whipping tons of points into shape, it also has some cool uses even when you don’t want to animate data. The reason is that the minimum necessary data is sent to the browser to render. Two key points are &lt;strong&gt;minimum&lt;/strong&gt; and &lt;strong&gt;sent to the browser&lt;/strong&gt;, those are like magic keywords to the web graphics secret societies.&lt;/p&gt;

&lt;p&gt;Why is that interesting for &lt;strong&gt;static maps&lt;/strong&gt;? Because unlike tile based maps, you have the data right there to do cool things with in the browser! Here is how you do it.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;For all my examples below, I’ll use a dataset of tweets about McDonalds versus Burger King over a few day period. If you are doing this in the editor, before you apply the CartoCSS, you must select a Torque map from the CartoDB Editor’s wizards.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;cartocss&lt;/strong&gt;&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-css&quot; data-lang=&quot;css&quot;&gt;&lt;span class=&quot;nt&quot;&gt;Map&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; 
    &lt;span class=&quot;py&quot;&gt;-torque-frame-count&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; 
    &lt;span class=&quot;py&quot;&gt;-torque-animation-duration&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; 
    &lt;span class=&quot;py&quot;&gt;-torque-time-attribute&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&quot;cartodb_id&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; 
    &lt;span class=&quot;py&quot;&gt;-torque-aggregation-function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&quot;count(*)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; 
    &lt;span class=&quot;py&quot;&gt;-torque-resolution&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; 
    &lt;span class=&quot;py&quot;&gt;-torque-data-aggregation&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cumulative&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; 
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt; 
&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; 
    &lt;span class=&quot;py&quot;&gt;marker-opacity&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0.9&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; 
    &lt;span class=&quot;py&quot;&gt;marker-line-color&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;#FFF&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; 
    &lt;span class=&quot;py&quot;&gt;marker-line-width&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; 
    &lt;span class=&quot;py&quot;&gt;marker-line-opacity&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; 
    &lt;span class=&quot;py&quot;&gt;marker-type&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;arrow&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; 
    &lt;span class=&quot;py&quot;&gt;marker-width&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;py&quot;&gt;marker-fill&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;#B10026&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; 
    &lt;span class=&quot;err&quot;&gt;[value&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;12]{&lt;/span&gt; 
     &lt;span class=&quot;py&quot;&gt;marker-fill&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;#FC4E2A&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
     &lt;span class=&quot;err&quot;&gt;[value&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;4]{&lt;/span&gt; 
       &lt;span class=&quot;py&quot;&gt;marker-fill&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;#FD8D3C&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
       &lt;span class=&quot;err&quot;&gt;[value&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;3]{&lt;/span&gt; 
         &lt;span class=&quot;py&quot;&gt;marker-fill&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;#FEB24C&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
         &lt;span class=&quot;err&quot;&gt;[value&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;2]{&lt;/span&gt; 
           &lt;span class=&quot;py&quot;&gt;marker-fill&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;#FFFFB2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
           &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
       &lt;span class=&quot;err&quot;&gt;}&lt;/span&gt;
     &lt;span class=&quot;err&quot;&gt;}&lt;/span&gt;
    &lt;span class=&quot;err&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;err&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;If you are familiar with CartoCSS in Torque, you’ll notice we do a few strange things here. In particular are the first two lines of the header,&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-css&quot; data-lang=&quot;css&quot;&gt;  &lt;span class=&quot;nt&quot;&gt;-torque-frame-count&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt; 
  &lt;span class=&quot;nt&quot;&gt;-torque-animation-duration&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;The first rule, &lt;em&gt;torque-frame-count&lt;/em&gt; tells Torque to only have 1 single frame in time. The second rule tells Torque to not play the time-slider. Let’s take a look at the outcome,&lt;/p&gt;

&lt;iframe width=&quot;100%&quot; height=&quot;420&quot; frameborder=&quot;0&quot; src=&quot;https://team.cartodb.com/u/andrew/viz/e7fa45bc-e53b-11e4-aec4-0e0c41326911/embed_map&quot; allowfullscreen=&quot;&quot; webkitallowfullscreen=&quot;&quot; mozallowfullscreen=&quot;&quot; oallowfullscreen=&quot;&quot; msallowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;

&lt;h4 id=&quot;why-is-it-neat&quot;&gt;Why is it neat?&lt;/h4&gt;

&lt;p&gt;Like I said before, now the data is rendered in the client. That means we can do neat things with it. Using the &lt;a href=&quot;http://docs.cartodb.com/cartodb-platform/cartodb-js.html&quot;&gt;CartoDB.js&lt;/a&gt; library, we can add events to our map and restyle or filter the data on the fly based on the values returned by our aggregation. Take a look at &lt;a href=&quot;http://bl.ocks.org/andrewxhill/adb44dcdcf30ee449e87&quot;&gt;this map&lt;/a&gt; for inspiration on using dynamically set Torque styles. You can also have tight control on the colors returned by each aggregation, which can be challenging using color-compositing often done on tile based maps.&lt;/p&gt;

&lt;p&gt;One of my favorite parts though, zoom based aggregation is &lt;em&gt;built in&lt;/em&gt;. Go ahead, zoom in and you’ll see the the dots always remain the same number of screen pixels.&lt;/p&gt;

&lt;h2 id=&quot;bubble-maps-that-are-bubbly&quot;&gt;Bubble maps that are bubbly&lt;/h2&gt;

&lt;p&gt;Another thing I really like playing with in Torque are bubble maps. Actually, you can combine static Torque maps and bubble maps &lt;a href=&quot;http://bl.ocks.org/andrewxhill/94688372b76060f7a6e8&quot;&gt;quite easily&lt;/a&gt;. But in this case, I’m more interested in making bubble maps that grow over time as more &lt;em&gt;events&lt;/em&gt; occur under the bubble. I first described the method in a &lt;a href=&quot;http://gis.stackexchange.com/questions/129838/show-change-in-size-over-time/130114#130114&quot;&gt;StackExchange ticket&lt;/a&gt; back in January, but let’s revisit it here.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;cartocss&lt;/strong&gt;&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-css&quot; data-lang=&quot;css&quot;&gt;&lt;span class=&quot;nt&quot;&gt;Map&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;-torque-frame-count&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;128&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;-torque-animation-duration&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;-torque-time-attribute&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&quot;postedtime&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;-torque-aggregation-function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&quot;sum(1)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;-torque-resolution&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;16&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;-torque-data-aggregation&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cumulative&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;comp-op&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;source-over&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-fill-opacity&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-line-color&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;#FFF&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-line-width&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-line-opacity&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-type&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ellipse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-width&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-fill&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;#F84F40&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-width&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-width&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-width&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-width&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-width&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-width&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;14&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-width&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;The key parts of the CartoCSS rule set are now,&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-css&quot; data-lang=&quot;css&quot;&gt;  &lt;span class=&quot;nt&quot;&gt;-torque-time-attribute&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&quot;postedtime&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;nt&quot;&gt;-torque-aggregation-function&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&quot;sum(1)&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;nt&quot;&gt;-torque-resolution&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;16&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Here is what you get,&lt;/p&gt;

&lt;iframe width=&quot;100%&quot; height=&quot;420&quot; frameborder=&quot;0&quot; src=&quot;https://team.cartodb.com/u/andrew/viz/e4709334-e53a-11e4-b6e6-0e853d047bba/embed_map&quot; allowfullscreen=&quot;&quot; webkitallowfullscreen=&quot;&quot; mozallowfullscreen=&quot;&quot; oallowfullscreen=&quot;&quot; msallowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;

&lt;p&gt;We explicitly set the &lt;strong&gt;time-attribute&lt;/strong&gt; to the column in our dataset that has the timestamps to order the visualization by. This is the standard method in Torque, but we didn’t need it in our static maps because we weren’t replaying time in the final map. Here we do.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;aggregation-function&lt;/strong&gt; is one of my favorite parts of Torque because it is actually embedded &lt;strong&gt;SQL&lt;/strong&gt; right in our CartoCSS. It tells torque how to add up the data inside each 3D time-space pixel in Torque. Here, I just say, &lt;strong&gt;ADD ‘EM UP!&lt;/strong&gt;, since &lt;strong&gt;sum(1)&lt;/strong&gt; will just add 1 for each row in the set.&lt;/p&gt;

&lt;p&gt;I’m fond of making Torque maps that use high &lt;strong&gt;resolution&lt;/strong&gt; values. This parameter sets the height and width (in screen pixels) of each pixel in the Torque data. Here, I set it to 16, which means that all the data in each 16x16 pixel cell will be added up by our aggregation function and return the value within. Since &lt;strong&gt;marker-width&lt;/strong&gt; is measured in radius, I set the biggest one to &lt;strong&gt;marker-width: 8;&lt;/strong&gt; so that it fills up the entire cell. You can tell because no two markers ever overlap, just barely touch on the edge if they are both big.&lt;/p&gt;

&lt;h4 id=&quot;why-is-it-neat-1&quot;&gt;Why is it neat?&lt;/h4&gt;

&lt;p&gt;This method is just a stab at something interesting, I think there is a lot more to do in there. But it shows you some simple uses of aggregation functions and the &lt;strong&gt;value&lt;/strong&gt; parameter that it returns.&lt;/p&gt;

&lt;p&gt;You can also do it with a &lt;strong&gt;linear&lt;/strong&gt; rendering instead of the &lt;strong&gt;cumulative&lt;/strong&gt; one I show, &lt;a href=&quot;https://team.cartodb.com/u/andrew/viz/32ff4f28-7e51-11e4-9555-0e853d047bba/public_map&quot;&gt;take a look here&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;category-maps-that-categorize&quot;&gt;Category maps that categorize&lt;/h2&gt;

&lt;p&gt;You’ve probably seen a lot of categorical maps using Twitter. This &lt;a href=&quot;http://srogers.cartodb.com/viz/81916204-c392-11e3-bcbf-0e230854a1cb/embed_map?title=true&amp;amp;description=true&amp;amp;search=true&amp;amp;shareable=true&amp;amp;cartodb_logo=true&amp;amp;layer_selector=false&amp;amp;legends=true&amp;amp;scrollwheel=true&amp;amp;fullscreen=true&amp;amp;sublayer_options=1%7C1&amp;amp;sql&amp;amp;sw_lat=11.821410465077479&amp;amp;sw_lon=60.335443281250036&amp;amp;ne_lat=27.525102650180578&amp;amp;ne_lon=99.93016984375004&quot;&gt;India Elections Map&lt;/a&gt; is one or this &lt;a href=&quot;https://siggyf.cartodb.com/viz/a3f7aec6-788b-11e4-a565-0e853d047bba/embed_map&quot;&gt;Alcatraz Escape Map&lt;/a&gt; via &lt;a href=&quot;http://www.washingtonpost.com/news/morning-mix/wp/2014/12/15/the-alcatraz-escapees-could-have-survived-and-this-interactive-model-proves-it/&quot;&gt;WashPo&lt;/a&gt; is another.&lt;/p&gt;

&lt;p&gt;There are a couple of funny things about categorical maps in Torque. The first is the default use of the aggregate function (the same one we looked at above). In the typical categorical Torque map, the aggregation function is,&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-css&quot; data-lang=&quot;css&quot;&gt;  &lt;span class=&quot;nt&quot;&gt;-torque-aggregation-function&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&quot;CDB_Math_Mode(category_name)&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;The &lt;strong&gt;category_name&lt;/strong&gt; column holds an integer for each category and &lt;strong&gt;CDB_Math_Mode&lt;/strong&gt; returns the &lt;a href=&quot;http://en.wikipedia.org/wiki/Mode_%28statistics%29&quot;&gt;mode&lt;/a&gt; or category of most occurrences for each Torque pixel over time. That is fine, but it means that the color rendered is going to be &lt;em&gt;either/or&lt;/em&gt; and then blending is all funny because you may have missed pixels where there was some of each. Let’s get crazy and fix this.&lt;/p&gt;

&lt;p&gt;I saw a possible way forward in the methods described in Stamen’s &lt;a href=&quot;http://content.stamen.com/trees-cabs-crime_in_venice&quot;&gt;Trees, Cabs &amp;amp; Crime&lt;/a&gt; map. Basically, we can do some nice things with color composite. Let’s start with a default Torque Category map with two colors, &lt;strong&gt;aqua&lt;/strong&gt; and &lt;strong&gt;magenta&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a class=&quot;embedly_map&quot; href=&quot;https://team.cartodb.com/u/andrew/viz/39444bea-e53a-11e4-805f-0e4fddd5de28/embed_map&quot;&gt;https://team.cartodb.com/u/andrew/viz/39444bea-e53a-11e4-805f-0e4fddd5de28/embed_map&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;(click to load map)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;cartocss&lt;/strong&gt;&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-css&quot; data-lang=&quot;css&quot;&gt;&lt;span class=&quot;nt&quot;&gt;Map&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-frame-count&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;128&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-animation-duration&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-time-attribute&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&quot;postedtime&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-aggregation-function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&quot;CDB_Math_Mode(category_name)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-resolution&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-data-aggregation&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cumulative&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;comp-op&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;darken&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-fill-opacity&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0.7&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-line-color&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;#FFF&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-line-width&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-line-opacity&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-type&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ellipse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-width&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-fill&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;white&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
   &lt;span class=&quot;py&quot;&gt;marker-fill&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;#ff00ff&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
   &lt;span class=&quot;py&quot;&gt;marker-fill&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;aqua&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;McDonalds is killing it… but there is a problem, what happens when a pixel has both values in it? It is clear that when two pixels adjacent to each other overlap we get the blending effect that makes them blue. But we need to blend them somehow using our aggregate function. Here is a simple way,&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-css&quot; data-lang=&quot;css&quot;&gt;  &lt;span class=&quot;nt&quot;&gt;-torque-aggregation-function&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&quot;sum(distinct(category_name))&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;The idea here is simple, now when all the values in a pixel are = 1, the sum of distinct is 1. When all the values are 2, the sum of distinct is 2. When the values are mixed with either 1 or 2, the sum of distinct is 3. So now we just need to color the pixels where &lt;strong&gt;value=3&lt;/strong&gt; to be the already blended color. Here goes,&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;cartocss&lt;/strong&gt;&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-css&quot; data-lang=&quot;css&quot;&gt;&lt;span class=&quot;nt&quot;&gt;Map&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-frame-count&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;128&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-animation-duration&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-time-attribute&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&quot;postedtime&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-aggregation-function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&quot;sum(distinct(category_name))&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-resolution&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-data-aggregation&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cumulative&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;comp-op&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;darken&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-fill-opacity&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0.7&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-line-color&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;#FFF&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-line-width&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-line-opacity&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-type&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ellipse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-width&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-fill&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;white&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
   &lt;span class=&quot;py&quot;&gt;marker-fill&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;#ff00ff&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
   &lt;span class=&quot;py&quot;&gt;marker-fill&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;aqua&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
   &lt;span class=&quot;py&quot;&gt;marker-fill&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;blue&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Which now looks more &lt;em&gt;mixed&lt;/em&gt;,&lt;/p&gt;

&lt;p&gt;&lt;a class=&quot;embedly_map&quot; href=&quot;https://team.cartodb.com/u/andrew/viz/059b500e-e53a-11e4-b66d-0e4fddd5de28/embed_map&quot;&gt;https://team.cartodb.com/u/andrew/viz/059b500e-e53a-11e4-b66d-0e4fddd5de28/embed_map&lt;/a&gt;&lt;/p&gt;

&lt;h4 id=&quot;why-is-it-neat-2&quot;&gt;Why is it neat?&lt;/h4&gt;

&lt;p&gt;What!? Why would you ask that? This is just an early stab at how to mix dynamic SQL and some really cool color compositing on the client side Torque rendering. Play with it, I’m sure you’ll find some neat things here.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;There is a pretty nice way to do it with three categories too, but I’ll leave that for you to work out.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Now, let’s combine that with our first method above, static torque.&lt;/p&gt;

&lt;iframe width=&quot;100%&quot; height=&quot;420&quot; frameborder=&quot;0&quot; src=&quot;https://team.cartodb.com/u/andrew/viz/1fa4f32e-e553-11e4-a74b-0e853d047bba/embed_map&quot; allowfullscreen=&quot;&quot; webkitallowfullscreen=&quot;&quot; mozallowfullscreen=&quot;&quot; oallowfullscreen=&quot;&quot; msallowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;

&lt;p&gt;Simple change here,&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;cartocss&lt;/strong&gt;&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-css&quot; data-lang=&quot;css&quot;&gt;&lt;span class=&quot;nt&quot;&gt;Map&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-frame-count&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-animation-duration&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-time-attribute&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&quot;postedtime&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-aggregation-function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&quot;sum(distinct(category_name))&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-resolution&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-data-aggregation&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cumulative&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;comp-op&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;darken&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-fill-opacity&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-line-color&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;#FFF&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-line-width&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-line-opacity&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-type&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;rectangle&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-width&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-fill&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;white&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
   &lt;span class=&quot;py&quot;&gt;marker-fill&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;#ff00ff&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
   &lt;span class=&quot;py&quot;&gt;marker-fill&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;aqua&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
   &lt;span class=&quot;py&quot;&gt;marker-fill&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;blue&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;h2 id=&quot;category-maps-that-diverge&quot;&gt;Category maps that diverge&lt;/h2&gt;

&lt;p&gt;So the ability to embed SQL into the &lt;strong&gt;aggregation-function&lt;/strong&gt; really makes do some extreme things sometimes. The other day, I started to look into solving a new problem, &lt;em&gt;what happens when there is only one record of category 1 and ninety-nine records of category 2&lt;/em&gt;? We will probably have some nice easy ways to do this in the future, but for now, the solution is actually possible with SQL and a bit of playing around.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-css&quot; data-lang=&quot;css&quot;&gt;  &lt;span class=&quot;nt&quot;&gt;-torque-aggregation-function&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&quot;100+sum(floor(category_name*1.5)-2)&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;I wont go into this too much, since it is a bit of a hack. But if our category_name column is either a 1 or a 2, this converts them to -1 or +1 and then sums them all up. The greater negative it is, the greater preference there is to the 1 category in the pixel, the greater it is positive the greater the preference to the 2 category. Torque doesn’t return a negative value, so I add 100 to be safe. Here is the start of defining that map,&lt;/p&gt;

&lt;p&gt;&lt;a class=&quot;embedly_map&quot; href=&quot;https://team.cartodb.com/u/andrew/viz/55d096d2-e536-11e4-9266-0e6e1df11cbf/embed_map&quot;&gt;https://team.cartodb.com/u/andrew/viz/55d096d2-e536-11e4-9266-0e6e1df11cbf/embed_map&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;cartocss&lt;/strong&gt;&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-css&quot; data-lang=&quot;css&quot;&gt;&lt;span class=&quot;c&quot;&gt;/** torque_cat visualization */&lt;/span&gt;

&lt;span class=&quot;nt&quot;&gt;Map&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-frame-count&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;128&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-animation-duration&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-time-attribute&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&quot;postedtime&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-aggregation-function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&quot;100+sum(floor(category_name*1.5)-2)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-resolution&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;py&quot;&gt;-torque-data-aggregation&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cumulative&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;comp-op&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;darken&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-fill-opacity&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0.3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-line-color&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;#FFF&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-line-width&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-line-opacity&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-type&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ellipse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-width&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
   &lt;span class=&quot;py&quot;&gt;marker-fill&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;blue&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;104&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-fill-opacity&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0.5&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;96&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-fill-opacity&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0.5&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;110&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-fill-opacity&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0.7&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;90&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;marker-fill-opacity&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0.7&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
   &lt;span class=&quot;py&quot;&gt;marker-fill&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;aqua&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;nf&quot;&gt;#hamburgers&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
   &lt;span class=&quot;py&quot;&gt;marker-fill&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;magenta&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;h2 id=&quot;conclusions-that-are-concluding&quot;&gt;Conclusions that are concluding&lt;/h2&gt;

&lt;p&gt;That’s a quick brain-dump of some fun things to do with Torque. Using combinations of the aggregation method and the variable CartoCSS, you can do some pretty far out things. Give it a try!&lt;/p&gt;

&lt;p&gt;&lt;em&gt;btw. if you noticed something funky happening in some of the pixels on the maps, it’s because i’m doing unnormal things with torque. you can follow the &lt;a href=&quot;https://github.com/CartoDB/torque/issues/166&quot;&gt;ticket here&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;script type=&quot;text/javascript&quot;&gt;

    var main = function() {
        $(&apos;.embedly_map&apos;).embedly({
          key: &apos;e1ded84aa14d41c7a913bc43cd0513d1&apos;,
          query: {luxe: 1},
          display: function(obj){
            // Overwrite the default display.
            if (obj.type === &apos;video&apos; || obj.type === &apos;rich&apos;){
              // Figure out the percent ratio for the padding. This is (height/width) * 100
              var ratio = ((obj.height/obj.width)*75).toPrecision(4) + &apos;%&apos;
              if(obj.width&lt;400) ratio = ((300/obj.width)*75).toPrecision(4) + &apos;%&apos;;
              // Wrap the embed in a responsive object div. See the CSS here!
              var div = $(&apos;&lt;div class=&quot;responsive-object&quot;&gt;&apos;).css({
                paddingBottom: ratio
              });
              // Add the embed to the div.
              div.html(obj.html);
              // Replace the element with the div.
              $(this).replaceWith(div);
            }
          }
        });
    };
    window.onload = main;
&lt;/script&gt;

</description>
        <pubDate>Fri, 17 Apr 2015 00:00:00 +0000</pubDate>
        <link>https://andrewxhill.com/blog/2015/04/17/torque-unknown/</link>
        <guid isPermaLink="true">https://andrewxhill.com/blog/2015/04/17/torque-unknown/</guid>
        
        <category>cartography</category>
        
        <category>torque</category>
        
        <category>methods</category>
        
        
        <category>blog</category>
        
      </item>
    
      <item>
        <title>In defense of burger cartography</title>
        <description>&lt;h2 id=&quot;the-future-of-cartography-wont-be-defined-by-you&quot;&gt;The future of cartography wont be defined by you&lt;/h2&gt;

&lt;p&gt;The origin of CartoDB is a curious story, but it can be summed up nicely as &lt;em&gt;a collective of environmentalists, technolgists, and designers that decided maps shouldn’t remain difficult to create just because old school software hadn’t been brought up to speed with modern technology&lt;/em&gt;. I’ve worked at CartoDB since the beginning, which has been, to say the least, a trip. One thing that I’ve learned, is that I will never learn enough. Or to say it another way, I never know quite what I’m talking about because what I’m seeing has never been talked about before. Nowhere is this lesson more apparent than in cartography.&lt;/p&gt;

&lt;h2 id=&quot;goodbye-old-world&quot;&gt;Goodbye old world&lt;/h2&gt;

&lt;p&gt;I think the hardest thing about cartography is that people often get self referentially dogmatic about some previously decided laws of cartography. “Rainbow maps are evil”, “Normalization or off to the gallows”, “Colorbrewer or it didn’t happen!”. From what I know though, cartography is a field that is nowhere near a science. The most exciting thing about cartography is that it is an interesting mixing pot of cognitive science, geography, politics, storytelling, design, and probably 5 other field that I’m too drunk to remember.&lt;/p&gt;

&lt;p&gt;Like many other fields, the cartography thing is changing fast. I like to point out how many other non-scientific and scientific fields have many times in their history gotten stuck in local optima. Dogma sets in, the optima sticks around as &lt;em&gt;almost laws&lt;/em&gt;, and then some Indiana Joneseque hero comes in and shows that there is a taller mountain through the clouds. Entire fields change their text books, and the history of mistakes is sorta forgotten.&lt;/p&gt;

&lt;p&gt;The dogma of cartography is certain to be overturned by new discoveries, preferences, and norms from now until forever. This is the second most exciting part about cartography, the bariers to engaging with the practice have recently been lowered to such a low threshold that a casual cartographer can now explore outside the bounds of comfort for traditional cartography. My bet is that the next Indiana Joneses and Katniss Everdeens come from that group of map makers.&lt;/p&gt;

&lt;h2 id=&quot;some-early-indicators-at-cartodb&quot;&gt;Some early indicators at CartoDB&lt;/h2&gt;

&lt;p&gt;I was an early skeptic of &lt;a href=&quot;http://blog.cartodb.com/twitter-maps/&quot;&gt;Twitter Maps&lt;/a&gt; on CartoDB. I was pretty vocal that we needed to find ways to automate normalization, study the effects of color composition in animations, etc. We actually started work on some of these and I think that the outputs will be some new and interesting ways to deal with animation on maps. Externally too, a lot of interesting analyses &lt;a href=&quot;http://www.floatingsheep.org/2014/08/mapping-ferguson-tweets-or-more-maps.html&quot;&gt;have been published&lt;/a&gt; which help us think about the problem. I love it, that rush to understand something new.&lt;/p&gt;

&lt;p&gt;A more recent story has provided a &lt;a href=&quot;http://www.citylab.com/housing/2015/03/why-most-twitter-maps-cant-be-trusted/388586/&quot;&gt;more critical&lt;/a&gt; review of Twitter maps, but in my opinion it gets caught in the belief that mapping and map makers must all share a single motivation. At least it prompted me to finally write this blog down. It has been in my mind a lot recently. Even in my recent talk at &lt;a href=&quot;https://2015.foss4g-na.org/session/what-map&quot;&gt;FOSS4G-NA&lt;/a&gt; I devoted some time to explain the rapid shift to world of flat UIs on the web and on mobile in a matter of months, thinking about that in the context of cartography. Cartography is more than just design, so I also devoted some time looking at the real intent and outcome of the Twitter map makers (among other CartoDB users producing curious new maps). In the end, I’ve changed my mind completely. I think the Twitter maps are spot-on and achieve their objective better than you can imagine.&lt;/p&gt;

&lt;p&gt;Welcome on board the journey for the new world of cartography, your old world criticism has missed the boat.&lt;/p&gt;

&lt;iframe src=&quot;//giphy.com/embed/3zBmNY3YOBbDG&quot; width=&quot;480&quot; height=&quot;270&quot; frameborder=&quot;0&quot; style=&quot;max-width: 100%&quot; class=&quot;giphy-embed&quot; webkitallowfullscreen=&quot;&quot; mozallowfullscreen=&quot;&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;

&lt;h2 id=&quot;why&quot;&gt;Why?&lt;/h2&gt;

&lt;p&gt;I’ve thought a lot about this question actually. Let’s back up and look at Twitter in the World Cup. Here are a couple of graphics and quotes Twitter published and I’ve used in recent talks of mine.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/posts/cartography/world-cup.png&quot; alt=&quot;worldcup&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;672 million tweets during the 2014 World Cup&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/posts/cartography/bra-ger.png&quot; alt=&quot;braarg&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;35.6 tweets during Brazil v. Argentina&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You see that? Big numbers. These &lt;em&gt;big numbers&lt;/em&gt; are a great thing for Twitter, but a terrible thing for Twitter communications. What is &lt;strong&gt;35.6 million&lt;/strong&gt;? I have no idea, please tell me. I hope it is how many hate mails I get for this blog post. It is a problem shared not only by Twitter, but by other companies, scientists, and governments all the time. Now, let’s take a look at this map,&lt;/p&gt;

&lt;iframe src=&quot;http://cartodb.com/v/worldcup/match/?TC=x&amp;amp;vis=30acae6a-0a51-11e4-8918-0e73339ffa50&amp;amp;h=t&amp;amp;t=Germany,B40903%7CArgentina,5CA2D1&amp;amp;m=7%2F13%2F2014%2016:00:00%20GMT,7%2F12%2F2014%2018:35:00GMT&amp;amp;g=147%7C#/2/-11.9/-8.1/0&quot; width=&quot;100%&quot; height=&quot;520&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot; webkitallowfullscreen=&quot;&quot; mozallowfullscreen=&quot;&quot; oallowfullscreen=&quot;&quot; msallowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;

&lt;p&gt;That is &lt;strong&gt;32 million&lt;/strong&gt;. Paired with a raw number, it is brilliant. Twitter is making no comment about relative activity from one location to another, or that the trends of tweets in the Ozarks indicate a strong German preference and possibly early settling. Nope. Nothing. They are communicating the impact and relevance of Twitter in an online and global conversation. I can see very literally what they mean when they say, &lt;strong&gt;32 million&lt;/strong&gt;. It’s a lot of damn tweets with a huge global impact.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Deceptive? Slightly. Effective? Definitely.&lt;/em&gt;&lt;/p&gt;

&lt;h2 id=&quot;burger-cartography&quot;&gt;Burger cartography&lt;/h2&gt;

&lt;p&gt;Okay, I can tell from the tilt of your head that you think this is all a bit too handwavy for your quantified mapping practices. Well it is. I don’t have time for writing academic papers anymore, but others are working on it all the time and I think that over the next few years, to paraphrase Donald Rumsfeld, you’re going to find things that you thought you knew were not true and that there are other things you didn’t know that you didn’t know.&lt;/p&gt;

&lt;p&gt;We are always in a moment just before the future of cartography. At this moment, map makers are no longer motivated purely by sharing a scientific understanding. The last couple centuries have shown us that map motivations often fall into marketing, sales, storytelling, design, and firefighting to name a few. The local optima discovered by the cartography of the past two centuries is being quickly expanded to fit the needs of a new generation of map makers or descended entirely to see if there are nearby slopes to ascend.&lt;/p&gt;

&lt;p&gt;So what is &lt;em&gt;burger cartography&lt;/em&gt;? It is what I’m going to start calling this exploratory playfulness with maps. I tweeted a couple weeks ago about a map I found,&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://twitter.com/andrewxhill/status/576442676419125248&quot;&gt;&lt;img src=&quot;/img/posts/cartography/burger.png&quot; alt=&quot;tweet&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I’m sure that some people saw my tweet and were like, “Oh ziing, good one! Use markers and proper color composition or get off the map!”. But the tweet was genuine love for this map. It tickles me and makes me really think a lot about how our rules are temporary. I’m ready to learn.&lt;/p&gt;

&lt;p&gt;Get ready to fall in love with mapping all over again!&lt;/p&gt;

</description>
        <pubDate>Sat, 28 Mar 2015 00:00:00 +0000</pubDate>
        <link>https://andrewxhill.com/blog/2015/03/28/in-defense-of-burger-cartography/</link>
        <guid isPermaLink="true">https://andrewxhill.com/blog/2015/03/28/in-defense-of-burger-cartography/</guid>
        
        <category>cartography</category>
        
        <category>drunk</category>
        
        
        <category>blog</category>
        
      </item>
    
      <item>
        <title>Science policy and the web</title>
        <description>&lt;h2 id=&quot;background&quot;&gt;Background&lt;/h2&gt;

&lt;p&gt;On March 18-21, 2015, I attended a workshop to explore challenges around using data visualization in science and science policy. The workshop was the 2nd of a series of workshops and many of the write-ups from both sessions can be found on the &lt;a href=&quot;https://ecoviz.wordpress.com/&quot;&gt;EcoViz blog&lt;/a&gt;. The workshop this time around was very focused on reporting outputs from &lt;a href=&quot;http://www.ipcc.ch/&quot;&gt;IPCC&lt;/a&gt; and &lt;a href=&quot;http://www.ipbes.net/&quot;&gt;IPBES&lt;/a&gt;. So, taken with a grain of salt, here are my thoughts coming out of the workshop.&lt;/p&gt;

&lt;h2 id=&quot;current-process&quot;&gt;Current process&lt;/h2&gt;

&lt;p&gt;I didn’t know quite what to expect from the workshop going in, but data visualization for science communication has been a core interest of mine for ten years now, so I knew the workshop would be interesting. Particularly, I was curious to see how ideas have evolved in recent years to incorporate community changes and technological advances. Let me start with the first, community changes.&lt;/p&gt;

&lt;h2 id=&quot;community-changes&quot;&gt;Community changes&lt;/h2&gt;

&lt;p&gt;There have been a lot of changes to both the communities consuming and those reporting on science policy since the first IPCC report was completed in 1990. The first and most obvious change is the Internet. But more specifically, we are living in a world that has been adapting quickly to broad demands for open access, open data, and open source. Those demands have been specifically focused on governmental reporting agencies and the results can be seen in open data portals at all levels of government.&lt;/p&gt;

&lt;p&gt;The workshop touched on some of these concepts, but unfortunately we didn’t spend much time discussing or evaluating solutions directly. One thing I did gain was that IPBES still has very few protocols in place for making data open to the community.&lt;/p&gt;

&lt;p&gt;An argument can be made that protocols should be adopted to improve engagement or for the sake of repeatability. Institutions such as &lt;a href=&quot;http://www.data.gov/&quot;&gt;Data.gov&lt;/a&gt;, &lt;a href=&quot;http://blogs.plos.org/everyone/2014/02/24/plos-new-data-policy-public-access-data-2/&quot;&gt;PLOS&lt;/a&gt;, and the &lt;a href=&quot;http://blogs.worldbank.org/opendata/&quot;&gt;World Bank&lt;/a&gt; all provide slightly different models and rational to evaluate. No matter the reason chosen, IPBES and other organizations should get on board. 
If there is a third workshop in the series, it would be very valuable to look deeper at this subject. There is no better time than now to implement protocols for environmental reporting agencies to adopt open data strategies.&lt;/p&gt;

&lt;h2 id=&quot;changes-in-technology&quot;&gt;Changes in technology&lt;/h2&gt;

&lt;p&gt;There seems to be minimal changes in the visualization generated by IPBES today versus IPCC 25 years ago. This is a shame. Web technologies have changed the field with regards to what is possible using data visualization. Features such as interactivity, responsive visualizations, and live data filtering are just a few of many reasons why the web is often superior to static data visualization.&lt;/p&gt;

&lt;p&gt;It seems that IPBES and other organizations would start looking for a “web first” strategy to reporting. While print seems to be a stalwart tool of policy reporting, in the words of another workshop attendee, “the internet seems to be catching on”. Web technologies would give the visualization experts at IPBES an entirely new toolbox to build and design visualizations for policy makers and the public.&lt;/p&gt;

&lt;p&gt;The internet is full of successful migrations of policy focused data visualization moved to the web. &lt;a href=&quot;http://www.globalforestwatch.org/&quot;&gt;Global Forest Watch&lt;/a&gt; and &lt;a href=&quot;http://www.thepolicyclimate.org/&quot;&gt;Climate Policy Interactive&lt;/a&gt; are two I am familiar with and would warrant a closer look.&lt;/p&gt;

&lt;h2 id=&quot;maps--conclusion&quot;&gt;Maps &amp;amp; Conclusion&lt;/h2&gt;

&lt;p&gt;I couldn’t write a blog post without mentioning maps. As I stated in my presentation, we have entered an era of Pop-maps, where anyone with a browser and an idea can make a map to explore or communicate an idea. Today, the Reddit community, &lt;a href=&quot;http://www.reddit.com/r/mapporn&quot;&gt;Mapporn&lt;/a&gt; has a quarter million “armchair explorers”. Maps have gone nuts.&lt;/p&gt;

&lt;p&gt;While the number of map enthusiasts is impressive, it is nothing compared to the greater general visualization community. The Reddit community &lt;a href=&quot;http://www.reddit.com/r/dataisbeautiful&quot;&gt;Dataisbeautiful&lt;/a&gt; has over 2.5 million. Science Policy makers need to work fast to shift their thinking toward the web. If the goal is to engage and inform the world’s community, there is no better platform than the web.&lt;/p&gt;

</description>
        <pubDate>Thu, 26 Mar 2015 00:00:00 +0000</pubDate>
        <link>https://andrewxhill.com/blog/2015/03/26/Data-visualization-for-policy/</link>
        <guid isPermaLink="true">https://andrewxhill.com/blog/2015/03/26/Data-visualization-for-policy/</guid>
        
        <category>Mark Twain</category>
        
        <category>mapping</category>
        
        <category>stories</category>
        
        <category>data visualization</category>
        
        
        <category>blog</category>
        
      </item>
    
      <item>
        <title>Mapping the world of Mark Twain</title>
        <description>&lt;h3 id=&quot;background&quot;&gt;Background&lt;/h3&gt;

&lt;p&gt;I was recently walking down the street with a good friend of mine. It was really late at night and I was doing what I often do in those situations, filling his ear with some story or another. It about some crazy thing I had done once and my hands were flailing a lot and I was getting really loud on the quiet streets. I love telling stories. After I was done my friend made a comment. It isn’t anything new exactly, I’ve just never heard someone say it after listening to a story I was telling. My friend began talking about how life is short and how we are all sooo limited in the places we can go or the things we can see. He talked about stories being a cheat in life, letting you go places and be a part of situations you would never be able to in your own life. He made the argument that, to the brain, stories are as good as the fountain of youth.&lt;/p&gt;

&lt;h3 id=&quot;fountain-of-youth&quot;&gt;Fountain of youth&lt;/h3&gt;

&lt;p&gt;The idea is a really interesting one and so it lingered in my thoughts. Really though, it’s fundamental. Heck, that’s the thesis of &lt;a href=&quot;http://en.wikipedia.org/wiki/Reading_Rainbow&quot;&gt;Reading Rainbow&lt;/a&gt;! Still, I got really excited by thinking about storytellers and their descriptions of the world. So many stories are dotted with the street signs and mountain peaks of the real world. Take the &lt;a href=&quot;http://en.wikipedia.org/wiki/Odyssey&quot;&gt;Odyssey&lt;/a&gt; for example, the story is like a giant written map that takes you to the reaches of the Mediterranean sea. The story IS the map!&lt;/p&gt;

&lt;p&gt;What I really want to do is understand that interplay between the two. How are maps stories? And how are stories maps? I thought it would be interesting to start literally and to turn a few stories back into real maps, to actually take the written words of authors and create dots and lines that we can view. So, I began looking for some datasets about localities in books.&lt;/p&gt;

&lt;h3 id=&quot;mapping-mark-twain&quot;&gt;Mapping Mark Twain&lt;/h3&gt;

&lt;p&gt;This weekend I was looking through &lt;a href=&quot;http://gutenberg.org&quot;&gt;Project Gutenberg&lt;/a&gt; and found something even better than a single book, I found the complete works of Mark Twain. I remembered how geographic the stories of Twain are and so knew immediately I had found a treasure chest. For the last few days, I’ve been parsing the books line-by-line and trying to find the localities that make up the world of Mark Twain. In the end, the data has over 20,000 localities. Even counting the cases where sir names are mistaken for places, it is a really cool dataset. What I’ll show you here is only the tip of the iceberg. I put the results together as an &lt;a href=&quot;/maps/writers/twain/index.html&quot;&gt;interactive map&lt;/a&gt; that maybe will inspire you to take a journey with Twain on your own, extend your life a little.&lt;/p&gt;

&lt;h4 id=&quot;click-here-to-explore-the-map&quot;&gt;&lt;a href=&quot;/maps/writers/twain/index.html&quot;&gt;Click here to explore the map&lt;/a&gt;&lt;/h4&gt;

&lt;p&gt;&lt;a href=&quot;/maps/writers/twain/index.html&quot;&gt;&lt;img src=&quot;/img/posts/twains_world.png&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;
Every location written about by Mark Twain, connected in order&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/maps/writers/twain/index.html&quot;&gt;&lt;img src=&quot;/img/posts/twain_usa.png&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;
Close-up of locations in the United States&lt;/p&gt;

&lt;h3 id=&quot;about-the-map&quot;&gt;About the map&lt;/h3&gt;

&lt;p&gt;Use the menu to select each published work by Mark Twain or look at them as a whole. You can also toggle between the line map and an interactive point map that will give you links to the passages.&lt;/p&gt;

&lt;p&gt;I built the map using &lt;a href=&quot;http://cartodb.com&quot;&gt;CartoDB&lt;/a&gt; and all data came from &lt;a href=&quot;http://gutenberg.org&quot;&gt;Project Gutenberg&lt;/a&gt;. If you want to start making your own maps, CartoDB is free to try and I’ve made a bunch of &lt;a href=&quot;http://developers.cartodb.com/tutorials.html&quot;&gt;tutorials for you to get started&lt;/a&gt;.&lt;/p&gt;

</description>
        <pubDate>Sun, 26 Jan 2014 00:00:00 +0000</pubDate>
        <link>https://andrewxhill.com/blog/2014/01/26/Mapping-the-world-of-Mark-Twain/</link>
        <guid isPermaLink="true">https://andrewxhill.com/blog/2014/01/26/Mapping-the-world-of-Mark-Twain/</guid>
        
        <category>Mark Twain</category>
        
        <category>mapping</category>
        
        <category>stories</category>
        
        <category>data visualization</category>
        
        
        <category>blog</category>
        
      </item>
    
      <item>
        <title>First post of the decade</title>
        <description>&lt;h2 id=&quot;its-been-a-while&quot;&gt;It’s been a while&lt;/h2&gt;

&lt;p&gt;I’ve been meaning to get back into blogging for quite some time now. The last time I had my own blog was back in 2006. It was a blog I kept as part of an undergraduate research project. The blog, called Guiology, is now gone, forever lost save perhaps some cached versions here or there. The site was meant to deliver details about my exploration of the interface between information design, biology, and data exploration. A big part of that project was some early research I was doing to visualize the spread of influenza using Google Earth. The image on the right was a screenshot first published on the blog, you can still see an early post about it over on &lt;a href=&quot;http://ogleearth.com/2006/05/google-earth-geospatial-tree-map-alternative/&quot;&gt;Ogle Earth&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://andrewxhill.com/img/posts/guiology.jpg&quot; alt=&quot;Guiology&quot; class=&quot;image-pull-right&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The site was taken down because we ended up moving a lot of the work to a published paper. I’m not sure why we chose that workflow, but in the end, that’s just the way it is. It is a shame though because looking back it would be nice to have a blog to help understand how I got here from there :)&lt;/p&gt;

&lt;p&gt;Since that time I’ve &lt;a href=&quot;http://blog.vizzuality.com/&quot;&gt;written&lt;/a&gt; &lt;a href=&quot;http://blog.notesfromnature.org/2013/07/01/stats_first_look/&quot;&gt;so&lt;/a&gt; &lt;a href=&quot;http://mappinglife.wordpress.com/2011/04/&quot;&gt;many&lt;/a&gt; &lt;a href=&quot;http://okcon.org/2013/08/30/okcon-2013-guest-post-using-cartodb-in-open-data/&quot;&gt;blog&lt;/a&gt; &lt;a href=&quot;http://blog.cartodb.com/&quot;&gt;posts&lt;/a&gt;, but always as part of a collaborative project, never just my own. Now, at the urging of a few people (&lt;a href=&quot;http://twitter.com/eightysteele&quot;&gt;eightysteele&lt;/a&gt; in particular) I’ve finally gotten around to putting up my own site with my own blog. I guess the only thing that remains is to figure out if I have anything interesting to say.&lt;/p&gt;
</description>
        <pubDate>Mon, 16 Dec 2013 00:00:00 +0000</pubDate>
        <link>https://andrewxhill.com/blog/2013/12/16/first-post-of-the-decade/</link>
        <guid isPermaLink="true">https://andrewxhill.com/blog/2013/12/16/first-post-of-the-decade/</guid>
        
        <category>me</category>
        
        
        <category>blog</category>
        
      </item>
    
  </channel>
</rss>
