Namek Dev
a developer's log
NamekDev

Modules in The Console - Take One

April 20, 2016

In previous posts (linked in the Summary) I discussed a topic of implementing modules in The Console. This time I’m going to describe my first step in this direction.

Currently The Console supports simple scripts - one .js file is one script, i.e. scripts/info/currency.js  is just a currency  command.

But that’s not enough. I want the modules, too. Here’s how I make them real.

→ Continue reading Daj Się Poznać, the-console

Build Runnable JAR of Xtend + JavaFX project in Maven

April 12, 2016

After a long research I’ve found a site that helps with compiling Xtend using Maven - http://www.eclipse.org/xtend/download.html - pretty straightforward, isn’t it? However, it lacks a few more things.

My goal was to compile and package Java 8 project together with JavaFX, written mostly in Xtend (in place of Java) with unpacked libraries into one Runnable JAR. In the end I’d like it to be compatible with e(fx)clipse IDE. Here’s how.

→ Continue reading Daj Się Poznać, the-console

The state of importing node.js modules into Java

April 9, 2016

As I noticed in previous article about script management I’d like to support script sharing in The Console. This topic automatically brings idea of supporting Node.js modules. Nashorn doesn’t provide any kind of module import/export mechanism like CommonJS. However, it’s doable to provide custom require() and module.exports. But is it possible to really import Node.js modules or anything from npm?

→ Continue reading Daj Się Poznać, the-console

REPL or even better

April 4, 2016

Read-eval-print loop is quite useful kind of tool that simplifies both learning and trying some short code ideas. REPLs are always very specific - they can be used for evaluating programming language statements, some math calculation, database management, file processing and so on. In The Console I decided having all those things and even more - way to incorporate custom REPLs.

However, idea have grown much more than expected. In this post I explain what’s the big deal to talk about which shows why the development have currently slowed down.

→ Continue reading Daj Się Poznać, the-console

The Console: script management

March 22, 2016

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 install some weird packages into system. JavaScript and console API is all you need to know to code your custom scripts.

If one of goals of The Console project is to make easy custom scripting then it’s logical that you need some way to manage your scripts. Putting all scripts in one file or even all scripts in one folder would be a mess. So, how to manage those files? How The Console deals with it?

→ Continue reading Daj Się Poznać, the-console

JavaFX: comparison of rich text components

March 8, 2016

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 that supports highlighting. I needed such UI component for my latest application - The Console so now I’ll shortly discuss a comparison between few options:

  • e(fx)clipse Runtime StyledTextArea
  • RichTextFX
  • JavaFX built-in TextFlow
  • JavaFX built-in WebView
→ Continue reading Daj Się Poznać, the-console

JavaFX: taskbar-less undecorated window

March 5, 2016

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 available under hotkey and that’s it.

Problem is, JavaFX won’t allow us. Previously presented line stage.initStyle(StageStyle.UNDECORATED)  gives us undecorated window but collides with stage.initStyle(StageStyle.UTILITY) which makes window’s task not visible in taskbar but window itself is then decorated.

Between workarounds I’ve found a solution. TL;DR initialize window using Swing.

→ Continue reading Daj Się Poznać, xtend, the-console

The Console: deciding on tools, techs and workflow, then code

March 2, 2016
Continuing on my Retake on The Console. Set up Just installed Eclipse package which is named e(fx)clipse and contains plugins for some better JavaFX support and includes support for Xtend programming language - which is nice. Thanks to this configuration I decided to try Xtend instead of Java. Xtend’s main selling point for me is type inference which reduces verbosity. It’s a feature that I liked within TypeScript so I’ve already got good experience about it. → Continue reading Daj Się Poznać, the-console

Retake on The Console

February 28, 2016

Some time ago I made this project https://github.com/Namek/TheConsole_POC 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 enable you to type in some commands. Commands are JavaScript’able and that’s the power of the tool. I did some hacks here and there so I decided to change some techs and remake whole beauty to improve efficiency of use.

→ Continue reading Daj Się Poznać, the-console

Beginning with Meteor and AngularJS 1/2 on top of TypeScript

November 15, 2015

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 TypeScript (because of reasons), right?

What really tormented me was a real usage of TypeScript with Meteor and some quirks about it, as for beginner. Spent some time around it, so I’m going to share the final result.

→ Continue reading meteor, typescript-lang, web

Different Trello every day

November 4, 2015

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 could also look different everyday!

So I made a simple script using Tampermonkey extension under Chrome web browser. On Firefox you could go similiar way with Greasemonkey.

→ Continue reading web