Glib::Cond::timed_wait

申明一个Glib::TimeVal timeout变量,然后 while (yourcond) { timeout.assign_current_time(); timeout.add_seconds(2); // 2 seconds ...timed_wait(*obj, timeout); }

2006-09-11 · wuan

木弟子

setup tools $ sudo apt-get install tor $ sudo apt-get privoxy $ sudo vi /etc/privoxy/config forward-socks4a / localhost:9050 . #(add this line) config firefox HTTP <a href="http://127.0.0.1">127.0.0.1 </a> 8118 SSL \/ FTP \/ ... SOCKS <a href="http://127.0.0.1">127.0.0.1</a> 9050 google THAT’S IT

2006-09-10 · wuan

google办公室

2006年9月5日 下午 04:02:00 发表者:吴丹丹,Google 黑板报小组 昨天休假回来的第一天 9 月 4 日正好赶上我们搬新家 – 从清华科技园的临时办公室正式搬到旁边刚建好的 Google 大厦。刚走进办公室的时候还真有点不敢相信,10 层的大楼,宽敞明亮,到处都洋溢着 Google 的彩色元素,各色的 Google 节日图标挂在墙上&hel...

2006-09-09 · wuan

在gtk中使用线程

用Glib::Thread + Gdk,前者相当于pthread,不过是Glib的实现而已。后者应该和Gnome控件有关,如果我们更新某一个gtk(mm)控件而不让gdk锁一锁的话,会出现这样的错误: Xlib: unexpected async reply (sequence 0x842b)!。 在main函数中尽早申明,注意Gtk::Main::ru...

2006-09-08 · wuan

安装svn&apache2&ssl

安装必要的工具 # sudo apt-get install \ apache2 apache2-common apache2-utils libapache2-svn \ libapache2-mod-auth-pam \ libapache2-mod-auth-sys-group \ subversion subversion-tools 配置 ssl 连接 制作 ssl 签名 # sudo apache2-ssl-certificate # sudo a2enmod ssl 创建 ssl 文件 # sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ssl 修改 default 文件头: NameVirtualHost *:80 修改 ssl 文件头: 在 ssl 文件<VirtualHost *:443>里添加: <VirtualHost *:443> ServerAdmin webmaster@localhost SSLEngine on SSLCertificateFile /etc/apache2/ssl/apache.pem SSLProtocol all SSLCipherSuite HIGH:MEDIUM <Location /svn/pink> # 你将来通过浏览器访问的路径,https://local...

2006-09-07 · wuan