<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>へいちゃんのブログ</title>
<link>https://ameblo.jp/heisukewada/</link>
<atom:link href="https://rssblog.ameba.jp/heisukewada/rss20.xml" rel="self" type="application/rss+xml" />
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
<description>ブログの説明を入力します。</description>
<language>ja</language>
<item>
<title>ニュースのページから単語を抜き出す。</title>
<description>
<![CDATA[ <p style="text-align: left;">NHKニュースのRSSから単語を抜き出してみる。<br><br>import requests<br>from bs4 import BeautifulSoup<br>from sudachipy import tokenizer, dictionary<br>import re<br><br># ① RSSからタイトル取得<br>url = "https://www3.nhk.or.jp/rss/news/cat0.xml"<br>xml = requests.get(url).text<br>soup = BeautifulSoup(xml, "xml")<br><br>titles = [item.title.get_text(strip=True) for item in soup.find_all("item")]<br><br># ② SudachiPy準備<br>tokenizer_obj = dictionary.Dictionary().create()<br>mode = tokenizer.Tokenizer.SplitMode.C<br><br># ★ 追加：不要語フィルタ<br>stopwords = {<br>&nbsp; &nbsp; "が","の","に","を","で","は","と","も","か","や","へ","だ","な",<br>&nbsp; &nbsp; " ","　","", "など", "めぐり",<br>&nbsp; &nbsp; "「","」","“","”","『","』","（","）"<br>}<br><br>def is_valid(word):<br>&nbsp; &nbsp; # 空白・ストップワード<br>&nbsp; &nbsp; if word in stopwords:<br>&nbsp; &nbsp; &nbsp; &nbsp; return False<br>&nbsp; &nbsp; # ひらがな1〜2文字<br>&nbsp; &nbsp; if re.fullmatch(r"[ぁ-ん]{1,2}", word):<br>&nbsp; &nbsp; &nbsp; &nbsp; return False<br>&nbsp; &nbsp; return True<br><br>def extract_phrases(text):<br>&nbsp; &nbsp; tokens = tokenizer_obj.tokenize(text, mode)<br>&nbsp; &nbsp; phrases = []<br>&nbsp; &nbsp; current = []<br><br>&nbsp; &nbsp; def is_noun(t):<br>&nbsp; &nbsp; &nbsp; &nbsp; return t.part_of_speech()[0] == "名詞"<br><br>&nbsp; &nbsp; def should_combine(prev, curr):<br>&nbsp; &nbsp; &nbsp; &nbsp; return is_noun(prev) and is_noun(curr)<br><br>&nbsp; &nbsp; for i, t in enumerate(tokens):<br>&nbsp; &nbsp; &nbsp; &nbsp; if i == 0:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; current.append(t.dictionary_form())<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; continue<br><br>&nbsp; &nbsp; &nbsp; &nbsp; prev = tokens[i-1]<br><br>&nbsp; &nbsp; &nbsp; &nbsp; if should_combine(prev, t):<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; current.append(t.dictionary_form())<br>&nbsp; &nbsp; &nbsp; &nbsp; else:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; phrases.append("".join(current))<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; current = [t.dictionary_form()]<br><br>&nbsp; &nbsp; if current:<br>&nbsp; &nbsp; &nbsp; &nbsp; phrases.append("".join(current))<br><br>&nbsp; &nbsp; return phrases<br><br># ③ 全タイトルに適用<br>all_phrases = []<br>for title in titles:<br>&nbsp; &nbsp; all_phrases.extend(extract_phrases(title))<br><br># ④ 出力（フィルタ適用）<br>filtered = [p for p in all_phrases if is_valid(p)]<br>result = ",".join([f'"{p}"' for p in filtered])<br>print(result)<br>print("語句数:", len(filtered))<br><br><br>&nbsp;</p>
]]>
</description>
<link>https://ameblo.jp/heisukewada/entry-12963742581.html</link>
<pubDate>Tue, 21 Apr 2026 21:20:43 +0900</pubDate>
</item>
<item>
<title>座りっぱなしは体に悪い？</title>
<description>
<![CDATA[ <p>PCに向かってダラダラと遊んでいると腰が痛くなっちゃったりします。<br><br>そんなときは体操しましょう。</p><p>&nbsp;</p><p>PCに向かっていると、30分ごとに再生されます。＾＾；<br><br>$youtubeURL = "https://www.youtube.com/watch?v=8sQw_Ybq7r4"<br>$mpvPath = "C:\Program Files\mpv\mpv.exe"<br>$ytDlpPath = "C:\Program Files\yt-dlp\yt-dlp.exe"<br><br>while ($true) {<br>&nbsp; &nbsp; # YouTubeの動画URLを取得（t=22sは無視される）<br>&nbsp; &nbsp; $videoURL = &amp; $ytDlpPath -f b --get-url $youtubeURL<br><br>&nbsp; &nbsp; # mpvで22秒後から再生<br>&nbsp; &nbsp; $mpvProcess = Start-Process -FilePath $mpvPath -ArgumentList "--start=20 $videoURL" -PassThru<br><br>&nbsp; &nbsp; # 3分待機（動画の長さ）<br>&nbsp; &nbsp; Start-Sleep -Seconds 172<br><br>&nbsp; &nbsp; # mpvを終了<br>&nbsp; &nbsp; Stop-Process -Id $mpvProcess.Id -Force -ErrorAction SilentlyContinue<br><br>&nbsp; &nbsp; # 30分待機（次のストレッチまで）<br>&nbsp; &nbsp; Start-Sleep -Seconds 1800<br>}<br><br><br>&nbsp;</p>
]]>
</description>
<link>https://ameblo.jp/heisukewada/entry-12963318536.html</link>
<pubDate>Fri, 17 Apr 2026 19:57:22 +0900</pubDate>
</item>
<item>
<title>WiFiミレル（スマホアプリ）のヒートマップを使ってみる。</title>
<description>
<![CDATA[ <p>家のWiFiの電波状況を調べることができる"WiFiミレル"</p><p>&nbsp;</p><p>これに"ヒートマップ"っていうタブがある。<br><br>家の間取り図を読み込ませて、WiFiの電波状況を表示させることができる。</p><p>&nbsp;</p><p><a href="https://stat.ameba.jp/user_images/20260410/07/heisukewada/bf/b5/j/o1080246015769785085.jpg"><img alt="" contenteditable="inherit" height="501" src="https://stat.ameba.jp/user_images/20260410/07/heisukewada/bf/b5/j/o1080246015769785085.jpg" width="220"></a></p><p>こんな感じ。2階は、左上の部屋が電波弱い 事がわかる。</p><p>&nbsp;</p><p>引っ越しの時家具の配置を決めるのに JW-CADで作った図面があったので、それを読み込ませました。<br><br>jwwそのままだと無理なので、JW-CADで図面を開いたら、「印刷」を選択。<br><br>プリンターを　"Microsoft Print to PDF"に設定して　「印刷」ボタンで　名前をつけて保存。</p><p>&nbsp;</p><p>PDFファイルができたら、GIMPで読み込ませて　形式を　PNG にして、エクスポート<br><br>これで、図面のPNGファイルが出来上がり。</p><p>&nbsp;</p><p>SMBとか、USBケーブル接続とか、メールとかで、PCから スマホに転送<br><br>"WiFiミレル"の"ヒートマップ"タブをタップして　右下の "+ "のアイコンをタップ</p><p>"ギャラリーから"をタップして<br>右上の"画像"のアイコンをタップして、保存した"画像.png"をタップ<br>ピンチアウト、ピンチインで、できるだけ表示枠にいっぱいにして、左上部の　"チェックマーク"アイコンをタップ<br>これで一応保存されるから、図面の場所に行って、ヒートマップのその位置をタップ　で、WiFiの電波状況が色付けされる。<br>調べたい箇所で、同様の操作をすると、ヒートマップの出来上がり（上の画像 タップしたとこが黒丸）<br>左上の"チェックマーク"のアイコンタップで、保存できます。</p><p>&nbsp;</p><p>ちなみに、メッシュWiFiもどきで 2階にルーターを増設したら<br><a href="https://stat.ameba.jp/user_images/20260410/07/heisukewada/7d/db/j/o1080246015769785182.jpg"><img alt="" contenteditable="inherit" height="501" src="https://stat.ameba.jp/user_images/20260410/07/heisukewada/7d/db/j/o1080246015769785182.jpg" width="220"></a>　</p><p>こんな感じで、2階はどこでも良好になりましたとさ。</p><p>&nbsp;</p><p>&nbsp;</p>
]]>
</description>
<link>https://ameblo.jp/heisukewada/entry-12962530257.html</link>
<pubDate>Fri, 10 Apr 2026 07:45:18 +0900</pubDate>
</item>
<item>
<title>馬見丘陵に行ってきました。</title>
<description>
<![CDATA[ <p>月曜日に、奈良県の馬見丘陵に行ってきました。</p><p>&nbsp;</p><p>ここって、駐車料金も、入園料？もいらないんですね。<br><br>公園内はキレイに整備されていて、チューリップとか、花のレイアウトも見事でした。<br><br><a href="https://stat.ameba.jp/user_images/20260407/20/heisukewada/3d/0f/j/o1400105415769010970.jpg"><img alt="" height="316" src="https://stat.ameba.jp/user_images/20260407/20/heisukewada/3d/0f/j/o1400105415769010970.jpg" width="420"></a></p><p>&nbsp;</p><p><a href="https://stat.ameba.jp/user_images/20260407/20/heisukewada/3e/57/j/o1400105415769010777.jpg"><img alt="" height="316" src="https://stat.ameba.jp/user_images/20260407/20/heisukewada/3e/57/j/o1400105415769010777.jpg" width="420"></a></p><p>&nbsp;</p><p><a href="https://stat.ameba.jp/user_images/20260407/20/heisukewada/f1/e9/j/o1400105415769011124.jpg"><img alt="" height="316" src="https://stat.ameba.jp/user_images/20260407/20/heisukewada/f1/e9/j/o1400105415769011124.jpg" width="420"></a></p><p>&nbsp;</p><p><a href="https://stat.ameba.jp/user_images/20260407/20/heisukewada/0a/a2/j/o1400105415769011126.jpg"><img alt="" height="316" src="https://stat.ameba.jp/user_images/20260407/20/heisukewada/0a/a2/j/o1400105415769011126.jpg" width="420"></a></p><p>&nbsp;</p><p><a href="https://stat.ameba.jp/user_images/20260407/20/heisukewada/15/cd/j/o1400105415769011125.jpg"><img alt="" height="316" src="https://stat.ameba.jp/user_images/20260407/20/heisukewada/15/cd/j/o1400105415769011125.jpg" width="420"></a></p>
]]>
</description>
<link>https://ameblo.jp/heisukewada/entry-12962287405.html</link>
<pubDate>Tue, 07 Apr 2026 20:19:40 +0900</pubDate>
</item>
<item>
<title>Gmail 使ってる？</title>
<description>
<![CDATA[ <p>久しぶりのブログです。<br><br>Gmailは迷惑メールを見ることは まずないので、結構安心して使えるのですが・・・<br><br>メイン、プロモーション、ソーシャル　と振り分けられてしまいます。<br>いつもメインを見てるのだけど、いつの間にか、プロモーションにメールがいっぱい。ｗｗ<br><br>で、「配信停止」ボタンを押して、まずは、いらない 読まないメールマガジンを来ないようにしました。<br>あちこち登録しちゃってたんだね。<br>あと、大切なものは、メールを開いて</p><p>&nbsp;⋮　（その他）を押して「メールの自動振り分け設定」をクリック<br>&nbsp;"フィルターを作成"の青い文字をクリック<br>その後<br>"<label for=":bv">受信トレイをスキップ (アーカイブする)"<br>"</label><label for=":bs">ラベルを付ける:ラベルを選択　｛なければ新規に作成｝"</label></p><p><label for=":bs">"</label>◯件の一致するスレッドにもフィルタを適用する。"<br><label for=":bs">この3つにチェックを入れて　「フィルターを作成」ボタンをクリック。<br><br>これでキレイに振り分けてくれます。<br>Gmailって、便利だよね。＾＾</label></p><p>&nbsp;</p><p><label for=":bs">フィルターの編集、削除 は、右上の歯車のアイコン（設定）をクリック<br>"すべての設定を表示"の青い文字をクリック<br>「フィルタとブロック中のアドレス」タブをクリックして、編集、削除をします。<br><br>たまに、整理するとスッキリするよね。＾＾</label><br>&nbsp;</p>
]]>
</description>
<link>https://ameblo.jp/heisukewada/entry-12961859419.html</link>
<pubDate>Fri, 03 Apr 2026 20:01:48 +0900</pubDate>
</item>
<item>
<title>あつい</title>
<description>
<![CDATA[ <p>今日は特に暑いなあ・・</p>
]]>
</description>
<link>https://ameblo.jp/heisukewada/entry-12688461571.html</link>
<pubDate>Sun, 25 Jul 2021 15:09:57 +0900</pubDate>
</item>
<item>
<title>わたしの恋愛トリセツ</title>
<description>
<![CDATA[ <p>&nbsp;</p><p>▼あなたの恋愛トリセツはこちら</p><p><a target="_blank" href="http://content.ameba.jp/love_torisetsu_2016/"><img width="400" alt="あなたの恋愛トリセツを作ってみる" style="max-width:100%" src="https://stat100.ameba.jp/blog/img/stamp/cpn/love_torisetsu_2016/A2B3C2.png"></a></p><div><a target="_blank" href="http://content.ameba.jp/love_torisetsu_2016/">あなたの恋愛トリセツを作ってみる</a></div>
]]>
</description>
<link>https://ameblo.jp/heisukewada/entry-12215636199.html</link>
<pubDate>Wed, 02 Nov 2016 17:33:45 +0900</pubDate>
</item>
<item>
<title>サンリオキャラクター診断キャンペーン</title>
<description>
<![CDATA[ <p>遊ぶことが好きなあなたにぴったりなキャラは…</p><p><a target="_blank" href="http://lo.ameba.jp/v1/vvUoTtMaylcObtyMcrTq"><img height="190" width="380" alt="遊ぶことが好きなあなたにぴったりなキャラは…" src="https://stat100.ameba.jp/blog/img/lp/sanrioshindancpn/acb2.png"></a></p><div><a target="_blank" href="http://lo.ameba.jp/v1/vvUoTtMaylcObtyMcrTq">サンリオキャラクター診断キャンペーンはこちらから</a></div>
]]>
</description>
<link>https://ameblo.jp/heisukewada/entry-12209806837.html</link>
<pubDate>Sat, 15 Oct 2016 08:11:47 +0900</pubDate>
</item>
<item>
<title>残り100日運勢みくじを引いてみた</title>
<description>
<![CDATA[ <p>2016年残り100日運勢みくじ<br><br><a target="_blank" href="http://lo.ameba.jp/v1/tMIkMvVPTcTonEzxmTho"><img width="400" alt="" border="0" src="https://stat100.ameba.jp/blog/img/stamp/cpn/mikuji100days/cpn_card_11.png"></a><br>&nbsp;</p><p><a target="_blank" href="http://lo.ameba.jp/v1/tMIkMvVPTcTonEzxmTho">おみくじを引きに行く＞</a></p><p>&nbsp;</p><p>バカにしてる？？？</p><p>&nbsp;</p><p>&nbsp;</p>
]]>
</description>
<link>https://ameblo.jp/heisukewada/entry-12204388792.html</link>
<pubDate>Wed, 28 Sep 2016 13:35:38 +0900</pubDate>
</item>
<item>
<title>あなたの恋愛傾向が分かる心理テスト</title>
<description>
<![CDATA[ <p>この心理テストでは、あなたの恋愛傾向が分かります！</p><p>▼あなたの恋愛傾向は・・・</p><p><a target="_blank" href="http://lo.ameba.jp/v1/oilTsoIkVCZNlDidbnPo"><img width="500" alt="期間限定！恋愛心理テストはこちらから" style="max-width:100%" src="https://stat100.ameba.jp/blog/img/stamp/cpn/psychological_test_201609/q1-1.png"></a></p><div><a target="_blank" href="http://lo.ameba.jp/v1/oilTsoIkVCZNlDidbnPo">期間限定！恋愛心理テストはこちらから</a></div>
]]>
</description>
<link>https://ameblo.jp/heisukewada/entry-12201963956.html</link>
<pubDate>Tue, 20 Sep 2016 23:38:56 +0900</pubDate>
</item>
</channel>
</rss>
