原创 Ubuntu 上使用 OpenJDK 安裝並運行 Tomcat

1. 安裝 OpenJDK sudo apt-get install openjdk-7-jre sudo apt-get install default-jdk //可選,安裝 2. 檢查安裝是否成功 java -version

原创 Ubuntu下連接Android手機

1、查找手機usb信息(ID) 方法:先拔下手機連接PC的USB線,然後查看USB設備信息,再次插入USB連接線,再次查看USB設備信息,通過比較

原创 Apache+Tomcat集羣部署

1.  部署準備(MG1332004) Apache 服務器 下載地址:http://httpd.apache.org/download.cgi 版本2.4 Tomcat 下載地址:http://tomcat.apache.org/版本7

原创 Mac下配置tomcat

到 apache官方主頁 下載 Mac 版本的完整 .gz文件包。解壓拷貝到 /Library目錄下。 1。Mac中 Finder打開 Library的方法 新建 Finder窗口   按下 shift +Command+G  輸入

原创 開源Android APP SlidingMenu環境的部署

github上的jfeinstein10的SlidingMenu就不多說了,地址:https://github.com/jfeinstein10/SlidingMenu,下面記錄下如何在eclipse上的部署: 1、下載SlidingMe

原创 Git遠程基本操作命令

Git有很多優勢,其中之一就是遠程操作非常簡便。本文詳細介紹5個Git命令,它們的概念和用法,理解了這些內容,你就會完全掌握Git遠程操作。 git clonegit remotegit fetchgit pullgit push

原创 [LeetCode] Minimum Window Substring

Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity

原创 Lucene實戰

更新:下面的代碼使用Lucene 4.0版本! Lucene大大簡化了在應用中集成全文搜索的功能。但實際上Lucene十分簡單,我可以在五分鐘之內向你展示如何使用Lucene。 1. 建立索引 爲了簡單起見,我們下面爲一些

原创 Git圖形化參考手冊

基本用法 上面的四條命令在工作目錄、暫存目錄(也叫做索引)和倉庫之間複製文件。 ● git add files 把當前文件放入暫存區域。 ● git commit 給暫存區域生成快照並提交。 ● git reset -- f

原创 CocoaPods安裝和使用教程

出處:http://code4app.com/article/cocoapods-install-usage CocoaPods是什麼? 當你開發iOS應用時,會經常使用到很多第三方開源類庫,比如JSONKit,AFNetWorking

原创 The Knapsack problem

I found the Knapsack problem tricky and interesting at the same time. I am sure if you are visiting this page, you al

原创 [LeetCode] Rank Scores - SQL

Write a SQL query to rank scores. If there is a tie between two scores, both should have the same ranking. Note that a

原创 [LeetCode] Department Highest & Top 3 Salary - SQL

The Employee table holds all employees. Every employee has an Id, a salary, and there is also a column for the departm

原创 8張圖理解Java

1. 字符串不變性 Here are a set of diagrams to illustrate Java String's immutability. 1. Declare a string String s = "abcd

原创 LeetCode: Copy List with Random Pointer題解

A linked list is given such that each node contains an additional random pointer which could point to any node in the