<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tim Brandin on Medium]]></title>
        <description><![CDATA[Stories by Tim Brandin on Medium]]></description>
        <link>https://medium.com/@timbrandin?source=rss-762209eec5cf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*aJ8JIumZkxdU-y9R.jpeg</url>
            <title>Stories by Tim Brandin on Medium</title>
            <link>https://medium.com/@timbrandin?source=rss-762209eec5cf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 04:34:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@timbrandin/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Host your own Secure Galaxy with Let’s Encrypt, MongoDB and Meteor Up (mup).]]></title>
            <link>https://medium.com/studio-interact/host-your-own-secure-galaxy-with-let-s-encrypt-mongodb-and-meteor-up-mup-b657211d1268?source=rss-762209eec5cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/b657211d1268</guid>
            <category><![CDATA[lets-encrypt]]></category>
            <category><![CDATA[meteor]]></category>
            <category><![CDATA[mongodb]]></category>
            <dc:creator><![CDATA[Tim Brandin]]></dc:creator>
            <pubDate>Thu, 14 Apr 2016 15:24:31 GMT</pubDate>
            <atom:updated>2017-05-30T13:58:34.410Z</atom:updated>
            <content:encoded><![CDATA[<p>First off, we need 3 servers on <a href="https://m.do.co/c/0d850306ddd1">Digital Ocean</a>:</p><p><strong>1 x 512MB/1CPU ($5/mo)</strong> for our front server, which will work as our Nginx SSL terminator and load balancer for our app.<br><strong>2 x whatever size of droplets</strong> you need to host your app, you can also use <em>meteorhacks:cluster</em> to scale meteor vertically on these machines, meaning you can have multiple instances of your app on a single machine, to be precise cluster will automatically create one per processor, and one of these we will also host the Mongo database.</p><blockquote><strong>Make sure to turn on “Private Networking” on all of the Droplets.</strong></blockquote><h4>Setup certificates and Nginx (our SSL terminator)</h4><p>When you have created the front server, assuming you’ve added your SSH key and can use ssh to open up the terminal to your newly created Droplet.</p><p>To open ssh to your machine, run this command (replace 0.0.0.0 with the IP to your server).</p><pre>ssh root@0.0.0.0</pre><p><strong>Install Nginx:</strong></p><pre>sudo apt update<br>sudo apt install nginx</pre><p><strong>Install Let’s Encrypt (</strong><a href="https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-14-04"><strong>source</strong></a><strong>) the short version:</strong></p><pre>sudo add-apt-repository ppa:certbot/certbot<br>sudo apt-get update<br>sudo apt-get install certbot</pre><p>We’ll be using the webroot plugin, so we will need to allow access to <em>http://example.com/.well-known</em>, which is used by Let’s Encrypt to verify that you own example.com, use the below code to open the nano editor and replace the contents with the sample code below (assuming you’ve just installed nginx):</p><pre>sudo nano /etc/nginx/sites-available/default</pre><p>Here’s a sample that works to get started:</p><pre>server {<br>  listen 80;</pre><pre>  root /usr/share/nginx/html;</pre><pre>  server_name example.com;</pre><pre>  location / {<br>    try_files $uri $uri/ =404;   <br>  }</pre><pre>  location ~ /.well-known {<br>    allow all;<br>  }<br>}</pre><p>Now reload the configuration for nginx:</p><pre>sudo service nginx reload</pre><p>You can use <strong>CTRL+A</strong> (move to first char on line) and <strong>CTRL+K</strong> (clear the line starting from the cursor) in the nano editor to make the process of clearing out the old content slick. <strong>CTRL+X</strong> closes and saves your changes.</p><p>Also make sure you have setup a DNS A record (on your domain name registrar) pointing to <em>example.com</em> for IP of the front server, here’s an example record for that (replace <em>0.0.0.0</em> with your IP):</p><pre>NAME            Type  TTL   Data     </pre><pre>example.com     A     3600  0.0.0.0</pre><p>If you visit example.com in the browser, you should get this result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*3Ydp09fAVVI3K9XaSZXiOw.png" /><figcaption>Output from Nginx after a default setup on Ubuntu 14.04.</figcaption></figure><p><strong>Now let’s get a certificate from Let’s Encrypt! :D</strong></p><pre>certbot certonly --webroot -w /usr/share/nginx/html -d example.com -d www.example.com</pre><p>Let’s encrypt will then ask you for your email adress, don’t worry it only asks for it to recover your certificate if it get’s lost. Now if the output is like below, everything is good so far.</p><pre>IMPORTANT NOTES:<br> - Congratulations! Your certificate and chain have been saved at<br>   /etc/letsencrypt/live/example.com/fullchain.pem. Your cert will<br>   expire on 2017-08-02. To obtain a new or tweaked version of this<br>   certificate in the future, simply run certbot again. To<br>   non-interactively renew *all* of your certificates, run &quot;certbot<br>   renew&quot;<br> - If you like Certbot, please consider supporting our work by:</pre><pre>Donating to ISRG / Let&#39;s Encrypt:   <a href="https://letsencrypt.org/donate">https://letsencrypt.org/donate</a><br>   Donating to EFF:                    <a href="https://eff.org/donate-le">https://eff.org/donate-le</a></pre><p><strong>Now let’s configure Nginx to use the certificate! ;)</strong></p><p>Open up the default configuration for Nginx once again using the nano editor.</p><pre>sudo nano /etc/nginx/sites-available/default</pre><p>Now add another “server” listening on the SSL port 443 in this file, close and save as before with <strong>CTRL+X</strong>.</p><pre>server {<br>  listen 443 ssl;</pre><pre>  root /usr/share/nginx/html;</pre><pre>  server_name example.com;</pre><pre>  ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;<br>  ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;</pre><pre>  location / {<br>    try_files $uri $uri/ =404;<br>  }<br>}</pre><p>Now reload the configuration for nginx:</p><pre>sudo service nginx reload</pre><p>If nginx fails to reload, you can see what is causing the issue with <strong>nginx -t</strong>.</p><p><em>— It was probably just a typo ;)</em></p><p>You should now see that the certificate is working in your browser when visiting <a href="https://example.com/">https://example.com</a>, <em>awesome right?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/169/1*lZ1FNJOIzNTiNuynH2g69A.png" /></figure><p><strong>Now let’s setup automatic renewal of our certificate! :O</strong></p><p>To trigger the renewal process for all installed domains, run this command:</p><pre>certbot renew</pre><p>To get this to run automatically, we will create a cron task that calls the command we just ran. Open the crontab with this command:</p><pre>sudo crontab -e</pre><p>Add these lines to the end of the file: (will run every Monday at 2:30 am and restart nginx at 2:35 am).</p><pre>30 2 * * 1 certbot renew &gt;&gt; /var/log/certbot-renew.log<br>35 2 * * 1 /etc/init.d/nginx reload</pre><p><strong>Upgrade regular requests to use the certificate. (:</strong></p><p>We need to upgrade (redirect) regular <strong><em>http</em></strong> requests to secure ones using <strong><em>https</em></strong>, we can do this in our nginx configuration, in our “server” which is listening to port 80, with this code:</p><pre>server {<br>  listen 80;</pre><pre>  server_name example.com;<br>  return 301 <a href="https://$host$request_uri/">https://$host$request_uri</a>;<br>}</pre><p>But we still need to allow let’s encrypt to access the <strong>/.well-known</strong> without using https, so that the renewal keeps working. We can fix that by replacing the former addition with this:</p><pre>server {<br>  listen 80;</pre><pre>  server_name example.com;</pre><pre>  location / {<br>    return 301 <a href="https://$host$request_uri/">https://$host$request_uri</a>;<br>  }</pre><pre>  location ~ /.well-known {<br>    allow all;<br>  }<br>}</pre><h4>Meteor deployment</h4><blockquote><strong>The following steps are done in the terminal of your computer and not on the server.</strong></blockquote><p>Assuming you have an app you can deploy, installed git and npm on your machine, create a new folder in the root of your project folder, we usually call it <strong>.deploy</strong>. In that folder we can add our <a href="https://github.com/kadirahq/meteor-up">Meteor Up</a> configuration, but first make sure you have the latest version of meteor up:</p><pre>npm i -g mup</pre><p>Now create .deploy and create boilerplate configuration inside your project, we will not store any passwords or keys, so this should be safe to add to git and share the configuration on how to deploy in your team.</p><pre>mkdir .deploy<br>cd .deploy<br>mup init</pre><p>Now edit mup.js, and edit so that it looks like this, but replace <strong>0.0.0.0</strong> with one of your app-server machines. This machine will also host our MongoDB which has oplog turned on by default (to <a href="https://github.com/meteor/meteor/wiki/Oplog-Observe-Driver">reduce the CPU usage of your meteor deployment</a>).</p><pre>module.exports = {<br>  servers: {<br>    one: {<br>      host: &#39;0.0.0.0&#39;,<br>      username: &#39;root&#39;,<br>    },<br>  },</pre><pre>  meteor: {<br>    name: &#39;myapp&#39;,<br>    path: &#39;../&#39;,<br>    servers: {<br>      one: {},<br>    },<br>    env: {<br>      ROOT_URL: &#39;<a href="http://myapp.com&/#39;">https://example.com</a>&#39;,<br>      MONGO_URL: &#39;mongodb://0.0.0.0:27017/meteor&#39;<br>    },<br>  },</pre><pre>  mongo: {<br>    oplog: true,<br>    port: 27017,<br>    servers: {<br>      one: {},<br>    },<br>  },<br>};</pre><p><strong>Now run the setup steps to add docker, install mongo and setup the environments. (;</strong></p><pre>mup setup</pre><p>Now that we have setup mongo, we need to allow remote connections to it, this is easy, ssh into your machine destroy and replace the mongo docker container with one that is bound to the internal network interface, so first we need to discover the IP on the internal network (Notice! If you bind to the external IP all of the world can access your database, so make sure to pick the one which you cannot ping from your local machine).</p><pre>ipconfig</pre><p>Look at the interface for etc1, this is my internal network interface using Digital Ocean following the commands above. Now remove and start a new docker container (replace 0.0.0.0 with the IP from the previous step):</p><pre>docker rm -fv mongodb &amp;&amp; \<br>sudo docker run \ <br> -d \<br> --restart=always \<br> --publish=0.0.0.0:27017:27017 \ <br> --volume=/var/lib/mongodb:/data/db \ <br> --volume=/opt/mongodb/mongodb.conf:/mongodb.conf \<br> --name=mongodb \ mongo mongod -f /mongodb.conf</pre><p>Now we can remove mongo from the mup.js config and update the configuration and add the second machine to deploy to, which we will be loadbalancing between, replace <strong>0.0.0.0 </strong>and <strong>0.0.0.1</strong> in the code below.</p><p>Notice that we have removed MongoDB in the configuration, this is because we can only deploy with mongo when running on a single machine, also we want to the app to share data between them so that means we need the same database for both servers, in a future episode we might setup one on each machine to loadbalance and distribute the database as well, but I recommend using <a href="http://compose.io/">Compose.io</a> for this instead. Also replace <strong>0.0.0.0 in the MONGO_URL to your private network IP for the machine hosting the database.</strong></p><pre>module.exports = {<br>  servers: {<br>    one: {<br>      host: &#39;0.0.0.0&#39;,<br>      username: &#39;root&#39;,<br>    },<br>    two: {<br>      host: &#39;0.0.0.1&#39;,<br>      username: &#39;root&#39;,<br>    },<br>  },</pre><pre>  meteor: {<br>    name: &#39;myapp&#39;,<br>    path: &#39;../&#39;,<br>    servers: {<br>      one: {}, <br>      two: {},<br>    },<br>    env: {<br>      ROOT_URL: &#39;<a href="http://myapp.com'/">https://example.com</a>&#39;,<br>      MONGO_URL: &#39;mongodb://0.0.0.0:27017/meteor&#39;<br>    },<br>  }<br>};</pre><p>Setup the new server we just added by running setup once more:</p><pre>mup setup</pre><p>Using this configuration we can build and deploy our meteor app to both servers at once using:</p><pre>mup deploy</pre><p>Both your apps should now be available in the browser on the IP you specified in the configuration.</p><h4>Load Balancing between one and two</h4><p>To enable load balancing between the two servers we are using we need to define an upstream (this is the most basic scheme of load balancing, just round-robin balancing equally between the servers — not taking any server load into account). I have updated the “443 server” with a “proxy pass” that allows for reverse proxy (<a href="http://www.meteorpedia.com/read/nginx">which is required for websockets in meteor</a> to work).</p><p>Replace the upstream server IPs with your internal IP of those servers, which is important, as it makes all traffic route through your private network rather than externally through the open web.</p><pre>upstream meteor {<br>  ip_hash;</pre><pre>  server 0.0.0.0;<br>  server 0.0.0.1;<br>}</pre><pre>server {<br>  listen 443 ssl;</pre><pre>  client_max_body_size 20M;</pre><pre>  server_name example.com;</pre><pre>  ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;<br>  ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;</pre><pre>  ssl_protocols TLSv1 TLSv1.1 TLSv1.2;<br>  ssl_prefer_server_ciphers on;<br>  ssl_ciphers &#39;EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH&#39;;</pre><pre>  location / {<br>    proxy_pass <a href="http://meteor/">http://meteor</a>;<br>    proxy_http_version 1.1;<br>    proxy_set_header Upgrade $http_upgrade;<br>    proxy_set_header Connection &#39;upgrade&#39;;<br>    proxy_set_header Host $host;<br>    proxy_cache_bypass $http_upgrade;<br>  }<br>}</pre><p>Restart nginx and you should be good to go with your Load Balanced, SSL terminated hosting solution. So yeah not actually a Galaxy thing, but a cheap alternative if you know a bit about ssh, git and stuff.</p><p><strong>Update:</strong></p><p>Also don’t miss to read <a href="https://medium.com/u/671c103b2ee3">Josh Owens</a> post on the same topic, it digs down a little further in each detail around multi-server hosting and horizontal scaling, a great read: <a href="http://joshowens.me/building-your-own-meteor-galaxy-hosting-setup/">http://joshowens.me/building-your-own-meteor-galaxy-hosting-setup/</a></p><p><strong>Update #2:</strong></p><p>To secure traffic between your machines, we highly recommend setting up a VPN between them, this can easily be automated with Ansible: <a href="https://www.digitalocean.com/community/tutorials/how-to-use-ansible-and-tinc-vpn-to-secure-your-server-infrastructure">How To Use Ansible and Tinc VPN to Secure Your Server Infrastructure</a></p><p><strong>Update #3:</strong></p><p>The new version of Meteor UP (<strong>mup</strong>) does not automatically setup <strong>OPLOG</strong> just yet, as advertised in the README, but can be achieved fairly simple without setting up a replica set with three nodes running mongo, I’ll probably turn this into a separate blog post, for now you can read more here:<br><a href="https://meteorhacks.com/mongodb-oplog-and-meteor/">https://meteorhacks.com/mongodb-oplog-and-meteor<br></a><a href="https://docs.mongodb.org/manual/administration/replica-set-deployment/">https://docs.mongodb.org/manual/administration/replica-set-deployment/</a><br><a href="https://loosexaml.wordpress.com/2012/09/03/how-to-get-a-mongodb-oplog-without-a-full-replica-set/">https://loosexaml.wordpress.com/2012/09/03/how-to-get-a-mongodb-oplog-without-a-full-replica-set/</a></p><p>Created for <a href="http://selfleaders.com/">SelfLeaders</a> by the <a href="http://studiointeract.com/">creative folks at Studio Interact</a>.<br>// T</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b657211d1268" width="1" height="1" alt=""><hr><p><a href="https://medium.com/studio-interact/host-your-own-secure-galaxy-with-let-s-encrypt-mongodb-and-meteor-up-mup-b657211d1268">Host your own Secure Galaxy with Let’s Encrypt, MongoDB and Meteor Up (mup).</a> was originally published in <a href="https://medium.com/studio-interact">Studio Interact</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Regular database dump for Meteor with MongoDB on Digital Ocean, using the default mupx deployment…]]></title>
            <link>https://medium.com/studio-interact/regular-database-dump-for-meteor-with-mongodb-on-digital-ocean-using-the-default-mupx-deployment-69a9fcfdb81c?source=rss-762209eec5cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/69a9fcfdb81c</guid>
            <category><![CDATA[ssh]]></category>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Tim Brandin]]></dc:creator>
            <pubDate>Fri, 01 Apr 2016 14:46:16 GMT</pubDate>
            <atom:updated>2016-04-01T14:46:16.381Z</atom:updated>
            <content:encoded><![CDATA[<h3>Regular database dump for Meteor with MongoDB on Digital Ocean, using the default mupx deployment on docker.</h3><p>Say you want to do regular backups on your machine’s database, and for security you don’t want it on the same machine you can use a this post as a template for creating your cron-tasks for just that.</p><p>On your main server which you are creating database dumps on, create an new ssh for this machine so that it can by itself access the second backup machine, this is easy using this command and answer the questions coming up in the terminal while on the server.</p><pre>$ ssh-keygen -t rsa -b 4096 -C &quot;<em>your_email@example.com</em>&quot;</pre><p>Now view the generated public key named “id_rsa.pub” using this command:</p><pre>$ less ~/.ssh/id_rsa.pub</pre><p>Copy the key and open your backup server, and paste that into the authorized_keys file on a new line, here’s a command to open it and edit it:</p><pre>$ nano ~/.ssh/authorized_keys</pre><p>Then we can start writing our script for creating database dumps for mongo, here’s a good template, adjust the APP_NAME=“appname” to the name of your app and the BACKUP_SERVER to the ip or hostname of your backup server, this should match up with the database name in MongoDB if you’re using mupx.</p><pre>#!/bin/bash<br># cron_backup.sh<br>exec 3&gt;&amp;1 1&gt;&gt;/var/log/cron_backup.log 2&gt;&amp;1</pre><pre>APP_NAME=&quot;appname&quot;<br>BACKUP_SERVER=&quot;0.0.0.0&quot;<br>BACKUP_USER=&quot;root&quot;</pre><pre>TIMESTAMP=`date -u +%F-%H%M%Z`<br>BACKUP_NAME=&quot;$APP_NAME-$TIMESTAMP.tar.gz&quot;</pre><pre>docker run \<br> --rm \<br> --link mongodb:mongo \<br> -v /root:/backup \<br> mongo \<br> bash -c &#39;mongodump --out /backup --host $MONGO_PORT_27017_TCP_ADDR&#39;</pre><pre>tar -zcvf $BACKUP_NAME $APP_NAME<br>rm -rf $APP_NAME</pre><pre>scp $BACKUP_NAME $BACKUP_USER@$BACKUP_SERVER:/$BACKUP_USER/backups/$BACKUP_NAME</pre><p>Then you need to make it runnable:</p><pre>$ sudo chmod +x cron_backup.sh</pre><p>You can test that it works with this command:</p><pre>$ ./cron_dump.sh</pre><p>Now open crontab and create your crontask, you can calculate how often you want to dump the database to the backup server, using this tool with for example every hour interval: <a href="http://crontab.guru/#0_*_*_*_*">http://crontab.guru/#0_*_*_*_*</a></p><pre>$ crontab -e</pre><p>Now edit the crontab file inside the editor you selected, now add a new row with something like this, i.e. which runs every hour:</p><pre>0 * * * * /bin/bash /root/cron_backup.sh</pre><p>CTRL+X to save, close and initiate the crontask.</p><p>The script above will also log all actions done in the file /var/log/cron_dump.log</p><blockquote>To remove the cron task, open crontab once more and remove the line you added, then save and close and it should be gone.</blockquote><p>You should now see regular database dumps coming in on your backup server. Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69a9fcfdb81c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/studio-interact/regular-database-dump-for-meteor-with-mongodb-on-digital-ocean-using-the-default-mupx-deployment-69a9fcfdb81c">Regular database dump for Meteor with MongoDB on Digital Ocean, using the default mupx deployment…</a> was originally published in <a href="https://medium.com/studio-interact">Studio Interact</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[mongodump and mongorestore for mongodb in a docker container]]></title>
            <link>https://medium.com/studio-interact/mongodump-and-mongorestore-for-mongodb-in-a-docker-container-8ad0eb747c62?source=rss-762209eec5cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ad0eb747c62</guid>
            <category><![CDATA[mongo]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[mongodb]]></category>
            <dc:creator><![CDATA[Tim Brandin]]></dc:creator>
            <pubDate>Mon, 08 Feb 2016 16:56:59 GMT</pubDate>
            <atom:updated>2017-11-26T13:14:40.941Z</atom:updated>
            <content:encoded><![CDATA[<p>Say you have a database in a docker container on your server, and you want to back it up, here’s what you do:</p><h3>mongodump (take a copy of your database)</h3><blockquote>What might differ from your setup to mine is the name of your mongo docker container [mongodb] (default when using <a href="https://github.com/arunoda/meteor-up/tree/mupx">meteor up</a>).</blockquote><pre>$ docker run --rm --link mongodb:mongo -v /root:/backup mongo \<br> bash -c ‘mongodump --out /backup --host mongo:27017’</pre><blockquote>The -v stands for volume, aka it will save your backup into /root, replace that if you want to place it elsewhere.</blockquote><h4>How does it work?</h4><p>Basically we’re creating another docker mongo container which has the possibility to link in directly to your database container, but instead of starting mongo on the container you start the mongodump command which will end when it is done and save your database dump to the folder you specified. And when it is done if will remove itself (which is the reason for the rm-flag).</p><h3>mongorestore (restore your database from a folder)</h3><p>And to restore the database from a dump.</p><p>If you already have data in the database, you can add the drop-flag, which will drop all data in the collections you are restoring before import. (notice that untouched collections will still remain in the database, in that case rather do a db.dropDatabase() in the mongo console before.</p><pre>$ docker run --rm --link mongodb:mongo -v /root:/backup mongo \<br> bash -c ‘mongorestore /backup --host mongo:27017’</pre><p>If you need to compress the dump, use tar (saves a tar file in the same folder):</p><pre>$ tar -cvzf dump.tar.gz /backup</pre><p>And uncompress the tar file (decompresses a tar file in the same folder):</p><pre>tar -xvzf dump.tar.gz</pre><p>If you need to download the dump from to your server you can use scp:</p><pre>$ scp -r root@IP:/root/backup ./backup</pre><p>Or upload it:</p><pre>$ scp -r ./backup root@IP:/root/backup</pre><p>Cheers! Hope it’s useful for someone! // <a href="https://medium.com/u/762209eec5cf">Tim</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ad0eb747c62" width="1" height="1" alt=""><hr><p><a href="https://medium.com/studio-interact/mongodump-and-mongorestore-for-mongodb-in-a-docker-container-8ad0eb747c62">mongodump and mongorestore for mongodb in a docker container</a> was originally published in <a href="https://medium.com/studio-interact">Studio Interact</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OSX — WTF? Meteor needs sudo.]]></title>
            <link>https://medium.com/@timbrandin/osx-wtf-meteor-needs-sudo-d859bd2c37b7?source=rss-762209eec5cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/d859bd2c37b7</guid>
            <dc:creator><![CDATA[Tim Brandin]]></dc:creator>
            <pubDate>Fri, 09 May 2014 09:40:14 GMT</pubDate>
            <atom:updated>2014-05-09T16:21:54.342Z</atom:updated>
            <content:encoded><![CDATA[<h4>Disk Utility: Repair permissions.</h4><ul><li>Can’t run meteor any more without using sudo?</li><li>Can’t reset your project without sudo?</li><li>Can’t install packages with Atmosphere without sudo?</li></ul><h3>Reason</h3><p>Maybe you have run sudo mrt to install some npm requirements that didn’t have the permission to complete installation, like when installing <a href="https://atmospherejs.com/package/iron-router">iron-router</a> or <a href="https://atmospherejs.com/package/fast-render">fast-render</a>. Well that might have screwed up your permissions a bit.</p><h3>The solution</h3><p>Use the Disk Utility that comes with OSX and run Repair permissions, and woopie-doo problem solved, we can use meteor without sudo again.</p><h3>The future</h3><p>Hopefully we don’t need sudo for npm requirements to get installed for packages like iron-router when Meteor adds the <a href="http://www.youtube.com/watch?v=zQhX5Tp6dcU&amp;feature=share&amp;t=45m21s">package ecosystem</a> that we’re now getting from Meteorite (mrt) and <a href="http://atmospherejs.com/">http://atmospherejs.com</a></p><p>Solution found here <a href="http://stackoverflow.com/questions/20811022/meteor-requires-sudo-to-run">http://stackoverflow.com/questions/20811022/meteor-requires-sudo-to-run</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d859bd2c37b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Meteor Gothenburg]]></title>
            <link>https://medium.com/@timbrandin/meteor-gothenburg-49dc6ab1a5d0?source=rss-762209eec5cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/49dc6ab1a5d0</guid>
            <dc:creator><![CDATA[Tim Brandin]]></dc:creator>
            <pubDate>Thu, 01 May 2014 06:26:37 GMT</pubDate>
            <atom:updated>2014-05-01T06:26:37.942Z</atom:updated>
            <content:encoded><![CDATA[<h4>I thought I should write a post about our group.</h4><p>I’m so happy to announce that we’re now visible to the open web, more precise on Meteor.com — they are now listing our group on their homepage <a href="https://www.meteor.com/get-involved">https://www.meteor.com/get-involved</a>.</p><p>This is epic, I can’t wait discussing more about packages, mongo and best practices for Meteor application development on our next Meetup.</p><p>See you soon.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49dc6ab1a5d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Meteor 101]]></title>
            <link>https://medium.com/studio-interact/meteor-101-f5e0f8e000a3?source=rss-762209eec5cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5e0f8e000a3</guid>
            <dc:creator><![CDATA[Tim Brandin]]></dc:creator>
            <pubDate>Mon, 28 Apr 2014 08:36:17 GMT</pubDate>
            <atom:updated>2014-04-28T08:36:17.640Z</atom:updated>
            <content:encoded><![CDATA[<h4>Första Meetup:en i Göteborg för Meteor hos Findwise.</h4><p>Den 26 april arrangerade vi en första Meetup hos Findwise för personer med intresse i den nya javascript-plattformen Meteor, som lovordas väldigt mycket just nu.</p><p>På Findwise huvudkontor i Göteborg kom det ca 20 personer för att lyssna på mig när jag gjorde mitt bästa i att förklara fördelarna och effekterna av att jobba med och i Meteor. De flesta deltagarna hade fått höra om evenemanget genom det lokala interaktionsdesign programmet på Chalmers. Lite intressant med tanke på hur effektivt Meteor kan vara för att prototyp:a idéer snabbt och interaktivt i realtid.</p><p>Meetup:en var upplagd på så vis att vi pratade lite om Meteor först och sedan direkt till att försöka hacka ihop något kul innan de blev för sent.</p><p>Efter presentationen var de flera som frågade om skillnaden mellan React och Meteor, och för att beskriva det lite kort här så skulle jag säga att React och Meteor inte försöker lösa samma problem. Meteor försöker lösa problemet med att binda ihop befintliga teknologier med nya och snabba sätt att bygga applikationer för webben. Gärna med en enkel och lättuppsatt bindning till databasen på servern. Till skillnad mot React som endast vilar på framsidan i webbläsaren. Dom har dock båda intressanta tillvägagångssätt hur man löser reaktiva bindningar av variabler och modeller till vyer i HTML, CSS men även SVG eller annan typ av renderad markup i webbläsaren.</p><p>Därefter bjöd vi på baugetter och dricka i form av öl, cider och “bland-dricka”. Och då satte vi även upp målen för hacket, som byggde på en datakälla med massvis med 80-tals filmer som Tobias hittat.</p><ul><li>Visa filmer sorterat på betyg från användare.</li><li>Användare ska kunna betygsätta filmer.</li><li>Hämta filmer från den externa källan.<br><a href="http://80talsfilm.se/">http://80talsfilm.se/</a></li><li>Hämta filmaffischer från externt.</li></ul><p>Vi satte upp så att vi kunde visa Tobias dator på en skärm mot publiken där de kunde se resultatet av det vi hackade hela tiden, medan jag skrev markup, javascript och css. Och på stora skärmen kunde man se vad jag skrev. Tanken med att ha två skärmar var för att visa att det uppdateras i realtid medans jag jag skriver så fort jag sparat. Och samtidigt tillåta Tobias att lägga in demodata via consollen på sin dator.</p><p>Och på 40 min hade vi uppnått alla mål vi satte, vilket var sjukt kul. Inte alltid man får skriva kod när man står på scen. Någon i publiken tyckte de var så kul så de skrev ett skript för att automatiskt betygsätta sin favoritfilm från sin dator. Medans andra nöjde sig med att manuellt klicka på dem i sina mobiler, datorer och tablets.</p><p>Bakgrunden till varför vi höll i denna Meetup var tack vare ett grymt initiativ från Meteor i San Fransisco som kontaktade oss och frågade om vi kunde ta tag i det, så bjöd de på dricka och mat för evenemanget. Detta passade oss väldigt bra, då flera av oss här hos Findwise redan nu jobbar med Meteor för t.ex. verktyget Brnout som letar fram och hittar fel och kvalitetsbrister på webbplatser.</p><p>I nästa post tänkte jag skriva lite mer om Brnout, så håll ett öga öppet.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5e0f8e000a3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/studio-interact/meteor-101-f5e0f8e000a3">Meteor 101</a> was originally published in <a href="https://medium.com/studio-interact">Studio Interact</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>