PHPNews

Switching WordPress to HTTPS

Written by code-diesel - Published on code-diesel
Aggregated on Thursday September 14, 2017 - Permalink

Finally, after much deliberation, I decided to move my blog to https. For the past few months I had encountered articles pointing that google gives a higher ranking for sites served over https. I had decided against https as I was afraid it may slow down by blog. However, the following message from google forced me to take the issue seriously and finally move to https. To owner of http://ww…

Continue reading »


Querying MySQL in Go

Written by code-diesel - Published on code-diesel
Aggregated on Monday June 19, 2017 - Permalink

Recently I’ve been experimenting with Go, mainly due to its excellent concurrency support. Being a web developer my natural instinct was to integrate it in existing projects – connecting with MySQL was a initial choice. The following is the Go code to connect with MySQL.   package main   import ( "fmt" "log" "database/sql" _ "github.com/go-sql-driver/mysql" )   func main() …

Continue reading »


Introducing Ponzu: a CMS and Server Framework in Go

Written by code-diesel - Published on code-diesel
Aggregated on Monday May 15, 2017 - Permalink

Here’s a scenario: you’ve been tasked with the creation of a modern app or website for a client or your company. You know you’ll need a dashboard for administrators to add content, manage links and otherwise fairly simple data, and a front-end that turns that data into a brilliant, usable design. You may naturally turn to WordPress for its famous CMS, but you don’t really want to set up all those …

Continue reading »


How to automatically backup MySQL database to Dropbox

Written by code-diesel - Published on code-diesel
Aggregated on Monday September 19, 2016 - Permalink

Ever wanted to backup your MySQL database to Dropbox automatically. Well, there is a nice portable solution with Dropbox Uploader . Dropbox Uploader is a BASH script which can be used to upload, download, delete, list files, move, copy and much more from Dropbox. It’s written in the BASH scripting language and only needs cURL to work. I’ve tested it on my Windows/Cygwin environment at it works …

Continue reading »


JavaScript console tricks

Written by code-diesel - Published on code-diesel
Aggregated on Thursday December 22, 2016 - Permalink

It is generally easier to quickly experiment with PHP or some other language that has an IDE or REPL. However, it is often tricky to quickly test some new JavaScript code or library without first creating a plain HTML page and dropping down to the console. Chrome developer console however makes it easier to test new libraries or even learn JavaScript if you are a newbie without using something …

Continue reading »


Book Review : Frontend Architecture for Design Systems

Written by code-diesel - Published on code-diesel
Aggregated on Thursday January 12, 2017 - Permalink

Being a backend developer my focus is usually on server side issues – languages, databases etc. However, as a web developer in general, a good knowledge of frontend design is also necessary as this enables one to work more effectively with the design and frontend development team. As for myself being a single freelance developer, I also need to be comfortable with frontend issues to work …

Continue reading »