Skip to content

Commit d163b92

Browse files
committed
Site updated: 2018-01-07 08:26:06
1 parent 56bf73d commit d163b92

File tree

9 files changed

+45
-45
lines changed

9 files changed

+45
-45
lines changed

2014/10/28/关于Java中转换机制整理/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@
9090
<meta property="og:url" content="https://blog.hyhcoder.top/2014/10/28/关于Java中转换机制整理/index.html">
9191
<meta property="og:site_name" content="hyhcoder的博客">
9292
<meta property="og:description" content="关于Java中转换机制整理这两天在会看think in java, 顺便整理一些东西; 下面是最基本的数据类型比较: 说明几点:1 . 也可以分为两大类:boolean类型和数值类型(主要为了数据转换时用) 注意boolean不能与其他类型转换,把boolean赋予一个int等类型是不可以的 2 . String字符串并不是基本数据类型,字符串是一个类,就是说是一个引用数据类型。3 . 若还需">
93-
<meta property="og:image" content="http://omwycd607.bkt.clouddn.com/17-3-26/94101325-file_1490513405075_15bf5.gif">
94-
<meta property="og:image" content="http://omwycd607.bkt.clouddn.com/17-3-26/56836039-file_1490513440333_7802.png">
95-
<meta property="og:updated_time" content="2017-11-04T09:50:57.922Z">
93+
<meta property="og:image" content="http://img.hyhcoder.top/17-3-26/94101325-file_1490513405075_15bf5.gif">
94+
<meta property="og:image" content="http://img.hyhcoder.top/17-3-26/56836039-file_1490513440333_7802.png">
95+
<meta property="og:updated_time" content="2018-01-07T00:20:09.177Z">
9696
<meta name="twitter:card" content="summary">
9797
<meta name="twitter:title" content="关于Java中转换机制整理">
9898
<meta name="twitter:description" content="关于Java中转换机制整理这两天在会看think in java, 顺便整理一些东西; 下面是最基本的数据类型比较: 说明几点:1 . 也可以分为两大类:boolean类型和数值类型(主要为了数据转换时用) 注意boolean不能与其他类型转换,把boolean赋予一个int等类型是不可以的 2 . String字符串并不是基本数据类型,字符串是一个类,就是说是一个引用数据类型。3 . 若还需">
99-
<meta name="twitter:image" content="http://omwycd607.bkt.clouddn.com/17-3-26/94101325-file_1490513405075_15bf5.gif">
99+
<meta name="twitter:image" content="http://img.hyhcoder.top/17-3-26/94101325-file_1490513405075_15bf5.gif">
100100

101101

102102

@@ -381,15 +381,15 @@ <h1 class="post-title" itemprop="name headline">关于Java中转换机制整理<
381381

382382

383383
<h1 id="关于Java中转换机制整理"><a href="#关于Java中转换机制整理" class="headerlink" title="关于Java中转换机制整理"></a>关于Java中转换机制整理</h1><p>这两天在会看think in java, 顺便整理一些东西;</p>
384-
<p>下面是最基本的数据类型比较:<br><img src="http://omwycd607.bkt.clouddn.com/17-3-26/94101325-file_1490513405075_15bf5.gif" alt=""></p>
384+
<p>下面是最基本的数据类型比较:<br><img src="http://img.hyhcoder.top/17-3-26/94101325-file_1490513405075_15bf5.gif" alt=""></p>
385385
<p>说明几点:<br>1 . 也可以分为两大类:boolean类型和数值类型(主要为了数据转换时用)</p>
386386
<ul>
387387
<li>注意boolean不能与其他类型转换,把boolean赋予一个int等类型是不可以的</li>
388388
</ul>
389389
<p>2 . String字符串并不是基本数据类型,字符串是一个类,就是说是一个引用数据类型。<br>3 . 若还需要用更高精度的浮点数,可以考虑使用BigDecimal类。<br>4 . Java提供了三个特殊的浮点数值:正无穷大、负无穷大和非数,用于表示溢出和出错。<br>5 . 例如使用一个正浮点数除以0将得到正无穷大(POSITIVE_INFINITY);负浮点数除以0得到负无穷大(NEGATIVE_INFINITY)。0.0除以0.0或对一个负数开方得到一个非数(NaN)。(都属于Double或Float包装类)<br>6 . 所有正无穷大数值相等,所有负无穷大数值都是相等;而NaN不与任何数值相等。</p>
390390
<h3 id="1-基本数值型类型的自动类型转换"><a href="#1-基本数值型类型的自动类型转换" class="headerlink" title="1.基本数值型类型的自动类型转换"></a>1.基本数值型类型的自动类型转换</h3><p>这种很好理解,就是在基本类型中(boolean除外),可以系统自动转换把范围小的直接赋予范围大的变量。</p>
391391
<ul>
392-
<li>一般是实行如下转换,不用特别标记:<br><img src="http://omwycd607.bkt.clouddn.com/17-3-26/56836039-file_1490513440333_7802.png" alt=""></li>
392+
<li>一般是实行如下转换,不用特别标记:<br><img src="http://img.hyhcoder.top/17-3-26/56836039-file_1490513440333_7802.png" alt=""></li>
393393
</ul>
394394
<figure class="highlight java"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div></pre></td><td class="code"><pre><div class="line"><span class="keyword">public</span> <span class="class"><span class="keyword">class</span> <span class="title">AutoConversion</span> </span>&#123;</div><div class="line"> <span class="function"><span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title">main</span><span class="params">(String[] args)</span> </span>&#123;</div><div class="line"> <span class="keyword">int</span> a = <span class="number">6</span>;</div><div class="line"> <span class="keyword">float</span> f = a;<span class="comment">//int可以自动转为float</span></div><div class="line"> </div><div class="line"> <span class="keyword">byte</span> b = <span class="number">9</span>;</div><div class="line"> <span class="keyword">char</span> c = b;<span class="comment">//出错,byte不能转为char型</span></div><div class="line"> <span class="keyword">double</span> d = b;<span class="comment">//byte 可以转为double</span></div><div class="line"> </div><div class="line"> &#125;</div><div class="line"> &#125;</div></pre></td></tr></table></figure>
395395
<p><strong>PS:</strong>有一种比较特殊的自动类型转换,就是把基本类型(boolean也行)和一个空字符连接起来,可以形成对应的字符串。</p>

2015/09/09/解决-bin-bash-M-bad-interpreter-No-such-file-or-directory/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@
8989
<meta property="og:url" content="https://blog.hyhcoder.top/2015/09/09/解决-bin-bash-M-bad-interpreter-No-such-file-or-directory/index.html">
9090
<meta property="og:site_name" content="hyhcoder的博客">
9191
<meta property="og:description" content="今天编译了一个程序,然后上传到服务器运行时,居然报了以下错误1/bin/bash^M: bad interpreter: No such file or directory&amp;apos; 查阅资料, 可以得知是因为linux和windows对换行符理解的不同所导致的,解决很简单;">
92-
<meta property="og:image" content="http://omwycd607.bkt.clouddn.com/17-4-9/99388935-file_1491743658921_72a3.png">
93-
<meta property="og:image" content="http://omwycd607.bkt.clouddn.com/17-4-9/44570419-file_1491743952413_246c.png">
94-
<meta property="og:updated_time" content="2017-11-05T09:50:57.537Z">
92+
<meta property="og:image" content="http://img.hyhcoder.top/17-4-9/99388935-file_1491743658921_72a3.png">
93+
<meta property="og:image" content="http://img.hyhcoder.top/17-4-9/44570419-file_1491743952413_246c.png">
94+
<meta property="og:updated_time" content="2018-01-07T00:22:22.488Z">
9595
<meta name="twitter:card" content="summary">
9696
<meta name="twitter:title" content="解决&#x2F;bin&#x2F;bash^M: bad interpreter: No such file or directory">
9797
<meta name="twitter:description" content="今天编译了一个程序,然后上传到服务器运行时,居然报了以下错误1/bin/bash^M: bad interpreter: No such file or directory&amp;apos; 查阅资料, 可以得知是因为linux和windows对换行符理解的不同所导致的,解决很简单;">
98-
<meta name="twitter:image" content="http://omwycd607.bkt.clouddn.com/17-4-9/99388935-file_1491743658921_72a3.png">
98+
<meta name="twitter:image" content="http://img.hyhcoder.top/17-4-9/99388935-file_1491743658921_72a3.png">
9999

100100

101101

@@ -393,9 +393,9 @@ <h3 id="解决方法"><a href="#解决方法" class="headerlink" title="解决
393393
<h3 id="从根本解决"><a href="#从根本解决" class="headerlink" title="从根本解决"></a>从根本解决</h3><p>使用上面的命令的确解决了该脚本无法运行的错误, 但是不可能让我每次编译后再在linux上执行转换命令吧, 这个不科学;</p>
394394
<p>继续探究, 发现我们可以在Eclipse上设置换行符的模式为unix, 这就可以避免我们的文件在unix运行的尴尬了;</p>
395395
<ol>
396-
<li><p>设置<br><img src="http://omwycd607.bkt.clouddn.com/17-4-9/99388935-file_1491743658921_72a3.png" alt="enter image description here"></p>
396+
<li><p>设置<br><img src="http://img.hyhcoder.top/17-4-9/99388935-file_1491743658921_72a3.png" alt="enter image description here"></p>
397397
</li>
398-
<li><p>该设置只是对新建的文件有效, 还需要对之前的文件进行转换;<br><img src="http://omwycd607.bkt.clouddn.com/17-4-9/44570419-file_1491743952413_246c.png" alt="enter image description here"></p>
398+
<li><p>该设置只是对新建的文件有效, 还需要对之前的文件进行转换;<br><img src="http://img.hyhcoder.top/17-4-9/44570419-file_1491743952413_246c.png" alt="enter image description here"></p>
399399
</li>
400400
<li><p>至此,该问题全部解决</p>
401401
</li>

2016/01/09/JSON-JSONArray-Map一些总结/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@
8989
<meta property="og:url" content="https://blog.hyhcoder.top/2016/01/09/JSON-JSONArray-Map一些总结/index.html">
9090
<meta property="og:site_name" content="hyhcoder的博客">
9191
<meta property="og:description" content="JSON是目前前后端交互非常常用的一种格式, JSON其实是个总称,里面最小单元是JSONObject,就是由一连串键值对所组成的;而JSONArray则是由一连串JSONObject所组成的数组; Map也是一个键值对,但跟JSONObject有点不同, 下面再说说; 我们先来看比较复杂的一个JSONArray:">
92-
<meta property="og:image" content="http://omwycd607.bkt.clouddn.com/17-4-9/4877941-file_1491745216641_1063b.png">
93-
<meta property="og:updated_time" content="2017-11-05T13:10:25.328Z">
92+
<meta property="og:image" content="http://img.hyhcoder.top/17-4-9/4877941-file_1491745216641_1063b.png">
93+
<meta property="og:updated_time" content="2018-01-07T00:23:35.974Z">
9494
<meta name="twitter:card" content="summary">
9595
<meta name="twitter:title" content="JSON,JSONArray,Map一些总结">
9696
<meta name="twitter:description" content="JSON是目前前后端交互非常常用的一种格式, JSON其实是个总称,里面最小单元是JSONObject,就是由一连串键值对所组成的;而JSONArray则是由一连串JSONObject所组成的数组; Map也是一个键值对,但跟JSONObject有点不同, 下面再说说; 我们先来看比较复杂的一个JSONArray:">
97-
<meta name="twitter:image" content="http://omwycd607.bkt.clouddn.com/17-4-9/4877941-file_1491745216641_1063b.png">
97+
<meta name="twitter:image" content="http://img.hyhcoder.top/17-4-9/4877941-file_1491745216641_1063b.png">
9898

9999

100100

@@ -379,7 +379,7 @@ <h1 class="post-title" itemprop="name headline">JSON,JSONArray,Map一些总结</
379379

380380

381381
<p>JSON是目前前后端交互非常常用的一种格式, JSON其实是个总称,里面最小单元是JSONObject,就是由一连串键值对所组成的;而JSONArray则是由一连串JSONObject所组成的数组; Map也是一个键值对,但跟JSONObject有点不同, 下面再说说;</p>
382-
<p>我们先来看比较复杂的一个JSONArray:<br><img src="http://omwycd607.bkt.clouddn.com/17-4-9/4877941-file_1491745216641_1063b.png" alt="enter image description here"></p>
382+
<p>我们先来看比较复杂的一个JSONArray:<br><img src="http://img.hyhcoder.top/17-4-9/4877941-file_1491745216641_1063b.png" alt="enter image description here"></p>
383383
<a id="more"></a>
384384
<h3 id="我们可以看出"><a href="#我们可以看出" class="headerlink" title="我们可以看出"></a>我们可以看出</h3><ol>
385385
<li>这是一个数组, 最外面是由[ ]所组成的;</li>

2017/01/25/让Github Pages自定义域名开启HTTPS/index.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,17 @@
9090
<meta property="og:url" content="https://blog.hyhcoder.top/2017/01/25/让Github Pages自定义域名开启HTTPS/index.html">
9191
<meta property="og:site_name" content="hyhcoder的博客">
9292
<meta property="og:description" content="放假在家,闲着无聊,于是乎又想着折腾下github pages的blog了, 最近github的国内连接速度不行,国内连接速度间歇性断网,导致blog也体验不佳, 还有最近https化的网站越来越多, google也在力推全面普及https, 年前刮起的小程序风也要求连接一定要是https, 导致也想折腾下给blog挂个小绿标(https). HTTPSHTTPS(全称:Hyper Text Tr">
93-
<meta property="og:image" content="http://omwycd607.bkt.clouddn.com/17-3-28/24716316-file_1490712481173_f1ab.png">
94-
<meta property="og:image" content="http://omwycd607.bkt.clouddn.com/17-3-28/65028105-file_1490712723046_1367c.png">
95-
<meta property="og:image" content="http://omwycd607.bkt.clouddn.com/17-3-28/2234812-file_1490712828190_2809.png">
96-
<meta property="og:image" content="http://omwycd607.bkt.clouddn.com/17-3-28/16638333-file_1490713066345_5ee9.png">
97-
<meta property="og:image" content="http://omwycd607.bkt.clouddn.com/17-3-28/15468715-file_1490713454842_161d5.png">
98-
<meta property="og:image" content="http://omwycd607.bkt.clouddn.com/17-3-28/12336386-file_1490713119922_b7af.png">
99-
<meta property="og:updated_time" content="2017-11-05T13:09:04.350Z">
93+
<meta property="og:image" content="http://img.hyhcoder.top/17-3-28/24716316-file_1490712481173_f1ab.png">
94+
<meta property="og:image" content="http://img.hyhcoder.top/17-3-28/65028105-file_1490712723046_1367c.png">
95+
<meta property="og:image" content="http://img.hyhcoder.top/17-3-28/2234812-file_1490712828190_2809.png">
96+
<meta property="og:image" content="http://img.hyhcoder.top/17-3-28/16638333-file_1490713066345_5ee9.png">
97+
<meta property="og:image" content="http://img.hyhcoder.top/17-3-28/15468715-file_1490713454842_161d5.png">
98+
<meta property="og:image" content="http://img.hyhcoder.top/17-3-28/12336386-file_1490713119922_b7af.png">
99+
<meta property="og:updated_time" content="2018-01-07T00:23:10.479Z">
100100
<meta name="twitter:card" content="summary">
101101
<meta name="twitter:title" content="让Github Pages自定义域名开启HTTPS">
102102
<meta name="twitter:description" content="放假在家,闲着无聊,于是乎又想着折腾下github pages的blog了, 最近github的国内连接速度不行,国内连接速度间歇性断网,导致blog也体验不佳, 还有最近https化的网站越来越多, google也在力推全面普及https, 年前刮起的小程序风也要求连接一定要是https, 导致也想折腾下给blog挂个小绿标(https). HTTPSHTTPS(全称:Hyper Text Tr">
103-
<meta name="twitter:image" content="http://omwycd607.bkt.clouddn.com/17-3-28/24716316-file_1490712481173_f1ab.png">
103+
<meta name="twitter:image" content="http://img.hyhcoder.top/17-3-28/24716316-file_1490712481173_f1ab.png">
104104

105105

106106

@@ -395,21 +395,21 @@ <h2 id="解决方案"><a href="#解决方案" class="headerlink" title="解决
395395
</ol>
396396
<h2 id="coding-pages的搭建"><a href="#coding-pages的搭建" class="headerlink" title="coding pages的搭建"></a>coding pages的搭建</h2><ol>
397397
<li>首先注册coding的账号: <a href="https://coding.net/" target="_blank" rel="external">https://coding.net/</a></li>
398-
<li><p>登陆后建立自己的第一个项目;<br><img src="http://omwycd607.bkt.clouddn.com/17-3-28/24716316-file_1490712481173_f1ab.png" alt="enter image description here"></p>
398+
<li><p>登陆后建立自己的第一个项目;<br><img src="http://img.hyhcoder.top/17-3-28/24716316-file_1490712481173_f1ab.png" alt="enter image description here"></p>
399399
</li>
400400
<li><p>注意项目名称要与用户名一致,这点跟github一样;</p>
401401
</li>
402-
<li><p>然后用本机和coding建立ssh密钥连接;<br><img src="http://omwycd607.bkt.clouddn.com/17-3-28/65028105-file_1490712723046_1367c.png" alt="enter image description here"></p>
402+
<li><p>然后用本机和coding建立ssh密钥连接;<br><img src="http://img.hyhcoder.top/17-3-28/65028105-file_1490712723046_1367c.png" alt="enter image description here"></p>
403403
</li>
404-
<li><p>更改hexo的_config.yml,为了能同时同步两个地方;加上coding的项目地址;<br><img src="http://omwycd607.bkt.clouddn.com/17-3-28/2234812-file_1490712828190_2809.png" alt="enter image description here"></p>
404+
<li><p>更改hexo的_config.yml,为了能同时同步两个地方;加上coding的项目地址;<br><img src="http://img.hyhcoder.top/17-3-28/2234812-file_1490712828190_2809.png" alt="enter image description here"></p>
405405
</li>
406406
<li><p>注意type和repo前有一个空格; github前面有一个tab;</p>
407407
</li>
408408
<li>执行hexo d; 开始同步;</li>
409-
<li>然后在coding上面开启pages服务;以及绑定自己的域名;<br><img src="http://omwycd607.bkt.clouddn.com/17-3-28/16638333-file_1490713066345_5ee9.png" alt="enter image description here"></li>
410-
<li>绑定自己的域名需要在自己的域名解析中绑定国内访问coding, 国外访问github;类似下面;<br><img src="http://omwycd607.bkt.clouddn.com/17-3-28/15468715-file_1490713454842_161d5.png" alt="enter image description here"></li>
409+
<li>然后在coding上面开启pages服务;以及绑定自己的域名;<br><img src="http://img.hyhcoder.top/17-3-28/16638333-file_1490713066345_5ee9.png" alt="enter image description here"></li>
410+
<li>绑定自己的域名需要在自己的域名解析中绑定国内访问coding, 国外访问github;类似下面;<br><img src="http://img.hyhcoder.top/17-3-28/15468715-file_1490713454842_161d5.png" alt="enter image description here"></li>
411411
<li>默认的解析到pages.coding.me,海外解析到github;</li>
412-
<li>然后在下面申请https证书和开启强制https访问;<br><img src="http://omwycd607.bkt.clouddn.com/17-3-28/12336386-file_1490713119922_b7af.png" alt="enter image description here"></li>
412+
<li>然后在下面申请https证书和开启强制https访问;<br><img src="http://img.hyhcoder.top/17-3-28/12336386-file_1490713119922_b7af.png" alt="enter image description here"></li>
413413
</ol>
414414
<h2 id="结尾"><a href="#结尾" class="headerlink" title="结尾"></a>结尾</h2><p>至此,github pages的两个问题都解决了, 不仅解决了https的问题, 还顺带了把github pages国内访问慢的问题解决了, 达到海内外双线的效果, 不过国外访问就没有小绿标了, 这点就没那么完美了, 想要完美的解决还是需要自己部署一台服务器, 然后自己申请https证书来部署, 这样才是最完美, 下次整理下比较火的免费https证书和部署。</p>
415415

0 commit comments

Comments
 (0)