Skip to content

Posts...

Page 13 of 42

List Columns in a ResultSet

December 8, 2016Categories: Software, Tutorial
In order to list all columns in a JDBC ResultSet (e.g. for debug purposes), you need to iterate through its metadata: Note: Column numbers start from 1, not 0 (hence the md.getColumnName(i + 1) above). I usually wrap this in a if(logger.isTraceEnabled()) so it doesn't get triggered all the…

Make Tomcat Log Stuff to Console (in Eclipse)

December 7, 2016Categories: Software, Tutorial
TL;DR: in your project's src/main/resources add the CONSOLE setting to the log4j.properties file. While trying to add features to a web application, I stumbled on an odd situation: my Eclipse Console would show only log messages for tomcat processes, none of my logs. I've tried to add a…

Skip the EPSO Online Test

December 5, 2016Categories: EPSO, Tutorial
TL;DR: : Replace the end of the application URL from e.g. 1947_en to 1947/apply_en . These days, EPSO is in the habit of launching calls with multiple fields with a twist: each field has its own application page. So, if you just want to browse the fields for more details (e.g. Talent Screener…

Electron AppUse SCSS, Luke!

December 2, 2016Categories: Project Management, Software
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 was…

Electron and WebPack - Live Reloads

December 2, 2016Categories: Software, Tutorial
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 After a lot of trial…

Electron App - Is It Alive?

December 2, 2016Categories: Software, Tutorial
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 implement actual business logic. This is due…

Electron App. Why angular-cli?

December 2, 2016Categories: Software, Tutorial
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 heavily in favour of using…

Debug Electron in VS Code

December 2, 2016Category: Software
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 all and…

Rise and Fall of WebPack Dev Server in My Project

December 1, 2016Category: Software
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). At this stage, running: off…

Change Packages Paths in NodeJS

November 25, 2016Categories: Software, Tutorial
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 sure it doesn't get too…
PreviousNext

All tags