Typescript in jEdit

Java based editor jEdit allows to syntax highlight plethora of languages and their file extensions. Adding typescript highlighting can be as simple as exiting file jEdit/modes/catalog.
One can take advantage of the fact, that the typescript is an extension of the javascript, so .ts extension can be added. There is also .ts extension already for typoscript, so it needs to be disabled:

<MODE NAME="javascript"		FILE="javascript.xml"
				FILE_NAME_GLOB="{*.{js,ts},Buildsub}" />

<MODE NAME="typoscript"		FILE="typoscript.xml"

Better way would be to develop specific typescript.xml, which would allow to add new features.

Posted in workday | Leave a comment

Borrelia mayonii

More to worry about ticks in Minnesota, as The New York Times reports about new species spreading Lyme diseases: Borrelia mayonii, discovered at Mayo Clinic, Rochester MN.
Borrelia mayonii in a laboratory dish
Borrelia mayonii in a laboratory dish.
Credit: Mayo Foundation for Medical Education and Research.

Posted in workday | Leave a comment

Happiness on a stroll

Walk or run is enjoyable, but who would tell, that it’s happening also on microscopic level.
Here is myosin protein dragging an endorphin along a filament to the inner part of the brain’s parietal cortex which creates happiness.
See also
Walk of Endorfin on youtube, or The neurochemicals happiness and more.

Posted in family | Leave a comment

Shed of Science

It’s good to know, that there is serious science done here in Minnesota, like Shed of Science by Russell Durkee. It’s recognized as an astronomical observatory H35 by IAU Minor Planet Center. R. Durkee was recognized in years 2009 and 2010 as recipient of the Shoemaker NEO grant.

Posted in workday | Leave a comment

Angular2 resources

Angular2 is few weeks in beta version already, so it’s time to get familiar with this promising javascript framework. Here is list of incomplete, though growing resources, without any particular order

Posted in workday | Leave a comment

100 000 miles

This morning January 29, 2016 odometer in garage showed at 7:56 99,999 miles, so it was opportunity to take picture, and also to take picture of the palindrom 100001 two miles and few minutes later at 8:04. Notice that temperature was 10 degrees lower. Well, Minnesota Winter, thou mild.
So from October 23, 2009 till January 29, 2016 was 2289 days. (100 000 – 15 000) / 2289 = 37 miles per day, roughly.

Update: March 31, 2016: 101010 miles / 60 = 16.8 mi per day
101010 miles

Posted in workday | Leave a comment

Learning by example

Software magazine has published article Learning by example from Mike Hansen, and one has to only agree, that applying supply chain principles to software development is a good direction.

…there are significant opportunities to make performance gains by optimizing supply chains. By allowing for appropriate constraints or rules to be established up front, automating conformance and tooling, and verifying the information needed to remediate issues or context, organizations can markedly improve efficiency and control risk, thereby unleashing their capacity for innovation.

Posted in workday | Leave a comment

Progress Bar

.ProgressBar {
      width: 300px; /*ProgressBar width*/
      background-color: gray;
      margin-top: 1px;
      position: relative;
      height: 60px;
      border-radius: 5px;
  .ProgressbarMeter {
      width: 59.555%; /*Percetage width of the ProgressbarMeter*/      
      background-color: green;
      margin-top: 3px;
      height: 54px;
      border-radius: 5px;
      position: absolute;

<div class="ProgressBar"><div class="ProgressbarMeter"></div></div>
Posted in workday | Leave a comment

ftp move

There is no move command in ftp client, but it’s possible to do move with help of command rename. Make sure, that directory, into which you are going to move a file, exists.

Example: Let’s say, there is a file abc.war in a current directory, and we would like to move it into new directory alpha/beta/gama

ftp>mkdir alpha
ftp>mkdir alpha/beta
ftp>mkdir alpha/beta/gama
ftp>rename abc.war alpha/beta/gama/abc.war

Posted in workday | Leave a comment

NanoHTTPD Simple Webserver in jar

NanoHttpd is an open-source, small-footprint web server project with github repository. If SimpleWebServer is compiled and jarred into executable jar nanoSimpleWWW.jar, it has size less than 48 kB! Everything what is needed to start is from a directory with HTML files, including index files like index.htm or index.html For example like this:

java -jar nanoSimpleWWW.jar

and you may look at your web page at http://localhost:8080, or you may define more parameters, for example:

java -jar nanoSimpleWWW.jar -p 80 -d C:\Users\Admin\webRoot -q

and look at your web pages at default port http://localhost, quietly without messages about pages being served. Java version at least 1.6 is needed.

Posted in workday | Leave a comment