Quantcast
Channel: Languages – NamekDev
Browsing all 37 articles
Browse latest View live

Iterative 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 Article



Embedding 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 Article

Working 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 Article

Caching 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 Article

C++ 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 Article


gulp.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 Article

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 Article

Laravel 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 Article


Different 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 Article


Beginning 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 Article

Retake 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 Article

JavaFX: 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 Article

JavaFx: 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 Article


JavaFX 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 Article

The 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 Article


Power 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 Article

Immutability 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 Article


Why 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 Article

Better 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 Article

Interface 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 Article
Browsing all 37 articles
Browse latest View live




Latest Images