- 博客(15)
- 收藏
- 关注
原创 Security testing
最近在为一个网站做security testing, security小白对这类问题总结如下:1. SQL injection这类injection可以在text box或者url里面插入sql语句,比如'; DROP TABLE USER; - - 已有工具可供使用,如sqlmap2. XSS 预防XSS可通过加入header,具体参考content-security-p
2015-12-21 00:11:17
664
原创 Jasmine test for AngularJS nested callback
今天写了一个function,里面涉及了两个callback
2014-09-11 00:14:50
1404
原创 Cordova+Angularjs 开发IOS App
近期在开发Hybrid的IOS App,用的Cordova和AngularJS。Cordova前身叫PhoneGap
2014-07-10 00:08:01
1060
转载 What technical details should a programmer of a web application consider before making the site publ
The idea here is that most of us should already know most of what is on this list. But there just might be one or two items you haven't really looked into before, don't fully understand, or maybe neve
2014-05-20 00:13:39
1042
原创 Conditional validation on Symfony2 fom checkbox widget
这几天做symfony,遇到一个情形:有两行checkbox,Row1: Check
2014-04-15 00:33:39
830
原创 windows下使用ssh挫折记录
上次说到我尝试在windows下试图同linux一样ssh进入windows virtual box但是没有成功,中间走了好多弯路。。。1. 当我直接在windows cmd下运行vagrant ssh时候,得到报错信息:`ssh` executable not found in any directories in the %PATH% variable. Is anSSH
2014-02-03 22:47:27
2930
1
原创 在windows 7下创建windows server 2008 virtual box
在linux下创建linux virtualbox很容易,下载一个box vagrant up就好。但放到完全windows的环境下事情就便麻烦了许多。由于windows没有支持vagrant指令,首先需要下载vagrant-windows并且根据上面的步骤设置好box。也可以参考这个教程。好了,此时应该已经创建了一个基于windows 2008的virtual box和一
2014-01-27 00:24:33
990
原创 mac下安装启动Mongodb
mac下安装启动MongoDB很简单,terminal下运行以下指令就可以了1. 通过homebrew安装mongodb $ brew update $ brew install mongodb 如果没有mongodb还是先装一个吧,程序员必备。2. mongodb 数据默认存在/data/db下,所以需要创建这个文件夹 $ s
2013-11-30 18:54:00
15026
1
原创 解决Maven报错:invalid target release: 1.7
最近项目升级到java 1.7,更新之后却一直在Intellij上不能编译成功,报错Invalid target release。花了好久终于解决了这个问题。首先检查系统环境,确保java javac都更新到正确的版本了。再进入项目,Open module settings检查dependencies.还有这里当然记得jdk1.7 path要加进来
2013-10-30 00:01:11
3329
原创 说说rspec测试的使用
近来开始学习ruby on rails,用rspec做unit test.An basic rspec testing requires the following steps:1. add gem 'rspec-rails' to Gemfile and run 'bundle install'2. run 'rails generate rspec:install' to in
2013-08-23 00:37:35
668
原创 Amazing ruby: block & yield
之前听Anand讲用了ruby以后就不想用java了,如今看来还真是。Ruby里面有好多神奇的function,先小记一下block&yield简单来说,ruby允许把一整个statement以parameter的形式放在block中传递,目标method通过yield运行这些statement.基本用法,Eg.def test puts "You are in th
2013-08-22 00:15:39
620
转载 Ruby on rails naming conventions
一直都很晕ruby on rails里面的命名,看到一篇总结记录下来。(http://itsignals.cascadia.com.au/?p=7)Model Naming ConventionTable: ordersClass: OrderFile: /app/models/order.rbPrimary Key: idForeign Key: customer
2013-08-20 23:26:23
589
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人