I was able to successfully create an AMI (Amazon Mirror Image) of the Laravel server that I just created. I launched it and it worked perfectly. Creating an image from a running instance is quite easy. Just go the EC2 Dashboard. Select Instances and choose the Instance you want to clone. Go to Actions and select Create Image. It takes several minutes to create an image. Once the AMI is created, you can launch another instance using the AMI that you just created. It took close to 3-5 minutes before the server was able to serve Laravel page that was recently installed. In the future, if I want to launch a clean Laravel install, I can just launch an instance based on the AMI I just created.
I was searching for buttons the other day that I could use for a project. I wanted something flexible, something that could easily be customized for any project. The buttons have to be dynamic and they need to be generated fairly quickly.
This means no buttons that contain text images, no buttons that contain color images. The text needs to be supplied from the source (HTML) as well as the background color from CSS.
This dynamic button needs to be generated on fly, with the flexibility to use it multiple times within a page or the whole website. This sounds like a tall order to me.
Enter a tutorial by Soh Tanaka, a web designer from Los Angeles that I found while searching online. He wrote “Liquid & Color Adjustable CSS Buttons.” The tutorial is actually quite good. He shares how a button can be quickly generated using the supplied anchor text and as well any CSS background color.
These buttons are definitely useful tools for creating sites, but it does have its limitations. One more thing, I want to try if this works with HTML4’s button tag as opposed to just using the input tag.
WordPress 2.9 is just around the corner. It will be here before we know it. There are a number of new features in WordPress 2.9. The inclusion of “post thumbnails” is first and foremost. It allow bloggers to upload thumbnail images associated with their posts. Theme designers and users have several choices as to what thumbnail image size to display, whether the default thumbnail size, medium, large or full, the original size uploaded.
Another feature that has made it to WordPress 2.9 is the addition of the trash feature for posts, pages and comments. It’s similar to the trash can feature found in Windows and Linux operating systems. It allow bloggers to recover posts, pages and comments that were previously deleted.
Also included with WordPress 2.9 is the addition of the basic image editing features in the Media Library. Users will be able to rotate, crop, flip and scale an image. This particular post focuses on what you need to do to get your theme supported in WordPress 2.9. I will show you how to make changes in your current theme to support the thumbnail images.
To activate thumbnail support, you need to add this line of code to functions.php.
Next, you need to edit your index.php and single.php pages or any page where you want the thumbnail images to be displayed. Add this line of code.
<?php the_post_thumbnail( 'post-thumbnail' ); ?>
For medium size:
<?php the_post_thumbnail( 'medium'); ?>
For large size:
<?php the_post_thumbnail( 'large'); ?>
For full image:
<?php the_post_thumbnail( 'full'); ?>
That’s it. Get a head start. Make your theme changes now.