Make chrome an editor

Just paste this as URL of the browser tab: data:text/html, <title>Text Editor</title><body contenteditable style="font-size:2rem;line-height:1.4;max-width:60rem;margin:0 auto;padding:4rem;">   Exteded version:  data:text/html;charset=utf-8, <title>TextEditor</title> <link rel="shortcut icon" href="http://g.etfv.co/https://docs.google.com"/> <style> html{height: 100%;} body{background: -webkit-linear-gradient(#f0f0f0, #fff); padding: 3%; height: 94%;} .paper { font: normal 12px/1.5 "Lucida Grande", arial, sans-serif; width: 50%; height: 80%; margin: 0 auto; padding: 6px 5px 4px 42px;…

Read More

Log4J programmatical configuration

package com.howtodoinjava;   import java.io.IOException;   import org.apache.log4j.ConsoleAppender; import org.apache.log4j.Level; import org.apache.log4j.Logger; import org.apache.log4j.PatternLayout; import org.apache.log4j.RollingFileAppender;   public class ProgrammticallyConfigureAppenderExample {   private static final Logger log = Logger.getLogger(ProgrammticallyConfigureAppenderExample.class);   public static void main(String[] args) { //This is the root logger provided by log4j Logger rootLogger = Logger.getRootLogger(); rootLogger.setLevel(Level.DEBUG);   //Define log pattern layout PatternLayout layout = new PatternLayout("%d{ISO8601} [%t] %-5p %c %x – %m%n");   //Add console appender to root logger…

Read More