custom

How can I bind a custom property of a windows form to a second property?

I want to bind a custom property of a windows form to a second property, so when I update the former the latter gets the same value. This is the simplest example of what I'm trying to do: public partial class Form2 : Form { public string MyTargetProperty { get; set; } public string OtherProperty { get; set; } public...

Grails Date Property Editor

Hey folks, i'm using the jQuery UI datepicker instead of the <g:datePicker>, which is changing the selected date in a textbox. Now I want to save this neatly back into my database, and came across custom property editors. click me hard to see the topic on StackOverflow However, adding this custom PropertyEditor didn't change anything, ...

Combination USB Drive / Bluetooth Adapter Device

I am looking for a combination USB device that is both a flash drive and a Bluetooth adapter. Has anyone seen an item like this available recently? I found some old articles circa 2004 but could not find anything current. Could anyone recommend a company or service that could help me find an item like this? Thank you, - G ...

WPF add c# code to customcontrol

I want to create simple custom control (derived from control and with look defined in generics.xaml). I need to change size of elements defined in generic.xaml, when control is resized! It would be great to write some of that generic.xaml part in C#. Is that possible? Or is there a way to create MVVM like custom control? What i am willi...

Flex - Why is my custom event not being registered with the following event listener?

printableInvoice.addEventListener(batchGenerated, printableInvoice_batchGeneratedHandler); Results in this error: 1120: Access of undefined property batchGenerated. I have tried it as FlexEvent.batchGenerated and FlashEvent.batchGenerated. The MetaData and function that dispatches the even in the component printableInvoice is all righ...

Import orders file on magento enterprise or community (product with customs options)

Hello, We need to import some orders file on magento enterprise. In our file, products contains customs Options. We tried to make an extension but we have some problems to import Customs options. The import of standard product is successful but not for the product with customs options. For customs option, missing "info_buyRequest" val...

Min Length Custom AbstractValidationAttribute and Implementing Castle.Components.Validator.IValidator

I see with the Castle validators I can use a length validation attribute. [ValidateLength(6, 30, "some error message")] public string SomeProperty { get; set; } I am trying to find a MinLength only attribute is there a way to do this with the out of the box attributes? So far my idea is implementing AbstractValidationAttribut...

Add a Session Variable or Custom field to the Elmah Error Log table

I want to add my own session variable to elmah error log table and display it. I already have modified the source code and added the new fields to Error.cs and other fields but I don't know but when I assign an HttpContext.Current.Session["MyVar"].tostring() value to my field in the constructor it stops logging exceptions and does not lo...

Custom UITableViewCell changing indexPath While Scrolling ?

I have a custom UITableViewCell which I created in Interface Builder. I am successfully Dequeuing cells, but as I scroll, the cells appear to begin calling different indexPaths. In this example, I am feeding the current indexPath.section and indexPath.row into the customCellLabel. As I scroll the table up and down, some of the cells will...

Mysql query different group by

Hello i have a products table that contains normal products and configurable product It has a basic stucture of: id name price configurable ('yes', 'no') id_configuration Normal products have configurable no and 0 as id configuration, and configurable products have it set to yes and have the same id_configuration value. The curren...

How to assign custom property to jQuery object?

I need to assign a custom property to a jQuery object. Here is the object: var object = $("<div id='item'></div>"); I need object to have a custom data member. How can I add this? ...

What does it mean to "preconcat" a matrix in Android?

In reviewing: http://developer.android.com/reference/android/graphics/Canvas.html I'm wondering translate(): "preconcat the current matrix with the specified translation" -- what does this mean? I can't find a good definition of "preconcat" anywhere on the internet! The only place I can find it is in the Android Source - I'm starting ...

JSF Custom EL function works only on the first load of the page.

I created a ( JSP-based) custom EL function to use in the rendered tag. The function will return a boolean to decide if a page component needs to be rendered on a page or not. I import it onto the jsp page using <%@ taglib uri = "/WEB-INF/mine.tld" prefix = "g" %>. Everything works perfect on the first load of the jsp page. Once a but...

Custom layout in Android: scrollable graphic with selectable elements over top

Hi, I'm fairly new to the Android platform and was wondering if I could get some advice for my current head scratcher: I'm making an app which in one view will need an image, which can be scrolled on one axis, with a load of selectable points over the top of it. Each point needs to be positionable on the x and y (unlikely to change on...

Quick way to create JSF custom component

I know of two ways of creating custom JSF components: 1. Native JSF way: creating JSF component class, tag, etc. 2. Facelets way: defining component in a xhtml file and then creating appropriate decrption in facelets taglib. Currently I work on a project in which introducing facelets is unfortunately out of the question. On the other ha...

Is there a way to create custom pathways using the Google Maps API V3?

I need to create custom pathways using the Google Maps API V3 for a map of a campus I know I could create pre-determined paths based on checkpoints that I input, but I need to be able to make it so that a user using the map I've created can click from one side of the campus to the other, and have the option to either follow roads/sidewa...

Redemption using filter on a custom datetime field in contacts.

Hello, I'm having a problem using a filter on a custom date in contacts. RDOItems Contacts = null; string strSearch = string.Empty; strSearch = AddQuotes("http://schemas.microsoft.com/mapi/string/{01234567-8901-2345-C678-901234567801}/CustomFieldString"); strSearch += " ...

Cannot understand NullPointerException with custom adapter

hi, I am trying to create a list view which as TextView that can display html content , an WebView and other basic TextViews.I tried to extend SimpleAdapter but i struck with the problem ,I will be glad if someone can point out the mistake i am doing. In onCreate method ArrayList> mylist= resultfromXmlparser(); adap = new MyAdapter(To...

Custom Windows GUI library

I always wondered how software such as iTunes, Winamp etc is able to create its own UI. How is this accomplished under the Windows platform? Is there any code on the web explaining how one would create their own custom GUI? ...

Creating content input form with custom theme (Drupal)

I'm creating a site which I want to place content input form in custom themed template. I opted to do this because I wanted the whole site to be looked uniform. That said, I'm not sure as to what is the best approach to do this. Is it proper to invoke hook_insert/delete/update and hook_perm/hook_access by myself or is there anyway I can ...