遗忘海岸

江湖程序员 -Feiph(LM战士)

导航

上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 44 下一页

2013年5月30日 #

整合mybatis3.2.2跟spring3.0.1

摘要: NND不停的报错,哥不停的导各种java ,配置文件改的眼花,NND,java程序员看来也挺崩溃的!<?xml version="1.0" encoding="utf-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/sch 阅读全文

posted @ 2013-05-30 16:59 遗忘海岸 阅读(212) 评论(0) 推荐(0) 编辑

2013年5月28日 #

(绝对干货)发布一个升级下载程序(不光免费而且带代码跟详细说明)

摘要: 看了胡勇胸的“(干货).NET开发丰富的公共类库助你事半功倍(供下载免费使用)”提到:作为开发人员(苦逼)经常都在为一些常用的操作Baidu,Google,既耗时,又浪费青春,更没时间谈恋爱,苦逼就是这么来的。 挺有感触的,苦逼程序员浪费太多的生命在不必要的事情上了。 另外俺觉得胡胸做的不是很Man 阅读全文

posted @ 2013-05-28 08:08 遗忘海岸 阅读(2950) 评论(17) 推荐(13) 编辑

2013年5月22日 #

使用JdbcTemplate需要导入的包

摘要: 阅读全文

posted @ 2013-05-22 17:11 遗忘海岸 阅读(1843) 评论(0) 推荐(0) 编辑

2013年5月21日 #

关于ConcurrentQueue--一个队列缓存的设计

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Collections.Concurrent;namespace PDAJob.PDAService.Service{ public class CacheList<T> { private int MaxSize = 10000; private int ShrinkLen = 2000; private ConcurrentQueue<CacheIte... 阅读全文

posted @ 2013-05-21 16:24 遗忘海岸 阅读(4632) 评论(0) 推荐(0) 编辑

2013年5月20日 #

MySQL 的一些语句

摘要: select @@tx_isolationset transaction isolation level read uncommitted read committed repeatable read serializable;start transaction;commit|rollback;FOUND_ROWS() : select ,使用UI工具总是返回1,直接在mysql上的命令行好象又可以;select ROW_COUNT() :update,insert,delete---------------------------------------查看mysql当前连接数C:\Docu 阅读全文

posted @ 2013-05-20 10:31 遗忘海岸 阅读(165) 评论(0) 推荐(0) 编辑

2013年5月16日 #

一个错误记录类&一个序列化配置文件读取类

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace PDAJob.PDAService.Service{ using EFModel; using System.Xml.Serialization; using System.Text; using System.IO; using System.Diagnostics; public class ErrLogMgr { public static void L... 阅读全文

posted @ 2013-05-16 14:55 遗忘海岸 阅读(227) 评论(0) 推荐(0) 编辑

2013年5月14日 #

Tomcat 7绑定域名

摘要: <?xml version='1.0' encoding='utf-8'?><!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file t 阅读全文

posted @ 2013-05-14 16:05 遗忘海岸 阅读(2690) 评论(0) 推荐(0) 编辑

2013年5月10日 #

将List<T>转化成 DataTable--调整可空类型的转化错误

摘要: 加载表结构并保持成XMLView Code string cmdText = @"select * from kb_lable_temp where 1=2"; using (SqlConnection conn = new SqlConnection(DBCtx.ConnStr)) { DataTable dt = new DataTable(); SqlCommand cmd = new SqlCommand(c... 阅读全文

posted @ 2013-05-10 16:54 遗忘海岸 阅读(719) 评论(1) 推荐(1) 编辑

2013年5月7日 #

关于ubuntu

摘要: 环境:-------------------------xp(sp3),VMWare8.0,ubuntu Server(ubuntu-12.04.2)--也装了下Desktop版,结果出奇的慢WMware部分-------------------------使用WMware的快照功能,可以在搞乱配置后,还原再搞WMware支持3种网络模式,网桥模式:类似虚拟交换机,虚拟机跟宿主机在同一网络级别一样NAT:类似虚拟路由器,使用NAT后可以再WMware的网络配置里制定端口映射,吧mysql 3306端口映射到你宿主机的某一端口上Mysql部分------------------------1.使 阅读全文

posted @ 2013-05-07 13:07 遗忘海岸 阅读(312) 评论(0) 推荐(0) 编辑

2013年5月2日 #

远程连接

摘要: mstsc /admin 阅读全文

posted @ 2013-05-02 10:45 遗忘海岸 阅读(143) 评论(0) 推荐(0) 编辑

2013年4月24日 #

yield与sleep

摘要: 两者都能释放对CPU的使用权,但是在同步域中不表示释放同步域!wait会放弃对象锁而notify不会放弃对象锁,需要通过推出同步代码块,或者调用wait以放弃对象锁,让被唤醒的线程执行------------参考----------------19.4.3 线程让步:Thead.yield()方法当线程在运行中执行了Thread类的yield()静态方法,如果此时具有相同优先级的其他线程处于就绪状态,yield()方法将把当前运行的线程放到可运行池中并使另一个线程运行。如果没有相同优先级的可运行进程,yield()方法什么都不做。下面对19.2.1节的例程19-4的Monkey类的fight( 阅读全文

posted @ 2013-04-24 09:20 遗忘海岸 阅读(3055) 评论(0) 推荐(1) 编辑

2013年4月17日 #

wCF REST 注意点

摘要: 服务注册路径问题RouteTable.Routes.Add(new ServiceRoute("Ipc/", hostFactory, typeof(ServiceImp)));RouteTable.Routes.Add(new ServiceRoute("Ipc/LoginService/", hostFactory, typeof(LoginServiceImp)));这样注册的顺序会导致Ipc/LoginService/xxx 发布的终结点找不到,把后一句的移到前面,又正常了RouteTable.Routes.Add(new ServiceRout 阅读全文

posted @ 2013-04-17 16:43 遗忘海岸 阅读(442) 评论(0) 推荐(0) 编辑

2013年4月15日 #

使用uPnP在路由器上映射端口

摘要: 使用uPnP方式在TP-Link上映射端口,配合WCF定时发送动态拨号IP实现远程访问与管理。 阅读全文

posted @ 2013-04-15 13:16 遗忘海岸 阅读(5404) 评论(17) 推荐(7) 编辑

2013年4月12日 #

wCF REST

摘要: 关于UriTemplate通过浏览器直接访问需要使用WebGet标注使用WebInvoke(UriTemplate = "ip/{btime}/{clientId}") 这样的属性时,方法参数列表需要时字符串类型使用ip?btime={bitme}&clientId={clientId} 则可使用对应类型的方法定义即UriTemplate部分的参数需要使用字符串理想而Query部分(?后面)可以使用对应类型关于连接问题测试了下面的代码(使用 netstat -p tcp 查看)View Code static List<object> list = ne 阅读全文

posted @ 2013-04-12 10:52 遗忘海岸 阅读(770) 评论(0) 推荐(0) 编辑

DNS解析代码copy

摘要: 临时备忘View Code using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using ARSoft.Tools.Net.Dns;using System.Net;using System.Diagnostics;namespace UseT{ public partial class F... 阅读全文

posted @ 2013-04-12 09:46 遗忘海岸 阅读(1021) 评论(0) 推荐(0) 编辑

上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 44 下一页