在/etc/profile中加入
pulseaudio --start --log-target=syslog
然后
source /etc/profile

1.the problem is you have broken linux image kernel
you have to select other health image kernel
now I have 4..*...latency broken ,so i select health image like 4...*.generic
or you can enter generic then apt install
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
1.從ptt看到選取每個學生日期最新的成績的問題
select * from x b inner join (select max(date)as date,name from x GROUP BY name ) c on b.date=c.date and b.name=c.name
不能單獨 select max(date),name,score from x group by name score會出錯
先選最新時間,如果有重複的時間選最高成績,那就
select b.name,max(score),max(date) from x b inner join (select max(date) as date,name from x GROUP BY name ) c using(date) group by b.name

1、看家的狗
一位牵着一条小狗的男子,怒气冲冲地闯进一家犹太商人开的宠物店,对老板说:“我买你的这条狗看门,但昨天晚上,有个小偷溜进我家,偷走我200美元,可这条狗眼睁睁地看着发生的一切愣是一声没吭。”
这个犹太老板是这样解释的:“这条狗以前的主人是千万富翁,因此对于你那区区的200美元,根本就没放在眼里。”
旁敲侧击:管理只有恒久的规律存在,没有固定的答案可寻,所以绝不能生搬硬套。比如,很多管理方法和经验,运用在甲企业中是十分正确的,但移植到乙企业里,就会出现“水土不服”的现象,严重阻碍企业的发展。
2、机场遭遇
在/etc/profile中加入
pulseaudio --start --log-target=syslog
然后
source /etc/profile
(initramf)fsck -f /dev/sda1 修復硬碟
1.如何處理textarea換行在div顯示
在div的css加work-space:pre-line
2. A component is changing a controlled input of type text to be uncontrolled. Input elements should not
form
不小心寫成this.setState({user:[name]:event.target.value})
1.
import { take, put,takeLatest, call, fork, select, takeEvery, all } from 'redux-saga/effects'
import {getJobList} from './jobSaga'
import {watchLogin} from './userSaga'
1.map item 時裡頭onClick方法不可以
onClick={this.handlexxx(item)}
用this.xx()型式會導致直接執行
所以要在
render(){
6.正向与反向预查
"Swift1 Swift2 Swift3Swift4Swift4Swift4"
(Swift4) 匹配Swift4并获取这一匹配,然后存储供以后使用;
(Swift4)\1 匹配Swift4Swift4,其中\1即表示使用了存储的匹配(存储的第一个匹配),相当于匹配两次Swift4;
(Swift3)(Swift4)\2 匹配Swift3Swift4Swift4,其中\2即表示使用了存储的第二个匹配,即Swift4(当然第一个匹配为:Swift3);
死鎖意思:兩個人都在等廁所,以為廁所有人用,但廁所實際上沒人用
排他鎖:我有這個鎖別人不能讀select不能改update,在update語句時自動加上
共享鎖:select自動鎖上,可以有很多session對同一個record鎖上共享鎖,但有其他session要更新資源要等全部共享鎖釋放,目的是update 和select的隔離
更新鎖:一個事務select ..for update再update, ,意思是這個session先取得由讀到寫的資格,但別人還是可以讀,不會造成死鎖
意向锁 :一個事實,當表中有一列被加排他鎖時就不能對全表鎖,但要如何知道有沒有就要一列一列找,但實際db運作是加排他鎖也加意向鎖,這個要全表鎖的query不用再一條一條找,只要等待