改行を含む文字列を改行して表示する【JavaScript】

JavaScriptで改行を含む以下のような文字列を表示したい場合に、改行されずにうまくいきませんでした。
エラー内容は「Uncaught SyntaxError: Invali ...
チェックボックスでチェックした値を確認する【JavaScript】

WEBページを作っていて、チェックボックスでチェックした値を取得して、そのチェックボックスの「Value」値を確認したいケースが有りました。 ...
ownCloudの手動バージョンアップ

ownCloudのクライアントで新しいバージョンにアップグレードしたので、久しぶりにWEBにownCloudにアクセスしてみると下記のようにサーバー側も新しいバージョンにアップデートできる ...
postmapコマンドエラー 「postmap: warning: xx.db: duplicate entry:」

postmapコマンドでデータベースを生成時に下記のようなエラーがでました
$ sudo postmap/etc/postfix/senderbccpostmap: warning:/etc/postfix/senderbcc. ...スタートアップに登録されているアプリを無効にする方法

スタートアップに登録され自動起動するようになっているアプリを自動起動を無効にする方法を紹介します。自動起動を無効にするには「設定→アプリ→スタートアップ」でおこなう方法 ...
QTTabBarで新規タブでファルダを開く

エクスプローラーをタブ型にするのに「QTTabBar」を利用しています。
タブ型のテキストエディタでよくある新規ファイルを開く場合にタブの横にある「+」ア ...
SSH接続がタイムアウトになる場合のサーバー側の設定

KeepAliveパケットをSSHサーバー側に送信しないSSHクライアントを使用している場合、数分通信を行なっていない場合はSSHサーバーとの通信が切れてタイムアウトになります。
RLoginでKeepAliveパケットを送信する

SSHクライアントは「RLogin」を使っていますが、特定のサーバーにログインするとセッション切れになるサーバーがありました。そのサーバーにログインする際にS ...
Cronで日本語のメールを送ると文字化け・添付ファイルになる

日本語の文字列があるメールを送ると添付ファイルなる場合の対処法
件名は日本語でメール本文に日本語文字列があるメールを送信するシェルスクリプトを作って、スクリプトを実行してメールを送信すると受信したメールの件名・本文ともメー ...
while readで最終行が処理されない【シェルスクリプト】

Windowsで生成したファイルをシェルスクリプトでwhile readを利用して、catコマンドでファイルを出力して、内 ...
cut, awkコマンドで区切り文字を指定して取り出す

cutコマンド、awkコマンドを利用して、任意の区切り文字で区切られた文字を取り出す方法を紹介します。
以下のファイルでは、「:」で区切りを入れてIPアドレス:ポート番号を記載されています ...
WinSCPでセッション切れ、タイムアウト対策

WinSCPでSCP・FTP接続していていて、ファイルをアップロード後にアップロードしたファイルを修正してしばらく時間をしてから接続するとタイムア ...
Windows10 ファイル履歴バックアップができない

Windows10では、ファイル履歴を定期にバックアップする「ファイル履歴」という機能が追加されています。
ファイル履歴を定期的にバックアップできるのでこの機能を有効にしてバッ ...
シェルスクリプトを利用して、iptablesに特定のIPを拒否するスクリプト

iptablesのF/Wで特定のIPアドレスを拒否(DROP)したい場合に、その都度コマンドを入力するのが面倒なので、シェルスクリプトで引数に拒否したいIPアドレ ...
SMTP Authを何度も試みててくるIPアドレスをブロックする【postfix】

メールサーバーを運用していると、海外からのSPAM業者がSTMPサーバーにアクセスしてきます。いちようメールサーバーはSMTP認証をし ...