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 […]
Blog
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 {} +
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’); […]
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’); }) }); });
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 […]
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. […]
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.
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, […]