分类目录归档:Notes

exim4设置 (备忘)

from http://dimmeria.com/node/1

Step 6a exim4 – outgoing mail

So I thought drupal was set up right. Wrong. My friend tried to create an account, and he never got emailed his password. wtf, mate? Debian installed exim4 for me automatically when I installed – but it was not configured properly. Here is how you configure exim4 on debian so that it will work with drupal (and should work with everything else too). At the command line, run: dpkg-reconfigure exim4-config Go through the configuration script. Your setup may vary from mine. Here are the steps I took:

  1. Do not break up the configuration file into smaller files – why make things more complicated for myself?
  2. “internet site; mail is sent and received directly using SMTP”
  3. mailname=”dimmeria.com”
  4. IPs to listen on =”127.0.0.1:192.168.0.x” where x is the last digit of my LAN ip. eg 192.168.0.5
  5. other final destinations = blank
  6. relay mail for domains – blank
  7. Relay mail for local machines – 192.168.0.0/24 (meaning 192.168.0.[1-255])
  8. Dial-on-demand: this is only necessary if you don’t have a constant internet connection – you’ll probably want to select no

Finally, do a
update-exim4.conf
/etc/init.d/exim4 restart

基于DSP的视频算法系统优化若干策略

全文请访问:http://focus.ti.com.cn/cn/general/docs/gencontent.tsp?contentId=34910

关键算法模块的优化可以按照如下几步进行 :

  1. 调整代码,如尽量减少有判断跳转的代码,特别是for循环 ;
  2. 使用TI的CCS中所提供的#pragma提供编译器尽量多的信息,这些信息包括for循环的次数信息、数据对齐信息等;
  3. 使用线性汇编编写关键代码;
  4. 使用汇编编写关键代码。

内存管理非常关键。

“实际的基于TI DSP视频算法优化集成过程,会是基于图1所示的步骤,先初步配置Memory,并选择相应编译优化选项,如果编译的结果已经可以达到实时性要求之后就结 束后面的优化;否则开始优化Memory和EDMA的配置,从而提高对Cache和内部总线的利用率;如果还无法达到要求则通过剖析整个工程确定消耗 CPU资源最高的代码段或者函数,对这些关键模块进行优化,采用线性汇编、甚至汇编直到整个系统可以满足要求为止。”

图1