Posts

c# - VS2008 Express no longer opens projects after VS2010 express Phone -

So I have installed a New April release of VS2010 Express for Windows Phone 7 and now VS2008 Express C # no longer opens . Csproj files. I have suffered a loss because of this, because I have not changed anything in the file. I am currently uninstalling Windows Phone 7 so that I can open my file again. I am feeling a bit, although I need to uninstall the 2008 and it needs to be restored to work for everything. In the future how do I win 7 7 to win 7 interception with Express Express for 7 phones? You can change the file association without restoring the apps. If you open Visual Studio 2008, then go to Tools-> Options, there should be a button for "Restore File Association".

MAMP Mysql in Terminal -

I have installed the MAMP on the MacBook Pro Leopard OS. Phpmyadmin is working fine, but I used to practice mysql terminal Or would like to use bash. I have a problem with it. When I use: mysql -h localhost -us root-p "/" mysql -h localhost -us root " ... This returns the following error: Error 1045 (28000): Access denied for user 'root' @ 'localhost' (using password: yes / no ) Please suggest any possible solution!.): When you login with phpmyadmin, what is the credential / host is this login? - Fra Incinso Soto 2 hours ago

Linux, C++ audio capturing (just microphone) library -

I am developing a music game, it's like a singer star but you will have to play instead of singing. It is called, and it is still in the initial development phase In this game, I capture the microphone input, then run a simple FFT analysis and compare the result to the typical recorder frequencies Is getting the note played like this. In the beginning, the audio library I was using was, but I do not remember why I switched, which I am currently using. The problem is that, from time to time, it crashes randomly or stops capturing, such that no sound is coming from the microphone. My Question , what is the best option for capturing microphone input on Linux? I just have to open, read and stop the flow of bytes from the microphone. I am studying, and (joint) surprising thing: I do not think that PortAudio is a very good API for operating systems like Unix. So, what would you recommend me? Port audio is another odd option with another option I personally It ...

nstableviewcell - Multiple Lines in NSTextFieldCell -

How can I have multiple rows in my NSTableView in NSTextFieldCell? This means that there are several lines of data: Ex Stack overflow turns into www.stackoverflow.com : Stack Overflow www.stackoverflow.com The part of the solution involves telling the cell that the text can be wrapped, and tell the table that the row height is different. Receiving details is a difficult problem, or at least it was written in 2005 when it was written.

asp.net - How do I check if selected value of the ListBox is not selected in C#? -

This code will display the selected value from the list. Like if I select Item 1 , then I will get the following output: You have selected item 1 . Label1.Text = "You have selected" dropdown list 1. Selected value " "; But if I do not choose anything and I click the submit button, then I will get: you have chosen To display what should be "You have not selected anything. Please select at least 1 item." Update: I am using ASP. Net Webform Update: Answer below is actually false (Omitted for history) Once you use the selected index property, nothing is selected, the first thing will be selected immediately in the list, and return zero. The first thing in the list is "dummy item", and SelectedIndex == 0 . Check for, however, only DropDownList . Correctly SelectedIndex == -1 will show other controls obtained from ListControl (i.e. ListBox or RadioButtonList ) Here is an incorrect answer : selected in...

numpy - how to set a fixed color bar for pcolor in python matplotlib? -

I am using pcolor with custom color map to plot a matrix of values. I set my color map so that the lower value is white and the higher value is red, as shown below. All of my metrics are priced between 0 and 20 (inclusive) and I should always be as pure and always pure white as always, even if the values ​​of the matrix that do not spread the entire range, for example, if in my matrix There are values ​​between only 2 and 7, so I do not want it to be white as 2 and 7 as red, but color it as the range is still 0 to 20. How can I do this? I tried to use the "Tix =" option of darbar but it was not working cdict = {'red': ((0.0, 1.0, 1.0) This is my current code (suppose that is the value to be plotted in "my_matrix"): cdict = {'red': ((0.0, 1.0, 1.0), (0.0, 1.0, 1.0), (1.0, 0.0, 0.0)), 'blue' (0.5, 1.0, 1.0), (1.0, 1.0, 1.0)), 'green' : (0.0, 1.0, 1.0), (0.5, 1.0, 1.0), (1.0, 0.0, 0.0))} ​​my_cmap = matplotlib.colors.LinearSe...

c# - Is it advisable to have an interface as the return type? -

I have a set of classes with the same task but with different arguments. However, the function of each class can return many objects. Is it safe to set the return type as the interface? Each class (using all the same interface) is doing this with different business logic. Validate secure IMs like return; & Lt; - This is an abstract class in public boole. IsValid () & lt; - It is in an abstract class {return (validateReturnType.GetType () == type (success)); } Public IMessage valid () {if (name.Length & lt; 5) {validateReturnType = new error ("name must be 5 characters or more."); } Other {Valid return = new success ("name is valid."); } Return valid; Return type; } Is the return type of the function tested at any loss of the unit? Apart from this, is it considered a bad design that it is necessary to work for them to work for them to succeed? In this example, Valid () should be run before IsValid () or other IsValid () will always return fals...