Hi all
I am using windows authentication within an ASP.NET application. I am wondering how to best get the objectGuid from the currently logged in user?
Regards, Egil.
In my ViewModel I have two commands:
ICommand ExecuteMeOnCheck { get; }
ICommand ExecuteMeOnUncheck { get; }
I wish to attach these commands to a CheckBox and have one of them execute when it is checked and the other execute when it is unchecked. What's the best way to achieve this without cluttering the View with code-behind?
When building an ASP.NET MVC application with High Availability is it best practice to keep the session state on the SQL Server, if there is no state server available?
Which is the best overall hash algorithm. md5 or sha1. From what I know md5 is faster that sha1 but SHA1 is more complex than md5.
I am missing anything
I am trying to add new Elements in an HTML page body by using document.createElement via Javascript, I am doing this with few if/else case and function callings. All is working fine.
Recently I came to know that I can do this with JQuery, too. I have not done too much of coding yet so I was wondering which way is the best in terms of efficiency ? Using native DOM methods or using JQuery to add elements dynamically on the page?
I am a web Developer. Even I do web design but I use the TABLE method for HTML, I want to learn Tableless coding (Div based).
Can anybody suggest me Few Best sites for learn Div Based Coding.
I'm using Zend Framework and I'd like to build a model to perform read/write operations on a database... using stored procedures.
I know how stored procedures work, but I have yet to use them within Zend Framework. Is there any built in support for stored procedures that I should know about?
What is the best practice way to create a model in this senario? Should I extend Zend_Db_Table_Abstract or some other class?
What is the best unobtrusive CAPTCHA for web forms? One that does not involve a UI, rather a non-UI Turing test. I have seen a simple example of a non UI CAPTCHA like the Nobot control from Microsoft. I am looking for a CAPTCHA that does not ask the user any question in any form. No riddles, no what's in this image.
It need not be meaningful words - more like random password generation, but the catch is - they should be unique. I will be using this for some kind of package / product code. Which is the best method available? :)
I am considering to use a function that was introduced in an iPhone OS version (say 4.0), but I may still want to support devices with older versions and just disable that function.
What would be the best practice for doing this? Is it even allowed?
I need to build a system which backup and restore system in which all the phone datas
including audio, video, pictures. From iPhone 4.0 , there is support for accessing the videos
and photos from the library . Is there any way to access the music files. I need to convert those music files into binary format . Is there any way to accomplish this...
awaiting for the response
Best Regards,
Mohammed Sadiq.
So suppose I'm developing a chess-like program using Java's Swing. I added a MouseListener to handle user input. To make a move the user must click a valid piece and then click a valid place. What's the best way to track the 2 mouse clicks in a turn? I'm thinking in use some kind of variable to record if is the turn's first click or second.
Hi All,
I want to disable browser refresh using javascript.
Actually i am using window.onbeforeonload abd i don't want it will be called when user refresh the browser.
what is the best way to do it?
Regards,
Salil Gaikwad
Just using SQL Server 2000 built in features ONLY, what is the best way to handle special characters. I am not sure if Regular Expression could be used by purely using built in features? I would like to search and replace the special characters in my queries.
Thanks
If I have a large amount of data in memory, what is the best way to copy it into a SQL CE table? The current technology stack is C#, ADO.net, and SQL CE.
My initial idea was to do one INSERT statement for each row of data, but this is time-consuming. Is there an easier way?
Hello,
I cannot find a 2D tile engine to create hexagon maps for .net. The best I can find is Xconq (http://sourceforge.net/projects/xconq/) and pygame. Does anybody where I can find any? preferrably one like xconq.
Thank you for your time and effort. I really apprecate it.
I need to adjust several views in the event that a user visits my app while in a phone call. Is there a best practice for being notified of this?
Thanks!
Which are the most useful jQuery plugins you have used.
List out one per answer(to rank the best plugins individually), and describe what it does as well.
BlockUI - Can block certain elements (or the whole page) during ajax requests.
Form Plugin
JQueryUI
JQuery Validation
TableSorter
Taconite
On the wikipedia entry for k-d trees, an algorithm is presented for doing a nearest neighbor search on a k-d tree. What I don't understand is the explanation of step 3.2. How do you know there isn't a closer point just because the difference between the splitting coordinate of the search point and the current node is greater than the difference between the splitting coordinate of the search point and the current best?
I am trying to store a username and password to hash against for future offline logging in. What is the best way to do this in objective c?
I will need the password to be stored securely.
I would like to have my code run slightly differently when running on the emulator than when running on a device. (For example, using 10.0.2.2 instead of a public URL to run against a development server automatically.) What is the best way to detect when an Android application is running in the emulator?
Hello colleagues!
Googling today I couldn't found sample or mentioning of best practice: how to escape user input in Struts2.
Of course I can manually convert characters on validate() method, but it looks too obvious. So may be exists some automation to avoid code/script injection?
This isn't the best programming question but lets face it, the server fault guys aren't well versed in git, so I think its more towards this audience.
Do I have to write a script to uninstall them?
How do I get them to go away, I want to switch to tortoise git, or portablegit in my shell, but I'm left with these annoying menu options.
I have an std::string containing a command to be executed with execv, what is the best "C++" way to convert it to the "char *argv[]" that is required by the second parameter of execv()?
To clarify:
std::string cmd = "mycommand arg1 arg2";
char *cmd_argv[];
StrToArgv(cmd, cmd_argv); // how do I write this function?
execv(cmd_argv[0], cmd_argv);