<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-354833980852975028</id><updated>2026-02-04T12:25:43.791+09:00</updated><category term="Blogger"/><category term="Oracle"/><category term="oo4oからADOへの変換"/><category term="PowerShell"/><category term="JavaScript"/><category term="シンタックスハイライト"/><category term="パンくずリスト"/><category term=".NET"/><category term="Breadcrumb"/><category term="Chrome拡張機能"/><category term="Crystal Reports"/><category term="StackEdit"/><category term="VBA"/><category term="Windows Server"/><category term="正規表現"/><title type='text'>nkurilog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>47</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-4277700604995806346</id><published>2022-04-07T21:42:00.005+09:00</published><updated>2022-04-07T21:43:50.029+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PowerShell"/><title type='text'>PowerShell Officeアプリケーションのインストール先を取得する</title><summary type="text">Microsoft Office のインストール先は、Windowsの32bit/64bit、Officeのバージョン、Windowsインストーラーテクノロジ (MSI)かクイック実行 (C2R)かによって異なります。
標準で起動するアプリケーションは以下のPowerShellでインストール先のパスを取得できます。

（Excelのインストール先を取得する場合）
(Get-ItemProperty &#39;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\excel.exe&#39;).&#39;(Default)&#39;



複数のバージョンのOfficeがインストールされていて、標準で起動しないアプリケーションのパスを取得する場合は以下のように直接パスを探索することでも取得できます。

  
  
（Excel2016を指定して取得する場合）
</summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/4277700604995806346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2022/04/powershell-office.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/4277700604995806346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/4277700604995806346'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2022/04/powershell-office.html' title='PowerShell Officeアプリケーションのインストール先を取得する'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-5421689488016987667</id><published>2021-11-07T09:00:00.002+09:00</published><updated>2025-01-28T10:46:43.157+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><title type='text'>ORACLE_HOMEを取得するPowerShellワンライナー</title><summary type="text">(Get-ChildItem -Path HKLM:\SOFTWARE\ORACLE | Where-Object {$_.PSChildName -like &quot;KEY_*&quot;}).GetValue(&quot;ORACLE_HOME&quot;)

エイリアスを使うと、
(gci HKLM:\SOFTWARE\ORACLE | ? {$_.PSChildName -like &quot;KEY_*&quot;}).GetValue(&quot;ORACLE_HOME&quot;)


Windows 64-bit に Oracle Client 32-bit をインストールしている場合
(gci HKLM:\SOFTWARE\WOW6432Node\ORACLE | ? {$_.PSChildName -like &quot;KEY_*&quot;}).GetValue(&quot;ORACLE_HOME&quot;)


レジストリ・パラメータについて
データベース管理者リファレンス</summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/5421689488016987667/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2021/11/oraclehomepowershell.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/5421689488016987667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/5421689488016987667'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2021/11/oraclehomepowershell.html' title='ORACLE_HOMEを取得するPowerShellワンライナー'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-800346739435075233</id><published>2021-10-17T22:17:00.002+09:00</published><updated>2025-01-28T00:36:47.062+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PowerShell"/><title type='text'>PowerShellでJISコードのメールを送信する (MailKit編) (2)</title><summary type="text">前回のMimeKit導入編に続き、今回は実装編です。
以下のサイトを参考にPowerShellでJISコード（ISO-2022-JP）でメールを送信するコードを書いてみます。
電子メールを送信するには？（MailKit編）［.NET 4.5、C#／VB］：.NET TIPS - ＠ITこれまで広く使われてきたSmtpClientクラスは現在、使用が推奨されていない。そこでオープンソースライブラリのMailKitでメールを送信する方法を説明する。atmarkit.itmedia.co.jp


一般的なメールソフトと同様、宛先、CC、件名、本文、添付ファイルを引数にした関数にしています。
宛先、CC、添付ファイルについては複数項目を受け付けるため配列を引数にしています。簡略化のため、宛先とCCの Display Name はなしにしています。

function Send-JisMail </summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/800346739435075233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2021/10/powershelljis-mailkit-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/800346739435075233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/800346739435075233'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2021/10/powershelljis-mailkit-2.html' title='PowerShellでJISコードのメールを送信する (MailKit編) (2)'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-4750978665715647319</id><published>2021-10-16T09:51:00.002+09:00</published><updated>2022-06-04T17:35:39.437+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PowerShell"/><title type='text'>PowerShellでJISコードのメールを送信する (MailKit編) (1)</title><summary type="text">SmtpClient編 に続きMailKit編です。
パッケージの確認
https://www.nuget.org/ にアクセスしてMailKitを検索します。
名前・バージョン・Dependenciesを確認して、依存パッケージを辿ります。
MailKit -&amp;gt; MimeKit -&amp;gt; Portable.BouncyCastleの順で依存関係があることが分かります。
MailKit のインストール
PowerShellを管理者モードで起動し、各パッケージをインストールします。
PS &amp;gt; Install-Package -Name Portable.BouncyCastle -Source https://www.nuget.org/api/v2

The package(s) come(s) from a package source that is not </summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/4750978665715647319/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2021/10/powershelljis-mailkit-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/4750978665715647319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/4750978665715647319'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2021/10/powershelljis-mailkit-1.html' title='PowerShellでJISコードのメールを送信する (MailKit編) (1)'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-6329958331651034492</id><published>2021-10-08T11:57:00.000+09:00</published><updated>2022-10-05T11:57:41.748+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PowerShell"/><title type='text'>PowerShellでJISコードのメールを送信する (SmtpClient編[obsoleted])</title><summary type="text">&lt;!--div class=&amp;#34;box&amp;#34;--&gt;
こちらにあるとおり

ℹ 重要
SmtpClientは多くの最新プロトコルをサポートしていないため、新規開発にSmtpClientクラスを使用することはお勧めしません。代わりにMailKitや他のライブラリを使用してください。詳細については、GitHubのSmtpClient shouldn’t be usedをご覧ください。

SmtpClientクラスは廃止（obsolete）となりました。
後継のMailkitを使用したバージョンはこちらです。
&lt;!--/div--&gt;
  
  ここでは、SmtpClientクラスを使って
JISコード（JIS-2022-JP）でメールを送信するには？［2.0のみ、C#、VB］ - ＠ITatmarkit.itmedia.co.jp
を参考にPowerShellでJISコード（</summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/6329958331651034492/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2021/10/powershelljis-smtpclientobsoleted.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/6329958331651034492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/6329958331651034492'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2021/10/powershelljis-smtpclientobsoleted.html' title='PowerShellでJISコードのメールを送信する (SmtpClient編[obsoleted])'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-8173905707750675354</id><published>2020-07-22T10:17:00.001+09:00</published><updated>2020-07-22T10:15:59.458+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><title type='text'>PL/SQLから日本語（JIS）でメール送信する</title><summary type="text">ここでは、
UTL_SMTPdocs.oracle.com
にあるサンプルコード
DECLARE
  c UTL_SMTP.CONNECTION;
 
  PROCEDURE send_header(name IN VARCHAR2, header IN VARCHAR2) AS
  BEGIN
    UTL_SMTP.WRITE_DATA(c, name || &#39;: &#39; || header || UTL_TCP.CRLF);
  END;
 
BEGIN
  c := UTL_SMTP.OPEN_CONNECTION(&#39;smtp-server.acme.com&#39;);
  UTL_SMTP.HELO(c, &#39;foo.com&#39;);
  UTL_SMTP.MAIL(c, &#39;sender@foo.com&#39;);
  UTL_SMTP.RCPT(c, &#39;recipient@foo.com&#39;);
</summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/8173905707750675354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2020/07/plsqljis.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/8173905707750675354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/8173905707750675354'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2020/07/plsqljis.html' title='PL/SQLから日本語（JIS）でメール送信する'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-403924815237837736</id><published>2020-06-24T15:05:00.001+09:00</published><updated>2020-07-19T00:17:52.191+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VBA"/><title type='text'>VBA 丸めのまとめ</title><summary type="text">VBA（Visual Basic for  Application）における数値の丸めについてまとめておきます。
偶数丸め（JIS丸め、銀行丸め）
VBA標準のRound関数は偶数丸め（JIS丸め、銀行丸め）なのでそのまま使えるのですが、整数部での丸め（小数部桁数に負の値を指定する）ができません。以下の関数を作り、拡張します。
&#39; 偶数丸め（整数部丸め対応）
Public Function RoundHalfEven(ByVal number As Double, Optional ByVal digitsAfterDecimal As Long = 0) As Double
    If digitsAfterDecimal &amp;lt; 0 Then
        Dim shift As Double
        shift = 10 ^ digitsAfterDecimal
</summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/403924815237837736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2020/06/vba.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/403924815237837736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/403924815237837736'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2020/06/vba.html' title='VBA 丸めのまとめ'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-8779395010062996748</id><published>2019-01-13T20:51:00.001+09:00</published><updated>2019-01-21T23:16:32.333+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><title type='text'>Oracleで有効数字を取得する。</title><summary type="text">基本的な考え方

ある数値の桁数を取得するには常用対数を用います。 
FLOOR(LOG(10, n)) は次のとおり0以外の数値が最初に出現する桁を表します。



SQL&amp;gt; WITH DATA AS (
  2  SELECT 1234 N FROM DUAL
  3  UNION ALL SELECT 234 N FROM DUAL
  4  UNION ALL SELECT 34 N FROM DUAL
  5  UNION ALL SELECT 4 N FROM DUAL
  6  --UNION ALL SELECT 0 N FROM DUAL
  7  UNION ALL SELECT 0.123 N FROM DUAL
  8  UNION ALL SELECT 0.0234 N FROM DUAL
  9  UNION ALL SELECT 0.00345 N </summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/8779395010062996748/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2019/01/oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/8779395010062996748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/8779395010062996748'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2019/01/oracle.html' title='Oracleで有効数字を取得する。'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-4983405924740252874</id><published>2019-01-12T21:03:00.001+09:00</published><updated>2019-01-21T23:16:12.862+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><title type='text'>Oracleで偶数丸め（JIS丸め）</title><summary type="text">Oracle標準のROUND 関数は四捨五入です。 
偶数丸め（JIS丸め、銀行丸め）を行うには関数を自作する必要があります。



基本的な考え方

単純な整数への丸めを行うケースを考えます。


端数がちょうど0.5かどうかを判定するため、絶対値を1で割ります。 
余りが0.5のとき偶数丸めを行う必要がありますが、その他の場合は四捨五入と同じですので、ROUND関数が使えます。
実は、偶数丸めを行うためには、絶対値を1でなく2で割った方が良いです。 
2で割った場合、余りが0.5または1.5のときに偶数丸めが必要となります。 
余りが0.5のときは切り捨て（TRUNCATE）を行い、 余りが1.5のときは切り上げ（四捨五入ですのでROUND関数が使えます）を行うことで偶数丸めが実現できます。




関数

以上を関数にまとめると、以下のようになります。



CREATE OR </summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/4983405924740252874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2019/01/oraclejis.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/4983405924740252874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/4983405924740252874'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2019/01/oraclejis.html' title='Oracleで偶数丸め（JIS丸め）'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-4285992855981738226</id><published>2018-11-28T18:04:00.001+09:00</published><updated>2019-01-21T23:15:50.844+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><title type='text'>Get Significant Figures in Oracle</title><summary type="text">Basic Idea

You can use common logarithm (i.e. log base 10) to evaluate the number of digits. 
FLOOR(LOG(10, n)) indicates the decimal places of the first non-zero digit as follows.



SQL&amp;gt; WITH DATA AS (
  2  SELECT 1234 N FROM DUAL
  3  UNION ALL SELECT 234 N FROM DUAL
  4  UNION ALL SELECT 34 N FROM DUAL
  5  UNION ALL SELECT 4 N FROM DUAL
  6  --UNION ALL SELECT 0 N FROM DUAL
  7  UNION </summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/4285992855981738226/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2018/11/get-significant-figures-in-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/4285992855981738226'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/4285992855981738226'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2018/11/get-significant-figures-in-oracle.html' title='Get Significant Figures in Oracle'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-4787697657728587473</id><published>2018-11-27T18:14:00.001+09:00</published><updated>2019-01-21T23:15:34.470+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><title type='text'>Round Half to Even in Oracle</title><summary type="text">Oracle standard ROUND function is rounding away from 0. 
In order to round half to even (aka bankers’ rounding) in Oracle, you have to create a custom function.



Basic idea

Consider the case of rounding to an integer.


To judge whether the number is half-way between two integers, you have to divide the absolute value by 1 and see the remainder. 
If the remainder is 0.5, you need to round to </summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/4787697657728587473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2018/11/round-half-to-even-in-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/4787697657728587473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/4787697657728587473'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2018/11/round-half-to-even-in-oracle.html' title='Round Half to Even in Oracle'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-1902023485446279469</id><published>2018-11-19T18:52:00.001+09:00</published><updated>2018-11-28T13:37:17.387+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="正規表現"/><title type='text'>ある文字を含むが、ある文字は含まない正規表現</title><summary type="text">ある文字を含むが、ある文字は含まない正規表現をネットで検索すると、 
 （以下、fooという文字を含み、barは含まない例）



/^(?!.*bar).*(?=foo).*$/

または、

/^(?=.*foo)(?!.*bar).*$/

がヒットするのですが、肯定先読みを使わない以下の書き方がパフォーマンスが良いようです。

/^(?!.*bar).*foo.*$/

参考

regex - Regular expression that both includes and excludes certain strings in R - Stack Overflowstackoverflow.com</summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/1902023485446279469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2018/11/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/1902023485446279469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/1902023485446279469'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2018/11/blog-post.html' title='ある文字を含むが、ある文字は含まない正規表現'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-8416910125116955770</id><published>2018-02-28T23:14:00.001+09:00</published><updated>2018-03-06T09:32:48.854+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><title type='text'>Oracle 12c SCOTTユーザーの権限を確認する</title><summary type="text">前の記事「Oracle CONNECTおよびRESOURCEロールのまとめ」を書いていて、ふと気になったのですが、サンプル・スキーマのSCOTTユーザーの権限ははどうなっているのでしょうか。

SCOTTユーザーの権限は非推奨の CONNECTロールとRESOURCE ロールを使用していたはずです。Oracle12c では非推奨なので使われなくなっているのでしょうか。

サンプルスキーマの作成スクリプト ORACLE_HOME/rdbms/admin/utlsampl.sql を見ると、



GRANT CONNECT,RESOURCE,UNLIMITED TABLESPACE TO SCOTT IDENTIFIED BY tiger;

となっていました。

まだ、非推奨の RESOURCE ロールと CONNECT ロールが使われているようですね。 
また、12c から </summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/8416910125116955770/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2018/02/oracle-12c-scott.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/8416910125116955770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/8416910125116955770'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2018/02/oracle-12c-scott.html' title='Oracle 12c SCOTTユーザーの権限を確認する'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-1182578199558620620</id><published>2018-02-23T23:38:00.001+09:00</published><updated>2018-03-06T09:35:20.540+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><title type='text'>Oracle CONNECTおよびRESOURCEロールのまとめ</title><summary type="text">Oracle Database 10g R2 から「最低限の権限」原則により CONNECT および RESOURCE ロールは非推奨となった。

Oracle Database セキュリティ・ガイド 10gリリース2（10.2）- 認可: 権限、ロール、プロファイルおよびリソースの制限


  注意: 
  CONNECTおよびRESOURCEロールは、将来のOracle Databaseのリリースで非推奨になる予定のため、使用しないでください。 CONNECTロールが現在保持している権限は、CREATE SESSIONのみです。


なお、非推奨ではあるものの Oracle 12g R2 でも CONNECTおよびRESOURCEロールは事前定義されている。

Oracle® Databaseセキュリティ・ガイド 12cリリース2 (12.2) - Oracle Databaseの</summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/1182578199558620620/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2018/02/oracle-connectresource.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/1182578199558620620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/1182578199558620620'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2018/02/oracle-connectresource.html' title='Oracle CONNECTおよびRESOURCEロールのまとめ'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-2078091295933412520</id><published>2018-02-13T20:37:00.001+09:00</published><updated>2018-02-13T20:37:18.624+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Windows Server"/><title type='text'>Windows Server のシステムパーティション（Cドライブ）容量</title><summary type="text">Windows Server セットアップ時（仮想化環境でない場合）にシステムパーティション（Cドライブ）にどの程度の容量を割り当てるか悩ましいですね。

少々古い記事ですが、Microsoft のブログで “How big should my OS drive be?” という記事が掲載されているので紹介しておきます。

How big should my OS drive be? | Ask the Core TeamMicrosoft Enterprise Platforms Support: Windows Server Core Teamblogs.technet.microsoft.com

こちらの記事では、


3 x RAM
10 -12GB ベースOS（役割・機能による）
10GB アップデート
10GB その他
＋インストールするアプリケーションの容量


の容量を</summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/2078091295933412520/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2018/02/windows-server-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/2078091295933412520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/2078091295933412520'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2018/02/windows-server-c.html' title='Windows Server のシステムパーティション（Cドライブ）容量'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-8737697115862672287</id><published>2018-02-06T18:54:00.004+09:00</published><updated>2022-10-30T20:00:42.694+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blogger"/><title type='text'>Display Post Titles in Blogger Page Navigation</title><summary type="text">Blogger’s page navigation at the bottom of the page displays just “Newer Post” and  “Older Post”.  It is preferable to show the actual page title instead of them.

I’d searched solutions satisfying the following conditions.


Getting page titles from the blog feeds without loading another page. 
Loading another page is counted as a page visit and skew the stats.
Simple JavaScript snippet (w/o </summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/8737697115862672287/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2018/02/display-post-titles-in-page-navigation.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/8737697115862672287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/8737697115862672287'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2018/02/display-post-titles-in-page-navigation.html' title='Display Post Titles in Blogger Page Navigation'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjnvfb2REvXKGGTCL7rFGFjz51sj5T3btweRTZCnlWxsk0AMmXoc6So798t4qfA7rWTAUwAso85zwz5gt51reIXHEMD2b24MhBRX4hUOcG-y1_uAdxXjsKxMeCkHh6m45nbhlgLv5obuwbJXSHYZzMCBpv_c8RlM2kwxBb76t9a1P2558aqexsk9zpmA/s72-w0-c/Add%20Next:Previous%20Pager%20Navigation%20with%20Image%20-%20Blogger.webp" height="72" width="72"/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-8400076836789241115</id><published>2018-02-01T21:34:00.001+09:00</published><updated>2018-02-04T20:56:30.895+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><title type='text'>Oracle 非CDB（Non-CDB）はいつまで使えるのか</title><summary type="text">Oracle 非CDB（Non-CDB）アーキテクチャは、12c から非推奨となっているのですが、いつまで使える（サポートされる）のか現時点の情報をまとめておきます。

まず、日本語版の「Oracle® Databaseアップグレード・ガイド 12cリリース2 (12.2)  」

Oracle Databaseアップグレード・ガイドのこのリリースでの変更The new release of Oracle Database provides improvements to upgrade performance, automation, and reporting.docs.oracle.com

には、


  
  非CDBアーキテクチャの非推奨 
  非CDBアーキテクチャはOracle Database 12cリリース1では非推奨で、Oracle Database 12c </summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/8400076836789241115/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2018/02/oracle-cdbnon-cdb_1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/8400076836789241115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/8400076836789241115'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2018/02/oracle-cdbnon-cdb_1.html' title='Oracle 非CDB（Non-CDB）はいつまで使えるのか'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-7259013716904144180</id><published>2018-01-30T00:00:00.000+09:00</published><updated>2018-11-20T10:33:10.534+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blogger"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><title type='text'>リンクカード（ブログカード）を作るブックマークレット</title><summary type="text">リンクの見栄えを良くしたくて、以下のようなリンクカード（ブログカード）を探していました。


外部サービスに依存しない。（サービスの継続性の問題とパフォーマンスの点から）
OGP (Open Graph Protocol) に対応していないサイトへのリンクはimageやdescriptionを無理に表示しない。（関係のない画像やコンテンツが表示されることがあるので）
仕様が開示されている。（カスタマイズ可能）
StackEdit の Markdownで利用可能。（シンプルなHTMLであること）


なかなか良いものが見つからず、&amp;lt;blockquote&amp;gt; で代用したりしていたのですが、以下のサイトを見つけました。

はてな風のブログカードをブックマークレットから作ってみよう！ | 株式会社グランフェアズこんにちは、めぐたんです。

ブログを書いていると、参考記事や過去に書いた</summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/7259013716904144180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2018/01/blogger.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/7259013716904144180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/7259013716904144180'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2018/01/blogger.html' title='リンクカード（ブログカード）を作るブックマークレット'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-5018453033932877848</id><published>2018-01-19T21:47:00.001+09:00</published><updated>2018-11-28T14:48:01.720+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="oo4oからADOへの変換"/><title type='text'>oo4oからADOへの変換 (7) Adapterクラスの作成（ADOでパラメータの名前によるバインドを可能にする）</title><summary type="text">

基礎編
パラメータとストアド・プロシージャ
Edit メソッドとトランザクション
AddNew メソッドとデフォルト列値
Find 系メソッド
カーソル変数（REF CURSOR）
Adapterクラスの作成（ADOでパラメータの名前によるバインドを可能にする） 




移行方針について
oo4o から ADO へ移行する場合、大きく二つの方針が考えられると思います。

既存コードに手に入れず、oo4o のインタフェースを実装した ADO（ADO.NET）のラッパークラスを作成する。
全面的に ADO（ADO.NET）に書き換える。

まず、手っ取り早く (1) を検討したくなります。既存コードをそのまま利用できるのですから。しかし、今後もそのコードを継続して使用する場合、廃止された仕様に縛られ続けることにもなります。また、ADO とoo4o の仕様の差は大きく、 oo4o の</summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/5018453033932877848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2018/01/oo4oado-7-adapterado.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/5018453033932877848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/5018453033932877848'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2018/01/oo4oado-7-adapterado.html' title='oo4oからADOへの変換 (7) Adapterクラスの作成（ADOでパラメータの名前によるバインドを可能にする）'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-410979813841139899</id><published>2018-01-13T16:26:00.001+09:00</published><updated>2018-11-28T18:01:59.640+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><title type='text'>VB.NETとC#からのExcel出力</title><summary type="text">検索すればあちこちで見つかる VB.Net および C# からの Excel 出力ですが、意外と以下の条件を満たすものがないようですので、サンプルコードを掲載しておきます。



条件


 Excel 終了時にきちんと COM の開放が行われ、EXCEL.EXE が終了する。
高速化（2次元配列を使用）している。
書式設定が行われている。
遅延バインディング




参考

Excelファイルを C# と VB.NET で読み込む “正しい” 方法 - Qiita

はじめに

“Excel C#” や “Excel VB.NET” でググった新人プログラマが、古い情報や間違った情報で茨の道を選ばずに済むようにと思って書きました。


この記事は、Windows で Visual Studio を使用したデスクトップアプリケーション開発を想定しています。
VB.NET でも作成可能</summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/410979813841139899/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2018/01/vbnetc-excel.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/410979813841139899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/410979813841139899'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2018/01/vbnetc-excel.html' title='VB.NETとC#からのExcel出力'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-7139688843884518083</id><published>2018-01-09T22:31:00.001+09:00</published><updated>2019-05-07T20:15:58.479+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blogger"/><title type='text'>Why &quot;Don&#39;t track my views for this blog.&quot; does not work in Blogger</title><summary type="text"> 
In the Blogger dashboard, when you click Stats -&amp;gt; Overview -&amp;gt;Manage tracking your own pageviews and check Don&#39;t track my views for this blog., your pageviews are expected to be excluded from the stats. 
But your pageviews might be counted, and the checkbox is unchecked each time you restart the browser.



Causes

When Don&#39;t track my views for this blog. is checked, it invokes the </summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/7139688843884518083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2018/01/why-dont-track-my-views-for-this-blog.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/7139688843884518083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/7139688843884518083'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2018/01/why-dont-track-my-views-for-this-blog.html' title='Why &quot;Don&#39;t track my views for this blog.&quot; does not work in Blogger'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-8C1iXrrlF-N-nEIYJb0GREZZyfMMzCyX5LZDBjOez170RCVKYWcIqBgxjlPvZraSGm-gpT52DFJZ3c2nc-IfmnpoEpfXaUWAyGGfufJZLDmHWAU25EqtabrVlhpjDHBOOeUSXW3zQVI/s72-c/" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-8243439977303144965</id><published>2017-12-26T21:24:00.001+09:00</published><updated>2018-02-06T19:57:25.245+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blogger"/><category scheme="http://www.blogger.com/atom/ns#" term="Breadcrumb"/><title type='text'>Blogger: Sort Breadcrumbs by Label Frequency</title><summary type="text">日本語»

In my previous post, “Breadcrumb with Structured Data for Blogger”, I mentioned that breadcrumbs are listed in alphabetical order, not showing the actual hierarchy. 

If the labels are in a hierarchical (tree) structure,  a label at the upper level is used more often than (or equal to) the labels at lower levels.  So sorting labels by their frequency order, you can show the breadcrumbs in </summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/8243439977303144965/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2017/12/blogger-sort-breadcrumbs-by-label.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/8243439977303144965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/8243439977303144965'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2017/12/blogger-sort-breadcrumbs-by-label.html' title='Blogger: Sort Breadcrumbs by Label Frequency'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-2407648401942353335</id><published>2017-12-26T20:23:00.001+09:00</published><updated>2017-12-26T21:41:21.185+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blogger"/><category scheme="http://www.blogger.com/atom/ns#" term="パンくずリスト"/><title type='text'>Blogger ラベル頻度順パンくずリスト</title><summary type="text">English»

前回の記事「Blogger パンくずリスト（構造化データ対応）の作成」でBlogger のパンくずリストで複数のラベルを表示する場合、アルファベット順になることを書きました。

ラベルがツリー構造になっている場合、上位の階層にあるラベルほど使用頻度が高くなりますので、パンくずリストをラベル頻度順に並べることで「ほぼ」階層順に表示することができます。

アルファベット順のパンくずリストを JavaScript でラベル頻度順に並べ替えてみます。

前提


ラベルガジェットを表示し、「ラベル毎の投稿数」を表示していること。
ラベルガジェットの ID が Label1 であること
パンくずリストの ID が breadcrumb であること
パンくずリストが &amp;lt;li&amp;gt; タグを使用し、構造化データの形式が RDFa であること




参考


ラベルガジェット</summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/2407648401942353335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2017/12/blogger.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/2407648401942353335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/2407648401942353335'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2017/12/blogger.html' title='Blogger ラベル頻度順パンくずリスト'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-831816750238446979</id><published>2017-12-20T23:28:00.000+09:00</published><updated>2019-05-08T11:05:01.152+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blogger"/><category scheme="http://www.blogger.com/atom/ns#" term="Breadcrumb"/><title type='text'>Breadcrumbs with Structured Data for Blogger</title><summary type="text">日本語»

A lot of blogs refer to


  Breadcrumb for Blogger - Blogger Widgets


And the original idea is based on


  Hoctro’s Archived Blog - Trang Lưu Trữ Học Trò: Archived Post: Adding a Breadcrumb Trail to your Blogger Post


Thank you, Hoktro-san,  Aneesh-san. It’s still useful but has the following issues at present.


The structured data type definition is based on the obsolete  </summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/831816750238446979/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2017/12/breadcrumbt-with-structured-data-for.html#comment-form' title='28 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/831816750238446979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/831816750238446979'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2017/12/breadcrumbt-with-structured-data-for.html' title='Breadcrumbs with Structured Data for Blogger'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>28</thr:total></entry><entry><id>tag:blogger.com,1999:blog-354833980852975028.post-3443012694503859679</id><published>2017-12-20T19:33:00.001+09:00</published><updated>2018-01-30T19:02:49.143+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blogger"/><category scheme="http://www.blogger.com/atom/ns#" term="パンくずリスト"/><title type='text'>Blogger パンくずリスト（構造化データ対応）の作成</title><summary type="text">English»

多くのブログで参照されている元記事はこちらです。


  Breadcrumb for Blogger - Blogger Widgets


さらに、その元記事はこちらです。


  Hoctro’s Archived Blog - Trang Lưu Trữ Học Trò: Archived Post: Adding a Breadcrumb Trail to your Blogger Post


Hoctro さん、Aneesh さん、ありがとうございます。 
記事の内容は今でも使えるものなのですが、少々古く、以下の問題があります。


構造化データの定義が schema.org でなく、Data-Vocabulary.org になっている。
一般的にパンくずリストで使われるタグ &amp;lt;ol&amp;gt;&amp;lt;li&amp;gt; を使っていない。


これらの問題を</summary><link rel='replies' type='application/atom+xml' href='http://nkurilog.blogspot.com/feeds/3443012694503859679/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nkurilog.blogspot.com/2017/12/blogger_20.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/3443012694503859679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/354833980852975028/posts/default/3443012694503859679'/><link rel='alternate' type='text/html' href='http://nkurilog.blogspot.com/2017/12/blogger_20.html' title='Blogger パンくずリスト（構造化データ対応）の作成'/><author><name>nkuri</name><uri>http://www.blogger.com/profile/12613972111985690254</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>