Common code for Singletons using PHP’s traits
I hate singletons. Some say that singletons are not bad, instead “singletonism” is the evil. I would argue. Anyway, I’ve been working on some common Singleton pattern code in PHP for a particular...
View ArticleLaravel Logs with simplest HTTP Basic Auth
There’s a cool visual log viewer for Laravel 4/5: rap2hpoutre/laravel-log-viewer. Installation is short and straight-forward but logs shouldn’t be accessible by anyone. That’s why I setup access...
View ArticleDifferent Trello every day
Trello. Tasks. I was tired of seeing this blue-ish default color every single day. I know, there’s palette to change a background but I needed something more fancy – since I work with it everyday, it...
View ArticleBeginning with Meteor and AngularJS 1/2 on top of TypeScript
Probably the best starting point for Angular and Meteor combo is angular-meteor.com website. There’s a neat tutorial for both AngularJS versions – 1.x and 2.0. But it’s still JavaScript and we want...
View ArticleRetake on The Console
Some time ago I made this project https://github.com/Namek/TheConsole for Windows OS. It’s usage goes like this: hit CTRL+TILDE and on the top of the screen will open a Quake 3 Arena thingie that’ll...
View ArticleJavaFX: taskbar-less undecorated window
Applications that are launched in Windows OS are by default listed on taskbar. For a utility software like The Console it is not the case. It shouldn’t pollute our task bar or even tray. It should be...
View ArticleJavaFx: comparison of rich text components
Rich text component is a user interface component that displays text by styling various parts of it differently. Very often Rich Text components are used for editors. An example may be any code editor...
View ArticleJavaFX WebView: snippets
Today I present a few snippets around JavaFX WebView that I use in The Console: load style sheet set style or class of element scroll page to the bottom check whether the page is scrolled down to the...
View ArticleThe Console: script management
The biggest feature of my console software is ability to code own “commands” – scripts. It’s supposed to be easy and quick for programmers. I’m not trying to design my own DSL language or make users...
View ArticlePower of lambda in Xtend
The Console supports multiple tabs. By hitting [crayon-570ae3855c548638826608-i/] combination new tab is opened and auto-named. I decided to name tabs as “Tab 1”, “Tab 2”, etc. However, those tabs can...
View ArticleImmutability of Java’s Integer
As Wiki states In object-oriented […], an immutable object is an object whose state cannot be modified after it is created. That totally applies to Java’s Integer. Let’s take a look at the code to talk...
View ArticleWhy is Ruby so entertaining? Mixins.
Ruby Ruby [0] is a simple, yet powerful language, thanks to which developers are enabled to create or programmatically sketch many things in a fast manner. It’s good for prototyping GUI (Shoes [1]),...
View ArticleBetter Memento
Today I asked myself – how to use Memento design pattern to store object state in a more safe and effective way? Of course by automating some things using some base implementation. Read about why I...
View ArticleInterface with basic implementation in C#
Today we have simple question: How to avoid abstract classes by giving base implementation? The story Once in a time I was building animation system which was planned to be used in IGWOCTISI project....
View ArticleCoffeeScript to JavaScript compilation in Sublime Text 2/3
Ever wanted to write code in CoffeeScript? It surely is great but you wonder why is this not automated or smaller. Actually there are two options: include CoffeeScript so it will compile to JavaScript...
View ArticleWPF/Silverlight Design Data without XAML
Here’s a class for our sample data. That’s where the data should go into. [crayon-5733e940b04de197182541/] In App.xml define your namespace: [crayon-5733e940b04e3894677877/] and then:...
View ArticleAdobe AIR trick: Faster file loading on development machine
I had pretty weak company computer in my recent job and also pretty old rubbish Windows installation. Because of that, duration of loading our Adobe AIR game was about 14 seconds. Colleagues had better...
View ArticleUnity – is this point within a box?
I am currently using Unity for two weeks and I have started to implement logic and graphical tweaks into mechanics. It happened that I needed a little math to correct some calculation failures based on...
View ArticleTime update issues with Keyframe-based animation
Some time ago I joined to some project developed since 3 months before by a 3-4 person team. After next 4 months I made a refactor request to modify whole engine and game to make game frame update...
View ArticleQuick implementation of Network for existing Game
There are 2 common choices of architecture for game network implementation: client-server peer-to-peer What I did was some kind of hybrid of those two. I used Remote Procedure Calls (RPCs). In this...
View ArticleMemory leaks in Adobe AIR Mobile / AS3 project
As many Adobe Flash / AIR / AS3 projects we have been using Event Dispatcher. This concept seemed to be too uncontrollable and lacking of many wanted information. Doubts about garbage collector made us...
View ArticleIterative version of Ramer-Douglas-Peucker line-simplification algorithm
In one of our games we needed to beautify user mouse or touch input. Actually it isn’t simple task since there can be found many criteria due to point reduce. I have tried several solutions like...
View ArticleEmbedding resource file in Cordova app
My latest Cordova application neeeded to read app files such as XML or CSV. During research due to embedding them as resource files I have found that there isn’t needed any platform-specified...
View ArticleWorking on workflow for Unity and git
Unity3D seems to be a great software for rapid prototype development. It certainly is but when properly used. You’re alone with your prototype? It’s OK but I was the other case. When it comes to...
View ArticleCaching Partial View with View Composer in Laravel
Laravel 4 has got pretty nice Cache mechanism. Unfortunately, it’s nicety brings not too much functionality. It lacks a way to cache whole pages or partials.I have found nice plugin called Flatten...
View ArticleC++ inline Assembler hack back in 2008
Digging deep in my work from past years I stumbled upon interesting Assembler workaround I made then for C++. I was looking for a solution that could make possible to wrap a class method into Function...
View Articlegulp.js is my build system
When I’ve seen Grunt (a build system) I have imagined that it would be awesome to have such setup making my code easy to maintain and optimized production version at the same time. When I tried to...
View ArticleJava: enforce a single instance of an app
The Console is an app which typical usecase fits within running a single instance. That’s by design. However, we sometimes forget to check whether some the app is waiting for us in the background and...
View ArticleWhat are those features in Xtend lang!?
During development of The Console I have almost smashed my face a few times by gesture flying straight from internal centre of disbeliefs. As nature of a programmer calls I need to express myself about...
View ArticleLoad Boostrap 4 alpha into Vue.js project
Once upon a time one usually desires to add Bootstrap into one’s project. Adding support for Bootstrap might seem a little hard without understanding Webpack or even despite the understanding. I...
View ArticleFancy reactive web solutions on counter example
Some people are fascinated about spreadsheets. This lovely type of software was offered in Apple II computer back in 1979. Every cell could contain either data (text, numbers) or formula. What’s so...
View Article