commitlogs.com commitlogs.com

How To Set up a Gulp Script for Faster Front-end Development

Front-end development is an interesting beast of its own. It mostly deals with user experience, which requires constant tuning of page layout and experience flow. Do you find yourself refresh that page for the 18 times? Do you find yourself run the script every time before deployment to uglify the page? There is a ton of room for automation here! Most famously, the Front-end world seems to be using Gulp or Grunt for this kind of task...

qtcentre.org qtcentre.org

Is it not possible to read and write into a text resource file?

Hi there guys, I've added 4 text files as resource files to my program, but the files wont open. I would like to read and write on three of these file and "append" on the forth. Here is my code below where I try to open the file. Code: QFile sourcedTenders_file(":/cpt_rcs/App_Resources/cpt/Current_Sourced_Tenders.txt"); //contains urls for sourced tenders. if(!sourcedTenders_file.open(QFile::ReadWrite |...

en.wordpress.com en.wordpress.com

GoLang : Type conversion VS type assertion in go

Just learned an interesting subtlety about Go. There are two ways to “cast” values. I put cast in quotes because one isn’t really casting but it’s just the general term I always use for saying “change on type to another one”. The first one I was pretty used to, type conversion: 1 2 var x int = 5 var x64 int64 = int64(x) The one I was unaware of is type assertion: 1 2 var x interface{} = int64(5) var x64...