name

What are the limitations for bookmark names in Microsoft Word?

I need to bookmark parts of a document from the name of paragraphs but the name of a paragraph is not always a valid name for a bookmark name. I have not found on Google or MSDN an exhaustive list of limitations for bookmark names. What special characters are forbidden? The only thing I found is that the length must not exceed 40 cha...

MySQL : When stored procedure parameter name is the same as table column name

Hello, Let's say a have a stored procedure SetCustomerName which has an input parameter Name, and I have a table customers with column Name. So inside my stored procedure I want to set customer's name. If I write UPDATE customers SET Name = Name; this is incorrect and I see 2 other ways: UPDATE customers SET Name = `Name`; UPDATE cu...

How do I get the current file, current class, and current method with Python?

Hello, could i get: Name of the file from where code is running Name of the class from where code is running Name of the method (attribute of the class) where code is running Thanks. ...

How can one extract the names of files in a folder as text?

For example in windows explorer? ...

How to get select radiobutton value using its name in jQuery?

I am having 4 radiobuttons in my web page like below: <label for="theme-grey"><input type="radio" id="theme-grey" name="theme" value="grey" />Grey</label> <label for="theme-grey"><input type="radio" id="theme-grey" name="theme" value="pink" />Pink</label> <label for="theme-grey"><input type="radio" id="theme-grey" name="theme" value="gr...

Why isn't this password thing not working -- Batch

Hello i have this in a batch: :passw022 title batch :: Password if exist util2.txt del util2.txt cls echo Please enter your name: echo. Set name= set /p name=Name: echo %name%>> util.txt echo. echo Please enter a password you like to have: echo. Set passw= <nul: set /p passw=Password: for /f "delims=" %%i in ('cscript /nologo mask.vbs...

JavaScript: Get Argument Value and NAME of Passed Variable

What I want to do is get the NAME of a variable passed to a function and the VALUE of that variable and only have to pass in one variable to the function. So: var x = "anything"; function showName() { } showName(x); or showName("x"); Which will return: "x = anything". Right now, I have to do: showName("x", x); in order to ge...

(C#) How to set an project's executable processname?

Hello. I'd like to have my executable's process be called ABC. How I can do this? I tried defining my project name to ABC, but then I'll have an ABC.vshost. Thanks ...

Any hints on how to name an opensource project.

Any suggestion how to name an opensource project. How much is it advisable to simple make an abbreviation of the technology used and what you wish to achieve from it. Or recursive names like bing, gnu Can anyone please mention some smart names of various project. ...

how to get just numeric part of css property with jQuery?

I need to do a numeric calculation based on css properties. However, when I use this to get info: $(this).css('marginBottom') it returns the value '10px'. Is there a trick to just getting the number part of the value no matter whether it is px or % or em or whatever? Thanks! ...

Efficient way to query or set the volume name of an ext3 partition under Linux?

Hi all, Through a bit of digging, I've discovered how to set and get the volume name of an ext3 partition on my Linux box: set the volume label tune2fs -L MY-NEW-NAME /dev/disk/by-path/pci-0000\:00\:1f.2-scsi-2\:0\:0\:0-part1 get the volume's current level dumpe2fs -h /dev/disk/by-path/pci-0000\:00\:1f.2-scsi-2\:0\:0\:0-part1 | grep...

Custom datacontract / datamember name

Hello, I have a following problem. A customer requested a web service that returns data in following format: <status> <name1>Some name</name1> ... </status> But when an error occurs they want to get a following message: <status> <error>Error description</error> </status> I created a web service using WCF and in order to fulfill ...

Get the name of caller (or method) that created the WCF Service instance?

as simple as i can: i have a WCF service with a private constructor. if i'm not wrong, constructors must be parameterless in WCF and the parameter i need is the caller's name (or caller's method name), so i can assign a few readonly fields. so, the question is: is there a way that i can get the caller's name -- or the method that invok...

TCPL 5.9.9 (C++): Where would it make sense to use a name in its own initializer?

This is a question from the most recent version of Stroustrup's "The C++ Programming Language". I've been mulling this over in my head for the past couple days. The only thing I can come up with, (and this is probably incorrect) is something like this: int* f(int n) { int* a = &a - n * sizeof(int*); return a; } My intent is to g...

Measure the pronounceability of a word?

I'm tinkering with a domain name finder and want to favour those words which are easy to pronounce. Example: nameoic.com (bad) versus namelet.com (good). Was thinking something to do with soundex may be appropriate but it doesn't look like I can use them to produce some sort of comparative score. PHP code for the win. ...

Prefixing database table names

I have noticed a lot of companies use a prefix for their database tables. E.g. tables would be named MS_Order, MS_User, etc. Is there a good reason for doing this? The only reason I can think of is to avoid name collision. But does it really happen? Do people run multiple apps in one database? Is there any other reason? ...

Objective C - Why do constants start with k

How how constants in all examplese I've seen always start with k? And should I #define constants in header or .m file? I'm new to objective c, and I don't know c. All tutorials and books assume you know c, so I don't understand these things, is there some tutorial somewhere that explains stuff like this? Thanks. ...

how to access the localized names of an outlook contact items property

does anyone know a way to access the localized names of an outlook contact items property collection? If i loop through the properties collection for (int i = 0; i < item.ItemProperties.Count; i++) { if (item.ItemProperties[i].Type == Microsoft.Office.Interop.Outlook.OlUserPropertyType.olText) { string s = item.ItemProperties[i].Name...

Getting an iPhone app's product name at runtime?

How can this be achieved? I would like to get the name so i can display it within an app, without having to change it in code each time i change a name, of course. ...

InstallShield 2009 Premier: How to show the application name in japanese(non-english) text in control panel's add/remove features

Basic MSI Project: In "Project Assistant" tab in "Application name" i provided japanese text When i try to install it any english OS(xp) it show the error message like "1152: Error extracting ....msi from the temporary location" and exits installation just after clicking setup.exe(all compressed, nothing there though). But setup is ok i...