Pick-up sticksTime Limit: 3000MSMemory Limit: 65536KTotal Submissions: 7550Accepted: 2789DescriptionStan has n sticks of various length. He throws them one at a time on the floor in a random way. After finishing throwing, Stan tries to find the top sticks, that is these sticks such that there is no. Read More
posted @ 2013-05-22 22:14 javawebsoa Views(147) Comments(0) Diggs(0)
越努力.越幸福.----willingseal. (1)导航面板 以前,真心不知道这个快捷键。。。。。 这个图标从左到右对应的快捷键是 command+1,command+2,command+3,command+4,command+5,command+6,command+7,command+1,工程导航面板---查找源代码文件,框架等 command+2,符号导航面板---查找工程中的符号和类。。。command+3,搜索--- command+4,问题---编译警告,错误信息,分析器警告command+5,调试--- command+6,断点--- command+7,日志---查看历史编. Read More
posted @ 2013-05-22 22:11 javawebsoa Views(197) Comments(0) Diggs(0)
package com.brandroidapp.ui;import java.util.ArrayList;import com.brandroidapp.activity.R;import com.brandroidapp.adapter.ImageListViewAdapter;import android.app.Dialog;import android.content.Context;import android.os.Bundle;import android.view.LayoutInflater;import android.view.View;import android. Read More
posted @ 2013-05-22 22:07 javawebsoa Views(504) Comments(0) Diggs(0)
%h2= "第五章 移动设备常用的HTML5表单元素" %form %p= "1. placeholder 属性 给文本框添加提示内容" %input{:type => 'text', :placeholder => "请输入内容"} %p= "2. autofocus 属性 自动获取焦点" %input{:autofocus => true} %p= "3. list datalist 属性 list数据由datalist 提供" %input{:list = Read More
posted @ 2013-05-22 22:03 javawebsoa Views(240) Comments(0) Diggs(0)
它本质上是一个对象,但是被设计成使用方法和外观都和内建指针相似。 智能指针是从模板中生成的,模板的参数确定指向的对象类型。大部分智能指针的模板看起来可能会是这样: template<class T>class SmartPtr {public:SmartPtr(T* realPtr = 0); // 建立一个智能指针// 指向dumb pointer所指的对象。未初始化的指针,缺省值为0(null)SmartPtr(const SmartPtr& rhs); // 拷贝一个智能指针~SmartPtr(); // 释放智能指针// 赋值操作SmartPtr& oper Read More
posted @ 2013-05-22 21:59 javawebsoa Views(278) Comments(0) Diggs(0)
基于以下几种场景,你很可能需要自己的haxelib* 希望为haxe开源社区做贡献,把自己的代码分享给所有人* 本地私有库,要被若干个项目共用,但基于目录复制的代码级重用很笨拙,而且难以维护 下面就从我自己的实际需求出发,总结一下创建与分享一个haxelib库的步骤。 首先,假定我的haxelib名称为myhaxelib,在自己工作空间创建myhaxelib目录 在此目录下建立两个目录: dev: 这是库的实际工作目录,包括源代码、文档、例程等,但注意,源代码目录不应该放在src子目录下,而应直接放在dev的根目录下,这点和我们的普通项目不一致。同时这个目录也将作为myha... Read More
posted @ 2013-05-22 21:56 javawebsoa Views(303) Comments(0) Diggs(0)
本文介绍C# lock关键字,C#提供了一个关键字lock,它可以把一段代码定义为互斥段(critical section),互斥段在一个时刻内只允许一个线程进入执行,而其他线程必须等待。每个线程都有自己的资源,但是代码区是共享的,即每个线程都可以执行相同的函数。这可能带来的问题就是几个线程同时执行一个函数,导致数据的混乱,产生不可预料的结果,因此我们必须避免这种情况的发生。其中,lock是一种比较好用的简单的线程同步方式,它是通过为给定对象获取互斥锁来实现同步的。它可以保证当一个线程在关键代码段的时候,另一个线程不会进来,它只能等待,等到那个线程对象被释放,也就是说线程出了临界区。用法:pu Read More
posted @ 2013-05-22 21:52 javawebsoa Views(308) Comments(0) Diggs(0)
1.去RegexKitLite下载类库,解压出来会有一个例子包及2个文件,其实用到的就这2个文件,添加到工程中。 备用地址: http://www.cocoachina.com/bbs/job.php?action-download-pid-135286-tid-18111-aid-11143.html- Lv 2.工程中添加libicucore.dylib frameworks。 3.现在所有的nsstring对象就可以调用RegexKitLite中的方法了。 NSString *email = @”kkk@aaa.com”; [email isMatchedByRegex:@"\ Read More
posted @ 2013-05-22 21:49 javawebsoa Views(142) Comments(0) Diggs(0)
《iOS用户体验设计》基本信息作者: [美]Timothy Wood 译者: 毛姝雯丛书名: 图灵交互设计丛书出版社:人民邮电出版社ISBN:9787115316677上架时间:2013-5-21出版日期:2013 年5月开本:32开页码:134版次:1-1所属分类:计算机 更多关于 》》》《 iOS用户体验设计》 内容简介 计算机书籍 《ios用户体验设计》介绍了如何突破基础、打破常规,从而提供“超赞”的用户体验。通过学习本书,读者将会学到如何使用标准控件,如何创建非标准控件和具备较高影响力的用户交互,以实现真正夺人眼球的应用设计。 如何超越众多的同质化应... Read More
posted @ 2013-05-22 21:45 javawebsoa Views(153) Comments(0) Diggs(0)
题目:Given an absolute path for a file (Unix-style), simplify it.For example, path = "/home/", => "/home" path = "/a/./b/../../c/", => "/c"分析:此题主要需注意以下两点1、结果起码有一个"/"2、当有一个这样的形式/../,就代表少一个路径 代码如下: string simplifyPath(string path) { int n=path.leng Read More
posted @ 2013-05-22 21:41 javawebsoa Views(186) Comments(0) Diggs(0)
国内设计/素材站 http://www.zcool.com.cn/ 站酷 http://www.68design.net/ 设计师联盟 http://www.uiimg.com/ UI图-优秀UI设计及资源下载。 http://www.blueidea.com/蓝色理想 http://www.iconfans.org iconfans http://www.sucaitianxia.com/ 素材天下 http://www.52design.com 我爱设计网 http://www.chinavisual.com/视觉中国 http://down.chin... Read More
posted @ 2013-05-22 21:38 javawebsoa Views(232) Comments(0) Diggs(0)
http://www.msheji.com/design/40.html/ Read More
posted @ 2013-05-22 21:34 javawebsoa Views(88) Comments(0) Diggs(0)
CSS的全称Cascading Stylesheets样式表,它可以对布局,字体,颜色,背景和其他文图效果实现更加精确的控制。样式表的具体优势:格式和结构的分离HTML没有具体控制网页的格式或外观,浏览器自己决定应该如何显示。层叠样式表通过将定义结构的部分和定义格式的部分分离,使我们能够对页面的布局施加更多的控制。HTML仍可以保持简单明了的初衷。CSS代码独立出来从另一个角度可控制页面外观。更好的控制页面的全局的能力使用层叠样式表我们可以调整字号,字体,控制边距等等,对页面的全局信息更精确的控制。可以制作出体积更小下载更快的网页样式表只是简单的文本,就像html那样。它不需要图... Read More
posted @ 2013-05-22 21:31 javawebsoa Views(843) Comments(0) Diggs(0)
jsp这个东西还真是高级货,<%@ page language="java" pageEncoding="UTF-8"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <title>123</title> <meta http-equiv="pragma" content="no-cache"> <m Read More
posted @ 2013-05-22 21:27 javawebsoa Views(391) Comments(0) Diggs(0)
配置数据结构的创建过程初始化cycle->conf_ctxngx_init_cycle()函数中根据nginx模块的数量ngx_max_module创建一个指针数组,如下。每个指针成员,对应nginx模块的配置数据结构。cycle->conf_ctx = ngx_pcalloc(pool, ngx_max_module * sizeof(void *));NGX_CORE_MODULE模块的配置数据结构创建 for (i = 0; ngx_modules[i]; i++) { if (ngx_modules[i]->type != NGX_CORE_MODULE) { ... Read More
posted @ 2013-05-22 21:24 javawebsoa Views(489) Comments(0) Diggs(0)
《多核应用编程实战》基本信息原书名:Multicore application programming:for windows,linux,and Oracle Solaris作者: (美)戈夫(Darryl Gove) 译者: 郭晴霞丛书名: 图灵程序设计丛书出版社:人民邮电出版社ISBN:9787115317506上架时间:2013-5-22出版日期:2013 年5月开本:16开页码:1版次:1-1所属分类:计算机 更多关于 》》》《 多核应用编程实战》 内容简介 计算机书籍 《多核应用编程实战》是一本全面实用的多核应用编程指南,旨在介绍如何编写功能正确、性能... Read More
posted @ 2013-05-22 21:20 javawebsoa Views(234) Comments(0) Diggs(0)
今天用两种方法实现了简单的页面皮肤切换,一种用原生的js,一种用jQuery简单的方法 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style> body,ul,li{margin:0;padding:0;} html,body{height:100%;} body{font:12px/1.5 Tahoma;} li{list-style-type:none;} a:link,a:visited{ Read More
posted @ 2013-05-22 21:16 javawebsoa Views(232) Comments(0) Diggs(0)
详细请查看:http://www.cnblogs.com/atao/category/209358.html 可以使用NPOI来 读写 操作EXECL等软件,相比使用传统的操作安装office组件,有优先啊。。。。具体查看其它的资料。。 Read More
posted @ 2013-05-22 21:13 javawebsoa Views(340) Comments(0) Diggs(0)
-------------------------------------WebService1.asmx--------------------------------------- // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消对下行的注释。 [System.Web.Script.Services.ScriptService] public class WebService1 : System.Web.Services.WebService { [WebMethod] public string HelloWorld() ... Read More
posted @ 2013-05-22 21:09 javawebsoa Views(275) Comments(0) Diggs(0)
python模块介绍- SocketServer 网络服务框架2013-05-22磁针石 #承接软件自动化实施与培训等gtalk:ouyangchongwu#gmail.comqq 37391319 博客:http://blog.csdn.net/oychw#版权所有,转载刊登请来函联系# 深圳测试自动化python项目接单群113938272深圳会计软件测试兼职 6089740 #深圳地摊群 66250781武冈洞口城步新宁乡情群49494279#自动化测试和python群组: http://groups.google.com/group/automation_testing_pytho.. Read More
posted @ 2013-05-22 21:06 javawebsoa Views(305) Comments(0) Diggs(0)