Category Archives: Web Development & Administration

All categories relating to web development and the software that is used and hacked. Categories: eCommerce, FTP, MySQL, Linux, PHP, Plesk, Web Hosts / Hosting and Wordpress.

Updating timezone information on my VPS

Haha because of having a VPS I cannot set the time on it, from what I can tell.  All though I cannot change the time, i can update the timezone.  This is a very easy to do command:

export TZ=America/Chicago

BAM! After running this command I run the command:  date   to make sure it worked.

Enabling DOMDocument in php

How to enable DOMDocument in php.

Putty SSH Shell Login

Well you can take the time to recompile php, but that’s just a pain. Now if you have SSH Shell access to your linux server running php, this can be pretty easy. I’m running CentOS 5, let me know if this doesn’t work for you. Run the following command in your shell (logged in with root):

BAM! Let it find all the files needed, say YES to download, then let it install and restart your apache to reload all your php and it’s modules.

Using SSH without using or needing a password

Linux SSH keygen -t DSA command executionI’ve tried many methods now of using SSH keys to login without a password.  Needless to say, I had to mix a couple methods to make this work.  This isn’t that hard.

Step 1) You’re on a linux machine (or putty’d into a linux box) trying to SSH into a remote host without having to use a password.   In my case i need to run automated commands to upload files to a remote host.  You need to create a SSH key for both machine.  Do this by running the following command:

The default file should already be set, press enter.

The passphrase will remain empty (since you don’t want to type it every time you log in) Press Enter again.

Then press Enter for a third time to confirm the empty passphrase.

It should look something like the picture above.

Step 2) Upload the SSH Public Key to the remote server.  Use the following command:

This will upload the file to your remote and will place the pub key file in .ssh/authorized_keys.

upload ssh key to remote host

Now type “logout” to get out of your remote host’s SSH.  Then log back in via:

It shouldn’t ask for a password anymore.  If any of this information doesn’t apply to you, or you have any questions please feel free to ask.  Thanks for reading.

Thanks to the 2 sources that I used to come up with my own, thank you:
http://support.suso.com/supki/SSH_Tutorial_for_Linux
http://linuxproblem.org/art_9.html

~Steven Kohlmeyer

WordPress Starter Plugin

Everything you need to write your own plugin. This is the starter solution. It shows how to plugin with your own class to wordpress, already set up custom functions. This is version 1 of this empty plugin. The admin menu (with a submenu), a settings page, another settings page. You can do just about anything your heart desires with wordpress, and plugging into it is pretty easy. Check this out:

WordPress custom menu disappear on home page when using custom post types and/or taxonomies.

Wordpress custom menu disappears on home page.

As you’re developing a theme, you try one of WordPress’s newer options: Custom Post Types.  Searching the internet you stumble upon Justin Tadlock’s blog.  You try his way of showing custom post types on your home page of your wordpress blog.  Then boom. You’re custom menu is not showing on your homepage.  Now what do you do.

I spent about a week going back and forth with my custom taxonomies, and WordPress 3.0’s new custom menu editor trying to figure out why the hell my home page isn’t showing my custom menu.  It shows all on my other pages.

Out of all the code, from all over the internet, that I used.  I had put the following code in my functions.php hoping to show my custom post types.

This code works, unless you’re using a custom menu you’ve made in the back end of wordpress.  This will for whatever reason (to which I have not investigated) make your custom menu’s disappear from your home page faster than a rabbit can crap.  So I’ve spent a whole week investigating my custom taxonomies, and wordpress’s custom menu editor, when the only thing I messed up was using Justin Tadlock’s code.

Here is what you do instead of putting that jargon of a excuse for code into your functions.php:

Pick any of your template files that show your posts or pages: pages, loop, home, index, or whatever single-{taxonomy name}.php you want to edit and add your custom post types to and add the following code above the loop:

or whatever you needs may be:

Happy coding, and careful who’s blog you read 😉 Thanks JustinTadlock I was stuck on that crap for a week.

~Steven Kohlmeyer

Microsoft SuperFetch

Intelligent Security? Or a Demon Service? Here’s an article i strongly agree with…

http://www.pcreview.co.uk/forums/thread-3779788.php

I suggest stopping superfetch from slowing network file copies down.

Related Posts

How do I unlock my LG LW 310 Helix Phone when I never set a lock code?

A question that pondered me for about 10 minutes. I search google and all I come across is Q & A websites with this question, and NO ANSWERS. Thanks to my co-worker for his brilliance in user electronics. He suggested trying the last 4 digits of my phone #. THAT WORKED!

SOLUTION: Last 4 Digits of your Cell Phone #

Thanks Saul: Lomaximo