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
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
訂閱:
文章 (Atom)









