custom

custom field template... file upload problem

Hi Gyus, I am facing problems with custom field template. it is not uploading the custom image file to the latest path, and tries to fetch from the path it stores in db. which is wp-content/uploads/2010/06/ but it doesnt upload the file here. any help, thanks in advanced. Regards, Farrukh ...

Assign values to keywords in usertype.dat in visual studio?

I found that if you create a file called "usertype.dat" in visual studio's IDE dir, that you can specify keywords that will appear in blue like "new" or "int". Is there a way to assign values to these? I don't want to have to use "#define [keyword] [value]" in every single file that I use.. Specifically, I would like to have a "null = ...

Custom Linux GUI: Where to begin?

I've had a long standing interest in developing an OS UI tailored to my needs and interests. When I was younger, I went crazy playing with the Stardock skinning tools for Windows. I loved developing my own window styles and layout ideas. Since then I've had an unscratchable itch. I'm not particularly interested in fiddling with the low...

How to define a class that sends an action like NSButton?

In Cocoa, how do you define a class that sends an action? I want to be able to connect the action to the selector of another object in IB in the style of NSButton. I would prefer not to subclass NSControl if possible. ...

Ocaml lablgtk2 custom widget?

Hi everyone. I've been learning Ocaml with lablgtk2 for a while and still searching for a tutorial in which describe a way to create a custom widget (I want to make this widget as a circle filled with color and some text in the center). And this custom widget can be set ~width, ~height, ~label, ~packing,... to another container (as anoth...

NHibernate Custom Collections hack works outside of a transaction, but not inside

Following the technique described here, I was able to populate a domain object that uses custom collections for its children. The relevant property mapping looks like this: <component name="Contacts" class="My.CustomList`1[[Domain.Object, DomainAssembly]], MyAssembly"> <set name="InnerList"> <key column="PARENT_...

How to query wordpress posts by custom field

I am attempting to have lots of posts in a specific category. The post will have a custom field that will be a date. I need the posts to be organized by the category, the custom field, and each page of posts should be separated by month of the custom field. So hard to explain... Page of posts for the current month. Links at the bottom f...

How to create a custom home-screen replacement application on Android?

Can anybody tell me where to find information about how to write a custom home-screen replacement application? Can any application be a home-screen by just registering it with a CATEGORY_HOME intent? ...

wordpress custom post type; query by id works, by post_name doesn't

Hi, I would need some help with Wordpress and custom post types/permalinks. I registered custom post type by the name "services" with the following arguments: $args = array( 'labels' => $labels, 'singular_label' => __('services'), 'public' => true, 'query_var' => true, 'show_ui' => true, 'menu_icon' => get_stylesheet_direct...

SPD workflow- Custom Task form

Hi All, I am running into a scenario where I need to display List Item (Approving context) properties/Fields in custom task form. But I am looking into SharePoint Designer created Workflow. I can see, custom task form in the Workflow folder in SPD. But not sure, how to change it to display details about list item. Any pointers or links...

Android View stops receiving touch events when parent scrolls

I have a custom Android view which overrides onTouchEvent(MotionEvent) to handle horizontal scrolling of content within the view. However, when the ScrollView in which this is contained scrolls vertically, the custom view stops receiving touch events. Ideally what I want is for the custom view to continue receiving events so it can handl...

Cocoa Touch - Custom UILabel

I am trying to create a custom UILabel which sets the background colour to clearColor (with added functionality further down the line). This way, I don't have to specify the exact properties for each label as they will be inherent in every instance of the label. I have tried several variations on a them but with no success, what am I do...

UITableView(Controller) - Hide empty rows

I am trying to create a UITableView that only displays the number of rows that have data content in them. This is a menu system, and suppose there are 5 choices in the particular menu, I only want to show 5 rows on the screen, with a background image in place of where the empty rows would be (A similar example I guess would be the World ...

Is there a way to create a custom edit flag in MediaWiki?

I moderate a wiki where many users use the AutoWikiBrowser to rapidly edit. This is fine but it makes it harder to locate and deal with vandalism via the recent changes. Is there any way that I can create a custom edit flag to mark edits as semi-automated and allow users to hide them from the recent changes? Ideally this would come with ...

NHibernate gives me a PersistentGenericList<T> even though I've implemented IUserCollectionType

I am trying to use a custom collection on a business object via a collection factory class that implements IUserCollectionType. The relevant methods on this class are implemented like so: public object Instantiate(int anticipatedSize) { return new MyCustomCollection<T>() } public IPersistentCollection Instantia...

Layout with dynamic position

Hi, I have a layout which might be a bit unusual. The structure is the following: <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <org.CustomSurfaceView android:id="@+id/page_flip"...

Custom Role Provider not working

Hi there I've set up a very basic custom role provider from my ASP.net application. This doesnt seem to be working as the "GetRolesForUser" method is never being called when a page is requested that should be protected. Class: public class SimpleRoleProvider : RoleProvider { public override string[] GetRolesForUser(string userna...

My custom ringtone previews but is silent during incoming call?

I have an MP3 file that I can play outside of Android and stored on the sdcard. I did the call to MediaScannerConnection.scanFile(mContext, ... so it has been discovered. In Froyo, the ringtone shows up in the **Sound -> Phone ringtone** list. In Eclair it does not list (I expected it in the User add ringtones ...

Advanced fading of one picture to another

So basically im making a custom button. Desired Behaviour: When a user mouses over, then the mouseover picture will fade in. When a user mouses off the mouseover/pressed picture will fade out. Exceptions: If a user mouses in, or off, while a fade animation is playing, then it will need to: Instantly stop the currently playing anim...

Displaying code snippets from WordPress custom fields

Hi I'm trying to display code snippets entered into my custom field. An example code snippet entered into custom field - snippet-1 <?php if (($wp_query->current_post + 1) < ($wp_query->post_count)) { echo '<div class="post-item-divider">Post Divider</div>'; } ?> If I try to display this code wrapped in <pre></pre> tags in my page ...