sundry memo


disable textarea resizing— {resize:none;}

input type text:

to prevent input tag to remember type history—<input type=”text” autocomplete=”off”/>

Posted in css, IT | Leave a comment

js methods

  • string methods:
    substring(from, to)  eg: “Elizabeth”.subtring(1,4);// lizslice(from, to)  eg: “Elizabeth”.slice(1,4);// lizsubstr(from, size)  eg: “Elizabeth”.substr(1,3);// liz
  • css methods:
    var style = document.styleSheets[0].rules[0].style;
    style.setProperty(‘margin’, ‘1px 2px’);
    // Equivalent to:
    // declaration.margin = ‘1px 2px’;

Continue reading

Posted in javascript | Leave a comment

css tips

  • to make an element clickable on iphone:


Continue reading

Posted in Uncategorized | Leave a comment

windows commands

    • netstat

Continue reading

Posted in IT | Tagged | Leave a comment



1. The Industrial Revolution and its consequences have been a disaster for the human race. They have greatly increased the life-expectancy of those of us who live in “advanced” countries, but they have destabilized society, have made life unfulfilling, have subjected human beings to indignities, have led to widespread psychological suffering (in the Third World to physical suffering as well) and have inflicted severe damage on the natural world. The continued development of technology will worsen the situation. It will certainly subject human beings to greater indignities and inflict greater damage on the natural world, it will probably lead to greater social disruption and psychological suffering, and it may lead to increased physical suffering even in “advanced” countries.

Continue reading

Posted in philosophy | Leave a comment