Friday, September 28, 2007

Indian Food Names

Drink and Appetizer
Mango Lassi (mango-flavored milk, very good)
Aloo Tikki (Fried potato cake, good)
Sarson Ka Saag (Green mustard flavored ???)

Bread

Naan: white flour bread, garlic -flavored are even better
Makki Ki Roti: Pan Fried corn bread

Vegetarian dishes

Palak Paneer: Spinach Cheese
Biryani: rice with all ingredients, could be vegetarian or non-vegetarian
Malai Kofta: vegetarian balls

Non-Vegetarian dishes
Jallander Lamb (Lamb stew, spicy)
Chicken Masala (Chicken with tomato sauce? good)

Desert

Ras Malai (Cheese cake in milk sauce)
Kheer (Rice pudding)
Culfi with Falooda, Rabri (thin noodle with ice cream sauce? never tasted, but looks good)

Other
PAAN (Spice wrapped in grape leaf. Too strong for me)

Sunday, August 26, 2007

Web access authentication setup

  1. Create user passwd file: "htpasswd -c /etc/httpd/userfile username"; if "-c" flag is included, existing file will be overwritten, so no need for it when adding extra users.
  2. Insert directive in httpd.conf file:

    • AuthName "Restricted Area"
    • AuthType Basic
    • AuthUserFile /etc/httpd/users
    • require valid-user

Monday, August 20, 2007

Setting up Gallery on Home Linux

  • Apache server: already installed on my server, but not automatically started.
  • PHP:
    • in order to compile PHP, we need "apxs", use "yum install httpd-devel" to get it installed.
    • It turns out that I don't need to compile PHP anyway, since it is already available. The only thing is that php.ini is located under /etc instead of /user/local/lib.
    • I checked all the settings suggested on gallery website. All seems fine except that "gettext" option is not available. Leave it open for now since I may not need the functionality provided by gettext.
  • Mysql: (use "yum search mysql" to find all packages related to mysql)
    • "yum install mysql mysql-server php-mysql mysql-devel", Mysql 5 is installed.
  • Image Libraries
    • yum install netpbm ImageMagick gd GraphicsMagick
  • Gallery
    • yum install gallery2
    • The gallery package is installed under /usr/share, I have to create a symbolic link in the web server directory:
      • ln -s /usr/share/gallery2 /var/www/html/gallery
  • Optional packages
    • yum install gallery2-ffmpeg jhead
    • dcraw already installed
  • Load up the gallery web page and follow the steps to finish install
    • If need to check PHP setting, then a simple php file containing "" can be used to show all the info on a web page.
    • Step 4, can not set my own directory (even if I chmod 777 on whatever directories created, the installation complains about not being able to access it); so have to use the default
    • Step 5, database setup
      • mysql_install_db: run this to initialize database
      • myql tables are located under /var/lib/mysql. "cd /var/lib/mysql; chown -R mysql:mysql mysql test"; otherwise, mysqld cannot be started because the owner of those directories is root.
      • "mysqld_safe --user=mysql &": start mysql server
      • "mysqladmin version": check mysql is running
      • "mysqladmin -u root create gallery2": create db for gallery
      • "GRANT ALL PRIVILEGES ON gallery2.* TO 'user'@'domain' IDENTIFIED BY 'pass'" after login in to mysql as root "mysql -u root"
      • Installer complains about not able to access database
      • Login in as root to mysql and use the following command to check user info:
        • connect mysql;
        • select * from user;
      • try "FLUSH PRIVILEGES" or restart mysql server "mysqladmin shutdown", but neither works.
      • try to recompile PHP "configure --with-apxs2 --with-mysql --with-gd --with-bz2 --with-curl --with-pic --with-png"; does not work either
      • It turns out that context for SELinux is not set up properly to allow httpd to write to the socket, error message can be found in /var/log/message. I disabled SELinux for now (change /etc/sysconfig/selinux).
    • Everything else works fine just following the steps.

Tuesday, January 30, 2007

French Study Resources

The following information are quoted from one post on mitbbs.com:

--------------------- Start of quote ----------------------------------------------

先給个介绍法语读音的网站,语音总是最基本,最重要的。愿意学的朋友可以多读读。

http://www.fayu.net/30000/mots_media/Francais.php
(Does not work with Firefox, Need IE)

如果下标出现乱码,大家可以把网页code改成欧洲的。虽然可能中文的要看不清了。这个网站速度有点慢,需要耐心。


我爱法语 电子词典by:luc
http://spaces.msn.com/lucHan

一个法英,法中语言翻译的字典,不大,绿色免费的。

枫丹的luc斑竹制作的。可惜枫丹已经关闭了。

BBC的French Steps链接,对旅游日常用的法语有些用

http://www.bbc.co.uk/languages/french/lj/menu.shtml

一个学习多国语言的网
http://www.languageguide.org/francais/

里面有简单的日常法语,还发现了英语对应的语法和课程。很好的渐进部分。


学语言的好站:http://languages.4status.net/english/home.htm
包括多国语言在线字典。http://www.sprachprofi.de.vu/english/f.htm
该网站学法语课程。有的链接失效,不过问题不大,其他网站有补充

法语网上工具大集合,还有分类和简介,不过是全法语的:http://www.richmond.edu/%7Ejpaulsen/ecolelfr.html

法语游戏网站:http://www.polarfle.com/indexbis.htm

一些Verne的书,包括《环游地球八十天》:
http://www.fourmilab.ch/

法国黄页: http://www.pagesjaunes.fr/pj.cgi?
法国的《世界报》:http://www.pagesjaunes.fr/pj.cgi?


法语在线radio http://www.baroque.idv.tw/radiolist.asp

法国百科全书在线字典 http://www.universalis-edu.com/
code:eu (不知道这个密码还有没有效,自己某天破解的)

----------------- End of Quote -----------------------------
Original author info:
----------------------------------------
作者:jocelinezhou
发表时间:2007-
01-26
更新时间:2007-01-26
-----------------------------------------