传说中的中文编程
package mainimport fmt “fmt”func 输出函数(s string) {fmt.Printf(s)}func main() {fmt.Printf(”Hello, 中文\n”)变量 := “传说中的中文编程\n”输出函数(变量)}
–
Bian Jiang
Blog: http://www.wifihack.net/
package mainimport fmt “fmt”func 输出函数(s string) {fmt.Printf(s)}func main() {fmt.Printf(”Hello, 中文\n”)变量 := “传说中的中文编程\n”输出函数(变量)}
–
Bian Jiang
Blog: http://www.wifihack.net/
border@wifihack:~/work/go/tutorial$ cat type1.gopackage mainimport “fmt”type MyTypeA intfunc printInt(i int) {fmt.Printf(”%d\n”, i)}func main() {var a MyTypeA = 0printInt(a)}border@wifihack:~/work/go/tutorial$ 8g type1.gotype1.go:13: cannot use a (type MyTypeA) as type int in function argument
type MyTypeA inttype MyTypeB intvar a MyTypeA = 0var b MyTypeB = 0a = b 或 b = a 都是错误的,编译不通过。
printInt(a)
printInt(int(a))
参考: https://groups.google.com/group/golang-nuts/browse_thread/thread/bf4174fc5cbafa13#870a9034b11a8651
GCC项目组织宣布,
允许gccgo(Google 推出的新语言GO)增加到gcc的主分支,更详细的信息可能要在GCC4.5或之后的版本中体现。 也就是说在不远的将来GO语言将是Linux的标配。
GO语言: http://www.golang.org
GO中文资料参考: http://golang-china.org
git config --global user.name "Bian Jiang"
git config --global user.email borderj@gmail.com
git svn clone https://golang-china.googlecode.com/svn/trunk -s
git remote add origin git@github.com:border/golang-china.git
git push origin master
git svn rebase // 本地与Goolge Code 代码同步
git push // 上传本地的代码到github
git svn dcommit // 上传本地的代码到Google Code
在Github上创建ssh授权参考: http://wifihack.net/blog/2008/12/permission-denied-on-github/
–EOF–
http://www.wifihack.net
Baidu is suddenly unavailable, with sources all over China confirming this.
It seems that China’s most popular search engine, with a market share of over 77% has been hacked by Iranian hackers.
At present, the website is unavailable, but we have found a screenshot from Twitter user Budi Putra.
It seems that the website has had its DNS hacked by the “Iranian cyber Army”, the same guys that hacked Twitter a few weeks ago. The process, called DNS cache poisoning, is the corruption of an Internet server’s domain name system (DNS) table by replacing an Internet address with that of another, rogue address, in this case what the Iranian Cyber Army want you to see.
Exactly why The Iranian Cyber Army has decided to target Baidu.com is unknown but sources say it might be in relation to Iran’s nuclear ambitions, although no one is certain.
Can someone read Persian and translate this?
Update:
We’re being told the site is now accessible from some parts of the world. Still not so from Europe. Please let us know in the comments.
中文参考: http://solidot.org/articles/10/01/12/0046222.shtml
原文: http://thenextweb.com/asia/2010/01/12/breaking-baidu-hacked-iranian/
- Bian Jiang
http://www.wifihack.net
Recent Comments