<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.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" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0"><id>tag:blogger.com,1999:blog-2174891197290154044</id><updated>2020-12-19T00:59:25.841-08:00</updated><category term="admin" /><category term="tips" /><category term="develop" /><category term="linux" /><category term="mac" /><category term="java" /><category term="shell" /><category term="windows" /><category term="ubuntu" /><category term="chinese" /><category term="javascript" /><category term="python" /><category term="bash" /><category term="china" /><category term="debian" /><category term="fun" /><category term="gwt" /><category term="centos" /><category term="batch script" /><category term="git" /><category term="hardware" /><category term="android" /><category term="eclipse" /><category term="firefox" /><category term="australia" /><category term="mobile" /><category term="blogger" /><category term="css" /><category term="video" /><category term="ssh" /><category term="english" /><category term="maven" /><category term="powershell" /><category term="font" /><category term="free" /><category term="mediaflux" /><category term="sed" /><category term="extjs" /><category term="online" /><category term="tcl" /><category term="iptables" /><category term="javafx" /><category term="vim" /><category term="food" /><category term="string" /><category term="printing" /><category term="xml" /><category term="Housing" /><category term="book" /><category term="dicom" /><category term="html" /><category term="ssl" /><category term="ant" /><category term="google" /><category term="lxde" /><category term="movie" /><category term="mysql" /><category term="tools" /><category term="awk" /><category term="list" /><category term="melbourne" /><category term="network" /><category term="profile" /><category term="security" /><category term="smartgwt" /><category term="thinkpad" /><category term="apache" /><category term="debug" /><category term="education" /><category term="favorite" /><category term="joke" /><category term="type" /><category term="windows mobile" /><category term="antivirus" /><category term="application" /><category term="developer" /><category term="dns" /><category term="gadgets" /><category term="gmail" /><category term="kids" /><category term="lg" /><category term="live" /><category term="memory" /><category term="nx" /><category term="smtp" /><category term="twiki" /><category term="virtualization" /><category term="voip" /><category term="wine" /><category term="word" /><category term="dictionary" /><category term="encryption" /><category term="game" /><category term="gist" /><category term="github" /><category term="http" /><category term="logging" /><category term="math" /><category term="matlab" /><category term="mf60" /><category term="modem" /><category term="music" /><category term="neuroimaging" /><category term="omero" /><category term="openssl" /><category term="regex" /><category term="safari" /><category term="script" /><category term="software" /><category term="sports" /><category term="spotlight" /><category term="threading" /><category term="windows phone" /><category term="zte" /><category term="老电影" /><category term="chess" /><category term="cloud" /><category term="cobol" /><category term="command" /><category term="doc" /><category term="editor" /><category term="file" /><category term="grep" /><category term="html5" /><category term="j2me" /><category term="lambda" /><category term="ldap" /><category term="lock" /><category term="module" /><category term="nfs" /><category term="nomachine" /><category term="novel" /><category term="path" /><category term="pdf" /><category term="php" /><category term="postfix" /><category term="postgresql" /><category term="recipe" /><category term="redhat" /><category term="rsync" /><category term="samba" /><category term="skype" /><category term="static method" /><category term="str" /><category term="synchronized" /><category term="tar" /><category term="vmware" /><category term="xargs" /><category term="xnat" /><category term="zip" /><category term="acer" /><category term="adler32" /><category term="ajax" /><category term="apple" /><category term="applet" /><category term="array" /><category term="aterm" /><category term="aws" /><category term="baby" /><category term="bargain" /><category term="basestring" /><category term="bitsadmin" /><category term="boolean" /><category term="building" /><category term="byte" /><category term="car" /><category term="career" /><category term="certificate" /><category term="checksum" /><category term="china，soccer" /><category term="cifs" /><category term="class method" /><category term="client" /><category term="comprehension" /><category term="concurrency" /><category term="coolpad" /><category term="crc32" /><category term="cron" /><category term="crypto" /><category term="csr" /><category term="cups" /><category term="design patterns" /><category term="dict" /><category term="disk" /><category term="diy" /><category term="dokuwiki" /><category term="dotproject" /><category term="duck typing" /><category term="ecipse" /><category term="email" /><category term="encoding" /><category term="entertainment" /><category term="enum" /><category term="equivalent" /><category term="excel" /><category term="exception" /><category term="expression" /><category term="fluxbox" /><category term="gnome" /><category term="gps" /><category term="graphics" /><category term="group policy" /><category term="grub" /><category term="hex" /><category term="hints" /><category term="hotmail" /><category term="ide" /><category term="imageio" /><category term="import" /><category term="inheritance" /><category term="int" /><category term="integer" /><category term="investment" /><category term="io" /><category term="iterable" /><category term="iterator" /><category term="jai" /><category term="javacc" /><category term="jmap" /><category term="json" /><category term="kindle" /><category term="long" /><category term="lubuntu" /><category term="maintenance" /><category term="mate" /><category term="microsoft" /><category term="misc" /><category term="mplayerx" /><category term="mytardis" /><category term="nifti" /><category term="objective-c" /><category term="onedrive" /><category term="openbox" /><category term="openstack" /><category term="outlook" /><category term="overriding" /><category term="package" /><category term="piano" /><category term="programming" /><category term="proxy" /><category term="pydev" /><category term="quicktime" /><category term="reading" /><category term="rust" /><category term="s3" /><category term="server" /><category term="sfc" /><category term="sip" /><category term="smb" /><category term="sphinx" /><category term="ssd" /><category term="style" /><category term="swing" /><category term="tablet" /><category term="telstra" /><category term="textmate" /><category term="time" /><category term="tomcat" /><category term="tv" /><category term="typescript" /><category term="unicode" /><category term="url" /><category term="utilities" /><category term="vba" /><category term="virtualbox" /><category term="vs code" /><category term="webdav" /><category term="wifi" /><category term="x11" /><category term="x50v" /><category term="yum" /><title type="text">My Tech Notes</title><subtitle type="html" /><link rel="alternate" type="text/html" href="http://notepad2.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default?start-index=26&amp;max-results=25&amp;redirect=false" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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>1452</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/WilsonsNotes" /><feedburner:info uri="wilsonsnotes" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-7257150768066889565</id><published>2020-12-09T22:14:00.003-08:00</published><updated>2020-12-09T22:14:15.495-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="openssl" /><category scheme="http://www.blogger.com/atom/ns#" term="tips" /><title type="text">openssl: request new/renew ssl certificate</title><content type="html">&lt;ul style="text-align: left;"&gt;  &lt;li&gt;Generate certificate request&lt;/li&gt;  &lt;ul&gt;&lt;li&gt;Genreate certificate request and private key:&lt;pre&gt;openssl req -new -config csr.conf -keyout private.key -out server.csr&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Generate certificate request using existing private key:&lt;pre&gt;openssl req -new -config csr.conf -key private.key -out server.csr&lt;/pre&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;li&gt;Submit the cerficate request file to be signed by CA&lt;/li&gt;&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/qltym_ttolM" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/7257150768066889565/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/12/openssl-request-newrenew-ssl-certificate.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/7257150768066889565" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/7257150768066889565" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/qltym_ttolM/openssl-request-newrenew-ssl-certificate.html" title="openssl: request new/renew ssl certificate" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/12/openssl-request-newrenew-ssl-certificate.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-4199202125354444807</id><published>2020-12-09T22:06:00.002-08:00</published><updated>2020-12-09T22:06:18.613-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="openssl" /><category scheme="http://www.blogger.com/atom/ns#" term="tips" /><title type="text">openssl: check certificate expiry</title><content type="html">&lt;pre&gt;openssl x509 -enddate -noout -in server.crt&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/z7vEh2mwZis" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/4199202125354444807/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/12/openssl-check-certificate-expiry.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/4199202125354444807" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/4199202125354444807" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/z7vEh2mwZis/openssl-check-certificate-expiry.html" title="openssl: check certificate expiry" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/12/openssl-check-certificate-expiry.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-2979878851120722817</id><published>2020-12-09T04:40:00.003-08:00</published><updated>2020-12-09T04:40:22.587-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="encryption" /><category scheme="http://www.blogger.com/atom/ns#" term="mac" /><category scheme="http://www.blogger.com/atom/ns#" term="zip" /><title type="text">Create AES256 encrypted zip file on Mac OS</title><content type="html">&lt;ul&gt;  &lt;li&gt;Install p7zip&lt;pre&gt;brew install p7zip&lt;/pre&gt;&lt;/li&gt;  &lt;li&gt;Compress a directory&lt;pre&gt;7za a -tzip '-pPASSWORD' -mem=AES256 data.zip data/&lt;/pre&gt;&lt;/li&gt;&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/sab0lqSVqtU" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/2979878851120722817/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/12/create-aes256-encrypted-zip-file-on-mac.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/2979878851120722817" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/2979878851120722817" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/sab0lqSVqtU/create-aes256-encrypted-zip-file-on-mac.html" title="Create AES256 encrypted zip file on Mac OS" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/12/create-aes256-encrypted-zip-file-on-mac.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-7351122403291854684</id><published>2020-12-08T22:22:00.002-08:00</published><updated>2020-12-09T01:41:43.401-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="script" /><category scheme="http://www.blogger.com/atom/ns#" term="shell" /><title type="text">Find files and set their permissions</title><content type="html">&lt;b&gt;find&lt;/b&gt; files and pipe them to &lt;b&gt;chmod&lt;/b&gt; to set permissions: &lt;pre&gt;&lt;br /&gt;find . -type d -exec chmod 0755 {} \;&lt;br /&gt;find . -type f -exec chmod 0644 {} \;&lt;br /&gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/NQEwGOPPOTQ" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/7351122403291854684/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/12/find-files-and-set-their-permissions.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/7351122403291854684" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/7351122403291854684" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/NQEwGOPPOTQ/find-files-and-set-their-permissions.html" title="Find files and set their permissions" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/12/find-files-and-set-their-permissions.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-902703905199703446</id><published>2020-12-08T14:16:00.000-08:00</published><updated>2020-12-08T14:16:02.958-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mac" /><category scheme="http://www.blogger.com/atom/ns#" term="tips" /><title type="text">MacOS show hidden files and directories</title><content type="html">&lt;ul&gt;  &lt;li&gt;Show hidden files &lt;pre&gt;&lt;br /&gt;defaults write com.apple.finder AppleShowAllFiles True; killall Finder&lt;br /&gt;&lt;/pre&gt;    &lt;/li&gt;  &lt;li&gt;Make hidden files invisible again &lt;pre&gt;&lt;br /&gt;defaults write com.apple.finder AppleShowAllFiles False; killall Finder&lt;br /&gt;&lt;/pre&gt;  &lt;/li&gt;&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/NkyBKQT4ATc" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/902703905199703446/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/12/macos-show-hidden-files-and-directories.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/902703905199703446" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/902703905199703446" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/NkyBKQT4ATc/macos-show-hidden-files-and-directories.html" title="MacOS show hidden files and directories" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/12/macos-show-hidden-files-and-directories.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-6979121887527397781</id><published>2020-11-23T16:43:00.005-08:00</published><updated>2020-11-23T16:43:40.414-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ldap" /><category scheme="http://www.blogger.com/atom/ns#" term="python" /><title type="text">python 3 ldap search example</title><content type="html">&lt;script src="https://gist.github.com/xtman/dcf6bb9db9f0fd00cf2fcfea0af220be.js"&gt;&lt;/script&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/ivNg3uSabw8" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/6979121887527397781/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/11/python-3-ldap-search-example.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/6979121887527397781" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/6979121887527397781" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/ivNg3uSabw8/python-3-ldap-search-example.html" title="python 3 ldap search example" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/11/python-3-ldap-search-example.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-5537877852770742650</id><published>2020-11-03T17:09:00.002-08:00</published><updated>2020-11-03T17:09:32.514-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="grep" /><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="mac" /><title type="text">grep: include lines before and after the matching line</title><content type="html">Include 2 lines before the matching line:&lt;br&gt;&lt;pre&gt;grep -B 2 'keyword' file1&lt;/pre&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Include 2 more lines after the matching line:&lt;br&gt;&lt;pre&gt;grep -A 2 'keyword' file1&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/o4-knNOlwNk" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/5537877852770742650/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/11/grep-include-lines-before-and-after.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/5537877852770742650" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/5537877852770742650" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/o4-knNOlwNk/grep-include-lines-before-and-after.html" title="grep: include lines before and after the matching line" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/11/grep-include-lines-before-and-after.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-1793192606149002842</id><published>2020-10-28T20:08:00.002-07:00</published><updated>2020-10-28T20:08:29.396-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="mac" /><title type="text">Use netcat (nc) to check if remote port is open</title><content type="html">&lt;pre&gt;&lt;br /&gt;nc -vz -G 3 a-remote-host 443&lt;br /&gt;&lt;/pre&gt;-G specifies the connection timeout, 3 seconds in the above example.  &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;h3&gt;see also&lt;/h3&gt;&lt;ul&gt;  &lt;li&gt;&lt;a href="https://stackoverflow.com/questions/18578565/nc-netcat-on-mac-os-x-10-8-4-gets-stuck"&gt;nc (netcat) on Mac OS X 10.8.4 gets stuck&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/n89pEQJ5GVs" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/1793192606149002842/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/10/use-netcat-nc-to-check-if-remote-port.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/1793192606149002842" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/1793192606149002842" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/n89pEQJ5GVs/use-netcat-nc-to-check-if-remote-port.html" title="Use netcat (nc) to check if remote port is open" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/10/use-netcat-nc-to-check-if-remote-port.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-1372663117127841319</id><published>2020-10-09T20:39:00.006-07:00</published><updated>2020-10-09T20:51:19.814-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="firefox" /><title type="text">Firefox: improve page loading speed</title><content type="html">&lt;style&gt;  table, th, td {     border: 1px solid black;     border-collapse: collapse;   } &lt;/style&gt;&lt;table&gt;  &lt;thead&gt;    &lt;tr&gt;      &lt;th&gt;property&lt;/th&gt;      &lt;th&gt;value&lt;/th&gt;    &lt;/tr&gt;  &lt;/thead&gt;  &lt;tbody&gt;    &lt;tr&gt;      &lt;td&gt;network.http.max-persistent-connections-per-server&lt;/td&gt;      &lt;td&gt;10&lt;/td&gt;    &lt;/tr&gt;    &lt;tr&gt;      &lt;td&gt;network.http.max-connections&lt;/td&gt;      &lt;td&gt;256&lt;/td&gt;    &lt;/tr&gt;    &lt;tr&gt;      &lt;td&gt;browser.tab.animate&lt;/td&gt;      &lt;td&gt;false&lt;/td&gt;    &lt;/tr&gt;    &lt;tr&gt;      &lt;td&gt;browser.panorama.animate_zoom&lt;/td&gt;      &lt;td&gt;false&lt;/td&gt;    &lt;/tr&gt;    &lt;tr&gt;      &lt;td&gt;network.dns.disablePrefetch&lt;/td&gt;      &lt;td&gt;true&lt;/td&gt;    &lt;/tr&gt;    &lt;tr&gt;      &lt;td&gt;network.prefetch-next&lt;/td&gt;      &lt;td&gt;false&lt;/td&gt;    &lt;/tr&gt;    &lt;tr&gt;      &lt;td&gt;network.http.speculative-parallel-limit&lt;/td&gt;      &lt;td&gt;0&lt;/td&gt;    &lt;/tr&gt;  &lt;/tbody&gt;&lt;/table&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;h3&gt;see also&lt;/h3&gt;&lt;ul&gt;  &lt;li&gt;&lt;a href="https://www.greengeeks.com/tutorials/article/increase-firefox-page-loading-speed/#:~:text=If%20you%20are%20experiencing%20very,support%E2%80%9D%20and%20click%20Refresh%20Firefox."&gt;How To Increase Firefox Page Loading Speed&lt;/a&gt;&lt;/li&gt;  &lt;li&gt;&lt;a href="https://www.webnots.com/fix-slow-page-loading-issue-in-mozilla-firefox/"&gt;Fix Slow Page Loading Issue in Mozilla Firefox&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/vv67R-O8Cq4" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/1372663117127841319/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/10/firefox-improve-page-loading-speed.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/1372663117127841319" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/1372663117127841319" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/vv67R-O8Cq4/firefox-improve-page-loading-speed.html" title="Firefox: improve page loading speed" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/10/firefox-improve-page-loading-speed.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-6587536104030435397</id><published>2020-10-09T02:26:00.009-07:00</published><updated>2020-11-26T00:14:36.423-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="batch script" /><category scheme="http://www.blogger.com/atom/ns#" term="windows" /><title type="text">Windows Batch Script: pass multiple line string</title><content type="html">&lt;pre&gt;&lt;br /&gt;&lt;br /&gt;set PS=^&lt;br /&gt;Write-Host Line1;^&lt;br /&gt;Write-Host Line2;^&lt;br /&gt;Write-Host Line3&lt;br /&gt;&lt;br /&gt;powershell -NoProfile -Command %PS%&lt;br /&gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/sK97sw9RQMI" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/6587536104030435397/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/10/windows-batch-script-pass-multiple-line.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/6587536104030435397" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/6587536104030435397" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/sK97sw9RQMI/windows-batch-script-pass-multiple-line.html" title="Windows Batch Script: pass multiple line string" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/10/windows-batch-script-pass-multiple-line.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-6197206643996598517</id><published>2020-10-09T02:23:00.004-07:00</published><updated>2020-10-09T02:23:43.635-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="powershell" /><category scheme="http://www.blogger.com/atom/ns#" term="windows" /><title type="text">PowerShell: create directories recursively</title><content type="html">&lt;pre&gt;&lt;br /&gt;New-Item -Path “C:\AAA\BBB\CCC” -Type Directory -Force&lt;br /&gt;&lt;/pre&gt;similar to &lt;code&gt;mkdir -p&lt;/code&gt; on Linux/Mac OS.&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/6XpZvskqyN0" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/6197206643996598517/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/10/powershell-create-directories.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/6197206643996598517" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/6197206643996598517" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/6XpZvskqyN0/powershell-create-directories.html" title="PowerShell: create directories recursively" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/10/powershell-create-directories.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-7744890722543891900</id><published>2020-10-09T02:21:00.002-07:00</published><updated>2020-10-09T02:21:44.395-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="powershell" /><category scheme="http://www.blogger.com/atom/ns#" term="windows" /><title type="text">PowerShell: write text to file</title><content type="html">&lt;pre&gt;&lt;br /&gt;Out-File -FilePath .\text.txt -InputObject 'Hello' -Encoding utf8&lt;br /&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;h3&gt;see also&lt;/h3&gt;&lt;ul&gt;  &lt;li&gt;&lt;a href="https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/out-file?view=powershell-7"&gt;PowerShell: Out-File&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/wUifJkww8LA" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/7744890722543891900/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/10/powershell-write-text-to-file.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/7744890722543891900" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/7744890722543891900" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/wUifJkww8LA/powershell-write-text-to-file.html" title="PowerShell: write text to file" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/10/powershell-write-text-to-file.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-5763506863526165650</id><published>2020-10-09T02:17:00.004-07:00</published><updated>2020-10-09T02:17:59.031-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="powershell" /><category scheme="http://www.blogger.com/atom/ns#" term="windows" /><title type="text">PowerShell: single quote vs. double quote</title><content type="html">&lt;ul&gt;&lt;li&gt;Single quotes: &lt;pre&gt;&lt;br /&gt;$i = 5&lt;br /&gt;'The value of $i is $i.'&lt;br /&gt;&lt;/pre&gt;&lt;b&gt;Output:&lt;/b&gt;&lt;pre&gt;&lt;br /&gt;The value of $i is $i.&lt;br /&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Double quotes:&lt;br&gt;&lt;pre&gt;&lt;br /&gt;$i = 5&lt;br /&gt;"The value of $i is $i."&lt;br /&gt;&lt;/pre&gt;&lt;b&gt;Output:&lt;/b&gt;&lt;pre&gt;&lt;br /&gt;The value of 5 is 5.&lt;br /&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/uzq27cUsgiM" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/5763506863526165650/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/10/powershell-single-quote-vs-double-quote.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/5763506863526165650" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/5763506863526165650" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/uzq27cUsgiM/powershell-single-quote-vs-double-quote.html" title="PowerShell: single quote vs. double quote" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/10/powershell-single-quote-vs-double-quote.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-7821710713111637198</id><published>2020-10-09T02:04:00.002-07:00</published><updated>2020-10-09T02:04:08.367-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="batch script" /><category scheme="http://www.blogger.com/atom/ns#" term="windows" /><title type="text">Windows Batch Script: PAUSE with custom message</title><content type="html">&lt;pre&gt;&lt;br /&gt;@echo off&lt;br /&gt;&lt;br /&gt;echo Custom Message&lt;br /&gt;pause&gt;NUL&lt;br /&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;h3&gt;see also&lt;/h3&gt;&lt;ul&gt;  &lt;li&gt;&lt;a href="https://stackoverflow.com/questions/17559738/changing-pause-message"&gt;Changing Pause Message&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt; &lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/C3dCMVyLZNQ" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/7821710713111637198/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/10/windows-batch-script-pause-with-custom.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/7821710713111637198" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/7821710713111637198" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/C3dCMVyLZNQ/windows-batch-script-pause-with-custom.html" title="Windows Batch Script: PAUSE with custom message" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/10/windows-batch-script-pause-with-custom.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-6440170958156927580</id><published>2020-10-07T04:39:00.005-07:00</published><updated>2020-10-07T04:39:35.207-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="develop" /><category scheme="http://www.blogger.com/atom/ns#" term="java" /><category scheme="http://www.blogger.com/atom/ns#" term="logging" /><title type="text">log4j2: conditional appender using routes</title><content type="html">&lt;pre&gt;&amp;lt;?xml version="1.0"?&amp;gt;&lt;br /&gt;&amp;lt;Configuration status="INFO"&amp;gt;&lt;br /&gt;  &amp;lt;Appenders&amp;gt;&lt;br /&gt;    &amp;lt;Console name="SYS_OUT" target="SYSTEM_OUT" /&amp;gt;&lt;br /&gt;    &amp;lt;Console name="SYS_ERR" target="SYSTEM_ERR" /&amp;gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;Routing name="Router"&amp;gt;&lt;br /&gt;      &amp;lt;Routes pattern="$${env:STREAM_TO:-OUT}"&amp;gt;&lt;br /&gt;        &amp;lt;Route ref="SYS_OUT" key="OUT" /&amp;gt;&lt;br /&gt;        &amp;lt;Route ref="SYS_ERR" key="ERR" /&amp;gt;&lt;br /&gt;      &amp;lt;/Routes&amp;gt;&lt;br /&gt;    &amp;lt;/Routing&amp;gt;&lt;br /&gt;  &amp;lt;/Appenders&amp;gt;&lt;br /&gt;&lt;br /&gt;  &amp;lt;Loggers&amp;gt;&lt;br /&gt;    &amp;lt;Root level="INFO"&amp;gt;&lt;br /&gt;      &amp;lt;AppenderRef ref="Router" /&amp;gt;&lt;br /&gt;    &amp;lt;/Root&amp;gt;&lt;br /&gt;  &amp;lt;/Loggers&amp;gt;&lt;br /&gt;&amp;lt;/Configuration&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;h3&gt;see also&lt;/h3&gt;&lt;ul&gt;  &lt;li&gt;&lt;a href="http://logging.apache.org/log4j/2.x/manual/configuration.html#XML"&gt;log4j2 configuration&lt;/a&gt;&lt;/li&gt;  &lt;li&gt;&lt;a href="https://rmannibucau.metawerx.net/post/tip-log4j2-conditional-appender"&gt;Log4j2: how to get a conditional appender without any code&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/GOT9qGkdXRY" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/6440170958156927580/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/10/log4j2-conditional-appender-using-routes.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/6440170958156927580" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/6440170958156927580" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/GOT9qGkdXRY/log4j2-conditional-appender-using-routes.html" title="log4j2: conditional appender using routes" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/10/log4j2-conditional-appender-using-routes.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-4140871349499141275</id><published>2020-10-07T04:29:00.005-07:00</published><updated>2020-10-07T15:16:49.332-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="develop" /><category scheme="http://www.blogger.com/atom/ns#" term="java" /><category scheme="http://www.blogger.com/atom/ns#" term="maven" /><title type="text">Maven: conditionally execute plugins using profiles</title><content type="html">&lt;pre&gt;&amp;lt;project&amp;gt;&lt;br /&gt;&amp;lt;properties&amp;gt;...&amp;lt;/properties&amp;gt;&lt;br /&gt;&amp;lt;repositories&amp;gt;...&amp;lt;/repositories&amp;gt;&lt;br /&gt;&amp;lt;dependencies&amp;gt;...&amp;lt;/dependencies&amp;gt;&lt;br /&gt;&amp;lt;build&amp;gt;&lt;br /&gt;  &amp;lt;plugins&amp;gt;...&amp;lt;/plugins&amp;gt;&lt;br /&gt;&amp;lt;/build&amp;gt;&lt;br /&gt;&amp;lt;profiles&amp;gt;&lt;br /&gt;  &amp;lt;profile&amp;gt;&lt;br /&gt;    &amp;lt;id&amp;gt;windows&amp;lt;/id&amp;gt;&lt;br /&gt;    &amp;lt;activation&amp;gt;&lt;br /&gt;      &amp;lt;os&amp;gt;&lt;br /&gt;        &amp;lt;name&amp;gt;Windows XP&amp;lt;/name&amp;gt;&lt;br /&gt;        &amp;lt;family&amp;gt;Windows&amp;lt;/family&amp;gt;&lt;br /&gt;        &amp;lt;arch&amp;gt;x86&amp;lt;/arch&amp;gt;&lt;br /&gt;        &amp;lt;version&amp;gt;5.1.2600&amp;lt;/version&amp;gt;&lt;br /&gt;      &amp;lt;/os&amp;gt;&lt;br /&gt;    &amp;lt;/activation&amp;gt;&lt;br /&gt;    &amp;lt;properties&amp;gt;...&amp;lt;/properties&amp;gt;&lt;br /&gt;    &amp;lt;repositories&amp;gt;...&amp;lt;/repositories&amp;gt;&lt;br /&gt;    &amp;lt;dependencies&amp;gt;...&amp;lt;/dependencies&amp;gt;&lt;br /&gt;    &amp;lt;build&amp;gt;&lt;br /&gt;      &amp;lt;plugins&amp;gt;...&amp;lt;/plugins&amp;gt;&lt;br /&gt;    &amp;lt;/build&amp;gt;&lt;br /&gt;  &amp;lt;/profile&amp;gt;&lt;br /&gt;&amp;lt;/profiles&amp;gt;&lt;br /&gt;&amp;lt;/project&amp;gt;&lt;br /&gt;&lt;/pre&gt;To activate the profile manually:&lt;br /&gt;&lt;pre&gt;mvn package -p PROFILE_ID&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;see also&lt;/h3&gt;&lt;ul&gt;  &lt;li&gt;&lt;a href="http://maven.apache.org/guides/introduction/introduction-to-profiles.html" rel="nofollow" target="_blank"&gt;Introduction to Build Profiles&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/sdKxmPQDVAs" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/4140871349499141275/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/10/maven-conditionally-execute-plugins.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/4140871349499141275" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/4140871349499141275" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/sdKxmPQDVAs/maven-conditionally-execute-plugins.html" title="Maven: conditionally execute plugins using profiles" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/10/maven-conditionally-execute-plugins.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-1063068842445342408</id><published>2020-10-06T17:16:00.000-07:00</published><updated>2020-10-06T17:16:01.296-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="admin" /><category scheme="http://www.blogger.com/atom/ns#" term="develop" /><category scheme="http://www.blogger.com/atom/ns#" term="smtp" /><title type="text">Email From, Reply-To and Return-Path</title><content type="html">&lt;b&gt;From&lt;/b&gt; and &lt;b&gt;Reply-To&lt;/b&gt; are originator fields of the email. &lt;br&gt;&lt;b&gt;Return-Path&lt;/b&gt; is created by the receiver NOT the sender. It is derived from the SMTP &lt;b&gt;MAIL FROM&lt;/b&gt; command used to deliver the message. This address need not to have anything in common with the &lt;b&gt;From&lt;/b&gt; address header within the message, and designates where the message should be sent to in the event of a delivery failure, i.e. exactly what you want the VERP address for.&lt;br&gt;&lt;br&gt;&lt;b&gt;According to RFC5321 section 4.4:&lt;/b&gt; &lt;pre&gt;A message-originating SMTP system SHOULD NOT send a message that already contains a Return-path header field.&lt;/pre&gt; &lt;br&gt;&lt;br&gt;&lt;h3&gt;see also&lt;/h3&gt;&lt;ul&gt;  &lt;li&gt;&lt;a href="https://stackoverflow.com/a/1247155"&gt;What is the behavior difference between return-path, reply-to and from?&lt;/a&gt;&lt;/li&gt;  &lt;li&gt;&lt;a href="Does%20Gmail%20not%20allow%20sender%20to%20set%20a%20return%20path%20value%20to%20receive%20bounce%20messages?"&gt;Does Gmail not allow sender to set a return path value to receive bounce messages?&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/98GXeaUAI0I" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/1063068842445342408/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/10/email-from-reply-to-and-return-path.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/1063068842445342408" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/1063068842445342408" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/98GXeaUAI0I/email-from-reply-to-and-return-path.html" title="Email From, Reply-To and Return-Path" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/10/email-from-reply-to-and-return-path.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-1800938527081663279</id><published>2020-10-06T16:57:00.005-07:00</published><updated>2020-10-06T17:16:43.241-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="admin" /><category scheme="http://www.blogger.com/atom/ns#" term="develop" /><category scheme="http://www.blogger.com/atom/ns#" term="smtp" /><title type="text">Originator fields of email: Sender, From, Reply-To</title><content type="html">&lt;ul&gt;  &lt;li&gt;&lt;b&gt;From&lt;/b&gt;: The "From:" field specifies the author(s) of the message, that is, the mailbox(es) of the person(s) or system(s) responsible for the writing of the message.&lt;/li&gt;  &lt;li&gt;&lt;b&gt;Sender&lt;/b&gt;:The "Sender:" field specifies the mailbox of the agent responsible for the actual transmission of the message.  For example, if a secretary were to send a message for another person, the mailbox of the secretary would appear in the "Sender:" field and the mailbox of the actual author would appear in the "From:" field.  If the originator of the message can be indicated by a single mailbox and the author and transmitter are identical, the "Sender:" field SHOULD NOT be used.  Otherwise, both fields SHOULD appear.&lt;/li&gt;  &lt;li&gt;&lt;b&gt;Reply-To&lt;/b&gt;: The originator fields also provide the information required when replying to a message.  When the "Reply-To:" field is present, it indicates the address(es) to which the author of the message suggests that replies be sent.  In the absence of the "Reply-To:" field, replies SHOULD by default be sent to the mailbox(es) specified in the "From:" field unless otherwise specified by the person composing the reply.&lt;/li&gt;  &lt;li&gt;&lt;b&gt;Return-Path&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;h3&gt;see also&lt;/h3&gt;&lt;ul&gt;  &lt;li&gt;&lt;a href="https://tools.ietf.org/html/rfc5322#section-3.6.2" target="_blank" rel="nofollow"&gt;RFC5322 Section 3.6.2: Originator Fields&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/rqTxdSgSYho" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/1800938527081663279/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/10/originator-fields-of-email-sender-from.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/1800938527081663279" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/1800938527081663279" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/rqTxdSgSYho/originator-fields-of-email-sender-from.html" title="Originator fields of email: Sender, From, Reply-To" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/10/originator-fields-of-email-sender-from.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-6682656023263100549</id><published>2020-10-04T23:14:00.005-07:00</published><updated>2020-10-04T23:19:00.920-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="develop" /><category scheme="http://www.blogger.com/atom/ns#" term="java" /><title type="text">Java: try with  AutoCloseable resources </title><content type="html">&lt;h3&gt;1. Multiple AutoCloseable resources&lt;h3&gt;  &lt;pre&gt;&lt;br /&gt;  try (InputStream in = getInputStream(); OutputStream out = getOutputStream()) {&lt;br /&gt;      ... ...&lt;br /&gt;  }&lt;br /&gt;  &lt;/pre&gt;  The resources are closed in the reverse order of declaration. &lt;br&gt;&lt;br&gt;&lt;br&gt; &lt;h3&gt;2. Resource leaking caused by nested constructors&lt;/h3&gt;There is possible resource leaking issue for the code below:&lt;br&gt;  &lt;pre&gt;&lt;br /&gt;  try(InputStream in = new MyFilterInputStream(new BufferedInputStream(new FileInputStream("/tmp/test.file")))) {&lt;br /&gt;      ... ...&lt;br /&gt;  }&lt;br /&gt;  &lt;/pre&gt;Because any checked exception from the chain of the constructors can cause resource failing to close. The code below with multiple declared AutoCloseables should be used:&lt;br&gt;  &lt;pre&gt;&lt;br /&gt;  try(FileInputStream fis = new FileInputStream("/tmp/test.file");&lt;br /&gt;      BufferedInputStream bis = new BufferedInputStream(fis);&lt;br /&gt;      MyFilterInputStream mfis = new MyFilterInputStream(bis)) {&lt;br /&gt;      ... ...&lt;br /&gt;  }&lt;br /&gt;  &lt;/pre&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;h3&gt;3. What will happen if the AutoCloseable is null&lt;/h3&gt;  &lt;a href="https://docs.oracle.com/javase/specs/jls/se8/html/jls-14.html#jls-14.20.3"&gt;A resource is closed only if it initialized to a non-null value.&lt;/a&gt; So the code works without having to worry about NPE when in is null.&lt;br&gt;  &lt;pre&gt;&lt;br /&gt;  try(InputStream in = createNew==true? createInputStream(): null) {&lt;br /&gt;      if(in==null) {&lt;br /&gt;          ... ...&lt;br /&gt;      }&lt;br /&gt;  }&lt;br /&gt;  &lt;/pre&gt;     &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;  &lt;h3&gt;see also&lt;/h3&gt;  &lt;ul&gt;    &lt;li&gt;&lt;a href="https://stackoverflow.com/questions/12552863/correct-idiom-for-managing-multiple-chained-resources-in-try-with-resources-bloc" target="_blank" rel="nofollow"&gt;Correct idiom for managing multiple chained resources in try-with-resources block?&lt;/a&gt;&lt;/li&gt;  &lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/cycP-DTMAkE" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/6682656023263100549/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/10/java-try-with-autocloseable-resources.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/6682656023263100549" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/6682656023263100549" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/cycP-DTMAkE/java-try-with-autocloseable-resources.html" title="Java: try with  AutoCloseable resources " /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/10/java-try-with-autocloseable-resources.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-3924722754025588760</id><published>2020-09-29T20:52:00.000-07:00</published><updated>2020-09-29T20:52:07.842-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="admin" /><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><title type="text">Count the number of symbolic links within a directory</title><content type="html">&lt;pre&gt;&lt;br /&gt;find folder/ -type l | wc -l&lt;br /&gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/dSYhIp30zEM" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/3924722754025588760/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/09/count-number-of-symbolic-links-within.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/3924722754025588760" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/3924722754025588760" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/dSYhIp30zEM/count-number-of-symbolic-links-within.html" title="Count the number of symbolic links within a directory" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/09/count-number-of-symbolic-links-within.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-1818252836824926801</id><published>2020-09-29T18:20:00.004-07:00</published><updated>2020-09-29T19:03:58.382-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="powershell" /><category scheme="http://www.blogger.com/atom/ns#" term="windows" /><title type="text">Powershell: compare two directories including their descendants </title><content type="html">&lt;ul&gt;  &lt;li&gt; create catalog for the source directory: &lt;pre&gt;&lt;br /&gt;New-FileCatalog -Path source -CatalogFilePath source.cat -CatalogVersion 2.0&lt;br /&gt;&lt;/pre&gt;  &lt;/li&gt;  &lt;li&gt; test the destination directory against the source catalog: &lt;pre&gt;&lt;br /&gt;Test-FileCatalog -Path destination -CatalogFilePath source.cat&lt;br /&gt;&lt;/pre&gt;  &lt;/li&gt;&lt;/ul&gt;&lt;br&gt;&lt;br&gt;Both &lt;b&gt;New-FileCatalog&lt;/b&gt; and &lt;b&gt;Test-FileCatalog&lt;/b&gt; cmdlets only work in PowerShell 5.1 and later, if you are on Windows 7 or 8.1, follow &lt;a href="https://docs.microsoft.com/en-us/powershell/scripting/windows-powershell/install/installing-windows-powershell?view=powershell-7" target="_blank" rel="nofollow"&gt;the link to upgrade your PowerShell&lt;/a&gt;. &lt;br&gt;&lt;br&gt;&lt;h3&gt;see also&lt;/h3&gt;&lt;ul&gt;  &lt;li&gt;&lt;a href="https://www.nextofwindows.com/how-to-make-sure-the-files-you-copied-are-the-same-as-original" target="_blank" rel="nofollow"&gt;How To Make Sure The Files You Copied are the Same as Original&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/rZK4Mf8lS7E" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/1818252836824926801/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/09/powershell-compare-two-directories.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/1818252836824926801" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/1818252836824926801" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/rZK4Mf8lS7E/powershell-compare-two-directories.html" title="Powershell: compare two directories including their descendants " /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/09/powershell-compare-two-directories.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-235791840273571924</id><published>2020-09-28T05:03:00.001-07:00</published><updated>2020-09-28T05:04:08.241-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash" /><category scheme="http://www.blogger.com/atom/ns#" term="shell" /><title type="text">Bash: check if two paths refer to the same file</title><content type="html">&lt;code&gt;file1 -ef file2&lt;/code&gt;&lt;br&gt; True if file1 and file2 refer to the same device and inode numbers. &lt;br&gt;&lt;pre&gt;&lt;br /&gt;if [[ "$HOME/Downloads/file1" -ef "Downloads/file1" ]]; then&lt;br /&gt;    echo "Same file"&lt;br /&gt;fi&lt;br /&gt;&lt;/pre&gt; &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;h3&gt;see also&lt;/h3&gt;&lt;ul&gt;  &lt;li&gt;&lt;a href="https://www.gnu.org/software/bash/manual/html_node/Bash-Conditional-Expressions.html" target="_blank" rel="nofollow"&gt;Bash conditional expressions&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/oqnjM5NvbDc" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/235791840273571924/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/09/bash-check-if-two-paths-refer-to-same.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/235791840273571924" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/235791840273571924" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/oqnjM5NvbDc/bash-check-if-two-paths-refer-to-same.html" title="Bash: check if two paths refer to the same file" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/09/bash-check-if-two-paths-refer-to-same.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-363685125858090113</id><published>2020-09-25T00:21:00.005-07:00</published><updated>2020-09-29T18:23:34.332-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="powershell" /><category scheme="http://www.blogger.com/atom/ns#" term="windows" /><title type="text">PowerShell: execute a .msi installer</title><content type="html">&lt;pre&gt;&lt;br /&gt;$MSI=AppInst.msi&lt;br /&gt;$LOG=AppInst.log&lt;br /&gt;$MSIArguments = @(&lt;br /&gt;    "/i"&lt;br /&gt;    $MSI&lt;br /&gt;    "/qn"&lt;br /&gt;    "/norestart"&lt;br /&gt;    "/L*v"&lt;br /&gt;    $LOG&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;Start-Process "msiexec.exe" -ArgumentList $MSIArguments -Wait -NoNewWindow&lt;br /&gt;&lt;/pre&gt; &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;h3&gt;see also&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://powershellexplained.com/2016-10-21-powershell-installing-msi-files/" target="_blank"&gt;Powershell: Installing MSI files&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/PSFzAJ5s6ic" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/363685125858090113/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/09/powershell-execute-msi-installer.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/363685125858090113" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/363685125858090113" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/PSFzAJ5s6ic/powershell-execute-msi-installer.html" title="PowerShell: execute a .msi installer" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/09/powershell-execute-msi-installer.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-7573268915722804586</id><published>2020-09-23T21:51:00.002-07:00</published><updated>2020-09-23T21:51:37.258-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="microsoft" /><category scheme="http://www.blogger.com/atom/ns#" term="onedrive" /><title type="text">Microsoft OneDrive: get direct download link</title><content type="html">Simply append &lt;code&gt;&amp;amp;download=1&lt;/code&gt; to the link. &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;h3&gt;see also&lt;/h3&gt;&lt;ul&gt;  &lt;li&gt;&lt;a href="https://techcommunity.microsoft.com/t5/onedrive-for-business/get-direct-download-link-of-a-file-in-onedrive-for-business/m-p/149766" target="_blank" rel="nofollow"&gt;Get direct download link of a file in OneDrive for Business&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/vVPOwNFgEwk" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/7573268915722804586/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/09/microsoft-onedrive-get-direct-download.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/7573268915722804586" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/7573268915722804586" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/vVPOwNFgEwk/microsoft-onedrive-get-direct-download.html" title="Microsoft OneDrive: get direct download link" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/09/microsoft-onedrive-get-direct-download.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-2174891197290154044.post-3601072871184957167</id><published>2020-09-23T19:13:00.005-07:00</published><updated>2020-09-23T19:13:38.011-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="powershell" /><category scheme="http://www.blogger.com/atom/ns#" term="windows" /><title type="text">PowerShell: show pop up dialog</title><content type="html">&lt;pre&gt;&lt;br /&gt;Add-Type -AssemblyName PresentationCore,PresentationFramework&lt;br /&gt;$ButtonType = [System.Windows.MessageBoxButton]::YesNo&lt;br /&gt;$MessageIcon = [System.Windows.MessageBoxImage]::Question&lt;br /&gt;$MessageBody = "Are you sure you want to proceed?"&lt;br /&gt;$MessageTitle = "Confirm"&lt;br /&gt;&lt;br /&gt;$Result = [System.Windows.MessageBox]::Show($MessageBody,$MessageTitle,$ButtonType,$MessageIcon)&lt;br /&gt;&lt;br /&gt;Write-Host "Your choice is $Result"&lt;br /&gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/WilsonsNotes/~4/-Rch4ECCENY" height="1" width="1" alt=""/&gt;</content><link rel="replies" type="application/atom+xml" href="http://notepad2.blogspot.com/feeds/3601072871184957167/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://notepad2.blogspot.com/2020/09/powershell-show-pop-up-dialog.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/3601072871184957167" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2174891197290154044/posts/default/3601072871184957167" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WilsonsNotes/~3/-Rch4ECCENY/powershell-show-pop-up-dialog.html" title="PowerShell: show pop up dialog" /><author><name>WXL</name><uri>http://www.blogger.com/profile/18374533961873126421</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><feedburner:origLink>http://notepad2.blogspot.com/2020/09/powershell-show-pop-up-dialog.html</feedburner:origLink></entry></feed>
