воскресенье, 20 ноября 2011 г.

как узнать версию debian


  1. lsb_release -a
    No LSB modules are available.
    Distributor ID: Debian
    Description: Debian GNU/Linux 6.0.3 (squeeze)
    Release: 6.0.3
    Codename: squeeze
    

  2. cat /etc/debian_version
    6.0.3
    

вторник, 8 ноября 2011 г.

localStorage работа с массивом javascript

чтение массива из localStorage
if (localStorage["wordlist"]) {
array_words = JSON.parse(localStorage["wordlist"]);
} else {
array_words = [];
}
добавление элементов в массив
array_words.push("green");
array_words.push("cat");
запись массива в localStorage
localStorage["wordlist"] = JSON.stringify(array_words);

воскресенье, 6 ноября 2011 г.

как узнать версию материнской платы (ubuntu 11.10)


  1. sudo dmidecode -t 2
    
    # dmidecode 2.9
    SMBIOS 2.4 present.
    
    Handle 0x0005, DMI type 2, 8 bytes
    Base Board Information
        Manufacturer: MICRO-STAR INTERNATIONAL CO., LTD
        Product Name: MS-7253
        Version: 1.0
        Serial Number:  
    

  2. sudo lshw -c bus | head
    
    *-core                  
           description: Motherboard
           product: MS-7253
           vendor: MICRO-STAR INTERNATIONAL CO., LTD
           physical id: 0
           version: 1.0