[ 问题: ]
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.
If the last word does not exist, return 0.
[...
                            
                            
                                分类:
其他好文   时间:
2014-07-22 23:01:35   
                                阅读次数:
331
                             
                         
                    
                        
                            
                            
                                software directory: The default directory of 
software installed on ubuntu is /usr, so just allocate more space for this 
partition when installing oper...
                            
                            
                                分类:
其他好文   时间:
2014-05-06 00:02:59   
                                阅读次数:
281
                             
                         
                    
                        
                            
                            
                                The Bandulu Space Agency (BSA) has plans for 
the following three space missions:Mission A: Landing on Ganymede, the largest 
moon of Jupiter.Mission B:...
                            
                            
                                分类:
其他好文   时间:
2014-05-05 22:28:06   
                                阅读次数:
565
                             
                         
                    
                        
                            
                            
                                Pattern { Action }为awk中最主要的语法。若某Pattern的值为真则执行它后面的 
Action。 awk中常使用"关系表达式" (Relational Expression)来当成 Pattern。 awk 中除了>, <, 
==, != ,...等关系运算符( Relat...
                            
                            
                                分类:
其他好文   时间:
2014-05-04 12:05:45   
                                阅读次数:
305
                             
                         
                    
                        
                            
                            
                                awk 通过判断 Pattern 
的值来决定是否执行其后所对应的Actions。这里列出几种常见的Pattern:A.1 BEGIN BEGIN 为 awk 的保留字,是一种特殊的 
Pattern。 BEGIN 成立(其值为true)的时机是: "awk 程序一开始执行,尚未读取任何数...
                            
                            
                                分类:
其他好文   时间:
2014-05-04 11:47:23   
                                阅读次数:
277
                             
                         
                    
                        
                            
                            
                                解决方案 在catalina.bat 里的 蓝色代码前加入: 红色代码rem ----- 
Execute The Requested Command --------------------------------------- set 
JAVA_OPTS=%JAVA_OPTS%-server -X...
                            
                            
                                分类:
编程语言   时间:
2014-05-03 22:52:29   
                                阅读次数:
460
                             
                         
                    
                        
                            
                            
                                缘起
线上有Tomcat升级到7.0.52版,然后有应用的JVM FullGC变频繁,在高峰期socket连接数,Cpu使用率都暴增。
思路
思路是Tomcat本身的代码应该是没有问题的,有问题的可能是应用代码升级,或者环境改变了,总之Tomcat的优先级排在最后。
先把应用的heap dump下来分析下:
jmap -dump:format=b,file=path pid
用IB...
                            
                            
                                分类:
其他好文   时间:
2014-05-03 21:42:36   
                                阅读次数:
382
                             
                         
                    
                        
                            
                            
                                第48期百度技术沙龙上的《大数据场景下主题检索应用》讲座介绍了很多训练大规模主题模型的技术细节。讲座回来后,我粗略整理了下讲座上涉及的主题模型和训练大规模模型相关的资料和文献。
1. 主题模型的发展历史
    a. 布尔模型 Boolean model
    b. 向量空间模型 VSM (Vector space model)
    c. 潜在语义索引 LSI (Latent...
                            
                            
                                分类:
其他好文   时间:
2014-05-03 21:40:07   
                                阅读次数:
371
                             
                         
                    
                        
                            
                            
                                sed‘s/^/\//g‘4行首增加指定字符提取网页中的播放地址:#!/bin/bash
printf"enteryourdir:"
readdir
echo"$dirisxx"
cd$dir
echo`pwd`
forfilein`ls.`
do
if[-d$file];then
echo$file
cd$file
echo`pwd`
tree`pwd`|grepplay|sed‘s/.*//g‘>11
tree`pwd`|grepplay|sed‘s/.*//g..
                            
                            
                                分类:
其他好文   时间:
2014-05-03 00:53:15   
                                阅读次数:
336
                             
                         
                    
                        
                            
                            
                                强制关掉yum进程:#rm-f/var/run/yum.pid然后就可以使用yum了。
                            
                            
                                分类:
移动开发   时间:
2014-05-02 04:18:15   
                                阅读次数:
371