文章加密

;

2019年2月19日 星期二

找工作 去试试

https://tw.wanted.jobs/wd/17259  这个比较像后端的 他还有前端的职缺,但要资深 有要精通但不会的  所以这个算了

https://www.104.com.tw/job/?jobno=5ycsp&jobsource=2018indexpoc 选这个好了
https://www.104.com.tw/job/?jobno=6clj4&jobsource=2018indexpoc  同一间这个是不资深的,这间的后端是PHP(只是作为比较好入手衔接的...)

2019年2月14日 星期四

git

還不太懂
git gc --aggressive
--no -prune

操作注意事項

  1. 當github上沒有添加公鑰,卻先在本地端添加了git remote的資訊,換造成403錯誤,需先建置好github上的公鑰,再進行本地端與遠端的連結。


筆記
https://www.youtube.com/watch?v=LgTf7m5B0xA
.git/HEAD這個檔案裡記錄了目前是指向哪一個branch,但不要手動修改裡面的路徑,否則會出錯。欲修改用checkout指令。否則branch真的切過去了,但相關的檔案會是錯的。因為checkout的動作除了修改.git/HEAD的內容外,還會將Repo裡的東西搬一分到工作目錄來。

https://www.youtube.com/watch?v=iCGrKFH2oeo
diff.tool
merge.tool

https://www.jianshu.com/p/cc87d5314c80
reset / revert

https://www.youtube.com/watch?v=qWKK_PNHnnA
SSH(懂個概念)

2019年2月10日 星期日

mysql 操作(進一步)

MySQL系统库 information_schema庫中查詢執行指令狀態(大約是):
select * from information_schema.processlist

How can I stop a running MySQL query?
KILL QUERY **Id**

以文字顯示輸出結果匯入資料表
匯出資料庫可以選擇自訂→輸出:以文字顯示輸出結果→執行→複製想要的sql指令→進入想加入剛才匯出的資料表的資料庫→在SQL頁貼上複製的指令→執行

MariaDB v.s. MYSQL
MariaDB算是新版MYSQL中的一支,他有支持在匯入資料表時先lock資料,匯入完成後再unlock資料
舊版MYSQL中並沒有支持
另外還有新版MYSQL,和MariaDB創作者是不同人

何謂COMMIT
確定資料的交易點結束,保存點會全部消除,會釋放交易鎖,每結束一次交易點就會寫入交易的資訊到redo log files,它會用在DML語法,如果你寫的語法為INSERT,UPDATE,DELETE,MERGE,INSERT ALL,INSERT FIRST

格式
COMMIT;

使用方式
新增employees表格資料到emp,確定交易點結束
insert into emp select * from employees;
commit;

https://stackoverflow.com/questions/3787651/how-can-i-stop-a-running-mysql-query
https://zhuanlan.zhihu.com/p/30743094

2019年1月10日 星期四

sftp command line

http://www.mold.net.tw/classroom/ftplearn/dosftp.htm

上連結式在 Windows 的 DOS命令提示號下使用 FTP(File Transfer Protocol),只要把其中的ftp改sftp(Secure File Transfer Protocol)就可以了,其中兩者的port ftp是21,sftp是22所以打錯就連不到囉~會顯示「ftp: connect :連線已等候逾時」。


  1. cmd本地位置設置在要和remote互動的資料夾
  2. 再打上sftp 帳號@網址或ip位置
  3. 輸入密碼(密碼會是看不見的,打的時候沒出現不要緊張)
  4. 完成後就會顯示Connected to 帳號@網址或ip位置
  5. 然後就可以開始操作

(英文版解說)
  1. Using your institution's assigned username, enter the following command: sftp [username]@scp.oclc.org
  2. Enter your institution's assigned password
  3. Choose directory (see directory folders): Enter cd [directory name or path]
  4. To retrieve files, enter get*
  5. To delete files after retrieving them, enter rm*
  6. Enter quit

可以用sftp> get 檔案,但是不能用sftp> get 資料夾,因為you can't do a recursive get with sftp,you should use scp instead


SCP(Secure Copy):scp就是secure copy,是用来进行远程文件复制的,并且整个复制过程是加密的。数据传输使用ssh,并且和使用和ssh相同的认证方式,提供相同的安全保证。 
scp -r 帳號@網址或ip位置:遠端站台位置 欲下載到的本機位置




A core SFTP protocol does not support duplicating a remote file.
There's draft of the copy-file extension to the protocol, but that's supported by only few SFTP servers (ProFTPD/mod_sftp and Bitvise SFTP server for example) and few SFTP clients (WinSCPfor example).
It's definitely not supported by the most widespread OpenSSH SFTP server. Nor by OpenSSH SFTP client (sftp), i.e. there's no cp command or any other functionally equivalent.

Alternatives (which you seem to know and won't help you):
  • If you have SSH/terminal access into the server, use the shell cp command.
  • If your SFTP server supports the copy-file extension, use an SFTP client that supports it too.
  • Otherwise, your only option is to download the file to a local temporary location and upload its copy back to a different/target remote directory.
    Some SFTP clients can do this for you even transparently in one go (e.g. in WinSCP, see Duplicate via local temporary copy option on Duplicate dialog).



https://docs.oracle.com/cd/E26502_01/html/E29001/remotehowtoaccess-14.html  這個在研究一下

2019年1月8日 星期二

crud l

所謂的CRUD是指 新增(Create)、讀取(Read)、更新(Update)、刪除(Delete);有時會聽到「五個動作」,就只是再加上一個列表(List)的動作,RoR可以一次就包辦起來,在自己還沒搞清楚怎麼去寫這些從網頁來操作資料庫的動作前,就可以運作了。

所有前端跟API之間的動作,不外乎就是CRUD L。

reference:
https://ithelp.ithome.com.tw/articles/10009733

2019年1月3日 星期四

:hover 和 :before, :after 不能用在同元素

:hover 和 :before, :after 不能用在同元素

否则:hover在他们生出的content上也会有hover反应,这情形通常是不乐见的!