Windows10にパソコン起動した時にslackを自動起動しない方法
現象:slackが自動起動します。
対策
1.「タスクマネージャー」をクリックします。
2.「スタートアップ」をクリックします。
3.slackを選択し、「無効にする」ボタンをクリックします。 ...
「Oracle」NVL2()でNULL文字列の変換サンプル
書式
NVL2(文字列, 変換文字列1, 変換文字列2)
文字列がnullの場合、変換文字列2を返す、nullでなかれば、変換列1を返す
例1
select
nvl2( null, R ...
「Linux入門」touchコマンドの使い方
1.日時を指定する
書式 touch -d 日付 filename
$ touch -d “2020-06-08 10:54” test.html
2.ファイルを新規作成しない ...
「Swift入門」曜日を取得するサンプルコード
サンプルコード
let tt = DateFormatter()
tt.dateFormat = DateFormatter.dateFormat(fromTemplate: “EEE”, op ...
「Swift」時刻を取得するサンプル
サンプルコード
let fmt = DateFormatter()
fmt.dateFormat = DateFormatter.dateFormat(fromTemplate: “ydMMM” ...
「VB.net」ContainsValue()で指定の値があるかを判定するサンプル
サンプルコード
Module ModuleTest Sub Main() Dim city As New Dictionary(Of String, String) city.Add("tokyo", "東京") city.Ad ...「VB.NET入門」すべての要素を削除するサンプル
サンプルコード
Module ModuleTest Sub Main() Dim kd As New HashSet(Of String) kd.Add("22") kd.Add("33") kd.Clear() Console ...「VB.net」要素数を取得するサンプル
サンプルコード
Module ModuleTest Sub Main() Dim cft As New HashSet(Of String) cft.Add("11") cft.Add("22") cft.Add("33") c ...Linux(RHEL/CentOS7系) firewalldでポート削除する方法
1.ポート番号の削除
# firewall-cmd –remove-port=8080/tcp –zone=public
# firewall-cmd –remove-port=10 ...
「swift」replacingOccurrencesで文字列を置換するサンプル
1.文字列置換
let cft = “123testData”
cft.replacingOccurrences(of: “ta”, with: “ark ...
[Swift]配列にreduceを使うサンプル
サンプルコード
let arr =
let avg= arr.reduce(0) { $0 + $1 }
print(avg)
「GitLab入門」ローカルの変更を元に戻すメモ
Git Bashでコマンドを実行する
1.特定のファイル
$ git status
$ git checkout 「filename」
例 git checkout com/study/arkgame/ ...
Windows10にgitlab2.26.2をインストールする手順
1.ダウンロード
「Download 2.26.2 for Windows」をクリックすると、「Git-2.26.2-64-bit.exe」ファイルのダウンロードが始まります。
2.gitlabインス
「Gitlab入門」GitLabの基本使い方メモ
1.ローカルモジュールをGitに登録
git clone
cd dev
git add *
git commit -m “comment”
git push -u ori ...
「Ruby」複数の条件分岐(if elseif)のサンプル
サンプルコード
tt = "002"if tt == "001" then print("aaa")elsif tt == "002" then print("bbb")else print("other value")end「Ruby」条件分岐unless文のサンプル
書式
unless conditional codeendコード
#!/usr/bin/ruby# -*- coding: UTF-8 -*-x=1unless x>2 puts "x < 2" els ...「Ruby」条件分岐ifの使い方
書式
code if condition
コード
#!/usr/bin/ruby
$debug=1
print “test data\n” if $debug ...
Eclipse+GlassFishでコンソール画面の文字化けの解決方法
環境
Eclipse 4.6 Neon
Glassfish 3.1.2
現象
Eclipseコンソール画面が一部文字化けします
解決方法
(1).配置ファイルの場所:
例 ...