Can I use the MVC 2 DataAnnotations to specify a minimum length for a string field?
Has anyone done this or have they created custom attributes and if so do you mind sharing the source?
There's tons of documentation out there on how to override the appearance of Drupal modules, but I keep finding the docs for writing the original theme to be a little lacking. On this note, how can I tell Drupal to use a specific CSS file for my custom module's block output?
I have create a Button style under Resource folder of the main application. I have added the reference of this button syle in the App.xml of the main application.
Now this style is applicable to all the buttons in the main application or any other assembly.
I want if I want to override my custom style of button to the normal button style , what should I do ??
Please help !!
I'm creating a ASP.NET MVC website and I was wandering which techniques do you guys use to protect primary key on these mvc urls.
Actually ASP.NET MVC generates this syntax for its urls:
/Controller/Action/Id
Last week I was trying to encrypt it using SHA-1 Encryption, but this encrypter generates some special symbols like + (plus), / (slash), and other annoying chars which difficult the decryption.
Perhaps creating a custom encryption should solve the problem. But I wanna here from you guys, do you have some ideas to protect mvc urls?
I need to use a custom NSView subclass to draw some content, but it isn't drawing as highlighted when the user hovers and it doesn't dismiss the NSMenu when the user clicks on it. Any ideas?
Edit
It's a subclass, not a descendent.
Hi, Im trying to create a custom formatter in Symfony 1.4.
I have embedded form via
$this->embedRelation('User','BasesfGuardUserAdminForm');
Is there a way to format the name of the embedded form 'User'?
I'm implementing a custom text box using -interpretKeyEvents: and am trying to figure out what the difference is between moveBackward: vs moveLeft: and moveForward: vs moveRight:. moveLeft: is bound to the left arrow and moveBackward: is bound to Ctrl + B. The documentation describes them almost identically and they seem to behave identically in practice.
I'm assuming this is just a holdover from Vim? Does anyone know what the real difference is? Should moveBackward: just call my moveLeft: implementation?
Thanks a lot,
Nick
I was reading http://www.kernel.org/pub/software/scm/git/docs/gitignore.html and the 6 points used to explain the ignore patterns seem to be describing a custom variant of a glob search syntax.
I am more familiar with Mercurial, which allows to explicitly ignore via glob or regex patterns, no questions asked.
Is there anything similar functionality in Git?
Can anyone point me to some more exhaustive reference than the Git man page?
Best,
t
I noticed that the position of the builtInZoomControls in WebView (bottom, horizontal right) is not consistent with the default position in the MapView (bottom, horizontal center).
1) Why is that not consistent? (Probably a question to be asked to Google)
2) Is there a way to horizontal center the builtInZoomControls of the WebView without applying custom Zoom controls? Or is that the only way?
While I know it is possible to add a custom step to an MSI install using Visual Studio that will allow the user to make a selection, how do I or can I save that selection to a file to be read later by the app when it is run?
Hello
I want to perform few tasks during Session_Start and Session_End (when user logs in and logs out) through custom code. Where should i write it? Is it possible by writing a code behind for global.asax? Will it break anything?
Thank you
I have a WCF Web Service with a custom username/password validator.
How does one specify the username and password as the ClientCredentials properties when creating a service in Silverlight are read-only?
Thanks for any help.
I created my own custom date picker consisting of an ASP TextBox, Button, and Calendar complete with CSS styles, javascript code, and event handling vb code.
I want to use this date picker multiple times on my form. I know the wrong way to do this would be to copy all the code and just adjust each name accordingly.
How can I put those controls, styles, and code into a single entity?
I have a custom View which i would like to place on a bottom view of split view dynamically. I need a scroll view for that bottom view. How can I get a scroll view for a bottom view of horizontal split view?
Pleas help me on this.
Thanks in Advance
bp
Hi,
We are working on a Windows Mobile 6.5 application.
The application is already installed in some devices, and we need to distribute a new version with changes in the database schema (we added a few tables).
Is there a way to make a "patch" windows mobile installer that will replace the application and update the embedded SQL database with some scripts?
In a normal windows installer we would create a custom action in the installation process to apply the changes in the database, but I'm not sure how to do that for Windows Mobile
Thanks.
I noticed that ObservableCollection in WPF reflects changes in GUI only by adding or removing an item in the list, but not by editing it.
That means that I have to write my custom class MyObservableCollection instead.
What is the reason for this behaviour?
Thanks
Hi all,
I am trying to draw custom shapes in iPad application. I am using UIBezierPath for drawing which is available for 3.2 onwards. My question is whether it is good to use this class or should I go to the core graphics? Is there any difference between uibezierpath and core graphics drawing related to performance?
Hi,
I had written a custom search query for MOSS 2007 to get data where contenttype is post. However the same query is not returning any results in SharePoint 2010. Any inputs will be appreciated.
Please note that SharePoint search box is returning (parameter k in query string and also contenttype:post) appropriate results.
Thanks
I want to override a string from a System.ComponentModel.DataAnnotations for an ASP.NET project. Do I need to make a satellite assembly, messing with custom build tasks, al.exe etc.? Even if yes, I couldn't find how to convert .resx to .resources to feed it to al.exe. And if no, where to put the .resx. and how to name it?
If I have an exception in my business layer (e.g. a SQL exception in my JDBC connection bean) how can I propagate it with a custom message to a global error.jsp page? Please help.
Did Spring abandon YAML to use as an alternative to .properties / .xml because of:
[Spring Developer]: ...YAML was considered, but we thought that counting whitespace significant was a support nightmare in the making... [reference from spring forum]
I am confident YAML makes a lot of sense for properties, and I am using it currently on the project, but have difficulties to inject properties in a
<property name="productName" value="${client.product.name}" />
fashion.
Anything I am missing, or I should create a custom YamlPropertyPlaceholderConfigurer ?
Thank you,
/Anatoly
I'm using Visual Studio and while fiddling around with a custom control, I started to get an out of memory error.
The stack trace is not helpful - it's just a bunch of frames doing Reflection and so on.
How can I fix this?
Working with iPhone SDK 3.2 --
I have a complex custom UIControl that handles touches on the child controls. In certain cases, I want the parent UIControl to pass an event to the UIViewController, which will then take action outside the control. How do I do this cleanly? Thank you!
In choosing an editor for my wiki-like site, I'm debating whether to allow HTML or a custom alternate markup (maybe like wikipedia/wikimedia's or BBCode).
HTML benefits:
Easy for users to deal with (copying and pasting, learning)
Somewhat future proof
Many more editing tools available, usually WYSIWYG too
Alternate markup benefits:
On the server side I don't have to worry about parsing malicious javascript or styles or HTML that I don't allow
Can be easy to learn
Can be easier to decipher if not HTML-savvy
Am I missing something, what's the best solution?