棚户区专题 -- 重庆十八梯

大部分的人对于新潮、时尚都很追捧,不过很奇怪的,我对那些破破旧旧的东西总有一种好感。

“旧”是种烙印、历史,就像妈妈一闻衣服就知道是我的还是爸爸的;

“旧”也会带来惊喜,当找到失落已久的东西,难免会有窃喜;

“旧”意味着即将逝去, 也就是大家最讨厌听到的“老”的意思吧;

而棚户区是城市最旧的地方,也是最吸引我的地方。而我们不应该忘记的不是那块地,而是那种精神。

重庆十八梯

由来

十八梯的来历,大概是在明朝的时候,这里本来有口水井,附近的居民都吃这口井里的水,这口水井距离居民的住处正好十八步石梯,因此人们把这里称作“十八梯”。

每个棚户区的形成都有原因的

Travel Map via Google Map Engine

尝试了一下Google Map Engine Lite, 用最新的Google Map UI设计的,但似乎现在个人定制化还不是那么的强

反正我希望最后我能够做出一个map,然后点击哪个景点就可以出来那个点的我拍的照片或者blog, 这样多cool呀

for detail please check this url

Wedding of Chu yunwei

My Friend 储云蔚's Wedding

All picture in gallery are thumbnail file, so if u want the most clear file, pls contact me, thx

下午茶 之 版权问题

楔子

4月23日, 为国际图书与版权日,号称中国最大数字高清门户网站的 思路网遭警方取缔,警方以涉嫌侵犯知识产权为由逮捕了包括网站CEO周某在内8人,旗下30名员工面临拘留。

与此同时,国内影视分享网站人人影视,CHDBits,CNHD及TTG论坛也已相继关闭。 虽然这个活动就像3.15一样一阵风而过,但是还是有很多问题值得深思的

1. 知识产权

这次我不讨论视频等版权问题,先讨论关于图片和文字有关的,也就是如何保护现有用户的idea和图片的问题

归属问题

如果用户在网站发了一个blog/idea等等,这个版权究竟归谁拥有,是用户本身,还是网站的?

  • 首先著作权有一个叫做自动获得原则,是指作品创作完毕,不需要履行任何手续,作品本身也不需要载有任何标记,便自动地无条件地享有著作权。(<<著作权法第23章第1节第1条>>)

  • 目前很多博客网站等 都在协议内规定了内容发表之后,和用户签订协议,迫使用户放弃了部分著作权,或者让公司同时拥有授权。比如金山词霸的论坛使用协议,会有一个“用户授权”条款,然后第一条就是 发布用户授权本公司可在法律允许的范围内就发布作品加以使用, 这样的话,该网站就可以合法转载等操作了。

Rails Study

Rails Philosophy

  1. DRY – “Don’t Repeat Yourself” – suggests that writing the same code over and over again is a bad thing.
  2. Convention Over Configuration – means that Rails makes assumptions about what you want to do and how you’re going to do it, rather than requiring you to specify every little thing through endless configuration files.
  3. REST is the best pattern for web applications – organizing your application around resources and standard HTTP verbs is the fastest way to go.
    • Using resource identifiers such as URLs to represent resources.
    • Transferring representations of the state of that resource between system components.

Install Rails

  1. according to steps on offical website do
    1
    
    gem install rails; rails new rails-test; cd rails-test; rails server
    
  1. when running rails server i met such problem:
    1
    2
    3
    
    $ rails server
    /home/zheng/.rvm/gems/ruby-2.0.0-p0/gems/execjs-1.4.0/lib/execjs/runtimes.rb:51:in `autodetect': Could not find a JavaScript runtime. 
    See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
    

This means i need a js engine, and i install the nodejs instead, and it's ok

  1. try to open localhost:3000, and you'll see welcome page

  2. Switch to MySQL instead of SQLite3:

    • the config file is in config/database.yml and change the "development" section like that
    • add gem 'mysql2' to Gemfile
    • run rake db:create to check is there any problem
      1
      2
      3
      4
      5
      6
      7
      8
      
      development:
          adapter: mysql2
          encoding: utf8
          database: rails-test
          pool: 5
          username: root
          password:
          socket: /var/run/mysqld/mysqld.sock
      

Remember the test section will also be set to mySQL