現(xiàn)在還有么?都兩年前了
麻煩您了
reedwind@gmail.com
胎教大全:可用飛速tudou下載[未登錄] lijun 2008-11-24 13:49
re: hql editor 的使用[未登錄] lijun 2008-11-24 13:48
//for test
public static final String DEFAULT_CONTEXT = "classpath*:spring/*.xml";
public static final String DEFAULT_TEST_CONTEXT = "classpath*:spring/test/*.xml";
public static final int DEFAULT_PAGE_SIZE = 20;
public static final String CURRENT_LANGUAGE_SESSIONKEY = "CUL";
re: give up[未登錄] lijun 2008-11-22 00:12
iReport也很不錯(cuò)呀,習(xí)慣問題
采集方式主要有SNMP、NetFlow、SysLog、SNMPTrap、Telnet、JDBC和JMX。
FTP文件方式也很實(shí)用呀
1.基類
package com.movo.tv.test;
import java.io.IOException;
import java.util.Properties;
import org.springframework.orm.hibernate3.SessionFactoryUtils;
import org.springframework.test.AbstractTransactionalDataSourceSpringContextTests;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import com.movo.tv.Constants;
/*
* AbstractTransactionalDataSourceSpringContextTests具體事務(wù)回滾能力,這樣測試數(shù)據(jù)不會(huì)成為臟數(shù)據(jù).而且具有open session in test能力
* 同時(shí)也就解決了lazy load 問題.但如果不想回滾的話,得注意每個(gè)test*方法結(jié)束前加上flushCurrentSession()方法.
* by zy
*/
public abstract class BaseServiceTestCase extends AbstractTransactionalDataSourceSpringContextTests {
protected Logger log = Logger.getLogger(BaseServiceTestCase.class);
/**
* @see AbstractTransactionalDataSourceSpringContextTests#getConfigLocations()
*/
@Override
protected String[] getConfigLocations() {
setAutowireMode(AUTOWIRE_BY_NAME);
this.setDefaultRollback(true);
Properties properties = new Properties();
try {
properties.load(this.getClass().getResourceAsStream("/spring/test/log4j.properties"));
} catch (IOException e) {
e.printStackTrace();
}
PropertyConfigurator.configure(properties);
return new String[]{Constants.DEFAULT_CONTEXT, Constants.DEFAULT_TEST_CONTEXT};
}
protected void flushCurrentSession(){
Session session = SessionFactoryUtils.getSession((SessionFactory)applicationContext.getBean("sessionFactory"), false);
if (session !=null){
session.flush();
}
}
}
2.測試類
-------------------------------------------------
package com.movo.tv.test.service;
import java.util.List;
import com.movo.tv.pojo.City;
import com.movo.tv.test.BaseServiceTestCase;
import com.movo.tv.yedian.service.CityService;
public class TestCityServiceImp extends BaseServiceTestCase {
CityService cityService;
public CityService getCityService() {
return cityService;
}
public void setCityService(CityService cityService) {
this.cityService = cityService;
}
public void testCitiesOnLang(){
Long timeStart_0 =System.currentTimeMillis();
System.out.println("hibernate首次建立緩存:");
//System.out.println("############ testCitiesOnLang start :"+timeStart);
List<City> li_0 = getCityService().citiesOnLang("zh");
City city;
for(int i=0;i<li_0.size();i++){
city=li_0.get(i);
System.out.print("城市名:"+city.getCityname());
}
System.out.println("");
System.out.println("############ testCitiesOnLang use time :"+(System.currentTimeMillis()-timeStart_0)+" 毫秒");
Long timeStart =System.currentTimeMillis();
System.out.println("首次使用hibernate二級緩存查詢的情況:");
System.out.println("############ testCitiesOnLang start :"+timeStart);
List<City> li = getCityService().citiesOnLang("zh");
City city1;
for(int i=0;i<li.size();i++){
city1=li.get(i);
System.out.println("城市名:"+city1.getCityname());
}System.out.println("");
System.out.println("使用時(shí)間 :"+(System.currentTimeMillis()-timeStart)+" 毫秒");
Long timeStart2 =System.currentTimeMillis();
System.out.println("第二次使用hibernate二級緩存查詢的情況:");
System.out.println("使用時(shí)間 :"+timeStart);
List<City> li2 = getCityService().citiesOnLang("zh");
City city2;
for(int i=0;i<li2.size();i++){
city2=li2.get(i);
System.out.println("城市名:"+city2.getCityname());
}System.out.println("");
System.out.println("使用時(shí)間 :"+(System.currentTimeMillis()-timeStart2)+" 毫秒");
}
}
re: JS全文分詞方法[未登錄] lijun 2008-11-04 21:34
,您好!
夜店BUG
一)從首頁點(diǎn)擊COOL派對 然后點(diǎn)擊上面活動(dòng)所在的夜店鏈接顯示500
二)從夜店首頁點(diǎn)擊人氣夜店中的任意一個(gè)夜店 顯示500
三)從特色夜店點(diǎn)擊其中任何一個(gè)夜店的LOGO 顯示500
另外:從夜店首頁進(jìn)入夜店相冊并不顯示相冊所在夜店
致
禮!
re: 研究生這一年[未登錄] lijun 2008-07-08 15:30
在學(xué)校里學(xué)的都是皮毛,最后也就是知道個(gè)名字而已。各位吹牛的老大們,請不要再自欺歁人了
相片選擇[未登錄] lijun 2008-06-13 00:28
DSC_0871
DSC_0872
DSC_0879
DSC_0880(放大,橫式)
DSC_0881
DSC_0884
DSC_0885
DSC_0894
DSC_0897
DSC_0899
DSC_0900
DSC_0902
DSC_0911
DSC_0915
DSC_0920
DSC_0924
DSC_0929
DSC_0932
DSC_0933
DSCF0183
DSCF0410
DSCF0412
DSCF0413
DSCF0414
DSCF0415
DSCF0417
DSCF0420
DSCF0427
DSCF0433
DSCF0434
DSCF0436
DSCF0438(放大,立式掛畫)
DSCF0439
DSCF0442
DSCF0443
DSCF0444
DSCF0447
over
js檢查文件的大小[未登錄] lijun 2008-04-17 17:02
<SCRIPT LANGUAGE="JavaScript">
<!--
function ShowSize(files)
{
var fso,f;
alert("我們會(huì)檢查文件大小,請您允許Active交互");
fso=new ActiveXObject("Scripting.FileSystemObject");
f=fso.GetFile(files);
var size=0;
size=((f.size/1024)/1024).toFixed(2);
var maxFileSize=2;
if(size>maxFileSize){
alert("對不起,你要上傳的文件已經(jīng)超過"+maxFileSize+"M,請重新選擇");
}else{
alert("可以繼續(xù)上傳了");
};
}
//-->
</SCRIPT>
<input type=file onchange="ShowSize(this.value)">
判斷是不是漢字[未登錄] lijun 2008-03-31 11:03
public static void main(String[] args) {
String str = "我lu是ya一個(gè)ng貓";
char[] arr = str.toCharArray();
for (int i = 0; i < arr.length; i++) {
if (String.valueOf(arr[i]).matches("[\\u4e00-\\u9fa5]")) {
System.out.println("字符 \\"" + arr[i] + " \\"是" + "漢字");
} else {
System.out.println("字符 \\"" + arr[i] + " \\"是" + "字母");
}
}
}
這樣就OK了。
image.jsp
<%@ page contentType="image/jpeg" import="java.awt.*,java.awt.image.*,java.util.*,javax.imageio.*" %><%!
Color getRandColor(int fc,int bc){
Random random = new Random();
if(fc>255) fc=255;
if(bc>255) bc=255;
int r=fc+random.nextInt(bc-fc);
int g=fc+random.nextInt(bc-fc);
int b=fc+random.nextInt(bc-fc);
return new Color(r,g,b);
}
%><%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);
int width=60, height=20;
BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
Graphics g = image.getGraphics();
Random random = new Random();
g.setColor(getRandColor(200,250));
g.fillRect(0, 0, width, height);
g.setFont(new Font("Times New Roman",Font.PLAIN,18));
g.setColor(getRandColor(160,200));
for (int i=0;i<155;i++)
{
int x = random.nextInt(width);
int y = random.nextInt(height);
int xl = random.nextInt(12);
int yl = random.nextInt(12);
g.drawLine(x,y,x+xl,y+yl);
}
String sRand="";
for (int i=0;i<4;i++){
String rand=String.valueOf(random.nextInt(10));
sRand+=rand;
g.setColor(new Color(20+random.nextInt(110),20+random.nextInt(110),20+random.nextInt(110)));
g.drawString(rand,13*i+6,16);
}
//session.setAttribute("commentrand",sRand);
//String str = new String(request.getParameter("test").getBytes("ISO8859_1"));
String str = new String(request.getParameter("sessname").getBytes("ISO8859_1"));
session.setAttribute(str,sRand);
//System.out.println("sessname:"+str+"="+sRand);
g.dispose();
ImageIO.write(image, "JPEG", response.getOutputStream());
%>
2.使用的頁面
function show(o,va){
//重載驗(yàn)證碼
var path='<%=contextPath%>';
//alert(path);
var timenow=new Date().getTime();
o.src=path+"/img/image.jsp?sessname="+va+"&d="+timenow;
/*
//超時(shí)執(zhí)行;
setTimeout(function(){o.src="random.jsp?sessname="+va+"&d="+timenow;},20);
*/
}
<tr>
<td align="left" height="30"><ww:text name="spacehome.verycode">驗(yàn)證碼:</ww:text>:</td>
<td align="left"><input type="text" name="randCode" maxlength=4 class="guestbookinputma input" /> <img border=0 id="random" src="<%=contextPath%>/img/image.jsp?sessname=${sessionName}"/> <a href="javascript:show(document.getElementById('random'),'${sessionName}')"><ww:text name="spacehome.verynosee">看不清楚?換一個(gè)</ww:text></a></td>
</tr>
<!-- *********************定時(shí)任務(wù)開始**************************************** -->
<!-- 要調(diào)用的工作類 -->
<bean id="quartzJob" class="cn.com.swjay.guidelineconfig.service.model.impl.JobServiceImpl"></bean>
<!-- 定義調(diào)用對象和調(diào)用對象的方法 -->
<bean id="jobtask" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<!-- 調(diào)用的類 -->
<property name="targetObject">
<ref bean="quartzJob"/>
</property>
<!-- 調(diào)用類中的方法 -->
<property name="targetMethod">
<value>work</value>
</property>
</bean>
<!-- 定義觸發(fā)時(shí)間 -->
<bean id="doTime" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="jobtask"/>
</property>
<!-- cron表達(dá)式 -->
<property name="cronExpression">
<value>10,15,20,25,30,35,40,45,50,55 * * * * ?</value>
</property>
</bean>
<!-- 總管理類 如果將lazy-init='false'那么容器啟動(dòng)就會(huì)執(zhí)行調(diào)度程序 -->
<!--bean id="startQuertz" lazy-init="false" autowire="no" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref bean="doTime"/>
</list>
</property>
</bean-->
<!-- *********************定時(shí)任務(wù)結(jié)束**************************************** -->
08-2-10家庭電表數(shù)[未登錄] lijun 2008-02-10 20:13
內(nèi):374
外:452
<filter>
<filter-name>logincheckfilter</filter-name>
<filter-class>com.wonibo.projectx.web.servlet.LoginFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>logincheckfilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>logincheckfilter</filter-name>
<url-pattern>/admin/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>logincheckfilter</filter-name>
<url-pattern>/app/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>logincheckfilter</filter-name>
<url-pattern>/jsp_cn/*</url-pattern>
</filter-mapping>
public class LoginFilter extends HttpServlet implements Filter {
/**
*
*/
private static final long serialVersionUID = 1L;
private FilterConfig filterConfig;
//Handle the passed-in FilterConfig
public void init(FilterConfig filterConfig) throws ServletException {
this.filterConfig = filterConfig;
}
public void destroy() {
}
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain filterChain) {
try {
//?????????????????????
HttpServletRequest httpRequest = (HttpServletRequest) request;
HttpServletResponse httpResponse = (HttpServletResponse) response;
//HttpSessionContext SessCon= httpRequest.getSession().getSessionContext();
//HttpSession Sess = SessCon.getSession("");
UserInfo_Home userInfoHome=(UserInfo_Home)httpRequest.getSession().getAttribute("userInfoHome");
if(userInfoHome==null){
ApplicationContext applicationContext=WebApplicationContextUtils.getRequiredWebApplicationContext(filterConfig.getServletContext());
UserService userService =(UserService)applicationContext.getBean("userServiceManager");
//userService.checkCookie(httpRequest);
userInfoHome=userService.getFlexUserLogin(httpRequest);
//????û?????¼???
if(userInfoHome!=null){
WbUser wbUser=userService.getUserInfoById(userInfoHome.getUser_id());
Date lastLoginDate=new Date(System.currentTimeMillis());
wbUser.setLastLoginTimeMedia(wbUser.getLastLoginDate());
wbUser.setLastLoginDate(lastLoginDate);
userService.updateWbUser(wbUser);
}
//**************end
httpRequest.getSession().setAttribute("userInfoHome",userInfoHome);
}
//***********************************
<session-config>
<session-timeout>60</session-timeout>
</session-config>
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.js</url-pattern>
</servlet-mapping>
<filter>
<filter-name>hibernateFilter</filter-name>
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
<init-param>
<param-name>singleSession</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>hibernateFilter</filter-name>
<url-pattern>/app/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>hibernateFilter</filter-name>
<url-pattern>/admin/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>hibernateFilter</filter-name>
<url-pattern>/services/*</url-pattern>
</filter-mapping>
<beans>
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">
<value>java:comp/env/jdbc/vonibo</value>
</property>
</bean>
</beans>
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
<prop key="hibernate.jdbc.batch_size">50</prop>
<prop key="hibernate.jdbc.fetch_size">100</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.cache.use_query_cache">false</prop>
<prop key="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</prop>
</props>
</property>
<!-- property name="mappingDirectoryLocations">
<list>
<value>classpath:/com/wonibo/projectx/model</value>
</list>
</property-->
<!-- 常鵬添加 2007年10月11日 目的:自動(dòng)將每天的新商品上傳到公司的博客上-->
<bean id="getBBSJob" class="org.springframework.scheduling.quartz.JobDetailBean">
<property name="jobClass">
<value>com.wonibo.projectx.web.util.GetBBSTask</value>
</property>
</bean>
<bean id="getBBSTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="getBBSJob"/>
</property>
<property name="cronExpression">
<value>0 40 23 * * ?</value>
</property>
</bean>
<!-- 常鵬添加 2007年10月11日 -->
<bean id="createIndexJob" class="org.springframework.scheduling.quartz.JobDetailBean">
<property name="jobClass">
<value>com.wonibo.projectx.web.util.AutoCreateIndex</value>
</property>
</bean>
<bean id="createIndexJobTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean">
<property name="jobDetail">
<ref bean="createIndexJob"/>
</property>
<property name="startDelay">
<value>10000</value>
</property>
<property name="repeatInterval">
<value>3600000</value>
</property>
</bean>
<bean id="scheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref bean="getBBSTrigger"/>
<ref bean="createIndexJobTrigger"/>
</list>
</property>
</bean>
package com.wonibo.projectx.web.util;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;
import com.wonibo.projectx.service.util.CreateIndex;
import com.wonibo.projectx.util.CountryConstants;
public class AutoCreateIndex extends QuartzJobBean{
@Override
protected void executeInternal(JobExecutionContext arg0) throws JobExecutionException {
CreateIndex.getInstance().createProductsIndex(0,CountryConstants.JAPAN_LG);
CreateIndex.getInstance().createProductsIndex(0,CountryConstants.CHINA_LG);
}
}
re: PHP使用記錄[未登錄] lijun 2008-01-10 21:35
06 12 14 18 23 30
03
嵌入flash[未登錄] lijun 2007-12-13 09:47
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="900" height="600">
<param name="movie" value="../../images_cn/demo/yslc1.swf" />
<param name="quality" value="high" />
<embed src="../../images_cn/demo/yslc1.swf" quality="high" pluginspage="
http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="900" height="600"></embed>
</object>
re: JAVA 快速排序[未登錄] lijun 2007-12-12 17:37
Comparator<HashMap> objComer=new Comparator<HashMap>(){
public int compare(HashMap a,HashMap b){
if(a.get("endTime")==null||b.get("endTime")==null)return 1;
else return ((Date)a.get("endTime")).compareTo((Date)b.get("endTime"));
}
};
Collections.sort(list,Collections.reverseOrder(objComer) );
java內(nèi)存溢出[未登錄] lijun 2007-12-03 12:30
eclipse:啟動(dòng)參數(shù)
D:\eclipse\eclipse.exe -clean -Xms256m-Xmx768m-XX:PermSize=256M-XX:MaxPermSize=512M
tomcat 操作程序參數(shù):在config Server 里面配置。
-xms 512m -xmx 1024m
如果它們?nèi)魏我粋€(gè)參數(shù)不設(shè)置,都可能造成內(nèi)存溢出
loadrunner[未登錄] lijun 2007-11-18 14:25
[free_guru].rar|318419889|D4216029A35112019952F905278E30BF|h=3YVYJNIKXOYHC7RM5TQ7MXA7GBXRP4YG|/RP4YG|
<script language="javascript">
function showDiv(obj)
{
linkDiv.style.left=getPosition(obj).x;
linkDiv.style.top=getPosition(obj).y+obj.offsetHeight;
linkDiv.style.position="absolute";
linkDiv.style.display='';
linkDiv.onmouseleave=function(){linkDiv.style.display='none'};
}
function getPosition(el)
{
for (var lx=0,ly=0;el!=null;lx+=el.offsetLeft,ly+=el.offsetTop,el=el.offsetParent);
return {x:lx,y:ly}
}
</script>
<div id="linkDiv" style="display:none;width:100px;height:100px;border:1px #000000 solid"></div>
<a href="" onmouseover="showDiv(this)">顯示層1</a>
<p> </p>
<p> </p>
<a href="" onmouseover="showDiv(this)">顯示層2</a>
Apache不能啟動(dòng)[未登錄] lijun 2007-11-10 18:29
通常我們在使用mode_rewirte或者使用apache和tomcat橋接的時(shí)候,apache會(huì)啟用ssl服務(wù)。
Apache不能啟動(dòng)[未登錄] lijun 2007-11-10 18:27
當(dāng)apache也向我們提示ssl服務(wù)的時(shí)候會(huì)一起啟用80和443端口,這時(shí),如果有些軟件先于apache使用了80或者443端口的時(shí)候就會(huì)造成apache啟用失敗。
在window的事件查看器里我們可以看到這樣的提示:通常每個(gè)端口只能使用一次。mack_sock:can not bind to address:0,0,0,0:443.好了,有這樣的信息我們就可以安圖索驥,先查看誰在占用端口才443。方法是:在dos下用netstat -ano查看哪個(gè)進(jìn)程使用了這個(gè)端口,記下pid號。然后在任務(wù)管理器里點(diǎn)查看選擇列,勾選上 pid,就能找到使用這個(gè)端口的程序了。kill it .over.
但是如果使用443的程序很重要,我們也可以修改apahe的端口。
去apahe/conf/http.conf修改80
或者去apache/cof/ext/ssl.conf下面找到使用443端口的配置,修改成其他端口號即可。
通過PHP連接MYSQL數(shù)據(jù)庫
$conn = mysql_connect("localhost","root","password") or die("無法連接數(shù)據(jù)庫");
mysql_select_db("table" ,$conn) or die ("找不到數(shù)據(jù)源");
-----------------------------------------------------------------------
通過PHP創(chuàng)建MYSQL數(shù)據(jù)庫
$conn = mysql_connect("localhost","root","password") or die("無法連接數(shù)據(jù)庫");
mysql_create_db("webjx") or die("無法創(chuàng)建數(shù)據(jù)庫");
$sqlstr = "create database other_webjx";
mysql_query($sqlstr) or die("無法創(chuàng)建,一般請檢查權(quán)限什么的");
----------------------------------------------------------------------------
創(chuàng)建mysql的表
$conn = mysql_connect("localhost","root","password") or die("無法連接數(shù)據(jù)庫");
mysql_select_db("webjx",$conn) or die("無法連接數(shù)據(jù)庫webjx");
$sql = "create table webjx_table(
ids integer not null auto_increment ,
primary key(ids)
)";
$mysql_query($sql) or die(mysql_error());
周末工作檢查[未登錄] lijun 2007-10-27 10:40
1.ChannelStatsController,productStatscontroller方法清掃。。
function channel() {
mysql_query("set names gb2312");
$channals = $this->Channal->findAll();
$this->set("channals1",$channals);}
2.UserStatsDataController
。。。top。。。//10
mutiSubTypeTablesOnAction($subType[$i],$this->getOrderbyStrByActionId($doingString),$doingString,10);//10
print_r->//print_r
3.product.php echo->//echo
4.channal.thtml.product.thtml
<iframe name='display'scroll=no;scrolling='no'; height=900px; frameBorder='false' style='width:800px; border-width:0 0 0 0;overflow:hidden;overflow-y:hidden;overflow-x:hidden;border:0px;'
></iframe>
離散 homework[未登錄] lijun 2007-10-24 12:39
c homework[未登錄] lijun 2007-10-24 12:35
#include "stdio.h"
main()
{char str1[100],str2[100];
char c;
int i=0,j=0,k,m,n;
printf("\nplease input a $ (0-99):\n");
while((c=getchar())!='\n'&&i<99&&j<99)
{ if(c>=48&&c<=57)
str1[i++]=c ;
else if(c>=65&&c<=90||c>=97&&c<=122)
str2[j++]=c ;
else ;
}
for(k=1;k<i;)
{for(m=k-1;m>=0;m--)
{if(str1[k]==str1[m])
{ for(n=k+1;n<i;n++)
str1[n-1]=str1[n];
i--;
break;
}
else if(str1[k]>str1[m])
{ char tempch=str1[k];
for(n=k-1;n>m;n--)
str1[n+1]=str1[n];
str1[m+1]=tempch;
k++;
break;
}
else ;
}
if(m==-1)
{ char tempch=str1[k];
for(n=k-1;n>=0;n--)
str1[n+1]=str1[n];
str1[0]=tempch;
}
}
for(k=1;k<j;)
{ for(m=k-1;m>=0;m--)
{ if(str2[k]==str2[m])
{ for(n=k+1;n<j;n++)
str2[n-1]=str2[n];
j--;
break;
}
else if(str2[k]>str2[m])
{ char tempch=str2[k];
for(n=k-1;n>m;n--)
str2[n+1]=str2[n];
str2[m+1]=tempch;
k++;
break;
}
else ;
}
if(m==-1)
{ char tempch=str2[k];
for(n=k-1;n>=0;n--)
str2[n+1]=str2[n];
str2[0]=tempch;
}
}
str1[i]='\0';
str2[j]='\0';
printf("the number array: %s\n",str1);
printf("the letter array: %s\n",str2);
return(1);
}
re: 同行們,聯(lián)系我請用雅虎通! lijun 2007-10-14 23:32
to 麥田里的守望:
謝謝光臨我的這個(gè)小地方并留言,你的雅虎通ID多少呢?^_^
re: 你喜歡秋后算賬嗎!!!! lijun 2007-10-14 23:31
to photon:
再次看到你的留言,真是讓人超級happy!^_^!
能認(rèn)識你嗎,能否留個(gè)郵箱,便于以后互相溝通、學(xué)習(xí)、幫助。
你的留言總是那么的經(jīng)典,讓我好想認(rèn)識你啊!!!!
to seanhe:
難的看到你在我的blog上留言,我可得好好珍藏哈!!!^_^
你真不愧是神醫(yī),問題分析的非常透徹。重要的血位都點(diǎn)到了。
是的,正如你所說的:重要的是溝通、一定要是有效的溝通。其次是目標(biāo)、目標(biāo)一定要一致,當(dāng)目標(biāo)一致后,就是現(xiàn)實(shí)的。哪怕結(jié)果是失敗的。
真是有些慚愧,這段時(shí)間忙的都沒有去測試時(shí)代管理我認(rèn)領(lǐng)的那個(gè)小菜地了,也不知道菜地的草長的有多高了,該是抽時(shí)間回去看看了。^_^
re: 你是不是處女座? lijun 2007-10-14 23:20
to ricky:
又看到你的留言啦。嘿嘿,想不到你是處女座的。^_^
to qiubole:
謝謝你的留言。^_^
你推薦的地址我有去看,我還光臨了你的blog。歡迎你有空常來看看。
to photon:
你這句話說的很帥,我喜歡。"我覺得職業(yè)是無所謂高尚的,重要的是從事該職業(yè)的人"。謝謝你留給我這么經(jīng)典的話。^_^
to ss65:
恩,是的,人品是否高尚。^_^
re: 測試管理之責(zé)任!!!! lijun 2007-10-14 23:08
to ShaLongBus:
很高興,光臨我這個(gè)小地方并留言。你說的對:是需要有效溝通;Bug并不是衡量工作效率的指標(biāo),但可用來衡量風(fēng)險(xiǎn)
to 大號:
很高興,光臨我這個(gè)小地方并留言。我不認(rèn)同你的看法,因?yàn)闇y試和開發(fā)是一個(gè)團(tuán)隊(duì),光為測試自身著想而不為開發(fā)著想,很難發(fā)揮一個(gè)團(tuán)隊(duì)的力量。
to qiujj:
很高興,看到你的留言。你的幾點(diǎn)建議對我的同學(xué)會(huì)有所幫助,謝謝你。^_^
to Lydia:
嘿嘿,不用羨慕,從小我媽媽就對我說,別老看人家家有多好多好,別老比來比去,人比人氣死人。只要開心快樂就OK啦,祝你好運(yùn)
祝樓上各位留言的同行,Good lucky!!!!^_^
to 我喜歡測試:
謝謝你光臨我的這個(gè)小地方,也很高興,我的這些文章對你有幫助。學(xué)到的理論一定要和實(shí)踐相結(jié)合,學(xué)了就一定要用,不然不清楚實(shí)際情況是怎樣的,往往想是一回事,做又是一回事。不去做,怎么知道自己想的是否正確。
to JackYang:
看到你的留言,我那個(gè)興奮啊!!!!!^_^
我現(xiàn)在都不上MSN,咋想到來我這個(gè)小地方逛呢。有空,常來看看啊!看到你的留言,真開心。^_^
re: 經(jīng)典格言收藏! lijun 2007-10-14 22:53
嘿嘿,樓上的,你也喜歡這句話。^_^
魔方的玩法[未登錄] lijun 2007-09-30 12:59
//截取字符串
public static String substring(String str, int byteNumber) {
int reInt = 0;
String reStr = "";
if (str == null) return "";
char[] tempChar = str.toCharArray();
for (int kk = 0; (kk < tempChar.length && byteNumber > reInt); kk++) {
String s1 = str.valueOf(tempChar[kk]);
byte[] b = s1.getBytes();
reInt += b.length;
reStr += tempChar[kk];
}
return reStr;
}
re: CSS/JS/HTML技巧[未登錄] lijun 2007-09-28 16:38
//清空文件上傳框
function clearFileInput(file){
var form=document.createElement('form');
document.body.appendChild(form);
//記住file在舊表單中的的位置
var pos=file.nextSibling;
form.appendChild(file);
form.reset();
pos.parentNode.insertBefore(file,pos);
document.body.removeChild(form);
}