- 浏览: 227033 次
- 性别:
- 来自: 北京
最新评论
-
Virtoway:
说到Angular JS刚读到一片美国构架师的文章关于使用An ...
angular js: angular.bind example -
08284008:
该毛线啊,一点解释的都没有,怎么看
Thread join() 用法 -
Rex86lxw:
在eclipse中我一直用Navigator查看编写代码的,可 ...
eclipse不能自动编译,不报错 -
mistake:
..............
Angular js scope: the child scope would inherit from the parent scope -
sparrow1314:
very good! thanks!
IE下JS调试工具
文章列表
http://vansande.org/2015/03/26/intellij_idea_live_templates_for_unit_testing/
https://www.journaldev.com/2856/java-jvm-memory-model-memory-management-in-java
#!/bin/bash
contains() {
string="$1"
substring="$2"
if test "${string#*$substring}" != "$string"
then
return 0 # $substring is in $string
else
return 1 # $substring is not in $string
fi
}
file=$1
de ...
Path path = Paths.get(getClass().getClassLoader()
.getResource("fileTest.txt").toURI()); //relative to the class
String content = new String(Files.readAllBytes(path));
try (Stream<String> stream = Files.lines(Paths.get(fileName))) {
stream.forEach(System. ...
Put this in the profile. If you use fish, put it in ~/.config/fish/config.fish
ln /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/st
很容量找到怎么在tomcat中远程调试的文章。如
http://stackoverflow.com/questions/6733849/remote-debugging-in-intellij-tomcat
但是这种调试只能在tomcat启动完成之后才能开启。但是我们有时想调试tomcat启动时用到的代码,如一应用的初始化代码。其实很简单。
<jvmarg line="-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=${debug-port}"/>
只需要把suspend ...
The best way I have found to persistently add a path to your $PATH is
set-U fish_user_paths $fish_user_paths ~/path/name
This prepends to $PATH. And since it's persistent, the path stays in $PATH on shell restarts.
building microservices summary
Integer Break
- 博客分类:
- 算法
public class IntegerBreak {
public int integerBreak(int n) {
if (n == 2) {
return 1;
}
if (n == 3) {
return 2;
}
if (n % 3 == 1) {
int p = n / 3;
return (int) Math.pow(3, p - 1) * 4;
...
public class Solution {
public int lengthOfLIS(int[] nums) {
if(nums.length==0){
return 0;
}
int[] lens= new int[nums.length];
lens[0]=1;
int max=1;
for(int i=1;i<nums.length;i++){
for (int j = 0; ...
Top K Frequent Elements
- 博客分类:
- 算法
import java.util.*;
public class Solution {
public List<Integer> topKFrequent(int[] nums, int k) {
HashMap<Integer, Integer> numberOccur = getNumOccur(nums);
PriorityQueue<Integer> priorityQueue = new PriorityQueue<>((o1, o2) -> numberOcc ...
Create an environment.plist file in ~/Library/LaunchAgents/ with this content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version=" ...
1. Switch to root
2. sudo qemu-img resize images/win2008.img +20G
3. Start windows vm and go to server manager
4. Server Manager->Storage->Diskmanagement
5. Extend volume of C with the added disk space
http://bartwullems.blogspot.com/2012/03/nhibernate-eager-fetching.html
NHibernate eager fetching
NHibernate supports the concept of eager fetching for a long time. However there are some things to consider when you start using this with the out-of-the-box NHibernate Linq provider. Let’s ...
http://www.cnblogs.com/lmule/archive/2010/08/18/1802774.html