- 博客(28)
- 资源 (4)
- 收藏
- 关注
原创 Mysql 常用命令
查找数据库中最大的表SELECTtable_schema AS `Database`,table_name AS `Table`,ROUND(((data_length + index_length) / 1024 / 1024), 2) `Size in MB`FROM information_schema.TABLESWHERE table_schema='表名'ORDER BY (
2017-03-28 11:27:52 231
原创 Yii2 使用基本配置
schema cache这个在生产环境中需要配置缓存 在db.php 中配置:return ['class' => 'yii\db\Connection','dsn' => 'mysql:host=127.0.0.1;dbname=jeulia_erp2','username' => 'root','password' => '','charset' => 'utf8','enableS
2016-05-16 11:53:50 878
翻译 Magento2--创建主题
创建Magento主题创建主题目录进入<your Magento install dir>/app/design/frontend>创建一个文件夹,一般为供应商的名字 /app/design/frontend/<Vendor>在第2步创建的文件夹下,创建主题目录,结构如下: app/design/frontend/ ├── <Vendor>/ │ │
2016-04-27 18:19:50 1779
原创 Yii2 Component基类分析
Yii2 Component类是整个Yii2 框架的基础,它重写了从Object类继承而来的getter和setter方法,主要添加的以下属性:1. getter不止可以获取类中的属性,同时可以获取行为中的属性。 public function __get($name) { $getter = 'get' . $name; if (method_
2015-08-27 10:35:20 950
原创 Drupal Commerce
加到购物车:functioncommerce_cart_line_item_add($product_id,$quantity,$uid) { $line_item=NULL; if ($product=commerce_product_load($product_id)) { $line_item=commerce_
2014-04-25 16:39:15 672
原创 Sendmail 问题记录
1. sendmail dead but subsys locked可能是因为postfix和sendmail冲突的了,先停掉然后在启动sendmail即可.service postfix stopservice postfix status
2013-12-13 14:04:06 509
原创 Drupal7 truncate/clear all cache
TRUNCATE CACHE;TRUNCATE cache_admin_menu;TRUNCATE cache_block;TRUNCATE cache_bootstrap;TRUNCATE cache_entity_og_membership;TRUNCATE cache_entity_og_membership_type;TRUNCATE cache_field;T
2013-10-30 18:02:28 686
原创 Drupal 定制登录注册页面
1. 去掉tab标签functioncustom_menu_alter(&$items) { // Remove tabs in default registration form $items['user']['type'] = MENU_CALLBACK; $items['user/register']['type'] = MENU_CALLBACK;
2013-09-20 13:41:24 1448
原创 Google Map 相关
拖动地图时 marker 不变 http://universimmedia.pagesperso-orange.fr/geo/loc.htm
2013-08-22 09:31:56 354
原创 Ctools add/edit/delete node
function ajax_dashboard_admin_node_add($type) { ctools_include('modal'); ctools_include('ajax'); module_load_include('inc', 'node', 'node.pages'); $form_state = array( 'title' =>
2013-08-13 18:17:19 505
原创 The user specified as a definer ('root'@'%') does not exist
mysql -u root -pPasswd mysql >grant all privileges on *.* to root@"%" identified by "Passwd" mysql >flush privileges;
2013-07-31 22:50:04 414
翻译 Mysql 计算google 地图的距离
Here's the SQL statement that will find the closest 20 locations that are within a radius of 25 miles to the 37, -122 coordinate. It calculates the distance based on the latitude/longitude of that r
2013-07-30 10:28:58 478
原创 Drupal 常用模块推荐
收藏功能:Flag 模块 https://drupal.org/project/flag评价功能:FiveStar模块 https://drupal.org/project/fivestar
2013-07-05 12:08:04 549
原创 fpdf 使用MultiCell的问题
fpdf在使用MultiCell时,输出到文件第二页时会显示混乱。是因为当前Y的位置+cell的高度超过pdf总高度时,fpdf会自动新创建一页。解决办法是手动添加新页 if($y>745){ $this->AddPage(); }
2013-06-25 14:11:21 1641
原创 在Drupal7 上配置Apache Solr
环境OS: Centos6.4Drupal: 7.x安装Drupal模块Apache Solr1.下载地址: https://drupal.org/project/ApacheSolr2. 解压到 sites/all/modules/contrib下3. 启用Apache Solr Access, Apache Solr framework, Apache So
2013-06-09 12:48:27 1255 1
原创 Drush 命令
Drush 安装Drupal在根目录下执行$ drush dl drupal --package-handler=git_drupalorg$ mv drupal-7.22 d7dev$ cd d7dev$ drush si standard --db-url=mysql://dbusername:dbpassword@localhost:port/
2013-05-28 09:36:57 944
原创 Drupal7 相关资料
Drupal7 存储过程http://public-action.org/content/stored-procedures-and-drupal-7
2013-05-28 09:18:56 483
原创 Linux 常用命令
CentOS 挂载 windows 共享目录mount -t cifs //192.168.0.109/www /mnt/www -o username=renk,file_mode=0777,dir_mode=0777
2013-05-27 14:50:53 384
原创 git 命令笔记
1. 导出所有的修改的文件git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT $start_commit_id $end_commit_id | xargs tar -rf mytarfile.tar
2013-04-30 19:12:22 515
原创 Mahout 安装配置
环境:CentOS6.4依赖: JDK1.6 or later, Maven3用户权限:root1. 安装Maven3cd /usr/local/srcsudo wget http://apache.etoak.com//maven/binaries/apache-maven-3.0.2-bin.tar.gztar vxzf apache-maven-3.0
2013-04-20 14:29:34 1283
原创 svn server You don't have permission to access /repos/ on this server.
按照http://wiki.centos.org/HowTos/Subversion配置好svn,如果出现You don't have permission to access /repos/ on this server.可能是SVN目录权限没有设置好开启selinux,设置权限即可chcon -R -h -t httpd_sys_content_t
2013-04-02 23:52:01 2157
鳥哥的Linux私房菜.chm
2010-04-29
apache 2 中文学习手册
2010-04-29
mysql 5 学习手册
2010-04-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人