Hướng dẫn Cách Tải & Sử Dụng Phần Mềm Luyện Thi Lý Thuyết Ô Tô Và Mô Tô Trên Linux (fedora)

Tải bản cài đặt trên các trang khác ví dụ  https://hoclaixemoto.com/phan-mem-luyen-thi-sat-hach-ly-thuyet-lai-xe/ Cài Wine Fedora hiện dùng Wine từ repository chính: sudo dnf install wine Kiểm tra: wine --version Khởi tạo Wine Prefix winecfg Lần đầu chạy Wine sẽ tạo: ~/.wine Nếu muốn làm lại từ đầu: rm -rf ~/ .wine winecfg Cài Winetricks sudo dnf install winetricks Kiểm tra: winetricks --version Cài các thành phần cần thiết Đối với các ứng dụng .NET Framework: winetricks dotnet48 Quá trình này khá lâu, Wine sẽ mở nhiều cửa sổ cài đặt. Nếu gặp lỗi prefix cũ, tạo prefix mới: rm -rf ~/ .wine wineboot winetricks dotnet48 Cài thêm các runtime thường gặp Nhiều ứng dụng game hoặc tool Windows cần thêm: winetricks vcrun2015 winetricks vcrun2019 winetricks corefonts Hoặc: winetricks allfonts Chạy chương trình wine TuluyenSathachLyThuyet .exe

Session memcached cho Zend 1

Session memcached cho Zend 1

File: application/Bootstrap.php
<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap 
{
...
protected function _initSessionId()
    {

    $this->bootstrap('session');
        Zend_Session::getSaveHandler()->setCache(My_Memcache::getSessionCache());
    }
...
}


File: /library/My/Memcache.php
<?php
class My_Memcache{

    private static $_ssinstance;  
public static function getSessionCache() {
        if(!is_object(self::$_ssinstance))
        {
            $cacheConf = new Zend_Config_Ini(CONFIG_PATH . '/cache.ini', APPLICATION_ENV); 
            $memcache = $cacheConf->memcached;

            self::$_ssinstance = Zend_Cache::factory($memcache->frontend->name,
                                            $memcache->backend->name, 
                                            $memcache->frontend->options->toArray(),
                                            $memcache->backend->options->toArray());
        }
        return self::$_ssinstance;

    }
}


File: application/configs/application.ini
[production]
;session savehandler class
resources.session.name              = ssdomain
resources.session.saveHandler.class = Zend_Session_SaveHandler_Cache
resources.session.gc_maxlifetime    = 86400

resources.session.cookie_domain     = "domain.vn"

Bài đăng phổ biến từ blog này

Gọi hàm nhiều cấp trong MIPS

Đệ quy trong MIPS