Posts Tagged ‘麻烦’

July 3, 2010

  我的台式机,以前用的键盘一直是PS/2接口的,前些天换了个USB口的。一直没发现问题,知道昨天想进Windows办点私事儿,才发觉在Grub里面,无法用键盘选择操作系统,只能进入默认的Linux。
  起初怀疑是操作系统的驱动问题,但马上就排除了,因为Grub引导阶段,OS还没有降生呢!
  接下来就是Grub了,但大名鼎鼎的Grub怎会不支持USB键盘呢。
  最后需要考虑的就是BIOS了,键盘鼠标之类的简单硬件都由它来控制。进入BIOS,果然后USB Keyboard的使能选项,选择Enable,重启,问题解决了。
  记住,还有个BIOS。

Tags: . 57 views
April 18, 2010

  今天在VS中遇到一个十分诡异的事情,先看下面这个简单的程序:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class cmp
{
public:
	bool operator()(long long l, long long r)
	{
		//~ 此间内容可略去不看。
		//~ 如果l和r含有的digits完全相同则返回false,
		//~ 如125 vs. 512
		char tmp1[1024], tmp2[1024];
		sprintf(tmp1,"%ld",l);
		sprintf(tmp2,"%ld",r);
		sort(tmp1, tmp1+strlen(tmp1));
		sort(tmp2, tmp2+strlen(tmp2));
		if (!strcmp(tmp1, tmp2))
		{
			return false;
		}
		return true;
	}
};
Tags: . 20 views
March 1, 2010

  在家里闲着实在憋屈。想接触下Python,用我弱弱的手机找了个《Python简明教程》大致地过了一遍。找了家网吧想下个Python安装程序练练手,结果发现Python.org居然被墙了!幸好前几天殷殷给了一个翻墙用的包GAppProxy,马上就派上用场了。翻将过去,就看到那两条亲密无间的“蛇”了。

  F**K!难道G*F*W连个编程语言都不放过?Python是个不和谐的语言?可能吧,上面的翻墙工具就是Python吐出来的。Python另一个被墙的理由就是Python.com了,这是一个不河蟹的网站,简直就是十分不和谐……

  附上GAppProxy.rar。加压后运行gui.exe,设置代理服务器为127.0.0.1:8000(端口可以自己设定)。

Tags: ,,. 45 views
April 29, 2009

ubuntu每次关机时都会“嘀”的一声,在笔记本中则可能是“嘟嘟”的巨响,而且终端的操作也经常会发出这种声音,甚是难听!彻底解决的办法是禁用驱动系统喇叭的内存模块,在终端输入命令:

sudo modprobe -r pcspkr

或者:

sudo rmmod pcspkr
Tags: ,. 2 views

Here I am in the contemporarily latest distribution of ubuntu 9.04. The problem showed up when I updated the firefox to the version 3.0.9, that firefox kept telling me to restart for an update in every tabs in terms of “your browser has been updated and needs to be restarted”. While searching the solution online, I found this a bug of firefox, which is caused by a plugin. So I went to the menu: Tools>>Add-ons and disabled the plugin called “ubuntu firefox modification”, then after I restarted the firefox, the trouble is gone.
您的浏览器已经更新,需要重新启动。可能的解决办法:firefox的工具>>附加组件,关闭 Ubuntu Firefox Modification组件,重启浏览器即可。

Tags: ,. 2 views
安装前的准备

首先, 要知道你的显卡的型号, 并下载到相应的驱动程序. 我的显卡是集成的, nVidia Geforce 6100 nForce 405, 在nvidia的驱动支持列表里面可以找到,同时在驱动下载页面搜索并下载到名如NVIDIA-Linux-x86-180.51-pkg1.run

接着,安装编译驱动程序所需要的包: build-essential pkg-config xserver-xorg-dev libc-devsudo 等等。

$ sudo apt-get install  build-essential pkg-config xserver-xorg-dev libc-devsudo
Tags: ,. 34 views
April 28, 2009

This phenomenon merely happens when your windows had been shutdown innormally or the USB device is unmounted innormally. To fix this problem, just do as the ‘Details’ tell you:

sudo mount -t ntfs-3g /dev/sdb1 /media/yourvolume -o force

As the command complishes, you will make it when try mount the very volume another time. Good luck!

Tags: ,. 21 views
Page 1 of 11