15款杀毒软件大赠送-总有一款合适你吧!!!

av-marketplace

这个AV公司又开始送杀毒软件,上次送的活动还是给力的,上次放松后我看了一下还差一个星期就是半年了,而他送的软件都是半年使用时间,卧槽变相免费赠送啊!!!虽然这个AV公司会送一些本来就是免费的杀毒软件,不过怎么说PC和Mac和Mobile的都送,确实里面有不少的好杀软~~~~

the-av-marketplace-antivirus(点击放大)

Av公司活动地址:

https://www.facebook.com/security/app_360406100715618

 

PC版

  • McAfee Internet Security
  • Kaspersky PURE Total Security
  • Total Defense Free Anti-Virus plus Free Cloud Based Security Assessment
  • Microsoft Security Essentials
  • Webroot SecureAnywhere Antivirus 2013 for PC
  • Norton AntiVirus
  • Trend Micro Titanium Internet Security 2013 for Windows
  • Avira Free Antivirus
  • Panda Internet Security 2013
  • AVG AntiVirus FREE 2013
  • avast! Free Antivirus

其中绿色的这几个是收费的,喜欢就下载吧!!!!比较推荐一下Webroot这款杀毒软件,听说很牛逼,没有用过,好吧,算是道听途说吧~~~~

 

Mac版

  • Avira Free Mac Security
  • Sophos Anti-Virus for Mac Home Edition
  • Norton AntiVirus for Mac
  • avast! Free Antivirus for Mac
  • Kaspersky Security for Mac
  • Trend Micro Titanium Internet Security for Mac 2013

 

Mobile版

  • Norton Mobile Security Lite for Android
  • McAfee Mobile Security

希望半年后AV公司继续送吧!!!!!

有信网络电话注册签到免费领话费

上次介绍了一个叫Centmobile的网络电话,我的好友多未给我留言说还是国内的VOIP比较方便,然后并推荐了有信网络电话给我,在我今天玩了一下感觉有信网络电话的确不错,和Centmobile相比还是有很大的优势,比如显示的不是美国的号码,打电话方便。不过最重要的是有信网络电话可以通过签到让它一直免费下去,当然注册也是有奖励的了。

157344678_org.v1350818128(点击放大)

有信网络电话介绍

有信是一款基于通讯录的免费电话软件,支持有信用户间免费语音呼叫,对方不在线或非有信用户时,还支持网络电话免费拨打全国座机和手机,真正实现通话0费用。并且支援各个平台。这个是官网介绍,我还是没有看懂什么是实现通话0费用。不过总的来说是免费电话了很不错的了,注册还送1元钱。打国内长途价格为5分钱/分钟。

 

有信网络电话注册-注册就送1RMB

1.先说明一下,注册就送1RMB(国内电话为5分钱/分钟),加上注册当天就可以去签到,可以说最少赠送了20分钟的国内通话时间。

 

2.注册地址:

http://www.uxin001.com/

Ps.关于这个注册,需要自己的手机号码,不过这个注册比较安全的一点就是只是用来收帐号密码,而并不是接收验证码。当然帐号就是你的手机号码。这个是我的注册链接哦~~Ps.注册推荐可以填写小moe的号码12588021,这样小moe可以得到一点话费(先谢了哦~~~)。

 

3.获取你可能就要问了,怎么注册了登录了你的帐号显示账户金额为0元呢???因为你没有激活账户。激活账户的方法是在电脑上安装有信的客户端,安装好登录有信即可看见1RMB~~~

下载地址:http://www.uxin001.com/down/index.html

157347618_org.v1350818963(点击放大)

这里的多的3毛钱是我签到得到的~~~~又是6分钟话费啊!!!!不错不错~~~~

 

有信网络电话签到送话费

1.有信虽然打电话和便宜的了5分钱/分钟,但是送的1RMB迟早会用完的了~~不过我们可以签到~~~

 

2.获取你登录了你的PC客户端,没有找到签到的地方~~~不用急~~~PC版的客户端暂时还不支持签到,不过貌似说是10月底就可以支持签到了~~~坐等更新~~~

 

3.支持签到的只有手机客户端,其实手机客户端签到有好处,至少我们每天都不会忘了去签到~~

手机客户端下载地址:http://www.uxin001.com/down/index.html

尼玛,连Symbian都支持,太感动了~~~~~怀念ing~~~

 

157349253_org(点击放大)

4.我的defy中安装了有信的Android客户端,在“赚话费”栏下选择了签到,获得了6分钟的话费,这个对于我这种平时基本不会给别人打电话的人来说,足够了一个月下来还是有好长的时间啊~~

 

5.当然你还可以通过别的方法去赚话费,比如邀请好友,安装有信推荐的一些软件之类的获取~~~

Skype网络电话免费无限拨打一个月

又会学校了,木有时间上网了,今天看了一下貌似没有什么多好的免费资源,这个网络电话呢?倒是有一个不错的好康,这个Skype可以免费拨打一个月,好几个国家了的,但是貌似没有包括我们天朝,相对而言邻国的日本和香港到可以获取,而台湾呢也不幸中招,没事随便找个可以的国家的IP就ok~~~

skype-free-1-month(点击放大)

1.这个免费价值10.49欧元

2.可以打七个国家的移动电话,免费的哦,包括美国,加拿大,香港等

3.可以打40多个国家的固定电话

活动地址:

http://www.skype.com/intl/en/prices/subscriptions/unlimited-world

更多活动详情在官网上看吧~~~~

从DreamSpark免费获取Win8及Media Center

Win8也上市几天了,不过之前的MSDN版本出的比较早,很多人都应该换上了Win8吧~~~桔子因为有MSDN订阅所以直接使用序列号激活了正式版,总的来说,目前这个阶段激活Win8还是比较简单的问题了,但是如果能使用上正版的Win8不是更好吗?免费获取吧!!!

win8-dreamspark(点击放大)

当然这个优惠是DreamSpark的了,需要验证学生身份,这个优惠只有学生可以获得,当然如果你没有成功的验证学生身份,可以通过俄罗斯教育网的验证码来激活你的DreamSpark账户,具体方法看这里《免费Microsoft DreamSpark验证码获取及验证教程 》。

ok激活了记得DreamSpark账户后,就可以去申请这个优惠了~~

申请地址

http://www.onthehub.com/#back-to-school-discounts-on-windows-8-download

当然还是希望大家支持正版软件的开发,抵制盗版软件~~~~~

 

在安装完Win8 Pro后可以再限时免费获取Media Center,这个是Live上的,所以不要求是学生账户outlook邮箱即可~~~

win8-media-center(点击放大)

直接上地址:

http://windows.microsoft.com/en-CA/windows-8/feature-packs

网页中间输入你的邮箱即可~~要等一会才可以收到Media Center的邮件~~~~~等ing~~~~~~

Mac/Linux下的批量文件编码转换

用了很多次的东西,放到自己的blog记录一下。

1. 新建一个文件夹,这里取根目录下的文件夹 encoding ,然后将要转换的文本拉入这个文件夹。
2. 打开终端,输入以下代码:

cd /encoding
find *.txt -exec sh -c "iconv -f GB18030 -t UTF8 {} > {}.txt" \;

上面的命令是针对GB18030,如果你转换前的编码为GB2312,将 GB18030 代替为 GB2312 即可。同理,若文件名后缀不是.txt,则做相应的修改即可。

10大最适合编程的字体推荐下载,让代码看起来更美更舒服!

现在有事没事就喜欢写写代码的人越来越多了,对于成天盯着屏幕工作的开发人员来说,编程代码可能是每天见得最多的东西了。可是绝大部分人都一直使用编辑器默认的字体,其实,换一套适合自己的编程字体不仅能让代码看得更舒服,甚至还能提高工作效率的!

如果你有想过换一种编程字体,却不知道哪里找合适的,那么看看异次元软件世界为您推荐的10款最适合编程的字体吧,这些字体能让你的代码瞬间“优雅”起来!换一种字体,换一番心情嘛。当然,除了编程之外,经常需要编辑英文文档的朋友同样适用……

前言:

下面字体的排序是作者的主观感受,每个人的喜好都不一样。建议您都试试,按照自己的喜好来选择。另外,还在使用 Windows XP 的同学,如果您希望显示到如截图中清晰的字体效果,则必须安装微软的ClearType设置程序对清晰度进行设置。

10. Courier

也叫Courier New,这大概是我们最熟悉的字体了,基本上所有系统都有。很不幸,很多终端和编辑器都默认使用此种字体,虽然不会影响使用,但它太无趣了。如果你正在使用这种字体,建议调大一点,并打开系统的 anti-aliasing (抗锯齿) 设置。

clip_image001

下载 Courier New 字体

9. Andale Mono

比Courier稍好,也是常见的默认字体。我感觉字母太宽了,字符间距也比较蠢。

clip_image002

下载 Andale Mono 字体

8. Monaco

Mac的默认字体,好像也只有Mac上有。小字号的时候表现不错,而且再大些也不寒碜。

clip_image003

下载 Monaco 字体

7. Profont

与Monaco类似的位图字体,你能够在Mac, Windows和Linux上面使用。小字号的时候表现好。非Mac平台上Monaco的最佳替代。喜欢小字号且不怕眼睛疲劳的同学可以考虑。

clip_image004

下载 Profont 字体

6. Monofur

独特的等宽字体,各种字号下都表现不错,但是需要设置anti-aliasing。怀旧而且喜欢与众不同的人推荐。

clip_image005

下载 Monofur 字体

5. Proggy

干净的等宽字体,好像很受Windows用户欢迎,但在Mac上也不错。使用时,字号可以小一点,无需anti-aliasing。

clip_image006

下载 Proggy 字体

4. Droid Sans Mono

开源字体,可以在这里下载,适合手机屏幕。是等宽字体中最突出的一个。可惜0和O区别不大。

clip_image007

下载 Droid Sans Mono 字体

3. Deja Vu Sans Mono

我最喜欢的免费字体系列,以Vera为基础,但是比后者提供更多字符了。适于任何字号,需要anti-aliasing。

clip_image008

下载 Deja Vu Sans Mono 字体

2. Consolas + 中文雅黑混合版

Consolas 是商业字体,专门为微软设计,微软不少产品上都有,所以很可能你的系统上已经有了。需要anti-aliasing。如果不是商业的,我可能就把它放第一了。Consolas仅含英文字母部分,这里提供的是雅黑中文+Consolas英文的混合体,即使代码里有中文注释显示效果也能很好的!

clip_image009

下载 Consolas 雅黑字体

1. Inconsolata

我最喜欢的等宽字体,免费。我遇到它之后,很快就把原来的默认字体Deja Vu Sans Mono抛弃了。真正适合任何字号的好字体。感谢它的创造者Raph Levien!

clip_image010

下载 Inconsolata 字体

1分钟内保护你的Linux服务器—Server Shield v1.0.2

Server Shield是一个轻量级的linux服务器安全加固软件。它安装简单、稳定,能够直接有效的使你的服务器抵御黑客攻击。

特性

Slowloris Protection
Firewall Hardening
TCP Hardening
ICMP/Ping Flood Protection
DoS Protection
Spoof Protection
FTP/SSH Bruteforce Protection
Automatic Security Updates
Disables Bash History
DNS Amplification Protection

依赖

yum-security
iptables
net-tools
sed
gawk
git
gcc

安装

 

git clone https://github.com/Brian-Holt/server-shield
cd server-shield;chmod +x sshield;mv sshield /etc/init.d
/etc/init.d/sshield start

 

How to Install Java on Linux

Java allows you run cross-platform applications that can run on Mac OS-X, Linux, and Windows (among other OSs) without modification. Here’s how to install it on a GNU/Linux machine.

Steps

Manual Non-RPM Method

This is the generic method that also works with GNU/Linux clones that do not support RPM. It does not require administrator rights and allows installing multiple Java versions on the same computer.

  1. 1.Download the JDK.[1].
    • Click on the “Download” link under Java Platform (JDK) 7u4.
    • Accept the license and continue.
  2. 2.Select the right download. Under the “Product/File Description” you should pick your corresponding Linux option. For example, if you’re running Linux x86 (32-bit), you need to choose the corresponding “*.tar.gz” version.

    2943-21

  3. 3.Download the file as a .gz. Save it to your GNU/Linux machine.
  4. 4.Switch to the directory where you saved the file. You do not need to be a root and only must have the write access to the folder where you wish to install Java. If your administrator is not supportive, you may need to place Java into your home folder or (even better) on some shared network location
  5. 5.Uncompress the file. For example, you could do this in your home folder. Uncompressing will create a folder called “jdk1.7.0_04”. Java is now installed.
    • The installed Java jre is rather independent and can be easily moved into another place just by copying all its files.
    • You can install multiple different jre’s this way: they coexist together and can be used if some software requires the older version to run.
  6. 6.Launch Java. The Java executable you need to launch is located in a subfolder, called “bin.” This way of installation will not configure a default Java command for you — you must do this manually or always include the full path in your startup script.

Manual RPM Method

This seems like a “more civilized” way to install Java because it allows the installer to check the dependencies on some system libraries that may be missing. However, it does not support versioning easily and may fail even in some systems that do support RPMs. (Though the current Java installations are rather self-dependent and the required minimal requirements are usually satisfied anyway.)

  1. 1.Download the JDK.[2].
    • Click on the “Download” link under Java Platform (JDK) 7u4.
    • Accept the license and continue.
  2. 2.Select the right download. Under the “Product/File Description” you should pick your corresponding Linux option. For example, if you’re running Linux x86 (32-bit), you need to choose the corresponding “*.rpm” version, for example “jdk-7u4-linux-i586.rpm”.

    2943-2

  3. 3.Download the .rpm file. Save it to your GNU/Linux machine.
  4. 4.Log in as root and switch to the directory where you saved the file. Or, become root by running su and entering the super-user password.
  5. 5.Install the rpm file by executing ‘rpm -ivh filename.rpm’, where filename is the name of your .rpm file. (Such as jdk-7u4-linux-i586.rpm).
    • You may receive a message telling that program “rpm” is not installed.
    • If that is the case the program “rpm” is not installed. You need to install it writing: sudo apt-get install rpm. Enter your password, and you’re finished.
  6. 6.Create symbolic links. If you want to be able to execute this version of Java interpretor or compiler from any directory on your GNU/Linux system, you will have to create a few symbolic links:
    • sudo ln -s -v jdk1.7.0_04/bin/java /usr/bin/java
    • sudo ln -s -v jdk1.7.0_04/bin/javac /usr/bin/javac
    • Note that by installing using this method there could be dependencies that fail. It is better to use the package installer that handles all dependencies for you, since you will not be able to use Java correctly until the dependencies are resolved.

Ubuntu Method Using a GUI Package Manager

  1. 1.Open a package manager. You can use Synaptic or Adept Manager.
  2. 2.Install Open JDK. Java JDK and JRE are not available for installation through GUI Package Manager. You’ll need to install Open JDK instead.
    • Perform a search for openjdk-7-jdk.
    • Select openjdk-7-jdk for installation. Depending on the package manager, you may be asked if you wish to install the required dependencies or it will automatically select them without confirmation. For example, the openjdk-7-jre was already selected by Synaptic Package Manager. If you want to use Java as a plug-in in your browser, then also select to install icedtea-7-plugin.
  3. 3.Apply the changes. Click the button to apply the changes. Depending on the package manager, a pop-up window may appear asking for you to confirm the changes.
  4. 4.Wait for Java to install.

Ubuntu Method Using a Console

  1. 1.Enter one of the following commands into your console program:
    • sudo apt-get install openjdk-7-jdk openjdk-7-jre (if you don’t want the browser plug-in)
    • sudo apt-get install openjdk-7-jdk openjdk-7-jre icedtea-7-plugin (if you do need the plug-in)
    • apt-get automatically takes care of the dependencies and lists the changes for confirmation.
  2. 2.Enter y to confirm the installation.

Ubuntu OpenJDK Method Using a Console

  1. 1.Ubuntu no longer supports the Sun Java package in favor of OpenJDK.
  2. 2.Enter one of the following into your console program:
    • If you do not want the browser plugin, sudo apt-get install openjdk-6-jre.
    • If you do want the browser plugin, sudo apt-get install openjdk-6-jre icedtea6-plugin
    • If you’re working on a server without graphics, and want an environment just for running server applications (e.e. Tomcat or Glassfish), sudo apt-get install –no-install-recommends openjdk-6-jre-headless
    • If you need the full JDK (for writing Java programs): sudo apt-get install openjdk-6-jdk
    • apt-get automatically takes care of the dependencies and lists the changes for confirmation.
  3. 3.Enter y to confirm the installation.

Tips

  • It’s much easier to install from the repositories than from the download on Oracle’s site.
  • Even though it might be unfamiliar to you, using the console method is actually easier than the GUI method.
  • If you find how-to specific for your distribution we recommend using it because in some distributions, Java can be included in the software repositories (which you can benefit from).
  • On Red Hat 8.0 Linux, one could start a Nautilus file manager, desending to the directory, and click on the name of the rpm filename and activate the installation process. This does not work any more in Fedora Core 4 (other FC versions not tested). In reality, if you do this you will get a (warning) message saying that the file name indicates the file is not executable while the content of the file is of the type “executable”.
  • Another tip to follow progress of the rpm install is to use ‘rpm -ivv … ‘ which turns on theverbose output and gives you more info on the install as it progresses. You can do the same thing with other rpm actions to get rpm to be more verbose about what is going on.

Sources and Citations

  1.  www.oracle.com/technetwork/java/javase/downloads/index.html
  2.  www.oracle.com/technetwork/java/javase/downloads/index.html

让Mac OS X的终端多姿多彩

与Linux相比,Mac OS X的终端总是欠缺些什么。对了,是色彩,Linux的ls命令使用不同颜色区分各种文件类型,Vim编辑器也支持语法高亮,而Mac终端却总是以黑白示人。其实,只要稍微做一些工作,Mac的终端同样可以多姿多彩,请往下看。

彩色化ls的输出

Mac中BSD的ls命令可以使用-G参数彩色化输出的文件列表,需要配置LSCOLORS环境变量定义颜色,具体配置方法可以输入man ls查看。

不过,我推荐安装Linux使用的GNU Coreutils替换Mac的ls命令,因为:

  • Coreutils提供了配置工具,定义颜色代码更加方便;
  • Coreutils包含的不仅仅是ls,同时作为Linux用户,我更习惯于使用GNU的各种shell工具。

Coreutils的安装与配置方法如下:

  1. 通过Homebrew安装Coreutils
    brew install xz coreutils

    注:Coreutils并不依赖于xz,但它的源码是用xz格式压缩的,安装xz才能解压。

  2. 生成颜色定义文件
    gdircolors --print-database > ~/.dir_colors
  3. ~/.bash_profile配置文件中加入以下代码

 

if brew list | grep coreutils > /dev/null ; then PATH="$(brew --prefix coreutils)/libexec/gnubin:$PATH" alias ls='ls -F --show-control-chars --color=auto' eval `gdircolors -b $HOME/.dir_colors` fi

 

 

gdircolor的作用就是设置ls命令使用的环境变量LS_COLORS(BSD是LSCOLORS),我们可以修改~/.dir_colors自定义文件的颜色,此文件中的注释已经包含各种颜色取值的说明。

看看默认颜色的显示效果。
2012-02-27-colorful-terminal-in-mac_ls

grep高亮显示关键字

这个很简单,加上--color参数就可以了,为了使用方便,可以在~/.bash_profile配置文件中加上alias定义。

 

alias grep='grep --color' alias egrep='egrep --color' alias fgrep='fgrep --color'

 

Vim语法高亮

在Vim中输入命令:syntax on激活语法高亮,若需要Vim启动时自动激活,在~/.vimrc中添加一行syntax on即可。

 

 

 

一些必不可少的Sublime Text 2插件

Sublime Text 2是一个轻量、简洁、高效、跨平台的编辑器,方便的配色以及兼容vim快捷键等各种优点博得了很多前端开发人员的喜爱,当然也包括我,在看到小飞的介绍后,我就一直在用了。本文推荐一些好用的插件和扩展。

Sublime Text 2基本上是共享软件,免费版和收费版基本无区别,只是偶尔会弹框让你去购买,这个基本不影响使用。如果你不了解它,也可以看下小众软件的这篇详细介绍

安装Sublime Text 2插件的方法:

1.直接安装

安装Sublime text 2插件很方便,可以直接下载安装包解压缩到Packages目录(菜单->preferences->packages)。

2.使用Package Control组件安装

也可以安装package control组件,然后直接在线安装:

  1. 按Ctrl+`调出console
  2. 粘贴以下代码到底部命令行并回车:
    import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())
  3. 重启Sublime Text 2。
  4. 如果在Perferences->package settings中看到package control这一项,则安装成功。

如果这种方法不能安装成功,可以到这里下载文件手动安装

用Package Control安装插件的方法:

  1. 按下Ctrl+Shift+P调出命令面板
  2. 输入install 调出 Install Package 选项并回车,然后在列表中选中要安装的插件。

不爽的是,有的网络环境可能会不允许访问陌生的网络环境从而设置一道防火墙,而Sublime Text 2貌似无法设置代理,可能就获取不到安装包列表了。
好,方法介绍完了,下面是本文正题,一些有用的Sublime Text 2插件:

Zen Coding

这个,不解释了,还不知道ZenCoding的同学强烈推荐去看一下:《Zen Coding: 一种快速编写HTML/CSS代码的方法》。

zen
PS:Zen Coding  for Sublime  Text 2插件的开发者已经停止了在Github上共享了,现在只有通过Package Control来安装。

jQuery Package for sublime Text

如果你离不开jQuery的话,这个必备~~

Sublime Prefixr

Prefixr,CSS3 私有前缀自动补全插件,显然也很有用哇

pr

JS Format

一个JS代码格式化插件。

SublimeLinter

一个支持lint语法的插件,可以高亮linter认为有错误的代码行,也支持高亮一些特别的注释,比如“TODO”,这样就可以被快速定位。(IntelliJ IDEA的TODO功能很赞,这个插件虽然比不上,但是也够用了吧)

linter

Placeholders

故名思意,占位用,包括一些占位文字和HTML代码片段,实用。

Sublime Alignment

用于代码格式的自动对齐。传说最新版Sublime 已经集成。

align

Clipboard History

粘贴板历史记录,方便使用复制/剪切的内容。

DetectSyntax

这是一个代码检测插件。

Nettuts Fetch

如果你在用一些公用的或者开源的框架,比如 Normalize.css或者modernizr.js,但是,过了一段时间后,可能该开源库已经更新了,而你没有发现,这个时候可能已经不太适合你的项目了,那么你就要重新折腾一遍或者继续用陈旧的文件。Nettuts Fetch可以让你设置一些需要同步的文件列表,然后保存更新。

remote

JsMinifier

该插件基于Google Closure compiler,自动压缩js文件。

Sublime CodeIntel

代码自动提示

Bracket Highlighter

类似于代码匹配,可以匹配括号,引号等符号内的范围。

braket

Hex to HSL

自动转换颜色值,从16进制到HSL格式,快捷键 Ctrl+Shift+U

hsl

GBK to UTF8

将文件编码从GBK转黄成UTF8,快捷键Ctrl+Shift+C

 Git

git

该插件基本上实现了git的所有功能。

总结

好吧,大概就这些,如果你有常用的插件或者扩展,欢迎推荐。Sublime Text 2真是一款一见钟情的编辑器,每次和别人聊到编辑器时必荐的。。。 🙂