RESTfull web

REST is acronym for Representational state transfer. It was defined in 2000 by Roy Fielding in his doctoral dissertation. System conforming REST constraints can be called RESTful and most the time is using protocol HTTP utilizing its methods GET, POST, PUT, DELETE, and sometimes more. Web service APIs that adhere to the REST architectural constraints are called RESTful APIs.

Architectural constraints:

  1. Client–server
  2. Stateless
  3. Cacheable
  4. Layered system
  5. Code on demand -optional (applets)
  6. Uniform interface
    Identification of resources (URI)
    Manipulation of resources through representations (JSON, XML, HTML, text, …)
    Self-descriptive messages (application/json, text/html, … )
    Hypermedia as the engine of application state (HATEOAS)


Posted in RRR | Leave a comment

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