现在位置: 首页 > wrecking发表的所有文章
  • 10月
  • 07日
综合 ⁄ 共 432字 评论关闭
 The Application Event Log that is commented out in the app.config file。 allows you to write to the event log, for debug/error info, instead of writing a text file: http://www.samspublishing.com/articles/article.asp?p=606221&seqNum=4&rl=1 Once you uncomment all you have to do is: Application.Log.WriteEntry("Something disasterous happened in my app :)", TraceEventType.Information); Before you had to use a component from the toolbox, this is now available straight out of the box......
阅读全文
  • 04月
  • 29日
综合 ⁄ 共 6657字 评论关闭
饶毅在《中国论文数量充足而质量不足》中重点点名Nature communications,说我们的学者在这个杂志上发表垃圾论文,是导致国际同行对我国学者评价虚高的原因。果真是这样吗?本人经过自己对比该杂志的一些数据,认为这个杂志并不是垃圾杂志,更明确的是,中国学者并不是属于灌水,而是靠高质量取胜,中国学者正在遭受不公正待遇,这种待遇不仅来自国际同行,也来自国内同行,这应该引起我们的警觉和重视。 2010年4月创刊的杂志Nature communications,是Nature冠名杂志中唯一的开放获取杂志。关于开放获取类杂志,更著名的是Plos......
阅读全文
  • 10月
  • 06日
综合 ⁄ 共 1777字 评论关闭
一、简介 1.1 LVS         LVS是Linux Virtual Server的简写,是用来实现服务器的负载均衡调度。         LVS是一个内核模块。         官网:http://www.linuxvirtualserver.org/ 1.2 ipvsadm         ipvsadm是LVS内核模块的配置管理工具。 1.3 keepalived         keepalived,是用来实现双机热备。         keepalived监测服务器的状态,如果一台web服务器出现故障,keepalived将其从服务器集群中剔除;当web服务器正常后,keepalived自动将其加入到服务器集群中。这些工作全部自动完成,不需要人工干预。        keepalived可......
阅读全文
  • 05月
  • 18日
综合 ⁄ 共 534字 评论关闭
// 嵌套条件表达式求三个数的最大值、最小值 -- 2014/05/07 --------------------------------------------------------------------------------- #include <iostream> using namespace std; int main() { int a1, a2, a3; cout << "请分别输入三个整数:" << endl; cout << "a1 = "; cin >> a1; cout << "a2 = "; cin >> a2; cout << "a3 = "; cin >> a3; cout << "利用条件表达式找出三个数的最小值为:";cout << (a1 <= a2 ? a1 <= a3 ? a1 : a3 ......
阅读全文
  • 05月
  • 17日
综合 ⁄ 共 62字 评论关闭
http://www.neoease.com/css-z-index-property-and-layering-tree/
阅读全文
  • 05月
  • 12日
综合 ⁄ 共 503字 评论关闭
armv6、armv7、armv7s是arm CPU的指令集,原则上是向下兼容的,如:iPhone4sCPU支持armv7,但它会兼容armv6,只是使用armv6指令可能无法充分发挥它的特性。iphone5CPU支持armv7s,它也会兼容armv7。 如果引用到第三方的库,以前在iphone4s下编译没有问题,但是换成iphone5之后,提示: Undefined symbols for architecture armv7s:   "_OBJC_CLASS_$_AMapView", referenced from:       objc-class-ref in libMAMapKit.a(MAMapView.o) ld: symbol(s) not found for architecture armv7s 大体意思是:引用自XX.a静态库的XX类不支持a......
阅读全文
  • 05月
  • 10日
综合 ⁄ 共 7398字 评论关闭
本文来自http://blog.csdn.net/hellogv/ ,欢迎转摘,引用必须注明出处!              上次介绍了基础篇,讲解了自定义抽屉控件的基础实现,这次就在基础篇的基础上加入拖拉功能。拖拉功能基于GestureDetector,GestureDetector的基本使用方式不是本文介绍的重点,有兴趣的童鞋可以上网查询相关的教程。        本文的抽屉控件相对于基础篇的抽屉控件多了以下功能: 1.支持手势拖拉 2.拖拉到一半时,可以自动展开或者收缩。 具体如下图:     本文的源码可以到这里下载:http://download.csdn.net/detail/h......
阅读全文
  • 04月
  • 20日
综合 ⁄ 共 6133字 评论关闭
指针是C/C++编程中的重要概念之一,也是最容易产生困惑并导致程序出错的问题之一。利用指针编程可以表示各种数据结构,通过指针可使用主调函数和被调函数之间共享变量或数据结构,便于实现双向数据通讯;指针能够灵活的操作内存,合理的操作内存能够使程序更高效。 1.指针的概念  本质上讲指针也是一种变量,普通的变量包含的是实际的数据,而指针变量包含的是内存中的一块地址,这块地址指向某个变量或者函数,指针就是地址。指针是一个指示器,它告诉程序在内存的哪块区域可以找到数据。 2.指针的内容  指针的内容包含4部分:......
阅读全文
  • 04月
  • 18日
综合 ⁄ 共 2003字 评论关闭
博主博客: 断桥残雪    Mature,dynamic and honest. 思想成熟、精明能干、为人诚实。 Excellent ability of systematical management. 有极强的系统管理能力。 Ability to work independent1y,mature and resourcefu1. 能够独立工作、思想成熟、应变能力强。 A person with ability plus flexibility should app1y. 需要有能力及适应力强的人。 A stable personality and high sense of responsibility are desirable. 个性稳重、具高度责任感。 Work well with a multi-cultural and diverse work force. 能够在不同文......
阅读全文
  • 03月
  • 16日
综合 ⁄ 共 5939字 评论关闭
ADO.NET(c#.net)数据库开发总结   一.用SqlConnection连接SQL Server   1..加入命名空间   using System.Data.SqlClient;   2.连接数据库   SqlConnection myConnection = new SqlConnection();   myConnection.C;   myConnection.Open();   改进(更通用)的方法:   string MySqlC;   SqlConnection myConnection = new SqlConnection(MySqlConnection);   myConnection.Open();   二。用OleDbConnection连接   1.加入命名空间   using System.Data.OleDb;   2.连接sql server   string MySqlC; ......
阅读全文
  • 01月
  • 23日
综合 ⁄ 共 216字 评论关闭
<?php         if(file_exists($file)){    unlink($file);         }         $james=fopen($file,"a");        $content = stripslashes($content);    //控制引号的转义        fwrite($james,$content);        fclose($james);        echo "保存成功!"; ?>
阅读全文
  • 01月
  • 20日
综合 ⁄ 共 1184字 评论关闭
Vowel Counting Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1485    Accepted Submission(s): 1092 Problem Description The "Vowel-Counting-Word"(VCW), complies with the following conditions. Each vowel in the word must be uppercase. Each consonant (the letters except the vowels) must be lowercase. For example, "ApplE" is the VCW of "aPPle", "jUhUA" is the VCW of "Juhua". Give you some words; your task is to get the "Vowel-Counting......
阅读全文