Is it OK to raise a built-in exception with a custom text? or to raise a built-in warning also with custom text?
The documentation reads:
exception ValueError: Raised when a built-in operation or function receives an argument (…)
Is it implied that only built-in operations should raise a ValueError exception?
In practice, I unde...
If have an enum in C#:
[Serializable]
public enum OperatingSystem
{
Windows,
Macintosh
}
For my application I use the application settings, where I can select of which Type a setting should be. I thought when I select Browse, I could choose my enum or type the fully qualified path to select that enum as the Type.
Edit:
I se...
Basically, what I want to do is put some buttons before the tabs in a gtk.Notebook. I tried making my own notebook type widget and it worked well, but it would have required lots more work to make it as flexible as I would like, also it wasn't as efficient.
Here is a mock-up of what I'm trying to achieve: http://imagebin.ca/view/84SC0d....
php.ini on the server loads mysql functions, but as i have to use a custom php.ini on the site root, after adding the file the server is not loading mysql function.
without the custom php5.ini file mysql functions and their values appear in the phpinfo() but when i create the custom php5.ini on the site root and run the phpinfo() mysq...
I am using AutoMapper 1.0 RTW and adding a couple of custom formatters:
Mapper.AddFormatter<AlertTypeFormatter>();
Mapper.AddFormatter<DateStringFormatter>();
The destination types are both string and the formatters work individually. But put them together and only the first formatter gets called. In this case the "AlertTypeF...
Hello,
I am developing a MSI installer by using WIX.
The main program installs to [APPLICATIONFOLDER]. I use the InstallDirDlg to set the directory of this without any issues.
I'd like to display a custom dialogue based on the InstallDirDlg to specify a directory to install a particular component. I'd like to set the default direct...
howdy.
apologies in advance if i use poor terminology.
when i compile a C++ app under gdb and use printf() it gives me awesome warnings relating to the consistency of the format string and the arguments passed in.
eg, this code:
printf("%s %s", "foo");
results in a compiler warning "too few arguments for format", which is super-use...
Hi, i got some xaml here and what i m trying to do it's simply bind a property call Property (not the real name) on the width of a rectangle and to convert the value of this property with the converter name Conv and it's working perfectly with {TemplateBinding Property} or DataContext={TemplateBinding Property} or with a relative source ...
I'd like to convert my current HTTP/HTTPS WCF binding settings to use binary message encoding and I need to do it in code - not in XML configuration. AFAIK it's necessary to create CustomBinding object and set proper BindingElements, but I'm not able to figure out what elements should I use in my scenario.
Main points in my WCF configu...
I am trying to set a custom paper size by doing:
Printer.Height = 2160
Printer.Width = 11900
But it doesn't seen to have any effect. After setting this up, i ask for that values and it returns the default ones. And this:
Printer.PaperSize = 256
Returns an error...
Any ideas??
...
I've looked hard and have been unable to find good websites that have aggregated custom controls that have been submitted by users to be shared with everyone. Does such a repository exist?
I would hope something like this existed considering that iPhone developers seem to be using similar custom controls. In particular, I'm trying to d...
Hi, I am trying to develop a custom control which needs to have some rectangles to be drawn. Now, 1 rectangle needs to be moved so I used overrided mousemove method to get the new location and change the location part of that rectangle and then used Invalidate() command. But problem is, that whole control is painted instead of that recta...
Microsoft lost another patent lawsuit (see also here) and I feel the pain too. I relied on the pink tags to have some attributes associated with text spans in a word documents. Such attributes were saved in the xml as custom tags.
Now, as soon as my customer upgrades Office suite they will loose the pink tags. Can you think of what feat...
hi all,
i am developing a application in which i add contact to contact List. i am able to basic info like name, address, email, phone, notes etc. but i want to add some custom field like userLabel1, userValue1 , bioPersonal, bioWork, bioOther. so i want to add custom fields to address Book'contacts.
whether it is possible to add custo...
I am creating a custom tab bar for my iPhone app and I need to change the images. I have changed the actual tab bar background, but I need to know how to add custom images for the icons and their respective "selected" icons. I also need to remove the square highlight that is default. Pretty much, it just needs to be my icons. Also wonder...
Hi all
first .. sorry 4 my english :)
i am web developer and using wordpress as framework for any Customized CMS i want build
if i want to make a video Cms for example and want to make keys for videos instead of ID'S
each video is post has ID , and Customfield ( "vkey" => "1A2B3C" )
each post will have the customfield ( "vkey" )
so...
Hi,
I've created a custom ItemRenderer extending UIComponent and implementing IListItemRenderer. This renderer contains a Text-Object to display the value.
For editing I'm using the standard ItemEditor (TextInput).
Now, when I want to edit a value, I click on a cell and the editor is created. But instead of displaying the value which ...
hi all.
i want to implement a custom classloader in order to digitally signing my jar files.
because of performance issues i don't want to encrypt all of my classes.
so i want implement a custom classloader which when it has been called
it delegates class to it's parent and if the parent failed to load class it handles by itself.
this i...
Hi,
I have this strange behaviour in Apache post_config handler :
int setup_module(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp,server_rec *s)
{
//1
my_config_t *config = ap_get_module_config(s->module_config, &my_module);
//2
log_me(config->logfp, apr_psprintf(ptemp, "My module version %s\n", MY_VERSION));
...
I'm managing a web app featuring countless ETL (Extract, Transform & Load) processes feeding a datawarehouse (using SSIS dtsx packages + *.sql files).
At the moment, everything is governed by several SQL Agent processes monitoring "scheduling queue" tables.
I'm trying to figure out a way to develop a scheduler or scheduling "framework"...