Apr 9

 打开一个页面元素比较简单的网页,然后再地址栏里面输入: 

javascript:(function(){var s=document.createElement("script");s.charset="UTF-8";var da=new Date();s.src="http://www.rr.iij4u.or.jp/~kazumix/d/javascript/meltdown/meltdown.js?"+da.getTime(); document.body.appendChild(s)})();

就可以看到很神奇的东西。

虽然是js的外挂代码,但是还是挺有意思的。

Feb 28

The Man from Earth

这是一部电影的名字,在此推荐一下。由于是可以观看的东西,我就不剧透了,大家用自己的渠道去搞到手看看吧。

这部电影改编自科幻作家Jerome Bixby(1923~1998)生前完成的最后一部小说。电影内容很有意思,属于那种典型的小故事片,全部情节都发生在一间狭小的客厅之中,全靠人物之间的对话展开。虽然是2007年的电影,可能都点老,但是我觉得很多人都没有看过,所以就拿出来了。电影在IMDB上获得了高达8.4的评分,可以算得上很少有。

废话就不多说了,大家还是去欣赏吧,

Feb 28

这算是我的一篇无聊日志。最近我在看莱蒙托夫的《当代英雄》和另外一本书《吉米多维奇习题集》,所以花在写文字上的功夫就少了很多,见谅。

本来今天晚上是准备做TCHS的,但是窘迫的是我的TC账号在当时注册的时候居然忘记勾选High School Competitions了,所以只能放弃比赛。不得不说我做事有时候很欠考虑。

写到这里的时候我突然意识到自己在抖脚。这个习惯是我在小学的毕业考试的时候,为了应付监考的紧张气氛而故作轻松之举。结果之后一发不可收拾,现在无一日不抖脚。很多人都说抖脚是一种不雅的行为,我虽然不是那么不以为然,但是也不会拘束自己的行为。抖脚可以促进血液循环,而且调动了多块肌肉,有利于提高大脑的协调性。而且,我查阅了一下相关的东西,发现“抖脚频繁的人患风湿的较少,骨质疏症也较少”。

因为这个日志的内容到目前为止还是很没有营养,我就再扯扯一些自己的观点,其实也算是看《当代英雄》有感。毕巧林这个人物我觉得和我自身很相似,不过他还多出了在当时的上流社会所流连的经历。虽然这些都是使得毕巧林变成“多余的人”的外部诱因,但是毕巧林的自身所独具的“观察者”的视角,才是这背后的主要原因。

毕巧林正是在潜意识中把自己看成了一个“观察者”所以才会对爱情、友情之类表现出无所谓而冷淡的态度。因为他觉得自己不过是一个旁观者,参与也只是身不由己,所以不是很有歉疚之情。他或许会有一点遗憾,或许会伤感,但是不会改变他的做法。

如果要给毕巧林加一个星座,也应当是处女座。他在内心中有自卑之感,所以会选择旁观的做法。接下来的事情就是看起来很理所当然的了。

感慨一下而已,因为我也是处女座。

Feb 6
(*O/*_/
Cu  #%* )pop mark/CuG 4 def/# 2 def%%%%@@P[TX---P\P_SXPY!Ex(mx2ex("SX!Ex4P)Ex=
CuG #%*                                                                  *+Ex=
CuG #%*------------------------------------------------------------------*+Ex=
CuG #%*   POLYGLOT - a program in seven languages      15 February 1991  *+Ex=
CuG #%*                                                                  *+Ex=
CuG #%*   Written by Kevin Bungard, Peter Lisle, and Chris Tham          *+Ex=
CuG #%*                                                                  *+Ex=
CuG #%*   We have successfully run this program using the following:     *+Ex=
CuG #%*     ANSI COBOL:            MicroFocus COBOL85 (not COBOL74)      *+Ex=
CuG #%*     ISO  Pascal:           Turbo Pascal (DOS & Mac), Unix PC,    *+Ex=
CuG #%*                            AIX VS Pascal                         *+Ex=
CuG #%*     ANSI Fortran:          Unix f77, AIX VS Fortran              *+Ex=
CuG #%*     ANSI C (lint free):    Microsoft C, Unix CC, GCC, Turbo C++, *+Ex=
CuG #%*                            Think C (Mac)                         *+Ex=
CuG #%*     PostScript:            GoScript, HP/Adobe cartridge,         *+Ex=
CuG #%*                            Apple LaserWriter                     *+Ex=
CuG #%*     Shell script:          gnu bash, sh (SysV, BSD, MKS), ksh    *+Ex=
CuG #%*     8086 machine language: MS-DOS 2.00, 3.03, 4.01, 5.00 beta    *+Ex=
CuG #%*                            VPix & DOS Merge (under unix)         *+Ex=
CuG #%*                            SoftPC (on a Mac), MKS shell          *+Ex=
CuG #%*                                                                  *+Ex=
CuG #%*   Usage:                                                         *+Ex=
CuG #%*     1. Rename this file to polyglot.[cob|pas|f77|c|ps|sh|com]    *+Ex=
CuG #%*     2. Compile and/or run with appropriate compiler and          *+Ex=
CuG #%*        operating system                                          *+Ex=
CuG #%*                                                                  *+Ex=
CuG #%*   Notes:                                                         *+Ex=
CuG #%*     1. We have attempted to use only standard language features. *+Ex=
CuG #%*        Without the -traditional flag gcc will issue a warning.   *+Ex=
CuG #%*                                                                  *+Ex=
CuG #%*     2. This text is a comment block in all seven languages.      *+Ex=
CuG #%*                                                                  *+Ex=
CuG #%*     3. When run as a .COM file with MS-DOS it makes certain      *+Ex=
CuG #%*        (not unreasonable) assumptions about the contents of      *+Ex=
CuG #%*        the registers.                                            *+Ex=
CuG #%*                                                                  *+Ex=
CuG #%*     4. When transfering From Unix to DOS make sure that a LF     *+Ex=
CuG #%*        is correctly translated into a CR/LF.                     *+Ex=
CuG #%*                                                                  *+Ex=
CuG #%*   Please mail any comments, corrections or additions to          *+Ex=
CuG #%*   peril@extro.ucc.su.oz.au                                       *+Ex=
CuG #%*                                                                  *+Ex=
CuG #%*------------------------------------------------------------------*QuZ=
CuG #%*                                                                  *+Ex=
CuG #%*!Mx)ExQX4ZPZ4SP5n#5X!)Ex+ExPQXH,B+ExP[-9Z-9Z)GA(W@'UTTER_XYZZY'CPK*+
CuG #(*                                                                  *(
C   # */);                                                              /*(
C   # *)  program        polyglot (output);                             (*+
C   #     identification division.
C   #     program-id.    polyglot.
C   #
C   #     data           division.
C   #     procedure      division.
C   #
C   # * ))cleartomark   /Bookman-Demi findfont 36 scalefont setfont     (
C   # *                                                                 (
C   #
C   # *                  hello polyglots$
C   #     main.
C   #         perform
C     * ) 2>_$$; echo   "hello polyglots"; rm _$$; exit
print
C             stop run.
-*,                'hello polyglots'
C
C         print.
C             display   "hello polyglots".                              (
C     */  int i;                                                        /*
C     */  main () {                                                     /*
C     */      i=printf ("hello polyglots\n"); O= &i; return *O;         /*
C     *)                                                                (*
C     *)  begin                                                         (*
C     *)      writeln  ('hello polyglots');                             (*
C     *)                                                                (* )
C     * ) pop 60 360                                                    (
C     * ) pop moveto    (hello polyglots) show                          (
C     * ) pop showpage                                                  ((
C     *)
end                                                          .(* )
C)pop%     program       polyglot.                                      *){*/}
Jan 31

比如,下面这几个可以输出自己的程序: 

class S{public static void main(String[]a){String s="class S{public static void main(String[]a){String s=;char c=34;System.out.println(s.substring(0,52)+c+s+c+s.substring(52));}}";char c=34;System.out.println(s.substring(0,52)+c+s+c+s.substring(52));}}
char*s="char*s=%c%s%c;main(){printf(s,34,s,34);}";main(){printf(s,34,s,34);}
#define q(k)main(){return!puts(#k"\nq("#k")");}
q(#define q(k)main(){return!puts(#k"\nq("#k")");})

还有用gcc编译输出C,g++编译输出C++的程序: 

#include <stdio.h>
int main() {
   putchar('C');
   #ifdef __cplusplus
   putchar('+'); putchar('+');
   #endif
   return 0;
}

下面的程序输出一个雪花曲线,看起来很像Java,但是却是C: 

/*
 * Sun's Java is often touted as being "portable", even though my code won't
 * suddenly become uber-portable if it's in Java. Truth is, Java's one of
 * the most ugly, slow, and straitjacketed languages ever. It's popular
 * mainly because people hear the word "portable" and go "ewww".
 *
 * This program, then, is dedicated to bringing about the death of Java. We
 * good coders have been oppressed for too long by the lame language
 * decisions of pointy-haired bosses and academics who should know better. 
 * It's time we stand up against this junk, and bring back the fun in
 * programming! Viva La Revolution!
 */

#define aSet c
#define BufferedReader(x)1
#define byte Y[I][_^1]?do(:):_&1?do(.):do(`):8;++y;}
#define class int N=0,_,O=328,l=192,y=4,Y[80][64]={0},I;struct
#define do(c)a(#c "\b")
#define err c,c
#define getAllStrings(x));q()
#define if(x)b(#x)
#define IOException
#define line c
#define main(a)b(char*x){write(1,"\033[",2),null}main()
#define new
#define null a(x);}a(char*x){write(1,x,strlen(x));try;try;try;try;
#define out c,c
#define println(x)c
#define private int d(int
#define public short c;}c;typedef int BufferedReader;char*F="JF>:>FB;;BII";
#define return {return
#define static f(x){N=(N+x)%6,y--?f(0),f(1),f(4),f(1):++Y[(I=O+N[F]-66)
#define String
#define System c
#define this if(D):1,O=I,I/=16,l<_/32?if(B):l>_/32?if(A):2,l=_,_/=16,byte
#define throws
#define toArray(x)c
#define try for(;--c.c;)
#define void /16][(_=l+N[6+F]-66)/16]?O/=16,l/=32,O<I/16?if(C):O>I/16?this
#define while(k)if(2J),if(7;21H),f(0),f(4),f(4),if(H),/*

import java.io.*;
import java.util.*;

/**
 * A lame Java program.
 * @author J. Random Worker
 */
class LameJavaApp
{

   /** The infamous Long-Winded Signature From Hell. */
   public static void main(String[] args)
     throws IOException
   {
     /* Don't get me started on this. */
     BufferedReader reader =
        new BufferedReader(new FileReader(args[0]));

     /* What, this long incantation just to print a string? */
       System.err.println("Hello world!");

     /* At least this is sane. */
     String line;
     while ((line = reader.readLine()) != null)
      System.out.println(line.length());
   }

   /**
    * Method with a needlessly long name.
    * @param aSet  a set (!)
    */
   private String[] getAllStrings(Set<String> aSet)
   {
     /*
      * This dance is needed even in J2SE 5, which has type
      * templates. It was worse before that.
      */
     return aSet.toArray(new String[0]);
   }

}