Laur's blog
  • Home
  • About
  • Support my work
Sign in Subscribe
Electron AppUse SCSS, Luke!
angular

Electron AppUse SCSS, Luke!

Traditionally, I've been a LESS supporter. The way it does mixins for example seems to me more intuitive. However, I noticed that my go-to framework (bootstrap) is now doing SASS-first and then LESS. So, one adapts... and the option in angular-cli makes things less painful. What was painful
Dec 3, 2016 1 min read
Electron and WebPack - Live Reloads
angular

Electron and WebPack - Live Reloads

I wanted to create a skeleton with Electron, Angular 2, capable of live reload while in development. I've settled on the following framework: * Electron (d'oh!) * Angular 2 * Angular CLI (because it makes it easy to generate boilerplate code) * SASS (SCSS in fact) * Webpack 2 and * Babel
Dec 2, 2016 1 min read
Electron App - Is It Alive?
angular-cli

Electron App - Is It Alive?

TL;DR: Yes, but it's limping badly. Now that I've created the angular app, I wanted to find out if I could develop an Electron app without actually adding the Electron dependency yet. My naive findings are: * You can develop any ui-related bit * I could not
Dec 2, 2016 1 min read
Electron App. Why angular-cli?
angular

Electron App. Why angular-cli?

The decision has been made for me since I'm new to Angular in general and the CLI offers a package deal particularly where code generation and initial package management is concerned. There's also the boon of webpack, which is used as engine. Although the balance tilts
Dec 2, 2016 1 min read
Debug Electron in VS Code
debug

Debug Electron in VS Code

TL;DR: You need to follow the server (electron) client (VS code debugger) approach. Be aware of OS specifics! So far, my approach towards development/debugging would be to write some code, test it, rewrite, test... all with a bunch of console.log() statements. That's not efficient at
Dec 2, 2016 2 min read
Rise and Fall of WebPack Dev Server in My Project
dev

Rise and Fall of WebPack Dev Server in My Project

Disclaimer: This is a log of my journey developing an electron app. I'm working at a small electron app and I was experimenting with webpack-dev-server, so I can try to do live reloads. First, I've started the app as a web app (no electron dependencies whatsoever)
Dec 1, 2016 1 min read
Change Packages Paths in NodeJS
custom

Change Packages Paths in NodeJS

TL;DR: Edit %appdata%\npm\etc\npmrc and add prefix and cache entries to specify the locations where node puts packages. Every time I install a new framework/dev environment I have to look where they put files. Having a roaming profile is a pain and I need to make
Nov 25, 2016 1 min read
Select Rows Where Value from One Column Matches Other Column
db

Select Rows Where Value from One Column Matches Other Column

TL;DR: Use a JOIN. I've got a table representing a tree, using two columns: CREATE TABLE "EXAMPLE" ( "PROP_ID" VARCHAR2(20 BYTE) NOT NULL ENABLE, "PARENT_PROP_ID" VARCHAR2(20 BYTE) NOT NULL ENABLE, /* * Data ... */ "CLASS_ID" VARCHAR2(20
Nov 23, 2016 1 min read
Simulate UNION with BLOBs
all

Simulate UNION with BLOBs

TL;DR: If you have BLOBs, you need to use UNION ALL. If you use UNION ALL, you need to partition off a criterion and select the first row. The other day I had to figure out how UNION works in Oracle, because we're retrofitting an application with
Nov 21, 2016 2 min read
Use Git Bash as Integrated Terminal in VS Code
bash

Use Git Bash as Integrated Terminal in VS Code

TL;DR:: Install windows git to get bash and add "C:\\Program Files\\Git\\bin\\bash.exe" to "terminal.integrated.shell.windows" in VS Code's user settings. As I'm trying my hand at developing a node application today, I'm getting
Nov 18, 2016 1 min read
Debug Javascript - Some Methods
debug

Debug Javascript - Some Methods

These days I'm trying to tweak a 3rd-party framework and I'm missing stuff sometimes (e.g. injected data). Below are some methods I've found useful when debugging the script. * console.log - print all things * Object inspection - see your object's content
Nov 17, 2016
Debug Javascript - Object Inspection
debug

Debug Javascript - Object Inspection

Many times, you have objects where you may or may not know their content. If you're running in the browser, life is easy as you can pause the code and inspect the object. at command line is a bit more annoying. In this case, at least for the
Nov 17, 2016
Debug Javascript - console.log
debug

Debug Javascript - console.log

This is the holy grail of debugging for me. It's old school, simple and effective. It works both in browser and from command line. My code looks like: console.log("Environment path: " + envPath); You can make it fancier with debug levels (in if() statements or with
Nov 17, 2016
House Log - current phase
house

House Log - current phase

We are quite disappointed on the progress (or lack thereof) of the house. We are thinking on the following: 1. Communication - We have to work to improve it: * We had twice delay with no feedback (first with the green light letter, second with the architect) * We need to improve
Oct 27, 2016 1 min read
Pass Through a Corporate Proxy in Java
java

Pass Through a Corporate Proxy in Java

TL;DR: There's no easy way to create a proxy :) I've tried for a while to build a way to request something through a proxy, for testing an emulated android app. The solution came from Octavian who kindly provided me a snippet to run once per
Oct 26, 2016 1 min read
Get all Proposal Names from the Participant Portal
api

Get all Proposal Names from the Participant Portal

I've found out the participant portal for H2020 offers an API. This is quite neat as one can integrate with the data, e.g. by reading and listing the calls. I've written a proof of concept to list all calls from this and last years. First,
Oct 25, 2016 1 min read
chrome

Inject Proxy Settings in Selenium/Chrome

I have the following situation: I'm behind a corporate proxy and I need to run a test accessing an external website. To do this, I've picked up chrome/chromium as driver of choice. My current solution implies an authentication via plugin. The plugin The chrome plugin
Oct 24, 2016 1 min read
Move SQL Developer Data from the Roaming Profile in Windows
developer

Move SQL Developer Data from the Roaming Profile in Windows

TL;DR:: Set up IDE_USER_DIR. I have to keep my roaming profile on a diet and this means moving a bunch of default directories around. The latest victim is SQL Developer According to this post, the environment variable to be changed is IDE_USER_DIR. From the post:
Oct 19, 2016 1 min read
AppleIntelSKLGraphicsFramebuffer - Kernel panic with Intel530
530

AppleIntelSKLGraphicsFramebuffer - Kernel panic with Intel530

TL;DR: My solution was to just set the DVMT (Dynamic Video Memory Technology) to 64M. YMMV though... Yesterday I decided I want to start building a hackintosh to replace my old mac mini. My system has the following components: * Asus Maximus Hero VIII Alpha * 16 GB of RAM * I6700k
Oct 11, 2016 1 min read
BIOS Loads from  0x7c00
asm

BIOS Loads from 0x7c00

Today I was investigating a bug where a simple program wasn't executing properly. It emerged that BIOS loads the code from the MBR at 0x7c00. Relevant info reproduced here: The (legacy) BIOS checks bootable devices for a boot signature, a so called magic number. The boot signature is
Sep 21, 2016 1 min read
Set Different Gradle Configurations
configuration

Set Different Gradle Configurations

TL;DR: create a global gradle.properties file (in <HOME>/.gradle or GRADLE_USER_HOME if defined). Place there the system specific configuration. The other day I had the unpleasant surprise that Android Studio replicated my proxy settings into gradle.properties and got committed to Git. Including a
Sep 19, 2016 1 min read
Migrate Chromium and Keep all Settings
7

Migrate Chromium and Keep all Settings

TL;DR: Backup App Data\Local\Chromium on your old machine, copy it to your new one and uncompress (in the same place), install Chromium, profit. With the migration to a new computer, I've managed to keep all my Chromium settings. The steps I did are the following:
Aug 23, 2016 1 min read
We have lift-off
house

We have lift-off

We gave the green light to the builders to start the process. The letter goes something like this: We are hereby agreeing to proceed with the planning application for our house. This phase of the project encompasses only the activities related to obtaining the planning permission from the commune. These
Aug 22, 2016 1 min read
Install and Use Package Control Behind Proxy
control

Install and Use Package Control Behind Proxy

TL;DR: Install Package Control manually. Add the proxy settings to the configuration file as described in step 2 below. Today I've had to install Sublime Text 3 again on a new computer. Package control didn't want to install due to my proxy settings (I was
Aug 22, 2016 1 min read
26836
game

26836

I've finished Vector TD (40 levels) with a score of 26836! Proof:
Aug 11, 2016
← Newer Posts Page 15 of 26 Older Posts →
Laur's blog © 2026
  • Sign up
Powered by Ghost