Articles Tagged 'Snipp'


How to select a group of tags that have no children of a certain type

jQuery is up to version 1.4! In addition to several new features and the "usual" rewrite of the code, all documentation has been revised so really more readable than before. impostato a _blank ! But we see the question of this post; problem: add, using jQuery, a class to all tags a possessing the attribute target set to _blank !

More ...

Firefox 3.5.7: how to fix the defect of the rounded edges of an image

Sometimes you just move an item, changing the point of view, to solve a problem seems insurmountable. And when one has to do with compatibility between browsers and CSS, inventing solutions "spectacular" (stunts would say) is on the agenda. , per Safari e Google Chrome. What I show you an easy way to apply rounded corners to images using -moz-border-radius , which is available for Mozilla FireFox and -webkit-border-radius , Safari and Google Chrome.

More ...

Very short snippet: Wordpress, categories list with checkboxes

A few days ago I released a new major release (2.3.0) of the WordPress plugin WP Bannerize , for last year. In addition to introducing the use of widgets (which I hope to write something soon) or "finally" allowed to filter out banner by category.

More ...

10 useful tips and snippets for Apple iPhone and Xcode

1. Strings on multiple lines

In Xcode, you can "break" a string across multiple lines by inserting at the end with a backslash "\". This feature can be useful when, for example, we want to insert the HTML text in a control UIWebView :

More ...

Very short snippet: a data format of a control UIDatePicker

The control UIDatePicker is perhaps the most beautiful graphics controller present on the Apple iPhone. Besides the beauty is also simple to use, extremely versatile and used in many situations.

More ...

Very short snippet: iPhone, random numbers

If you need to generate random numbers in an application must set aside Apple iPhone Objective-C, because it does not propose any class order. The solution is proposed that the C: rand(), srand(), random(), srandom() e arc4random() .

More ...

Very short snippet: Wordpress, improve the search field

In addition to the graphics field input the search of WordPress, you can act on it at the level of code to make it a bit interactive when you click inside it. Easy to achieve an effect lets you insert text into the search field will disappear (and reappear when you leave the field blank) when you click inside it.

More ...

WordPress: Remove duplicate posts in multiple loops

(che poi sono fondamentalmente la stessa cosa) di WordPress permette di ottenere una lista di post impostando numerosi parametri di ricerca (vedi Very short snippet: visualizzare una lista di post per categoria o tag ). The useful feature query_posts() or object WP_Query (which are basically the same thing) WordPress allows to obtain a list of post setting several search parameters (see Very short snippet: Display a list of posts by category or tags ). Precisely because of its versatility in search of post may happen that the function using two or more times in a row you get the "duplicate".

More ...

Very short snippet: Display a list of posts by category or tags

Two useful features, customizable at will, to use to display the last n posts in a category or one or more tags. Functions, as you will see, are very similar and are both based on a loop generated by query_post() . The first, show_title_cat() , shows the last post (in this version only the title) of a specific category:

More ...

Very short snippet: PHP slug

Who develops WordPress definitely knows the word slug , usually used to indicate the text strings that contain spaces or other "strange". In practice a URL string friendly, ie able to be used within a URL.

More ...



Stop SOPA