2019年5月18日 星期六

恭喜台灣通過同性婚姻合法化

文章落落長,主要是解說為甚麼台灣有1千多萬人投票支持同志結婚

台灣是法治國家,國家最高層級的法律叫做憲法,所有的法律不能違反憲法的精神,違反的稱作違憲,包含公投產生的結果,都不能違反憲法或是違反釋憲結果
有一群法官,由總統提名,立法院同意的叫做大法官,負責判決特定法規是否有違反憲法
在2017年,大法官做出了判決,同性戀不能結婚違反了憲法,應該要修正,也給出了2年的時間來修民法或是修訂專法處理同性戀結婚相關的法規

1.公投
2018年底選舉時,下一代幸福聯盟提出了三項公投案,也通過了公投,成案
第10案
你是否同意民法婚姻規定應限定在一男一女的結合?
第11案
你是否同意在國民教育階段內(國中及國小),教育部及各級學校不應對學生實施性別平等教育法施行細則所定之同志教育?
第12案
你是否同意以民法婚姻規定以外之其他形式來保障同性別二人經營永久共同生活的權益?

其中10,12案與同性結婚有關,雖然看起來很奇怪,同一件事情為甚麼要分成2個題目
第10案
你是否同意民法婚姻規定應限定在一男一女的結合?
投了同意意思就是民法婚姻相關的規定,不能為了讓同性戀結婚而做修改,投反對就是修改民法,加入同性戀結婚相關的法規,而這題公投有通過成案門檻

第12案
你是否同意以民法婚姻規定以外之其他形式來保障同性別二人經營永久共同生活的權益?
投了同意意思就是用民法婚姻規定以外的形式,也就是專法來保障同性戀結婚的權益,而這題公投有通過成案門檻

合併起來,意思就是同性戀用專法來結婚,不修改民法,異性戀繼續用民法結婚

2.同婚專法有沒有違反公投結果?
沒有,如果今天立法院是修改民法來讓同性戀結婚,那才是違反公投結果

3.1千多萬人支持同志結婚怎麼算出來的
公投結果就是7百多萬人支持同志用專法結婚,3百多萬人支持修改民法加入同性戀結婚相關的法規,加起來就是1千多萬人
至於說反對同性戀可以結婚的,一開始就不應該去投這些公投囉,因為沒有符合這個選項的公投,也不會有,因為這樣的公投違法了憲法,不能公投

4.公投題目看不懂騙人
這沒辦法,提出公投的人就是這樣寫,所以題目要看清楚,選舉公報自己要看清楚

2018年10月14日 星期日

機車報廢流程

前幾天,我把我的舊機車報廢了,流程大概是這樣的

如果是要換新的機車,或是電動機車,就是把舊車帶到車行,準備好車主證件,行照,交給車行處理

我沒有要買新車,流程就是
1.上網找距離最近的車輛回收業者
https://recycle.epa.gov.tw/epa_search3/Nepa_searchv21.aspx?sno=31

2.跟對方聯絡,約時間由對方來回收舊車或是自己把舊車送過去,準備好車主的證件跟行照,並取得回收單據,車牌要拆下來先留著

3.拿著車主的證件,拆下來的車牌跟行照,到監理所辦理報廢,取得車輛報廢的證明,監理所會退剩餘的稅金,只是這年代還用支票退,要自己跑銀行,實在是很麻煩

4.上網登錄,填資料,等回收獎勵金入帳
https://recycle.epa.gov.tw/epa/ShowPage2.aspx?sno=45

5.聯絡保險公司,提供報廢證明跟其他資料,退保強制險

2018年1月27日 星期六

blogger now support https for custom domain name

blogger now support https encrypt for custom domain

all i need to do is , login to administration panel of blogger , enable costom domain in settings , basic

ignore the warning , custom domain don't support https , just save and wait for some time

back to settings , basic, once blogger is ready to enable this function , select yes in https availability and https redirect , save settings 

wait for some time when blogger to generate ssl certificate from let's encrypt , the free ssl certificate and https blog , it's done

the ssl certificate is only valid for 3 months , but it's ok  

windows server 2012 r2 kb4057903 issue and workaround

on january of 2018 , kb4057903 was released from microsoft , it is for windows server 2012r2 virtual machine guest os

if exchange 2013 or exchange 2016 was installed on windows server 2012 r2 virtual machine guest os , and try to install kb4057903 , there will be an issue
installation of kb4057903 will be fail , and when windows update ask to restart , system won't be start , and get stuck in "preparing to configure windows , do not trun off computer" screen for a long long time
when virtual machine guest os is ready to login , virtual netwrok is fail to load , there will be no any network connection

the only workaround is login into virtual machine
send control + alt + delete function key to virtual machine
start task manager
start new task from menu
type msconfig to start system configuration
on boot tab , select safe boot and click ok to reboot virtual machine guest os to safe mode

on safe mode , login with administrator account
from administrative tools menu , find services and catch screen shot for exchange services , so i know which services should start on system boot
scroll down to find msexchange service and disable all exchange service
execute msconfig command to start system configuration again , on boot tab , unckeck safe boot , and click ok to reboot virtual machine

login into virtual machine , try to install kb4057903 again , reboot virtual machine
virtual network connection should working well
from administrative tools menu , find services
check screen shot i just got and restore all exchange services state
reboot virtual machine , every thing should be working well

check this link for more information
https://social.technet.microsoft.com/Forums/en-US/387da0db-6046-4838-9db7-c8ddcb6810da/update-kb4057903-fails-in-windows-server-2012-r2-hyperv?forum=winserverhyperv

2016年8月22日 星期一

simple note for exchange 2013 cu upgrade

1. download exchange 2013 cu from microsoft and extract
2. upgrade windows ad schema
    setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms
    setup.exe /PrepareAD /IAcceptExchangeServerLicenseTerms
    setup.exe /PrepareDomain /IAcceptExchangeServerLicenseTerms
3. upgrade cu on front end server & reboot
4. upgrade cu on dag server
    move-activemailboxdatabase -server notupgradenow
    suspend db replication on ecp
    upgrade cu & reboot
5. resume db replication on ecp
6. move-activemailboxdatabase -server notupgrade now
    suspend db replication on ecp
    upgrade cu & reboot
7. resume db replication on ecp

   

2016年7月29日 星期五

plugins for fedora Linux to play mp3 music and mp4 video

fedora linux don't have official repo for multimedia plugins due to license issue
so , i need to install plugins form 3rd party repo

su -c 'dnf install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'

dnf install gstreamer{1,}-{ffmpeg,libav,plugins-{good,ugly,bad{,-free,-nonfree}}} --setopt=strict=0

dnf install gstreamer{1,}-{plugin-crystalhd,ffmpeg,plugins-{good,ugly,bad{,-free,-nonfree,-freeworld,-extras}{,-extras}}} libmpg123 lame-libs --setopt=strict=0

2016年5月27日 星期五

arch linux installation for hp envy 13 2016 (efi mode)

I got a new laptop , hp envy 13 2016 with efi mode , here is how to install arch linux

01. hold f10 , and press power button to boot into bios , and disable secure boot , save and reboot
02. download arch linux system iso from https://www.archlinux.org/download/
03. create bootable usb disk with rufus (for windows) or dd (for linux)
04. boot with usb disk
05. connect to wifi with wifi-menu
06. delete everything on disk with gdisk /dev/sda (x,z,y,y)
07. create disk partition with cgdisk /dev/sda
08. what I need is sda1 for boot (1024mb) , sda2 for swap (8GB) , sda3 for /
09. create boot and change hex code to EF00 , name it boot
10. create swap and change hex code to 8200 , name it swap
11. create / and name it root , write to disk , save and quit
12. mkfs.fat -F32 /dev/sda1
13. mkswap /dev/sda2 , swapon /dev/sda2
14. mkfs.ext4 /dev/sda3
15. mount /dev/sda3 /mnt
16. mkdir /mnt/boot/
17. mount /dev/sda1 /mnt/boot
18. edit mirrorlist and keep taiwan mirror site only with nano /etc/pacman.d/mirrorlist
19. install base system with pacstrap -i /mnt base base-devel
20. generate fstab for new system with genfstab -U -p /mnt >> /mnt/etc/fstab
21. edit fstab and add options for swap , /dev/sda2 none swap defaults,discard 0 0
22. arch-chroot /mnt
23. nano /etc/locale.gen and uncommented en_US.UTF-8
24. generate locale with locale-gen
25. setup language setting with echo LANG=en_US.UTF-8 > /etc/locale.conf
26. setup timezone with tzselect
27. link time zone file with ln -s /usr/share/zoneinfo/Asia/Taipei /etc/localtime
28. sync time with hwclock --systohc --utc
29. setup hostname with echo arch > /etc/hostname
30. regenerate initramfs image with mkinitcpio -p linux
31. install bootloader with bootctl install
32. find disk uuid for / with blkid -s PARTUUID -o value /dev/sda3
33. install intel ucode , libnl , wpa_supplicant with pacman -S intel-ucode libnl wpa_supplicant dialog
34. create bootloader entry with nano /boot/loader/entries/arch.conf
35. add these configuration to /boot/loader/entries/arch.conf
      title Arch Linux
      linux /vmlinuz-linux
      initrd /intel-ucode.img
      initrd /initramfs-linux.img
      options root=PARTUUID=result from setp 32 rw
36. exit arch chroot with exit
37. umount all with umount /mnt/boot , umount /mnt
38. reboot and it's done