分類
說說

13123010

过两天迷笛,于是想先更新几篇公司的文章,到时候用手机把状态改为发布就行了。可是试了Opera Mobile和自带Webkit浏览器都不行,想着下个Chrome吧一看最低要求安卓4.0,最终试了下Opera Mini居然可以,Opera的服务器真是强悍!顺便说一句,公司的网站用的是万网的快速建站建的,总体不好用,但是很稳定。

分類
其它

Lost Highway

I'm a rolling stone all alone and lost
For a life of sin I have paid the cost.
When I pass by all the people say
'Just another guy on the lost highway.'

Just a deck of cards and a jug of wine
And a woman's lies make a life like mine.
Oh the day we met I went astray
I started rollin' down that lost highway.

I was just a lad nearly twenty-two
Neither good nor bad just a kid like you
And now I'm lost too late to pray
Lord I've paid the cost on the lost highway.

Now boys don't start your ramblin' round
On this road of sin or you're sorrow bound.
Take my advice or you'll curse the day
You started rollin' down that lost highway.
分類
网站

wordpress301重定向

这个说来简单,但是还是要记一下的。尤其是wordpress开启了固定链接,本身已经有个.htaccess文件了。在加入转向代码时就要注意顺序,要把转向链接放在前面。我是从pggdt.mypressonline.com转到ft.wupo.info的,整个.htaccess文件内容如下:


RewriteEngine on
RewriteCond %{HTTP_HOST} ^pggdt.mypressonline.com [NC]
RewriteRule ^(.*)$ http://ft.wupo.info/$1 [L,R=301]

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


# END WordPress
分類
网站

不推荐使用awardspace空间

由于freeidc换了域名,服务仍旧正常,我就又回来了,现在的域名是yuns.pw。awardspace.com用的太难受了。

  • 单个文件大小限制2M,我用的webp图片,也没什么问题。
  • 空间250M,月流量5G,也还可以。
  • 装完wordpress发现无法修改之前的文章,后来我直接在数据库修改的。
  • 再后来发现添加新文章有时也会莫名失败,无法发表,感觉就是内容稍长一点而而已。
  • Akismet无法使用,完全连不上Akismet的服务器。
  • 用我家的联通网络访问巨慢,公司铁通到还过得去。但是cpanel无论那个网络都慢的想死。
  • g+代码无效。

本文更新於 2014/09/04。

分類
Linux

Ubuntu安装fcitx中文输入法

听说fcitx中文输入法是较为先进的中文输入法,而且拥有相对漂亮的皮肤,当然亮点还是能支持云输入法,众多优点当然要试一下啦。要安装fcitx中文输入法,依此在终端执行如下命令:

<code>sudo add-apt-repository ppa:wengxt/fcitx-nightly</code>
<code>sudo apt-get update</code>
<code>sudo apt-get install fcitx fcitx-config-gtk fcitx-sunpinyin</code>
<code>sudo apt-get install fcitx-table-all</code>

下面两条命令是可选的,第一个是设置fcitx为默认输入法,第二个是为防止乱码所安装的uming字体。

<code>im-switch -s fcitx -z default</code>
<code>sudo apt-get install ttf-arphic-uming</code>

最后需要重启生效。如果没有中文输入法出现,可以在Configuation里点“+”,然后反选Only Show Current Language,在下面输入框里输pinyin就可以添加中文输入法了。默认Ctrl+Space切换输入法,Shift切换语言,中文下按Enter输入英文。

分類
其它

京东摇啊摇

京东手机客户端最近搞很多活动,其中一个就是摇啊摇,会摇到特价商品和小面值京券,每位用户每天可以摇3次。

但是我发现,通过修改/sdcard/jingdong/json/shake_cache.txt就可以获得多次摇的机会。只要用文本编辑器打开shake_cache.txt,将最后一个数字修改为3,再保存就可以了。修改为更高数值客户端仍会识别为3且再摇一次后变为2。

此法并不能无限摇下去,我每次也就摇个三十次左右就不行了,应该是服务端也有记录(后来发现一天之内间隔一定时间或者换其他IP还是可以继续摇的)。这个其实已经增加了几率,不要太贪心。顺便说一句,京东那个flash的在线打虎游戏用数位板玩真是无敌了,可惜这个中奖率也是太低。我装V3.1.1的时候可以无限的摇下去,但东西都太烂。

如过你的手机上装了ConnectBot的话,可以另存并执行下面的脚本来快速修改shake_cache.txt文件。

#!/system/xbin/sh
cacheFile=/sdcard/jingdong/json/shake_cache.txt
mdate=`date +%Y-%m-%d`
str="$mdate:3"
echo $str > $cacheFile

如过你手机root了,更好的方案是将此sh放在/system/xbin里这样进入ConnectBot即可直接运行。另外谷歌拼音输入法有上下左右方向键,大家都知道按上即可选择上一条命令。

再上一段python代码:

#!/usr/bin/python
import time

filepath="/sdcard/jingdong/json/shake_cache.txt"
#filepath="testfile"
def jd():
  try:
    f1=open(filepath, "r")
    s=f1.readline()
    lenth=len(s)
    lenth1=lenth-1
    print i
    if s[lenth1]=="0":
      try:
        f2=open(filepath, "w")
        f2.write(s[0:lenth1]+"3")
      except IOError:
        print "Error: can't find file or read or write data"
      else:
        print "Modified"
        f2.close()
  except IOError:
    print "Error: can't find file or read data"
  finally:
    f1.close()

i=1
flag=1
while flag:#15秒查看一次文件,只查看40次(运行600秒)
  time.sleep(15)
  jd()
  i+=1
  if (i>40):
    flag=0
exit()
分類
說說

13121815

 SULK