custom

WordPress: Disable "Add New" on Custom Post Type

Is there any way to disable the option of adding a new post under a Custom Post Type in WordPress (3.0)? I've looked into labels and arguments but can't find anything that would resemble such a feature. ...

Magento: How to show only products with a custom binary attribute

I created some custom attributes for my Products in the backend, put together in a single attribute set. Attributes are like: "Can be used to fill holes in teeth" "Can be used to to cover up fillings" "Is absorbable" All of those attributes are of the "yes/no" kind. I made all of them searchable, yet when I search for "fillings" or "...

How to enable synchronization of custom account in android?

I am writing my own SyncAdapter for android devices that should synchronize TV broadcast information to the device but ran into problem of not getting the Synchronize "mydata" checkbox visible under Data & Synchronization part of the account preferences. I have implemented my own SyncAdapter and defined it properly in the xml: Here is ...

asp.net datagrid custom paging with pages of various sizes.

I am trying to add paging to my datagrid. This datagrid stores hierarchical data. So the top row has several children rows that need to go beneath it. When a new top row type is going to be added I want to make a new page. This way all related rows will be displayed on the same page. So, I think the tricky part might be making pages with...

Weird scrolling problem with UITableView

I have a sectioned UITableView which loads data from a plist file. The table uses custom cells with dynamic height to fit the content of each cell. The table loads just fine initially, but after scrolling down and back up, the cells seem to be overlaying one another in some sections. I've attached an image illustrating the issue I am h...

Adding custom property in log4net

I have a unique identifier which goes through whole application, I want this 'Id' to be logged as a separate property, so that its easy to find out in log files or from the database. ...

how can i change the background color of a cell in a jqgrid custom formatter

i can chance the text color by doing this in jqgrid custom formatter: function YNFormatter(cellvalue, options, rowObject) { var color = (cellvalue == "Y") ? "green" : "red"; var cellHtml = "<span style='color:" + color + "' originalValue='" + cellvalue + "'>" + cellvalue + "</span>"; return c...

How to customize the display of a QListView

Hi, I have implemented a list of users in my Qt program, using the model/view principle of Qt. My QListView displays a subclass of QAbstractListModel and so far this works just fine. Now I would like to customize the display of my user list (display the name on several line, add IP information, and so on: not really relevant, I just wa...

Using a custom class file in Umbraco XSLT

I'm trying to reference a custom class file in XSLT code. I deployed it as a DLL file to the /Bin directory. Keep getting this error: System.Xml.Xsl.XslTransformException: Cannot find the script or external object that implements prefix 'urn:sso'. CS File Declarations: namespace SSOUtilities { public class sso XSLT Re...

How do I use Asp.net MVC to validate a list property has a minimum number of items (count=N)?

I have a view model that has a property that looks like this Property SelectedGroups() as List(of string) In the view I have something like this <table> <tr> <th>Description</th> </tr> <tr> <td> <input type="hidden" name="SelectedGroups" value="one" /> description one </td> ...

UITableView got slowly when dragging

Hello, I am new to iPhone development, and I can not understand the working principle of UITableView well. I customize the UITableViewCell, and the cell contains imageview. In addition, I initialize the cell reusable. However, when I drag the UITableView, it scrolls slowly. Then what should I do to process it? ...

drawing layout through canvas

I have a layout like : <ll vertical> <ll horizental> <textview></textview> <textview></textview> </ll> <ll horizental> <textview></textview> <textview></textview> </ll> </ll> The problem is i need to display this as part of my whole screen. i am doing mCustomDrawableView = new CustomDrawableView((Context)this, R.drawable.mychar...

Personalized or Custom Input Fields for Products with Shopping Cart

Hey Everyone, I have a question revolving around the idea of customized or personalized products. I have been researching the heck out of the existing cart solutions, both open source and paid looking for a solution. I'm not a developer myself, but I do have some technical knowledge and developers on staff. Here's my question. I hav...

Creating a custom uidatepicker - it takes up too much space!!

Hi, I would LOOOOVE to have the use of a UIDatePicker that is just one row displayed instead of three.   Three rows take up way too much real-estate!   HELP!!!   I am able to rotate and resize the control without any great stress, but have yet to figure out how to only display the one row. This is not what I'm chasing right this moment. ...

How to create a custom date on iPhone

I'm trying to set some components of todays date with NSDateComponent like so: NSDateComponents *comps = [[NSDateComponents alloc] init]; [comps setDay:1]; [comps setHour:1]; [comps setMinute:44]; NSCalendar *cal = [[[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar] autorelease]; NSDate *date = [...

combo and custom search

i have a combo and custom search i want that, the combo option also should be included in the search option..means when the search is posted i want the combo option to be in search,for example combo value is type,and search field is name so the search should look for both i need to override the searchfield class?how? ...

How do you build an ASP.NET server control with multiple custom properties that are not in the same assembly?

Ok, this is a tricky one and has been bugging me now for a day and a half. Please read carefully as it is easy to misunderstand. I have seen the post http://stackoverflow.com/questions/123616/how-do-you-build-an-asp-net-custom-control-with-a-collection-property and I realise that is a solution, however, it relies on the fact that the P...

how to configure Custome google search in asp.netfor search data.

Hi. I added the custom Google search box to my asp.net (.aspx page) application page, by using the JavaScript.by the way, what is the right procedure for this? I am not explaining my procedure due to lack of time. Also want to know , Is this custom Google search searches inside sql server database of our site or application? if yes th...

wordpress 3.0 php custom fields issue

This worked perfectly in a previous version of wordpress, different site tho. I have a custom field called flash on several wp pages but it keeps defaulting to "printed if results are empty". Any ideas on why this wouldn't work? <?php if ( function_exists('get_post_custom_values') ) { $mykey_values = get_post_custom_values('f...

Custom Double Handle Slider

Hello, I was wondering if anyone had some code, or knew of a place that has code for creating a double handled slider. (EX. Kayak application filter results time, has a slider with thumbs on both ends to create a range.) I am looking to do something similar using a double slider to search for a range of ages on a person array. Any help...