macos system launch config

MacOS Config options MacOS boot service is mainly configured via three ways: 1.  the system preferences -> Users & Groups -> Login items 2. /System/Library/StartupItems and /Library/StartupItems/ 3. launchd system initialization process configuration. The first two are relatively simple, we will focus mainly on the third more complex launchd configuration optimization. launchd is a key…

disable the macos auto update notification

The auto update notification is pretty annoying since it popup everyday, and you need several clicks to make it disappear. change from UI I tried to disable it from System Preference -> App Store -> uncheck Automatically check for update. it does not that the checkbox keep checked after i reopen the system preference panel….

disable obfuscation in gwt css resources

Option 1 setting in gwt.xml use the the code that generates the aforementioned  very  long class names is present in the computeObfuscatedNames  method of com.google.gwt.resources.rg.CssResourceGenerator  class: Retaining the original class names is a very useful tool while development. (obfuscation is ideal for only production) Unfortunately, you can not override the above method which means we are stuck…

enable / disable a JSF Command Button

primeface page goes like this,  <p:commandButton update=”panel1″  actionListener=”#{bean.button1}” value=”button1″ disabled=”#{bean.disable}”>      <f:setPropertyActionListener value=”#{false}” target=”#{bean.disable}”/>    </p:commandButton>  <p:commandButton update=”panel2″  actionListener=”#{bean.button2}” value=”button1″ disabled=”#{!(bean.disable)}”>      <f:setPropertyActionListener value=”#{true}” target=”#{bean.disable}”/>      </p:commandButton> Manage Bean:  public class Bean {     private boolean disable;     // default constructor     public Bean(){        this.disable= false;…