注:第一次写博客,把自己遇到的问题和收集的资料记录在博客上。在开发.NET应用中,使用
System.Drawing.Image.Save 方法而导致“GDI+ 中发生一般性错误”的发生,通常有以下三种原因:1.
相应的帐户没有写权限。解决方法:赋予 NETWORK SERVICE 帐户以写权限。2...
分类:
其他好文 时间:
2014-05-05 21:40:45
阅读次数:
318
Ubuntu: How to Change the Computer NamePosted
byRob RogersinLinuxYou might run into a situation that requires you to change
your computer name, either...
分类:
其他好文 时间:
2014-05-04 11:55:30
阅读次数:
390
A. Police RecruitsThe police department of your
city has just started its journey. Initially, they don’t have any manpower. So,
they started hiring ne...
分类:
其他好文 时间:
2014-05-04 11:22:36
阅读次数:
259
A) App Icons1. CFBundleIcons
icon名字随便取,但必须是PNG格式--系统根据icon大小选择最匹配的,而不是根据icon的名字 must reside in the top level
of your app bundle. (Avoid using interl.....
分类:
其他好文 时间:
2014-05-04 10:26:12
阅读次数:
327
用基类的指针去转存派生类时除了上一篇boost::serialization 用基类指针转存派生类(错误多多,一波三折)之外,还有另一种更简单的方法:
用BOOST_CLASS_EXPORT宏。下面我们来分析怎样用BOOST_CLASS_EXPORT来实现
用基类的指针去转存派生类。
首先来看前面实例的一段代码:
void save()
{
std::ofstream ofs("t7.x...
分类:
其他好文 时间:
2014-05-04 09:48:50
阅读次数:
487
最近在学scala语言,scala代码如下:
import scala.collection.JavaConversions._
import scala.util.control.Breaks._
object Solution {
def solution(A: Array[Int]): Int = {
// write your code in Scala 2.10...
分类:
其他好文 时间:
2014-05-04 09:42:56
阅读次数:
372
#!/bin/bash
clear
echo ""
echo "Enter Your First Name:"
read FirstName
echo "Enter Your Last Name:"
read LastName
echo "$FirstName $LastName">trans.dat...
分类:
其他好文 时间:
2014-05-03 22:02:31
阅读次数:
299
2dx3.0下JSON解析库官方已经集成好了,我们引用就OK。
JSON文件hello.json内容
{"pets":["dog","cat"],"stuInfo":{"stuAge":"23","stuName":"zhangsan","birthday":"1990-01-12"},"username":"tomsfff","other":[true,30]}
.h头文件...
分类:
Web程序 时间:
2014-05-03 21:34:48
阅读次数:
319
#!/bin/bash
clear
declare FirstName Greeting
Greeting="Hello ,"
echo ""
echo "Enter Your First Name:"
read FirstName
echo "$ Greeting $FirstName"
首先 vim Print 回车
然后 i 进入插入状态
编辑以上代码,Esc 键...
分类:
其他好文 时间:
2014-05-03 21:05:20
阅读次数:
283
linux源码升级内核当前环境:[root@localhost~]#uname-r
2.6.18-348.el5配置流程:1、准备yum库安装g++gcc[root@localhost~]#cat/etc/yum.repos.d/rh_5.9.repo
[rhel-server]
name=Redserver
baseurl=file:///misc/cd/Server
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-..
分类:
系统相关 时间:
2014-05-03 14:40:08
阅读次数:
500