<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://tech-blog.shinyaishizaki.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://tech-blog.shinyaishizaki.com/" rel="alternate" type="text/html" /><updated>2026-07-04T12:51:17+00:00</updated><id>https://tech-blog.shinyaishizaki.com/feed.xml</id><title type="html">Shinya Ishizaki’s Tech Blog</title><subtitle>This is Shinya Ishizaki&apos;s Tech Blog.</subtitle><entry><title type="html">【悲報】二段階認証を設定したら、Maketspeedにログインできなくなり、日経テレコン（楽天証券版）にアクセスできないため、日経新聞（直近3日分）を閲覧できなくなった。</title><link href="https://tech-blog.shinyaishizaki.com/windows/2025/04/08/cannot-login-to-maketspeed.html" rel="alternate" type="text/html" title="【悲報】二段階認証を設定したら、Maketspeedにログインできなくなり、日経テレコン（楽天証券版）にアクセスできないため、日経新聞（直近3日分）を閲覧できなくなった。" /><published>2025-04-08T11:11:38+00:00</published><updated>2025-04-08T11:11:38+00:00</updated><id>https://tech-blog.shinyaishizaki.com/windows/2025/04/08/cannot-login-to-maketspeed</id><content type="html" xml:base="https://tech-blog.shinyaishizaki.com/windows/2025/04/08/cannot-login-to-maketspeed.html"><![CDATA[<p>しんやです。</p>

<p>2025年度になり、楽天証券から受信した二段階認証を勧めるメールに従い、二段階認証を設定したところ、Maket SpeedⅡおよびMarketSpeedのログイン認証で弾かれるようになりました。</p>

<p>楽天証券のWebサイトでは、ログイン認証後はMarketSpeedⅡのトップ画面に遷移すると記載されていますし、従前は私もそうでしたが、二段階認証を設定したとたんに出来なくなりました。</p>

<p>日経の無料会員に転落して以来、日課としていた、日経テレコン（楽天証券版）にアクセスできないため、日経新聞（直近3日分）を閲覧できなくなっています。悲しい。。。</p>

<p>引き続き調査はしますが、お知恵をお貸しいただける方がいらっしゃいましたら嬉しいです。</p>

<p>宜しくお願いします。</p>]]></content><author><name></name></author><category term="Windows" /><category term="Marketspeed" /><category term="日経テレコン" /><category term="日経新聞" /><category term="楽天証券" /><summary type="html"><![CDATA[しんやです。]]></summary></entry><entry><title type="html">MacでPythonのFlask環境を構築してHello, world!してみた</title><link href="https://tech-blog.shinyaishizaki.com/mac/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/2024/02/06/flask_of_python_on_mac.html" rel="alternate" type="text/html" title="MacでPythonのFlask環境を構築してHello, world!してみた" /><published>2024-02-06T18:30:43+00:00</published><updated>2024-02-06T18:30:43+00:00</updated><id>https://tech-blog.shinyaishizaki.com/mac/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/2024/02/06/flask_of_python_on_mac</id><content type="html" xml:base="https://tech-blog.shinyaishizaki.com/mac/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/2024/02/06/flask_of_python_on_mac.html"><![CDATA[<p>しんやです。</p>

<p>今回はMacでFlask環境を構築してPythonアプリを開発する準備として、Hello, world!をブラウザ表示させる手順を共有します。</p>

<p>Python3がインストールされていることを確認します。</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>shinyaishizaki@ShinyaIakinoMBP ~ % python3 --version
Python 3.9.6
</code></pre></div></div>

<p>Flaskをインストールします。</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>mkdir myproject
cd myproject
python3 -m venv .venv
. .venv/bin/activate
. .venv/bin/activate
pip install Flask
</code></pre></div></div>

<p>hello.pyファイルを作成します。</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>from flask import Flask

app = Flask(__name__)

@app.route("/")
def hello_world():
  return "&lt;p&gt;Hello, world!&lt;/p&gt;"
</code></pre></div></div>

<p>Flask環境でhello.pyを実行します。</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>(.venv) shinyaishizaki@ShinyaIakinoMBP python_app % flask --app hello run
 * Serving Flask app 'hello'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://127.0.0.1:5000
</code></pre></div></div>

<p>ブラウザで「http://127.0.0.1:5000/」にアクセスし、<br />
Hello, world!<br />
と表示されることを確認できれば、成功しています。</p>

<p>ではまた。</p>]]></content><author><name></name></author><category term="Mac" /><category term="プログラミング" /><category term="Flask" /><category term="Python" /><summary type="html"><![CDATA[しんやです。]]></summary></entry><entry><title type="html">Linux（Ubuntu）にAdobe Acrobat Readerをインストールする方法</title><link href="https://tech-blog.shinyaishizaki.com/linux/2024/01/20/howtoinstall_of_acrobat-reader_for_ubuntu-target_blank-relnoopener.html" rel="alternate" type="text/html" title="Linux（Ubuntu）にAdobe Acrobat Readerをインストールする方法" /><published>2024-01-20T17:01:04+00:00</published><updated>2024-01-20T17:01:04+00:00</updated><id>https://tech-blog.shinyaishizaki.com/linux/2024/01/20/howtoinstall_of_acrobat-reader_for_ubuntu-target_blank-relnoopener</id><content type="html" xml:base="https://tech-blog.shinyaishizaki.com/linux/2024/01/20/howtoinstall_of_acrobat-reader_for_ubuntu-target_blank-relnoopener.html"><![CDATA[<p>しんやです。</p>

<p>元MacBook Air（Mid 2011）で、Linux OS Ubuntuをインストールしているマシンに、Adobe Acrobat Readerをインストールしました。</p>

<p>メインマシンであるMacBook Pro（Early 2015）に一切のアプリケーションをインストールすることが出来なくなってしまい、インボイス対応のための適格請求書発行事業者の登録申請書を記入したいのに、Acrobat ReaderをインストールしておらずPDFファイルを開いて記入欄に記入することが出来ないことの代替案として対応しました。</p>

<p><a href="https://ja.linux-console.net/?p=15575">こちら</a>の記事に沿って「端末」からコマンドを入力し、インストールすることが出来ました。</p>

<p>以上です。</p>]]></content><author><name></name></author><category term="Linux" /><category term="Acrobat Reader" /><category term="Adobe" /><category term="Linux" /><category term="PDF" /><summary type="html"><![CDATA[しんやです。]]></summary></entry><entry><title type="html">GitHubにPushできない時の対処法</title><link href="https://tech-blog.shinyaishizaki.com/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/2024/01/04/erorr_git_push.html" rel="alternate" type="text/html" title="GitHubにPushできない時の対処法" /><published>2024-01-04T13:54:18+00:00</published><updated>2024-01-04T13:54:18+00:00</updated><id>https://tech-blog.shinyaishizaki.com/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/2024/01/04/erorr_git_push</id><content type="html" xml:base="https://tech-blog.shinyaishizaki.com/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/2024/01/04/erorr_git_push.html"><![CDATA[<p>こんにちは。しんやです。</p>

<p>GitHubにPushするときにエラーにハマって解決に時間がかかったので、解決方法を共有します。</p>

<p>以下のように、メインブランチへPushしようとした時に、エラーとなります。</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>ユーザー名@パソコン名 newportfolio % git push origin main
To https://github.com/ユーザー名/newportfolio.git
 ! [rejected]        main -&gt; main (non-fast-forward)
error: failed to push some refs to 'https://github.com/ユーザー名/newportfolio.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
</code></pre></div></div>

<p>「git pull」コマンドを使用しても、以下のとおりエラーとなります。</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>ユーザー名@パソコン名 newportfolio % git pull origin main
From https://github.com/ユーザー名/newportfolio
 * branch            main       -&gt; FETCH_HEAD
hint: Diverging branches can't be fast-forwarded, you need to either:
hint: 
hint:   git merge --no-ff
hint: 
hint: or:
hint: 
hint:   git rebase
hint: 
hint: Disable this message with "git config advice.diverging false"
fatal: Not possible to fast-forward, aborting.
</code></pre></div></div>

<p>「git pull」コマンドに「rebase」オプションを付けて実行します。</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>ユーザー名@パソコン名 newportfolio % git pull origin main --rebase
From https://github.com/ユーザー名/newportfolio
 * branch            main       -&gt; FETCH_HEAD
warning: skipped previously applied commit d1d955e
hint: use --reapply-cherry-picks to include skipped commits
hint: Disable this message with "git config advice.skippedCherryPicks false"
Successfully rebased and updated refs/heads/main.
</code></pre></div></div>

<p>再度、Pushします。</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>ユーザー名@パソコン名 newportfolio % git push origin main
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 4 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 1.22 KiB | 1.22 MiB/s, done.
Total 5 (delta 3), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (3/3), completed with 3 local objects.
To https://github.com/ユーザー名/newportfolio.git
   d26baaf..0a55d48  main -&gt; main
</code></pre></div></div>

<p>以上です。</p>

<p>誤りや質問などありましたらお気軽にコメントしてください。</p>]]></content><author><name></name></author><category term="プログラミング" /><category term="Git" /><category term="GitHub" /><summary type="html"><![CDATA[こんにちは。しんやです。]]></summary></entry><entry><title type="html">IT業界への就職・転職相談はこちらからお気軽にどうぞ！</title><link href="https://tech-blog.shinyaishizaki.com/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/%E5%B0%B1%E8%81%B7%E3%83%BB%E8%BB%A2%E8%81%B7%E7%9B%B8%E8%AB%87/2023/01/19/career_advice.html" rel="alternate" type="text/html" title="IT業界への就職・転職相談はこちらからお気軽にどうぞ！" /><published>2023-01-19T12:00:01+00:00</published><updated>2023-01-19T12:00:01+00:00</updated><id>https://tech-blog.shinyaishizaki.com/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/%E5%B0%B1%E8%81%B7%E3%83%BB%E8%BB%A2%E8%81%B7%E7%9B%B8%E8%AB%87/2023/01/19/career_advice</id><content type="html" xml:base="https://tech-blog.shinyaishizaki.com/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/%E5%B0%B1%E8%81%B7%E3%83%BB%E8%BB%A2%E8%81%B7%E7%9B%B8%E8%AB%87/2023/01/19/career_advice.html"><![CDATA[<p>しんやです。</p>

<p>ココナラにて、IT業界未経験や経験の浅い方に向けて就職、転職相談に乗っております。</p>

<p><a href="https://coconala.com/services/2645652">IT業界未経験の方の就職・転職相談に応じます エンジニア歴6年の私が初心者に優しくアドバイスします</a>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?’http’:’https’;if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+’://coconala.com/js/coconala_widget.js’;fjs.parentNode.insertBefore(js,fjs);}}(document,’script’,’coconala-wjs’);</p>

<p>アドバイスは、<br />
・IT業界全体について<br />
・IT業界の採用動向について<br />
・志望するIT企業の選定について<br />
・プログラミング学習ロードマップについて<br />
・応募書類の添削<br />
をはじめ、ご相談者様のご希望に沿って対応いたします。</p>

<p>システム開発現場での後輩指導経験や、プログラミング初学者向けのメンターとしての豊富な活動経験を活かし、初心者の方に優しくアドバイスいたします。</p>

<p>フリーランスエンジニアとして独立を希望する方もご相談ください。</p>

<p>IT業界を目指す方や、IT業界でスキルアップを目指す方に少しでもお役に立てれば幸いです。</p>

<p>ご利用お待ちしております。</p>

<p><a href="https://coconala.com/services/2645652">IT業界未経験の方の就職・転職相談に応じます エンジニア歴6年の私が初心者に優しくアドバイスします</a>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?’http’:’https’;if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+’://coconala.com/js/coconala_widget.js’;fjs.parentNode.insertBefore(js,fjs);}}(document,’script’,’coconala-wjs’);</p>]]></content><author><name></name></author><category term="プログラミング" /><category term="就職・転職相談" /><category term="就職相談" /><category term="転職相談" /><summary type="html"><![CDATA[しんやです。]]></summary></entry><entry><title type="html">GitコマンドでGithubに新規登録〜変更点を登録する流れ</title><link href="https://tech-blog.shinyaishizaki.com/mac/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/2022/09/05/git-e3-82-b3-e3-83-9e-e3-83-b3-e3-83-89-e3-81-a7github-e3-81-ab-e6-96-b0-e8-a6-8f-e7-99-bb-e9-8c-b2-e3-80-9c-e5-a4-89-e6-9b-b4-e7-82-b9-e3-82-92-e7-99-bb-e9-8c-b2-e3-81-99-e3-82-8b-e6-b5-81-e3-82-8c.html" rel="alternate" type="text/html" title="GitコマンドでGithubに新規登録〜変更点を登録する流れ" /><published>2022-09-05T11:41:32+00:00</published><updated>2022-09-05T11:41:32+00:00</updated><id>https://tech-blog.shinyaishizaki.com/mac/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/2022/09/05/git%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%81%A7github%E3%81%AB%E6%96%B0%E8%A6%8F%E7%99%BB%E9%8C%B2%E3%80%9C%E5%A4%89%E6%9B%B4%E7%82%B9%E3%82%92%E7%99%BB%E9%8C%B2%E3%81%99%E3%82%8B%E6%B5%81%E3%82%8C</id><content type="html" xml:base="https://tech-blog.shinyaishizaki.com/mac/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/2022/09/05/git-e3-82-b3-e3-83-9e-e3-83-b3-e3-83-89-e3-81-a7github-e3-81-ab-e6-96-b0-e8-a6-8f-e7-99-bb-e9-8c-b2-e3-80-9c-e5-a4-89-e6-9b-b4-e7-82-b9-e3-82-92-e7-99-bb-e9-8c-b2-e3-81-99-e3-82-8b-e6-b5-81-e3-82-8c.html"><![CDATA[<p>こんにちは。しんやです。</p>

<p>Githubにファイルを新規登録した後、ローカルでファイルを変更（編集）したときに、Githubへの登録で詰まったので共有します。</p>

<h2 id="githubへの新規登録のおさらい">Githubへの新規登録のおさらい</h2>

<p>ターミナルを開き、Githubへ登録したいファイルのあるディレクトリまでcdコマンドで移動し、以下のコマンドを実行します。</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>git init
git add .
git commit -am "first commit"
git push origin main
</code></pre></div></div>

<p>Githubにファイルを初回登録できました。</p>

<h2 id="git-hubに変更点のみ登録する方法">Git hubに変更点のみ登録する方法</h2>

<p>ターミナルから以下のコマンドを実行します。</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>git init
git add -u
git commit -am "bundle install"
git push origin main
</code></pre></div></div>

<p>変更したファイル（今回はGemfile.lock）をGithubに登録できました。</p>

<p>ポイントは、「git add」するとき「-u」オプションをつけて変更点のみaddすることです。</p>

<p>このとき、Gemfile.lockしかaddされていないので、新規登録と同様にcommitとpushすることで、addされたファイルのみをGithubへ登録することができます。</p>

<h2 id="なぜエラーにハマったのか">なぜエラーにハマったのか</h2>

<p>今回は個人開発です。</p>

<p>ググるとチーム開発を想定した（「git pull」して〜などの）記事が多くヒットします。</p>

<p>初歩的すぎて、個人開発で定期的にGithubへpushする方法がうまくヒットしませんでした。（Gitの教科書に書かれているはずですが。。。）</p>

<p>そのため、不要なpullコマンドを実行することでローカルとリモートリポジトリの差分が出てしまいエラーになっていました。（多分）</p>

<p>私と同じように、初学者やGit/Githubを利用したWeb開発に慣れていない人の参考になれば幸いです。</p>

<p>ではまた。</p>

<h2 id="プログラミングで困ったらmentaで質問しよう">プログラミングで困ったら、MENTAで質問しよう！</h2>

<p>プログラミングでエラーにハマったり、思うような機能を実装できなかったりしたときは、MENTAでご相談ください。</p>

<p><a href="https://menta.work/plan/4224?nic=l0b0PsDEH1qfM8rD&amp;ref=ni">こちら</a>から新規登録とメンタリングの利用をすると、最大5,000円のAmazonギフト券がもらえます！（記事執筆時点：2022年9月現在）</p>

<p>お気軽にどうぞ〜</p>]]></content><author><name></name></author><category term="Mac" /><category term="プログラミング" /><summary type="html"><![CDATA[こんにちは。しんやです。]]></summary></entry><entry><title type="html">Windows10にRuby on Railsの環境を構築する</title><link href="https://tech-blog.shinyaishizaki.com/windows/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/2022/04/15/windows10-ruby-on-rails.html" rel="alternate" type="text/html" title="Windows10にRuby on Railsの環境を構築する" /><published>2022-04-15T10:24:37+00:00</published><updated>2022-04-15T10:24:37+00:00</updated><id>https://tech-blog.shinyaishizaki.com/windows/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/2022/04/15/windows10-ruby-on-rails</id><content type="html" xml:base="https://tech-blog.shinyaishizaki.com/windows/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/2022/04/15/windows10-ruby-on-rails.html"><![CDATA[<p>こんにちは、しんやです。</p>

<p>今回はWindows10でRuby on Railsの環境を構築する手順についてお話します。</p>

<p>つまずいたポイントも解説するのでぜひご覧ください。</p>

<p><img src="_attachments/computer_programming_man_17791694158487546.png" alt="" /></p>

<ol>
  <li>VS Codeをインストール</li>
  <li>Rubyの最新版をインストール</li>
  <li>【つまずき1】エラーも何も表示されない？！</li>
  <li>SQLite3の最新版をインストール</li>
  <li>Railsの最新版をインストール</li>
  <li>【つまずき2】Railsのウェルカムページが表示されない？！</li>
  <li>Rubyの最新版をアンインストール</li>
  <li>Rubyのバージョン2.6.5-1(x64)をインストール</li>
  <li>Railsの最新版をインストール</li>
  <li>Railsサーバー起動</li>
  <li>
    <p>Railsのウェルカムページが表示される</p>
  </li>
  <li>VS Codeをインストール<br />
<a href="https://azure.microsoft.com/ja-jp/products/visual-studio-code/">こちら</a>からインストール</li>
  <li>Rubyの最新版をインストール<br />
<a href="https://prog-8.com/docs/ruby-env-win">Progate</a>を見て、Rubyの最新版をインストール</li>
  <li>【つまずき1】エラーも何も表示されない？！<br />
index.rbを実行しても何も表示されません。<br />
なぜなら、保存し忘れていたから。<br />
いつもオートセーブを有効化していますが、Windows10を再インストールし、VS Codeも再インストールしたことでその設定がデフォルトの無効化になっていました💦</li>
  <li>SQLite3の最新版をインストール<br />
<a href="https://prog-8.com/docs/rails-env-win">Progate</a>を見ながらインストール。</li>
  <li>Railsの最新版をインストール<br />
上記4のProgateを見て、コマンドプロンプトからインストール。</li>
  <li>【つまずき2】Railsのウェルカムページが表示されない？！<br />
ググると、Railsのバージョンが高すぎることが理由のよう。<br />
Ruby3.Xではいけないのか💦</li>
  <li>Rubyの最新版をアンインストール<br />
エクスプローラーからフォルダごと削除。ワーニングが出ても削除を実行。</li>
  <li>Rubyのバージョン2.6.5-1(x64)をインストール<br />
Progateのとおり、Rubyのバージョン2.6.5-1(x64)をインストール。</li>
  <li>Railsの最新版をインストール<br />
コマンドプロンプトから「gem install rails -v “5.2.6”」を実行。</li>
  <li>Railsサーバー起動<br />
コマンドプロンプトから「rails s」を実行。</li>
  <li>Railsのウェルカムページが表示される<br />
ブラウザからlocalhost:3000にアクセスすると、Railsのウェルカムページが表示されました。</li>
</ol>

<p>いかがでしたでしょうか。</p>

<p>今回の記事を参考にRailsライフを存分にお過ごしください！</p>

<p>私はRuby on Railsでポートフォリオサイト制作に入ります！！</p>

<p>ではまた～</p>]]></content><author><name></name></author><category term="Windows" /><category term="プログラミング" /><summary type="html"><![CDATA[こんにちは、しんやです。 今回はWindows10でRuby on Railsの環境を構築する手順についてお話します。 つまずいたポイントも解説するのでぜひご覧ください。 VS Codeをインストール Rubyの最新版をインストール 【つまずき1】エラーも何も表示されない？！ SQLite3の最新版をインストール Railsの最新版をインストール 【つまずき2】Railsのウェルカムページが表示されない？！ Rubyの最新版をアンインストール Rubyのバージョン2.6.5-1(x64)をインストール Railsの最新版をインストール Railsサーバー起動 Railsのウェルカムページが表示される VS Codeをインストール こちらからインストール Rubyの最新版をインストール Progateを見て、Rubyの最新版をインストール 【つまずき1】エラーも何も表示されない？！ index.rbを実行しても何も表示されません。 なぜなら、保存し忘れていたから。 いつもオートセーブを有効化していますが、Windows10を再インストールし、VS Codeも再インストールしたことでその設定がデフォルトの無効化になっていました💦 SQLite3の最新版をインストール Progateを見ながらインストール。 Railsの最新版をインストール 上記4のProgateを見て、コマンドプロンプトからインストール。 【つまずき2】Railsのウェルカムページが表示されない？！ ググると、Railsのバージョンが高すぎることが理由のよう。 Ruby3.Xではいけないのか💦 Rubyの最新版をアンインストール エクスプローラーからフォルダごと削除。ワーニングが出ても削除を実行。 Rubyのバージョン2.6.5-1(x64)をインストール Progateのとおり、Rubyのバージョン2.6.5-1(x64)をインストール。 Railsの最新版をインストール コマンドプロンプトから「gem install rails -v “5.2.6”」を実行。 Railsサーバー起動 コマンドプロンプトから「rails s」を実行。 Railsのウェルカムページが表示される ブラウザからlocalhost:3000にアクセスすると、Railsのウェルカムページが表示されました。 いかがでしたでしょうか。 今回の記事を参考にRailsライフを存分にお過ごしください！ 私はRuby on Railsでポートフォリオサイト制作に入ります！！ ではまた～]]></summary></entry><entry><title type="html">docomo Home 5Gを爆速にするたった1つのコツ</title><link href="https://tech-blog.shinyaishizaki.com/%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%BC%E3%83%8D%E3%83%83%E3%83%88/2022/04/12/docomo-home-5g.html" rel="alternate" type="text/html" title="docomo Home 5Gを爆速にするたった1つのコツ" /><published>2022-04-12T10:05:12+00:00</published><updated>2022-04-12T10:05:12+00:00</updated><id>https://tech-blog.shinyaishizaki.com/%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%BC%E3%83%8D%E3%83%83%E3%83%88/2022/04/12/docomo-home-5g</id><content type="html" xml:base="https://tech-blog.shinyaishizaki.com/%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%BC%E3%83%8D%E3%83%83%E3%83%88/2022/04/12/docomo-home-5g.html"><![CDATA[<p>こんにちは。しんやです。</p>

<p>今回は、docomo Home 5Gを爆速で利用するためのコツについてお話しします。</p>

<p>結論は、窓際に置くことです。</p>

<p>当初、リビングルームにある窓から5mほど離れた電話台に置いていたところ、通信速度が1〜3Mbpsほどしか出ませんでした。</p>

<p>しかし、仕事部屋の窓から1mほどの場所に移動したところ、78Mbpsと爆速に向上！</p>

<p>Zoom会議も快適です＼(^o^)／</p>

<p>みなさんもぜひお試しください。</p>

<p>まだdocomo home 5Gを導入していない方はこちらから申し込めば10,000円のキャッシュバックがあります！</p>

<p><a href="https://px.a8.net/svt/ejp?a8mat=3N26CI+Z4PBU+4UFG+61RI9"><img src="https://www29.a8.net/svt/bgt?aid=220131234059&amp;wid=006&amp;eno=01&amp;mid=s00000022606001016000&amp;mc=1" alt="" /></a> <img src="_attachments/0_17791694153690035.gif" alt="" /></p>]]></content><author><name></name></author><category term="インターネット" /><category term="インターネット" /><summary type="html"><![CDATA[こんにちは。しんやです。 今回は、docomo Home 5Gを爆速で利用するためのコツについてお話しします。 結論は、窓際に置くことです。 当初、リビングルームにある窓から5mほど離れた電話台に置いていたところ、通信速度が1〜3Mbpsほどしか出ませんでした。 しかし、仕事部屋の窓から1mほどの場所に移動したところ、78Mbpsと爆速に向上！ Zoom会議も快適です＼(^o^)／ みなさんもぜひお試しください。 まだdocomo home 5Gを導入していない方はこちらから申し込めば10,000円のキャッシュバックがあります！]]></summary></entry><entry><title type="html">MacBook Air (13-inch, Mid 2011)整備済み製品（中古）を購入して初めてしたこと</title><link href="https://tech-blog.shinyaishizaki.com/mac/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/2021/08/17/macbook-air-13-inch-mid-2011.html" rel="alternate" type="text/html" title="MacBook Air (13-inch, Mid 2011)整備済み製品（中古）を購入して初めてしたこと" /><published>2021-08-17T09:48:10+00:00</published><updated>2021-08-17T09:48:10+00:00</updated><id>https://tech-blog.shinyaishizaki.com/mac/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/2021/08/17/macbook-air-13-inch-mid-2011</id><content type="html" xml:base="https://tech-blog.shinyaishizaki.com/mac/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/2021/08/17/macbook-air-13-inch-mid-2011.html"><![CDATA[<p>こんにちは。しんやです。</p>

<p><img src="_attachments/computer_programming_man_1779169415385664.png" alt="" /></p>

<p>MacBook Airを購入(13-inch, Mid 2011)整備済み製品（中古）を購入したので、初めてしたことを纏めます。</p>

<p>フリーランスエンジニアやそれを目指してプログラミング学習している人で、「Mac使いたいけど高いなぁ」という人はぜひこの記事を読んで整備済み製品を検討してみてください。</p>

<h4 id="1-osのアップグレード">1. OSのアップグレード</h4>
<p>2. McAfeeのインストール<br />
3. Sublime textのインストール<br />
4. Visual Studio Code(VS Code)のインストール</p>

<ol>
  <li>OSのアップグレード</li>
</ol>

<p>MacBook Air 2011だと最新のOSである<a href="https://www.apple.com/jp/macos/how-to-upgrade/"><strong>Big Surには対応していません</strong></a>。</p>

<p><a href="https://support.apple.com/ja-jp/HT201862"><strong>最終対応のオペレーティングシステムはmacOS High Sierra 10.13.6</strong></a>だと分かりますので、こちらを<a href="https://support.apple.com/ja-jp/HT211683"><strong>ダウンロード</strong></a>してインストールします。</p>

<p>2. McAfeeをインストール</p>

<p>セキュリテイソフトは必要なので、すでに契約していてWindowsやAndroidスマホにインストールしているMcAfeeを入れることにしました。</p>

<p>McAfeeにログインして自分宛てにメールを送信し、リンクにしたがってダウンロード、インストールします。</p>

<p>3. Sublime textをインストール</p>

<p>ここからは、プログラミング学習やシステム開発で便利なツールをインストールします。</p>

<p>まずは、<strong><a href="https://www.sublimetext.com/3">Sublime text</a></strong>。</p>

<p>4. Visual Studio Code (VS Code)をインストール</p>

<p>次に、<a href="https://azure.microsoft.com/ja-jp/products/visual-studio-code/"><strong>Visual Studio Code</strong></a>をインストールします。これで一通り開発ができる状況になりました。</p>

<p>10年前の整備済みMacBook Airでどれだけサクサクプログラミングできるかは試してみないと分からないので、実験結果は分かり次第お知らせします。</p>

<p>ではまた。</p>]]></content><author><name></name></author><category term="Mac" /><category term="プログラミング" /><category term="Mac" /><category term="プログラミング" /><summary type="html"><![CDATA[こんにちは。しんやです。 MacBook Airを購入(13-inch, Mid 2011)整備済み製品（中古）を購入したので、初めてしたことを纏めます。 フリーランスエンジニアやそれを目指してプログラミング学習している人で、「Mac使いたいけど高いなぁ」という人はぜひこの記事を読んで整備済み製品を検討してみてください。 1. OSのアップグレード 2. McAfeeのインストール 3. Sublime textのインストール 4. Visual Studio Code(VS Code)のインストール OSのアップグレード MacBook Air 2011だと最新のOSであるBig Surには対応していません。 最終対応のオペレーティングシステムはmacOS High Sierra 10.13.6だと分かりますので、こちらをダウンロードしてインストールします。 2. McAfeeをインストール セキュリテイソフトは必要なので、すでに契約していてWindowsやAndroidスマホにインストールしているMcAfeeを入れることにしました。 McAfeeにログインして自分宛てにメールを送信し、リンクにしたがってダウンロード、インストールします。 3. Sublime textをインストール ここからは、プログラミング学習やシステム開発で便利なツールをインストールします。 まずは、Sublime text。 4. Visual Studio Code (VS Code)をインストール 次に、Visual Studio Codeをインストールします。これで一通り開発ができる状況になりました。 10年前の整備済みMacBook Airでどれだけサクサクプログラミングできるかは試してみないと分からないので、実験結果は分かり次第お知らせします。 ではまた。]]></summary></entry><entry><title type="html">【GAS】Google Apps Scriptでうるう年判定と日数判定を行う方法【カレンダー作成】</title><link href="https://tech-blog.shinyaishizaki.com/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/2021/08/09/gas-calendar.html" rel="alternate" type="text/html" title="【GAS】Google Apps Scriptでうるう年判定と日数判定を行う方法【カレンダー作成】" /><published>2021-08-09T17:33:57+00:00</published><updated>2021-08-09T17:33:57+00:00</updated><id>https://tech-blog.shinyaishizaki.com/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/2021/08/09/gas-calendar</id><content type="html" xml:base="https://tech-blog.shinyaishizaki.com/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/2021/08/09/gas-calendar.html"><![CDATA[<p>こんにちは。しんやです。</p>

<p>GAS（Google Apps Script）でうるう年判定と日数判定をしながらカレンダー作成するコードを書いたので共有します。</p>

<p>職場で勤怠シートを作成することを想定して開発しました。</p>

<p><img src="_attachments/calender_takujou-1_17791694153811145.png" alt="" /></p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>function myFunction() {

  Logger.log('*** myFunction Start ***');

  //スプレッドシートAppを呼び出し
  var ss = SpreadsheetApp.getActiveSpreadsheet();

  Logger.log('ss:'+ ss);

  //アクティブセルを取得
  var myCell = ss.getActiveCell();

  Logger.log('myCell:' + myCell);
  Logger.log('myCell.getRow():' + myCell.getRow());

  //「年」または「月」が変更されたとき
  if(myCell.getRow()==1 || myCell.getRow()==2) {
  
    //呼び出し
    createCallendar(ss);
  }
  Logger.log('*** myFunction End ***');
}

function createCallendar(ss) {

  Logger.log('*** createCallendar() Start ***');

  //年を取得
  var year = ss.getRange("A1").getValue();
  
  //うるう年判定
  var uruFlg = false;
  if (year % 4 == 0) {
    uruFlg = true;
  } else if (year % 400 == 0) {
    uruFlg = true;
  } else if (year % 100 == 0) {
    uruFlg = false;
  }

  Logger.log('year: ' + year);

  //月を取得
  var month = ss.getRange("A2").getValue();

  Logger.log('month:' + month);

  //日数判定しセット
  var lastDate;
  switch (month) {
    case 1:
    case 3:
    case 5:
    case 7: 
    case 8:
    case 10:
    case 12:
      lastDate = 31;
      break;
    case 4:
    case 6:
    case 9:
    case 11:
      lastDate = 30;
      break;
    case 2:
      lastDate = 28;
      break;
  }

  //うるう年の2月のとき、29日までセット
  if (uruFlg == true &amp;&amp; month == 2) {
    lastDate = 29;
  }

  Logger.log('lastDate:' + lastDate);

  //タイトル行をセット
  var titleRow = 7;

  //日にちを消去
  ss.getActiveSheet().getRange("A8:A38").clearContent();

  //日にちを入力
  for (var i = titleRow + 1; i &lt;= titleRow + lastDate; i++) {
    ss.getActiveSheet().getRange(i, 1).setValue(i - titleRow);
  }

  Logger.log('*** createCallendar() End ***');

}
</code></pre></div></div>

<p>以下の処理を実現するのに苦労したので、開発メモとしてたくさんの人に参考にしていただけると嬉しいです。</p>

<ul>
  <li>アクティブなスプレッドシートの取得（ファイルとしてアクティブなスプレッドシートの取得）</li>
  <li>アクティブシートの取得（ワークシートとしてアクティブなシート）</li>
  <li>アクティブシートの取得（ワークシートとしてアクティブなシート）</li>
  <li>Switch文で複数条件が真のときの書き方</li>
  <li>Switch文で複数条件が真のときの書き方</li>
</ul>

<p>ではまた。</p>

<p>【募集】<br />
初心者限定で、メンターとしてプログラミングを教えます。<br />
ぜひ、チェックしてください。<br />
①時間単位：<a href="https://www.timeticket.jp/items/122081/">https://www.timeticket.jp/items/122081/</a><br />
②1ヶ月単位：<a href="https://www.timeticket.jp/items/122104/">https://www.timeticket.jp/items/122104/</a></p>

<p>【詳細】<br />
プログラミングのメンターについて詳しくは公式LINEまで。<br />
LINEの友だちになると、簡単にメッセージが送れます。<br />
お気軽にお問い合わせください。</p>

<p><a href="https://lin.ee/b3ZBWt5"></a></p>]]></content><author><name></name></author><category term="プログラミング" /><category term="gas" /><category term="カレンダー" /><summary type="html"><![CDATA[こんにちは。しんやです。 GAS（Google Apps Script）でうるう年判定と日数判定をしながらカレンダー作成するコードを書いたので共有します。 職場で勤怠シートを作成することを想定して開発しました。 function myFunction() { Logger.log('*** myFunction Start ***'); //スプレッドシートAppを呼び出し var ss = SpreadsheetApp.getActiveSpreadsheet(); Logger.log('ss:'+ ss); //アクティブセルを取得 var myCell = ss.getActiveCell(); Logger.log('myCell:' + myCell); Logger.log('myCell.getRow():' + myCell.getRow()); //「年」または「月」が変更されたとき if(myCell.getRow()==1 || myCell.getRow()==2) { //呼び出し createCallendar(ss); } Logger.log('*** myFunction End ***'); } function createCallendar(ss) { Logger.log('*** createCallendar() Start ***'); //年を取得 var year = ss.getRange("A1").getValue(); //うるう年判定 var uruFlg = false; if (year % 4 == 0) { uruFlg = true; } else if (year % 400 == 0) { uruFlg = true; } else if (year % 100 == 0) { uruFlg = false; } Logger.log('year: ' + year); //月を取得 var month = ss.getRange("A2").getValue(); Logger.log('month:' + month); //日数判定しセット var lastDate; switch (month) { case 1: case 3: case 5: case 7: case 8: case 10: case 12: lastDate = 31; break; case 4: case 6: case 9: case 11: lastDate = 30; break; case 2: lastDate = 28; break; } //うるう年の2月のとき、29日までセット if (uruFlg == true &amp;&amp; month == 2) { lastDate = 29; } Logger.log('lastDate:' + lastDate); //タイトル行をセット var titleRow = 7; //日にちを消去 ss.getActiveSheet().getRange("A8:A38").clearContent(); //日にちを入力 for (var i = titleRow + 1; i &lt;= titleRow + lastDate; i++) { ss.getActiveSheet().getRange(i, 1).setValue(i - titleRow); } Logger.log('*** createCallendar() End ***'); } 以下の処理を実現するのに苦労したので、開発メモとしてたくさんの人に参考にしていただけると嬉しいです。 アクティブなスプレッドシートの取得（ファイルとしてアクティブなスプレッドシートの取得） アクティブシートの取得（ワークシートとしてアクティブなシート） アクティブシートの取得（ワークシートとしてアクティブなシート） Switch文で複数条件が真のときの書き方 Switch文で複数条件が真のときの書き方 ではまた。 【募集】 初心者限定で、メンターとしてプログラミングを教えます。 ぜひ、チェックしてください。 ①時間単位：https://www.timeticket.jp/items/122081/ ②1ヶ月単位：https://www.timeticket.jp/items/122104/ 【詳細】 プログラミングのメンターについて詳しくは公式LINEまで。 LINEの友だちになると、簡単にメッセージが送れます。 お気軽にお問い合わせください。]]></summary></entry></feed>