上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 28 下一页
摘要: As we know that, in Drupal, it does not separate the front-end and back-end. Though we can set the back-end theme, but some time, it still displays the front-end theme, for example, when deleting a node, it will display the front-end theme but not the back-end theme you wish to, here is a way to bui 阅读全文
posted @ 2011-01-18 17:34 DavidHHuan 阅读(303) 评论(0) 推荐(0) 编辑
摘要: when using Ubuntu, we can add a "Main Menu" item to the panelWhere to add / modify the menu items? Here we go!In fact that the items of Main Menu are stored under /usr/share/applications , here we will try toadd a laucher of eclipse for example.[代码]In the file, add these code:[代码]Then you will see t 阅读全文
posted @ 2011-01-17 17:23 DavidHHuan 阅读(376) 评论(0) 推荐(0) 编辑
摘要: i found a very useful article about the database sharding, here is the content.This article accompanies theslidesfrom a presentation on database sharding. Sharding is a technique used for horizontal scaling of databases we are using at Netlog. If you're interested in high performance, scalability, M 阅读全文
posted @ 2011-01-16 00:54 DavidHHuan 阅读(671) 评论(0) 推荐(0) 编辑
摘要: The reason for this error is that i am editing a html file, and it seems that gvim does not konw how to handle it.At last i found this solution. Add the code to the /etc/vim/gvimrc代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--filetypepluginindent 阅读全文
posted @ 2011-01-11 22:09 DavidHHuan 阅读(1931) 评论(0) 推荐(0) 编辑
摘要: In Yii, we can define an action class and ask the controller to instantiate it. And we always create ourselves actions class in rootPath/protected/extensions, and the view file we called in the actions class always are located in rootPath/protected/views/ControllerNAME or rootPath/themes/ThemeNAME/C 阅读全文
posted @ 2011-01-10 17:11 DavidHHuan 阅读(281) 评论(0) 推荐(0) 编辑
摘要: The order of loading preprocessorstemplate_preprocess- This is supplied by core and always added. The variables generated here are used for every templated hook.template_preprocess_hook- The module or core file that implements the theming hook supplies this. The initial generation of all the variabl 阅读全文
posted @ 2011-01-10 11:32 DavidHHuan 阅读(298) 评论(0) 推荐(0) 编辑
摘要: What i need to download:zlib-1.2.5.tar.gzhttp://zlib.net/zlib-1.2.5.tar.gzlibxml2-2.7.2.tar.gzftp://xmlsoft.org/libxml2/libxml2-2.7.2.tar.gzphp-5.3.4.tar.bz2http://ar.php.net/distributions/php-5.3.4.tar.bz2memcache-2.2.6.tgzhttp://pecl.php.net/get/memcache-2.2.6.tgzlibevent-2.0.10-stable.tar.gzhttp: 阅读全文
posted @ 2011-01-07 01:00 DavidHHuan 阅读(2598) 评论(1) 推荐(0) 编辑
摘要: 1. Install the devel module and enable it.2. Make sure that in your themes, page.tpl.php for example, you have the code as below:[代码]3. Where you want to see the sub-variables of a variable ($vars here is an example), just use the code:[代码]Note: When in Drupal 6, just remember if you put it in phpte 阅读全文
posted @ 2011-01-06 17:44 DavidHHuan 阅读(489) 评论(0) 推荐(0) 编辑
摘要: tar -- 压缩/解压代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--tar-tvfarchive.tar#冗余的显示archive.tar里面的文件tar-cfarchive.tarfoobar#将foo和bar打包成archive.tartar-xfarchive.tar#从archive.tar解压文件tar-zxvfarchive.tar.gz#在解压archive.tar.gz过程中冗余的显示所包含的文件tar-zxvfCarchi 阅读全文
posted @ 2011-01-06 15:16 DavidHHuan 阅读(413) 评论(0) 推荐(0) 编辑
摘要: cck (embed in the kernal in drupal 7)The Content Construction Kit allows you to add custom fields to nodes using a web browser.viewsThe Views module provides a flexible method for Drupal site designers to control how lists and tables of content (nodes in Views 1, almost anything in Views 2) are pres 阅读全文
posted @ 2011-01-04 18:46 DavidHHuan 阅读(379) 评论(0) 推荐(0) 编辑
摘要: When working on a project by yourself in localhost, maybe sometime you changed something, and after that, you want to revert it, then you need the version control system (VCS) to help you. It allows you to revert to a previous version if a change breaks something, work with several people and give a 阅读全文
posted @ 2011-01-01 17:21 DavidHHuan 阅读(270) 评论(0) 推荐(0) 编辑
摘要: the correct codes of embed flash in html is as below:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--objectclassid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7, 阅读全文
posted @ 2010-12-14 16:04 DavidHHuan 阅读(403) 评论(0) 推荐(0) 编辑
摘要: Drupal 6:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//ThiswilladdaJSfiletoyourhead(specificallythe$scriptsvariableinpage.tpl.php)drupal_add_js(drupal_get_path('module','my_module').'/my_module.js');//ThisaddinlineJStotheheadofthedocumentdrupal 阅读全文
posted @ 2010-12-14 15:48 DavidHHuan 阅读(541) 评论(0) 推荐(0) 编辑
摘要: Let say we have three table as:[代码]From their structure we can know that product table and category table are MANY_MANY relation, category_product is the middle table, then how can we get the product records when we have a category.id?Set the modelsProduct:代码Code highlighting produced by Actipro Cod 阅读全文
posted @ 2010-12-11 19:22 DavidHHuan 阅读(782) 评论(0) 推荐(0) 编辑
摘要: After i downloaded the lampp and unpacked it in /opt/lampp, then i try to run it,Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->sudo /opt/lampp/lampp startI got these message:Code highlighting produced by Actipro CodeHighlighter (freeware)http:// 阅读全文
posted @ 2010-11-18 00:17 DavidHHuan 阅读(1697) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 28 下一页