稍微吐个槽| Just some thoughts about the rumors of 4G network

I’ve recently been seeing posts talking about how fast the 4G network is going to be and how ‘absurd’ the prices for data packages are depending on the ‘fact that the allowance could be depleted within several seconds.
There are mainly 2 misunderstandings in here:

    1. Mb/s is not MB/s

Some people are not aware of the differences between Mbps and MBps. They are quite similar, however, the relationship between them is actually:
8 Mbps (Mega bits per second) = 1 MBps (Mega bytes per second)
Generally the bandwidth we see in every advertisement are using the Mbps as it obviously tends be a bigger number.

    2. Being able to reach a higher speed doesn’t mean using your allowance at that rate

Some people are saying things like ‘I pay 40 RMB for 300 MB data allowance, which can be used up in a few seconds under the 4G speed’. Despite the fact that he made the aforementioned mistake, he is also assuming that during his time of using the network connection, data will be constantly downloaded to his phone at the highest speed causing his remaining allowance to shrink at the same speed. This can be true if he is trying to stream an online video, which is an unwise action considering the allowance is relatively not big. Most webpages are only within several hundred kilo bytes in size and applications that utilize Internet access tend to consume maximum allowances of a few mega bytes per day, which is acceptable.
In a nut shell, what the increase in speed does is simply reducing the time for data to be fetched to your phone.

电话销户了 | Phone number got canceled

According to an interesting policy in China Mobile, if your phone account is in debt for 90 days, it will be cancelled, which means, it will be recycled and made available in the market sometime later. Due to my very inactive willingness of using my phone, my number qualified this policy and is now gone. Somehow I’m feeling a little sad about it because I spent much time using it. But as it is indeed not playing any role in my life, maybe it’s better to not waste this resource. Anyway, I would really like to see one day that phone numbers like this can be turned into pay-as-you-go accounts and be activated whenever needed, just like the phone numbers in the UK. Although it is not likely to happen in countries like China where resources are not so abundant when compared to its population.

Python 笔记01| Notes about Python 01

近几日花了挺多时间在这上面,效果也较为显著,PMangar基本被实现了。期间有一些心得在这儿写下来做记录,顺便也分享:
I’ve been working on Python these days and here are some notes for it:

  1. Python中不支持在string.find(str)中使用正则表达式,即str只能是string。
    str in string.find(str) can not be a regular expression, it should be a string.
    Code:

  2. 使用for i in range(a,b)时,i的值可以等于a到不b-1而不会等于b。同理对于i[a:b]会截取i的第a至b-1个元素。
    In Python, any operation involving a range of a to b means the value can be from a to b-1.
    Code:

  3. 当已知一个字符的Unicode编码时,例如a=”u4eba”,可以通过unichr()和int()将其转换为相应字符的Unicode形式即b=”u4eba”
    When you know the unicode number of a charactor, you can get the corresponding character by using unichr() and int().
    Code:

PMangar 再启动计划| PMangar Reviving Project

距离上次编写和使用PMangar已经有些时日了,自从换了手机之后,很少再拿起HKC折腾。原因有两个,一是电池不经用,持续操作下恐怕撑不过2小时,其二是因为重量可观,远没有5630那么轻便。但是不得不说的是,触摸屏还是要方便许多,自从在手机上编程开始,日益发觉触摸屏+全键盘才是王道,缺其一便会增加许多不便,当然了,十二键数字键盘是最杯具的。

此次重拾主要是因为“身处国外,网速很快”,无论是校园WiFi还是手机3G都相当给力,于是本着不能浪费资源的想法,打算继续在手持设备上使用漫画下载软件。另一个推动力则是5630xm的系统,由于S60对Python的官方支持使得Symbian上的Py软件迅猛发展,相应的S60上Python的开发也越来越快,appuifw和e32的用法都能找到很多参考资料,所以这次转移应该不会有什么难度。

其实在开发WM上的版本的时候就已经有了更换图源网站的念头,但是当时一经做出便没有了前进的动力,改得刚好够用便满足了,直到后来由于google编码的问题而无法搜索的时候也由于紧张的学业而停止了开发。此次既然下定了决心,便换筋洗髓,从闲人改用了178。选择178的原因有:1. 漫画浏览页面提供了“右键另存为”链接,意味着图片可供下载,不用顾忌其余网站的所谓“版权问题”。2. 178的图片URL计算模式与主流网站一致,章节内任一页都包含了全部图片地址的列表,只要稍加处理便能直接获取。

目前转移工作基本已经完成,基本功能全部由菜单实现,GUI什么的等于没有。之后要做的就是:

  • 多线程下载。据说Python本身就有相应的函数,貌似是threading什么的。
  • 简介及缩略图获取及显示。这个需要对appuifw做些研究。
  • 自动更新。这个是个难题,短期内无法解决。
  • 章节批量下载。这是通向自动更新的第一步,可能要在downlist上动点脑筋,其次schnam如何随图片变化也是个问题,偷懒的解决方案就是Comic目录+抽取下载地址倒数第二个‘/’之后部分。
  • 最新更新漫画预览及获取。这就要求对178的主页进行分析并且提取简介和缩略图。
  • 多图源切换。这个基本等于重写60%程序,178已经不错了,不到万不得已俺是不会去浪费这个时间的。当然了,或许以后能够找到提高效率的方法也不一定呢。

以上功能若是实现的话,可能就能够与PC上现有的某些漫画下载软件匹敌了吧。

—————————-Lang Sep——————————

Time is ticking and I have to prepare for my presentation in this afternoon.

In a nut shell, this is a comic downloading application running on Python on a Symbian phone. I will update more info in English when time permits.

开发中……Windows Mobile上的漫画批量下载器……20091217-Update!

项目名:PMangar
目前版本:0.03
使用Pythonce 2.5编写。无网络连接时可能需要使用Mortscript开启GPRS连接。
漫画源暂时取自“闲人动漫”,仅供学习交流动漫画法技巧和构图方式使用,请于24小时内删除。

预计功能:
(╳)1.自动获取最新更新列表。
(√)2.搜索并获取相应漫画的章节列表。
(√)3.获取目标章节图像地址及图像总数。
(√< ╳)4.用户友好的界面。 (√)5.处理优化(避免重复操作。)
(√< ╳)6.可视化章节选择(列表)。
(╳)7.多线程下载恐怕要放到最后了
(╳)8.多漫画源选择。
(╳)9.漫画简介及缩略图获取。
(√)10.模糊搜索&确认(由于用的是股沟,效果不错)
(╳)11.以下待添加。 Continue reading…

现在的信息骗局啊…

近日来很是受其所扰,手机上不断地接到各种各样的某某活动赢得话费的名为"温馨提示"的"通知",语气很诚恳,还提示我抓紧时间,活动快结束了之类的.末尾统统都提供了一个短信指令和对应端口,或者是一个电话号码和你需要拨入的数字. 当然了,这种东西我要是信了就算白玩这么就手机了.
一般来说这种东西转交给中国移动就搞定了,偏偏那些犯罪分子不惜血本地使用了彩信!这下麻烦了,没法提交,只能默默忍受了,实在悲剧…..
话说今天中午收到一条相对有点创新意识的诈骗信息,说我被李咏抽中了"非常6+1"的二等奖,(笑)随即提供了相关网站和验证
,虽说很愚蠢,但是也算是创新之举了,总算是让我再受苦之余多了一点笑料吧,还是希望能够有更好的过滤系统,也希望犯罪分子们能够收敛或者改行…..