<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>0not -- Programming, hacking, making, and science.</title>
    <description>I am a physicist, programmer, maker, and tinkerer. These are my creations.
</description>
    <link>http://0not.net/</link>
    <atom:link href="http://0not.net/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Sat, 17 Mar 2018 03:22:20 +0000</pubDate>
    <lastBuildDate>Sat, 17 Mar 2018 03:22:20 +0000</lastBuildDate>
    <generator>Jekyll v3.6.2</generator>
    
      <item>
        <title>Testing StackEdit</title>
        <description>&lt;p&gt;This is just a test of a workflow I’m hoping to implement on this and another blog. Hopefully, by using StackEdit, I will have a much smaller barrier to publishing. Once the other site is ready, I’ll post an update here.&lt;/p&gt;

&lt;p&gt;Edit: It works!&lt;/p&gt;

&lt;p&gt;Edit 2: Testing an image: 
&lt;img src=&quot;https://lh3.googleusercontent.com/kVQQ4OcUEG0un22opMvIQnXkTHyrQ31vl1aF-llP2jRj6IX8SMpN6amLQvsD2eVGzx2CFIWRJm2h&quot; alt=&quot;Some multi-colored eggs from my brother-in-law's chickens.&quot; title=&quot;Multi-colored eggs&quot; /&gt;&lt;/p&gt;
</description>
        <pubDate>Thu, 22 Jun 2017 06:27:00 +0000</pubDate>
        <link>http://0not.net/general/2017/06/22/testing-stackedit.html</link>
        <guid isPermaLink="true">http://0not.net/general/2017/06/22/testing-stackedit.html</guid>
        
        
        <category>General</category>
        
      </item>
    
      <item>
        <title>Migration to Jekyll</title>
        <description>&lt;p&gt;I spent the last hour or so migrating from Wordpress to &lt;a href=&quot;http://jekyllrb.com&quot;&gt;Jekyll&lt;/a&gt;. I am very pleased with the results so far. I used the jekyll-import gem to import my post’s from Wordpress. It was able to grab the posts, but I had to manually fix the formatting and import the images. Luckily, I don’t have many posts, so it didn’t take long.&lt;/p&gt;

&lt;p&gt;I decided to migrate because my free tier on AWS just ran out. I don’t want to pay $15 per month just to host a blog, so I figured I would use Jekyll on github pages. As of writing, I haven’t uploaded to github yet, so we’ll see how that goes.&lt;/p&gt;

</description>
        <pubDate>Thu, 14 May 2015 20:47:40 +0000</pubDate>
        <link>http://0not.net/meta/2015/05/14/migration-to-jekyll.html</link>
        <guid isPermaLink="true">http://0not.net/meta/2015/05/14/migration-to-jekyll.html</guid>
        
        
        <category>meta</category>
        
      </item>
    
      <item>
        <title>First steps with Haskell</title>
        <description>&lt;p&gt;The other day I was bored and itching for something to do. I decided that it was about time to learn a new programming language. After awhile, I figured that I should try tackling functional programming again. Back in 2008 I tried to learn &lt;a href=&quot;https://www.haskell.org/&quot; target=&quot;_blank&quot;&gt;Haskell&lt;/a&gt;, but at the time I just didn’t have it in me. I wasn’t sure I wanted to try Haskell again, so I took a look at &lt;a href=&quot;http://www.scala-lang.org/&quot; target=&quot;_blank&quot;&gt;Scala&lt;/a&gt;, &lt;a href=&quot;http://clojure.org/&quot; target=&quot;_blank&quot;&gt;Clojure&lt;/a&gt;, and &lt;a href=&quot;http://en.wikipedia.org/wiki/Scheme_%28programming_language%29&quot; target=&quot;_blank&quot;&gt;Scheme&lt;/a&gt;. Scala and Clojure were both interesting, but I wanted to learn functional programming, so I went with Haskell. Haskell is often touted as a “purely functional programming language,” so it seemed perfect.&lt;/p&gt;

&lt;h2 id=&quot;what-ive-done-so-far&quot;&gt;What I’ve Done So Far&lt;/h2&gt;

&lt;p&gt;I started out with &lt;a href=&quot;https://tryhaskell.org/&quot; target=&quot;_blank&quot;&gt;Try Haskell&lt;/a&gt;. It is a nice introduction to some very basic language features, but you’re not going to get very far with their REPL. I don’t believe there is any state between lines, so you cannot declare functions (and use them later). But that is OK, it’s super easy to install the &lt;a href=&quot;https://www.haskell.org/platform/&quot; target=&quot;_blank&quot;&gt;Haskell Platform&lt;/a&gt; on your computer.&lt;/p&gt;

&lt;p&gt;The main resource I followed for a few days was &lt;a href=&quot;http://learnyouahaskell.com/chapters&quot; target=&quot;_blank&quot;&gt;Learn You a Haskell for Great Good&lt;/a&gt;. It’s a pretty decent book, but I couldn’t help feeling that it wasn’t really teaching me the “why” of functional programming, just the “how.”&lt;/p&gt;

&lt;p&gt;I needed some practice, so with what I had learned so far, I set out to solve some problems on &lt;a href=&quot;https://projecteuler.net/archives&quot; target=&quot;_blank&quot;&gt;Project Euler&lt;/a&gt;. For example, here is my solution to Problem 1:&lt;/p&gt;

&lt;div class=&quot;language-haskell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;-- Sum of all natural positive numbers less than 1000 that are &lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;-- divisible by 3 or 5&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;-- Ans: 233168&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;e1&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;::&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;Int&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;e1&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sum&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;..&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;999&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;`&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mod&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;`&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;||&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;`&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mod&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;`&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;5&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;That was easy! I defined a function “e1” that returns an Int. Using &lt;a href=&quot;https://wiki.haskell.org/List_comprehension&quot; target=&quot;_blank&quot;&gt;list comprehension&lt;/a&gt;, I take a list from 1 to 999 and only return numbers divisible by 3 or 5.&lt;/p&gt;

&lt;p&gt;I started reading &lt;a href=&quot;http://www.amazon.com/Real-World-Haskell-Bryan-OSullivan/dp/0596514980/ref=sr_1_1?ie=UTF8&amp;amp;qid=1424890727&amp;amp;sr=8-1&amp;amp;keywords=real+world+haskell&quot; target=&quot;_blank&quot;&gt;Real World Haskell&lt;/a&gt; (which is also available through Safari Books Online). I found it to be a much better resource. I already knew quite a bit, so I was able to fly through several chapters. Even so, those chapters did teach me more. The exercises in this book are also excellent.&lt;/p&gt;

&lt;p&gt;I’ve also tried to use a few packages from &lt;a href=&quot;https://hackage.haskell.org/packages/&quot; target=&quot;_blank&quot;&gt;Hackage&lt;/a&gt;. I wanted to plot something, so I first tried using &lt;a href=&quot;https://hackage.haskell.org/package/gnuplot&quot; target=&quot;_blank&quot;&gt;gnuplot&lt;/a&gt;. I’m a fan of gnuplot, but the Haskell bindings are a bit on the unusable side (for a newbie, at least). I settled on &lt;a href=&quot;https://hackage.haskell.org/package/easyplot&quot; target=&quot;_blank&quot;&gt;EasyPlot&lt;/a&gt; (which still uses gnuplot under the hood). I was able to plot the results from my &lt;a href=&quot;https://gist.github.com/0not/09dce776d3b4d6158b6d&quot; target=&quot;_blank&quot;&gt;radioactive decay function&lt;/a&gt; in less than two minutes! After spending hours trying to work with the gnuplot packages, I was very impressed!&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/images/haskell/Screen-Shot-2015-02-25-at-12.42.10-PM.png&quot;&gt;&lt;img src=&quot;/images/haskell/Screen-Shot-2015-02-25-at-12.42.10-PM-300x216.png&quot; alt=&quot;Radioactive decay solutions (Euler's method vs. analytical).&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Some packages on Hackage have absolutely no documentation. I would stay away from them. Some of them have mediocre documentation. Very few have what I would consider acceptable documentation, especially for beginners. The problem is, as far as I can tell, that most Haskell programmers believe the language to be self documenting. I mean, you can always &lt;a href=&quot;https://wiki.haskell.org/Determining_the_type_of_an_expression&quot; target=&quot;_blank&quot;&gt;inspect the type of a function&lt;/a&gt;, right? While I admit that is useful to know, it doesn’t help a beginner get the grasp of the language. &lt;strong&gt;If anyone who maintains a package on Hackage is reading this, please make sure you have at least one example on how to use your module(s)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The most recent resource I found is Stephen Diehl’s, &lt;a href=&quot;http://www.stephendiehl.com/what/&quot; target=&quot;_blank&quot;&gt;What I Wish I Knew When Learning Haskell&lt;/a&gt;. His section on &lt;a href=&quot;http://www.stephendiehl.com/what/#monads&quot; target=&quot;_blank&quot;&gt;monads&lt;/a&gt; helped me to understand them more than anything else.&lt;/p&gt;

&lt;h2 id=&quot;what-ill-do-next&quot;&gt;What I’ll Do Next&lt;/h2&gt;

&lt;p&gt;Learning Haskell has been extremely rewarding so far. I love the language, I love it’s type system, and I’m starting to love the community’s abundant package system. I have a few projects in mind to help me continue to learn. I would like to write a ray tracer, since &lt;a href=&quot;http://en.wikipedia.org/wiki/Ray_tracing_%28graphics%29&quot; target=&quot;_blank&quot;&gt;ray tracing&lt;/a&gt; is a recursive algorithm. Before I get to that, I will probably make a little REST API for a simple headless CMS I’m planning.&lt;/p&gt;

&lt;p&gt;I’m not sure I will ever find a real use for Haskell, but if I do then I’ll be ready. Seriously, though, someone give me an excuse to use Haskell.&lt;/p&gt;
</description>
        <pubDate>Thu, 26 Feb 2015 02:40:48 +0000</pubDate>
        <link>http://0not.net/programming/2015/02/26/first-steps-with-haskell.html</link>
        <guid isPermaLink="true">http://0not.net/programming/2015/02/26/first-steps-with-haskell.html</guid>
        
        <category>Haskell</category>
        
        <category>Programming</category>
        
        
        <category>Programming</category>
        
      </item>
    
      <item>
        <title>Pre-mortem: Using AngularJS and jQuery Mobile Together</title>
        <description>&lt;h1 id=&quot;or-how-i-wish-this-was-a-postmortem-but-im-still-working-on-the-project&quot;&gt;Or, how I wish this was a postmortem, but I’m still working on the project…&lt;/h1&gt;

&lt;p&gt;I feel like I am now the world’s leading expert on using AngularJS and jQuery Mobile together. Then again, I am one of the very few poor fools who’s actually tried. My advice: for the love of all that is good an right in the world (of which the code baby of Angular and jQM is not a part), please re-think whatever brought you to this page. I can whole-heartedly support using AngularJS. Or, if jQM is your thing, then go for it. But, if you want a mobile solution for AngularJS, &lt;em&gt;do not use&lt;/em&gt; jQuery Mobile (I have had plenty of success with &lt;a href=&quot;http://getbootstrap.com/&quot; target=&quot;_blank&quot;&gt;Bootstrap&lt;/a&gt; in other projects).&lt;/p&gt;

&lt;p&gt;Please see my &lt;a href=&quot;/web%20development/2014/03/13/using-angularjs-and-jquery-mobile.html&quot;&gt;first post&lt;/a&gt; regarding this topic.&lt;/p&gt;

&lt;p&gt;The main problem is that both frameworks want to be in charge. Yes, I said both &lt;em&gt;frameworks&lt;/em&gt;, for both are indeed, self-professedly (and inherently), frameworks. This causes all kinds of problems.&lt;/p&gt;

&lt;p&gt;If jQM loads first, it will parse the DOM, doing it’s magic on lots and lots of uncompiled Angular directives. Then when Angular gets a turn, it will parse and compile its directives, but now they are not formatted properly. This is not what we do.&lt;/p&gt;

&lt;p&gt;At my job, we’re doing it the other way. Load AngularJS first. Let it do its thing. Then let jQM do its thing. (Note, that in both cases you can’t use Angular’s routing). On the surface this seemed fine. Once I got down to the nitty gritty, I realized that Angular will continue to modify the DOM, but jQuery Mobile won’t recognize the change. Want to dynamically update a drop-down list? Great – modify the model and then perform a jQuery Mobile $(“.selector”).selectmenu(“refresh”) inside a timeout. We have dozens of these cases throughout our codebase now. Not fun.&lt;/p&gt;

&lt;p&gt;Maybe I’m an even bigger fool than it seems and I’m just missing something, but I hope not. If not, then I can confidently say I will never have to use jQM and Angular together again. Heck, I probably won’t use jQM ever again anyway.&lt;/p&gt;
</description>
        <pubDate>Wed, 15 Oct 2014 05:23:33 +0000</pubDate>
        <link>http://0not.net/web%20development/2014/10/15/pre-mortem-using-angularjs-and-jquery-mobile-together.html</link>
        <guid isPermaLink="true">http://0not.net/web%20development/2014/10/15/pre-mortem-using-angularjs-and-jquery-mobile-together.html</guid>
        
        
        <category>Web Development</category>
        
      </item>
    
      <item>
        <title>Using AngularJS and jQuery Mobile</title>
        <description>&lt;p&gt;UPDATE: Well, I was hasty. What I say here is true, but offering it as a solution is incomplete. I have run into some problems by loading Angular then jQuery Mobile. Specifically, if AngularJS is loaded first, it does not ever get change events on radio buttons. If jQM is loaded first, the form works properly. Apparently, there is a bit more work that needs to go into finding a solution. It is a bummer that &lt;a href=&quot;https://github.com/angular-widgets/angular-jqm&quot; target=&quot;_blank&quot;&gt;angular-jqm&lt;/a&gt; is no longer under development.&lt;/p&gt;

&lt;p&gt;UPDATE 2: I should really write a new post explaining this. The solution I have found is to load jQuery, AngularJS, and jQuery Mobile, &lt;em&gt;in that order!&lt;/em&gt; This way, Angular runs before jQM, but it doesn’t get locked out of the events (as explained in the previous UPDATE).&lt;/p&gt;

&lt;p&gt;—–Original—–
Skip to &lt;a href=&quot;#solution&quot;&gt;the solution&lt;/a&gt;, if that’s all you’re interested in.&lt;/p&gt;

&lt;h2 id=&quot;problem&quot;&gt;The Problem&lt;/h2&gt;

&lt;p&gt;At work we have a product that we now want to offer in a more mobile friendly environment. I was tasked with determining which libraries we should use. We were going to use jQuery Mobile for sure, but we needed something for templating. In the past we’ve used smarty and done all template work on the server-side. We wanted to steer clear of smarty and so the choice was either do “templates” with plain PHP, or use a JavaScript client-side template engine. I am a big proponent of separating logic and presentation (to an extent; I’m not a purist).&lt;/p&gt;

&lt;p&gt;I experimented with several different libraries such as &lt;a href=&quot;http://olado.github.io/doT/index.html&quot;&gt;doT.js&lt;/a&gt;, &lt;a href=&quot;http://leonidas.github.io/transparency/&quot;&gt;Transparency&lt;/a&gt;, and &lt;a href=&quot;http://akdubya.github.io/dustjs/&quot;&gt;dust&lt;/a&gt;. All of them have their pros and cons, but out of those three, doT fit the bill the most. I hadn’t previously considered AngularJS, since I didn’t think we needed two full blown frameworks, but slowly the idea of using it crept up on me. We use it on another related project, and it’s always great to be able to share talent.&lt;/p&gt;

&lt;p&gt;AngularJS has several very nice features, like data binding, services/factories/providers, and directives. Mainly, we wanted its data binding and built-in control directives (like &lt;code class=&quot;highlighter-rouge&quot;&gt;ng-repeat&lt;/code&gt;). It offers a lot of features that we don’t need, however. The great thing about AngularJS is its modularity. For example, we are letting jQM handle routing (since that’s one of its strengths), so we won’t use Angular’s routing provider. No problem! Just don’t include angular-route(.min).js.&lt;/p&gt;

&lt;p&gt;Wondering how to get jQM and AngularJS to work well together, I found an article by Simon at simonguest.com called&lt;a href=&quot;http://simonguest.com/2013/04/08/jquery-mobile-and-angularjs-working-together/&quot; target=&quot;_blank&quot;&gt;jQuery Mobile and AngularJS Working Together&lt;/a&gt;. He proposed that jQM should be loaded first, and then Angular. If he didn’t, he “found that loading AngularJS first led to some interesting (and annoying!) UI functionality.” I have found the opposite. In fact, I am writing this post to clarify a comment I left on his blog. Hopefully, he’ll read this and offer more insight into the nature of the “interesting… UI functionality” that he just briefly mentioned.&lt;/p&gt;

&lt;h2 id=&quot;solution&quot;&gt;The Solution&lt;/h2&gt;

&lt;p&gt;The correct (at least in my case) load order is to load AngularJS, then jQuery Mobile. The simple reason is that AngularJS will ignore jQuery Mobiles data- attributes, but jQM doesn’t know what to do with unexpanded Angular directives. Let’s take, for example, the situation I discussed in the &lt;a href=&quot;http://simonguest.com/2013/04/08/jquery-mobile-and-angularjs-working-together/#comment-17187&quot; target=&quot;_blank&quot;&gt;comment&lt;/a&gt; on Simon’s blog.&lt;/p&gt;

&lt;div class=&quot;language-html highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nt&quot;&gt;&amp;lt;ul&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;data-role=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;listview&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;data-inset=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;nt&quot;&gt;&amp;lt;li&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;data-role=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;list-divider&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;nt&quot;&gt;&amp;lt;li&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;ng-repeat-start=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;prod in products&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;nt&quot;&gt;&amp;lt;li&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;ng-show=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;$index == 0&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;data-role=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;list-divider&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;ng-repeat-end&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Let us define our two cases as: A) jQM first, then Angular and B) Angular first, then jQM.&lt;/p&gt;

&lt;p&gt;In case A, jQM will see an unexpanded &lt;code class=&quot;highlighter-rouge&quot;&gt;ng-repeat-start/end&lt;/code&gt;. It will apply styles to the list elements, such as &lt;code class=&quot;highlighter-rouge&quot;&gt;ui-first-child&lt;/code&gt; and &lt;code class=&quot;highlighter-rouge&quot;&gt;ui-last-child&lt;/code&gt;. The first &lt;code class=&quot;highlighter-rouge&quot;&gt;list-divider&lt;/code&gt; in the ul is fine to be labeled with class &lt;code class=&quot;highlighter-rouge&quot;&gt;ui-first-child&lt;/code&gt;. However, the second &lt;code class=&quot;highlighter-rouge&quot;&gt;list-divider&lt;/code&gt; (with the conditional statement), should not be labeled as &lt;code class=&quot;highlighter-rouge&quot;&gt;ui-last-child&lt;/code&gt;, because there will possibly be more products later. If there are more products, then this &lt;code class=&quot;highlighter-rouge&quot;&gt;list-divider&lt;/code&gt; will &lt;em&gt;never&lt;/em&gt; be the last child. Here is a slice of the left-most side of a three product list:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/images/angular/Screen-Shot-2014-03-13-at-3.15.56-PM.png&quot;&gt;&lt;img class=&quot;alignnone size-thumbnail wp-image-59&quot; alt=&quot;jQM and AngularJS Wrong&quot; src=&quot;/images/angular/Screen-Shot-2014-03-13-at-3.15.56-PM-56x150.png&quot; width=&quot;56&quot; height=&quot;150&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For case B, AngularJS will run first and expand the &lt;code class=&quot;highlighter-rouge&quot;&gt;ng-repeat&lt;/code&gt; directive. That modified DOM is what jQM sees. Now jQM can appropriately style the elements. Here is the same slice, but with Angular loaded first:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/images/angular/Screen-Shot-2014-03-13-at-3.16.30-PM.png&quot;&gt;&lt;img class=&quot;alignnone size-thumbnail wp-image-60&quot; alt=&quot;AngularJS and jQM Correct&quot; src=&quot;/images/angular/Screen-Shot-2014-03-13-at-3.16.30-PM-48x150.png&quot; width=&quot;48&quot; height=&quot;150&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&quot;conclusion&quot;&gt;The Conclusion&lt;/h2&gt;

&lt;p&gt;In summary, here is what I am doing (with no adverse effects, so far):&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;At the bottom of &lt;code class=&quot;highlighter-rouge&quot;&gt;body&lt;/code&gt;, load AngularJS and then jQM&lt;/li&gt;
  &lt;li&gt;Use jQM for routing (which is the default, as long as you don’t include ngRoute)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thanks for reading. Comment below if you have anything to add!&lt;/p&gt;
</description>
        <pubDate>Fri, 14 Mar 2014 03:08:07 +0000</pubDate>
        <link>http://0not.net/web%20development/2014/03/14/using-angularjs-and-jquery-mobile.html</link>
        <guid isPermaLink="true">http://0not.net/web%20development/2014/03/14/using-angularjs-and-jquery-mobile.html</guid>
        
        <category>angular</category>
        
        <category>angularjs</category>
        
        <category>jquery mobile</category>
        
        <category>jqm</category>
        
        
        <category>Web Development</category>
        
      </item>
    
      <item>
        <title>How to patch a transmission like a boss</title>
        <description>&lt;p&gt;This post could be just as aptly titled, “How to be an idiot in one easy step!” I’m going to share an experience I had last year as I was starting the final leg of a 1,000 mile road trip. This post is more funny than educational, so go ahead and laugh. At me. I deserve it.&lt;/p&gt;

&lt;p&gt;I drive a 1995 Toyota 4Runner, with a 5 speed manual transmission. It is a fun vehicle that has easily taken me across deserts and into mountains. Last year I hit 285,000 miles. The engine is original, but was partially rebuilt at 245,000 miles.&lt;/p&gt;

&lt;p&gt;I was in Salt Lake City, driving from Southern California to Idaho, a distance of almost exactly 1,000 miles, when I started experiencing some problems. I heard a buzzing sound first, but ignored it because I thought it was my wheel bearing (which was bad). A few minutes later, traveling at 65 mph, my car started shaking violently. I could no longer see clearly because of the rapid vibrations, so I made my way on faith to the shoulder. The shaking was so intense, that my CB antenna broke off at the base, right above the mounting spring. I came to a stop, safely on the shoulder and got out to inspect the damage. To my surprise, the front drive shaft had seized. &lt;em&gt;Strange&lt;/em&gt;, I thought, &lt;em&gt;the front drive line should not have been engaged&lt;/em&gt;. Well, I got back in my car and limped to the exit ramp (which thankfully was only 100 feet away). I continued limping about a quarter of a mile until I arrived in a Walmart parking lot.&lt;/p&gt;

&lt;p&gt;If I only knew at the time that my A.D.D. (Automatic Disconnecting Differential) was manually engaged, I could have avoided limping by forcing it to disengage. In fact, I could have avoided the entire circumstance! Unfortunately, hindsight is 20/20.&lt;/p&gt;

&lt;p&gt;After parking, I got out to inspect the damage and remove the drive shaft. I noticed, to great displeasure, that not only had the drive line seized, it had literally exploded. There was a hole in the transmission casing, just above the oil level, that was just about large enough to fit my little finger into. &lt;em&gt;Wonderful, what am I to do about that&lt;/em&gt;?&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/images/transmission/hole1.jpg&quot;&gt;&lt;img src=&quot;/images/transmission/hole1-150x150.jpg&quot; alt=&quot;Hole in transmission thumbnail&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It is amazing how quickly you can come up with solutions when you really need to. And that’s when I thought of this:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/images/transmission/patch.jpg&quot;&gt;&lt;img src=&quot;/images/transmission/patch-150x150.jpg&quot; alt=&quot;Mountain Dew patch on transmission thumbnail&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ya, that is J-B Weld, QuikSteel, and part of a Mountain Dew can. If I had known that my vacuum lines were switched, I could have avoided this fiasco. Hey, but at least my transmission’s got style now! (Oh, and my drive shafts are always well-lubed).&lt;/p&gt;
</description>
        <pubDate>Wed, 19 Feb 2014 15:06:22 +0000</pubDate>
        <link>http://0not.net/metal/vehicle/2014/02/19/how-to-patch-a-transmission-like-a-boss.html</link>
        <guid isPermaLink="true">http://0not.net/metal/vehicle/2014/02/19/how-to-patch-a-transmission-like-a-boss.html</guid>
        
        <category>4runner</category>
        
        <category>transmission</category>
        
        <category>mountain dew</category>
        
        <category>j-b weld</category>
        
        <category>quiksteel</category>
        
        <category>ghetto hack</category>
        
        
        <category>Metal</category>
        
        <category>Vehicle</category>
        
      </item>
    
      <item>
        <title>Coffee Can Aluminum Smelter</title>
        <description>&lt;p&gt;A little over a year ago I revisited a smelting hack that I saw online sometime in the past. The first time I built this neat smelter, I had a bit of fun, but no pictures. This second time around I snapped a few (at the bottom of the post).&lt;/p&gt;

&lt;p&gt;This little device gets hot enough to melt aluminum (~1200°F). Working with anything that hot is dangerous. Please be careful. I have melted not only my aluminum, but also my soup cans. The smelter works on the principle that soup cans have a higher melting point than aluminum. Unfortunately, many soup cans are made of an aluminum or tin alloy, so the melting temperature is no that much higher. Just make sure your crucible’s melting temperature is higher than ~1500°F (and that’s cutting it close).&lt;/p&gt;

&lt;h2 id=&quot;materials&quot;&gt;Materials&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Safety glasses; leather gloves&lt;/li&gt;
  &lt;li&gt;1 coffee can (#10 can)&lt;/li&gt;
  &lt;li&gt;1 soup can (large)&lt;/li&gt;
  &lt;li&gt;1 soup can (smaller)&lt;/li&gt;
  &lt;li&gt;~20-30 pieces of charcoal&lt;/li&gt;
  &lt;li&gt;Lighter fluid and lighter/match&lt;/li&gt;
  &lt;li&gt;~2” metal tube/pipe (big enough to fit a hair dryer); 1-2 feet long&lt;/li&gt;
  &lt;li&gt;1 hair dryer&lt;/li&gt;
  &lt;li&gt;Vice grips or pliers&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;build&quot;&gt;Build&lt;/h2&gt;

&lt;p&gt;The build is straightforward. Take the #10 can and cut a hole in the side at the base, just big enough to fit your metal pipe/tube into. Put a layer or two of charcoal on the bottom of the #10 can and place the larger soup can in the center. Stack charcoal around the soup can up to the top. The smaller soup can serves as the actual crucible. It should fit inside of the larger can.&lt;/p&gt;

&lt;p&gt;The hair dryer serves as a bellows. Tape (or somehow connect) the hair dryer to the metal pipe. Set both the pipe and the hair dryer aside as you light the smelter. You don’t want lighter fluid to enter the pipe and flow into the hair dryer.&lt;/p&gt;

&lt;p&gt;Fill your crucible (the smaller soup can) with the aluminum you want to melt. I tend to use old computer hardware. A hard drive has plenty of aluminum (the platters generally have an aluminum substrate too).&lt;/p&gt;

&lt;p&gt;To light the smelter, just pretend that you are lighting a barbecue. That is, pour copious amounts of lighter fluid on the charcoal and enjoy the mini-explosion! Let the coals become self-sustaining and then attach your bellows. You might not need to have a perfect alignment of the tube and the cutout. It is very easy to overheat the smelter. This is where the fun comes in, experiment and find out what works best!&lt;/p&gt;

&lt;p&gt;Once your metal is melted, remove the crucible from the smelter. Be careful, the soup can might have holes in it. If that’s the case, just leave it in the forge and turn off the bellows. Let everything cool down, or risk making a mess.&lt;/p&gt;

&lt;h2 id=&quot;results&quot;&gt;Results&lt;/h2&gt;

&lt;p&gt;I don’t have a picture of my aluminum ingot, but rest assured, it works! The most lasting result from my first experiment is that my parent’s patio has a little crater in the cement. I poured the aluminum into a small metal cup that I had placed on the ground. As sound as I stood up and turned around, I heard a loud pop as I was pelted with cement. The beauty of thermal expansion!&lt;/p&gt;

&lt;p&gt;I would really like to get some quantitative data on this little guy. Unfortunately, I don’t live in a place where I can do things like this anymore. If you own an infrared thermometer and you do this project, please let me know your results. I know I’ve achieved at least 1220°F, but since I don’t know the exact composition of the soup can that I melted, I don’t know any other limit. There is other data to gather to, such as the relationship between air flow and temperature, how long the charcoal is effective, etc.&lt;/p&gt;

&lt;p&gt;In the photos below you might notice something wrapped around the #10 can and secured with a wire. That is some type of thermal paper. My dad took it out of a heat gun and thought it might be good to use on this project. The first time I built a smelter like this I did not use such an insulator and I did not melt my crucible. The second time I did (on both counts). It might just be coincidence, though.&lt;/p&gt;

&lt;p&gt;Enjoy and be safe!&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/images/smelter/smelter_4.jpg&quot;&gt;
    &lt;img alt=&quot;Coffee can smelter&quot; src=&quot;/images/smelter/smelter_4-150x150.jpg&quot; /&gt;
&lt;/a&gt; 
&lt;a href=&quot;/images/smelter/smelter_3.jpg&quot;&gt;
    &lt;img alt=&quot;Coffee can smelter&quot; src=&quot;/images/smelter/smelter_3-150x150.jpg&quot; /&gt;
&lt;/a&gt; 
&lt;a href=&quot;/images/smelter/smelter_2.jpg&quot;&gt;
    &lt;img alt=&quot;Coffee can smelter&quot; src=&quot;/images/smelter/smelter_2-150x150.jpg&quot; /&gt;
&lt;/a&gt; 
&lt;a href=&quot;/images/smelter/smelter_1.jpg&quot;&gt;
    &lt;img alt=&quot;Coffee can smelter&quot; src=&quot;/images/smelter/smelter_1-150x150.jpg&quot; /&gt;
&lt;/a&gt;&lt;/p&gt;
</description>
        <pubDate>Tue, 18 Feb 2014 14:40:07 +0000</pubDate>
        <link>http://0not.net/metal/fire/2014/02/18/coffee-can-aluminum-smelter.html</link>
        <guid isPermaLink="true">http://0not.net/metal/fire/2014/02/18/coffee-can-aluminum-smelter.html</guid>
        
        <category>smelter</category>
        
        <category>aluminum</category>
        
        <category>coffee can</category>
        
        <category>physics</category>
        
        <category>fire</category>
        
        
        <category>Metal</category>
        
        <category>Fire</category>
        
      </item>
    
      <item>
        <title>Welcome!</title>
        <description>&lt;p&gt;Hello, world! My name is Kyle. I am a recent college graduate who loves to hack fun. By that, I mean that I find fun in everything. I will use this site as a way to share my hacks, from programming tricks to ghetto rigging transmissions. If you like science, programming, hiking, off roading, or life, then you will like this site. Stay tuned! In the mean time, take a look at the &lt;a href=&quot;/about/&quot;&gt;about&lt;/a&gt; page.&lt;/p&gt;
</description>
        <pubDate>Tue, 18 Feb 2014 13:18:56 +0000</pubDate>
        <link>http://0not.net/general/2014/02/18/welcome.html</link>
        <guid isPermaLink="true">http://0not.net/general/2014/02/18/welcome.html</guid>
        
        
        <category>General</category>
        
      </item>
    
  </channel>
</rss>
