




















































Supporting MAC is my way to support Linux
at
13:15
0
comments
labels: life
at
11:46
0
comments
labels: life
at
21:23
0
comments
----著名的britpop乐队
[编辑本段]
suede,the stone roses,oasis,blur,Snow Patrol,supergrass,pulp,Verve,Elastica,Placebo,travis,Mansun,coldplay,muse,radiohead,Geneva,the charlatans uk,The La's,Keane 等等
----25张优秀britpop专辑
[编辑本段]
同名专辑-----------------The stone roses:作为britpop起源之一,重要性不言而喻。
同名专辑---------------------------Suede:理由同上。
Dog man star-----------------------Suede:以其病态颓靡色彩颇受争议,但绝对好听。
Sci-Fi Lullabies-------------------Suede:B-side集合的典范之作,任何山羊皮迷不容错过。
Definitely Maybe-------------------Oasis:在06年的一场四万多名英国歌迷参与的评选中,它被评为了史上最佳专辑。
(What’s the story)Morning Glory---Oasis:在同一场评选中,它获得了第五名。一些绿洲歌迷认为,这张专辑更能代表oasis。
Modern Life Is Rubbish--------------Blur:认识Blur与britpop的入门之选。
Parklife----------------------------Blur:和上一张专辑不分上下的优秀之作,相比之下更加电气化。
The Great Escape--------------------Blur:作为Blur三部曲的最后一作,精彩依然。
Ok Computer--------------------Radiohead:公认的英伦摇滚与试验摇滚混合的代表作。
Invisible Band--------------------travis:全张专辑都是标志性的优美旋律,其内涵胜过travis之前的所有专辑。
Without You I'm Nothing----------Placebo:安慰剂以其无比华丽在britpop乐队重别树一帜。这是他们的代表作。
I Should Coco-----------------Supergrass:来自劲草乐队的优美之作。
同名专辑------------------------Elastica:充斥着朋克风味的britpop乐队。
X&Y-----------------------------Coldplay:这张专辑的风靡让他们成为了年度最赚钱摇滚乐队,可见其魅力。
Black Holes and Revelations---------Muse:以电气化britpop取胜的出色乐队。
Inside In Inside Out---------------Kooks:新晋britpop乐队,其亮色彩歌曲很动听。
Attack Of The Grey Lantern---------Mansun:很不寻常的一张专辑。
His 'n' Hers------------------------Pulp:很值得一听的专辑。
Northern Soul----------------------Verve:他们被称作新"Led Zepplin"。
Telling Stories------------Charlatans UK:一度被认为是britpop新旗帜性乐队。这是他们的复出之作,排行榜首位。
Hopes and Fears--------------------Keane:这支乐队出道不久就大受喜爱。
Further---------------------------Geneva:在中国不怎么被熟知的乐队,但这张专辑确实很出色。
Asquarius----------------------------Cud:同上。
Regeneration---------------Divine Comedy:他们拥有一个才华横溢的主唱。
Songs for Polarbears --------------Snow Patrol:近十年最经典的英伦乐队
When It's All Over We Still Have to Clear Up ----------------Snow Patrol:最经典的专辑之一
Final Straw -----------------Snow Patrol:同上
Eyes open--------------Snow Patrol:没有理由,听了便知
优秀的britpop专辑还有很多,这里只是抛砖引玉。
补充几张~~较新的
I wish I could win--------------The Afters:很好听的一张专集,特别是前三首。
We Leave At Dawn--------------Envy And Other Sins:一张较为经典的专集,2008年出道的这个乐队是由四个大男孩组成的,唱腔活泼俏皮。
at
11:29
0
comments
labels: Blogged
at
02:28
0
comments
labels: life
Code:
Output:This is a Internal string
Time to time you need to compose a complete text from sub strings
and variables. For example if you want to greet your visitor you want
to display a text like:
"Hello Peter, nice to see you again!"
Of
course you can not hard code the user name but you want to use a
variable like $userName. If you use single quoted strings then you can
display your text like this:
Using double quotes you can make it more simple:
The more variable you need to use the bigger is the difference.
After the basic case let's see some more complex variable parsing. What if you want to display the text:
"Peters website"
Using the above examples the $userName variable contains only the string Peter and if you compose your string as before:
You will get a warning and the result is not what you expected:
Output:Notice: Undefined variable: userNames in Z:\wdocs\test.php on line 4 website
As you can see it is possible to enclose only the variable name without the $ sign or the complete variable.
You have to use this solution in case of arrays as well in the following way:
Code:
<?php echo "Hello {$users['U1']}, nice to see you again!"; ?>
at
17:12
0
comments
at
11:40
0
comments
at
14:54
2
comments
labels: Blogged
at
13:44
0
comments
labels: life
at
11:27
0
comments
labels: bug
at
01:01
0
comments
labels: life
2.
找个不沾锅,点火,放肉和洋葱进去(对现在不放油!),等热到洋葱和肉都出水和油以后把这些液体滗干.然后加橄榄油进去,放蒜末,出香味后放红酒.然后放
西红柿.盖上锅盖慢慢煮.直到番茄脱皮融化.然后放点纸盒包装的碎粒番茄.然后加PARSLEY,BASIL,CHEESE,辣椒粉,盐.尝尝味道,临出
锅之前放蘑菇
at
20:53
0
comments
labels: cook
at
12:04
0
comments
labels: update
at
12:00
0
comments
labels: update
at
22:41
0
comments
labels: linux
at
13:19
0
comments
| One of the examples in last week's tip used the following awk statement to extract, from a file named unixfile, lines (records) that contained the string "learn" in them: |
awk '/learn/ { print $2 " " $1 }' unixfile |
| The string "learn" in this statement is a regular expression that is delimited on each end by the forward slash (/) character. In addition to awk, regular expressions are often used with other UNIX utilities such as grep, sed, and vi. Regular expressions, often abbreviated as regex or regexp, describe a pattern or particular sequence of characters and are used to search for and replace strings. Most characters used in a regex will represent themselves, but there are special characters (known as metacharacters) that take on special meaning in the context of the UNIX utility/tool in which they are used. Since the topic of regular expressions is quite extensive, this brief overview will only focus on two of its frequently used positional or anchor metacharacters, the caret (^) and the dollar sign ($). The caret is used to match at the beginning of a line, and the dollar sign is used to match at the end of a line. Carets will logically be found on the left-hand side of a regex, and dollar signs on the right. To demonstrate the usage of these two positional metacharacters, the same data file used for last week's tip will be used again this week. The only change made was the insertion of 4 blank lines between each line of text. The file unixfile now contains the following data: |
|
| Using grep, all lines in unixfile that begin with "unix" will be extracted with the help of the caret metacharacter: |
|
| Removing the caret from the beginning of the regex and adding a dollar sign to the end will cause grep to display lines ending with "unix": |
# grep 'unix$' unixfile |
| These two metacharacters can also be combined in a single regex to identify/manipulate blank lines. The -c option for grep will be used with a regex containing both the caret and the dollar sign to count the number of blank lines in unixfile: |
|
| You may recognize that this regex would be useful for removing blank lines from a file when needed. Experienced UNIX system administrators and shell script programmers understand that becoming skilled in the use of regular expressions is essential for using standard UNIX utilities (e.g. grep, awk, sed, and vi) to their fullest potential. |
GREP
“grep searches the named input FILEs (or standard input if no files are named, or the file name - is given) for lines containing a match to the given PATTERN. By default, grep prints the matching lines.”
AWK
“Awk scans each input file for lines that match any of a set of patterns specified literally in prog or in one or more files specified as -f progfile. With each pattern there can be an associated action that will be performed when a line of a file matches the pattern. Each line is matched against the pattern portion of every pattern-action statement; the associated action is performed for each matched pattern.”
SED
“The sed utility is a stream editor that reads one or more text files, makes editing changes according to a script of editing commands, and writes the results to standard output.”
# 在file 1中最后那行的末尾加入finalstring。
sed -i '$ s/$/finalstring/' file1
REGULAR EXPRESSIONS
Regular expressions allow you to use variables in your commands. Most of us are at least familiar with *, where *.db means “every file ending in .db”. There are however many useful regular expressions, and they are the key to executing the above commands efficiently. Brush up on regular expressions here.
PIPES AND REDIRECTS
In order to send the results from one command to another command you need to “pipe” them together. An example:
cat *.txt | grep "blatti.net"
cat *.txt will display the contents of every file that ends in “.txt” to the standard output. By piping those results, they become the input for the second command. grep "blatti.net" will take the standard input, and display each line that contains “blatti.net” on the standard output. So when these two commands are piped together, we will get every line that contains “blatti.net” in every file that ends in “.txt” in the working directory.
While most of your work can be done with standard input and output, you’ll probably want to write your results to a file. Enter redirection. Using the example above, lets say we wanted to take our results and write it to a file. This is done with the > redirector.
cat *.txt | grep "blatti.net" > results.txt
This command will take every line that contains “blatti.net” in every file that ends in “.txt” in the working director, and write them to the file “results.txt”. Note that this will overwrite any existing “results.txt” file that exists in the working directory. Which begs the question “What if I want to append instead of overwrite?” Well then use >> instead of >. The >> redirector is especially useful if you are creating logs.
Now you too can create obnoxious commands with limited knowledge! The command below is one I created using the resources listed in this article. It is part of a piece of software that pulls text out of a PDF and returns a specified section in a text file. (I’m sure it is inefficient - so someone chime in and tell me how to make it better so I’ll know for next time)
sed 's/^[0-9]$/Period &/’ /tmp/skypdf.txt | sed ’s/[A-Z]*$/&,/’ | sed ‘/Period/G’ | sed ‘$!N;s/\\n/ /’ | sed ‘/Period/{x;p;x;}’ | sed ’s/^ //’ > ~/Desktop/full.txt”
Now say that 10 times fast!
at
13:54
0
comments
at
12:18
0
comments
at
15:24
0
comments
labels: life
at
15:02
0
comments
labels: life