windows下面svn update后有时候自动将文件名修改为全部大写,很蛋疼 5C

原文件为Message.lua 使用svn update后变成了update后变成了全大写

1个回答

可以用下Windows下的新版本的TortoiseSVN,目前还没发现上述问题。希望能帮到你!

WJ_1062
winux1062 我用的就是TortoiseSVN, 不知道怎么回事啊
大约一年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
很蛋疼的问题。
private void Form2_Load(object sender, EventArgs e)rn rn base.Opacity = 0.5;rn h.InsertHook();rn Form3 na = new Form3();rn na.s = s;rn na.x = x;rn na.y = y;rn na.ShowDialog();rn想做一个像网吧一样的锁屏,如上代码,弹出的FORM3是锁不了屏的,但如果关FORM3,FORM2那就可以锁屏了。rn而如果改成rn private void Form2_MouseClick(object sender, MouseEventArgs e)rn rn Form3 na = new Form3();rn na.s = s;rn na.x = x;rn na.y = y;rn na.ShowDialog();rn只要按鼠标一下FORM2窗体,那么就弹出FORM3而且可以锁屏的,但是,现在不想按鼠标,直接开机rn就弹出FORM3锁屏,有什么好办法。
令人蛋疼的 SVN 问题..
在服务器上安装了svn版本控制器,然后也把项目导入进去了, 可是到我本地check out 项目时候就抱错了, rn地址我是这样写的 svn://192.168.1.88/svn/Repository/demo rnrn错误是 :rnrnCan't connect to host '192.168.1.88': 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。rnrn真实整死个人啊, 搞了好久也搞不定.. 各位大佬们有啥招都使出来吧。。 小弟谢过先
【数据库SQL】将小写修改为大写
use hbposev9 go delete from pbcatcol where pbc_tnam = 't_bd_item_info2' go delete from pbcatcol where pbc_tnam = 't_pc_branch_price2' go --将货号中存在小写的字母修改成大写 declare @ls_tablename varchar(50),@ls
很蛋疼的三个问题。
最近在通达oa上做二次开发。遇到了三点很蛋疼的问题。希望各位大神能给提提宝贵的意见rnrn1:同样的代码。我在wamp环境里 用管理员创建成功了普通用户后,右上角的登陆用户依然是管理员。但是放到oa里右上角就是刚刚添加成功的这个用户。并且其他功能点击的时候会显示我做好了的非法访问页面,但是继续添加用户,居然可以(我也是做了同样的非法访问,并没有去执行)rnrn2:用户 管理员 供货商三个页面。都有刷新订单功能。 同样的写法。 管理员和用户的刷新 不管刷新几次。 都没有问题。 但是供货商的 期初刷新一次,能显示正常订单数,但是刷新第二次,数据库直接没有了。rnrn3:用ajax做 一个快速搜索客户的联动功能。编码全部一致,并且 echo了一下sql语句 也没有乱码。但是右边的下拉表明显动了一下,但是不跟随sql语句得到的答案进行选中。
MDI的一些问题,很蛋疼
我想把子窗体的menuitem追加到父窗体的的menustrip中,默认是追加到后面可以我怎么设置mergeaction都没效果,还有想追加到指定位置,设置mergeindex也没用,请指教,第一次接触,还有我想把打开的子窗体都显示在menuitem下显示所打开的活动窗体都有哪些?
蛋疼的时候也写了一个蛋疼的函数
用户需求,要求月份、日期不到10号时不带0,oracle自带的to_char没找到实现方法,rn另外oracle的to_char在转换带中文的年月日格式时,必须蛋疼的加双引号,很不爽。rn模仿小爱的MYSQL例子,写了一个oracle版的日期转换函数。rnrn[code=SQL]rn-- =============================================rn-- Author: tfwin2rn-- Create date: 2012-04-08rn-- Description: 用个性化格式显示日期/时间数据 rn-- P_DATE: 合法的日期rn-- P_FORMAT: 规定日期/时间的输出格式rn-- =============================================rnrn-- =============================================rn-- 工具包定义 COMMONUTILrn-- 包函数定义 TO_CHARrn-- =============================================rnCREATE OR REPLACE PACKAGE COMMONUTILrnISrn FUNCTION TO_CHAR(P_DATE DATE,P_FORMAT VARCHAR2 )rn RETURN VARCHAR2;rnEND COMMONUTIL;rn/rn-- =============================================rn-- 包体函数实现 TO_CHARrn-- =============================================rnCREATE OR REPLACE PACKAGE BODY COMMONUTILrnISrn FUNCTION TO_CHAR(P_DATE DATE,P_FORMAT VARCHAR2)rn RETURN VARCHAR2rn ISrn --返回值rn V_CHAR VARCHAR2(50);rn --转换值集合,按顺序排列,由大到小rn CURSOR C1 IS SELECT 11 ID,'yyyy' CODE, to_char(P_DATE,'yyyy') VALUE FROM dualrn UNION ALL SELECT 13 ID,'yy' CODE ,to_char(P_DATE,'yy') VALUE FROM dualrn UNION ALL SELECT 12 ID,'YYYY' CODE,to_char(P_DATE,'yyyy') VALUE FROM dualrn UNION ALL SELECT 14 ID,'YY' CODE,to_char(P_DATE,'yy') VALUE FROM dualrn UNION ALL SELECT 21 ID,'MM' CODE,to_char(P_DATE,'mm') VALUE FROM dualrn UNION ALL SELECT 22 ID,'M' CODE,to_number(to_char(P_DATE,'mm'))||'' VALUE FROM dualrn UNION ALL SELECT 23 ID,'mm' CODE,to_char(P_DATE,'mm') VALUE FROM dualrn --UNION ALL SELECT 24,'m' CODE,to_number(to_char(P_DATE,'mm')) VALUE FROM dual--无法支持,会与分钟冲突rn UNION ALL SELECT 31 ID,'DD' CODE,to_char(P_DATE,'dd') VALUE FROM dualrn UNION ALL SELECT 32 ID,'D' CODE,to_number(to_char(P_DATE,'dd'))||'' VALUE FROM dualrn UNION ALL SELECT 33 ID,'dd' CODE,to_char(P_DATE,'dd') VALUE FROM dualrn UNION ALL SELECT 34 ID,'d' CODE,to_number(to_char(P_DATE,'dd'))||'' VALUE FROM dualrn UNION ALL SELECT 41 ID,'HH24' CODE,to_char(P_DATE,'hh24') VALUE FROM dualrn UNION ALL SELECT 42 ID,'hh24' CODE,to_number(to_char(P_DATE,'hh24'))||'' VALUE FROM dualrn UNION ALL SELECT 43 ID,'HH' CODE,to_char(P_DATE,'hh24') VALUE FROM dualrn UNION ALL SELECT 44 ID,'hh' CODE,to_number(to_char(P_DATE,'hh24'))||'' VALUE FROM dualrn UNION ALL SELECT 45 ID,'H' CODE,to_char(P_DATE,'hh24') VALUE FROM dualrn UNION ALL SELECT 46 ID,'h' CODE,to_number(to_char(P_DATE,'hh24'))||'' VALUE FROM dualrn UNION ALL SELECT 51 ID,'MI' CODE,to_char(P_DATE,'mi') VALUE FROM dualrn UNION ALL SELECT 52 ID,'mi' CODE,to_number(to_char(P_DATE,'mi'))||'' VALUE FROM dualrn UNION ALL SELECT 61 ID,'SS' CODE,to_char(P_DATE,'ss') VALUE FROM dualrn UNION ALL SELECT 62 ID,'s' CODE,to_number(to_char(P_DATE,'ss'))||'' VALUE FROM dualrn UNION ALL SELECT 63 ID,'S' CODE,to_char(P_DATE,'ss') VALUE FROM dualrn UNION ALL SELECT 64 ID,'s' CODE,to_number(to_char(P_DATE,'ss')) ||'' VALUE FROM dual;rn --行记录对象rn V_TEMP c1%rowtype;rn BEGINrn V_CHAR:=P_FORMAT;rn -- ================================================rn -- 循环替换,生成日期字符串 rn -- ================================================rn FOR V_TEMP IN C1 LOOPrn SELECT REPLACE(V_CHAR,V_TEMP.CODE,V_TEMP.VALUE) INTO V_CHAR FROM DUAL;rn END LOOP;rn RETURN V_CHAR;rn END TO_CHAR;rnEND COMMONUTIL;rn/rnrn--使用方式rnSELECT COMMONUTIL.TO_CHAR(SYSDATE,'yy年MM月DD日 HH24:MI:SS') FROM dualrnUNION ALLrnSELECT COMMONUTIL.TO_CHAR(SYSDATE,'yy年M月D日 HH24:MI:SS') FROM dual;rnrnrnrn[/code]
很蛋疼的更新问题
表1:Basicinfo:StuNo,Grade_IDrnrn表2:Class:StuNo,Idrnrn现在要把表1中Grade_ID更新成表2的ID怎么弄?rn
蛋疼的时候写了一个蛋疼的函数
[code=SQL]-- =============================================rn-- Author: 小爱 rn-- Create date: 2012-03-26rn-- Description: 以不同的格式显示日期/时间数据 rn-- @date: 合法的日期rn-- @format: 规定日期/时间的输出格式rn-- =============================================rnrnIF OBJECT_ID('formatDate','FN') IS NOT NULL DROP FUNCTION [formatDate]rnGOrnrnCREATE FUNCTION [dbo].[formatDate](@date AS datetime, @format varchar(50))rnRETURNS varchar(50)rnASrnBEGIN rn DECLARE @string varchar(50)rn -- ================================================rn -- 填充日期/时间的输出格式rn -- ================================================rn ;WITH allowedTokens (id, code, value) AS (rn SELECT id,rn code COLLATE Latin1_General_CS_AS,rn valuern FROM (rn SELECT 1, 'YYYY', RIGHT('0000' + CAST(YEAR(@date) AS varchar(4)),4)rn UNION ALL SELECT 2, 'YY', RIGHT('00' + CAST(YEAR(@date) AS varchar(4)),2)rn UNION ALL SELECT 3, 'Y', CAST(CAST(RIGHT('00' + CAST(YEAR(@date) AS varchar(4)),2) AS int) AS varchar(2))rn UNION ALL SELECT 4, 'MM', RIGHT('00' + CAST(MONTH(@date) AS varchar(2)),2)rn UNION ALL SELECT 5, 'M', CAST(MONTH(@date) AS varchar(2))rn UNION ALL SELECT 6, 'DD', RIGHT('00' + CAST(DAY(@date) AS varchar(2)),2)rn UNION ALL SELECT 7, 'D', CAST(DAY(@date) AS varchar(2))rn UNION ALL SELECT 8, 'HH', RIGHT('00' + CAST(DATEPART(hour,@date) AS varchar(2)),2)rn UNION ALL SELECT 9, 'H', CAST(DATEPART(hour,@date) AS varchar(2))rn UNION ALL SELECT 10, 'hh', RIGHT('00' + CAST(DATEPART(hour, @date) - (12 * CEILING((DATEPART(hour, @date) - 12)*.1)) AS varchar(2)),2)rn UNION ALL SELECT 11, 'h', CAST(DATEPART(hour, @date) - (12 * CEILING((DATEPART(hour, @date) - 12)*.1)) AS varchar(2))rn UNION ALL SELECT 12, 'mm', RIGHT('00' + CAST(DATEPART(minute,@date) AS varchar(2)),2)rn UNION ALL SELECT 13, 'm', CAST(DATEPART(minute,@date) AS varchar(2))rn UNION ALL SELECT 14, 'ss', RIGHT('00' + CAST(DATEPART(second,@date) AS varchar(2)),2)rn UNION ALL SELECT 15, 's', CAST(DATEPART(second,@date) AS varchar(2))rn UNION ALL SELECT 16, 'fff', RIGHT('000' + CAST(DATEPART(millisecond,@date) AS varchar(3)),3)rn UNION ALL SELECT 17, 'f', CAST(DATEPART(millisecond,@date) AS varchar(3))rn UNION ALL SELECT 18, 'tt', CASE WHEN DATEPART(hour,@date) >= 12 THEN 'PM' ELSE 'AM' ENDrn UNION ALL SELECT 19, 't', CASE WHEN DATEPART(hour,@date) >= 12 THEN 'P' ELSE 'A' ENDrn ) AS susbst (id, code, value)rn ),rn -- ================================================rn -- 对列表进行格式化处理 rn -- ================================================rn substitutions (id, code, value, maxval) AS (rn SELECT ROW_NUMBER() OVER (ORDER BY id, set_id), code, value, COUNT(*) OVER ()rn FROM (rn SELECT 0 AS set_id, id, code, valuern FROM allowedTokensrn ) AS srcrn ), rn -- ================================================rn -- 使字符串区分大小写rn -- ================================================rn formatStrings (formatString) AS (rn SELECT @format COLLATE Latin1_General_CS_ASrn ),rn -- ================================================rn -- 使用CTE递归替换标记 rn -- ================================================rn recursiveReplace AS (rn SELECT s.id,REPLACE(f.formatString,s.code,s.value) AS formattedDate,s.maxvalrn FROM formatStrings AS frn INNER JOIN substitutions AS s ON s.id = 1rn UNION ALLrn SELECT s.id, REPLACE(r.formattedDate, s.code,s.value) AS formattedDate,s.maxvalrn FROM recursiveReplace AS rrn INNER JOIN substitutions AS s ON s.id = r.id + 1rn )rn -- ================================================rn -- 结果的最后一行就是想要得到的结果rn -- ================================================rn SELECT @string=formattedDate FROM recursiveReplace WHERE id = maxvalrn RETURN @string;rnENDrnGOrnrnSELECT [dbo].[formatDate](GETDATE(), 'YYYY/MM/DD'),rn [dbo].[formatDate](GETDATE(), 'YYMMDD'),rn [dbo].[formatDate](GETDATE(), 'YYYY-MM-DD HH:mm:ss'),rn [dbo].[formatDate](GETDATE(), 'YYYY-MM-DD hh:mm:ss tt')rn[/code]
批处理将文件名大写改为小写
@echo off   setlocal setlocal ENABLEDELAYEDEXPANSION set path="D:\Program Files\MATLAB\toolbox\sheffield_gatool\sheffield_gatool"#文件夹路径 set suf="*.m"#文件后缀 rem %path% #使用变量 for /f "delims=" %%i i
蛋疼的windows phone8 模拟器
[img=http://img.my.csdn.net/uploads/201301/10/1357816930_8545.jpg][/img]rnrnwindows phone 模拟器早上还ok 到下午再启动 就出现上面的错误,求指导。rn
蛋疼。。。
static int parsenum(char **ptr)rnrn char *p = *ptr;rn int result = 0;rnrn if (!Uisdigit(*p))rn rn *ptr = 0;rn return -1;rn rn while (*p && Uisdigit(*p))rn rn result = result * 10 + *p++ - '0';rn if (result < 0)rn rn /* xxx overflow */rn rn rnrn if (*p)rn rn while (*p && Uisspace(*p)) p++;rn *ptr = p;rn rn else *ptr = 0;rn return result;rnrn其中有一句:result = result * 10 + *p++ - '0';rn这种表达是什么意思?
蛋疼
#!/bin/bash echo -ne "\033[0;33m" cat                                   _oo0oo_                                  088888880                                  88" . "88
用swift解析json的时候变量的类型很蛋疼。。。
如下:首先声明一个数组 var [color=#FF0000]arrCells[/color] :[Dictionary]!rnrn然后数组赋值: let [color=#FF6600]dicCell[/color] = ["name":cellName,"productCount":goods_num,"selected":selected,"url":url]rnrn[color=#FF0000]arrCells[/color].append([color=#FF6600]dicCell[/color])rnrn接着再把这个数组作为一个键值赋值给一个字典的时候出现问题了:rnrn let dicSecion:Dictionary = ["name": searchName, "brief": searchBrief, "id": searchId, "cells": [color=#FF0000]arrCells[/color]]rn错误提示:rn.swift:195:68: Type '[Dictionary]' does not conform to protocol 'AnyObject'rnrn提示的大致意思是说 Dictionary 类型不符合AnyObject的协议。rnrn我就纳闷了Dictionary 难道不是一个AnyObject对象吗?rnrn蛋疼的问题是每次申明一个数组或者字典的时候必须要指定类型。把不确定的类型改为AnyObject的时候又出现很多的问题。。
SVN英文修改为中文
参考:eclipse svn plugin 插件 中文转英文. 修改配置文件 [url]http://toeo.iteye.com/blog/415634[/url]这篇文章,反其道行之. 修改目录下文件有: site-1.4.3\eclipse\plugins\org.tigris.subversion.subclipse.core_1.4.3.jar site-1.4.3\ecli...
问题status=0很蛋疼啊~!!!
新手学习javascript好容易行进到Ajax结果就来了这个rn[code=javascript]window.onload = initAll;rnvar xhr = false;rnrnfunction initAll() rn document.getElementById("makeTextRequest").onclick = getNewFile;rn document.getElementById("makeXMLRequest").onclick = getNewFile;rnrnrnfunction getNewFile() rn makeRequest(this.href);rn return false;rnrnrnfunction makeRequest(url) rn if (window.XMLHttpRequest) rn xhr = new XMLHttpRequest();rn rn else rn if (window.ActiveXObject) rn try rn xhr = new ActiveXObject("Microsoft.XMLHTTP");rn rn catch (e) rn rn rnrn if (xhr) rn xhr.onreadystatechange = showContents;rn xhr.open("GET", url, true);rn xhr.send(null);rn rn else rn document.getElementById("updateArea").innerHTML = "Sorry, but I couldn't create an XMLHttpRequest";rn rnrnrnfunction showContents() rn if (xhr.readyState == 4) rn if (xhr.status == 200) rn if (xhr.responseXML && xhr.responseXML.childNodes.length > 0) rn var outMsg = getText(xhr.responseXML.getElementsByTagName("choices")[0]);rn rn else rn var outMsg = xhr.responseText;rn rn rn else rn var outMsg = "There was a problem with the request " + xhr.status;rn 这里,老是要跳转到这里。rn document.getElementById("updateArea").innerHTML = outMsg;rn alert("sadasdasd");我弄了个alert才能看到他调到这报告status=0.然后整个页面就变成我请求文本的那个页面,是在搞不懂求高手解答。rn rn rn function getText(inVal) rn if (inVal.textContent) rn return inVal.textContent;rn rn return inVal.text;rn rn[/code]
SWING 很蛋疼... 球指教
[code=java]rnimport java.awt.*;rnimport javax.swing.*;rnrnpublic class sss extends JFramernpublic JPanel pane=new JPanel();rnpublic JTextField tf=new JTextField();rnpublic sss()rnsetTitle("xxx");rnsetLayout(null);rnsetSize(300,300);rnsetBounds(500,300,300,300);rnsetVisible(true);rnsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); rnrnpane.setBounds(0,0,300,100);rnpane.setBackground(Color.red);rnrnJPanel pane2=new JPanel();rnpane2.setBounds(0,100,300,200);rnpane2.setBackground(Color.blue);rnrnrnadd(pane);rnadd(pane2);rnrn// rnpublic static void main(String[] args)rnnew sss();rnrnrn[/code]rnrn这是运行后的界面...rn[img=http://img.my.csdn.net/uploads/201211/14/1352890695_1371.jpg][/img]rnrn实际上两个Panel比Frame大...rn为什么 哪个数字写错了吗[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/17.gif][/img]rn[img=http://img.my.csdn.net/uploads/201211/14/1352890777_2145.jpg][/img]rnrn想要红Panel和蓝Panel刚好填满setSize(300,300)的Framern可是就是大了那么一点rn界面写得特别蛋疼。。。。总是和要求的不一样= =rnrn
非常紧急,很蛋疼,求帮助
$("#qr_quick").click(function()rn var score;rn if($("#zpbtn").attr("checked")=='checked')rn score=0;rn else if($("#cpbtn").attr("checked")=='checked')rn score=-1;rn elsern score=1;rn ;rn $.post(rn "quickRateAction!batEvaluation.action",rn rn tidAry : arrayTid,rn scoreXZ: scorern ,rn function(data)rn alert("2");rn rn ,rn "json"rn );rn )rnrn这一段ajax调用的代码。后台执行成功了,我想在回调函数中做一些操作,但是回调函数就是不执行。谁能告诉我哪里错了。
一个很蛋疼的函数定义方式~
[code=C/C++]rn/**************** list.h ********************/rntypedef struct rn void **item;rn int num;rn LIST;rnrn#ifdef WIN32rnrn#ifdef __cplusplusrnextern "C" rn#endifrnextern int AppendItem(LIST *pList,void *pItem);rnrn#ifdef __cplusplusrnrn#endifrnrn#elsernextern int AppendItem();rnrn#endifrnrnrn/**************** list.c ********************/rnint AppendItem(pList,pItem)rnLIST *pList;rnvoid *pItem;rnrn void **pItems;rn if(pList->num>0 && pList->num%LIST_BLOCK_SIZE==0)rn rn pItems=realloc(pList->items,rn (pList->num+LIST_BLOCK_SIZE)*sizeof(void*)rn );rn if(pItems==NULL)rn return(-1);rn pList->item = pItems;rn rn pList->item[pList->num] = pItem;rn pList->num++;rn return(0);rnrn[/code]rnrn1.函数定义部分中函数头这么写是什么意思?rn2.如果没有定义WIN32,函数声明为无参型的,函数定义却是有参型的,怎么保证正确调用?
QIntValidator和QLineEdit一起用很蛋疼?
想用来限制QLineEdit只能输入某一范围的整数。比如(100,200)rn但是杯具的是QIntValidator只限制比200大的数不可以输入,比100小的数却可以输入。rn而且当QLineEdit失去焦点,或者回车时输入的数不会自动改正,也不会有提醒信息。rnrn蛋疼的是QLineEdit的两个signal:rnvoid editingFinished ()rnvoid returnPressed ()rn都是在QIntValidator的state是QValidator::Acceptable,即输入的数是(100,200)之间时才发出。rnrn请问怎样实现当输入比100小的数时,失去焦点时可以自动修正,或者弹个提示框?rnrnvalidator.hrn[code=C/C++]rn#ifndef VALIDATOR_Hrn#define VALIDATOR_Hrnrn#include rn#include rn#include rn#include rnrnclass Validator : public QWidgetrnrn Q_OBJECTrnprivate:rn int m_int;rn double m_double;rn QLineEdit *intEdit;rn QLineEdit *doubleEdit;rn QIntValidator *intVal;rn QDoubleValidator *douVal;rnpublic:rn explicit Validator(QWidget *parent = 0);rnrnsignals:rnrnpublic slots:rn void nodify();rnrn;rnrn#endif // VALIDATOR_Hrnrn[/code]rnrnvalidator.cpprn[code=C/C++]rn#include "validator.h"rnrn#include rnrnValidator::Validator(QWidget *parent) :rn QWidget(parent)rnrn intVal = new QIntValidator(100, 200, this);rnrn intEdit = new QLineEdit(this);rn doubleEdit = new QLineEdit;rnrn douVal = new QDoubleValidator;rnrn intEdit->setValidator(intVal);rnrnrn QHBoxLayout *layout = new QHBoxLayout;rn layout->addWidget(intEdit);rn layout->addWidget(doubleEdit);rn this->setLayout(layout);rnrn//无效rn connect(intEdit, SIGNAL(editingFinished()), this, SLOT(nodify()));rn connect(intEdit, SIGNAL(returnPressed()), this, SLOT(nodify()));rn rnrnrnvoid Validator::nodify()rnrn int n = (intEdit->text()).toInt();rn if(n < 100 )rn n = 100;rnrn intEdit->setText(QString("%1").arg(n));rnrnrn[/code]rn
SqlServer查询问题 (很蛋疼)
下面是两个查询语句:rn select * from [tb_name] 行数:1200rn select * from [tb_name] order by id desc 行数:3000rnrnrn两个语句查询出来的行数居然不一样 哪位大侠能给解释一下
一个很蛋疼的乱码问题啊!!
如我的主页是welcome.jsprnweb.xml配置的也是welcome.jsprn直接http://localhost:8080/项目名/ 一切都okrn输入http://localhost:8080/Hospital/welcome.jsp 就乱码了rn而且 有我登录(session)的话 http://localhost:8080/项目名/ 有显示登录后的用户信息rnhttp://localhost:8080/项目名/welcome.jsp 就没有登录信息要重新rnrn页面名字没错,我有且只有一个welcome.jsp页面 rnrn求助啊[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/18.gif][/img]
求教一个很蛋疼的问题
[code=java]import java.io.UnsupportedEncodingException;rnimport java.util.ArrayList;rnimport java.util.List;rnrnpublic class CharsetTest rn public static void main(String[] args) throws UnsupportedEncodingException rn List list=UrlCharsetTest.get();rn rn StringBuffer buffer=new StringBuffer();rn for (int i = 0; i < list.size(); i++) rn rn System.out.println(list.get(i));rn rn rn rn rn String s1="2007\u5e74\u592e\u89c6\u6625\u8282\u8054\u6b22\u665a\u4f1a";rn rn System.out.println(s1);rn rnrn[/code]rnrnrnoutput:rnrnrn110825\u5927\u5b66\u751f\u4e86\u6ca1-\u4ed6\u4eec\u7684\u804c\u4e1a\u6bd4007\u8fd8\u795e\u79d8rn\u9996\u90fd\u7ecf\u6d4e\u62a5\u9053\uff1a\u8d70\u5230\u4e1c\u8f9b\u5c6f\u53bb\u5403\u5417 20121007rn\u82f1\u56fd\u56fd\u5bb6\u6c7d\u8f66\u535a\u7269\u9986\u4e3e\u529e007\u5f71\u7247\u6c7d\u8f66\u5c55rn\u6625\u8282\u538b\u5c81\u94b1\u8d77\u4ef7500 70\u540e80\u540e\u5927\u558a\rn\u72d7\u72d7\u5316\u8eab\u201c007\u201d\u6f14\u51fa\u7279\u5de5rn007\u4e39\u5c3c\u5c14\u00b7\u514b\u96f7\u683c\u4f4e\u8c03\u5b8c\u5a5arn2007\u5e74\u592e\u89c6\u6625\u8282\u8054\u6b22\u665a\u4f1arn\u300a007\uff1a\u5929\u964d\u6740\u673a\u300b\u6b63\u5728\u82f1\u56fd\u4f26\u6566\u70ed\u62cd\u4e2drn\u745e\u58eb007\u624b\u8868\u4ee515\u4e07\u6b27\u5143\u88ab\u62cd\u5356rn\u963f\u68ee\u7eb3\u5b98\u65b9\u8d5b\u5b63\u56de\u987e2007/2008rn\u4e09\u8f86\u8f66\u505c\u4e00\u6392 \u5c3e\u6570\u90fd\u662f\u201c007\u201drn\u963f\u68ee\u7eb3\u5b98\u65b9\u8d5b\u5b63\u56de\u987e2006/2007rn\u8d75\u5fe0\u79655\u4ebf\u79c1\u4eba\u4f1a\u6240\u66dd\u5149 \u5b89\u4fdd\u582a\u6bd4007rn\u8d75\u5fe0\u7965\u79c1\u4eba\u4f1a\u6240\u4ef7\u503c5\u4ebf \u5b89\u4fdd\u582a\u6bd4007rn\u66dd\u725b\u8389\u4e0e\u56db\u5c81\u534a\u5973\u513f\u767d\u8863\u6bcd\u5973\u88c5\u8fd1\u7167 rn\u674e\u54cd\u5b59\u9a81\u9a81\u516c\u5f00\u604b\u60c5 \u88ab\u66dd\u5df2\u9886\u8bc1rn\u7eaa\u5f55\u7247\u63ed\u79d8\u963f\u624e\u4f26\u5361\u7684\u6210\u529frn\u8389\u5a1c\u00b7\u838e\u4f0a\u514b\u6bd4\u57fa\u5c3c\u55b7\u8840\u5199\u771frn\u4f50\u5c71\u7231\u6027\u611f\u5236\u670d\u8bf1\u60d1rn\u4f50\u5c71\u7231\u6027\u611f\u5236\u670d\u8bf1\u60d1rn\u66dd51\u5c81\u5173\u4e4b\u7433\u60c5\u5b9a\u53f0\u767e\u4ebf\u5bcc\u8c6a \u660e\u5e742.14\u5b8c\u5a5arn\u963f\u6735\u5185\u8863\u79c0\u5927\u5c3a\u5ea6\u7206\u5de8\u4e73\u5356\u6027\u611frn\u963f\u6735\u5185\u8863\u79c0\u5927\u5c3a\u5ea6\u7206\u5de8\u4e73\u5356\u6027\u611frn\u6797\u5fd7\u73b2\u65f6\u5c1a\u5199\u771f\u6027\u611f\u60f9\u706b\u5c3a\u5ea6\u5347\u7ea7rn\u6797\u5fd7\u73b2\u65f6\u5c1a\u5199\u771f\u6027\u611f\u60f9\u706b\u5c3a\u5ea6\u5347\u7ea7rn2007年央视春节联欢晚会rnrnrnrnrnlist里面的无法打印出中文,但是最后那一句输入是list里面第一条拿出来的,这很奇怪。为什么list里面的不能打印出中文。rn求大神解答rn谢谢了
org.springframework.beans.TypeMismatchException: 很蛋疼的一个类型错误
这是我无语的一个错误。我每次部署项目上来,启动tomcat后,就提示这个错误,但是也不影响项目的运行与功能。但是每次看到都不爽,我切找不到哪儿出错。求高手指点。rnrn[code=java]rn严重: Servlet /sfcx threw load() exceptionrnPropertyAccessExceptionsException (2 errors)rnorg.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.lang.Class] for property 'serviceClass'; nested exception is java.lang.IllegalArgumentException: Class not found: webservice.IstunitWebservicernjava.lang.IllegalArgumentException: Class not found: webservice.IstunitWebservicern at org.springframework.beans.propertyeditors.ClassEditor.setAsText(ClassEditor.java:66)rn at org.springframework.beans.BeanWrapperImpl.doTypeConversionIfNecessary(BeanWrapperImpl.java:771)rn at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:584)rn at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:469)rn at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:626)rn at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:653)rn at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:642)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1023)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:824)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:345)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:320)rn at org.codehaus.xfire.spring.XFireConfigLoader.getXFireApplicationContext(XFireConfigLoader.java:107)rn at org.codehaus.xfire.spring.XFireConfigLoader.loadContext(XFireConfigLoader.java:41)rn at org.codehaus.xfire.transport.http.XFireConfigurableServlet.loadConfig(XFireConfigurableServlet.java:86)rn at org.codehaus.xfire.transport.http.XFireConfigurableServlet.createXFire(XFireConfigurableServlet.java:54)rn at org.codehaus.xfire.transport.http.XFireServlet.init(XFireServlet.java:45)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4045)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4351)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnorg.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.lang.Class] for property 'implementationClass'; nested exception is java.lang.IllegalArgumentException: Class not found: webservice.stunitWebserviceImplrnjava.lang.IllegalArgumentException: Class not found: webservice.stunitWebserviceImplrn at org.springframework.beans.propertyeditors.ClassEditor.setAsText(ClassEditor.java:66)rn at org.springframework.beans.BeanWrapperImpl.doTypeConversionIfNecessary(BeanWrapperImpl.java:771)rn at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:584)rn at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:469)rn at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:626)rn at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:653)rn at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:642)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1023)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:824)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:345)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:320)rn at org.codehaus.xfire.spring.XFireConfigLoader.getXFireApplicationContext(XFireConfigLoader.java:107)rn at org.codehaus.xfire.spring.XFireConfigLoader.loadContext(XFireConfigLoader.java:41)rn at org.codehaus.xfire.transport.http.XFireConfigurableServlet.loadConfig(XFireConfigurableServlet.java:86)rn at org.codehaus.xfire.transport.http.XFireConfigurableServlet.createXFire(XFireConfigurableServlet.java:54)rn at org.codehaus.xfire.transport.http.XFireServlet.init(XFireServlet.java:45)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4045)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4351)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn[dorado] >>> Starting Service... ... ...rn[/code]
一个让我很蛋疼的问题
先贴代码rn[code=Java]public class NormalCardsView extends SurfaceView implements View.OnTouchListener,SurfaceHolder.Callbackrn rn private Card[] cards;//纸牌rn rn private SurfaceHolder holder;rn rn private float space;//纸牌之间的间距rn /**rn * @param contextrn * @param targetrn * @param spacern */rn public NormalCardsView(Context context,Card[] target,float space) rn super(context);rn cards = target;rn this.space = space;rn holder = this.getHolder();rn holder.addCallback(this);rn setOnTouchListener(this);rn rn /* (non-Javadoc)rn * @see android.view.View.OnTouchListener#onTouch(android.view.View, android.view.MotionEvent)rn */rn @Overridern public boolean onTouch(View v, MotionEvent event) rn System.err.println(event.getX()+"------"+event.getY());rn int index = getClickedCardIndex(event.getX(),event.getY());rn if(index != -1)rn Toast.makeText(getContext(), "选中了第"+(index+1)+"张牌", Toast.LENGTH_SHORT).show();rn chooseCard(index);rn elsern Toast.makeText(getContext(), "没有选中牌", Toast.LENGTH_SHORT).show();rn rn return false;rn rn /**rn * 通过获取点击的坐标判断点击的是哪一张牌rn */rn public int getClickedCardIndex(float x,float y)rn int index = -1;rn for(int i=0;i= cards[i].getMinPoint().x && x <= cards[i].getMaxPoint().x && rn y >= cards[i].getMinPoint().y && y <= cards[i].getMaxPoint().y)rn index = i;rn rn rn return index;rn rn /**rn * 把点击的那张牌用一个同等的透明矩形重绘rn */rn public void chooseCard(int cardIndex)rn Card card = cards[cardIndex];rn int left = card.getMinPoint().x;rn int top = card.getMinPoint().y;rn int right = card.getMaxPoint().x;rn int bottom = card.getMaxPoint().y;rn Canvas mCanvas = holder.lockCanvas();rn Paint mPaint = new Paint();rn mPaint.setAlpha(0);rn mPaint.setColor(Color.TRANSPARENT);rn mCanvas.drawRect(new Rect(left, top, right, bottom), mPaint);rn holder.unlockCanvasAndPost(mCanvas);rn rn rn /* (non-Javadoc)rn * @see android.view.SurfaceHolder.Callback#surfaceChanged(android.view.SurfaceHolder, int, int, int)rn */rn @Overridern public void surfaceChanged(SurfaceHolder holder, int format, int width,rn int height) rn rn rnrn /* (non-Javadoc)rn * @see android.view.SurfaceHolder.Callback#surfaceCreated(android.view.SurfaceHolder)rn */rn @Overridern public void surfaceCreated(SurfaceHolder holder) rn new Thread(new CardsLoader()).start();rn rnrn /* (non-Javadoc)rn * @see android.view.SurfaceHolder.Callback#surfaceDestroyed(android.view.SurfaceHolder)rn */rn @Overridern public void surfaceDestroyed(SurfaceHolder holder) rn rn rn class CardsLoader implements Runnablernrn @Overridern public void run() rn for(int i=0;i
很蛋疼的问题,求解决方案
这是工作中碰到的问题:rnrn公司刚买的Allen-Bradley牌的工控机(据说是最牛的工控机品牌),预装的正版Windows XP sp3英文版。rn在安装完正版的MS Office 2007后出现问题了:rnrn每次启动XP后,显示器会自动进入“省电模式”(PS:[color=#FF0000]只有[/color]显示器如此,系统还是正常运行的,例如按Alt+F4->R就会重启……)rn初步估计是显示设置出现的问题,从系统启动菜单选择Enable VGA Mode启动不会黑屏(其余模式均不行),进入系统时会启用最低显示配置(分辨率640X480,颜色为8位),如果作任何显示设置(哪怕不改变显示参数,直接点Apply)都会黑屏,即显示器进入“Power Save Mode”。rnrn不知有哪位大牛碰到过类似情况的,能给支个招没?
C# 制作动画的问题,很蛋疼……
C#总怎么样做一个动点,我尝试自己弄了一个,在Form_Paint里边,用FillEllipse画一个点,然后用timer控件让这个点位置改变,但是无奈做出来竟然是一个条慢慢画出来的直线!!……rn怎么办啊……
问个很蛋疼的正则问题
abc user ii ccrndad us er uerrnuser ww, cd@rnrn如何匹配不为user的单词
windows cmd 批处理将文件名改为小写
windows cmd 改文件名为小写
蛋疼的struts2
[img=http://52dongkou.com/UploadFile/2011-8/201181733098340.jpg][/img]rn听说struts2加了个包struts2-dojo-plugin-2.1.8.1.jar但是我加上了之后还是没有用 请问这是怎么回事?rn[size=16px][b]页面代码[/b][/size]rn[code=Java]rn<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>rn<%@ taglib prefix="sx" uri="/struts-dojo-tags"%> rn<%@ taglib prefix="s" uri="/struts-tags"%>rnrn<%rnString path = request.getContextPath();rnString basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";rn%>rn rnrnrnrn rn rn My JSP 'TestCache.jsp' starting pagern rn rnrn rn rn struts2 s:div实现AJAX效果rn rn rn 服务器的当前时间为:rn rn rnrn[/code]rnrnrnrn[b][color=#FF0000]注意下 :你先访问action这个是可以显示的,这里我实在摸不着头脑了 网上的资料也太少了几乎没说到这个东西[/color][/b]rn
蛋疼的赋值无效
编一个计算机网络实验 关于数据链路层滑动窗口选择重传协议的实现rn程序不能用编程环境调试 程序运行是通过 输入命令行启动两个窗口互相通信 调试只能在程序里面插入类似printf 最终程序结束后会产生两个日志文件 分别记录了通信双方中间的打印结果、事件rn//静态全局变量rnstatic unsigned char ack_expected;rn//自增函数 类似循环队列rnstatic void inc(unsigned char *k)rnrn if (*k < MAX_SEQ)rn (*k)++;rn elsern (*k) = 0;rnrnrn下面是有问题的地方 发现每调用两次inc(ack_expected),ack_expected才会加1rnwhile (s_win_ack[ack_expected%WIN_SIZE])//移动发送窗口rn rn stop_timer(ack_expected);rn s_win_ack[ack_expected%WIN_SIZE] = false;rn dbg_event("****Send window ,%d move\n", ack_expected%WIN_SIZE);rn s_nbuffered--;rn inc(&ack_expected);rn dbg_event("****ack_expected++=%d move\n", ack_expected%WIN_SIZE);rn rnrnrn下面是日志rn0.195 Send DATA 0 255, ID 10000rn0.198 Send frame 0rn0.409 Send DATA 1 255, ID 10001rn0.409 Send frame 1rn0.664 Send DATA 2 255, ID 10002rn0.664 Send frame 2rn0.934 Send DATA 3 255, ID 10003rn0.934 Send frame 3rn1.219 Recv ACK 0rn1.219 ****Send window ,0 move/////////////////////////////rn1.219 ****ack_expected++=0 move//////////////////////////rn1.220 Send DATA 4 255, ID 10004rn1.220 Send frame 4rn1.580 Recv DATA 0 1, ID 20000rn1.580 ****Send window ,0 move//////////////////////////////////rn1.581 ****ack_expected++=1 move/////////////////////rn1.582 Send DATA 5 0, ID 10005rn1.588 Send frame 5rn1.829 **** Receiver Error, Bad CRC Checksumrn1.829 Send NAK1 1rn2.100 Recv DATA 2 2, ID 20002rn2.100 ****Send window ,1 move////////////////////////////rn2.101 ****ack_expected++=1 movern2.102 Send DATA 6 2, ID 10006rn2.104 Send frame 6rn2.121 Recv ACK 3rn2.121 ****Send window ,1 move///////////////////////////rn2.122 ****ack_expected++=2 movern2.303 Send DATA 7 2, ID 10007rn2.303 Send frame 7rn2.366 Recv 4,which is out of the recv windowrn2.366 Send NAK2 3rn2.652 Recv 5,which is out of the recv windowrn2.652 Send NAK2 4rn2.908 Recv DATA 1 5, ID 20001rnrn2.909 FATAL: Network Layer received a bad packet from data link layerrnAbort.rnrn
一个蛋疼的问题
我在学校机房试验了这个程序[code=C/C++]#includernint main()rnrn while(1)rn rn malloc(10000); rn rn return 0; rn[/code](至于为什么不在自己电脑上实验。。原因你懂的),但很奇怪,电脑运行之后似乎什么事都没发生,为什么呢?
一个蛋疼的小问题
实习期间,需要调用公司的一个接口服务,结果因为一个不起眼的问题弄了半下午。代码采用的是HttpClient的方式实现。 HTTPClient HttpClient是Apache Jakarta Common下的子项目,用来提供高效的、最新的、功能丰富的支持HTTP协议的客户端编程工具包,并且它支持HTTP协议最新的版本和建议 HttpClient相比传统JDK自带的URLCon...
令人蛋疼的编码问题
乱码问题解决方法就是一句话:借助中间万能编码unicode进行编码之间的转换操作。
用到蛋疼的sort
Wilbur and Points   Codeforces Round #331 (Div. 2) C. Wilbur and Points time limit per test 2 seconds memory limit per test 256 megabytes input standard input output sta
蛋疼的一瞬间
有些梗真是多次时间也不会过去
说说蛋疼的数据源
我们做项目的过程中总是会用到数据源,最近做MB的老项目中有用到数据源,在调试过程中详细回忆了下在各种项目中遇到的数据源,并进行了简单的归纳分析: 数据源是什么:数据源其实是一个我们在写程序时候要访问数据库增删改查表中数据时候前面写的一段代码如jdbc中的driver,数据库url用户名密码等等这几行代码,这几行代码还不能叫数据源但是功能与数据源是一样一样的,数据源就是完成这个功能的可以让你的代
蛋疼的WebService手记
用cxf这种通过反射构造rmi的工具startup阶段真的是各种坑,classnotfound让你一个一个解决完了又开始各种让你找不到是由于什么jar缺失导致的报错。 以下为我总结的一些必须的jar包清单,供以后入坑的小伙伴参考:
今天我蛋疼了
表示今天无聊到蛋疼,决定不用查表法来将10进制转换为16进制(PS:因为大家设置缓存一般都对齐4字节的,所以这个也是只处理对齐部分的)rn不知道还有没改进余地呢rn[code=c]rnIFNDEF _GLOBE_INC_rn INCLUDE Globe.incrnENDIF;// !_GLOBE_INC_rnrnCOMMENT */////////////////////////////////////////////////////////////////////////////////////////////rn//======================================================================================================rn// [value]::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::rn// 0 1 2 3 4 5 6 7 8 9rn// 0000|0000 0000|0001 0000|0010 0000|0011 0000|0100 0000|0101 0000|0110 0000|0111 0000|1000 0000|1001rn// A B C D E Frn// 0000|1010 0000|1011 0000|1100 0000|1101 0000|1110 0000|1111rn// [string]:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::rn// 0 1 2 3 4 5 6 7 8 9rn// 0011|0000 0011|0001 0011|0010 0011|0011 0011|0100 0011|0101 0011|0110 0011|0111 0011|1000 0011|1001rn// A B C D E Frn// 0100|0001 0100|0010 0100|0011 0100|0100 0100|0101 0100|0110rn//======================================================================================================*rn.CODErnHexBufferA PROC STDCALL \rn USES esi edi edx ebxrnrn pbSource EQU rn pbDest EQU rn dwLength EQU rn temp EQU rnrnALIGN AlignSizernrn shr dwLength,2rnrnHexBuffer_LOOP_DWORD:rn mov eax,DWORD PTR[pbSource]rn mov edx,eaxrnrn and eax,00F0F0F0Fhrn and edx,0F0F0F0F0hrn shr edx,4rn rn ;// 各字节加30hrn or eax,030303030hrn or edx,030303030hrn rn ;// 矫正eax各字节的数值rn mov temp,eaxrn sub temp,00A0A0A0Ahrn and temp,010101010hrn add eax,temprn shr temp,4rn sub eax,temprn shl temp,3rn xor eax,temprnrn ;// 矫正edx各字节的数值rn mov temp,edxrn sub temp,00A0A0A0Ahrn and temp,010101010hrn add edx,temprn shr temp,4rn sub edx,temprn shl temp,3rn xor edx,temprnrn ;// 矫正各字节的位置rn ;// eax:7531rn ;// ebx:6420rn ror eax,10hrn ;// eax:3175rn xchg ax,dxrn ;// eax:3120rn ;// ebx:6475rn ror eax,8rn rol edx,8rn ;// eax:0312rn ;// ebx:4756rn xchg ah,alrn xchg dh,dlrn ;// eax:0321rn ;// ebx:4765rn rol eax,8rn rol edx,8rn ;// eax:3210rn ;// ebx:7654rn mov [pbDest],eaxrn mov [pbDest+4],edxrnrn add pbSource,TYPE DWORDrn add pbDest,(TYPE DWORD*2)rnrn loop HexBuffer_LOOP_DWORDrnrn RETrnHexBufferA ENDPrnrnENDrn[/code]
超级蛋疼问题
rnrn一个dll文件 和 项目rnrndll内部定义了一个命名空间,跟项目的命名空间一样。rn而且同样的命名空间下还有几个同样类名的类型,内部实现不同。rnrn rnrn现在编译冲突,如何解决呢?rn项目已经写了很多了,命名空间类名引用错综复杂。dll要用,项目要写,期待高招rn
几个蛋疼的头文件
小弟网络编程新手,包含头文件出现几个问题,如下:rn1.据说winsock2.h有不少毛病,建议用winsock.h?winsock.h和winsock2.h相差在哪里,平时应该用哪个??rn2.包含iphlpapi.h老是出现很多错误,不知道为什么
相关热词 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池 c#5.0 安装程序 c# 分页算法