Skip to content

Posts...

Page 12 of 42

Initialize a Typescript Interface with JSON

February 20, 2017Category: Software
TL;DR: You can initialise a typescript interface using JSON objects. On my quest to load and save objects as JSON, I found that you can convert a JSON object to an interface via something called type assertion . Basically, if you have an interface: you can load a JSON object via JSON.parse(json…

Check Duplicated Paths with LoDash (and Angular 2)

February 20, 2017
One of the things I'm looking at is to be able to create a list of paths I'd want to scan. The first iteration had blind addition to the list. However, this would make the user's responsibility to manage the duplicated paths, which is not really nice. Therefore, I think it's a good thing to add some…

Angular 2Refresh Bound Variables from Callback

January 31, 2017Category: Software
TL;DR: Use ChangeDetectorRef 's detectChanges() at the end of your callback code. While developing my electron.js app, I've had the following workflow: I have an input element and a button The input element is capable of editing a path The button triggers a File Open dialog The…

Applications for EPSO/AD/331/16

January 27, 2017Category: EPSO
The number of applications are: No. Section Places Candidates AC 1 Data Analysis and IT Service 30 852 9.5x 2 Digital Workplace, Office Automation and Mobile Computing 25 258 3.4x 3 Enterprise Resource Planning (ERP) 14 208 5.0x 4 ICT Security 49 418 2.9x 5 IT Infrastructure 38 595 5.2x 6 IT…

WordPress with HTTPS on Dreamhost and CloudFlare

January 25, 2017Categories: IT, Tutorial
Today I've got my blog work over HTTPS, including admin. Woo-hoo! Below are the steps I used to do it. Prerequisites My configuration is as follows: Hosting on Dreamhost.com Use CloudFlare free account Wordpress 4.7.1 at the time of writing Initialisation From the Dreamhost Panel, select Domains…

Load FontAwesome Fonts with Webpack 2

January 23, 2017Category: Software
TL;DR: : Add the (s)css dependency to your main (s)css file and specify where to find the fonts too. Then use the proper loaders in your webpack.config.js file. The past few days I had trouble loading the font-awesome fonts with webpack. I tried quite a few solutions: Using the font-awesome-sass…

Copy File from Local Desktop to Remote Resktop Connection

January 19, 2017Category: IT
TL;DR: Drag-and-drop doesn't work. Copy&paste does! Before yesterday, my way of moving files between my local desktop and a remote one using MS Remote Desktop Connection involved a 3rd party service like Dropbox or email. Then, a kind soul took pity on me and showed me the proper way. In his words…

Multiline Regex in Visual Studio Code

January 6, 2017Category: IT
Setting up a multi-line regular expression in VS code is done by explicitly matching the CR/LF characters using \r?\n . For example, if I want to find all lines starting with a [ , including subsequent blank lines, I can do: HTH,

Scan Decorated Classes in Typescript

December 21, 2016Categories: Software, Tutorial
TL;DR: Make the decorator set a property in the class and look for it. While trying my hand at writing an ORM, I had a problem of initialising the database through a dummy instantiation of some models, without running an explicit command. In java, I can use code generation to provide a list of…

Make Electron Work with Sqlite3

December 16, 2016Categories: Software, Tutorial
The other day I tried to integrate knex with a SQLITE3 back-end. Unfortunately, the instant I've tried to instantiate knex , I've got a lot of errors . After getting rid of them, I found that I can't get sqlite3 to work at all, even though I've checked the installation and it was OK (got the…
PreviousNext

All tags