Wordpress Plugin - Custom Pages?
Okay. I’ve worked on making a Wordpress plugin once. It’s pretty easy to make a plugin which replaces a tag such as
[another-plugin-tag parameter="value"]with some sort of other HTML code. For instance it’s pretty straight forward to replace
[iframe http://www.google.com/ 800 600]with an iframe tag.
Something I’ve found difficult to find however is how you can create custom pages as soon as the plugin is activated, which are accessible using a permalink such as
http://www.wordpress-site.com/myplugin/search/which can submit a form to another URL such as
http://www.wordpress-site.com/myplugin/results/and then provide the results with a URL such as
http://www.wordpress-site.com/myplugin/results/id/3/or anything else pretty like that.
Ubuntu 9.10 Karmic Koala - VNC resolution limited without monitor
Update 04/23/2010 - I’m not finding a solution to this issue. Sorry. I’ve lost interest.
I recently setup Ubuntu 9.10 on a desktop system, so I could use it as a file server. I’m was able to enable the remote desktop feature for it, which is basically a VNC server.
The issue is that once I disconnected a monitor from the computer and set it up next to my router (plugged directly in), and restarted it, VNC would only work with a maximum resolution of 640x480.
PHP Not Parsing on Debian / Ubuntu server with Apache2
My friend Marshall was recently having issues getting PHP5 installed and working on his Ubuntu server, which is a Debian based distribution.
We updated all the packages involved…Apache2, php5, libapache2-mod-php5, made sure the module was installed, restarted Apache2, etc. Nothing worked.
It turns out that the default php5.conf configuration for Debian / Ubuntu’s packages are using an incorrect syntax. Edit /etc/apache2/mods-available/php5 conf to reflect:
Dell Dimension 3000 - Audio is Choppy
At work I have a Dell Dimension 3000 workstation, and for months I’ve put up with the computer being kind of slow. I just figured it was due to the computer being kind of old…but I brought in some headphones so I could do some serious music listening while I work and just got fed up with the way the sound was choppy. Anytime I’d do anything processor intensive the music I was listening to in Grooveshark (which I highly recommend you check out) would sound like crap.
So I installed the latest sound driver from Dell.com for the integrated sound card and still after rebooting it sucked. Also when I start the computer up in the morning, I would have to wait like 3 minutes at least for all the startup programs to load. Nothing else would open until this was done.
Un-Hide Someone in Facebook
My aunt recently asked me how to un-hide someone from the news feed for her Facebook account.
Like many other people before her, she’s pressed the ‘Hide’ button for someone, then realized it was a mistake…but couldn’t find out how to unhide them.
To add someone back to your Facebook news feed, simply scroll to the bottom of the page and click on the ‘Edit Options’ link for your news feed.
Selenium - no display specified
I’m not very experienced with X-windows on the Linux platform, so I’m not too skilled in troubleshooting issues with the display. I recently upgraded an Ubuntu system at work to use Ubuntu 9.04 (Jaunty Jackalope), which only has Firefox 3 available (no package for Firefox 2). I had a Selenium server setup running tests, but they stopped working after I upgraded to this newer version of Ubuntu.
I thought that perhaps Selenium wasn’t compatible with version 3 of Firefox, but this isn’t the case. The Selenium website says ‘Firefox 2+’ for browsers running on Linux.
Common Computer Mistakes
Whether you are an individual, or a startup business, you’ll more than likely have a website or a computer. I’ve had my fair share of experiences with personal computers (PCs and Macs), and I’ve also worked at a website hosting company, HostDime.
I’ve often cringed due to the negligence of individuals and/or companies regarding the following items. Here are some tips to save you from large losses.
One of the most popular Web 2.0 practices is rounded corners. How do you get them without uploading images, and nesting DIV’s, and worrying about other complications that can break your precious rounded corners?
Answer! jQuery Corners
jQuery Corners is compatible with Firefox, Internet Explorer 6+, Safari (including iPhone), Google Chrome, and Opera 9.0.
Database Schema Information
It can be very useful to have the database table schema information available to you when you are working on a model in a Ruby on Rails application. There is a plugin available which provides the schema information in comments at the top of each model called Annotate Models Plugin.
# == Schema Information # Schema version: 20090215021706 # # Table name: orders # # id :integer(11) not null, primary key # order_number :integer(11) default(0), not null # created_on :datetime # shipped_on :datetime # order_user_id :integer(11) # order_status_code_id :integer(11) default(1), not null # notes :text # referer :string(255) # order_shipping_type_id :integer(11) default(1), not null # product_cost :float default(0.0) # shipping_cost :float default(0.0) # tax :float default(0.0), not null # auth_transaction_id :string(255) # promotion_id :integer(11) default(0), not null # shipping_address_id :integer(11) default(0), not null # billing_address_id :integer(11) default(0), not null # order_account_id :integer(11) default(0), not null # subscription_id :integer(11)
I’m pretty proud of myself. I just configured PHP to compile without any problems…well no imap support, but that can wait.
I saw that someone asked how to resolve the problem, but had no answer, and then I realized with the help of an answer from someone else on a messageboard that you have to install the development version of the libraries to compile certain support into a program.
Here is my chance to give back to the Linux world by helping another newbie out (without acting like I was above him or anything, just a newbie helping a newbie).