<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Blog on Not the Answer</title><link>//blog.ismail-s.com/tags/blog/</link><description>Recent content in Blog on Not the Answer</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Sat, 03 Sep 2016 15:06:41 +0000</lastBuildDate><atom:link href="//blog.ismail-s.com/tags/blog/index.xml" rel="self" type="application/rss+xml"/><item><title>Switching to Hugo</title><link>//blog.ismail-s.com/posts/first-post/</link><pubDate>Sat, 03 Sep 2016 15:06:41 +0000</pubDate><guid>//blog.ismail-s.com/posts/first-post/</guid><description>&lt;p>Over the course of my life, I have used various blogging framework thingies. IIRC I have used
wordpress and blogger at some points in the past, followed by
&lt;a href="https://www.github.com/ismail-s/fireblog">fireblog&lt;/a>, which was made by me. I have had several
issues with fireblog:&lt;/p>
&lt;ol>
&lt;li>It is dynamic. I could change it into an SSG or a static/dynamic hybrid thing, but I can&amp;rsquo;t be
bothered at this point in time.&lt;/li>
&lt;li>It is slow. The reason for this is that the server has been on a slow connection, on a slow
server with a dynamic ip address.&lt;/li>
&lt;/ol>
&lt;p>So, I am now switching to &lt;a href="https://gohugo.io/">hugo&lt;/a>, hosted on gitlab pages. So I don&amp;rsquo;t have to
worry about hosting costs, and I get a versioned history of everything. And hugo has lots of themes.&lt;/p></description><content>&lt;p>Over the course of my life, I have used various blogging framework thingies. IIRC I have used
wordpress and blogger at some points in the past, followed by
&lt;a href="https://www.github.com/ismail-s/fireblog">fireblog&lt;/a>, which was made by me. I have had several
issues with fireblog:&lt;/p>
&lt;ol>
&lt;li>It is dynamic. I could change it into an SSG or a static/dynamic hybrid thing, but I can&amp;rsquo;t be
bothered at this point in time.&lt;/li>
&lt;li>It is slow. The reason for this is that the server has been on a slow connection, on a slow
server with a dynamic ip address.&lt;/li>
&lt;/ol>
&lt;p>So, I am now switching to &lt;a href="https://gohugo.io/">hugo&lt;/a>, hosted on gitlab pages. So I don&amp;rsquo;t have to
worry about hosting costs, and I get a versioned history of everything. And hugo has lots of themes.&lt;/p>
&lt;p>The downside is I don&amp;rsquo;t get comments, unless I use disqus (which I am on the fence about). But meh.&lt;/p>
&lt;p>If you&amp;rsquo;re curious, the source code for this new blog is &lt;a href="https://www.gitlab.com/ismail-s/blog">here&lt;/a>.&lt;/p></content></item><item><title>New Simple Theme</title><link>//blog.ismail-s.com/posts/new-simple-theme/</link><pubDate>Sun, 03 Jan 2016 15:00:30 +0000</pubDate><guid>//blog.ismail-s.com/posts/new-simple-theme/</guid><description>&lt;p>I&amp;rsquo;ve just merged in a new theme, which I&amp;rsquo;ve called &amp;ldquo;simple&amp;rdquo;. Because it is meant to be dirt simple. And it is. For at least the next few hours, this blog will provide a demo of it. There are still various tweaks I should make to it, maybe add a splash of colour, resize things, but it at least passes the tests.&lt;/p></description><content>&lt;p>I&amp;rsquo;ve just merged in a new theme, which I&amp;rsquo;ve called &amp;ldquo;simple&amp;rdquo;. Because it is meant to be dirt simple. And it is. For at least the next few hours, this blog will provide a demo of it. There are still various tweaks I should make to it, maybe add a splash of colour, resize things, but it at least passes the tests.&lt;/p></content></item><item><title>Blog is now running the latest code</title><link>//blog.ismail-s.com/posts/blog-is-now-running-the-latest-code/</link><pubDate>Wed, 21 Oct 2015 23:12:54 +0000</pubDate><guid>//blog.ismail-s.com/posts/blog-is-now-running-the-latest-code/</guid><description>&lt;p>Since I put the blog source code onto Github, I have been working on the code there, fixing bugs and stuff. With the code being on Github, I can work more easily and frequently on the code, but for the past few weeks I haven&amp;rsquo;t been updating the code this blog itself is running, as it would require a bit of effort and I&amp;rsquo;ve been busy.&lt;/p>
&lt;p>Well, I have just redeployed this blog with the latest code. I have fixed some bugs around caching, made changes to urls and how posts are looked up (a big change to make), started improving pages that show multiple posts, and other stuff. In short, I&amp;rsquo;ve been busy improving stuff. The funny thing is that you shouldn&amp;rsquo;t really notice all of those things&amp;hellip;&lt;/p></description><content>&lt;p>Since I put the blog source code onto Github, I have been working on the code there, fixing bugs and stuff. With the code being on Github, I can work more easily and frequently on the code, but for the past few weeks I haven&amp;rsquo;t been updating the code this blog itself is running, as it would require a bit of effort and I&amp;rsquo;ve been busy.&lt;/p>
&lt;p>Well, I have just redeployed this blog with the latest code. I have fixed some bugs around caching, made changes to urls and how posts are looked up (a big change to make), started improving pages that show multiple posts, and other stuff. In short, I&amp;rsquo;ve been busy improving stuff. The funny thing is that you shouldn&amp;rsquo;t really notice all of those things&amp;hellip;&lt;/p></content></item><item><title>Source code for the blog is now on Github</title><link>//blog.ismail-s.com/posts/source-code-for-the-blog-is-now-on-github/</link><pubDate>Tue, 06 Oct 2015 22:55:30 +0000</pubDate><guid>//blog.ismail-s.com/posts/source-code-for-the-blog-is-now-on-github/</guid><description>&lt;p>Yes, you read that correctly. The source code that runs this blog is now on &lt;a href="https://www.github.com/ismail-s/fireblog">Github&lt;/a>. Unfortunately I am not good at coming up with names, and fireblog was the best I could think of.&lt;/p>
&lt;p>Putting the source code on Github helps me in several ways:&lt;/p>
&lt;ol>
&lt;li>Showing people the code is way easier.&lt;/li>
&lt;li>Working on the code is possible from pretty much any decent computer with Internet.&lt;/li>
&lt;li>Open source is cool and all that stuff&amp;hellip;&lt;/li>
&lt;/ol></description><content>&lt;p>Yes, you read that correctly. The source code that runs this blog is now on &lt;a href="https://www.github.com/ismail-s/fireblog">Github&lt;/a>. Unfortunately I am not good at coming up with names, and fireblog was the best I could think of.&lt;/p>
&lt;p>Putting the source code on Github helps me in several ways:&lt;/p>
&lt;ol>
&lt;li>Showing people the code is way easier.&lt;/li>
&lt;li>Working on the code is possible from pretty much any decent computer with Internet.&lt;/li>
&lt;li>Open source is cool and all that stuff&amp;hellip;&lt;/li>
&lt;/ol></content></item><item><title>Site is now online (after yet more downtime)</title><link>//blog.ismail-s.com/posts/site-is-now-online-after-yet-more-downtime/</link><pubDate>Sun, 27 Sep 2015 21:56:32 +0000</pubDate><guid>//blog.ismail-s.com/posts/site-is-now-online-after-yet-more-downtime/</guid><description>&lt;p>Yes, I know, for the past few days the site has been offline. I played around with partitions, and as always assumed that I would be able to get the site up and running in only a few hours.&lt;/p>
&lt;p>How wrong I was.&lt;/p>
&lt;p>I had to compile python twice as I hadn&amp;rsquo;t installed various packages before the first compilation. And the compilation takes ages. And then even the package server thing I was using went down for a while due to dns changes on their end.&lt;/p></description><content>&lt;p>Yes, I know, for the past few days the site has been offline. I played around with partitions, and as always assumed that I would be able to get the site up and running in only a few hours.&lt;/p>
&lt;p>How wrong I was.&lt;/p>
&lt;p>I had to compile python twice as I hadn&amp;rsquo;t installed various packages before the first compilation. And the compilation takes ages. And then even the package server thing I was using went down for a while due to dns changes on their end.&lt;/p>
&lt;p>On the other hand, I understand well how to get the site up and running. It is relatively straightforward, although I have made one change and am using cherrypy rather than uwsgi. More because I had trouble installing uwsgi. But meh.&lt;/p></content></item><item><title>Temporary dropping of SSL</title><link>//blog.ismail-s.com/posts/temporary-dropping-of-ssl/</link><pubDate>Mon, 17 Aug 2015 11:53:07 +0000</pubDate><guid>//blog.ismail-s.com/posts/temporary-dropping-of-ssl/</guid><description>&lt;p>You may have noticed that the website no longer is using ssl/tls. Before, I was using cloudflare. On their end, there were some issues which have meant that I&amp;rsquo;ve decided to remove them from the loop for the moment. Of course, this does remove a layer of protection, but I am relying on extremely low traffic. And this is definitely not a mission critical website by any means.
Anyways, I have been working no decoupling the code for this website to make it easier to maintain. And hopefully, it will allow me to have more fine-grained caching too. I have also increased the thoroughness of the automated testing and just basically tried to do non-visible changes. So no functional changes whatsoever. There are still one or 2 more things to do before deploying this new code, and I need to fit this in around my other commitments. Meh.&lt;/p></description><content>&lt;p>You may have noticed that the website no longer is using ssl/tls. Before, I was using cloudflare. On their end, there were some issues which have meant that I&amp;rsquo;ve decided to remove them from the loop for the moment. Of course, this does remove a layer of protection, but I am relying on extremely low traffic. And this is definitely not a mission critical website by any means.
Anyways, I have been working no decoupling the code for this website to make it easier to maintain. And hopefully, it will allow me to have more fine-grained caching too. I have also increased the thoroughness of the automated testing and just basically tried to do non-visible changes. So no functional changes whatsoever. There are still one or 2 more things to do before deploying this new code, and I need to fit this in around my other commitments. Meh.&lt;/p>
&lt;p>Belated update 16/9/15: Yeah, I&amp;rsquo;m back on cloudflare. Apparently the ssl issue is to do with certain browsers not liking &lt;a href="https://en.wikipedia.org/wiki/Server_Name_Indication">SNI&lt;/a>. Meh.&lt;/p></content></item><item><title>New polymer theme</title><link>//blog.ismail-s.com/posts/new-polymer-theme/</link><pubDate>Thu, 09 Jul 2015 01:29:43 +0000</pubDate><guid>//blog.ismail-s.com/posts/new-polymer-theme/</guid><description>&lt;p>OK, so I have been working a new polymer theme for this blog. I have just deployed to production and already have found various issues with it. The worst issues affect me.&lt;/p>
&lt;p>Of course, i did test the website beforehand. The issues i am finding now are around performance and usability on a mobile. The performance, i have a quick fix that should go partway towards fixing the problem. But the real problem is probably that using polymer results in a lot of dependencies.&lt;/p></description><content>&lt;p>OK, so I have been working a new polymer theme for this blog. I have just deployed to production and already have found various issues with it. The worst issues affect me.&lt;/p>
&lt;p>Of course, i did test the website beforehand. The issues i am finding now are around performance and usability on a mobile. The performance, i have a quick fix that should go partway towards fixing the problem. But the real problem is probably that using polymer results in a lot of dependencies.&lt;/p>
&lt;p>Anyways, we&amp;rsquo;ll see how things go when i get time to work on the issues.&lt;/p>
&lt;p>&lt;strong>UPDATE 12/7/15:&lt;/strong> Shortly after I made this post, I fixed the issue around scrolling not working. And tried to speed the website up slightly by playing with some config settings. And I resized the title to make the header bar look a bit better IMO. However, I expect that HTTP2 will give a speedup, whenever nginx get it developed.&lt;/p>
&lt;p>&lt;strong>UPDATE 17/7/15&lt;/strong> I have added some more caching. However there are bugs in it I think. But they shouldn&amp;rsquo;t affect anyone except me. I have started to understand how much of a pain caching can be and how much of a speedup it can give.&lt;/p></content></item><item><title>Notes on the current blog setup</title><link>//blog.ismail-s.com/posts/notes-on-current-blog-setup/</link><pubDate>Wed, 24 Jun 2015 14:54:55 +0000</pubDate><guid>//blog.ismail-s.com/posts/notes-on-current-blog-setup/</guid><description>&lt;p>I thought it might be nice to give some information on how this blog is setup.&lt;/p>
&lt;h2 id="web-framework">Web framework&lt;/h2>
&lt;p>First off, the blog has been made using python, with the &lt;a href="http://www.pylonsproject.org/projects/pyramid/about">pyramid application framework&lt;/a>. I compared various python Web frameworks and pyramid seemed to have good documentation, plenty of support and a nice api. And they also have some nice tutorials on getting started, and some starter templates.&lt;/p>
&lt;p>I considered &lt;a href="https://www.djangoproject.com/">django&lt;/a> but pyramid seemed a lot more flexible. Things like being able to choose any database and template engine you want, without things being hard to get working together, were a draw for me.&lt;/p></description><content>&lt;p>I thought it might be nice to give some information on how this blog is setup.&lt;/p>
&lt;h2 id="web-framework">Web framework&lt;/h2>
&lt;p>First off, the blog has been made using python, with the &lt;a href="http://www.pylonsproject.org/projects/pyramid/about">pyramid application framework&lt;/a>. I compared various python Web frameworks and pyramid seemed to have good documentation, plenty of support and a nice api. And they also have some nice tutorials on getting started, and some starter templates.&lt;/p>
&lt;p>I considered &lt;a href="https://www.djangoproject.com/">django&lt;/a> but pyramid seemed a lot more flexible. Things like being able to choose any database and template engine you want, without things being hard to get working together, were a draw for me.&lt;/p>
&lt;h2 id="servers">Servers&lt;/h2>
&lt;p>The nice thing about python is that most Web frameworks use &lt;a href="https://en.wikipedia.org/wiki/Web_Server_Gateway_Interface">WSGI&lt;/a>, which means you can switch between different Web application servers without too much fuss.&lt;/p>
&lt;p>For development, I tend to use waitress as it is the default Web application server that comes with pyramid.&lt;/p>
&lt;p>For production, I have used waitress, &lt;a href="http://www.cherrypy.org/">cherrypy&lt;/a> and &lt;a href="https://uwsgi-docs.readthedocs.org/en/latest/">uwsgi&lt;/a> at different times. At the time of writing I am using &lt;a href="https://uwsgi-docs.readthedocs.org/en/latest/">uwsgi&lt;/a>. But they have all generally been ok to use.&lt;/p>
&lt;p>In front of the Web application server I have nginx. Nginx is awesome, in terms of its size, speed and resource usage. It also has native support for the uwsgi protocol which is one of the reasons why I am using uwsgi as the Web application server.&lt;/p>
&lt;p>More out of caution than anything else, I have the whole website sat behind &lt;a href="cloudflare.com">cloudflare&lt;/a>.&lt;/p>
&lt;h2 id="dynamic-dns">Dynamic DNS&lt;/h2>
&lt;p>My ip address keeps changing, so I have to use something like &lt;a href="http://sourceforge.net/p/ddclient/wiki/Home/">ddclient&lt;/a> to keep cloudflare updated with my ip address. I don&amp;rsquo;t like ddclient though (it&amp;rsquo;s written in perl and is a pain to install manually) so I&amp;rsquo;ve written a basic python script to do the job for me instead. Nothing fancy, but it does the job.&lt;/p></content></item></channel></rss>