`
chenqi210
  • 浏览: 76782 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
    转自 http://blog.csdn.net/z69183787/article/details/36008097    web.xml 2.3 <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.d ...
最近在命令行里启动gvim 时总是会弹出一个warning,非常烦人。warning 如下: (gvim:16014): GLib-GObject-WARNING **: cannot retrieve class for invalid (unclassed) type `<invalid> (前面的数字会变)   http://askubuntu.com/questions/361180/gvim-glib-gobject-warning-in-ubuntu-13-10 写道 Thanks dude untill we find a genuine solutio ...
  目前apache archiva的最新稳定版已经到了2.1.1. 相比1.3.x版本来说,界面看起来更卡通了一些,也加上了大量的ajax。不知道这样是好还是不好。反正对于纯文本之类的w3m来说,肯定是件坏事。   这个版本的archiva有个毛病,会 ...
http://www.androiddesignpatterns.com/2013/01/inner-class-handler-memory-leak.html 写道 While not readily obvious, this code can cause cause a massive memory leak. Android Lint will give the following warning: In Android, Handler classes should be static or leaks might occur.But where exactly is the l ...

蚂蚁爬橡皮筋问题

    博客分类:
  • math
         关于这个问题很多地方都有讨论。例如 http://blog.csdn.net/kofsky/article/details/2863590 还有 http://blog.csdn.net/born1985man/article/details/4676422 这里写点不一样的理解与解法。         原题为 “一条可以均匀拉伸无限拉伸的橡 ...

手动收邮件

       最近想用mutt体验一下作高手的感觉,发现高手这个虚名真是害人不浅。        引用大家常说的一句话。mutt是一个整合工具,本身的作用并不大。收发都依赖别的程序完成。其实mutt也有一点收发的功能。用mutt -v ...
http://www.parashift.com/c++-faq-lite/constptrptr-conversion.html 写道 [18.17] Why am I getting an error converting a Foo** → Foo const**? Because converting Foo** → Foo const** would be invalid and dangerous. C++ allows the (safe) conversion Foo* → Foo const*, but gives an error if you try to impl ...

tricks

    博客分类:
  • c++
#include <typeinfo> #include <cstdlib> #include <iostream> #include <string> #include <vector> #include <list> using namespace std; template< template<typename, typename> class container_type, typename value_type> void foo(container_type< ...
  装完debian 6.0.6 之后将会遇到以下几个问题 0.虚拟光驱 1.分辨率 2.触摸板 3.系统声音 4.多个播放器同时工作 5.杂音   很多软件都需要有安装盘。但是对于用usb 安装系统的人来说,这太糟糕了。 mount /home/yourname/Download/debian.iso /media/debian-iso -o loop -t iso9660 可以直接删掉 /media/cdrom, 然后 ln --symbolic /media/cdrom /media/debian-iso   分辨率的问题一般装完驱动就能解决。不过装完驱动显卡的 ...
http://stackoverflow.com/questions/2212776/overload-handling-of-stdendl 写道 #include <iostream> #include <sstream> class MyStream: public std::ostream { // Write a stream buffer that prefixes each line with Plop class MyStreamBuf: public std::stringbuf { std::os ...

inherit the ostream

    博客分类:
  • c++
class cdebug_stream :public ostream { public: typedef cdebug_stream& (*manip_fnptr)(cdebug_stream&); void attach(ostream& os) { m_outs.push_back(&os); } void detach(ostream& os) { m_outs.erase(std::remove(m_outs.begin(),m_outs.end(),&os),m_outs.end()); } template< ...
#! /bin/sh #cd /d/opensource #wget mingw-w64 #wget gcc #wget binutils #make -p /d/opensource #cd /d/opensource/ #cvs -z9 -d:pserver:anoncvs@sourceware.org:/cvs/src co binutils #svn co svn://gcc.gnu.org/svn/gcc/trunk gcc-trunk #svn co https://mingw-w64.svn.sourceforge.net/svnroot/mingw-w6 ...
1.下载最新MinGW64.从官网下载自动编译版本 2.找到已经解压过的MinGW(不是MinGW64)。 进入%MINGW_HOME%\msys\1.0\etc vim fstab   X:\location\to\mingw64 /mingw64 X:\location\to\mingw /mingw   vim profile   把 if [ $MSYSTEM == MINGW32 ]; then export PATH=".:/usr/local/bin:/mingw/bin:/bin:$PATH" 改为 if [ $MSYSTEM == ...

freeglut Makefile.am

    博客分类:
  • c
SOURCES = \ ./src/freeglut_callbacks.c \ ./src/freeglut_cursor.c \ ./src/freeglut_display.c \ ./src/freeglut_ext.c \ ./src/freeglut_font.c \ ./src/freeglut_font_data.c \ ./src/freeglut_gamemode.c \ ./src/freeglut_geometry.c \ ./src/freeglut_glutfont_definitions.c \ ./src/freeglut_init.c \ ...
copied from http://forum.xda-developers.com/showthread.php?t=856735 namespace RandomWeighting { class Program { static void Main(string[] args) { char[] Select = new char[10] {'A','B','C','D','E','F','G','H','I','J'}; int[] Weight = new int[10] {10,3 ...
Global site tag (gtag.js) - Google Analytics