Not sure what I did, but nothing I typed was visible on the command line. $ stty echo
Development
Ignore Files/Directories – SVN
# ———————————————————— # Ignoring files/directories happens in the same fashion # Ignore all the .jpg files in the /trunk/images/ directory # ————————————————————– # switch to trunk/images cd trunk/images/ # Edit the properties for the current directory svn propedit svn:ignore . # Opens an editor (SVN_EDITOR, EDITOR) # if no editor is set, run the following […]
Show hidden files/directories – Snow Leopard
After deciding my old MacBook had become overburdened, I chose not to reinstall Mountain Lion and give Snow Leopard another shot. Nice not to have to deal with all the overheating and fan noises now. While setting up Transmit to work with public key authentication I needed access to ~/.ssh. I’m still a bit new […]
Fixing/Enabling WordPress Permalinks on Ubuntu/Apache
Apache Settings Enable rewrite module: ~$ sudo a2enmod rewrite Edit Apache configuration file: (I only have one site enabled) ~$ vim /etc/apache2/sites-enabled/000-default Change AllowOverride None to AllowOverride All Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all Restart Apache: ~$ sudo service apache2 restart WordPress Settings Settings -> Permalinks Enable your desired permalinks […]
Create New MySQL User & Grant Priveleges
CREATE USER ‘newuser’@’localhost’ IDENTIFIED BY ‘password’; GRANT ALL PRIVILEGES ON *.* TO ‘newuser’@’localhost’; The *.* refers to Database_Name.Table_Name Reload Privileges FLUSH PRIVILEGES: How To Grant Different User Permissions Here is a short list of other common possible permissions to give users: ALL PRIVILEGES- as we saw previously, this would allow a MySQL user all access […]
$wpdb::prepare()
I thought $wpdb->prepare() had been working for me. I really did. What I hadn’t realized, or taken the time to learn, was that prepare() functions similarly to printf(), taking placeholders for arguments provided after the query that is being prepared, i.e. $wpdb->prepare(“SELECT * FROM table_name WHERE id = %d AND title = %s SORT BY […]