custom

How do I share data between custom Ant tasks?

I wrote two different custom Ant tasks. They are trying to share data through a static member in a base class. This is not working for me. I assume I am using static members correctly within Java. I think this is a dynamic loading issue with the Java VM. However, I am a relative newbie with Java. Since Ant custom tasks are mapped a...

How to add a custom icon to Setup Project in Visual Studio?

I am trying to add a custom icon to setup project. So instead of standard installer logo I have my custom logo. To make it clear, here is the icon, which I want to change: ...

Adding functionality to a custom tinymce button

I Have created custom tinymce button using the code setup : function(ed) { ed.addButton('Tittle', { title : 'Tittle', image : './images/T.jpg', onclick : function() { ed.focus(); ed.selection.setContent('<tittle>' + ed.selection.getContent() + '</tittle>'); } }); }); When i click ...

Filter query_posts by two custom fields?

I'm trying to filter my posts to only show the ones with that have a custom value for the field "Model" while sorting the posts by another custom field called "Price." Here's the function I'm using (not working): <?php global $query_string; query_posts( $query_string . "&meta_value=Model&orderby=meta_value&meta_key=Price&order=ASC");...

C# - Attach a MouseEvent to a custom Class that represents a graphics object? (does not fire)

I've made a Figure class that paints a square or circle etc based on constructor input. Each instance of Figure paints a figure to my Panel canvas. I have a record of each instance and am painting them using the Panel's paint event. NOW, I would like to trace each of these instances by clicking on it's graphic (so I could maybe delete ...

Custom UITableViewCell and animation on setSelected:animated:

I have a UITableViewCell subclass that does its drawing in a drawRect: method. The whole rectangle is custom drawn, including the background. I was able to get very complex cells while keeping the scrolling very smooth. My problem: I call [table deselectRowAtIndexPath:path animated:YES]; whenever the view appears, in order to comply wit...

Is there a way to override CKEditor's config file for each instance of the editor?

I have a global size and height set CKEDITOR.editorConfig = function( config ) { config.height = '400px'; config.width = '600px'; ... And I would like to change this height and width for only one instance of the editor on a seperate page. Has anyone else accomplished this? ...

Drupal Image Attach only need 2 image sizes for my content type

When I use image attach it's creating too many extra images that I don't need. I created a content type called "content_area_4" with Image Attach allowed. I then created an image size called "content_area_4_thumbnail" with a Scale & Crop of 160 x 130. When I go to create a node type of content_area_4 with Teaser image size: content_area_...

Android Custom control

Hi I design a custom control that is similar to button control but has text on both left and right plus image on right and some hidden text associated with it. Can some one please give me few pointers on this. -Thank You ...

wordpress custom post type rewrite rule pagination for author

i'm using Wordpress 3.0.1 and i have made custom post-type called 'dienasgramatas'. my plugin also makes custom rewrite rules for displaying all posts from this post type and even custom permalink structure to query posts with this post type coming from defined author, but i can't create rule for pagination: the one that works: $new_ru...

How to test a custom Zend_Form with PHPUnit?

Does anyone have an example of how to test a custom Zend_Form that extend from that class with PHPUnit?? I may need to test the construct and the init... where i'm adding elements to the My_Custom_Zend_Form. ...

Silverlight Custom Gird with Fixed Header and Column, required refactoring

Hi All, I’m trying to build the custom grid with fixed Header and Column in Silverlight. I don’t know whether SL has built in functionality to build this or not because I’m very new to SL. Please take a look the following codes. I don’t think that this is the right way to build this. If you don’t mind, please refactor my codes and pleas...

Wordpress Custom Field Output is Not Hyperlinked. Anyway to do the Same?

Hi all, I'm using wordpress custom field called company_name at the end of the post to display company name. I'm able to display the value of custom field but the output coming is not hyperlinked like wordpress categories. What I want is when visitor click on the company name wordpress should show all posts related to that company. ...

Is it possible to create a custom state for use in a StateListDrawable?

They have states for things like pressed, focused, disabled, but is it possible to create custom states so it could reflect some of my own custom criteria? For example, say you have a list of names. Some people fall into a certain category that should be visually represented differently. These people's rows would then have a different ...

How do I display just the children of the parent term on a taxonomy archive page?

Basically, I have created a custom post type and a custom taxonomy for that custom post. The custom taxonomy is hierarchical and the client plans on adding hundreds of categories. Because of this, they want the main page to display only the top level parent which is easy enough. However they want a drill down menu which only shows the pa...

How can I develope my own toolbox

Hi everybody. I wont to develope my own toolbox like on visual studio.?what I have to study for.I need an idea or an example for begining.I need your help. Thanks ...

Wordpress - Query if a custom post type has any posts - from outside the loop

I'm making a restaurant menu using custom post types for the different menu sections. I used the excellent Custom Post Types UI plugin and the Verve Meta Boxes plugin. I'm then flowing them out into separate loops with several segments of the below code: <?php $hotfood = get_posts( array('post_type' => 'hotfood', 'posts_per_page...

C# Reading from a custom file

Okay so, I have read that .INI files have become obsolete now and the .NET Framework creators want us to use .XML files. However, I feel that it would be difficult for some of my users to use .XML files so I thought of creating a custom config file. I have a list string which has 3 parameters (it is actually the snippet function in Scin...

Programmatically adding columns to Sharepoint List Views.

For a project I am working on, I am trying to do the following thing. There's a Sharepoint 2010 environment, with a few Custom Lists created in Visual Studio. I am adding some fields to them using background code in the FeatureActivated function in the EventReceiver. What I am doing there is adding a lookup field to the Sharepoint Lis...

'Non-supported field type change' when modifying a feature

So, now that my previous problem was fixed, I was trying to organize the files a little bit. I found out a 'Note' type field (A multi-line textbox) was supposed to be a Multi-Pick User field. So, I decided to change that. I seemed to change everything, but it just doesn't want to change the type. Which is much a good thing to do, seeing...