name

How to get the city from a Canadian zip code?

Hi, Do you have any experience with obtaining the City from a Canadian zip code? Is there a free web service to obtain city name by passing a Canadian zip code or can a regular expression be useful? Any ideas? Thanks! ...

Bash Daemon Named "sh" or "sleep" not the filename....

I have created a simple bash script, chmod +x, and successfully am running it as a background service. But, the script is called "sh" or "sleep" or whatever command seems to be running at the time, not my script name, when I view a process list. How do I name the process of my bash script so I can distinguish it? I want to be sure th...

How do I get the name of a form in Javascript?

How do I get the name of a form in Javascript? I have tried stuff like: document.forms[0].name document.forms[0].id //I have both name and id set ...

How can I customize "%s has encountered a problem and needs to close"?

Every Windows developer is all too familiar with an alert of the form: Foo.exe has encountered a problem and needs to close. I am resigned to my apps blowing up from time to time (only during development of course), but when they do, I don't want to see "Foo.exe" here. I want to see a "friendly" name such as "FooBrowser™". I've search...

How can I get the cellular connection interface name on the iPhone?

I did not find any clues on how to get the cellular connection interface name. BTW is the cellular connection interface static or it can change for example from en1 to en2? Thanks ...

My checkedlistbox in C# shows the type of the object it is to display, but not the name of it...

I'm having an issue displaying an object in a checked list box in C#. I can add object fine, but when the object is displayed to the user, to the program outputs the checkbox selection as Salesform.order instead of invoking the tostring method in the order class like I want. This results in multiple orders displaying as the same thing: "...

javascript - arguments.callee.toString() and arguments.callee.name does not return function name

I'm trying to get the name of the currently running function. From what I've read, this should be possible using: (arguments.callee.toString()).match(/function\s+(\[^\s\(]+)/) However, when I run this in Firefox and Safari (latest versions on Mac) the name is not returned. console.log( arguments.callee ) returns the source of the fun...

How do I display a name for a form that is not its real name?

When a form opens in MS Access, it displays its name on the title bar of the form. I want to hide the real name of my form and display a more user-friendly name on the title bar. How can I do this? ...

Design, Studios, Media and Lab. What's the difference and what they do?

I always see groups and companies of web design that end their name with the followings: Design, Studios, Media and Lab. Do they all mean the same thing or they show to the customer that they do something specific? ...

encode Netbios name python

Hi alls, I would like to encode "ITSATEST" to it's netbios name value in python; The occurence table and explication are here: http://support.microsoft.com/kb/194203 I dont know how this could be done easily in python, someone can give me a hand ? Thanks ! ...

Rename image file name in matlab

Hi I Load 10,000 image files from internet site and i save it in the folder to use it in my project (image retrieval system ), now i need to rename image file in a sequential name like (image1,image2,image3,....image10000) , any one can help me... I would like to inform you that I used matlab in my work thank ...

Credit Card validation: can Card Name contain non-ASCII characters?

Can the Card Name (i.e. the cardholder name, not the card type) contain non-ASCII characters? Example: "JOSÉ GONZÁLEZ". ...

Error in starting namenode in Hadoop

hi, When I try to format the namenode or even start it I'm getting the below error. What should be done?? $ bin/hadoop namenode -format Exception in thread "main" java.lang.NoClassDefFoundError: Caused by: java.lang.ClassNotFoundException: at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.securi...

Validate a JavaScript function name

What would be a regular expression which I can use to match a valid JavaScript function name... E.g. myfunction would be valid but my<\fun\>ction would be invalid. [a-zA-Z0-9_])? ...

iPhone: NavigationController NavigationBar Back button text

When I push a new ViewController onto a navigation controller stack the "back" button is the Title of the previous controller. How can I change the text in the back button to "Back" instead of the default name-of-last-controller? ...

Upload picture to server successful but insert file name to database is blank

Hi everyone. I appreciate your effort tat helping newbies like me. I have the following problems and will appreciate urgent help. PROBLEM NUMBER 1: Using PHP and MySQL, I am able to upload picture successfully unto the server but not so with the file name of the picture even though other parameters in my form got inserted successfuly i...

In Java: create unique random filename in a directory

How do I create a random unique filename in a directory (of my choice)? Note: I don’t want this file in the system temp path but rather in the directory I specify ...

PHP: high depth array, how do return current key name?

I have a huge array from a json_decode result (assoc set to true) and have the following code to check if (one of the arrays within, a random serial) has the key 'set_true' $out = ""; foreach ($array as $sub) { //$out[] = $sub['set_true']; if (in_array($sub['set_true'], $sub) && $sub['set_true'] == '1' ) { $out[] = 'User: ' . $...

PHP Doctrine 1.2 table names

I'm trying to upgrade my doctrine ORM from 1.1.6 to 1.2.1 but i've enountered a BC issue with table names. Some of my table names have several words (e.g. t_foo_bar for class FooBar) where the t_ prefix is generated automatically with: $manager->setAttribute(Doctrine_Core::ATTR_TBLNAME_FORMAT, 't_%s'); This worked well in previous ve...

two jquery plugins use the same function name, can somehow i use them both?

I have two jQuery plugins that use the same function name (bind), can i somehow use those two plugins together? ...