No Tabs in IntelliJ IDEA – Hadi Hariri

No Tabs in IntelliJ IDEAI often come across people complaining about some odd behaviour when it comes to editor tabs in IntelliJ IDEA or any of the other sister products such as WebStorm or PhpStorm. Some expect a different kind of behavior from tabs. Others want the ability to have different colored tabs and some want them numbered.My advice to all of them? Switch tabs off. You don’t need tabs.

via No Tabs in IntelliJ IDEA – Hadi Hariri.

Using H2 with Grails and Tomcat in Production

Using H2 with Grails and Tomcat | Outside the Box().   Nice post about setting up to use H2 in production.

Why would one want to do this at all?  To test WAR deployment rather than using run-app.

What was learned:

  • it is possible to use file based H2 in the production environment
  • bootstrap.groovy sample data will load in the production environment
  • you can enable the dbconsole facility in production (the default JDBC URl only gave a connection to the H2 metadata information but if you set it based on the datasource.groovy ‘dbdir’ as in dbdir = “${System.properties['catalina.base']}/db/sample” and manually set the path based on your tomcat installation as in dbdir = “/usr/local/tomcat/db/sample” results in visibility to the application tables as well as the INFORMATION_SCHEMA content)
  • tomcat hot deploy is the default behavior allowing you to just compile the WAR into the webapps directory for automatic extraction – see your tomcat/conf/server.xml for default configurations including this
  • tomcat will automatically attempt to load all apps in the webapps directory on startup

Unix Less Command: 10 Tips for Effective Navigation

Unix Less Command: 10 Tips for Effective Navigation

via Unix Less Command: 10 Tips for Effective Navigation.

Very handy for working with Tomcat or other Nix apps that use log files heavily.

From the post my favorites:

Forward Search

  • / – search for a pattern which will take you to the next occurrence.
  • n – for next match in forward
  • N – for previous match in backward

Backward Search

  • ? – search for a pattern which will take you to the previous occurrence.

  • n – for next match in backward direction

  • N – for previous match in forward direction

Screen Navigation

  • CTRL+F – forward one window

  • CTRL+B – backward one window

  • CTRL+D – forward half window

  • CTRL+U – backward half window

Line navigation

  • j – navigate forward by one line
  • k – navigate backward by one line

Other

  • G – go to the end of file

  • g – go to the start of file

  • q or ZZ – exit the less pager

  • F - Simulate tail -f inside less pager

A Complete Guide To Tomcat Start-Up: Manual, Automatic, and Remote | MuleSoft

A Complete Guide To Tomcat Start-Up

Manual, Automatic, and Remote

At first glance, starting up the Tomcat Server is a simple task. On the other hand, when you consider that it can be accomplished in a variety of ways (manually, automatically, or remotely), that these methods differ from platform to platform, and that when it comes down to it, if you can’t get your server to start up, you’re in a real bind, there’s actually a lot to talk about.

The goal of this guide is to put all the information about starting Tomcat there is on one page, in a clear, accessible format.

via A Complete Guide To Tomcat Start-Up: Manual, Automatic, and Remote | MuleSoft.

Debugging AngularJS Apps from the Console

We can access any scope even isolated ones! on the page with a simple JS one-liner:> angular.elementtargetNode.scope-> ChildScope {$id: “005″, this: ChildScope, $$listeners: Object, $$listenerCount: Object, $parent: Scope…}Or for isolated scopes:> angular.elementtargetNode.isolateScope-> Scope {$id: “009″, $$childTail: ChildScope, $$childHead: ChildScope, $$prevSibling: ChildScope, $$nextSibling: Scope…}Where targetNode is a reference to an HTML Node. You can grab one easily using document.querySelector.

via Debugging AngularJS Apps from the Console.

The Twelve-Factor App

In the modern era, software is commonly delivered as a service: called web apps, or software-as-a-service. The twelve-factor app is a methodology for building software-as-a-service apps that:Use declarative formats for setup automation, to minimize time and cost for new developers joining the project;Have a clean contract with the underlying operating system, offering maximum portability between execution environments;Are suitable for deployment on modern cloud platforms, obviating the need for servers and systems administration;Minimize divergence between development and production, enabling continuous deployment for maximum agility;And can scale up without significant changes to tooling, architecture, or development practices.The twelve-factor methodology can be applied to apps written in any programming language, and which use any combination of backing services database, queue, memory cache, etc.

via The Twelve-Factor App.

DSON – Doge Serialized Object Notation

DSON Doge Serialized Object Notation is a data-interchange format, that is easy to read and write for Shiba Inu dogs. It is easy for machines to parse and generate. It is designed to be as similiar as possible to the DogeScript Programming Language. DSON is a text format that is not language independent but uses conventions that are familiar to a wide variety of japanese dog breeds. These properties make DSON an ideal data-interchange language for everything that involves Shiba Inu intercommunication.

via DSON – Doge Serialized Object Notation.

UXD and Javascript Apps