Blog

Best Survival Video Games of All Time

Survival Games are becoming more and more popular.  However, they have been around for quite a while. Here’s some our all time favorites. We tried to post multiple reviews of each so everyone can get more than one opinion. If you have another game in mind, feel free to leave it in the comments. Minecraft […]

Read more

Cron Job to remove all Files older than a Specific Amount of days

In this example I’m using 90 days. But you can use whatever you would like in the place of it. It’s also set to run at the first of every month. 0 0 1 * * find /home/somehomedir/thatfolderyouwanttouse/ -type f -mtime +90 -exec rm {} +  

Read more

Use WordPress Media Uploader in your Custom Plugin

This will make is Basicly what I did was adding this to my plugin: function test_admin_scripts() { wp_enqueue_script(‘media-upload’); wp_enqueue_script(‘thickbox’); wp_enqueue_script(‘jquery’); } function test_admin_styles() { wp_enqueue_style(‘thickbox’); } add_action(‘admin_print_scripts’, ‘test_admin_scripts’); add_action(‘admin_print_styles’, ‘test_admin_styles’); And later this part: <script language=”JavaScript”> jQuery(document).ready(function() { jQuery(‘#upload_image_button’).click(function() { formfield = jQuery(‘#upload_image’).attr(‘name’); tb_show(”, ‘media-upload.php?type=image&TB_iframe=true’); return false; }); window.send_to_editor = function(html) { imgurl = jQuery(‘img’,html).attr(‘src’); […]

Read more

Make Div Appear and Reappear with javascript

Make a div with the same id as the select input and you should be good to go. $(window).load(function() { $(document).ready(function() { $(‘.group’).hide(); $(‘#div1’).fadeIn(‘slow’); $(‘#div1’).change(function() { $(‘.group’).hide(); $(‘#’ + $(this).val()).fadeIn(‘slow’); }) }); });

Read more

Get Youtube Thumbnails with PHP or Html

Each YouTube video has 4 generated images. They are predictably formatted as follows: http://img.youtube.com/vi/<insert-youtube-video-id-here>/0.jpg http://img.youtube.com/vi/<insert-youtube-video-id-here>/1.jpg http://img.youtube.com/vi/<insert-youtube-video-id-here>/2.jpg http://img.youtube.com/vi/<insert-youtube-video-id-here>/3.jpg The first one in the list is a full size image and others are thumbnail images. The default thumbnail image (ie. one of 1.jpg, 2.jpg, 3.jpg) is: http://img.youtube.com/vi/<insert-youtube-video-id-here>/default.jpg For the high quality version of the thumbnail use a url similar […]

Read more

SSH into your Amazon instance without a KeyPair

1.  SSH into your instance. 2.  Edit /etc/ssh/sshd_config and set PasswordAuthentication to yes. One way to do this is to enter the command nano /etc/ssh/sshd_config, then scroll down toPasswordAuthentication.  Change the no to yes.  Then press Ctrl+X, and press the Y key to save and quit. 3.  Enter the command /etc/init.d/sshd reload. (for Ubuntu, enter the command reload ssh) 4.  Set your password if you haven’t already, with the passwd command. […]

Read more

Error when updating plugins by FTP “Unable to locate WordPress Content directory (wp-content).” SOLVED

Error when updating plugins by FTP “Unable to locate WordPress Content directory (wp-content).” SOLVED if(is_admin()) { add_filter(‘filesystem_method’, create_function(‘$a’, ‘return “direct”;’ )); define( ‘FS_CHMOD_DIR’, 0751 ); } Hope this helps.

Read more

Fix Windows 7 Firewall error 1079 error 5 and many others

Windows 7 firewall service won’t start Posted by Kent on January 15, 2012Leave a comment (76)Go to comments Problem When you attempt to start the Windows 7 firewall service you receive the following error Windows could not start the Windows Firewall on Local Computer. For more information, review the system event log. If this is a non-Microsoft service, […]

Read more

Metal Gear Solid 5 Gameplay (E3 2013) (HD)

Metal Gear Solid goes way back for some of us. As in Peace Walker, Metal Gear Solid V will offer a base-building feature that allows player to develop weapons and items from their home base. The player is also given the ability to access their base from their real-life smartphones.[13] Series director Hideo Kojima revealed that the game has […]

Read more

Dying Light is Coming Soon – New FPS Zombie Game

From Techland, the Developers of Dead Island and Dead Island 2 comes a newer moreagile FPS Zombie Game, Dying Light. IGN has received 12 minutes of gameplay that can be viewed above.  Personally I enjoyed both Dead Islands and am looking forward to see where this one goes.  Many think it’s just another Dead Island remake. […]

Read more