首页 > 全部
快速填充像素的方法
假定我们要用同一种颜色填充100M个像素,每个像素占4个字节,什么方法最快?第一种方法,也是最简单的方法,就是用一个循环不断填充每一个像素。#include #include #define MAX_PIXELS 0x6400000#define COLOR 0xaabbccddint main (...
分类:其他   时间:2014-01-29 14:58:15    收藏:0  评论:0  赞:0  阅读:494
快递查询接口调用与解析
刚开发完一个网站的快递查询接口,觉得非常好,调用简单,返回结果简单xml与json格式的都支持,在这里记录一下,顺便也与大家分享一下,做外贸的可以作为参考gotrace 快递查询接口介绍下面分别介绍提供的两种请求方式:第一种:请求返回XML格式的结果数据请求地址方法名为:http://www.got...
分类:其他   时间:2014-01-29 14:59:05    收藏:0  评论:0  赞:0  阅读:423
Java并发变成学习资料收集
1. CountDownLatch的使用http://zapldy.iteye.com/blog/746458http://software.intel.com/zh-cn/blogs/2013/10/15/java-countdownlatchcyclicbarrierhttp://blackgu...
分类:其他   时间:2014-01-29 14:56:35    收藏:0  评论:0  赞:0  阅读:389
2014-1-29 “老公 老公 老公 不要收起来
今天早晨我去看思杨的时候他还没醒呢。 我就跪在床边上静静看他。 没看几秒,他就开始舒展小胳膊,翻绳子,扭脖子。哈哈 看来是要醒的样子啊,其实平时这个点差不多他就该醒了。 肯定不是我吵醒他的。他半眯着睁开眼睛,奶声奶气地叫了声爸爸,眯着眼睛笑呢,哈哈。整个脸都是笑的,好幸福。 看这个你能笑着醒来,爸爸...
分类:其他   时间:2014-01-29 14:57:26    收藏:0  评论:0  赞:0  阅读:367
Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.Code:/** * Definition for binary tree * struct TreeNo...
分类:其他   时间:2014-01-29 14:55:45    收藏:0  评论:0  赞:0  阅读:399
[Leetcode]-- Swap Nodes in Pairs
Swap Nodes in PairsGiven a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2-...
分类:其他   时间:2014-01-29 14:54:05    收藏:0  评论:0  赞:0  阅读:435
黄聪:V2010中C#实现友好的等待任务完成时,出现的多线程悬浮窗体
实现效果如下:项目已经打包后,大家直接下载吧:【HCWaitForm.rar】
分类:Windows开发   时间:2014-01-29 14:54:55    收藏:0  评论:0  赞:0  阅读:926
(转)12款开源JavaScript库
JavaScipt几乎是所有前端开发人员必会的编程语言,并且,随着各种移动APP的串红,JavaScript还可以用来开发移动应用。除此以外,为了丰富前端/移动开发,有不少开发者推出了各种基于JavaScript的库,这些几乎能实现任何你需要的功能,并且有些库可以用来开发某些特定的功能,非常强大。本...
分类:Web开发   时间:2014-01-29 14:53:15    收藏:0  评论:0  赞:0  阅读:490
[Leetcode]-- Maximum Depth of Binary Tree
/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */public c...
分类:其他   时间:2014-01-29 14:51:35    收藏:0  评论:0  赞:0  阅读:354
C语言学习-关于C语言中sizeof关键字的测试
执行结果如下:本示例的测试环境是:操作系统:CentOS(Linux 192 2.6.18-348.6.1.el5 x86_64 GNU/Linux)编译器 :cc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-54)测试代码如下: 1 #include 2 #includ...
分类:编程语言   时间:2014-01-29 14:52:25    收藏:0  评论:0  赞:0  阅读:469
什么是REST?
云计算的时代越来越多的提到一个词REST,那么什么是REST?如果你还不清楚,可以看这个视频和系列教程: http://www.restapitutorial.com/lessons/whatisrest.html
分类:其他   时间:2014-01-29 14:49:05    收藏:0  评论:0  赞:0  阅读:320
Tomcat启动失败或被强制终止
通常是端口别抢占需要查找是哪一个端口被强占,根据PID查找抢占此端口的程序,然后终止打开cmd1.查看所有的端口占用情况C:\>netstat -ano 协议 本地地址 外部地址 状态 PID TCP 127.0.0.1:1434 0.0.0.0:0 LISTENING 3236 TCP 127.0...
分类:其他   时间:2014-01-29 14:48:15    收藏:0  评论:0  赞:0  阅读:373
[Leetcode]-- Permutations
Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,...
分类:其他   时间:2014-01-29 14:47:25    收藏:0  评论:0  赞:0  阅读:504
【javascript】随手记代码
//js实现的当前界面的刷新、前进、后退console.log Firefox最先提出的,后来被各个浏览器采用;即在控制台输出日志,不会像alert一样打断程序进程,适合用于与Firebug或者是其他的开发者工具配合进行调试//全局变量function sum1(x,y){ result = x+ ...
分类:Web开发   时间:2014-01-29 14:46:35    收藏:0  评论:0  赞:0  阅读:522
Linux 查看CPU信息、机器型号等硬件信息
原文出处:http://www.51testing.com/?uid-225738-action-viewspace-itemid-210333测试机器的硬件信息:查看CPU信息(型号)# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c 8...
分类:其他   时间:2014-01-29 14:44:55    收藏:0  评论:0  赞:0  阅读:440
Java多线程系列--“JUC集合”03之 CopyOnWriteArraySet
概要本章是JUC系列中的CopyOnWriteArraySet篇。接下来,会先对CopyOnWriteArraySet进行基本介绍,然后再说明它的原理,接着通过代码去分析,最后通过示例更进一步的了解CopyOnWriteArraySet。内容包括:CopyOnWriteArraySet介绍CopyO...
分类:其他   时间:2014-01-29 14:45:46    收藏:0  评论:0  赞:0  阅读:729
LeetCode: Reverse Linked List II
Reverse a linked list from positionmton. Do it in-place and in one-pass.这么一道小题做了一下午。。。真是太令我伤心了。我的想法是 先找到开始反转的第一个元素的前面的那个元素,标记start。然后一边遍历 一边反转,最后前中后三段...
分类:其他   时间:2014-01-29 14:44:05    收藏:0  评论:0  赞:0  阅读:496
乘法逆元
d模f的乘法逆元int Extend_Eulid(int d,int f){ int x1,x2,x3,y1,y2,y3 ; x1=1,x2=0,x3=f,y1=0,y2=1,y3=d ; while(y3 && y3!=1) { int q=x3/y3 ; int t1,t2,t3 ; t1=x1...
分类:其他   时间:2014-01-29 14:43:15    收藏:0  评论:0  赞:0  阅读:461
[Leetcode]-- Permutation Sequence
Permutation SequenceThe set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of the permutations in order,We get the fo...
分类:其他   时间:2014-01-29 14:42:25    收藏:0  评论:0  赞:0  阅读:443
领域驱动
http://www.infoq.com/cn/articles/ddd-in-practice/
分类:其他   时间:2014-01-29 14:41:35    收藏:0  评论:0  赞:0  阅读:394
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!