2010-04-01から1ヶ月間の記事一覧

Movement

Learn Python The Hard Way新しく上記のページを見つけたので、これをトライしてみようと思う。昨日作られたものだ。そしてoxoも一応実行出来たので、Learning to Programに戻る道もある。というか、出来れば両者並行してやりたい。明日・明後日はFlaskのTut…

Flask - 3rd Attack - Quickstart - Rendering Template~

Flask@DebianとPythonしようぜ! Flaskもういちど@DebianとPythonしようぜ! に続き僕のFlaskへのサードアタックが始まった。もう一度警告を再括しておこう。 僕は右も左もわからないさっきPythonをはじめたばかりの初心者なんでこのページを見に来た人はオ…

OXO

Learning to programのThe Basicsの最後でAlan Gauld先生に言われたようにOXOのプログラムを書いてみることにする。とりあえずDebian Referenceをさらっと読んで問題点は把握したのでそういう感じで進んでいくことが出来る。まず、最初の壁にぶつかる。OXOっ…

Debian Reference - Chapter 1. GNU/Linux tutorials

1.2. Unix-like filesystem Please also note that there is no concept for drive such as "A:" on any Unix system. There is one filesystem, and everything is included. This is a huge advantage compared to Windows. 1.2.1. Unix file basics Filen…

Debian Reference

を読んでいる。 Preface - 2. What is DebianのDebian Social Contract and Debian Free Software Guidelines (DFSG)を読み終えた。これで僕はDebian社会規約を読み終えたことになる。 Free Software pieces in Debian come from GNU, Linux, BSD, X, ISC, A…

これからどうするか

一度Learning to program - The Basicsが終わって一区切りとなったわけだが、これからどうするか。 A simple game such as OXO or Hangman A basic database, maybe based on our address book, for storing details of your video, DVD or CD collection. A…

IRC3:ChatZilla on XULRunner

おそらくChazillaがFirefoxをたまにフリーズさせてると思うので、Firefoxとは分離した方がいいのかもしれない。 検討しておく。タブをある程度閉じていけば安定していくので、Chatzillaのせいではなく、ただ単に色々なタブを開いていくとフリーズしやすくな…

Flaskもういちど

VirtualBoxのスナップショットでFlaskを入れる前の状態に戻した。もう一度はじめからやってみる。といってもあまり変わらないだろうが。sudo pip install virtualenvは駄目だった。pipとかいうのデフォルトのDebian Lennyには入ってないみたい。sudo apt-get…

権限周り

chmod ls -l ~/myproject$ ls -l total 12 drwxr-xr-x 5 root root 4096 2010-04-17 17:05 env rw-r--r-- 1 root root 160 2010-04-17 17:38 hello.py drwxr-xr-x 3 root root 4096 2010-04-17 17:57 myproject お、なんかnot in the sudoers fileで検索した…

Flask

とりあえずFlaskというやつが新しく出てきたみたいなんで試してみる。あ、僕は右も左もわからないさっきPythonをはじめたばかりの初心者なんでこのページを見に来た人はオフィシャルにいきましょう。Warning!僕は今自分が何をやっているのかすらわかっていま…

Learning to program - The Basics - Error Handling

A Brief History of Error HandlingVBScript周りはまぁ、わかったようなわからんようなで、VBScriptのソースの0でDevideしようとするとおそらくNullが返される?のかと思うんだけど、そうなってない感じ。その辺だけはまぁいいかなぁと。もしかしてアルファ…

今やりたいこと

WWW上にページを作って、そこにドメインでアクセスできて、24hで起動してて、それはHTML5やPythonなんかで遊べて、W3Cの最新技術やMozilla関係、Google なんたらアプスみたいなのとも遊べてて、Wikiみたいな機能も持ってて、とりあえず自由に自分のしたいこ…

Learning to program - The Basics - Handling Text

Manipulating Text There are only two elements in the list this time and the opening parenthesis has been removed from the front of 'short)'. That's an important point to note about ''.split(), that it removes the separator characters. Usua…

Learning to program - The Basics - Handling Files

However we can pass a full path name to the file() or open() functions instead of just the file name. There is a wrinkle when using Windows however, because the \ character used to separate folders in a Windows path has a special meaning i…

ブログ名変更:Debianしようぜ!→DebianとPythonしようぜ!

ブログの内容がPythonのチュートリアル関係主体に変わってきたんで、皆様への便宜向上と自己のモチベーション向上を狙いブログ名を変更しました。Learning to programを終わらせたら、Python Tutorialか日本語のPython本(最近見つけた)に移ろうかと考えてい…

From freenode Debian IRC

/msg dpkg guidelines dpkg *dpkg* 1) Read the /topic, the FAQ, and google before asking us. 2) Don't ask to ask. Just ask. 3) Don't repeat; show that you have tried to help yourself by refining the question. 4) Reading docs (man/info pages,…

From oftc Debian IRC

that's not to say testing is not stable; but not recommended for a new user; new user should start with stable!sns Shiny New Shit Syndrome is a serious disorder, which usually breaks out into an epidemic every time something new is release…

未来だけを考える

未来だけを考えて動く。 でもその基本というか基礎の部分にはおとといの”ああああ”がある。あれだけはもう繰り返したらあかん。東京事変 - スポーツ - 電波通信さえあれば時間さえ気にする必要なくプログラミングの勉強を出来る。

こなしていくのに逆算していこうか

だから、それぞれの期日を決めるために、Learning to Programをどうやってこなして行って何日に終わるかとか決めてみようか。いや、逆に何日までに終わりたいから何日に何をやって何をやってと決めていこうかなと考えていたりする。とりあえず今のところの曖…

Learning to program - The Basics - The Raw Materials - Other Collection Types~

Other Collection Typesからの続き。一応全部先に飛ばしたところを読んでみたけど難解だなぁ、こりゃあの時飛ばしておくべきだったわ。たぶんクリアできるかな。次はこれをクリアしてRaw Materialsの理解の完了、そしてModule & Functionの理解の終了、そし…

Learning to program - The Basics - Modules & Functions

how we use the many, many functions that come with any programming language (often called the library). なるほど、ライブラリと呼ぶのか。プログラミング界隈で結構頻繁に聞く単語だよね。 Note: almost everything in JavaScript is an example of a…

Learning to program - The Basics - Branching

途中で作ったプログラムifminmax.py value = int(raw_input("")) maximum = 100 minimum = 5 if value > maximum: print "Value is out of range!(over maximum)" elif value < minimum: print "Value is out of range!(under minimum)" else: print "Value …

IRC2

とりあえず見つけためぼしいServer群 freenode #debian irc://freenode/debian irc://chat.freenode.net/debian (上と同じらしい。URLの仕組みとかわかってない) Channel Logs http://purl.rikers.org/%23debian/ #python irc.debian.or.jp #debianjp irc.of…

Learning to program - The Basics - Talking to the user

# create an empty address book dictionary addressBook = {}# read entries till an empty string print name = raw_input("Type the Name - leave blank to finish") while name != "": entry = raw_input("Type the Street, Town, Phone. Leave blank to…

IRC for Programming Community World!

やっぱり続けていくためには大勢いた方がいいわけで。というより、孤独に進めるための方法が人類的にまだ未完成なわけで。 PythonのコミュニティやらDebianのコミュニティとも関わっていこうと考えていった。IRCのクライアントはいくつかあるようですが、と…

Learning to program - The Basics - Coding Style

今回は英文読む以外は労力をあまり使わなそうなところ。これはいいこと学んじゃったね。 Documentation stringsAll languages allow you to create comments to document what a function or module does, but a few, such as Python and Smalltalk, go one …

プログラミング言語の分類

手続き型言語 Python 非手続き型言語