Responsive Development – Less Framework 4

Posted by on Oct 21, 2011 in Snippet Friday

Today’s code snippet is a vital piece of rapid development. We all know that if we want to work quickly, we need to have a toolbox with our default start code. The files we start out with are very important if your trying to work efficiently. I wanted to take the time today to gather your attention on Less Framework 4. Less Framework is a grid system for designing adaptive layouts and includes a css reset. I have started using this as my default go to start for any new primary css files.

Obfuscate email addresses

Posted by on Oct 14, 2011 in Snippet Friday

Spam is a problem and we know putting email addresses on websites are not the best way to prevent it. This snippet will help keep those spam bots from violating your bubbles. First lets write out the short code in our themes function.php:

CSS Multi-Browser Support

Posted by on Oct 7, 2011 in Snippet Friday
CSS Multi-Browser Support

We can all complain and yell about IE or the lack of cross browser support. The fact remains that we all have one thing in common, we still conform to the rules. The rules are to make your work look as good as possible in all browsers. Most of us just check whatever versions of Chrome, FireFox, and IE we have available to us. Versions are very commonly overlooked. As you can see by the screen shot I used as the featured image, you can see that version numbers are VERY important.

Use CSS To Control The Way A Link Is Displayed Based On The Type Of Link

Posted by on Sep 30, 2011 in Snippet Friday

I never thought I would see the day. The logic built into CSS is freaking amazing. Here we are using CSS to control links based on what the links are. For example, if you want all links going to anything that starts with http:// to be blink and blink, but links going to an internal .pdf file to be pink and fluffy, you can. Automatically. Here is the sample of all that is great about CSS slapping you right in the face!!! Do something!

Add a tripple click event in JQuery

Posted by on Sep 23, 2011 in Snippet Friday

Hey guys, I found this gem sitting at css-tricks.com. I thought it would be an especially great time to let this one out of the bag. As a developer, I like to leave little things behind. Things that I do not wish to show everyone, but maybe a secret page or something like that. The tripple click event is perfect for that.

Automatic Copyright Text

Posted by on Sep 16, 2011 in Snippet Friday

Ok, so this one is pretty easy, but it is something that is overlooked by a LOT of folks. If you don’t want to think about updating the one thing that doesn’t need to be edited on your site, like ever. Then make use of this snippet.

Android Layout With Vertically Aligned Widget

Posted by on Sep 9, 2011 in Snippet Friday

It is Friday again, we have yet another Android snippet today. This one is one of those that will help people out in many ways. This one will vertically align a widget for like a progress bar, button, image, etc. Comes in handy when you least expect it.

Sending an email from an Android App

Posted by on Sep 2, 2011 in Snippet Friday

Welcome to code snippet fridays at AlienDev.com. This week I am giving you a code snippet that can be utilized in a few ways. Sending an email from a program is sometimes very important. Especially if your app has data displayed.

Create Thumbnail of an image in Java

Posted by on Aug 26, 2011 in Snippet Friday

For those of you that are playing with Java lately. I know I have been. This is a great little snippet to keep around. This will take a image, and create a thumbnail from it. How cool is that?

Using JS and CSS to style different parts of a string automatically

Posted by on Aug 19, 2011 in Snippet Friday

Have you ever built a template, and wanted to style different parts of an expected string? A very real world example of this question would be in an ecommerce situation, having the price auto generated by the template system. Lets say your templates expect [PRICE] and replaces that with 99.99. As we roll into the future, more and more people are trying to use text instead of images for page speed and better SEO. One very easy thing to do is just use the <sub> and <sup> tags, but changing the way the price comes out of the template system isn’t a real solution.