vendure GraphQL Login
https://demo.vendure.io/shop-api
union ..........
Need use ... on
mutation {
authenticate(
input: {
native: { username: "test@vendure.io", password: "test" }
}
rememberMe: true
) {
... on CurrentUser {
id
identifier
channels {
id
token
code
permissions
}
}
... on InvalidCredentialsError {
message
}
}
}
aws ecr new account docker push policy
1. IAM User -> New User -> Demo_ECR
Add Permissions policies 新增許可 a. 直接連接現有政策 AmazonEC2ContainerRegistryPowerUser b. 建立policies -> Demo_ECR https://docs.aws.amazon.com/AmazonECR/latest/userguide/security-iam-awsmanpol.html2. install aws cli tools windows
https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-windows.html3. aws ecr repositories -> private -> create repository
input demo Keep ooxxooxxooxxooxx.dkr.ecr.ap-northeast-1.amazonaws.com/demo save4. aws cli login powershell windows
aws configure go back IAM, show Demo_ECR -> 安全登入資料 security login run 建立存取金鑰 create Access Key copy new Access Key ID and AWS Secret Access Key back aws configure. Input Access Key ID, Secret Access Key, ap-northeast-1 and Enter5. docker login
aws ecr get-login-password --region ap-northeast-1 copy return Text like: eyJwYXlsb2FkIjoieE9hcWgzYmdPOXpN...............6. docker image craete
First check your docker image: docker image ls REPOSITORY = Image Name. Tag is import. Example "demo" is my image that want to send to aws repository. docker tag "your image name":"your image" tag "aws repository URI" docker tag demo:latest ooxxooxxooxxooxx.dkr.ecr.ap-northeast-1.amazonaws.com/demo check "docker image ls" again Now you can see new repository: ooxxooxxooxxooxx.dkr.ecr.ap-northeast-1.amazonaws.com/demo7. docker image push
docker push ooxxooxxooxxooxx.dkr.ecr.ap-northeast-1.amazonaws.com/demo Finish.ERROR
Q: error parsing HTTP 403 response body: unexpected end of JSON input: "" A: When you step 3. Image scan settings:get error If you check true. You can change false then push success. A. other way. https://github.com/aws/aws-toolkit-azure-devops/issues/311 https://stackoverflow.com/questions/34423873/docker-push-to-aws-ecr-private-repo-failing-with-malformed-json go back step 1. change policy.livewire checkbox
php
public $check_items;
public function mount()
{
$this->check_items = collect(["png" => true, "scs" => true, "scz" => false, "xml" => true, "pdf" => false, ]);
}
blade
@forelse($check_items as $index => $item)
@empty
@endforelse
Expected response code 250 but got an empty response laravel 8
https://blog.trippyboy.com/2021/laravel/laravel-expected-response-code-250-but-got-an-empty-response/
./config/mail.php
'local_domain' => env('MAIL_HOST'),
'default' => env('MAIL_MAILER', 'smtp'),
'mailers' => [
'smtp' => [
'transport' => 'smtp',
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
'port' => env('MAIL_PORT', 587),
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'timeout' => null,
'auth_mode' => null,
'local_domain' => env('MAIL_HOST'),
],
laravel rules validate multiple row for other column
Multiple parts (id, name, finish, finish_noe)
finish = 2 is Job OK
protected $rules = [
'parts.*.finish_note' => ['required_if:parts.*.finish,2'],
]
firebase deploy use rastasheep/ubuntu-sshd
docker run -d -P -p 9005:9005 -p 2222:22 -v C:\Users\user\Downloads\ooxxooxx\public_html:/project --name test_sshd rastasheep/ubuntu-sshd:18.04
> apt update
> apt install curl
> curl -sL https://deb.nodesource.com/setup_16.x | bash -
> apt-get install -y nodejs
> npm install -g firebase-tools
> cd /project
> firebase login
> firebase deploy
程式設計師是如何神不知鬼不覺的弄丟銀行1分錢的?
https://kknews.cc/zh-tw/finance/zpxln2q.html
[開發經驗分享][JavaScript]浮點數運算出現一堆小數位數
https://dotblogs.com.tw/WillianHsiaoDotNetBLog/2020/01/15/JavascriptFloatCaculateBug?fbclid=IwAR0SnYG7FnesbfENWCsOT_ceGxqab6Q1dksJ3qIr-pe65m55wNBlWLc0Ns0
精確的浮點數運算 ?
https://medium.com/pyladies-taiwan/%E7%B2%BE%E7%A2%BA%E7%9A%84%E6%B5%AE%E9%BB%9E%E6%95%B8%E9%81%8B%E7%AE%97-28d34e652e51
疫苗
【開放CALLIN】🐶高端「真的」超級安全!?世界最大三期人體試驗場?論實證醫學重要性! ft. 台灣白色巨砲鄭醫師|歷史哥Talk 110.8.27
35分開始
文件有等級表 1最高,5最低,5:是專家學者意見
July 21, 2021 https://www.nejm.org/doi/full/10.1056/NEJMoa2108891?query=featured_coronavirus Table 2
AZ疫苗致死風險就是比較高!簡單的邏輯教您科學思考!|歷史哥短篇
50分
林全 東洋 16:40 https://youtu.be/STBO88yaRI8?t=1000
兴疫苗如何?有效性与安全性不如辉瑞,阿斯利康,强生的疫苗? 于博士在德国
COVID-19疫苗統計資料 https://www.cdc.gov.tw/Category/Page/9jFXNbCe-sFK9EImRRi2Og
迷思?! 英 登記打疫苗,官方的 https://www.nhs.uk/conditions/coronavirus-covid-19/coronavirus-vaccination/book-coronavirus-vaccination/ If you're under 40, you'll only be shown appointments for the Pfizer/BioNTech or Moderna vaccines. If you're 40 or over, you'll be asked if you're pregnant to make sure you're only shown appointments for these vaccines.
澳洲 https://www.health.gov.au/initiatives-and-programs/covid-19-vaccines/learn-about-covid-19-vaccines/about-the-astrazeneca-covid-19-vaccine The Australian Technical Advisory Group on Immunisation (ATAGI) recommends the COVID-19 vaccine by Pfizer (Comirnaty) is preferred in adults aged under 60 years. In people 60 years and over, ATAGI continue to advise that the benefits of vaccination with the AstraZeneca vaccine outweigh the risks associated with vaccination. This recommendation is based on: the increasing risk of severe outcomes from COVID-19 in older adults (and hence a higher benefit from vaccination), and the increased risk of thrombosis with thrombocytopenia following AstraZeneca vaccine in those under 60 years. There appears to be a small risk of TTS in people 60 years and over, but this risk appears to be lower than in younger people. Cases overseas have been reported at all ages. 1) 輝瑞/BNT一劑:52%。 2) 莫德納一劑:69.5%。 3) #AZ一劑: 76%!!
https://youtu.be/S2QChiAocmc?t=41 40 秒 鄭運鵬:拿第二期、第三期試驗當作疫苗的條件,這是沒有必要的,只要有緊急授權就好。
https://youtu.be/BvH46GLx7xg?t=3494 完全不推國產疫苗
Fosun Pharma will commercialize the COVID-19 vaccine in Greater China upon regulatory approval, including mainland China, Hong Kong, Macau and Taiwan. https://biontech.de/covid-19
柯P怨疫苗預約系統來不及做好 唐鳳聲明回擊 https://tw.news.yahoo.com/%E6%9F%AFp%E6%80%A8%E7%96%AB%E8%8B%97%E9%A0%90%E7%B4%84%E7%B3%BB%E7%B5%B1%E4%BE%86%E4%B8%8D%E5%8F%8A%E5%81%9A%E5%A5%BD-%E5%94%90%E9%B3%B3%E8%81%B2%E6%98%8E%E5%9B%9E%E6%93%8A-002907650.html 回覆台北市的內容意旨僅有,「這批日本124萬劑AZ疫苗,不會使用疫苗預約系統」等語,與柯文哲所謂「疫苗預約系統來不及做好」的說法不符
不認同二期解盲就使用 中研院研究技師:應加入英國株病毒數據 https://udn.com/news/story/122190/5525521 中研院研究技師詹家琮說明,高端疫苗臨床二期解盲會過是合理的,但這是使用原始病毒株的數據,就二期來說也是OK的,但不適合直接通過食藥署EUA給人使用;如果不做三期臨床試驗,二期解盲的血清中和效力試驗一定要加上變異病毒株的實驗數據。 詹家琮解釋,三期臨床試驗要檢驗的是,疫苗接種者在他們生活的環境中,感染病毒的機率與病理表現,也就是當時當地人們正遭遇的病毒,感染後是否有保護力;因此,若要以二期試驗取代三期臨床試驗,應當以疫苗接種者之後會遭遇到的病毒來做試驗,否則數據就會失真而不可信。 詹家琮表示,若國產疫苗企圖以增加二期臨床試驗人數達到數千人,來彌補或是取代三期臨床試驗,是不得已接受的現實,但只要沒有做英國或印度的變異病毒株的實驗數據,就緊急給國人使用,他絕對無法認同。
兩樣情!香港BNT疫苗打不完 趙少康呼籲開放台人接種 https://www.bcc.com.tw/newsView.6307210 香港政府預訂了750萬劑輝瑞BNT(港稱復必泰疫苗),根據港府5月25日的說明,輝瑞BNT已到貨200多萬劑,至今庫存約84萬劑,使用期限在8月中屆滿。
陳弘美老師表示: 不要拿中文的思維來想日文 。不能單取一個單字、要看前面的整個文脈 引導的順向。 並且日文不 一定要用像中、英文 般的明顯字眼、"只" 不一定要用のみ、だけ 表達、有太多太多表達的方法、就看前面文脈的 整個趨向。 同學們來學習一下。 要注意到、 這裡是前面有很長的、 雄厚的理論在説明台灣將有 非常充分的量、甚至到2000萬劑、 相較下100萬劑是非常少量、 所以用"只"是完全合乎文脈 的邏輯。 https://youtu.be/iotqkCOd1cE?t=6060
越南苦于疫苗到货率低,洽谈代工俄罗斯疫苗 https://baijiahao.baidu.com/s?id=1702095458974636136 1. 找更多來源:俄羅期,批准中国国药集团(Sinopharm)疫苗 2. 代工生產 洽谈代工生产俄国疫苗,促进磋商传讯核糖核酸(mRNA)技术转移 3. 越南一方面也自己研发疫苗,越南国产的COVID-19 疫苗Nanocovax从8日开始第三期人体临床试验,希望明年能够供货 4. 6月初鼓励所有地方、企业和单位参与寻找疫苗货源,并列出36家符合进口疫苗资格的企业
【BOSS工作室 中天#LIVE】黃義霖批疫苗政策根本有問題 6/28也無法解封三級 來聽黃義霖醫師解析 @中天新聞 20210609 https://youtu.be/NXwPjlEUO2o?t=251
據我們的認知,七月以後,台灣國內的疫苗生產機制就會逐漸完備,而眼前台灣有緊急的需求。 蔡英文:預計在7月底可以供應第一波的國產疫苗 6分46秒 0513總統府記者會 蔡英文發表談話 https://youtu.be/09OKKtsfbPo?t=405
到底是誰說了台灣只需要一百萬劑疫苗?震怒的蘇貞昌請千萬不要罰日本自民黨參議員佐藤正久三百萬! 1分06秒 https://youtu.be/EdhoEFbghGI?t=66 而台灣製的疫苗也從七月份起兩家公司準備一次1000萬劑
1100317社會福利及衛生環境委員會-「我國新冠肺炎(COVID-19)+疫苗整備情形+」書面報告.pdf https://www.mohw.gov.tw/dl-67845-a6b3cffc-8fb0-4bf7-ab1b-fc32052f3ea5.html
====== 【宅卡啦影片】民進黨如何讓台灣防疫,一步一步走向如此崩潰與失敗的境地!看看他們做了什麼蠢事! https://www.youtube.com/watch?v=EDMuZIM9yPQ
兩岸觀策/自由民主掛嘴邊 責任政治甩一邊 https://udn.com/news/story/7331/5478399 最近與台灣同步發生疫情的安徽六安、遼寧營口,三月底的雲南瑞麗及自去年以來多地爆發的疫情,每一地的衛生健康委官員、醫療院所到上級的市長、書記,他們轄內一旦發生群聚性疫情,就被記警告、免職、撤職,下台官員多到不知凡幾。
July 21, 2021 https://www.nejm.org/doi/full/10.1056/NEJMoa2108891?query=featured_coronavirus Table 2
AZ疫苗致死風險就是比較高!簡單的邏輯教您科學思考!|歷史哥短篇
50分
林全 東洋 16:40 https://youtu.be/STBO88yaRI8?t=1000
兴疫苗如何?有效性与安全性不如辉瑞,阿斯利康,强生的疫苗? 于博士在德国
COVID-19疫苗統計資料 https://www.cdc.gov.tw/Category/Page/9jFXNbCe-sFK9EImRRi2Og
迷思?! 英 登記打疫苗,官方的 https://www.nhs.uk/conditions/coronavirus-covid-19/coronavirus-vaccination/book-coronavirus-vaccination/ If you're under 40, you'll only be shown appointments for the Pfizer/BioNTech or Moderna vaccines. If you're 40 or over, you'll be asked if you're pregnant to make sure you're only shown appointments for these vaccines.
澳洲 https://www.health.gov.au/initiatives-and-programs/covid-19-vaccines/learn-about-covid-19-vaccines/about-the-astrazeneca-covid-19-vaccine The Australian Technical Advisory Group on Immunisation (ATAGI) recommends the COVID-19 vaccine by Pfizer (Comirnaty) is preferred in adults aged under 60 years. In people 60 years and over, ATAGI continue to advise that the benefits of vaccination with the AstraZeneca vaccine outweigh the risks associated with vaccination. This recommendation is based on: the increasing risk of severe outcomes from COVID-19 in older adults (and hence a higher benefit from vaccination), and the increased risk of thrombosis with thrombocytopenia following AstraZeneca vaccine in those under 60 years. There appears to be a small risk of TTS in people 60 years and over, but this risk appears to be lower than in younger people. Cases overseas have been reported at all ages. 1) 輝瑞/BNT一劑:52%。 2) 莫德納一劑:69.5%。 3) #AZ一劑: 76%!!
https://youtu.be/S2QChiAocmc?t=41 40 秒 鄭運鵬:拿第二期、第三期試驗當作疫苗的條件,這是沒有必要的,只要有緊急授權就好。
https://youtu.be/BvH46GLx7xg?t=3494 完全不推國產疫苗
Fosun Pharma will commercialize the COVID-19 vaccine in Greater China upon regulatory approval, including mainland China, Hong Kong, Macau and Taiwan. https://biontech.de/covid-19
柯P怨疫苗預約系統來不及做好 唐鳳聲明回擊 https://tw.news.yahoo.com/%E6%9F%AFp%E6%80%A8%E7%96%AB%E8%8B%97%E9%A0%90%E7%B4%84%E7%B3%BB%E7%B5%B1%E4%BE%86%E4%B8%8D%E5%8F%8A%E5%81%9A%E5%A5%BD-%E5%94%90%E9%B3%B3%E8%81%B2%E6%98%8E%E5%9B%9E%E6%93%8A-002907650.html 回覆台北市的內容意旨僅有,「這批日本124萬劑AZ疫苗,不會使用疫苗預約系統」等語,與柯文哲所謂「疫苗預約系統來不及做好」的說法不符
不認同二期解盲就使用 中研院研究技師:應加入英國株病毒數據 https://udn.com/news/story/122190/5525521 中研院研究技師詹家琮說明,高端疫苗臨床二期解盲會過是合理的,但這是使用原始病毒株的數據,就二期來說也是OK的,但不適合直接通過食藥署EUA給人使用;如果不做三期臨床試驗,二期解盲的血清中和效力試驗一定要加上變異病毒株的實驗數據。 詹家琮解釋,三期臨床試驗要檢驗的是,疫苗接種者在他們生活的環境中,感染病毒的機率與病理表現,也就是當時當地人們正遭遇的病毒,感染後是否有保護力;因此,若要以二期試驗取代三期臨床試驗,應當以疫苗接種者之後會遭遇到的病毒來做試驗,否則數據就會失真而不可信。 詹家琮表示,若國產疫苗企圖以增加二期臨床試驗人數達到數千人,來彌補或是取代三期臨床試驗,是不得已接受的現實,但只要沒有做英國或印度的變異病毒株的實驗數據,就緊急給國人使用,他絕對無法認同。
兩樣情!香港BNT疫苗打不完 趙少康呼籲開放台人接種 https://www.bcc.com.tw/newsView.6307210 香港政府預訂了750萬劑輝瑞BNT(港稱復必泰疫苗),根據港府5月25日的說明,輝瑞BNT已到貨200多萬劑,至今庫存約84萬劑,使用期限在8月中屆滿。
陳弘美老師表示: 不要拿中文的思維來想日文 。不能單取一個單字、要看前面的整個文脈 引導的順向。 並且日文不 一定要用像中、英文 般的明顯字眼、"只" 不一定要用のみ、だけ 表達、有太多太多表達的方法、就看前面文脈的 整個趨向。 同學們來學習一下。 要注意到、 這裡是前面有很長的、 雄厚的理論在説明台灣將有 非常充分的量、甚至到2000萬劑、 相較下100萬劑是非常少量、 所以用"只"是完全合乎文脈 的邏輯。 https://youtu.be/iotqkCOd1cE?t=6060
越南苦于疫苗到货率低,洽谈代工俄罗斯疫苗 https://baijiahao.baidu.com/s?id=1702095458974636136 1. 找更多來源:俄羅期,批准中国国药集团(Sinopharm)疫苗 2. 代工生產 洽谈代工生产俄国疫苗,促进磋商传讯核糖核酸(mRNA)技术转移 3. 越南一方面也自己研发疫苗,越南国产的COVID-19 疫苗Nanocovax从8日开始第三期人体临床试验,希望明年能够供货 4. 6月初鼓励所有地方、企业和单位参与寻找疫苗货源,并列出36家符合进口疫苗资格的企业
【BOSS工作室 中天#LIVE】黃義霖批疫苗政策根本有問題 6/28也無法解封三級 來聽黃義霖醫師解析 @中天新聞 20210609 https://youtu.be/NXwPjlEUO2o?t=251
據我們的認知,七月以後,台灣國內的疫苗生產機制就會逐漸完備,而眼前台灣有緊急的需求。 蔡英文:預計在7月底可以供應第一波的國產疫苗 6分46秒 0513總統府記者會 蔡英文發表談話 https://youtu.be/09OKKtsfbPo?t=405
到底是誰說了台灣只需要一百萬劑疫苗?震怒的蘇貞昌請千萬不要罰日本自民黨參議員佐藤正久三百萬! 1分06秒 https://youtu.be/EdhoEFbghGI?t=66 而台灣製的疫苗也從七月份起兩家公司準備一次1000萬劑
1100317社會福利及衛生環境委員會-「我國新冠肺炎(COVID-19)+疫苗整備情形+」書面報告.pdf https://www.mohw.gov.tw/dl-67845-a6b3cffc-8fb0-4bf7-ab1b-fc32052f3ea5.html
====== 【宅卡啦影片】民進黨如何讓台灣防疫,一步一步走向如此崩潰與失敗的境地!看看他們做了什麼蠢事! https://www.youtube.com/watch?v=EDMuZIM9yPQ
兩岸觀策/自由民主掛嘴邊 責任政治甩一邊 https://udn.com/news/story/7331/5478399 最近與台灣同步發生疫情的安徽六安、遼寧營口,三月底的雲南瑞麗及自去年以來多地爆發的疫情,每一地的衛生健康委官員、醫療院所到上級的市長、書記,他們轄內一旦發生群聚性疫情,就被記警告、免職、撤職,下台官員多到不知凡幾。
次氯酸水
https://zhuanlan.zhihu.com/p/346244002
https://alexshr1.pixnet.net/blog/post/402297314
https://www.tma.tw/ltk/109630508.pdf
https://www.youtube.com/watch?v=rRfmAMG5JBo
CHIH-SHENG LIN 1 年前
水神次氯酸水自製機,4萬元,是電解 稀釋鹽酸.弱酸性,效果當然最好, Baby Smile 家用機,電解食鹽水,較安全方便,只是製出的含鈉離子,呈弱鹼性, 但是比漂白水稀釋好很多
2NaCl+2H2O—>H2+Cl2+2NaOH,
然後應該是Cl2+2NaOH—>NaClO+NaCl+H2O吧。沒有形成次氯酸,大部分轉化成次氯酸鈉。也就是漂白水
終於懂了
那這樣不要買
便宜的生產器都是 次氯酸 + 次氯酸納 混在一起,而且現在賣的人怕被告,也是把公式弄出來
而水神債用電解的方式出來的純 次氯酸水 這個就是100% 沒問題,只是濃度問題
另外理解一件事,純次氯酸保存的問題,所以產品沒辨法賣太貴,要正常價,多銷,免得時間到了,還沒賣完
試紙...是試 氯 ppm ,不是試 ph
http://www.snb.co.jp/ics/2020/07/17/hclo/ https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/syoudoku_00001.html https://www.nite.go.jp/information/koronataisaku20200522.html 06/26
https://www.nite.go.jp/information/osirase20200626.html https://prtimes.jp/main/html/rd/p/000000003.000056737.html https://www.nite.go.jp/data/000111312.pdf
http://www.snb.co.jp/ics/2020/07/17/hclo/ https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/syoudoku_00001.html https://www.nite.go.jp/information/koronataisaku20200522.html 06/26
https://www.nite.go.jp/information/osirase20200626.html https://prtimes.jp/main/html/rd/p/000000003.000056737.html https://www.nite.go.jp/data/000111312.pdf
docker-compose build error apt install update problem archive.ubuntu.com 404
https://ubuntuqa.com/zh-tw/article/6721.html
docker-compose build --no-cache ooxxooxx
docker-compose env_file
ERROR: Couldn't find env file:
Try to use one line.
env_file:
- ./env.mariadb.local.env
env_file: ./env.mariadb.local.env
Laravel dotenv Kernel multile
Http/Kernel.php
.env .env-local.env .env-staging.env .env-production.env
class Kernel extends HttpKernel
{
public function __construct(Application $app, Router $router)
{
parent::__construct($app, $router);
$environmentPath = __DIR__.'/../../';
$dotenv = Dotenv::createUnsafeImmutable($environmentPath, '.env'); // getenv not thread safe
$dotenv->safeLoad(); //this is important
$dotenv = Dotenv::createUnsafeImmutable($environmentPath, '.env.'.getenv('APP_ENV').'.env'); // getenv not thread safe
$dotenv->safeLoad(); //this is important
}
.env
APP_ENV=local
LOG_CHANNEL=stack
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
.env.local.env
APP_NAME=OOXX_Local
APP_KEY=base64:NDvP.........g=
APP_DEBUG=true
APP_URL=http://localhost
QUERY_DETECTOR_ENABLED=true
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_NOTIFY=true
MAIL_MAILER=smtp
MAIL_HOST=smtp.ooxx.org
MAIL_PORT=587
MAIL_USERNAME=ooxx@ooxx.com
MAIL_PASSWORD=
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=ooxx01@ooxx.com
MAIL_FROM_NAME="${APP_NAME}"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=
AWS_BUCKET=
AWS_BUCKETTEST=
.env.local.env
APP_NAME=OOXX_Local
APP_KEY=base64:NDvP.........g=
APP_DEBUG=false
APP_URL=http://staging.ooxx.com
QUERY_DETECTOR_ENABLED=false
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_NOTIFY=true
MAIL_MAILER=smtp
MAIL_HOST=smtp.ooxx.org
MAIL_PORT=587
MAIL_USERNAME=ooxx@ooxx.com
MAIL_PASSWORD=
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=ooxx01@ooxx.com
MAIL_FROM_NAME="${APP_NAME}"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=
AWS_BUCKET=
AWS_BUCKETTEST=
視訊壓縮 intel amd
https://g.nga.cn/read.php?tid=20089658&rand=857
Amd VCE balance qc:25-26
Intel QSV balance qc:25
laravel ->paginate need becareful
When you use some model ->paginate
Get Illuminate\Pagination\LengthAwarePaginator But Value Don't Back To Variable.
$orders->paginate(10)
$orders = $orders->paginate(10)
So
$this->orders->paginate(10)
$this->oorders = $this->oorders->paginate(10)
livewire public variable eloquent for security column
Get livewire public variable
Front web Try to get public $order
document.addEventListener('livewire:load', function () {
console.log(@this.order);
Get empty Array
livewire window.livewire.find eloquent collection
https://github.com/livewire/livewire/issues/1641?fbclid=IwAR0uHylkj-1vg8p5jUoBgPYfuAYsWnBhgp6EK2bJcBce8ze-tdtAa8ElLNY#issuecomment-736146468
Eloquent Collection data won't be made available to the front end unless you have the collection properties specified in the $rules array as the contents are models, so the same conditions apply to it as apply to just a single model property. This is for security reasons so the whole collection and all properties aren't just sent to the front end.
See the example here of binding to an eloquent collection https://laravel-livewire.com/docs/2.x/properties......
But a standard collection (not eloquent) will work but only with primitive data types. If any models are added to the collection or any php objects (not eloquent models), they will be serialised into an array.
So eloquent use for public variable is OK.
======
Other way use makeHidden()
HP inkTank 115
https://www.mobile01.com/topicdetail.php?f=498&t=6030155#80825509
這台常常打折賣1990...
相片用三個彩色混出黑色的機種,沒有經過調色印照片都不佳
輸出前先用影像軟體調整曝光+25;飽和度+50
再選擇用相片紙輸出
如果輸出時選擇一般紙張,則會用四個顏色去印不會有問題
如果還會有灰濛濛的感覺
那就是你用的影印紙太爛了
這台常常打折賣1990...
相片用三個彩色混出黑色的機種,沒有經過調色印照片都不佳
輸出前先用影像軟體調整曝光+25;飽和度+50
再選擇用相片紙輸出
如果輸出時選擇一般紙張,則會用四個顏色去印不會有問題
如果還會有灰濛濛的感覺
那就是你用的影印紙太爛了
livewire locale lang
middleware
routes/web.php
Route::group(['prefix' => 'member', 'as' => 'member.', 'middleware' => ['auth', 'setLocale:zh-tw']], function () {
Route::get('/', App\Http\Livewire\MemberList::class);
});
app/Http/Middleware/SetLocale.php.php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
class SetLocale
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next, string $lang)
{
app()->setLocale($lang);
return $next($request);
}
}
laravel 8 catch 419 redirect back
https://stackoverflow.com/questions/29115184/laravel-catch-tokenmismatchexception/29116516
At last 1 and 2.
APP\Exceptions\Handler.php
namespace App\Exceptions;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
// use Illuminate\Session\TokenMismatchException;
use \Symfony\Component\HttpKernel\Exception\HttpException;
class Handler extends ExceptionHandler
{
/**
* A list of the exception types that are not reported.
*
* @var array
*/
protected $dontReport = [
//
];
/**
* A list of the inputs that are never flashed for validation exceptions.
*
* @var array
*/
protected $dontFlash = [
'password',
'password_confirmation',
];
/**
* Register the exception handling callbacks for the application.
*
* @return void
*/
public function register()
{
//
$this->renderable(function (HttpException $e, $request) {
if ($e->getStatusCode() == 419) {
return redirect('/login');
// session erros Can not use ->with('419error','Your session expired due to inactivity. Please login again.')
}
});
}
}
tampermonkey biggo 文字過瀘
tampermonkey biggo 文字過瀘
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match <$URL$>
// @grant none
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js
// @grant GM_addStyle
// @include /biggo.com.tw
// ==/UserScript==
var $ = window.jQuery;
(function() {
'use strict';
// Your code here...
// if(badDivs) {
// badDivs.parent().hide();
// badDivs.hide();
// }
var ds = $('.list-product-name.line-clamp-2 > a');
let filter_arr = [
'體感',
'手把', '遊戲手把', '手柄', '矽膠', '橡膠', '按鈕', '桿帽',
'帽蓋', '蓋套', '保護套', '把蓋',
'電池', '插頭', '端口', '耳機插孔插座', '觸發器', '觸發', '折疊', '支架',
'集線器', '下載版', '美國代購', '簡易支架底座', '一起玩', '直立架',
'回收', '攜碼', '維修', 'Dock', '螺絲刀', '保護', '電源線', '充電', '皮膚', '面板', '按鍵條',
'插孔', '塵套', '耳機', '方向盤', '光纖', '收納架', '冷卻器', '防塵', '貼紙', '序號', '貼膜',
'雙肩包', '鐵盒', '中文', '傳感器', '收納包', '溫控風扇',
];
ds.each((t, v) => {
//console.log($(v).text(), $(v).text().includes(filter_arr));
filter_arr.forEach((item) => {
$(v).text().includes(item) ? $(v).parent().parent().parent().parent().parent().parent().remove() : '';
});
// $(v).css('background-color', 'red');
});
})();
$(document).ready(function() {
});
Batocera xbox 360 手把
Batocera 支援 wireless xbox 手把,但要先裝 usb xbox wireless controller
從
https://wiki.batocera.org/kit_to_get_a_batocera
實際可以影片
https://youtu.be/-52SfcluhKA?t=36
https://youtu.be/goJjTF1t2lA?t=61
如果可以的話,xbox 360的副廠手把就非常便宜了
另一個是買 xbox one 新的 wireless controller,雖然 Batocera 有支援,但xbox one 的 controller 只支援 xobx one 手把
360 controller 只支援 360 手把
https://gaming.stackexchange.com/questions/143500/is-the-xbox-one-controller-compatible-with-xbox-360
模擬器 emulator
天馬 Pegasus pegasus-frontend.org
retroArch https://www.retroarch.com/
CoinOPS Next https://www.arcadepunks.com/coinops-arcade-front-end-for-pc/
batocera
小雞模擬器 https://www.xiaoji001.com/
wiki
https://emulation.gametechwiki.com/index.php/Comparison_of_Emulator_Frontends
Rom
https://www.reddit.com/r/Roms/comments/gar3bc/roms_megathread_30_ybin_edition/
訂閱:
文章 (Atom)