自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(54)
  • 收藏
  • 关注

原创 test

2013-11-28 19:50:39 699

转载 Debug Java applications remotely with Eclipse

Debug Java applications remotely with Eclipsehttp://www.ibm.com/developerworks/opensource/library/os-eclipse-javadebug/?ca=drs-tp5008

2013-11-27 22:19:43 570

转载 加拿大驾照路考要点(转贴)

1.闯黄灯肯定FAIL2.不查盲点肯定FAIL(包括换线, 拐弯时)3.STOP SIGN 处的标准做法 (一定要彻底停下来; 停的位置要标准, 一定要左右左察看后再离开)4.拐弯时速度一定要减到15~20KM/H, 拐弯处查盲点.5.趴车时,无论是倒趴还是平行趴, 只要车是倒行, 一定要回头看. 不转身回头看的一律扣分.6.如果四个方向都有STOP, 谁先到谁先走

2013-09-10 09:52:12 2505

原创 Longest Palindromic Substring (DP)

Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring.public class S

2013-08-12 11:03:19 740

原创 Reverse Integer

Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321Have you thought about this?Here are some good questions to ask before coding. Bonus points for you

2013-08-09 21:26:21 557

原创 Add Two Numbers

You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link

2013-08-09 09:33:47 559

原创 Longest Substring Without Repeating Characters

Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. Fo

2013-08-09 06:44:31 538

原创 Palindrome Partitioning

import java.util.*;public class Solution {    public ArrayList> partition(String s) {        // Start typing your Java solution below        // DO NOT write main() function        ArrayL

2013-08-08 10:15:19 527

原创 Median of Two Sorted Arrays (全数组扫描)

public class Solution {    public double findMedianSortedArrays(int A[], int B[]) {        // Start typing your Java solution below        // DO NOT write main() function        int alengt

2013-08-08 09:02:08 609

原创 median-of-two-sorted-arrays

http://leetcode.com/2011/03/median-of-two-sorted-arrays.html#comment-1053public class Solution {    public double findMedianSortedArrays(int A[], int B[]) {        // Start typing your Jav

2013-08-07 11:50:10 638

原创 Two Sum

Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the target, whe

2013-08-06 10:41:56 564

转载 NAS SAMBA NFS

http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/nfs-client-for-windows-7/42aae25d-d077-4ff9-abdf-7314a589c46dhttp://www.microsoft.com/en-us/download/details.aspx?id=2391htt

2013-06-19 00:48:28 746

转载 DLAN 连接和使用体验——Twonky

DLAN 连接和使用体验——Twonky松下说明书中讲到目前ST30C只支持与windows7 的DLAN连接,只好下载了windows7 系统,但是因为对windows7不甚了解,担心装机出现问题,故一直没有升级系统,昨天一不小心发现其实ST30C支持与xp系统的DLAN连接:1 下载Twonkymeida server,google一下都能找到  http://www.on

2013-05-23 09:49:27 12238

转载 Java Thread-safe

http://javarevisited.blogspot.ca/2012/01/how-to-write-thread-safe-code-in-java.htmlhttp://jcip.net.s3-website-us-east-1.amazonaws.com/listings.htmlHow to write Thread-Safe Code in Java

2013-04-11 08:25:37 1478

转载 How to Rotate Tomcat catalina.out

From: http://java.dzone.com/articles/how-rotate-tomcat-catalinaoutIf catalina.out becomes 2GB in size, tomcat crashes and fails to start without any error message. To avoid this scenario you s

2013-03-20 01:16:15 824

转载 FW: 订北美酒店省钱的最佳选择:Priceline & Hotwire

转:订北美酒店省钱的最佳选择:Priceline & HotwirePosted on January 30, 2011 by gkp原文地址:http://b.gkp.cc/2011/01/30/bid-hotel-room-with-priceline-and-hotwire/什么是酒店拍卖?如果你和我一样去过几次欧洲后偶尔去一次

2013-02-24 01:28:52 1896

原创 DB Operation

tnsnames.ora already copied to 4,4u and 4q under ${ORACLE_HOME}/network/admin.export ORASERVER=***01export ORACLE_HOME=/opt/oraClient/11.2.0.3export SQLPLUS=$ORACLE_HOME/bin/sqlplus; export

2013-02-16 09:30:21 816

原创 春节菜单

凉菜:1. 凉拌黄瓜2. 卤味拼盘(黄豆,牛腱,猪舌,鸭翅膀)3. 盐水毛豆4. 口水鸡热菜:1. 烤鱼(鱼,土豆,洋葱,香菜,芹菜)2. 西式炖牛肉 (http://bbs.wenxuecity.com/beef/780496.html)3. 西兰花4.西芹炒肉丝5.烤鸡翅6.COSCO 烤肉/鱼, (另外备份一个)7.熏鱼8.南京盐水

2013-01-30 08:24:11 755

原创 债券逆回购 上海深圳市场 操作指南

最小价格变动单位:0.005元;  最低参与金额:10万,之后以10万的整数倍增加;下单以“张”为单位,一张为100元,最低1000张(相当于10万);T日下单,T+1资金可用,T+2资金可取。        最小价格变动单位:0.01元,最低参与金额:1000元,之后以1000元的整数倍增加;下单以“张”为单位,最低10张(相当于1000元);T日下单,T+1

2012-12-27 09:55:47 1549

转载 债券正回购和逆回购交易操作指南

一、债券回购的含义   债券质押式回购简单地说就是交易双方以债券为质押品的一种短期资金借贷行为。其中债券持有人(正回购方)将债券质押而获得资金使用权,到约定的时间还本并支付一定的利息,从而“赎回”债券。而资金持有人(逆回购方)就是正回购方的交易对手。在实际交易中债券是质押给了第三方即中国结算公司,这样交易双方更加安全、便捷。    二、可回购的债券    所有的国债、绝

2012-12-14 10:19:09 2456

原创 Tool Collection

###Code Tools###DiffMerge 3.3.2http://www.sourcegear.com/diffmerge/downloads.phpWinmergehttp://winmerge.org/EclipseTibco GEMSSqlexplorer.exe###Network Tools###PuttyScreenWins

2012-12-11 22:06:50 454

原创 etf 集合

中国股市易方达深证100ETF(159901)       [email protected]://baidu.hexun.com/stock/q.php?code=159901.SZ华夏上证50ETF(510050)      [email protected]?http://baidu.hexun.com/stock/ia.php

2012-12-07 10:30:03 409

原创 Book and Useful link

A cool online book on open source projects:http://www.aosabook.org/en/index.htmlProgramminghttp://programmingpraxis.com/http://www.leetcode.com

2012-11-29 08:47:50 493

原创 常用Database命令集合

Oracle:DECLARE var NUMBER;BEGINTEST (var, null, ‘test’, ‘test’, ‘test’, ‘test’, ‘test’, ‘test’, ‘test’, ‘test’, ‘test’);DBMS_OUTPUT.put_line(var);END;SELECT TABLE_NAME,COLUMN_NAME,DATA_T

2012-11-29 08:47:25 411

原创 常用Unix命令集合

scp /cygdrive/c/Workspace/test.tar.gz root@server0:/tmpfind ./ -name *.java | xargs egrep “codec”find ./ -mtime -1 |xargs egrep “ERROR”find ./ -name “CVS” -type d | xargs rm -rln -s /data/

2012-11-29 08:46:59 422

原创 EMS 常用命令

./start_tibemsd.sh your_broker_name your_server 16000 &./stop_tibemsd.sh your_broker_name your_server 16000 &./tibemsadmin -server tcp://your_server:16000 -user admin -password passwordcreate fa

2012-11-29 08:46:04 1670

原创 Screen 编译及用法

1. 从这里下载screen 的源代码http://www.gnu.org/software/screen/./configure --target=x86_64-unknown-linuxmakemake install2. 参考下面文章使用screenhttp://www.ibm.com/developerworks/cn/linux/l

2012-11-29 08:45:12 873

转载 SaaS, PaaS and IaaS, and DaaS

<br />Cloud Computing – Demystifying SaaS, PaaS and IaaS (DaaS)<br /><br />by cloudtweaks on May 3, 2010 at 10:22 am in Amazon, Cloud Computing, Computing, Host, IT, SaaS, Security, Storage, Technology<br /><br />Is cloud computing the next biggest thi

2011-05-05 11:07:00 2780

转载 FW: Everything you need to know about pointers in C

<br />http://boredzo.org/pointers/Everything you need to know about pointers in C<br />Version 1.3.<br />Copyright 2005–2010 Peter Hosey.<br /><br />This work is licensed under a Creative Commons Attribution 2.5 License.<br />This document comes with a com

2011-04-19 08:48:00 819

转载 C Right-Left Rule (Rick Ord's CSE 30 - UC San Diego)

<br />http://ieng9.ucsd.edu/~cs30x/rt_lt.rule.htmlThe "right-left" rule is a completely regular rule for deciphering Cdeclarations. It can also be useful in creating them.First, symbols. Read * as "pointer to" - always on the left side

2011-04-19 08:45:00 656

原创 java为什么抛弃多类继承?

<br />主要是Java设计者希望Java是一个简单,友好的面向对象语言. 另外历史经验也表明C++的多类继承带来的复杂度远大于其好处.<br /> <br />Q: Why is multiple inheritance not provided in Java?<br /><br />A: One of the main reasons for creating Java was to address the problems of C++. One such problem was multip

2011-04-14 15:20:00 629

原创 Java 设计者 谈Java设计 (The Java Language Environment)

<br />The Java Language Environment<br />                    <br /><br />1.2 Design Goals of the JavaTM Programming Language<br /><br />    The design requirements of the JavaTM programming language are driven by the nature of the computing environme

2011-04-14 15:17:00 1688

原创 FW:Reverse a Singly Linked List Recursively in Java

http://www.technicalypto.com/2010/03/reverse-singly-linked-list-recursively.html<br />Reverse a Singly Linked List Recursively in Java<br /> <br />We have already seen how to reverse a singly linked listwith illustrative pictures. Now lets see how we c

2011-04-14 15:14:00 818

原创 insert sorting

<br /><br />#include <stdio.h><br /> <br />#define   LENGTH(s)   (sizeof(s)   /   sizeof(int))<br /> <br />int main(void) {<br /> <br />    int a[]= {5, 2, 4, 6, 7, 79, 87, 59, 40};<br /> <br />    printf("Array is ");<br />    int j = 0 ;<br />    for (;

2011-04-10 09:51:00 443

原创 OSGi (Open Service Gateway Initiative ) 学习

<br />Open Services Gateway initiative

2011-03-14 17:25:00 487

原创 C/Java 多线程

<br />TBD

2011-03-14 17:17:00 557

原创 Callback 在Java和C语言中的实现

<br />1. Java <br /> <br />Using interfaces to implement the equivalent of callback functions in Java<br />www.javaworld.com/javaworld/javatips/jw-javatip10.html<br /><br /><br />Developers conversant in the event-driven programming model of MS-Win

2011-03-14 17:16:00 830

转载 c语言变量存储区

高内存地址<br />--------------------------------------<br />堆栈段<br /><br />堆<br /><br />BSS (uninitialized global variables, uninitialized local variables declared with the static keyword)<br /><br />Data Segment (global variables and static variables

2011-03-14 17:11:00 730

转载 JVM 内存初学 (堆(heap)、栈(stack)和方法区(method) )

1. The Structure of the Java Virtual Machinehttp://java.sun.com/docs/books/jvms/second_edition/html/Overview.doc.html2. Inside JVM Chapter 53. http://www.blogjava.net/mlzry0612/articles/223420.htmlJVM 内存初学 (堆(heap)、栈(stack)和方法区(method) )这两天看了一下深入浅出JVM这本书,推

2011-03-13 16:57:00 715

转载 澄清:Java中只有按值传递,没有按引用传递!

<br />基本上可以说是按值传递.<br />A) 对于primitive 类型的参数,大家都没有争议.<br />B) 对于reference 类型的参数, 争议比较多. <br />    b.1) 想要在一个子函数里,swap是不可能的.<br />    b.2) 传入的是地址的一个copy(Stack空间), 真正的对象仍然只有一份在Heap空间. 可以通过这个地址,更改对象的值. 但没有办法改变参数原来的pointer,让其指向另外一个Heap空间的对象.<br /> 1. Java is P

2011-03-13 12:19:00 795

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除