分享知识的快乐,尊重他人创造的知识 注册 | 登陆
浏览模式: 标准 | 列表全部文章

php

PHP Compilation ERROR “:configure: error: DBA: Could not find necessary header file(s).”
yum install gdbm-devel

libxml2-devel

configure: error: DBA: Could not find necessary header file(s).
yum install gdbm-devel

» 阅读全文

以后不借钱了,被那个叫曾月华害惨了

以后不借钱了,被那个叫曾月华害惨了

曾月华,我现在提起你的名字 就感到恶心。

2000元钱,借走,电话不接,短信不回。还失踪。。

你妈的~ 火死。

一句:借急不借穷,借亲人不借同事。

曾月华,怎么说也是2年的同事了。你妈这个贱B,有你这种为人的吗?

 

» 阅读全文

Linux命令 &与&&的作用

ls &

后台服务

ls && ll

表示前者执行成功,执行后台命令

 

» 阅读全文

缺少gcc 出现 no acceptable c compiler found

./configure it gives the error: no acceptable c compiler found in $Path

提示这个是少了gcc 编译器

» 阅读全文

Pure-FTPd with uploadscript(文件上传后执行脚本处理)

前一陣子公司有一個需求, 是希望當 User 將檔案透過 FTP 上傳到 Server 後, 希望讓 Server 自己執行某些動作.

很久之前其實在某個 Site 有做過一次, 太久沒用前一陣子又忘記. (默)

底下將說明如何在 FreeBSD 上安裝與設定, 實際如何應用就看各自當下的情況.


文章来源:http://blog.s5x.tw/log/2009/02/pure-ftpd-with-uploadscript.html 作者:s5x 

» 阅读全文

Tags: pure, uploadscript

zencart 清空网站的所有订单,顾客,和商品

XML/HTML代码
  1. # 清空商品分类、商品、属性   
  2. TRUNCATE TABLE categories;   
  3. TRUNCATE TABLE categories_description;   
  4.   
  5. # 清空商品以及属性   
  6. TRUNCATE TABLE media_clips;   
  7. TRUNCATE TABLE media_manager;   
  8. TRUNCATE TABLE media_to_products;   
  9. TRUNCATE TABLE media_types;   
  10. TRUNCATE TABLE music_genre;   
  11. TRUNCATE TABLE product_music_extra;   
  12. TRUNCATE TABLE product_types_to_category;   
  13. TRUNCATE TABLE products;   
  14. TRUNCATE TABLE products_attributes;   
  15. TRUNCATE TABLE products_attributes_download;   
  16. TRUNCATE TABLE products_description;   
  17. TRUNCATE TABLE products_discount_quantity;   
  18. TRUNCATE TABLE products_notifications;   
  19. TRUNCATE TABLE products_options;   
  20. TRUNCATE TABLE products_options_types;   
  21. TRUNCATE TABLE products_options_values;   
  22. TRUNCATE TABLE products_options_values_to_products_options;   
  23. TRUNCATE TABLE products_to_categories;   
  24. TRUNCATE TABLE record_artists;   
  25. TRUNCATE TABLE record_artists_info;   
  26. TRUNCATE TABLE record_company;   
  27. TRUNCATE TABLE record_company_info;   
  28.   
  29. # 清空推荐商品   
  30. TRUNCATE TABLE featured;   
  31.   
  32. # 清空促销商品   
  33. TRUNCATE TABLE salemaker_sales;   
  34.   
  35. # 清空特价商品   
  36. TRUNCATE TABLE specials;   
  37.   
  38. # 清空团体价格   
  39. TRUNCATE TABLE group_pricing;   
  40.   
  41. # 清空厂家及资料   
  42. TRUNCATE TABLE manufacturers;   
  43. TRUNCATE TABLE manufacturers_info;   
  44.   
  45. # 清空客户评论   
  46. TRUNCATE TABLE reviews;   
  47. TRUNCATE TABLE reviews_description;  

» 阅读全文

Tags: zencart

生成mlocate.db

当linux 服务器安装后,locate 老提示mlocate.db不存在。

如何生成呢?

执行 updatedb 命令即可

» 阅读全文

Tags: locate, mlocate.db

15年的VI和7年的VIM 使用技巧

Best of Vim Tips:
David Rayner (zzapper) 15 Years of Vi + 7 years of Vim and still learning 14Jan10 : Last Update 

__BEGIN__
" new items marked *N* , corrected items marked *C*" searching
/joe/e                      : cursor set to End of match
/joe/e+1                    : cursor set to End of match plus 1
/joe/s-2                    : cursor set to Start of match minus 2
/joe/+3                     : find joe move cursor 3 lines down
/^joe.*fred.*bill/          : find joe AND fred AND Bill (Joe at start of line)
/^[A-J]/                    : search for lines beginning with one or more A-J
/begin\_.*end               : search over possible multiple lines
/fred\_s*joe/               : any whitespace including newline *C*
fred\|joe                   : Search for FRED OR JOE
/.*fred\&.*joe              : Search for FRED AND JOE in any ORDER
/\<\d\d\d\d\>               : Search for exactly 4 digit numbers
/\D\d\d\d\d\D               : Search for exactly 4 digit numbers

» 阅读全文

Tags: vi, vim

Records:40612345678910»