ITeye博客

kowen

kowen · 共 37 篇文章

cordova 中获取当前app版本

当前版本需要通过插件获取:https://github.com/whiteoctober/cordova-plugin-app-version

2014-12-03 09:46 · cordova · 评论(0)

angularjs带校验登录窗口

使用angular, bootstrap,ui-bootstrap的登录窗口: <div> <div> <form class="form-horizontal" role="form" method="post" ng-submit="hello()" name="xForm"> <div class="form-group has-feedback" ng-class="{'has-success':xForm.username.$valid,'has-error':xForm.username.$invalid&&xForm.username.$dirty}"> <label for=…

2014-10-14 14:44 · angular · 评论(0)

yeoman构建的angular项目中正确引入angular-ui-bootstrap

yeoman 构建的angular项目中需要引入ui-bootstrap 使用命令 bower search ui-bootstrap得到以下结果: Search results: angular-ui-bootstrap-bower git://github.com/angular-ui/bootstrap-bower angular-ui-bootstrap git://github.com/angular-ui/bootstrap.git jquery-ui-bootstrap git://github.com/gustavohenke/jquery-ui-bootstrap jque…

2014-10-13 15:20 · angular · 评论(0)

Angular的表达式

Angular Expressions Angular表达式 【原文】https://code.angularjs.org/1.2.23/docs/guide/expression 【翻译者】kowen@live.cn https://code.angularjs.org/1.2.23/docs/guide/expression 写道 Angular expressions are JavaScript-like code snippets that are usually placed in bindings such as {{ expression }}. For example, t…

2014-08-25 16:42 · angular · 评论(0)

理解Angular中的数据绑定

理解Angular中的数据绑定 【原文】:https://docs.angularjs.org/guide/databinding 【翻译者】:kowen@live.cn https://docs.angularjs.org/guide/databinding 写道 Data-binding in Angular apps is the automatic synchronization of data between the model and view components. The way that Angular implements data-binding lets you tr…

2014-08-21 11:17 · angular · 评论(0)

修改默认ssh端口后,客户端访问git服务器的方法

默认的ssh端口是22,通常远程git是通过ssh端口进行访问的,所以服务器修改了ssh默认端口或者经过防火墙端口映射之后,git clone gituser@server:project.git命令就不能用了。解决的方法如下: git clone ssh://gituser@server:PORT/project.git

2014-08-12 09:55 · ssh · git · 评论(0)

ubuntu 使用gitosis和gitweb安装git服务器

【转载请注明原文链接:http://kowen.iteye.com/blog/2101784】 经过多天的摸索,终于在ubuntu上配置完成了gitosis,写下来分享: 一、安装环境和软件 ubuntu 14.04 server openssh-server git-core gitosis git 二、安装准备 1.服务器安装openssh sudo apt-get install openssh-server openssh-client 2.在一台管理客户机上生成ssh公钥【客户机执行】 ssh-keygen -t rsa 生成的公钥在/home/YourUserName/.ssh/…

2014-08-08 15:45 · ubuntu · git · gitosis · gitweb · lighttpd · 评论(0)

ubuntu git服务器搭建过程

git服务器搭建过程 原文地址:http://blog.csdn.net/ice520301/article/details/6142503 需求 硬件需求:一台Ubuntu或者debian电脑(虚拟机),能通过网络访问到。 软件需求:git-core, gitosis, openssh-server, openssh-client, Apache2(Gitweb) 安装配置git服务器 安装git和openssh: a@server:~$ sudo apt-get install git-core openssh-server openssh-client 新加用户git, 该用户将作为所…

2014-08-07 10:51 · ubuntu · git · 评论(0)

android studio 0.6.0 下载地址

Android Studio 0.6.0 Windows: http://dl.google.com/dl/android/studio/ide-zips/0.6.0/android-studio-ide-135.1212210-windows.zip (159 MB) Mac: http://dl.google.com/dl/android/studio/ide-zips/0.6.0/android-studio-ide-135.1212210-mac.zip (158 MB) Linux: http://dl.google.com/dl/android/studio/ide-zips/0…

2014-06-13 09:35 · 评论(0)

android sdk manager连不上的解决办法

在SDK Manager下Tools->Options打开了SDK Manager的Settings, 选中“Force https://… sources to be fetched using http://…”,强制使用http协议。 修改hosts文件,添加 #google_android更新 203.208.46.146 dl.google.com 203.208.46.146 dl-ssl.google.com

2014-06-12 08:56 · 评论(0)

ubuntu安装nodejs

apt-get install nodejs apt-get install npm

2014-04-08 16:01 · 评论(0)

chrome出现not allowed by Access-Control-Allow-Origin解决方法

跨域ajax访问,启动chrome用:chrome.exe --disable-web-security

2012-11-05 15:27 · 评论(0)

IKVM 在.net上调用java

项目网站: http://www.ikvm.net/ http://sourceforge.net/apps/mediawiki/ikvm/index.php 下载地址: http://sourceforge.net/projects/ikvm/files/

2011-11-16 16:52 · IKVM · 评论(0)

linux安装jdk

一、 打开http://java.sun.com/javase/downloads/?intcmp=1281 找到JDK 6 Update 13 下载jdk-6u13-linux-i586-rpm.bin 二、以root身份登录Linux 把下载的jdk-6u13-linux-i586-rpm.bin 放到linux的任意目录下 执行 chmod 755 jdk-6u13-linux-i586-rpm.bin 接着执行 ./jdk-6u13-linux-i586-rpm.bin 出现协议对话框,输入Y,按回车即可。 安装后在/usr/java目录下生成一个目录jdk1.6.0_13 三、修改…

2009-11-30 16:03 · linux · 评论(0)

解决hibernate3存取MySql5 乱码问题

1.设置Mysql5 默认编码为UTF-8 Linux 编辑/etc/my.cnf ,在段加入default_character_set=utf8 windows 编辑my.ini 在段加入default_character_set=utf8 2.在Hibernate连接串中加入字符集参数 useUnicode=true&characterEncoding=UTF-8 例如: jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8

2009-10-22 23:35 · ssh · 评论(0)