name

How to call the Route Name in Html.ActionLink asp.net MVC?

I have this route routes.MapRoute( "ViewGames", // Route name "psp/{controller}/{action}", // URL with parameters new { controller = "Games"} // Parameter defaults ); and I used <%= Html.ActionLink("God of War", "godofwar", "Games")%> all though it gives me a link like this somesite.com/psp/...

Object name from String in Objective-C

Hi, i want to set the name of an object like UIButton from a string. NSString *string = [[NSString alloc] initWithString:@"someString"]; UIButton *(string) = [[UIButton buttonWithType:UIButtonTypeCustom]retain]; My goal is: UIButton *someString = [[UIButton buttonWithType:UIButtonTypeCustom]retain]; how can i solve this? ...

Java getting the Enum name given the Enum Value.

Hi, How do I get the name of a Java Enum type given its value? I have written code which works for a particular Enum type, can I make it more generic? The enum type: public enum Category { APPLE("3"), ORANGE("1"), GRAPE("GRAPE"), BANANA("Banana"); private final String identifier; /** * Constructor. * * @p...

unable to get form elements by using form name in javascript

I am having an issue with accessing my form by it's name. When I use document.form[0].mylink.value it recognizes the value and outputs to the innerHTML that I specify. However, when I use document.myform.mylink.value it doesn't seem to recognize the form. I have tried this in chrome 6.0 and also firefox 3.6.3 and get the same result i...

Using sql tables with the same name on different schemas

Hi, Does anyone know of any white papers available that discuss the use of tables with the same name existing on different schemas? I'm implementing on SQL Server but I imagine the theory can be applied to any RDBMS. Thanks, Gary ...

Android: Why is the name of the android app taken as the name of the starting activity?

Hi, In my manifest file, I have given the application name as MyApp and the name of the starting activity as Main Menu. <application android:theme="@style/theme" android:icon="@drawable/myicon" android:label="@string/app_name"> <activity android:name=".MainMenu" android:label="@string/mainmenu_name"> <intent-f...

Linux command to translate DomainName to IP

Is there any Linux command to translate domain name to IP? ...

Using brackets within a cookie name.

Hello! I'm trying to use brackets within the name of a cookie. It is supposed to look like this(this is how the browser wants it!): Name: name[123456].newName Content: 20 Here is my example: $cookie = "name[123456].newName=20" But when I analyze what the browser sees, I get this: cookie['name'] = Array And I want: cookie['nam...

referencing array element(jquery)

How do you refer to elements of array in Jquery? For instance - input type of text with name="a[]" attribute. ...

Named Pipe ReadFile

My Application reads from a Named Pipe and the Problem is, ReadFile returns after the buffer is full or a timeout elaps. I wait for the last bytes to read up to 20 Seconds. Ich have test ist with smaller buffer, but Windows set buffer always to 1020 Bytes. I can't manipulate the Pipe on the other side. The Pipe runs on local Computer. If...

how can I get a free domain name?

I want to get a free domain name not hosting space. Simply where can I get it ? I got several site like freehostia.com. They only offer free hosting but not domain name. So is there any way to get free domain name? ...

SQLite issue with Table Names using numbers?

Hello, I'm developing an app which requires that the user selects a year formatted like this 1992-1993 from a spinner. The tablename is also named 1992-1993 and the idea is that using SQL the values from this table are pulled through with a statement like this select * from 1992-1993. When I run the emulator however, it throws an error....

How To Extract Function Name From Main() Function Of C Source

Hi! I just want to ask your ideas regarding this matter. For a certain important reason, I must extract/acquire all function names of functions that were called inside a "main()" function of a C source file (ex: main.c). Example source code: int main() { int a = functionA(); // functionA must be extracted int b = functionB(...

C#: Maximum file name length for OLE file

Hi there, I used WinAPI function to create OLE file in C#. The WinAPI function is: [DllImport("ole32.dll")] public static extern int OleCreateFromFile( [In] ref Guid rclsid, [MarshalAs(UnmanagedType.LPWStr)] string lpszFileName, [In] ref Guid riid, uint renderopt, [In] IntPtr pFormatEtc, I...

Create a new variable as named from input in Python?

This is something that I've been questioning for some time. How would I create a variable at runtime as named by the value of another variable. So, for example, the code would ask the user to input a string. A variable would then be created named after that string with a default value of "default". Is this even possible? ...

python, functions combination via names and chain them to invoke in-a-go?

All, I have confuse below may need your help suppose I have a row based variable length data matrix 93 77 96 85 50 69 54 16 39 91 59 38 64 30 18 50 43 9 74 94 44 87 95 89 ... I want to generate result data via above source with different generating algorithms while the different range selection algorithms, take ...

PHP: Using a variable name, doesn't work on arrays?

I'm trying to figure out why this works: $joe = "hey joe"; $something = "joe"; print_r(${$something}); But this doesn't: $joe["where_you_going"] = "hey joe"; $something = "joe[where_you_going]"; print_r(${$something}); Why is this? Is there a way to do what I attempted in the second example? ...