Install Ode with lighttpd in Squeeze

Both Lighttpd and Ode are quite light weight. Lighttpd is a www server like Apache while Ode is a blog software like WordPress. They’re the best couple for simple personal blog especially installed on your laptop. In Debian Squeeze, you’ll need to tweak something to get it work.

1, Install lighttpd and change the default cgi-bin location

$ apt-get install lighttpd    # install lighttpd, it will run default when boot

The default cgi-bin scripts is in /usr/share/cgi-bin within Debian, but I wanna change it to /var/www, so create a directory and tweak the lighttpd configuration later.

$ mkdir -p /var/www/cgi-bin     # create directory

$ lighty-enable-mode cgi      # enable CGI module of lighttpd

$ vim /etc/lighttpd/conf-enable/10-cgi.conf  #relocate the cgi directory

$HTTP["url"] =~ “^/cgi-bin/” {
cgi.assign = ( “.cgi” => “/usr/bin/perl” )
}

Make sure the configuration have above such section.

2, Install Ode

$ wget http://ode-is-simple.com/downloads/ode_releases/ode_current.zip     # download ode

Unpress it and read the install manual carefully, after that move ode files to propriate location:

$ mv Part1/ode.cgi /var/www/cgi-bin/
$ mv -r Part3/ode_site /var/www/ode
$ mv -r Part2/data /var/www/ode/

Set the cofiguration:

$ vim /var/www/cgi-bin/ode.cgi          #set the location of ode configuration file
$config_dir_f = ‘/var/www/ode/data/’;
$config_filename_f = ‘ode_config’;

$ vim /var/www/ode/data/ode_config
$document_root = ‘/var/www/ode’;
  $document_root = ‘/var/www/ode’;

Set the right file permission:

$ ls -l /var/www/
drwxr-xr-x 2 root root 4096 Feb 12 13:12 cgi-bin
drwxr-xr-x 4 root root 4096 Feb 11 18:18 ode

 

 

 

 

Compile Mplayer in Debian

How to: Recompiling / Rebuild Debian / Ubuntu Linux Binary Source File Packages

by Vivek Gite on January 15, 2008 ·

Q. I’d like to rebuild a Debian / Ubuntu package called foo with additional option. How do I recompile .deb packages?

A. To build a Debian package, you need the following packages / software installed on system
[a] fakeroot : fakeroot package – runs a command in an environment wherein it appears to have root privileges for file manipulation. This is useful for allowing users to create archives (tar, ar, .deb etc.) with files in them with root permissions/ownership.

[b] dpkg-dev : package building tools for Debian

[c] Development environment – You need gcc, make and all other compiler collection installed on system. Under Debian / Ubuntu package build-essential takes care of everything.

Step #1: Install required packages

Type the following command
$ sudo apt-get install build-essential fakeroot dpkg-dev

Step #2: Install source code package

First, create a directory to store source package, enter:
$ mkdir build
$ cd build

Use apt-get command to install source code for a package called foo
$ sudo apt-get source foo
Install all build-dependencies, enter:
$ sudo apt-get build-dep foo
Unpacks Debian / Ubuntu source archives with Debian source package (.dsc) manipulation tool, enter:
$ dpkg-source -x foo_version-revision.dsc
To just compile the package, you need cd into foo-version directory and issue the command
$ dpkg-buildpackage -rfakeroot -b
If you want to pass custom additonal options to configure, you can set up the DEB_BUILD_OPTIONS environment variable. For instance, if you want pass option called –enable-radio –enable-gui, enter:
$ DEB_BUILD_OPTIONS="--enable-gui --enable-radio" fakeroot debian/rules binary
You can also pass some variables to the Makefile. For example, if you want to compile with gcc v3.4, enter:
$ CC=gcc-3.4 DEB_BUILD_OPTIONS="--enable-gui --enable-radio" fakeroot debian/rules binary

A complete example – mplayer

Let us see how to rebuild mplayer media player package with –enable-radio –disable-ivt options:
# sudo apt-get source mplayer
# sudo apt-get build-dep mplayer
# dpkg-source -x mplayer_version-revision.dsc
# DEB_BUILD_OPTIONS="--enable-gui --enable-radio --disable-ivt" fakeroot debian/rules binary

Now wait for some time as compile procedure going to take its own time. To install the newly-built package, enter:
# dpkg -i ../mplayer_version-revision_arch.deb

Compiling wireless driver for rtl8191SEvB on Squeeze

Background:
1, OS: Debian Squeeze, kernel-2.6.32
2, Host: Thinkpad SL510, Realtek Semiconductor Co., Ltd. RTL8191SEvB Wireless LAN Controller

Program:

  • 1, install linux-headers-`uname -r`;
  • 2, download realtek driver package and compile it;
  • 3, finally reboot

Details:
1, install linux-headers-`uname -r`

apt-get install linux-headers-`uname -r`

After that see if there is a file named ‘build’ in /lib/modules/`uname -r`/, if not,then

cd /lib/modules/`uname -r`

ln -s /usr/src/linux-headers-2.6.32-5-686 build

 

2, compile the realtek driver
download driver package from here: http://drivers.mydrivers.com/download/420-168232-Realtek-RTL8191SE-VA2-RTL8192SE-0019.120/
install required tools for compiling, then just go to compile it.

3, reboot and WOW Cheers!!

P.S: Maybe there will need to install firmware-realtek

如何了解市场?

怎么了解?很简单啊,如果你在他的国家有老客人,你可以根据老客人的采购习惯,价 格,运费,颜色,包装等等来对这个市场有个初步的判断,然后就是需要自己的研究和分析了。唉,我发现朋友们真的太懒了,或者说太安逸了,总是喜欢问我,为 什么我报过去就没消息?为什么我开发信没有消息?为什么客人询价后,我回复过去就没声音?为什么广交会拿到的名片,我报价过去也是没有回音?等等,诸如此 类问题,我可以用一句话回答,你还不能进入客人的视线!!!


我说说我当年是怎么做的吧。我记得是2007年初,当时公司的美国老客人采购了一款工作灯,价格是USD19.15/pc,那个时候我工作的公司很小很 小,好不容易老板的老客人下了个新产品,那对我们业务员来说就是个很好的机会啊,有个新产品可以去推新的客人。所以我就开始做工作了。


首先就是对目标市场做价格分析。
老客人的采购价是USD19.15/pc,也就意味着她在美国当地的销售价是USD60/pc左右,根据美国人的定价习 惯,在超市里肯定就是USD59.99/pc。如果这个比例是正确的,那这个价格报其他的美国中小客人应该问题不大,但是对于中等客人和中大客人就不一定 适合,而且包装和电池配置也是一个问题。所以这个时候,就需要对其他客人做全面的了解。


很多人不知道怎么了解,那我告诉你,这个世界上还有一个很好很好了解对方的工具,那就是“搜索引擎”!我从google上随便找了美国的5家大超市,5个 中等超市,5个小超市,覆盖美东、美中和美西,这样有利于分析美国区域市场的价格不同。虽然很多超市没法在网上找到价格,但还是有很多超市有价格放在网上 的!大家一定要耐心,多找多研究!因为这个老客人在内华达州,所以这个州的超市是我重点关注的对象。通过google发现,这款产品在内华达的中型超市和 小超市都有,但是很奇怪,价格并不一样,中型超市卖USD59.99/pc,但小超市卖USD54.99/pc,差了整整5个美金,后来我仔细研究他们的 网站,看了大堆的英文描述,才发现这个区别在哪里,就是中型超市多了个hotline service,也就是热线电话,提供电话售后服务的那种,所以价格就高了。至于其他美东和美西的那些大、中、小的超市网站上,并没有看到这款产品,只有 一些类似的款式,但是价格差别很大,从25美元到90美元都有。


这个时候我就需要列一个表格,记录每个超市类似产品的销售价和相关描述,其中电池配置和包装就很重要,对产品的关系很大很大。后来花了一个多礼拜时间把这 些工作做完后,就得出了几个结论,大型超市在包装上比较注重,喜欢选择彩盒,但是却是开窗式彩盒,比较直观,但是成本相对较高,中型超市喜欢用双泡壳,成 本差不多,但略低一点点,但是小型超市就喜欢普通的彩盒、甚至白盒加彩贴的方式,以求达到价格的最低。
还有就是,东部最发达地区,客人喜欢用锂电池,1000MAH的18650或17500锂电池比较多;然后美中和美东,工作灯的配置一般是 1000-1500MAH的镍镉电池,价格上优势很大。至于镍氢电池,价格低于锂电池又高于镍镉电池,在强制性要求比较多的欧洲适用,但不适合美国市场。


那接下来我要做的,就是通过表格来比较各种价格差,然后根据国内的工厂采购价来推算客人的利润。
当然,我掌握的FOB价是不足以估算美国终端客人的利润 的。所以我还需要了解这个产品的出口HS编码,然后通过美国的海关网站,输入前3-4位,找到对应这个产品的美国当地进口的HS编码。这一点一定要注意, 我们出口报关的HS编码和美国当地进口的HS编码很多情况下是不一样的!!!然后找到进口HS编码后,就可以查到美国的进口关税,甚至有没有对中国出口的 这款产品征收其他额外的税率,甚至是反倾销税。这个一旦查到后,然后问货代查询到美国主要港口的海运费,散货和整柜价格都要。另外还要通过货代的美国代 理,查询美国当地内陆运费,然后根据重量和体积,分摊到每个产品上。这样一来,FOB价格+海运费+美国的进口关税+内陆运费+2%左右的额外杂费+美国 当地的货代费用等,大致可以算出每一个产品到美国的ELC价格,也就是推算到岸价!一旦到岸价出来后,我就在excel里面设一下公式,根据他们的销售价 和到岸价,那中间的大致利润率就出来了。


这样很容易就看出来,哪些客人是直接在采购,哪些客人是通过美国的中间商在做,还有些客人暂时还无法判断。


一旦这些详细的资料一汇总,嘿嘿,等于这个产品在美国市场的大致情况摸底就完成了。如果觉得15-25个美国潜在客人的代表性还不强,那就多找几个,根据统计学原理,样本参数越多,那计算结果就越精确。


这些东西都掌握了以后,我就开始做方案了,针对美国人的口味、喜好、颜色、配置、包装,根据不同的美国客人和区域市场,研究几套方案。然后就可以准备开发信了,或者等客人B2B的询盘也可以,发过去的收获率就很高了。我统计过,回复率会接近80%!
然后欧洲市场,也可以针对不同国家,重复我前面的工作,这样我会对价格心里有底,知道哪个价格范围内是客人可以接受,哪个价格会让他很心动,就可以不顾客人乱砍价了。你知道产品,了解市场,你还会怕报价么?我告诉你,根本不会,因为大部分信息都在你掌握中。


这就是我为什么老是强调前期工作的重要性,强调方案的重要性。

原文链接:http://bbs.fobshanghai.com/viewthread.php?tid=2698258&page=1&authorid=296003

Groupon+Meetup的结合体=社交晚餐

Grubwithus背后的 idea 非常简单却又非常天才,你在网站上浏览某个城市你想去吃晚餐的饭店,根据网站上设定的价格购买餐卷。但是关键的部分是,其他人和你做的一模一样,所有人都是为了在晚上上认识新朋友。当你买了餐卷,你就可以看到你的晚餐将和谁共进,是不是有点像Groupon + Meetup?实际上就是的。

@@问题是-来这的人真的只是喜欢同样的食物吗?见面后能找到他们所需要的东西吗?比如共同的兴趣、话题等,不能只是简单的吃吧?

这么天才的idea有很多大牌儿要投资就一点也不会觉得稀奇了,Grubwithus 是一家 Y Combinator 出品的创业公司,首轮投资者包括:Andreessen Horowitz, First Round Capital, NEA, SV Angel, Ashton Kutcher, Guy Oseary, Vivi Nevo, Yuri Milner, Maynard Webb, Matt Cutts, Elad Gil, Paul Buchheit, Alexis Ohanian, Start Fund, 和 Y Combinator。

目前,Grubwithus 已经开设到芝加哥,旧金山,纽约,华盛顿和洛杉矶。波士顿和西雅图也即将开始,联合创始人Eddy Lu告诉我们。

从第一天上线,Grubwithus 已经开始赢利,Lu说,他们从饭店那里拿抽成。

饭店喜欢我们,因为我们想和他们建立长久的合作关系,并且能够让他们通过我们赢利,用户通过我们来社交,而不是为了寻找打折,所以用户的质量都很高,他们会持久的使用我们的服务。Lu继续说。

Grubwithus 是去年开始的,我知道的目前已经有了一家山寨它的网站 LetsLunch

信息来源:http://www.36kr.com/p/23276.html