//-----------------------------------1.getsockopt和setsockopt--------------------------------------
#include 
int getsockopt(int sockfd, int level, int optname, void* optval, socklen_t* optlen);
int...
                            
                            
                                分类:
其他好文   时间:
2014-07-22 23:03:55   
                                阅读次数:
329
                             
                    
                        
                            
                            
                                日期与时间
struct tm {
        int tm_sec;     /* 秒 – 取值区间为[0,59] */
        int tm_min;     /* 分 - 取值区间为[0,59] */
        int tm_hour;    /* 时 - 取值区间为[0,23] */
        int tm_mday;    /* 一个月中的日期...
                            
                            
                                分类:
其他好文   时间:
2014-07-22 23:03:55   
                                阅读次数:
279
                             
                    
                        
                            
                            
                                y行x列,傻傻分不清楚。
ans[ i ][ j ][ k ][ d ] 标记是否以 转弯k次且方向为d 的状态走过。
被学弟蔑视的一道题竟然没能1A,老啦。
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#pragma comment(linker, "/...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 22:05:33   
                                阅读次数:
438
                             
                    
                        
                            
                            
                                在开发过程中,我们经常会需要定义一些static类型的变量或者函数,我们接下来来具体聊一下static;
1、修饰变量
     当static来修饰一个变量时,就注定了这个变量的可见范围和生命周期;
     (1)当修饰全局变量时
             static int flag1 = 0;
             int flag2 = 0;
             ...
                            
                            
                                分类:
编程语言   时间:
2014-05-01 18:25:04   
                                阅读次数:
347
                             
                    
                        
                            
                            
                                Linux下读写UART串口的代码,从IBM Developer network上拿来的东西,操作比较的复杂,就直接跳过了,好在代码能用,记录一下~
两个有用的函数~
////////////////////////////////////////////////////////////////////////////////
/**
*@brief  设置串口通信速率
*@param  fd...
                            
                            
                                分类:
系统相关   时间:
2014-05-01 18:04:52   
                                阅读次数:
629
                             
                    
                        
                            
                            
                                逻辑备用DG
  今天是2014-04-29,最近一直忙的事情,也没来的急写点东西。今天继续整理dg的相关内容,要说的是逻辑dg的创建过程和注意事项。
什么是逻辑dg呢?物理dg类似于主库的完整副本,是块对块的重做应用。但是对于逻辑dg,是类似采用日志挖掘技术将主库传来的redo数据,进行构造sql进而在备库进行应用。且备库可以正常打开,并能维护其他不是主库传送的需要维护的对象。
  那么就...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 18:02:53   
                                阅读次数:
447
                             
                    
                        
                            
                            
                                Gabor的核函数参考的wiki使用实数Real的公式计算核函数代码:Mat gaborFilter(Mat& img, Mat& filter){
	int half_filter_size = (max(filter.rows,filter.cols)-1)/2;
	Mat filtered_img(img.rows,img.cols,CV_32F);
	for(int i=0;i<img.r...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 17:42:41   
                                阅读次数:
378
                             
                    
                        
                            
                            
                                jodatime持久化hibernate jpa...
                            
                            
                                分类:
系统相关   时间:
2014-05-01 17:37:17   
                                阅读次数:
562
                             
                    
                        
                            
                            
                                方案一:利用UINavigationBar 自带的布局item(Fixed space Bar Button Item)来适配ios7. 其实就是在原来返回按钮的位置上在多加一个占位的Item
为UINavigationBar 写一个分类。UINavigationItem+correct_offset.h
#import 
@interface UINavigationIte...
                            
                            
                                分类:
移动开发   时间:
2014-05-01 17:29:39   
                                阅读次数:
525
                             
                    
                        
                            
                            
                                我采用Database First,用Sql很容易就可以做到对一个表进行压缩。如以下:
CREATE TABLE [dbo].[Entities](
     [Id] [int] IDENTITY(1,1) NOT NULL,
     [Name] [nvarchar](max) NULL,
     Primary Key Clustered ([Id] ASC) WITH (DATA_...
                            
                            
                                分类:
数据库   时间:
2014-04-30 22:23:39   
                                阅读次数:
436