06 2011 档案

摘要:Just add one file to /etc/init with contents like this:description "Your Server"start on (net-device-up and local-filesystems and runlevel [2345])stop on runlevel [016]respawnexec your-server-path-name >> /var/log/your-server.logReference:http://upstart.ubuntu.com/wiki/ 阅读全文
posted @ 2011-06-23 12:48 ALLI Look for Lost Idylls 阅读(255) 评论(0) 推荐(0)
摘要:Thanks Devin Watson.#include <wx/app.h>class testwxdApp : public wxAppConsole{public: virtual bool OnInit();private: void MakeDaemon();};IMPLEMENT_APP(testwxdApp);bool testwxdApp::OnInit(){ // Make a daemon at very first MakeDaemon(); // Daemon-specific initialization goes here return true;}vo 阅读全文
posted @ 2011-06-22 17:31 ALLI Look for Lost Idylls 阅读(295) 评论(0) 推荐(0)
摘要:<!doctype><html><head><script src='https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js'></script><script src='http://omnipotent.net/jquery.sparkline/1.6/jquery.sparkline.min.js'></script><script type="text/javascript" 阅读全文
posted @ 2011-06-22 11:28 ALLI Look for Lost Idylls 阅读(332) 评论(0) 推荐(0)
摘要:Thanks /etc/init.d/cherokee.1, cd /etc/init.d/, add a script file named your-custom-server with contents as follows:#! /bin/sh## start/stop your-custom-server### replace all your-custom-servers and delete this line### BEGIN INIT INFO# Provides: your-custom-server# Required-Start: $remote_fs $network 阅读全文
posted @ 2011-06-21 12:02 ALLI Look for Lost Idylls 阅读(1161) 评论(0) 推荐(0)
摘要:自定义事件的头文件#ifndef _WE_EVENT_H_#define _WE_EVENT_H_#include <wx/event.h>class WeEvent;wxDECLARE_EVENT(wxEVT_WE, WeEvent);typedef void (wxEvtHandler::*WeEventFunction)(WeEvent&);#define WeEventHandler(func) wxEVENT_HANDLER_CAST(WeEventFunction, func)#define EVT_WE(id, func) wx__DECLARE_EVT1(w 阅读全文
posted @ 2011-06-03 12:50 ALLI Look for Lost Idylls 阅读(1297) 评论(0) 推荐(0)