Debugging Java Applets in IntelliJ IDEA
These are the steps I needed to take in order to debug Java Applets in IntelliJ IDEA. Enable Remote Debugging in Java Plugin Open Java Control Panel and go to “Java” tab and the click “View”. In...
View ArticleGet list of folders in Java
If you need to list only the folders in some directory (and not folders AND files), that can be done without too much effort in Java. The key is use File’s listFiles with a FileFilter:public File[]...
View Article6 reasons why reading books is important for developers
Disclaimer: These are my personal opinions and I have not backed all points by heavy research (although they might be, I don’t really know). I grew up reading a lot of books. My parents read to me...
View ArticleMy 70-day streak on GitHub
First off, I know this is by no means a record, something special or even significant. But I want to share my small streak story and how it helped me get a ABC (Always Be Coding) habit. Read more about...
View ArticleHow HEX colors work
Have you ever wondered what all those numbers and letters in a hex color means? What color is #AA3939 or #888888 and why is that combination giving the color that it gives? Well, it’s not magic, and...
View ArticleAngular and jQuery load order matters!
While trying to load a jQuery library called zTree into a directive, I came over this weird error:jqLite#on() does not support the `selector` or `eventData` parameters It doesn’t really say that much,...
View ArticleAngular Controller Communication using Delegates
I recently found the need for two controllers to communicate a lot more than normal events would easily enable. I needed one controller to ask another for information, without them being too strongly...
View ArticleExtending angular directives
In this post I will explain some techniques for extending Angular Directives and how to design for extensibility. It might not always make sense to go crazy and extend directives everywhere. Try not to...
View ArticlePerforming a REST call from Protractor e2e tests
Cleaning up between tests I am currently trying to get some good end-to-end (e2e with protractor, which is a great tool!) tests running for my Angular app ‘Extreme Results’ (wrote a bit about the app...
View ArticleAvoid global npm installs for projects
Have you ever required gulp or grunt or something similar to be installed globally to be able to build a web project? You probably require npm as well? And possibly bower? Having these kinds of global...
View ArticleAdd coverage to your Angular project (to show on your GitHub page)
Do you want to show off the amazing Code Coverage you got on you Angular project? Look no further, this guide will help you out! Prerequisites You need a couple of things for this guide to make any...
View ArticleHow to mock and spy on a mongoose model
This post is actually very generic advise on how to mock constructor objects so that you can spyOn the objects being created by the constructor. I am currently writing a new back-end for my Extreme...
View ArticleUsing the test coverage report
In this post, I want to talk a little about why and how you can use your test coverage reports. If you are not already writing tests, you might want to consider doing that. I am not going into why...
View ArticleConverting My Angular 1 Application to TypeScript
With the soon-ish release of Angular 2, it makes sense to start upgrading Angular 1 apps to use TypeScript. I have an Angular 1.x app called “Extreme Results”, which I want to upgrade to Angular 2 at...
View Article
More Pages to Explore .....