2014年3月9日 星期日

datetime format

RFC3339
2008-09-08T22:47:31-07:00

RFC2445 (iCalendar)
20121211155343

ISO8601
2008-12-19T16:39:57.67Z

ATOM = "Y-m-d\TH:i:sP";
COOKIE = "l, d-M-y H:i:s T";
ISO8601 = "Y-m-d\TH:i:sO";
RFC822 = "D, d M y H:i:s O";
RFC850 = "l, d-M-y H:i:s T";
RFC1036 = "D, d M y H:i:s O";
RFC1123 = "D, d M Y H:i:s O";
RFC2822 = "D, d M Y H:i:s O";
RFC3339 = "Y-m-d\TH:i:sP";
RSS = "D, d M Y H:i:s O";
W3C = "Y-m-d\TH:i:sP";




References :
PHP: DateTime - Manual

jQuery prop('checked') vs. is(':checked') 速度比較

$el.prop('checked');
$el.is(':checked');
$el.attr("checked");
$el[0].checked;
 
 
 
 
 
References :

2014年3月2日 星期日

pcmanfm set icon theme

$ ls /usr/share/icons/
$ vi ~/.gtkrc-2.0
gtk-icon-theme-name = "Humanity"

nvidia brightness control on ubuntu 調整螢幕亮度

# vi /etc/X11/xorg.conf 
Section "Device"
        Identifier  "Card2"
        Driver      "nvidia"
        BusID       "PCI:1:0:0"
        Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection

if no /etc/X11/xorg.conf 
# X :1 -configure
# mv xorg.conf.new /etc/X11


boot with argument acpi_backlight=vendor
 

亮度調整
$ xbacklight -dec 20
$ xbacklight -inc 20




References :
NVIDIA - ArchWiki