# Python3のインストール sudo yum install python3 cd python3 -m venv ~/myvenv/ # 仮想環境に切り替え source ~/myvenv/bin/activate # Djangoインストール pip install Django # Djangoのチュートリアルをやろうとしてプロジェクト作成 $ django-admin startproject mysite # 開発用サーバー起動 $ python manage.py runserver # 大量に出るので一部だけ # SQLite3は3.8.3、または、3.8.3以降のバージョンにしてくださいエラー packages/django/db/backends/sqlite3/base.py", line 63, in check_sqlite_version raise Imp
Classic Load Balancer のアクセスログ、Amazon CloudWatch メトリクス、Classic Load Balancer 経由でのサービス接続時に HTTP 504 エラーが表示されます。 解決策 HTTP 504 エラーは、ゲートウェイまたはプロキシがタイムアウトしたことを示す HTTP ステータスコードです。トラブルシューティングを行う際は、次の点を調べてください。 ロードバランサーのアイドルタイムアウトを確認し、必要に応じて変更する HTTP 504 エラーが発生する最も一般的な理由は、対応するインスタンスが設定されたアイドルタイムアウト内にリクエストに応答しなかったことです。Classic Load Balancer のデフォルトのアイドルタイムアウトは 60 秒です。 CloudWatch メトリクスがオンになっている場合は、ロードバランサーの Cl
問題 git push しようとしたら、rejectされた。どうしよう。 C:\tmp\gittest\testB>git push c:\tmp\gittest\test master To c:\tmp\gittest\test ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'c:\tmp\gittest\test' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Merge the remote changes (e.g. 'git pull') hint: before pushing again.
アプリの動作テストを行っていて… AppImageが、22.04では動いていたものの24.04にアップデートしたら、動作しなくなった。 そこで、エラーメッセージを参考に作業を実施。 libfuse2がないというので、以下のインストール。 $ sudo apt install libfuse2 ところが、libfuse2はなく、libfuse2t64 を変わりに突っ込まれた。 でも、動作しない。 仕方ないので、fuseをまるっと入れることに。 ところが、AppImageは動作せず、GUIの動作がおかしい感じ。 homeフォルダを開くとDiskAnalizer(baobab)が起動してしまう。 仕方なく、再起動を実施。 すると、ユーザ選択が表示される前に、Xが落ちた…。 tty2に切り替えて、CUIからログイン。 ネットワークは正常。 コマンドも動作する。 ディスクは問題なさそう。 問題は、g
php.ini にこんな風に設定されているとして、2Mを超えるようなファイルをpostすると、もうそれはプログラム側ではエラー検知できないような気がするんですよね。 ファイルサイズを調べるって言ったって、この$_FILESに値が入ってこない訳でしょ。 。。。と思ったのだが、その後コメントをもらっていろいろテストしてみたところ、間違っていたので修正する。 書き直し 上記のソースは $_FILES["file"]["tmp_name"] のファイルサイズを取得しようとしている訳で、そもそもファイルサイズ超過の時は $_FILES["file"]["tmp_name"] が空なのだ(汗 出る訳がない。 ということで
I need to install the JSON gem to start my app but I get the error below whenever I try to install the json gem. Can anyone help me out. I'm using rails 2.2.2 and gems 1.3.1. Arions-macbook-pro:.ssh arion$ sudo gem install json Password: Sorry, try again. Password: Building native extensions. This could take a while... ERROR: Error installing json: ERROR: Failed to build gem native extension. /Sys
前回の恐ろしい正規表現をphpで試してみようとしたところ、予想した結果にならなかった。 phpの正規表現に関して、ある設定項目があって、デフォルトでは無茶な処理をさせないようになっていた(php5.2から)。php4でも、何かしらの制限に引っかかるようだ。 では、phpで無茶な正規表現を試す。 (.*)*^ 最後に^(行頭)と書いてあるので、結果としてはどんな文字列にもマッチしないでマッチするのは行頭のみなのだが、マッチするまでにあらゆる組み合わせにトライするので、恐ろしく負荷が高い。 10文字から初めて、1文字ずつ増やしながら30文字まで、所要時間の計測と付随する情報の表示をする。 $t = time(); $s = '123456789012345678901234567890'; for ($i = 10; $i <= 30; ++$i) { $m = microtime(1) -
PHPで何か作る時にエラーが表示されなかったり、 E_NOTICEエラーが沢山出てしまったりする事があると思います。 そんなときに使えるコードです。 ※本番環境ではエラーは表示しないでログに出力するだけにした方が良いでしょう。 <?php // エラーを画面に表示(1を0にすると画面上にはエラーは出ない) ini_set('display_errors',1); // 本番環境ではログに記録する ini_set('log_errors','On'); // ログの保存先 ini_set('error_log','/log/php_error.log'); //============================== // 出力するエラーの設定 // お好みに応じて //============================== // E_NOTICEエラー以外出力する error_r
Windows XP、Vista、7の裏技や高速化をはじめ、問題解決方法、Autoitプログラミングについて紹介しています。自作ツールも配布しています。Windows XP、Vista、7の裏技や高速化をはじめ、問題解決方法、Autoitプログラミングについて紹介しています。自作ツールも配布しています。 最新の更新情報 2012/11/11 ・2012/11/03 の記事、Win7 解決!「Windows Media Player は正しくインストールされていないため、再インストールする必要があります。」に新しい方法を追記しました。 2012/11/03 ・メールおよびコメントでの質問再開は、現在多忙のため、もうしばらくお待ちください。 2012/08/18 ・多数の質問ありがとうございます。 現在質問件数がかなり多く、お返事に時間がかかるため、メールおよびコメントでの質問を一時休止致しま
設定 sshを使ってリモートホストに接続する場合,パスワードを使うよりも鍵交換方式の認証の方が安全と言われています.このような理由から,ここのSSHサーバーではパスワード認証を禁止し,鍵交換方式を使うことにします.そのためには,設定ファイル「/etc/ssh/sshd_config」を以下のように変更します. PasswordAuthentication no パスワードログイン禁止、秘密鍵でログインさせる PermitRootLogin no rootログインを禁止 PermitEmptyPassword no パスワード無しのログインを禁止 設定が完了したら,コマンド「/etc/init.d/ssh restart」で再起動します. 鍵の生成と設定 鍵交換方式の認証では,秘密鍵と公開鍵が必要です.これらの鍵の生成と設定方法を示します. 鍵の生成 リモートホストの ubuntu serv
既にSTINGERサイトにも告知済みなのですが、 当ブログのRSS登録ユーザーの為に記載します。 アクセスが軒並み低下したという報告も受けていますので、ぜひCHECKを! STINGERのFAQ このエラーが出た日から、アクセスが激減しています。 ※この記事について追記を書きました。 ※ちなみにこの現象はウェブマスターツールのダッシュボードには表示されません。 問題あるっちゅーねん。。。 「検索のデザイン」→「構造化データ」で確認して下さい。 参考 Googleウェブマスターツール スポンサーリンク ウェブマスターツール構造化データにて エラーの原因 WordPressでお馴染みの「post_class()」にて吐き出されるhentryクラスがGoogleのウェブマスターツールにて構造化データのエラーを出している様です。 現象としては、「・updatedがありません。・author があり
Description I've just done a clean install of my development machine (ubuntu) and my symfony cli plugin installer wouldn't run anymore. With the following messages oderik@tenedos /home/projects/fieropbier/public_html/src (master) $ ./symfony plugin:install isicsWidgetFormTinyMCEPlugin >> plugin installing plugin "isicsWidgetFormTinyMCEPlugin" Warning: require_once(PEAR/Remote.php): failed to open
Mac を触り始めてまだ3ヶ月の、超初心者です。 分からないことだらけで、日々よちよち状態(笑)。 まずは、Mac を開発マシンにするべく、Git をインストールすることにしました。 調べたところ、Xcode → MacPort → Git の順にインストールが必要のこと。 よく分からんけど、やってみますか! ちなみにOSは、「Mac OS X 10.7.4 Lion」です。 1. Xcode (4.3.3) インストール App Store からインストールできました。 「App をインストール」ボタンをワンクリックするだけで完了。Lion バンザイ!*1 2. MacPort (2.1.1) インストール MacPort http://www.macports.org/install.php の中段あたり「Mac OS X Package (.pkg) Installer」から、Lio
新規または上書きする場合: $ ./mycommand >& mycommand.log 追記する場合: $ ./mycommand >> mycommand.log 2>&1 ↓ここにすごくよくまとまってた。 リダイレクト Cシェルの場合 Command < file 標準入力をファイルから読み込む Command > file 標準出力をファイルに書き出す Command >! file 同上上書き Command >& file 標準出力と標準エラー出力をファイルに書き出す Command >&! file 同上上書き Command >> file 標準出力をファイルに追記 Command >>& file 標準出力と標準エラー出力をファイルに追記 Command | cmd2 標準出力をコマンドcmd2の標準入力に接続 Command |& cmd2 標準出力と標準エラー出力をコ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く