Author: Gideon

解决WP表前缀更换后出现的You do not have sufficient permission

将安装的wordpress表前缀由默认的 wp_修改为其它了,再次登陆后台后出现 You do not have sufficient permissions to access this page. 网上搜索了一下,说是修改检查 wp_usermeta 表中的 wp_capabilities, wp_user_level 数值,但是无效,再搜索发现如下方法解决问题 步骤1. 将wp_usermeta 表中对应wp_前缀设置的 wp_capabilities, wp_user_level,wp_autosave_draft_ids 的前缀 wp_ 修改为新的前缀 步骤2. 将wp_options 中wp_user_roles 前缀 wp_ 修改为新的前缀… Read More

Magento: Service Temporarily Unavailable 解决

My Application was working fine yesterday. I started my Pc today when I tried to start magento I Got This Error message.     Service Temporarily Unavailable     The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. I am not able to Open even admin page and I

Ubuntu 15 安装Chromium浏览器并添加Flash插件Pepper Flash Player

Chromium谷歌的开源浏览器将不再支持Netscape浏览器插件API,Adobe公司的Flash将无法正常工作了。然而用户可以使用Pepper Flash Player,这是谷歌浏览器上一款替代Adobe Flash的插件。 安装方法 Ubuntu 14.04及衍生版本用户命令: 因为默认库里面有Chromium和Pepper Flash Player,安装非常容易,打开终端,输入以下命令: sudo apt-get update sudo apt-get install chromium-browser sudo apt-get install pepperflashplugin-nonfree sudo update-pepp… Read More

Magento: 设置产品列表默认排序方式 How to sort Magento products by date added as default

方法一: 安装插件 Sort By Date(https://www.magentocommerce.com/magento-connect/sort-by-date.html) 方法二: 非插件 Today I had to change Magento default products list sorting to sort by product’s date. In fact we don’t need to sort by date, just by entity_id which is product ID in Magento world. To accomplish this, we need to edit /app/code/core/Mage/Catalog/Blo… Read More

Magento: 添加first name 和 last name到newsletter Add additional fields to your newsletter form and show a popup for subscription.

1. 首先,自定义添加区域,安装插件 Extended Newsletter Subscription (https://www.magentocommerce.com/magento-connect/extended-newsletter-subscription.html)   下载包:Mediarocks_NewsletterExtended-0.3.5 2. 添加到footer your theme is located at /app/design/frontend/default/mytemplate/layout/local.xml <?xml version="1.0"?> <layo… Read More

Ubuntu全盘备份与恢复

备份: 下面是我用来备份系统的完整命令: tar -jpcvf Ubuntu-12.04-20131018.tar.bz2 --exclude=/proc --exclude=/lost+found --exclude=/Ubuntu-15.10-20160211.tar.bz2 --exclude=/mnt --exclude=/sys --exclude=/home / 让我们来简单看一下这个命令: “tar”当然就是我们备份系统所使用的程序了。 “jpcvf”是tar的选项,意思是“创建档案文件”、“保持权限”(保留所有东西原来的权限)、bzip2 格式打包,这是一种压缩耗时但是压缩比很高的格式,经常用于压缩大数据。… Read More

CSS:absolute居中 How to center absolute div horizontally using CSS

You need to set left:0; right:0;. This specifies how far to offset the margin edges from the sides of the window. http://www.w3.org/TR/CSS2/visuren.html#position-props http://jsfiddle.net/SS6DK/ CSS .container { position: absolute; top: 15px; z-index: 2; width:40%; max-width: 960px; min-width: 600px; height: 60px; overflow: hidden; backgro… Read More

Ubuntu: 正确安装wine Wine 1.7 not installing on Xubuntu 15.10

The needed packages are currently not available for Wily. Check this filtered page. Wait some days and the Wily packages are likely to be available. In the meantime, install the Vivid packages: wget http://mirrors.kernel.org/ubuntu/pool/main/libg/libgphoto2/libgphoto2-port10_2.5.4-1.1ubuntu1_i386.deb wget http://mirrors.kernel.org/ub… Read More