smbdのバージョンとプロトコルをパッと表示する。
Cosimo Galluzzi

titsay

oozey mess
Misplaced Lens Cap
YOU ARE THE REASON

JBB: An Artblog!

No title available
i don't do bad sauce passes

Discoholic 🪩

No title available
Show & Tell
I'd rather be in outer space 🛸
hello vonnie
Sweet Seals For You, Always

⁂

pixel skylines
Cosmic Funnies

#extradirty
RMH
Alisa U Zemlji Chuda

seen from Sweden
seen from United States

seen from Brazil
seen from Singapore
seen from Russia

seen from Singapore
seen from Germany
seen from Malaysia
seen from Malaysia
seen from United States

seen from Malaysia
seen from Malaysia
seen from United States

seen from United States
seen from Italy

seen from United States
seen from United Kingdom

seen from Türkiye

seen from Canada
seen from France
@nzkh2nr
smbdのバージョンとプロトコルをパッと表示する。
C# DataTableのAsEnumerableメソッド
https://docs.microsoft.com/ja-jp/dotnet/api/system.data.datatableextensions.asenumerable?view=netframework-4.8
DataTableのAsEnumerableメソッドを使うには System.Data.DataSetExtensions System.Xml を参照に追加する
VisualStudio2019 “0個の参照” 表示を消す
ツール > オプション > テキストエディタ― > すべての言語 > CodeLens
CodeLensを有効にするのチェックを外す
iPadOS (13.1)でホーム画面に追加からSafariを起動 → Vue Router の history モードだと、画面遷移のたびにリーダーが表示される
「完了」を押すと、ホーム画面に追加した際のURLに戻ってしまうので、Vue Router の history モードを使用しないことで回避した
Python -u printcommand.py | tee output.log
Python printcommand.py | tee output.log だと画面に表示されないので、
Python -u printcommand.py | tee output.log とする
PostgreSQLで generate_series を使って1時間おきの日時を取得する
https://www.postgresql.jp/document/8.4/html/functions-srf.html
例:1日前から現在時刻までの1時間おきの日時を取得
SELECT generate_series as datehour FROM generate_series ( date_trunc('hour', localtimestamp + '-1 day'), date_trunc('hour', localtimestamp), '1 hour' )
mod_wsgi + Apache で Flask-Login のlogin statusが維持できなかったので、SECRET_KEYを固定値に変更して回避した
app.config['SECRET_KEY'] = binascii.hexlify(os.urandom(8)).decode('utf-8') ↓ app.config['SECRET_KEY'] = 'StaticVariable'
Flask==1.0.2 Flask-Login==0.4.1
https://stackoverflow.com/questions/48513139/logins-stop-working-when-switching-to-wsgi-with-flask-flask-login-mod-wsgi
Vuetify の v-dialog で v-select を使う場合に追加する CSS
iPhone/iPad の Mobile Safari で ダイアログ中のリストボックスにリストアイテムが表示されないので、
.menuable__content__active { z-index:250!important; }
をCSSに追加する
https://github.com/vuetifyjs/vuetify/issues/2111
Vue.js の公式ルータ
<router-link> を使用せずにプログラムによるナビゲーションでページを構築する場合は、ルートを定義する際に名前を登録しておく。
⇒ this.$route.name で取得できる。
Vue.js を取得する
に従って、ここからVue.js 関連をローカルに取得
https://www.jsdelivr.com/package/npm/vue
https://www.jsdelivr.com/package/npm/vuex
https://www.jsdelivr.com/package/npm/vue-router
https://www.jsdelivr.com/package/npm/vuetify
CSSセレクタって意外と分かっていなかったりするので勉強ついでにまとめてみました。比較的実用的かなと思うものを20個紹介していきます。いい復習になればと思います。...
(奇数番目の要素に適用) :nth-child(odd)
(偶数番目の要素に適用) :nth-child(even)
Vuetify の data-tables
https://vuetifyjs.com/ja/components/data-tables
https://codepen.io/pen/?&editable=true&editors=101 のHTMLは
<div id="app"> <v-app id="inspire"> <v-data-table :headers="headers" :items="desserts" class="elevation-1"> <template slot="items" slot-scope="props"> <td v-for="header in headers"> {{ props.item[header.value] }} </td> </template> </v-data-table> </v-app> </div>
とできる
Vuetify の grid-list- 比較
iOS ダブルタップによる拡大・縮小を無効/ロングタップによるリンク動作・テキスト選択を無効にする CSS
html { touch-action: manipulation; } body { -webkit-touch-callout:none; -webkit-user-select:none; }
PostgreSQLでテーブルエクスポート&インポート
エクスポートしたいDBがあるマシン(ここではWindows)で
COPY "テーブル名" TO 'c:/output/folder/filename.csv' WITH CSV DELIMITER ',';
できたファイルをインポートしたDBがあるマシン(ここではLinux)にコピーして
COPY "テーブル名" FROM '/input/directory/filename.csv' WITH CSV DELIMITER ',';
npm でバージョンを指定してインストール
例:
>npm info vue-cli versions
>npm install -g [email protected]
>npm list --depth=0 -g
pip でパッケージをダウンロード
windows: pip download モジュール名
linux: pip install --download /tmp(ダウンロード先) モジュール名