Profile

Cover photo
Grissiom Gu
Attends BUAA
Lives in 中国·北京
244 followers|24,100 views
AboutPostsPhotosYouTube

Stream

Grissiom Gu

Shared publicly  - 
 
 
+Fedora Project: is there some basic reason why you never regenerate the install images?

Right now the F19 install images use some ancient 3.9-based kernel. Which means that they may boot on most machines, but it's missing wireless ID's for new laptops etc, so making it useful is unnecessarily painful.
275 comments on original post
1
Add a comment...

Grissiom Gu

Shared publicly  - 
 
smile
 
Click "LOOK INSIDE!"
Click "Index"
Scroll down to p. 269
Find the entry for "recursion"
Smile.
8 comments on original post
1
Matteo Bernardini's profile photo
 
in the 2nd edition in italian (that I got) there isn't that >:-(
Add a comment...

Grissiom Gu

Shared publicly  - 
 
Konsole 2.11 font rendering bug
1
Add a comment...

Grissiom Gu

Shared publicly  - 
 
最早的 RTGUI 不会是从 Enlightment 改过来的吧,在代码注释里发现 Etk_Object 了,嘿嘿嘿…… +Bernard Xiong 
 ·  Translate
1
Bernard Xiong's profile photoGrissiom Gu's profile photo
2 comments
 
+Bernard Xiong 我也想入个骨头板,可是一直没下得了决心…… cairo 编译起来大不大?汉字的字库 200K,随便再写点代码 text 就到 400K 了……
 ·  Translate
Add a comment...

Grissiom Gu

Shared publicly  - 
1
Add a comment...

Grissiom Gu

Shared publicly  - 
 
 
Getting no work done. Constantly refreshing amazon.com waiting for PaperWhite.

Shipping October 1st? Amazon, come on. I needed it yesterday. Or two months ago.
110 comments on original post
1
Add a comment...

Grissiom Gu

Shared publicly  - 
 
The origin of dot files
 
A lesson in shortcuts.

Long ago, as the design of the Unix file system was being worked out, the entries . and .. appeared, to make navigation easier. I'm not sure but I believe .. went in during the Version 2 rewrite, when the file system became hierarchical (it had a very different structure early on).  When one typed ls, however, these files appeared, so either Ken or Dennis added a simple test to the program. It was in assembler then, but the code in question was equivalent to something like this:
   if (name[0] == '.') continue;
This statement was a little shorter than what it should have been, which is
   if (strcmp(name, ".") == 0 || strcmp(name, "..") == 0) continue;
but hey, it was easy.

Two things resulted.

First, a bad precedent was set. A lot of other lazy programmers introduced bugs by making the same simplification. Actual files beginning with periods are often skipped when they should be counted.

Second, and much worse, the idea of a "hidden" or "dot" file was created. As a consequence, more lazy programmers started dropping files into everyone's home directory. I don't have all that much stuff installed on the machine I'm using to type this, but my home directory has about a hundred dot files and I don't even know what most of them are or whether they're still needed. Every file name evaluation that goes through my home directory is slowed down by this accumulated sludge.

I'm pretty sure the concept of a hidden file was an unintended consequence. It was certainly a mistake.

How many bugs and wasted CPU cycles and instances of human frustration (not to mention bad design) have resulted from that one small shortcut about  40 years ago?

Keep that in mind next time you want to cut a corner in your code.

(For those who object that dot files serve a purpose, I don't dispute that but counter that it's the files that serve the purpose, not the convention for their names. They could just as easily be in $HOME/cfg or $HOME/lib, which is what we did in Plan 9, which had no dot files. Lessons can be learned.)
110 comments on original post
1
Add a comment...
In his circles
117 people
Have him in circles
244 people
balla Ta's profile photo
Leo To's profile photo
Nong Li's profile photo
Xuchen Yao's profile photo
Dean Sinaean's profile photo
Robby Workman's profile photo
贾卫国's profile photo
Jianfeng Tu's profile photo
cai xiang's profile photo

Grissiom Gu

Shared publicly  - 
 
 
Awesome news from my favorite network sniffer
Today I released the next development version of Wireshark, 1.11.0. This marks a major change in the direction of the project. We're switching our user interface library from GTK+ to Qt. Both libraries make it easy for developers write applications that will run on different platforms without ...
9 comments on original post
1
Add a comment...

Grissiom Gu

Shared publicly  - 
1
Add a comment...

Grissiom Gu

Shared publicly  - 
 
 
Yocto supports the 0.99pl14 Linux kernel? 
This is a joke, right? Please tell me it's a joke...
To download the software for this release, use one of the above links to download a tarball. You can also use git to access the Yocto Project code in the Yocto Project Source Repositories (using cgit from a web browser) or from the command line using the following command: ...
15 comments on original post
1
Add a comment...

Grissiom Gu

Shared publicly  - 
 
 
從 The Verge 上看到的。
View original post
1
Add a comment...
People
In his circles
117 people
Have him in circles
244 people
balla Ta's profile photo
Leo To's profile photo
Nong Li's profile photo
Xuchen Yao's profile photo
Dean Sinaean's profile photo
Robby Workman's profile photo
贾卫国's profile photo
Jianfeng Tu's profile photo
cai xiang's profile photo
Work
Occupation
Student
Employment
  • Student, present
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
中国·北京
Previously
中国·保定 - 中国·保定 - Tokyo
Story
Introduction
主修材料科学与工程
自修编程
狂热于开源软件
Education
  • BUAA
    present
Basic Information
Gender
Male
Looking for
Friends, Dating, A relationship, Networking
Relationship
Single