熱門文章

2021年8月12日 星期四

2020年3月15日 星期日

[教學] 在Windows 10 上跑 Origin RA2

If file is not found, you can leave a message below.
如果檔案失效了,歡迎留言給我
  1. Download cnc-ultimate-collection-launchers.zip (下載這個檔案並執行)
  2. Extract and execute C&C Ultimate Collection Launchers Setup.exe
  3. Download DDWrapper (下載這個檔案,解壓縮到Origin RA2的資料夾)
  4. Extract to 
    • C:\Program Files (x86)\Origin Games\Command and Conquer Red Alert II 
  5. Open aqirt.cfg and change following parameter 0 to 1 (在RA2資料夾裡面修改aqirt.cfg)
    • RealDDrawPath = AUTO
    • BltMirror = 1
    • BltNoTearing = 1
    • ColorFix = 1
    • DisableHighDpiScaling = 1
    • FakeVsync = 0
    • FakeVsyncInterval = 0
    • ForceBltNoTearing = 1
    • ForceDirectDrawEmulation = 1
    • NoVideoMemory = 1
    • SingleProcAffinity = 1
    • ShowFPS = 0
  6. Change following exe compatibility to winXP SP3 (將底下exe改成如下設置)
    1. RA2.exe
    2. RA2MD.exe
    3. game.exe
    4. gamemd.exe

2020年3月5日 星期四

[教學] 2020如何申請信用卡自動轉帳付款授權書 免掛號費 (圖文教學)

  • 如果你的銀行是花旗銀行或者元大銀行
    • 很抱歉,他們沒有提供免費回郵,必須付掛號費寄出才行喔
  • 花旗銀行只要每申請一張信用卡,就要填一次申請書! (超麻煩...
  • 其他銀行只要填一次,不管之後申請幾張信用卡,都是用此帳戶扣款
  • 投郵筒,不要拿去郵局櫃檯,他們會拒收

正式開始:
  1. 列印申請書,各大銀行申請書網址,底下為2020年的連結,之後可能會失效:

2020年2月24日 星期一

[筆記] 在nginx同時裝laravel 跟wordpress

原本以為很簡單設定location就好,沒想到一直回傳404

laravel 
  • path: /var/www/html/blog 
  • web address: www.example.com

wordpress
  • path: /var/www/html/wordpress
  • web address: www.example.com/wordpress

server {

        # Add index.php to the list if you are using PHP
        index index.html index.htm index.nginx-debian.html index.php;

        server_name doki-friends.com www.doki-friends.com;
        root /var/www/html/blog/public;


        location / {
                root /var/www/html/blog/public;
                try_files $uri $uri/  /index.php?$query_string;
        }

        location ^~ /wordpress {
                alias /var/www/html/wordpress;
                try_files $uri $uri/ @wordpress;
                location ~ \.php$ {
                        fastcgi_pass unix:/run/php/php7.2-fpm.sock;
                        fastcgi_index index.php;
                        fastcgi_param SCRIPT_FILENAME $request_filename;
                        include fastcgi_params;
                }
        }

        location @wordpress{
                rewrite /wordpress/(.*)$ /wordpress/index.php?/$1 last;
        }

        # pass PHP scripts to FastCGI server
        #
        location ~ \.php$ {
                include snippets/fastcgi-php.conf;

                # With php-fpm (or other unix sockets):
                fastcgi_pass unix:/run/php/php7.2-fpm.sock;
        }
}


2020年1月8日 星期三

[教學] Blogger內的Adsense廣告沒有顯示?

最近發現加入Blogger的廣告竟然不會顯示,才發現連Blogger廣告也要通過審核才行了,照著以下步驟即可

點選"收益"/Click "Earnings" 

點選切換AdSense帳戶/ Click change AdSense account

選擇你的Gmail 帳戶/ Select your gmail account

點選接受連結 / Click accept link 
點選轉向 / Click redirect


點選繼續 / Click continue


你可以在Adsense上的網站底下看到你的網站正在被審查中
You can see your blogger is under review

2019年9月21日 星期六

[筆記] 免費使用Oracle cloud vps並打開port 80端口


Oracle 最近宣布提供個人終身免費VPS,但是我在架設網站的過程中遇到了一些困難,nginx怎麼連都連不上去,就寫下來分享一下

直接進到Oracle Cloud Infrastructure裡面,照著圖片點選

Click instance



Click Virtual Cloud Network



Click subnet

Click default security list


Remove all rules and add a ingress rule like this

Remove all rules and add a Egress rule like this


這樣還不行!!因為oracle的ubunt有內建ip table,我們把iptables刪除

ssh進去後輸入
sudo apt remove iptables

啟用root登入 Enable root login

  1. sudo passwd root
  2. sudo nano /etc/ssh/sshd_config
    • PermitRootLogin prohibit-password -> PermitRootLogin yes
    • PasswordAuthentication no -> PasswordAuthentication yes
  3. sudo service ssh restart



這樣就設定完成了

接著安裝nginx請參考這篇

另外,提醒一下要注意免費額度400是否有在扣款,Instance shape必須是VM.Standard.E2.1.Micro才是免費的

VM.Standard.E2.1---> Paid
VM.Standard.E2.1.Micro ---> Free

2018年10月20日 星期六

[教學] Install go & gin on ubuntu 18.04

照著官方教學在Ubuntu上有夠難安裝,自己紀錄一下最快的安裝方法

sudo apt install golang-go
sudo apt install govendor

That's it!
接著就可以繼續照著gin的教學走下去

https://github.com/gin-gonic/gin#installation

2018年9月3日 星期一

2018年1月13日 星期六

[筆記] 在Windows 8.1上安裝CPU Ryzen 5 1600的驅動程式









廢話不多說,先靠北個微軟擋住新CPU在windows10以下的所有更新,還跳出個不相容的畫面

解法在這邊,安裝後windows update就可以跑了
https://github.com/zeffy/wufuc

超級靠北,Google了好久都沒找到解法,裝置管理員上一堆無法辨識的裝置

解法: http://support.amd.com/en-us/download

到上面的網址去找CPU型號,Ryzen 5 1600是AM4系列,結果沒有Win8.1的版本可以下載!


直接選windows 10 64bit吧,然後下載下來執行的時候又會出現




沒關係,直接去裝置管理員更新驅動

預設是 C:\AMD\AMD-Chipset-Drivers

靠北!! 可以更新,就這樣。

驅動明明可以更新,執行的軟體卻不給更新,微軟+AMD 我去你的 幹!