Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.For e...
分类:
其他好文 时间:
2014-06-18 22:11:44
阅读次数:
200
//输出流 @Test public void testOutStream() throws Exception{ OutputStream out =new FileOutputStream("abc.txt"); String content="hello word/nwww.baidu.c.....
分类:
编程语言 时间:
2014-06-18 21:16:47
阅读次数:
280
#include "json/document.h"#include "json/prettywriter.h"#include "json/stringbuffer.h"void test(){ //read json char json[100] = "{ \"hello\" : \"wo...
通过服务器中转访问其他服务器:su - ptkfcz输入passwordssh 用户@转接服务IP使用locate命令定位mongo位置进入mongo的bin目录下:输入命令进去mongoDB:./mongo IP:端口show dbs,use db,show tables
分类:
数据库 时间:
2014-06-18 20:18:05
阅读次数:
248
PS: (proxy / stub)当你开发的组件需要用到代理/存根(即IPC(LPC+RPC)),就需要该工程,否则此工程无用创建Proxy/Stub DLL1. nmake -f HelloPS.mk2.regsvr32 helloPS.dll
分类:
其他好文 时间:
2014-06-18 18:49:46
阅读次数:
265
Word-“取消文档保护”密码的破解方法 方法一(简单有效):启动word 文档,新建一个空白文档,执行“插入文件” 命令,打开“插入文件”对话框,定位到需要解除保护的文档所在的文件夹,选中该文档,单击“插入”按钮,将加密保护的文档插入到新文档中,文档保护会被自动撤销。方法二:打开文档后,将其另存为...
分类:
其他好文 时间:
2014-06-18 18:25:51
阅读次数:
142
根据html内容生成word,并自动下载下来。使用到了itext-1.4.6.jarimport java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.InputStrea...
分类:
Web程序 时间:
2014-06-18 18:21:18
阅读次数:
284
老实说:第一个swift语句的ios不是代码敲出来的,我甚至还没来得急看代码,hello world 就出来了。。。。。本人开发环境:mac osx 10.10 dp1 + xcode6 beta + swift(更低xcode不支持swift语言)思路与大致过程: 1、建立工程,工程包含界面文.....
分类:
移动开发 时间:
2014-06-18 16:15:41
阅读次数:
382
碰到需要调用操作系统shell命令的时候,Ruby为我们提供了六种完成任务的方法:1.Exec方法:Kernel#exec方法通过调用指定的命令取代当前进程: 例子: $ irb >> exec 'echo "hello $HOSTNAME"' hello nate.local $值得注意的是,ex...
分类:
其他好文 时间:
2014-06-18 16:00:48
阅读次数:
214
上一篇文章,简单搭建了NDK开发的环境,此文通过导入C:\android-ndk-r9d\samples\hello-jni(NDK自带example)来疏通真个环境。
打开Eclipse IDE,指定NDK的位置
选择的NDK位置仅对当前的Eclipse workspace有效哦。如果更改workspace,需要重新指定NDK的位置...
分类:
其他好文 时间:
2014-06-16 19:10:16
阅读次数:
352