青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

GLORY | 學習·記錄

coding for life

瀏覽器是Firefox 4.0 。

問題出現在寫好文章,點擊發布,文章正文被清空,并且彈出來“內容不能為空!”

辛辛苦苦碼的字就沒了。。。

posted @ 2011-03-07 23:29 meglory 閱讀(1415) | 評論 (8)編輯 收藏

考察

1a3x3
1a3a

就ok。

posted @ 2011-03-07 23:23 meglory 閱讀(384) | 評論 (0)編輯 收藏
 1 #include<stdio.h>
 2 
 3 int main()
 4 {
 5     int i=43;
 6     printf("%d",printf("%d",printf("%d",i)));
 7     
 8     return 0;
 9 }
10 
11 這是一個社區的驗證碼,讓輸出結果,很有意思。
12 結果是4321.
13 printf()的返回值:On success, the total number of characters written is returned.
14 On failure, a negative number is returned.

posted @ 2010-12-23 11:39 meglory 閱讀(362) | 評論 (0)編輯 收藏
文章轉自http://www.ugrad.cs.ubc.ca/~cs219/CourseNotes/Unix/commands-links.html
Hard links and Soft links

Links

As was mentioned in the section on file system structure, every file has a data structure (record) known as an i-node that stores information about the file, and the filename is simply used as a reference to that data structure. A link is simply a way to refer to the contents of a file. There are two types of links:

  • Hard links: a hard link is a pointer to the file's i-node. For example, suppose that we have a file a-file.txt that contains the string "The file a-file.txt":
    % cat a-file.txt
    The file a-file.txt
    %

    Now we use the ln command to create a link to a-file.txt called b-file.txt:

    % ls
    ./ ../ a-file.txt
    % ln a-file.txt b-file.txt
    % ls
    ./ ../ a-file.txt b-file.txt

    Hard Links

    The two names a-file.txt and b-file.txt now refer to the same data:

    % cat b-file.txt
    The file a-file.txt
    %

    If we modify the contents of file b-file.txt, then we also modify the contents of file a-file.txt:

    % vi b-file.txt
    ...
    % cat b-file.txt
    The file a-file.txt has been modified.
    % cat a-file.txt
    The file a-file.txt has been modified.
    %

    and vice versa:

    % vi a-file.txt
    ...
    % cat a-file.txt
    The file a-file.txt has been modified again!
    % cat b-file.txt
    The file a-file.txt has been modified again!
    %
  • Soft links (symbolic links): a soft link, also called symbolic link, is a file that contains the name of another file. We can then access the contents of the other file through that name. That is, a symbolic link is like a pointer to the pointer to the file's contents. For instance, supposed that in the previous example, we had used the -s option of the ln to create a soft link:
    % ln -s a-file.txt b-file.txt
    On disk, the file system would look like the following picture:

    Soft Links

But what are the differences between the two types of links, in practice? Let us look at an example that highlights these differences. The directory currently looks like this (let us assume that a-file.txt b-file.txt are both hard links to the same file):

% ls
./ ../ a-file.txt b-file.txt

Let us first add another symbolic link using the -s option:

% ln -s a-file.txt Symbolicb-file.txt
% ls -F
./ ../ a-file.txt b-file.txt Symbolicb-file.txt@

A symbolic link, that ls -F displays with a @ symbol, has been added to the directory. Let us examine the contents of the file:

% cat Symbolicb-file.txt 
The file a-file.txt has been modified again!

If we change the file Symbolicb-file.txt, then the file a-file.txt is also modified.

% vi Symbolicb-file.txt
...
% cat Symbolicb-file.txt
The file a-file.txt has been modified a third time!
% cat a-file.txt
The file a-file.txt has been modified a third time!
% cat b-file.txt
The file a-file.txt has been modified a third time!
%

If we remove the file a-file.txt, we can no longer access the data through the symbolic link Symbolicb-file.txt:

% ls -F
./ ../ a-file.txt b-file.txt Symbolicb-file.txt@
% rm a-file.txt
rm: remove `a-file.txt'? y
% ls -F
./ ../ b-file.txt Symbolicb-file.txt@
% cat Symbolicb-file.txt
cat: Symbolicb-file.txt: No such file or directory

The link Symbolicb-file.txt contains the name a-file.txt, and there no longer is a file with that name. On the other hand, b-file.txt has its own pointer to the contents of the file we called a-file.txt, and hence we can still use it to access the data.

% cat b-file.txt
The file a-file.txt has been modified a third time!

Although it may seem like symbolic links are not particularly useful, hard links have their drawbacks. The most significant drawback is that hard links cannot be created to link a file from one file system to another file on another file system. A Unix file structure hierarchy can consist of several different file systems (possibly on several physical disks). Each file system maintains its own information regarding the internal structure of the system and the individual files on the system. Hard links only know this system-specific information, which make hard links unable to span file systems. Soft links, on the other hand, know the name of the file, which is more general, and are able to span file systems.

For a concrete analogy, suppose that our friend Joel User is a student at both UBC and SFU. Both universities assign him a student number. If he tries to use his UBC student number at SFU, he will not meet with any success. He will also fail if he tries to use his SFU student number at UBC. But if he uses his legal name, Joel User, he will probably be successful. The student numbers are system-specific (like hard links), while his legal name spans both of the systems (like soft links).

Here is an example that demonstrates a situation where a hard link cannot be used and a symbolic link is needed. Suppose that we try to create a hard link from the current working directory to the C header stdio.h.

% ln /usr/include/stdio.h stdio.h
ln: creating hard link `stdio.h' to `/usr/include/stdio.h': Invalid cross-device link
%

The ln command fails because stdio.h is stored on a different file system. If we want to create a link to it, we will have to use a symbolic link:

% ln -s /usr/include/stdio.h stdio.h
% ls -l
lrwxrwxrwx 1 a1a1 guest 20 Apr 20 11:58 stdio.h -> /usr/include/stdio.h
% ls
./ ../ stdio.h@
%

Now we can view the file stdio.h just as if it was located in the working directory. For example:

% cat stdio.h 
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */

/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */

/*
* User-visible pieces of the ANSI C standard I/O package.
*/

#ifndef _STDIO_H
#define _STDIO_H
...
%

The entire output of the cat command was not included to save space.

Note that the long listing (ls -l) of a soft link does not accurately reflect its associated permissions. To view the permissions of the file or directory that the symbolic link references, the -L options of the ls command can be used. For example:

% ln -s /usr/include/stdio.h stdio.h

% ls -l stdio.h
lrwxrwxrwx 1 a1a1 undergrad 20 May 10 15:13 stdio.h -> /usr/include/stdio.h

% ls -l /usr/include/stdio.h
-rw-r--r-- 1 root bin 11066 Jan 5 2000 /usr/include/stdio.h

% ls -lL stdio.h
-rw-r--r-- 1 root bin 11066 Jan 5 2000 stdio.h

posted @ 2010-12-22 16:12 meglory 閱讀(384) | 評論 (0)編輯 收藏

posted @ 2010-12-22 09:49 meglory 閱讀(252) | 評論 (0)編輯 收藏
Vimperator是一個Firefox的插件。Firefox的好處自然就不用多說了,自從我習慣了Firefox的世界以后,IE對于我來說已經變得不可接受了。作為一個比較喜歡簡潔的人,我把Firefox沒有用的按鈕和菜單都去掉了,從而可以最大程度的利用瀏覽空間。而Vimperator的出現,讓我感覺到作為一個Firefox用戶的真正好日子來了。

Vimperator能夠把雜七雜八的地址欄收藏欄菜單欄通通隱藏掉(可以通過配置文件調出來),只是在瀏覽器下方多出現了一個狀態欄。Vimperator的設計靈感來源于Vim,是一幫熱愛Vim的人希望能夠把Vim的強大功能移植到Firefox上面。Vim用戶可以迅速上手,因為許多命令都是跟vim類似。

當然最吸引我的是,Vimperator可以讓你真正做到雙手不離開鍵盤瀏覽網頁。

想要打開網頁鏈接而不用鼠標去點擊?只要一個F鍵就搞定了。

想要打開一個新的網頁而不用先定位到地址輸入框?一個T鍵就搞定了。

裝了插件以后想要重啟?輸入:res就ok了。想要關閉FF?:q就搞定了。

最最致命的是,想我這種長期瀏覽論壇的人來說,翻頁瀏覽是最煩躁的事情了,在Vimperator下面如何做到翻頁?翻到下頁,點擊]]就搞定了,返回上頁呢?當然[[了啊。

這樣一來,我感到我瀏覽網頁的速度明顯提升了,因為我的雙手都在鍵盤上面操作,打過魔獸的童鞋都知道,為什么大家都要快捷鍵呢?因為敲擊鍵盤的比點擊鼠標的要快出許多許多,Moon大神可以在暗夜精靈的主基地內實現完全的鍵盤操作不用鼠標點擊。而我等小羅羅如何向大神們看齊呢?簡單,裝上Vimperator開始你的APM之旅唄。


注:如果想要了解細節,可以參照這篇文章:http://pchu.blogbus.com/logs/32923406.html
posted @ 2010-12-20 23:13 meglory 閱讀(1933) | 評論 (5)編輯 收藏
推薦一篇很好的文章。
http://forum.ubuntu.org.cn/viewtopic.php?f=65&t=125393&sid=9c593e4e65f4b7e560648c827f97a5ff

以前用Vmware在Windows里面虛擬linux的時候訪問分區非常方便。現在是在linux里面虛擬了win出來,并且工具變成了virtualbox,麻煩一下子很多,這篇文章完全解決了自己的問題。

posted @ 2010-08-08 00:50 meglory 閱讀(366) | 評論 (0)編輯 收藏
出來混,總是要還。
Linux的命令沒有學好,今天被問倒了。

查看目錄的大小。

NAME

du - estimate file space usage

SYNOPSIS

du [OPTION]... [FILE]...

EXAMPLES

DESCRIPTION

Summarize disk usage of each FILE, recursively for directories.

Mandatory arguments to long options are mandatory for short options too.

-a, --all
write counts for all files, not just directories
-B, --block-size=SIZE use SIZE-byte blocks
-b, --bytes
print size in bytes
-c, --total
produce a grand total
-D, --dereference-args
dereference FILEs that are symbolic links
-h, --human-readable
print sizes in human readable format (e.g., 1K 234M 2G)
-H, --si
likewise, but use powers of 1000 not 1024
-k
like --block-size=1K
-l, --count-links
count sizes many times if hard linked
-L, --dereference
dereference all symbolic links
-S, --separate-dirs
do not include size of subdirectories
-s, --summarize
display only a total for each argument
-x, --one-file-system
skip directories on different filesystems
-X FILE, --exclude-from=FILE
Exclude files that match any pattern in FILE.
--exclude=PATTERN Exclude files that match PATTERN.
--max-depth=N
print the total for a directory (or file, with --all) only if it is N or fewer levels below the command line argument; --max-depth=0 is the same as --summarize
--help
display this help and exit
--version
output version information and exit


posted @ 2010-08-06 23:33 meglory 閱讀(185) | 評論 (0)編輯 收藏

 1.打開Chrome瀏覽器。選項->高級設置->(往下面拖一下)網頁內容->更改字體和語言設置

 2.將Serif字體修改成 Sans 16,Sans-Serif字體修改成 Sans 16,寬度固定字體:修改成Monospace 13 ;


posted @ 2010-08-03 22:17 meglory 閱讀(364) | 評論 (0)編輯 收藏
有一句話觸動很大。永遠年輕,永遠熱淚盈眶


posted @ 2010-07-19 22:45 meglory 閱讀(164) | 評論 (0)編輯 收藏
僅列出標題
共5頁: 1 2 3 4 5 

導航

隨筆分類

隨筆檔案

最新評論

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            久久久午夜精品| 久久久www| 亚洲美女福利视频网站| 欧美成人在线影院| 在线亚洲高清视频| 一级日韩一区在线观看| 国产精品亚发布| 久久久久久久精| 老司机午夜精品视频在线观看| 精品动漫3d一区二区三区| 欧美成va人片在线观看| 欧美电影免费观看| 亚洲欧美视频一区| 久久国产精品99精品国产| 亚洲二区在线视频| 日韩视频不卡| 国产综合久久久久久| 欧美国产极速在线| 国产精品高潮久久| 久久一二三四| 欧美性色综合| 狂野欧美性猛交xxxx巴西| 欧美国产一区二区在线观看| 亚洲中字在线| 美女91精品| 欧美一区二区精品在线| 蜜臀va亚洲va欧美va天堂 | 久久全国免费视频| 一区二区三区.www| 久久不见久久见免费视频1| 亚洲精品国产无天堂网2021| 亚洲一区二区三区三| 亚洲春色另类小说| 午夜精品久久久久久| 亚洲人精品午夜| 欧美一区二区国产| 99热免费精品| 久久欧美肥婆一二区| 亚洲性夜色噜噜噜7777| 老色鬼久久亚洲一区二区| 午夜在线不卡| 欧美日韩精品中文字幕| 噜噜噜在线观看免费视频日韩| 欧美日一区二区三区在线观看国产免| 久久久久久久波多野高潮日日| 欧美日韩91| 亚洲大胆视频| 狠狠干综合网| 欧美一级播放| 欧美亚洲系列| 国产精品久久久久久一区二区三区| 欧美激情亚洲激情| 很黄很黄激情成人| 亚洲欧美综合网| 亚洲欧美成人一区二区在线电影 | 亚洲欧美网站| 午夜精品久久久久久久99热浪潮| 欧美成人免费在线视频| 欧美福利精品| 91久久在线播放| 麻豆国产va免费精品高清在线| 欧美一区二区视频在线| 国产精品一区二区视频| 亚洲在线播放电影| 亚洲女人天堂成人av在线| 欧美视频日韩视频| 亚洲视频在线播放| 亚洲男人av电影| 国产精品一页| 久久大综合网| 免费日韩av| 亚洲人成免费| 欧美三级乱码| 亚洲一级片在线观看| 性做久久久久久免费观看欧美| 国产精品美女xx| 性高湖久久久久久久久| 久久久人人人| 亚洲国产三级| 欧美日韩成人| 午夜精品视频在线观看一区二区| 久久久久久久激情视频| 伊人激情综合| 欧美日韩成人| 午夜精品久久久久| 麻豆精品精品国产自在97香蕉| 亚洲福利视频专区| 欧美日韩在线播放| 性欧美8khd高清极品| 欧美a一区二区| 一本色道久久加勒比88综合| 国产精品久久久久免费a∨ | 亚洲乱码国产乱码精品精98午夜| 亚洲午夜久久久久久尤物| 国产欧美日韩一区二区三区在线观看| 午夜亚洲性色福利视频| 欧美国产日韩在线| 中日韩男男gay无套| 国产主播一区二区三区| 欧美国产成人在线| 欧美一级网站| 亚洲美女尤物影院| 久久久久久久91| 中日韩视频在线观看| 国产在线精品二区| 欧美三级视频在线观看| 久久免费99精品久久久久久| 99国产精品视频免费观看| 老司机午夜精品视频| 国产精品99久久久久久久久| 红桃视频欧美| 欧美日韩性视频在线| 久久一区二区三区av| 亚洲天堂av在线免费| 亚洲电影欧美电影有声小说| 欧美在线亚洲一区| 亚洲视频999| 亚洲黄色在线观看| 国产一区二区三区在线播放免费观看 | 亚洲欧美在线播放| 最新日韩在线| 欧美成人午夜视频| 久久免费99精品久久久久久| 亚洲影音先锋| 一区二区欧美精品| 亚洲人成人99网站| 一区在线观看| 狠狠爱www人成狠狠爱综合网| 国产精品mv在线观看| 欧美精品一区二区三区四区| 久久亚洲图片| 久久久久一区| 久久九九国产精品| 先锋影音网一区二区| 亚洲在线国产日韩欧美| 中国日韩欧美久久久久久久久| 亚洲欧洲精品一区二区三区| 欧美成人亚洲成人| 欧美99在线视频观看| 久久蜜桃av一区精品变态类天堂| 欧美一区二区三区四区在线| 亚洲欧美日韩在线观看a三区| 亚洲一级二级| 亚洲性视频h| 亚洲欧美精品伊人久久| 亚洲欧美韩国| 欧美一区免费视频| 欧美尤物巨大精品爽| 久久九九国产精品怡红院| 久久精品国产清自在天天线| 欧美诱惑福利视频| 久久婷婷丁香| 欧美高清不卡在线| 亚洲日本欧美| 中文国产亚洲喷潮| 亚洲欧美日韩国产一区二区三区| 亚洲免费在线电影| 久久久久久国产精品mv| 久久综合色一综合色88| 欧美成人黑人xx视频免费观看| 欧美黑人多人双交| 国产精品黄视频| 国产视频在线观看一区二区| 国产一区二区三区在线播放免费观看| 韩日午夜在线资源一区二区| 亚洲福利国产精品| 中日韩视频在线观看| 欧美一级播放| 欧美高清在线播放| 一区二区三区精品| 欧美资源在线| 欧美激情无毛| 国产日韩精品久久| 亚洲精品国产精品久久清纯直播| 国产精品99久久久久久有的能看| 欧美一级电影久久| 亚洲高清一区二| 午夜亚洲福利| 欧美精品一区在线观看| 国产欧美一区二区精品婷婷 | 国产精品自拍一区| 亚洲国产成人精品视频| 亚洲免费一在线| 美女视频黄a大片欧美| 日韩午夜电影在线观看| 久久精品国产69国产精品亚洲| 嫩模写真一区二区三区三州| 国产精品社区| 日韩视频在线一区二区三区| 久久精品国产99精品国产亚洲性色| 欧美激情影院| 久久国产精品一区二区三区| 欧美精品一区二区三区一线天视频| 国产日韩一区二区三区在线播放| 99re这里只有精品6| 美女在线一区二区| 亚洲制服丝袜在线| 欧美日韩三区四区| 亚洲经典视频在线观看| 久久久国产精品一区|