博文

目前显示的是 十月, 2014的博文

别用Windows了,拥抱开源操作系统

图片
为啥不再用Windows 价格太高 微软向来被戏称为“M$”,其Windows操作系统和Office系列办公软件贵得离谱,而这两种软件恰好又是我们每天用的最多的软件。虽然在中国,盗版操作系统和软件相当普及:随便去一家电脑城装个系统,一键GHOST,连Windows和Office都有了,但系统更新和维护又没有保障。既然有开源、免费、社区维护的Linux操作系统,为什么还要用Windows呢? 太臃肿   Windows系统有个人尽皆知的特点:越用越慢。当时我买的正版Windows 7家庭版操作系统,用了这一年多,现在都慢成什么样子了,简直不忍直视:开机进入桌面后要等上10~20秒钟才能开始操作;打字的时候键盘都按完了,好几秒钟之后屏幕上才跳出字来。原先还不太明显,最近一阵子卡得我实在是没耐心了,说什么也换了Ubuntu,实在是受不了Win7的迟钝反应了! 开发环境不如类UNIX系统   这一点对于非开发者来说倒是不太明显。不过最近我在Udacity上学习一些软件和Web开发课程时,才深切体会到“Windows是最烂的开发平台”这句话的含意。有兴趣的去搜索引擎上搜一下“为什么说Windows是最烂的开发平台”,自己看一看吧。 不过……   Windows也不是一无是处。好多游戏都是针对Windows平台开发的,如果你喜欢玩游戏的话,就一定要用Windows了。另外,如果你喜欢经常打开XX卫士给电脑扫描、体检、评分,那Linux也是不适合你滴。 :) 此外,我实在是想不出还要用Windows而不用Linux的理由了。 安装Ubuntu操作系统   在众多的Linux发行版(distributions)中,最受大众欢迎、操作最简单、体验也最好的版本当属Ubuntu了。这个系统在国外的普及率是相当高的(估计大家也都不愿意花钱,或者是受够了M$的压榨了:)),而在国内知名度并不高。Ubuntu的安装方法很多,但最省心的办法还是从光盘安装,就像装Windows一样。下面开始安装。   首先登录Ubuntu的官网( www.ubuntu.com ),进入Download栏目,下载Ubuntu操作系统的光盘镜像(.iso)文件(32位和64位随意)。下载完毕后把光盘镜像文件刻录到DVD光盘上。(刻录

Learning at Udacity: My First Applied Python Code!

Woo-hoo! I've just finished my first applied Python code -- the code below returns the days between two given dates. Congratulations to myself! :) I think this is a really tricky problem for a newbie programmer. However, with the instructions by my instructor Dave at Udacity, I finally made it! :D The most important thing I've learned through this project is that we should break big, scaring problems down to smaller sections, then focus on solving those sections. This is pretty familiar to everyone, but I must say that I've never experienced the importance of this principle until I've done this project. def isLeapYear(year):     if year % 100 == 0:         if year % 400 == 0:             return True     else:         if year % 4 == 0:             return True     return False          def daysInMonth(year, month):     if month == 1 or month == 3 or month == 5 or month == 7 or month == 8 or month == 10 or month == 12:         return 31