From 0862e71bfb23ea4c2548f118dd248917c0eb60fa Mon Sep 17 00:00:00 2001 From: Haruue Icymoon Date: Fri, 11 Mar 2016 18:48:08 +0800 Subject: [PATCH] =?UTF-8?q?caoyue.com.cn=20=E6=88=90=E5=8A=9F=E6=81=A2?= =?UTF-8?q?=E5=A4=8D=EF=BC=8C=E4=B8=BE=E7=AB=99=E6=90=AC=E8=BF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CNAME | 1 - archives/index.html | 355 +--------- atom.xml | 11 +- blog/2015/06/30/hello-world/index.html | 328 +--------- .../index.html | 328 +--------- .../index.html | 423 +----------- .../index.html | 363 +---------- blog/2016/01/10/Ndless-Note/index.html | 360 +--------- .../index.html | 529 +-------------- .../01/19/HackSpire-image-site/index.html | 333 +--------- .../index.html | 409 +----------- blog/archives/index.html | 355 +--------- blog/categories/android/atom.xml | 2 +- blog/categories/android/index.html | 275 +------- blog/categories/html/atom.xml | 4 +- blog/categories/html/index.html | 258 +------- blog/categories/nspire/atom.xml | 9 +- blog/categories/nspire/index.html | 303 +-------- downloads/index.html | 32 +- index.html | 614 +----------------- 20 files changed, 73 insertions(+), 5219 deletions(-) delete mode 100644 CNAME diff --git a/CNAME b/CNAME deleted file mode 100644 index 2bfe728..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -caoyue.com.cn \ No newline at end of file diff --git a/archives/index.html b/archives/index.html index 43b1d07..b22d845 100644 --- a/archives/index.html +++ b/archives/index.html @@ -1,355 +1,8 @@ - - - - + - - Blog Archive - 春上冰月的博客 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
- -
-
-
-
- -
-

Blog Archive

- -
- -
- - - - -

2016

- - - - - - - - - - - - - - - - - - -

2015

- - - - - - - - - - - - - - - -
- - -
- - -
- - - - -
-
- - - - - - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/atom.xml b/atom.xml index 6c93672..ff64b0d 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[春上冰月的博客]]> - 2016-02-17T15:17:23+08:00 + 2016-03-12T19:02:36+08:00 http://www.caoyue.com.cn/ @@ -117,14 +117,11 @@

实际上就是查看镜像站的源代码界面然后直接贴到一个空白的 MediaWiki 上。

-

http://120.27.113.124/HackSpire/index.php

+

http://hackspire.caoyue.com.cn

好歹能看吧。。。

-

另外,由于有些源代码页面并没有被 archive.org 缓存,因此还有一些页面没有搬运好,预计等过几天有时间了再来搬运吧。。。(估计又得坑掉

- -

另外,如果你愿意帮助我们搬运的话,那是极好的。。。
-archive.org 上缓存的 HackSpire 主页地址 https://web.archive.org/web/20150715054858/http://hackspire.unsads.com/wiki/index.php/Main_Page

+

再次感谢 MetroStyle ,他提供的站点导出文件使得当前的 HackSpire 镜像站十分完整了。

]]> @@ -545,7 +542,7 @@ ROM助手 自带 img 合并拆分,那就先合并掉,然后用自带的编 美中不足的是:由于用的样式比较复杂,十分符合垃圾邮件的特征,于是。。。
另外,对手机的支持也是一个问题。。。

-如果您对这个项目感兴趣,欢迎发送一封主题中包含reply-code=emailproject_2ds4k2m2k3的邮件到haruue@caoyue.com.cn,我们将把一封样件发给您。

+如果您对这个项目感兴趣,欢迎发送一封主题中包含reply-code=emailproject_2ds4k2m2k3的邮件到haruue@caoyue.com.cn,我们将把一封样件发给您。

]]> diff --git a/blog/2015/06/30/hello-world/index.html b/blog/2015/06/30/hello-world/index.html index faa0383..b22d845 100644 --- a/blog/2015/06/30/hello-world/index.html +++ b/blog/2015/06/30/hello-world/index.html @@ -1,328 +1,8 @@ - - - - + - - Hello World - 春上冰月的博客 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
- -
-
-
-
- -
- -

Hello World

- - -

- - - - - - - - - - Jun 30, 2015 - - - | Comments - -

- -
- - -

Hello World!
-此乃开博第一文也!
-折腾了一整天,终于在 Openshift 上(本来就不是让你放在这里的)开了这个 Octopress 。人家本来说的就是“A blogging framework for hackers”,看来自己距离 hacker 的那种级别还有相当遥远的距离。
-忙活了一整年,在不得消停的压力中熬完高三,在艰险与激情中搞定高考,然后就是在忐忑不安中知晓成绩,挑选专业和大学。。。
-终于,我获得了大约 2 个月的时间可以做自己想做的事,研究自己喜欢的东西。
-似乎,忽然间就自由了呢。。。
-规划了一年多的计划终于可以付诸行动,这个 Blog ,当然也是其中之一。
-未来又会是怎么样的?可能答案就会出现在以后的文字中吧!
-最后感谢初春静流,正是他美丽的花园 ,把我吸引到了 Octopress 这片神奇的土地。
- -春上冰月
-2015.6.30 -

-
- - - -
- - -
-

Comments

-
-
-
-
- -
- - - - -
-
-

- Copyright © 2016 - 春上冰月 - - Powered by Octopress -

- -
- - - - - - - - - - - - - - - - - - + + \ No newline at end of file diff --git a/blog/2015/07/16/strlib2-ji-yu-ti-basicde-zi-fu-chuan-han-shu-ku/index.html b/blog/2015/07/16/strlib2-ji-yu-ti-basicde-zi-fu-chuan-han-shu-ku/index.html index 3b84b58..b22d845 100644 --- a/blog/2015/07/16/strlib2-ji-yu-ti-basicde-zi-fu-chuan-han-shu-ku/index.html +++ b/blog/2015/07/16/strlib2-ji-yu-ti-basicde-zi-fu-chuan-han-shu-ku/index.html @@ -1,328 +1,8 @@ - - - - + - - strlib2: 基于TI-BASIC的字符串函数库 - 春上冰月的博客 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
- -
-
-
-
- -
- -

Strlib2: 基于TI-BASIC的字符串函数库

- - -

- - - - - - - - - - Jul 16, 2015 - - - | Comments - -

- -
- - -

为了打发暑假时间,顺便唤醒一下一年没动过的编程思维,在TI-Nspire上写了个字符串库啊。。。
-本来是想做一个TI-Nspire上的线性输入程序,结果发现要用到很多这种函数,于是就干脆写了个lib,至于线性输入。。。那就再(qi)说(keng)吧!
-想来想去就想到了18个函数,涵盖一般的增加,删除,分开,组合,计数…以及为表达式字符串专门设计的括号检查,空格检查(虽然都很坑)
-为什么叫 strlib2 呢?因为貌似以前有个大神 Eagle-man 写过一个 strlib 了,我这种业余的自然只能屈居 strlib2 了啊啊啊。。。
-这个项目已经放到github上了,欢迎到项目主页看看吧(什么?这卵东西还配上github?)

-
- - - -
- - -
-

Comments

-
-
-
-
- -
- - - - -
-
-

- Copyright © 2016 - 春上冰月 - - Powered by Octopress -

- -
- - - - - - - - - - - - - - - - - - + + \ No newline at end of file diff --git a/blog/2015/07/29/wo-yao-rang-wo-de-email-xiang-octopress-yi-yang-piao-liang/index.html b/blog/2015/07/29/wo-yao-rang-wo-de-email-xiang-octopress-yi-yang-piao-liang/index.html index b36c8ed..b22d845 100644 --- a/blog/2015/07/29/wo-yao-rang-wo-de-email-xiang-octopress-yi-yang-piao-liang/index.html +++ b/blog/2015/07/29/wo-yao-rang-wo-de-email-xiang-octopress-yi-yang-piao-liang/index.html @@ -1,423 +1,8 @@ - - - - + - - 我要让我的 Email 像 Octopress 一样漂亮 - 春上冰月的博客 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
- -
-
-
-
- -
- -

我要让我的 Email 像 Octopress 一样漂亮

- - -

- - - - - - - - - - Jul 29, 2015 - - - | Comments - -

- -
- - -

自定义信纸,让 Email 像 Octopress 一样!
-
-这个想法在我的脑子里一闪而过,但是就像马云说的,梦想还是要有的,如果实现了呢?
-
-那就来实现一下吧!

- - - - -


-首先,把 Octopress 的主页抠出来。。。
-删掉所有脚本、博客内容,把背景之类的简化一下,在尾注上加上 Email 专用版标志。。。
-然后最终我们就得到了这样一个丑陋东西。。。
-
-然后把这些HTML代码复制到邮件里去就可以了!
-然而现实永远没有那么简单,绝对不要高估 Email 对 HTML 代码的支持能力!
-
-那怎么办,似乎还是要用图片来解决了。。。
-
-把这个方框截成图片,把脚注分开截(这样要延长的话就会方便一些),再把空白的地方截下来,延长时比较方便,就像这样
-(当时一脑残截成了三个部分,后来一想确实不应该这样)
-
-
-
-最后还有一张方便随时延长:
-
-
-然后,到QQ邮箱里,打开写信模式,把图片上的链接用<map>标签加上去,然后加上各种样式(简写样式自动展开好评),另外还得一步一步地查看效果以保证样式不会被服务器吞掉。
-最后,代码变成了这个样子:(QQ邮箱把所有标签都弄成大写简直差评!)

- -
Octopress Special Edition for Email
1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-
<DIV style="PADDING-BOTTOM: 50px; PADDING-TOP: 20px; PADDING-LEFT: 20px; LEFT: 0px; TOP: 0px; PADDING-RIGHT: 100px; BACKGROUND-COLOR: #262c33">
-    <IMG style="BORDER-TOP: 0px; BORDER-RIGHT: 0px; BORDER-BOTTOM: 0px; POSITION: relative; OUTLINE-STYLE: none; BORDER-LEFT: 0px; TOP: 0px" src="http://www.caoyue.com.cn/images/email/email-head.jpg">
-    <DIV style="BORDER-TOP: 0px; BORDER-RIGHT: 0px; BORDER-BOTTOM: 0px; POSITION: relative; OUTLINE-STYLE: none; BORDER-LEFT: 0px; TOP: 0px">
-        <IMG style="BORDER-TOP: 0px; BORDER-RIGHT: 0px; BORDER-BOTTOM: 0px; POSITION: relative; OUTLINE-STYLE: none; BORDER-LEFT: 0px; TOP: -4px" src="http://www.caoyue.com.cn/images/email/email-main.jpg" useMap=#sidebar>
-        <MAP name=sidebar>
-            <AREA href="http://www.caoyue.com.cn/" target=_blank coords=795,41,983,214>
-            <AREA href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&amp;email=t9TW2M7C0vfU1tjOwtKZ1NjamdTZ" target=_blank coords=765,345,915,365>
-            <AREA href="http://sighttp.qq.com/authd?IDKEY=5b5a3f4dc7bf41522c3f7fa176667e2036fd9ce5e235bdd0" target=_blank coords=767,379,866,395>
-        </MAP>
-        <DIV style="WIDTH: 650px; POSITION: absolute; LEFT: 50px; Z-INDEX: 2; TOP: -5px">
-            <P style="FONT-FAMILY: sans-serif; FONT-WEIGHT: bold">
-                收件人:
-            </P>
-            <P style="FONT-FAMILY: sans-serif; POSITION: relative; TOP: 5px">
-                正文
-            </P>
-            <P style="POSITION: relative; FONT-WEIGHT: bold; TEXT-ALIGN: right; TOP: 10px" align=right>
-                发件人
-                <BR>
-                ****年**月**日
-            </P>
-        </DIV>
-    </DIV>
-    <IMG style="BORDER-TOP: 0px; BORDER-RIGHT: 0px; BORDER-BOTTOM: 0px; POSITION: relative; OUTLINE-STYLE: none; BORDER-LEFT: 0px; TOP: -8px" src="http://www.caoyue.com.cn/images/email/email-foot.jpg" useMap=#footer>
-    <MAP name=footer>
-        <AREA href="http://www.caoyue.com.cn/" target=_blank coords=165,20,216,35>
-        <AREA href="http://www.caoyue.com.cn/blog/2015/07/29/wo-yao-rang-wo-de-email-xiang-octopress-[%3F]-yang-piao-liang/index.html" target=_blank coords=226,20,367,35>
-        <AREA href="http://octopress.org" target=_blank coords=493,20,554,35>
-    </MAP>
-</DIV>  
-
- - -

这是中国特色版的,以后还会有其他语言版本的应该。
-最终效果在 QQ邮箱 和 网易邮箱表现还不错(当然要开显示图片)。。。
-(除了加载慢出翔以外)
-
-美中不足的是:由于用的样式比较复杂,十分符合垃圾邮件的特征,于是。。。
-另外,对手机的支持也是一个问题。。。
-
-如果您对这个项目感兴趣,欢迎发送一封主题中包含reply-code=emailproject_2ds4k2m2k3的邮件到haruue@caoyue.com.cn,我们将把一封样件发给您。

-
- - - -
- - -
-

Comments

-
-
-
-
- -
- - - - -
-
-

- Copyright © 2016 - 春上冰月 - - Powered by Octopress -

- -
- - - - - - - - - - - - - - - - - - + + \ No newline at end of file diff --git a/blog/2015/09/17/coolpad-5261-de-root-yu-shua-ji-fang-fa/index.html b/blog/2015/09/17/coolpad-5261-de-root-yu-shua-ji-fang-fa/index.html index 5bd24a9..b22d845 100644 --- a/blog/2015/09/17/coolpad-5261-de-root-yu-shua-ji-fang-fa/index.html +++ b/blog/2015/09/17/coolpad-5261-de-root-yu-shua-ji-fang-fa/index.html @@ -1,363 +1,8 @@ - - - - + - - Coolpad 5261 的 root 与刷机方法 - 春上冰月的博客 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
- -
-
-
-
- -
- -

Coolpad 5261 的 Root 与刷机方法

- - -

- - - - - - - - - - Sep 17, 2015 - - - | Comments - -

- -
- - -

其实这篇文章没有什么技术含量的。。。用的工具、文件什么的差不多都是现成的。。。
-写这篇文章的纯粹目的,只是因为网上几乎没有这部手机相关的东西,放一个作为一个备忘,顺便为以后破解国产机提供一种思路。
-
-首先说一下这部机子的来历:我们学校的电信宽带是办宽带赠(kun)送(bang)手机的,由于本来有手机就选了个最便宜的,于是就拿到了这部“连官网上都找不到的机子”

- -
- - -
- - -

-
-到手的时候真是有一种“用之无味,弃之可惜”的感觉了。本来办宽带的学长说可以少35元回收掉,但是想想当时说的豪言壮志“这种机子就是拿来耍的”,那就还是耍一耍吧!
- -
-配置的话 512 MB RAM ,CPU 是高通的 MSM8909(这是什么鬼?),系统是 Android 4.4 ,df 命令显示有 775MB 的 /system 分区以及 248M 的 /cache 分区 ,另外这货的 /data 分区和内置存储卡是共用空间的(虽然只有 1.6GB ),令人惊讶是这货居然支持 zram 和 swap 。。。
-
-好吧,废话+吐槽到此结束。。。
-
-首先,这部机子虽说在学校稍微普遍一点(电信赠(kun)送(bang)的影响),但在网上几乎找不到,还好有位好心人上传了个 5261售后专用线刷救砖包.zip ,用 MiFlash 就可以给这部手机刷机了(怎么又和小米扯上关系了)
-
-不管怎么样,先刷了再说。。。
-
-按照它提供的方法,装好驱动(Windows 8 需要关闭驱动强制签名)和 MiFlash ,把 5261售后专用线刷救砖包.zip/酷派进Qdload模式用MIFLASHTOOL刷.zip/酷派进Qdload模式/ 下面的 #dload#.d 和 !dload!.l 拷贝到 SD 卡,插拔一次电池,将手机连接电脑,打开MiFlash,点几下[刷新],然后选择那个有刷机文件的文件夹,点击[刷机]就开刷了。。。
-
-刷好之后,拔下 SD 卡,长按电源键就可以开机,话说第一次开机确实挺久的。。。
-
-一进系统,发现系统果然变了不少,以前只有企鹅管家,现在居然上了大数字全家桶,看来那些国厂为了我国国民信息安全真是费(shang)尽(xin)心(bing)机(kuang)!!!
-
-不过倒是终于找到了一种能改系统的方法,那就好办多了
-
-本来的想法是先把刷机包里的 system_1.img 到 system_7.img 合并一下,到 Linux 下面挂载,耍好之后重新拆开,然后看看能不能刷上去,结果并好的包在 Linux 上死活不能挂载,虽然 file 命令显示它就是一个正常的,可以挂载的 img 。
-
-那就另寻捷径了,上网一搜发现了一款叫 ROM助手 的软件,说是能直接修改 img 文件,虽说看里面的功能有点内置程序赚钱的感觉,但是能抓到耗子的猫就是好猫吧,拿来试试再说。
-
-ROM助手 自带 img 合并拆分,那就先合并掉,然后用自带的编辑功能编辑一下合并好的 img ,把所有多余的内置删掉,然后再把 SuperSU 相关的文件全部放进去,再重新拆开。。。这些步骤都很简单,这里就不多说了(我说了这篇文章一点技术含量都没有的)
-
-然后就用分解好的 img 文件以及输出的 rawprogram_unsparse.xml 把之前刷机文件夹里的文件覆盖掉,再用 MiFlash 刷一次机。开机,root 就已经搞定了!
-
-另外发现这货在 fastboot 模式下面进行 fastboot flash 的时候是不做检查的,能做什么就不知道了,或许以后可以编译个 recovery 放进去吧,这样刷机过程可能就正常一些了。。。

-
- - - -
- - -
-

Comments

-
-
-
-
- -
- - - - -
-
-

- Copyright © 2016 - 春上冰月 - - Powered by Octopress -

- -
- - - - - - - - - - - - - - - - - - + + \ No newline at end of file diff --git a/blog/2016/01/10/Ndless-Note/index.html b/blog/2016/01/10/Ndless-Note/index.html index efd74a1..b22d845 100644 --- a/blog/2016/01/10/Ndless-Note/index.html +++ b/blog/2016/01/10/Ndless-Note/index.html @@ -1,360 +1,8 @@ - - - - + - - Ndless 学习笔记 - 春上冰月的博客 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
- -
-
-
-
- -
- -

Ndless 学习笔记

- - -

- - - - - - - - - - Jan 10, 2016 - - - | Comments - -

- -
- - -

近来学习 Ndless 写的笔记,由于 HackSpire 一直处于崩掉状态, TI-Nspire API 什么的都无法查看,只能慢慢摸索,于是就写了这个,放到 GitHub 上,以后就当文档看好了。
-https://github.com/haruue/NdlessNote

- - - - -

目录

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
日期 主题
20160104 语言支持 与 Nspire 标准输入框
20160105 命令行程序nspireio.h 与 按键扫描
20160106 文件操作 与 流操作
20160107 LCD操作 与 nGC构建图形化界面
20160108 nGC中使用原生中文支持
- -
- - - -
- - -
-

Comments

-
-
-
-
- -
- - - - -
-
-

- Copyright © 2016 - 春上冰月 - - Powered by Octopress -

- -
- - - - - - - - - - - - - - - - - - + + \ No newline at end of file diff --git a/blog/2016/01/16/Install-Dict-on-CX-C-with-a-straightly-way/index.html b/blog/2016/01/16/Install-Dict-on-CX-C-with-a-straightly-way/index.html index 4edb261..b22d845 100644 --- a/blog/2016/01/16/Install-Dict-on-CX-C-with-a-straightly-way/index.html +++ b/blog/2016/01/16/Install-Dict-on-CX-C-with-a-straightly-way/index.html @@ -1,529 +1,8 @@ - - - - + - - 在 TI-Nspire CX-C CAS 上直接安装字典方法的研究 - 春上冰月的博客 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
- -
-
-
-
- -
- -

在 TI-Nspire CX-C CAS 上直接安装字典方法的研究

- - -

- - - - - - - - - - Jan 16, 2016 - - - | Comments - -

- -
- - -

最近有人发现,将 TI-Nspire CX CAS 升级到 OS 4.0.3.29 之后出现了无法安装字典的问题,我在 firebird 上使用字典安装程序,然后发现这实际上是防降级机制的问题。
-因为 OS 4.0 实际上有两个版本,官网上直接下载到的是 OS 4.0.3.29 ,而教师软件里自带的是 OS 4.0.0.235 。而教师软件自带了一个版本号是 4.0.0.500 的 ZiDian.tcc ,因此在 4.0.3.29 上直接安装这个 ZiDian.tcc 会触发防降级机制,并不会被安装。
-我在 firebird 里安装了一个 OS 4.0.0.235 ,然后在里面安装了字典,然后我发现安装过程中会有这样的输出。

- - - - -
1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-
TI_OS_INSTALL_VERIFYING_IMAGE incremental update (91)
-TI_OS_INSTALL_VERIFYING_IMAGE incremental update (93)
-TI_OS_INSTALL_VERIFYING_RESOURCE (95)
-TI_OS_INSTALL_VERIFICATION_COMPLETE (99)
-OS_EXT: Start Install (4.0.0.500)...
-TI_OS_deleteTree(): path /extension/dict_zh_CN 
-TI_OS_deleteTree(): Failed to chdir : 2
-Unpacking data...
-Creating directory extension 
-Creating directory extension/dict_zh_CN 
-Inflating file extension/dict_zh_CN/cidian.db 
-TI_OS_INSTALL_INSTALLING_RESOURCES incremental update (64)
-Inflating file extension/dict_zh_CN/cidian.tre 
-TI_OS_INSTALL_INSTALLING_RESOURCES incremental update (71)
-Extracting file extension/dict_zh_CN/manifest.cer 
-Extracting file extension/dict_zh_CN/manifest.sig 
-Inflating file extension/dict_zh_CN/manifest.txt 
-Inflating file extension/dict_zh_CN/yinghan.db 
-TI_OS_INSTALL_INSTALLING_RESOURCES incremental update (89)
-Inflating file extension/dict_zh_CN/yinghan.tre 
-TI_OS_INSTALL_INSTALLING_IMAGE incremental update (93)
-Finished unpacking.
-OS_EXT: Install Complete(0x0000).
-
- - -

原来字典安装字典的主要过程就是解压+复制+验证的过程,如果把 ZiDian.tcc 以 zip 解压,我们会得到一个 os_ext.img 再解压它,得到的恰好就是这些文件,那就简单了。把这些文件直接复制到对应文件夹里试试。
-于是我写了个简单的 Ndless 程序(好吧其实是拿以前写的复制文件代码随便改改出来的),来完成这个复制操作

- -
1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-38
-39
-40
-41
-42
-43
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
-66
-67
-68
-69
-70
-
#include <libndls.h>
-
-extern "C" {
-    #include <nspireio/nspireio.h>
-}
-
-int copy(const char *path, void *context);
-void getFilename(char *filename, const char *path);
-void getFilenameWithPath(char *filename_with_path, char *filename);
-
-int main(void) {
-    assert_ndless_rev(801);
-    nio_console csl;
-    nio_init(&csl, NIO_MAX_COLS, NIO_MAX_ROWS, 0, 0, BLACK, WHITE, TRUE);
-    nio_set_default(&csl);
-    //新建文件夹
-    mkdir("/extension", 0777);
-    mkdir("/extension/dict_zh_CN", 0777);
-    //复制 dict 目录下所有文件到 /extension/dict_zh_CN/
-    int (*callback)(const char *path, void *context);
-    callback=copy;
-    file_each("/documents/dict", callback, NULL);
-
-    nio_printf("Done, press any key to exit.");
-    wait_key_pressed();
-    nio_free(&csl);
-    return 0;
-}
-
-int copy(const char *path, void *context) {
-    nio_printf("%s -> ", path);
-    //取得完整路径
-    char *filename = new char[30];
-    char *filename_with_path = new char[70];
-    getFilename(filename, path);
-    getFilenameWithPath(filename_with_path, filename);
-    delete filename;
-    //打开对应文件
-    FILE *src, *dst;
-    if((src = fopen(path, "rt")) == NULL || (dst = fopen(filename_with_path, "wt")) == NULL) {
-        nio_printf("Failed to open file\n");
-        wait_key_pressed();
-        return 0;
-    }
-    //复制文件
-    int ch;
-    while ((ch = fgetc(src)) != EOF) {
-        fputc(ch, dst);
-    }
-
-    nio_printf("%s\n", filename_with_path);
-    delete filename_with_path;
-    fclose(src);
-    fclose(dst);
-    return 0;
-}
-//取得文件名,顺便去掉文件名后面的 .tns
-void getFilename(char *filename, const char *path) {
-    while (*path) path++;
-    while (*path != '/') path--;
-    path++;
-    while ((*filename++ = *path++));
-    filename -= 5;
-    *filename = '\0';
-}
-//取得目标路径完整路径名
-void getFilenameWithPath(char *filename_with_path, char *filename) {
-    strcpy(filename_with_path, "/extension/dict_zh_CN/");
-    strcat(filename_with_path, filename);
-}
-
- - -

考虑到 Nspire 只能传输 .tns 文件。所以必须在传入之前加上这个后缀,复制的时候再把它处理掉。
-把从 ZiDian.tcc 中得到的所有文件加个 .tns 后缀,放到 我的文档 下面的 dict 文件夹,然后运行一下这个程序,效果相当不错!
-
-重启一下,字典就可以用了。
-

-
- - - -
- - -
-

Comments

-
-
-
-
- -
- - - - -
-
-

- Copyright © 2016 - 春上冰月 - - Powered by Octopress -

- -
- - - - - - - - - - - - - - - - - - + + \ No newline at end of file diff --git a/blog/2016/01/19/HackSpire-image-site/index.html b/blog/2016/01/19/HackSpire-image-site/index.html index cf06746..b22d845 100644 --- a/blog/2016/01/19/HackSpire-image-site/index.html +++ b/blog/2016/01/19/HackSpire-image-site/index.html @@ -1,333 +1,8 @@ - - - - + - - HackSpire 镜像站的镜像站现在已经开放 - 春上冰月的博客 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
- -
-
-
-
- -
- -

HackSpire 镜像站的镜像站现在已经开放

- - -

- - - - - - - - - - Jan 19, 2016 - - - | Comments - -

- -
- - -

HackSpire 一直处于挂掉的状态,这使得很多 Nspire 的资料无法搜寻。今天 MetroStyle 突然发现了 archive.org 上缓存过 HackSpire 的镜像,但是要使用科学的上网方式才能访问而且速度很慢确实也不太方便。于是就在自己的阿里云服务器上弄了一个。

- -

实际上就是查看镜像站的源代码界面然后直接贴到一个空白的 MediaWiki 上。

- -

http://120.27.113.124/HackSpire/index.php

- -

好歹能看吧。。。

- -

另外,由于有些源代码页面并没有被 archive.org 缓存,因此还有一些页面没有搬运好,预计等过几天有时间了再来搬运吧。。。(估计又得坑掉

- -

另外,如果你愿意帮助我们搬运的话,那是极好的。。。
-archive.org 上缓存的 HackSpire 主页地址 https://web.archive.org/web/20150715054858/http://hackspire.unsads.com/wiki/index.php/Main_Page

-
- - - -
- - -
-

Comments

-
-
-
-
- -
- - - - -
-
-

- Copyright © 2016 - 春上冰月 - - Powered by Octopress -

- -
- - - - - - - - - - - - - - - - - - + + \ No newline at end of file diff --git a/blog/2016/02/12/How-to-upload-file-with-retrofit2/index.html b/blog/2016/02/12/How-to-upload-file-with-retrofit2/index.html index e2b9818..b22d845 100644 --- a/blog/2016/02/12/How-to-upload-file-with-retrofit2/index.html +++ b/blog/2016/02/12/How-to-upload-file-with-retrofit2/index.html @@ -1,409 +1,8 @@ - - - - + - - 使用 retrofit2 上传文件的方法 - 春上冰月的博客 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
- -
-
-
-
- -
- -

使用 Retrofit2 上传文件的方法

- - -

- - - - - - - - - - Feb 12, 2016 - - - | Comments - -

- -
- - -

被坑了两天。。感觉这个必须得记下了。。。

- -

使用 retrofit2 上传一张图到服务器,服务器上使用这样的 php 语句来获取文件

- -
1
-2
-
$file = $_FILES['image'];
-
- - -

ApiService 按照官方的文档使用Multipart就好,用不用 PartMap 就看喜好了

- - - - -
1
-2
-3
-
@Multipart
-@POST("uploadImage.php")
-Call<UploadInformationTransfer> uploadImage(@PartMap Map<String, RequestBody> params);
-
- - -

所有的参数都要用RequestBody包装一下

- -
1
-2
-3
-4
-5
-6
-
// 传入的纯文本 POST 参数,使用 $_POST['field'] 来获取
-RequestBody apikey = RequestBody.create(MediaType.parse("text/plain"), ApiKeys.HARUUE_STORAGE_SERVER_2_APIKEY);
-RequestBody use = RequestBody.create(MediaType.parse("text/plain"), "face");
-
-// 传入的文件参数,使用 $_FILES['field'] 来获取
-RequestBody imgFile = RequestBody.create(MediaType.parse("image/jpeg"), file);
-
- - -

然后把它们加入 PartMap ,如果不使用 PartMap ,把对应部分填到 @Part(“field”) 里去也可以

- -
1
-2
-3
-4
-
Map<String, RequestBody> partMap = new HashMap<>();
-partMap.put("apikey", apikey);
-partMap.put("use", use);
-partMap.put("image\"; filename=\"upload.jpg\"", imgFile);
-
- - -

然后把这个 partMap 传入对应函数中,大功告成。。。

- -

看起来很简单就像是 FormUrlEncoded 一样,然而,发现坑没有?

- -

注意:在传入文件的时候,使用

- -
1
-
partMap.put("image\"; filename=\"upload.jpg\"", imgFile);
-
- - -

实际上,上传的文件名与系统中存储的文件的真实文件名没有关系,只与这个字符串有关系。。。
-所以,如果需要在服务器上使用$_FILES['参数名']来获取上传的文件,那么上传的时候就应该写

- -
1
-2
-3
-4
-5
-
// 使用 PartMap 
-partMap.put("参数名\"; filename=\"文件名\"", imgFile);
-
-// 直接在定义 ApiService 时使用 @Part 注释
-Call<...> upload(..., @Part("参数名\"; filename=\"文件名\"") RequestBody file, ...);
-
- - -

因此,如果需要文件名可变,那么就必须使用 PartMap

- -
1
-
partMap.put("参数名\"; filename=\"" + filename + "\"", imgFile);
-
- -
- - - -
- - -
-

Comments

-
-
-
-
- -
- - - - -
-
-

- Copyright © 2016 - 春上冰月 - - Powered by Octopress -

- -
- - - - - - - - - - - - - - - - - - + + \ No newline at end of file diff --git a/blog/archives/index.html b/blog/archives/index.html index 2a37551..b22d845 100644 --- a/blog/archives/index.html +++ b/blog/archives/index.html @@ -1,355 +1,8 @@ - - - - + - - Blog Archive - 春上冰月的博客 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
- -
-
-
-
- -
-

Blog Archive

- -
- -
- - - - -

2016

- - - - - - - - - - - - - - - - - - -

2015

- - - - - - - - - - - - - - - -
- - -
- - -
- - - - -
-
-

- Copyright © 2016 - 春上冰月 - - Powered by Octopress -

- -
- - - - - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/blog/categories/android/atom.xml b/blog/categories/android/atom.xml index 546a433..f780c65 100644 --- a/blog/categories/android/atom.xml +++ b/blog/categories/android/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: android | 春上冰月的博客]]> - 2016-02-17T15:17:23+08:00 + 2016-03-12T19:02:36+08:00 http://www.caoyue.com.cn/ diff --git a/blog/categories/android/index.html b/blog/categories/android/index.html index eba3f84..b22d845 100644 --- a/blog/categories/android/index.html +++ b/blog/categories/android/index.html @@ -1,275 +1,8 @@ - - - - + - - Category: android - 春上冰月的博客 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
- -
-
-
- - - -
- - - - -
-
-

- Copyright © 2016 - 春上冰月 - - Powered by Octopress -

- -
- - - - - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/blog/categories/html/atom.xml b/blog/categories/html/atom.xml index 27c0c13..7c4808e 100644 --- a/blog/categories/html/atom.xml +++ b/blog/categories/html/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: html | 春上冰月的博客]]> - 2016-02-17T15:17:23+08:00 + 2016-03-12T19:02:36+08:00 http://www.caoyue.com.cn/ @@ -121,7 +121,7 @@ 美中不足的是:由于用的样式比较复杂,十分符合垃圾邮件的特征,于是。。。
另外,对手机的支持也是一个问题。。。

-如果您对这个项目感兴趣,欢迎发送一封主题中包含reply-code=emailproject_2ds4k2m2k3的邮件到haruue@caoyue.com.cn,我们将把一封样件发给您。

+如果您对这个项目感兴趣,欢迎发送一封主题中包含reply-code=emailproject_2ds4k2m2k3的邮件到haruue@caoyue.com.cn,我们将把一封样件发给您。

]]> diff --git a/blog/categories/html/index.html b/blog/categories/html/index.html index 507ac4e..b22d845 100644 --- a/blog/categories/html/index.html +++ b/blog/categories/html/index.html @@ -1,258 +1,8 @@ - - - - + - - Category: html - 春上冰月的博客 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
- -
-
-
- - - -
- - - - -
-
-

- Copyright © 2016 - 春上冰月 - - Powered by Octopress -

- -
- - - - - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/blog/categories/nspire/atom.xml b/blog/categories/nspire/atom.xml index 83446cf..eda9355 100644 --- a/blog/categories/nspire/atom.xml +++ b/blog/categories/nspire/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: nspire | 春上冰月的博客]]> - 2016-02-17T15:17:23+08:00 + 2016-03-12T19:02:36+08:00 http://www.caoyue.com.cn/ @@ -22,14 +22,11 @@

实际上就是查看镜像站的源代码界面然后直接贴到一个空白的 MediaWiki 上。

-

http://120.27.113.124/HackSpire/index.php

+

http://hackspire.caoyue.com.cn

好歹能看吧。。。

-

另外,由于有些源代码页面并没有被 archive.org 缓存,因此还有一些页面没有搬运好,预计等过几天有时间了再来搬运吧。。。(估计又得坑掉

- -

另外,如果你愿意帮助我们搬运的话,那是极好的。。。
-archive.org 上缓存的 HackSpire 主页地址 https://web.archive.org/web/20150715054858/http://hackspire.unsads.com/wiki/index.php/Main_Page

+

再次感谢 MetroStyle ,他提供的站点导出文件使得当前的 HackSpire 镜像站十分完整了。

]]> diff --git a/blog/categories/nspire/index.html b/blog/categories/nspire/index.html index 717946c..b22d845 100644 --- a/blog/categories/nspire/index.html +++ b/blog/categories/nspire/index.html @@ -1,303 +1,8 @@ - - - - + - - Category: nspire - 春上冰月的博客 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
- -
-
-
- - - -
- - - - -
-
-

- Copyright © 2016 - 春上冰月 - - Powered by Octopress -

- -
- - - - - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/downloads/index.html b/downloads/index.html index 083a14d..b22d845 100644 --- a/downloads/index.html +++ b/downloads/index.html @@ -1,26 +1,8 @@ - - - -资源 & 下载 | 春上冰月的博客 - - -

资源 & 下载

-

这里汇集了一些难以找到却可能十分有用的资源,以及我们的作品。

-
-
-文件名 | 阐述&说明 | 链接日期 | 备注
-android-windows-fastboot-16.01.zip | 包括最新版adb(1.0.31)和fastboot,完美解决offline问题 | July 10,2015 | Windows软件
-pitch-pie.zip | 解除 Android L 的 Position-Independent Executables 限制 | July 10,2015 | 安卓卡刷包,可能只适用于AOSP 5.0
-Tieba-Cloud-Sign-3.4.zip | 无名智者的贴吧云签到3.4版本 | July 10,2015 | PHP软件
-hsankx-v1.1.zip | 宇润灰色按钮克星,把不可按下的按钮变为可以按下的状态 | July 13,2015 | Windows软件,某些灰色按钮本来就没有功能,按下也没有用
-strlib2.tns | 基于TI-BASIC的字符串函数库 | July 16,2015 | TI-Nspire软件(函数库) 博客主页 github项目主页
-andftp.apk | 支持密钥文件连接sftp并且拥有GUI的安卓应用 | July 17,2015 | Android应用程序
-connectbot.apk | 支持密钥文件连接ssh的安卓应用 | July 17,2015 | Android应用程序
-vimtouch.apk | 安卓版的VIM,内置vim7.3,支持触摸移行,触摸放大,建议和FullRuntime包一起使用以获得所有功能 | July 17,2015 | Android应用程序
-vimtouch.fullruntime.apk | 与vimtouch.apk一起安装来获取vim所有功能的runtime包 | July 17,2015 | Android应用程序
-Notepad2_4.2.25.954_CN.zip | 一款轻量级的文本编辑器,在编码转换方面功能强大 | July 23,2015 | Windows应用程序
-安卓上的计算器模拟器&计算软件合集 | Android平台上十分强大的计算器模拟器&计算工具的集合 | Aug 24,2015 | Android应用程序
-
-
- + + + + + \ No newline at end of file diff --git a/index.html b/index.html index 1f7effd..b22d845 100644 --- a/index.html +++ b/index.html @@ -1,614 +1,8 @@ - - - - + - - 春上冰月的博客 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
- -
-
-
- - - -
- -
- -

使用 Retrofit2 上传文件的方法

- - -

- - - - - - - - - - Feb 12, 2016 - - - | Comments - -

- -
- - -

被坑了两天。。感觉这个必须得记下了。。。

- -

使用 retrofit2 上传一张图到服务器,服务器上使用这样的 php 语句来获取文件

- -
1
-2
-
$file = $_FILES['image'];
-
- - -

ApiService 按照官方的文档使用Multipart就好,用不用 PartMap 就看喜好了

- -
- - - - - - -
- - -
- -
- -

HackSpire 镜像站的镜像站现在已经开放

- - -

- - - - - - - - - - Jan 19, 2016 - - - | Comments - -

- -
- - -

HackSpire 一直处于挂掉的状态,这使得很多 Nspire 的资料无法搜寻。今天 MetroStyle 突然发现了 archive.org 上缓存过 HackSpire 的镜像,但是要使用科学的上网方式才能访问而且速度很慢确实也不太方便。于是就在自己的阿里云服务器上弄了一个。

- -

实际上就是查看镜像站的源代码界面然后直接贴到一个空白的 MediaWiki 上。

- -

http://120.27.113.124/HackSpire/index.php

- -

好歹能看吧。。。

- -

另外,由于有些源代码页面并没有被 archive.org 缓存,因此还有一些页面没有搬运好,预计等过几天有时间了再来搬运吧。。。(估计又得坑掉

- -

另外,如果你愿意帮助我们搬运的话,那是极好的。。。
-archive.org 上缓存的 HackSpire 主页地址 https://web.archive.org/web/20150715054858/http://hackspire.unsads.com/wiki/index.php/Main_Page

-
- - - - -
- - -
- -
- -

在 TI-Nspire CX-C CAS 上直接安装字典方法的研究

- - -

- - - - - - - - - - Jan 16, 2016 - - - | Comments - -

- -
- - -

最近有人发现,将 TI-Nspire CX CAS 升级到 OS 4.0.3.29 之后出现了无法安装字典的问题,我在 firebird 上使用字典安装程序,然后发现这实际上是防降级机制的问题。
-因为 OS 4.0 实际上有两个版本,官网上直接下载到的是 OS 4.0.3.29 ,而教师软件里自带的是 OS 4.0.0.235 。而教师软件自带了一个版本号是 4.0.0.500 的 ZiDian.tcc ,因此在 4.0.3.29 上直接安装这个 ZiDian.tcc 会触发防降级机制,并不会被安装。
-我在 firebird 里安装了一个 OS 4.0.0.235 ,然后在里面安装了字典,然后我发现安装过程中会有这样的输出。

- -
- - - - - - -
- - - - - -
- -
- -

Coolpad 5261 的 Root 与刷机方法

- - -

- - - - - - - - - - Sep 17, 2015 - - - | Comments - -

- -
- - -

其实这篇文章没有什么技术含量的。。。用的工具、文件什么的差不多都是现成的。。。
-写这篇文章的纯粹目的,只是因为网上几乎没有这部手机相关的东西,放一个作为一个备忘,顺便为以后破解国产机提供一种思路。
-
-首先说一下这部机子的来历:我们学校的电信宽带是办宽带赠(kun)送(bang)手机的,由于本来有手机就选了个最便宜的,于是就拿到了这部“连官网上都找不到的机子”

- -
- - -
- - -

-
-到手的时候真是有一种“用之无味,弃之可惜”的感觉了。本来办宽带的学长说可以少35元回收掉,但是想想当时说的豪言壮志“这种机子就是拿来耍的”,那就还是耍一耍吧!
-
- - - - - - -
- - -
- -
- -

我要让我的 Email 像 Octopress 一样漂亮

- - -

- - - - - - - - - - Jul 29, 2015 - - - | Comments - -

- -
- - -

自定义信纸,让 Email 像 Octopress 一样!
-
-这个想法在我的脑子里一闪而过,但是就像马云说的,梦想还是要有的,如果实现了呢?
-
-那就来实现一下吧!

- -
- - - - - - -
- - -
- -
- -

Strlib2: 基于TI-BASIC的字符串函数库

- - -

- - - - - - - - - - Jul 16, 2015 - - - | Comments - -

- -
- - -

为了打发暑假时间,顺便唤醒一下一年没动过的编程思维,在TI-Nspire上写了个字符串库啊。。。
-本来是想做一个TI-Nspire上的线性输入程序,结果发现要用到很多这种函数,于是就干脆写了个lib,至于线性输入。。。那就再(qi)说(keng)吧!
-想来想去就想到了18个函数,涵盖一般的增加,删除,分开,组合,计数…以及为表达式字符串专门设计的括号检查,空格检查(虽然都很坑)
-为什么叫 strlib2 呢?因为貌似以前有个大神 Eagle-man 写过一个 strlib 了,我这种业余的自然只能屈居 strlib2 了啊啊啊。。。
-这个项目已经放到github上了,欢迎到项目主页看看吧(什么?这卵东西还配上github?)

-
- - - - -
- - -
- -
- -

Hello World

- - -

- - - - - - - - - - Jun 30, 2015 - - - | Comments - -

- -
- - -

Hello World!
-此乃开博第一文也!
-折腾了一整天,终于在 Openshift 上(本来就不是让你放在这里的)开了这个 Octopress 。人家本来说的就是“A blogging framework for hackers”,看来自己距离 hacker 的那种级别还有相当遥远的距离。
-忙活了一整年,在不得消停的压力中熬完高三,在艰险与激情中搞定高考,然后就是在忐忑不安中知晓成绩,挑选专业和大学。。。
-终于,我获得了大约 2 个月的时间可以做自己想做的事,研究自己喜欢的东西。
-似乎,忽然间就自由了呢。。。
-规划了一年多的计划终于可以付诸行动,这个 Blog ,当然也是其中之一。
-未来又会是怎么样的?可能答案就会出现在以后的文字中吧!
-最后感谢初春静流,正是他美丽的花园 ,把我吸引到了 Octopress 这片神奇的土地。
- -春上冰月
-2015.6.30 -

-
- - - - -
- - -
- - -
-
-

- Copyright © 2016 - 春上冰月 - - Powered by Octopress -

- -
- - - - - - - - - - - - - - - - - - + \ No newline at end of file