strangeworlds.co.uk
StrangeWorlds » Clojure
https://strangeworlds.co.uk/blog/category/clojure
Archive for the ‘Clojure’ Category. Running Clojure on Slackware. To run Clojure on Slackware you’ll want a few things: JDK (use the Slackbuild from /extra to build the latest version yourself) Leiningen (available from SlackBuilds.org) Create a command line wrapper to execute Clojure scripts (some examples for learning Clojure expect you to set this up, but don’t really tell you how to). Assuming you’ve […]. Posted on January 4, 2014 at 1:59 pm by Carlos Corbacho. 2016 – the year of Python 3.
strangeworlds.co.uk
StrangeWorlds » 2016 – the year of Python 3
https://strangeworlds.co.uk/blog/2016/11/21/2016-the-year-of-python-3
2016 – the year of Python 3. Given I’ve posted before on the issues with Python 2 and unicode, it’s worth noting that there is a simple solution – upgrade to Python 3. The libraries have now finally reached a point where they are, by and large, dual stack compatible, or have unofficial forks to get you through (e.g. Fabric and Fabric3). Get into good habits now. As you are going to be porting that 2.7 code at some point. Try and do things in a Python 3 way where possible, and use something li...Be brave ...
strangeworlds.co.uk
StrangeWorlds » Web
https://strangeworlds.co.uk/blog/category/web
Archive for the ‘Web’ Category. Using Selenium with PhantomJS. If you don’t want to play around with things like CasperJS to do your simple browser automation, it turns out that PhantomJS has WebDriver support, and in turn, Selenium supports it. To use it via the Python bindings, you’ll need to: 1) Install PhantomJS somewhere 2) Install Selenium from PyPi (or install it with Pip) […]. Posted on April 18, 2014 at 8:28 pm by Carlos Corbacho. Posted on August 9, 2013 at 11:03 pm by Carlos Corbacho.
strangeworlds.co.uk
StrangeWorlds » Slackware, Amarok and Transcoding
https://strangeworlds.co.uk/blog/2012/08/27/slackware-amarok-and-transcoding
Slackware, Amarok and Transcoding. As I’ve recently been importing CDs in as FLAC, I want something that can transcode this for me when and manage my collection when working with my iPod. Amarok has now finally re-gained transcoding support as of 2.4:. Posted on August 27, 2012 at 11:09 am by Carlos Corbacho. You must be logged in. To post a comment. Laquo; Previous post. Next post ». 2016 – the year of Python 3. Using Selenium with PhantomJS. Running Clojure on Slackware. Psycopg2 and large result sets.
strangeworlds.co.uk
StrangeWorlds » USB 3G Modem on Slackware – DNS
https://strangeworlds.co.uk/blog/2012/08/24/usb-3g-modem-on-slackware-dns
USB 3G Modem on Slackware – DNS. A follow up from last years post – clearly having not played around with the 3G card since last year, it’s only today I realised that DNS wasn’t actually working. PPPD was correctly requesting the nameservers from the remote peer, but by default, puts them into /etc/ppp/resolv.conf. This isn’t terribly helpful. I’ve therefore created them as follows:. Bin/sh # Change DNS resolvers if [ -f /etc/resolv.bak ]; then echo "/etc/resolv.bak exists! You must be logged in. USB 3G ...
strangeworlds.co.uk
StrangeWorlds » Slackware
https://strangeworlds.co.uk/blog/category/linux/slackware
Archive for the ‘Slackware’ Category. Running Clojure on Slackware. To run Clojure on Slackware you’ll want a few things: JDK (use the Slackbuild from /extra to build the latest version yourself) Leiningen (available from SlackBuilds.org) Create a command line wrapper to execute Clojure scripts (some examples for learning Clojure expect you to set this up, but don’t really tell you how to). Assuming you’ve […]. Posted on January 4, 2014 at 1:59 pm by Carlos Corbacho. Slackware, Amarok and Transcoding.
strangeworlds.co.uk
StrangeWorlds » Linux video acceleration
https://strangeworlds.co.uk/blog/2013/06/24/linux-video-acceleration
With the advent of open source UVD support for my HD5750 in Linux, I’ve been trying to understand what is needed for accelerating video under Linux, and how all the components work together. So I drew a diagram to try and make sense of it all:. Posted on June 24, 2013 at 9:49 pm by Carlos Corbacho. You must be logged in. To post a comment. Laquo; Previous post. Next post ». 2016 – the year of Python 3. Using Selenium with PhantomJS. Running Clojure on Slackware. Psycopg2 and large result sets.
strangeworlds.co.uk
StrangeWorlds » Varnish and Ajax
https://strangeworlds.co.uk/blog/2013/08/09/varnish-and-ajax
If you have endpoints on your site that serve up both HTML and JSON depending on the request type, not the URL, then you need to tell Varnish to add this as an extra hash so that it doesn’t return JSON to clients expecting HTML, and vice versa. Oddly, I’ve not actually seen any examples of how to this, so I came up with:. Sub vcl hash { if (req.http.X-Requested-With = "XMLHttpRequest") { hash data(req.http.X-Requested-With); } }. Posted on August 9, 2013 at 11:03 pm by Carlos Corbacho. To post a comment.
strangeworlds.co.uk
StrangeWorlds » Django
https://strangeworlds.co.uk/blog/category/python/django
Archive for the ‘Django’ Category. If you have endpoints on your site that serve up both HTML and JSON depending on the request type, not the URL, then you need to tell Varnish to add this as an extra hash so that it doesn’t return JSON to clients expecting HTML, and vice versa. Oddly, I’ve not actually seen any examples […]. Posted on August 9, 2013 at 11:03 pm by Carlos Corbacho. 2016 – the year of Python 3. Using Selenium with PhantomJS. Running Clojure on Slackware. Psycopg2 and large result sets.