Skip to main content

Posts

Showing posts with the label resource

Misc 20130401

To reset all shortcut definitions in evince, run rm ~/.config/evince/accels GCC would complain if you define a variable without actually using it. To silience it, use (void)var; DNS is not working in VirtualBox: Run VBoxManage modifyvm "VM name" --natdnshostresolver1 on Ref   A useful link talking about ravlue reference in C++11 http://thbecker.net/articles/rvalue_references/section_01.html   To clear disk cache in Linux: Run sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches' Ref  "screen-256color not found": Run infocmp xterm-256color > screen-256color.ti on a machine without this error, copy the file to the target machine and then run tic screen-256color.ti Ref Just switch to fcitx from ibus. I like a theme called 'anran'. If fcitx cannot follow the cursor on Firefox, turn on preedit, as said in the official wiki. Just played with a vim plugin called youcompleteme, for C++ autocomplete, which is quite powerful. Also I installed vund...

杂记 20130401

之前evince的快捷键乱套了,使用 rm ~/.config/evince/accels 复位 定义了变量var又不用的话,gcc会报warning"unused variable",解法是 (void)var; VirtualBox中DNS不工作:运行 VBoxManage modifyvm "VM name" --natdnshostresolver1 on Ref   一个讲c++11右值引用的link: http://thbecker.net/articles/rvalue_references/section_01.html   Linux清除disk cache: sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches' Ref  遇到错误screen-256color not found需要支持新的终端类型:找一台支持screen-256color的机器执行 infocmp xterm-256color > screen-256color.ti 把文件拷贝到目标机器后执行 tic screen-256color.ti Ref  最近从ibus换到了fcitx,起初是由于sogou发布了,不过后来还是卸掉了。anran主题不错。fcitx在firefox中光标跟随有点问题,按官方wiki说法打开preedit后就没事了。  最近在vim里折腾youcompleteme这个补全插件,挺好用。顺便也装了vundle来管理插件,很不错  vim更新.vimrc后想直接应用,执行 so %

solarized 颜色主题 | the solarized color theme

尽管之前杂记里提了一下,但是现在还是特别再记录一下。 其实是偶然从linuxtoy里的脚本看到了这个主题名字,感觉很漂亮。然后深入搜了一下。 这个主题对比度相对比较低,或者说亮度上的对比度比较低,而主要靠色相来提高肉眼辨识度。 另外它的一个精妙的地方在于,颜色经过精心挑选,不论是深色背景还是浅色的,前景色都能很好的显示 以下是各种链接,除了我提到了还有一些其他的(我不常用的和没听说过的) 主页: http://ethanschoonover.com/solarized 主git源: vim,emacs,mutt,gimp palette,Xresources https://github.com/altercation/solarized sigurdga的fork: gnome-terminal https://github.com/sigurdga/gnome-terminal-colors-solarized seebi的fork: dircolors, tmux https://github.com/seebi/solarized 我的fork: 256color for gnome-terminal and guake https://github.com/coolwanglu/gnome-terminal-colors-solarized 我的fork: Guake https://github.com/coolwanglu/guake-colors-solarized 说明 1. guake和gnome-terminal用的gconf类似,手工copy一下就行。不过我打算写个脚本,顺便学学git 2.terminal的主题一定要配合dircolors一起用,否则ls出来会很难看 3.vim里有多种选项可以配置主题 4. 原来gnome terminal那个是16色的port,我fork并改出一个256色的,另外加入了guake的支持 5.256色是终端不使用这个主题时的临时方法,所以我原来的理解有问题,于是分离出一个单独的guake源 Although I've already mentioned this theme in the previous misc notes, but now I've decided to introdu...

启用compiz和fglrx时的vnc问题 | Problem of vnc server with compiz and fglrx enabled

困扰了我近两年的问题。 远程连vnc回我的电脑,第一个画面能看到,鼠标也可以动,但是键盘按没反应,画面也不会再动。 一开始以为是网络问题,或者是设置了view only,但是本机上看,鼠标和键盘都得到了响应,所以只是屏幕刷新的问题。 这个问题我一直不知道原因。 但是最近新装的ubuntu,一开始是可以连得,没有问题,我还以为是更新了解决了这个问题。但是最近又不行了,我才开始想最近改了什么设置。 最后发现原来是启动了fglrx,关了radeon。 改回radeon后vnc又复活了。 于是查了一下, 果然是个bug,见 https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/353126 , 而且nvidia的闭源驱动也有这个问题,我以前是用的nvidia的卡,只是一直用它的驱动,所以没有发现这个问题。 A problem that has been bothering me for nearly two years. So the problem is, when trying to remotely connect to the vnc server enabled on my computer, I can see only the first screenshot, without further update, the mouse pointer is moving, but keyboard events are not responded. I thought at first this must be something wrong with the network, or maybe "view only" is set on the server, however on my computer I see that mouse and keyboard are working properly, so it's only the problem of screen updating. I didn't know the reason all the time until now. Recently I have a new Ubuntu installe...

游戏推荐: InstantAction

http://www.instantaction.com 一个基于浏览器的游戏网站,支持windows,mac下常见浏览器。实际上是用插件把浏览器和exe连接了起来。 上面有很多不同类型的游戏,如fps, rts, 等等,都是多人联机游戏。 不论是游戏,技术,界面都很合我的口味,也许是我kongregate玩太多了? 呵呵。

游戏推荐: Fantastic Contraption

Fantastic Contraption , 本周 Kongregate 排名第一。类似Phun的一个游戏,自己搭建机器把一个小块移到指定地点。 玩家还可以上传共享自己的机器设计(需注册,但就需要几秒钟) 我玩了之后大呼过瘾。 这是继 Anika's Odyssey 之后又一个让我非常想推荐的游戏了。

网站推荐: Kongregate 一个Web2.0 Flash游戏网站

Kongregate 是一个Web2.0的Flash游戏网站。 里面有几千个游戏和上万个用户。 比较有特色的功能如下 1.聊天室,玩游戏时能和别人聊天,比如探讨通关攻略 2.Badge,很多游戏中达到一定任务(像得到多少多少分,坚持多长多长时间之类),就会给你一个Badge,当然除了加点积分没啥实际用处。 3.显示游戏的排行榜,不同游戏有不同项目 其他功能 1.给游戏评分以及写评论 2.上传自己做的游戏 3.提交bug给作者 4.个人收藏 此外,里面的游戏没有分类,但是游戏作者可以给游戏指定tag 我上这个网站也有一定时间了。感觉很不错,至今乐此不疲。 里面游戏更新很快,而且什么类型都有,不愁没有你不喜欢的。一般来说每天有很多游戏上传,鱼龙混杂。平时我就看看每日hottest,以及有badge的游戏。 真是一个不错的网站~

游戏推荐: fish fillets

画面简单但关卡不简单的小游戏 关卡设计非常巧妙,到了后面有时我连看着攻略都过不去。 如果完全是自己研究出来的解法,过关后甚至有想哭的感觉:设计得太精妙了! 极力推荐! 现在版本叫fish fillets next generation.

一些电视台/电台的直播地址

摘自 轻而易举用KMPlay看几百个电视台 [[更新]] 深圳都市频道=rtspt://219.134.129.194/sztv-1 深圳电视剧台=rtspt://219.134.129.194/sztv-2 深圳财经生活=rtspt://219.134.129.194/sztv-3 深圳娱乐频道=rtspt://219.134.129.195/sztv-4 深圳少儿频道=rtspt://219.134.129.195/sztv-6 深圳公共频道=rtspt://219.134.129.195/sztv-7 西安白鸽都市=mms://vod1.xatvs.com/xatv2 西安新闻综合=mms://vod1.xatvs.com/xatv1 安康综合频道=mms://61.150.111.204/news 晋城新闻综合=mms://219.147.36.250/live1 晋城公共频道=mms://219.147.36.250/live2 晋城信息频道=mms://219.147.36.250/live3 cctv1=mms://61.177.180.147/cctv1 CCTV2=mms://61.155.44.132/cctv2 CCTV3=mms://222.185.236.50/101 CCTV4=mms://222.185.236.50/103 CCTV9=mms://live.cctv.com/live3 [[国内电视台]] CCTV新闻=mms://live.cctv.com/live3 阳光卫视=mms://222.187.118.52/tv4 TVB8=mms://218.73.94.50/tv-tvb8 山东卫视=mms://202.102.188.43/sdtv 北京卫视=mms://222.185.236.50/107 丽水电视台=mms://202.96.114.251/lstv 丽水经济台=mms://202.96.114.251/lstv2/ CCTV1=mms://live.cctv.com/live1 CCTV=mms://61.49.22.106:1755/live1 CCTV4=mms://winmedia.cctv.com.cn/live CCTV5=mmst://218.69.1...