`
lseeo
  • 浏览: 13444 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
ios使用sqlite数据库作为本地存储。 在开发过程中,免不了要查看sqlite数据库情况。 ios上做法和android一样,将数据库文件(一般为.db后缀)复制到本地,再使用sqlite查看器进行查看。   将.db文件复制到本地需要使用工具iexplorer。号称需要购买,但使用demo版也能用。 本地查看sqlite有很多工具,一般可用firefox的sqlite3 manager插件。

JVM回收算法

    博客分类:
  • Java
1. Reference Counting 循环引用 2. Mark and Sweep 第一遍,标记所有活跃的对象;第二遍清除未标记的对象 产生碎片 3. Copying 两个相等的内存空间,回收时,将一个里的活跃对象复制到另一个中。回收之前,总有一个为空。 占用空间较大,需两份相等空间。 4. Mark and Compact 第一遍标记所有活跃的对象,第二遍整理。 不产生碎片,不需两份空间。

Git Server(SSH)搭建

http://www.urbanpuddle.com/articles/2008/07/11/installing-git-on-a-server-ubuntu-or-debiansudo apt-get install git-coresudo apt-get install python-setuptoolsgit clone git://eagain.net/gitosis.gitcd gitosissudo python setup.py installsudo adduser \ --system \ --shell /bin/sh \ --gecos 'git versio ...
Tomcat支持Https 1. 生成keystore文件。 $ keytool -genkey -alias tomcat -keyalg RSA 过程中需要设置keystore和key密码,假设为tomcatpassword。 该命令将在当前目录生成.keystore文件,假设为/home/user/.keystore。 2. 修改tomcat配置中ssl相关设置。 <!-- <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" ...

Xcode初始化设置

    博客分类:
  • ios
    #!/bin/bash # this script can help to initialize xcode environment, including # set organization name, set author name. ORGANIZATION_NAME=""; FULL_USERNAME=""; defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{"ORGANIZATIONNAME"=" ...
http://developerlife.com/tutorials/?p=232

browser website

    博客分类:
  • Java
Desktop.browse(new URL(url));

Analysis

    博客分类:
  • Java
 
Byte Code Analysis -  FindBugs Source Analysis - PWD Metrics - Panopticode

打印文件最后2行

tail -2 | head -1 file   tac file | sed -n 2p
reference - http://www.infoq.com/cn/articles/html5-web-form   HTML5 Web Forms 2.0是对目前Web表单的全面提升,它在保持了简便易用的特性的同时,增加了许多内置的控件或者控件属性来满足用户的需求,并且同时减少了开发人员的编程。在我看 ...
...removing redundant names such as "." and ".." from the pathname, resolving symbolic links (on UNIX platforms), and converting drive letters to a standard case (on Microsoft Windows platforms)...   http://www.coderanch.com/t/277962/Streams/java/getCanonicalPath-vs-getAbsoluteP ...

Clipboard Java

    博客分类:
  • Java
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); StringSelection selection = new StringSelection(buffer.toString()); clipboard.setContents(selection, selection);  
@Test public void shouldPromptErrorMessageWhenPathIsLongerThan255OnWindows() { try { document.saveTo(veryLongPath())//用户希望用一个很长的路径来保存文件 Assert.fail("should throw exception when path is too long."); } catch (PathIsToLongException e) { assertThat(e.message ...

ln osgispringdm

    博客分类:
  • Java
http://www.javaworld.com/javaworld/jw-04-2008/jw-04-osgi2.html?page=1
Global site tag (gtag.js) - Google Analytics