Monday, 15 June 2015

c# - How do I get a DataRow from a row in a DataGridView -


I am using a database of Windows Forms DataGridView . How do I get a user from the selected row in DataGridView from DataRow to DataTable ? What is its source?

  datetime line = (DataRowView) DataGridViewRow.DataBoundItem) .Rao  < / Pre> 

Assume that you have made a simple DataTable .

  MyTypedDataRow line = (MyTypedDataRow) (DataRowView) DataGridViewRow.DataBoundItem). Row  

assuming that you've forced a typed dataset.

See for more information.


java - Data-driven tests with jUnit -


What do you use to write data-driven tests in jUnit?

(My Definition) Data-driven Examination is an examination that reads data from some external source (file, database, ...), per line / file / whatever executes a test, and Displays the results in a test runner as you have different tests - the result of each run is displayed separately, not in a huge total.

In JUnit4 you can use teststars to perform data-driven tests.

This is not very well documented, but the original idea is annotated with a static method ( @Parameters ) that gives collection of object arrays. Each of these arrays is used as a logic for the test category creator, and then the normal test methods can be run through the set field in the constructor.

You can write code to read and parse the external text file in the @Parameters method (or get data from another external source), and then you can test You can add new tests by editing this file without recreating them.


why am I getting 'could not find gem rails locally...' when trying to upgrade InstantRails2.0 to rails 2.3? -


Full error message "Could not get rail gem locally or in the repository" About Rail Upgrade Have read and there is no information about this error. I'm running on WinXp Rail Wiki said that I should first update_rubygems, and it appears that I was able to do this successfully. My Ruby version is 1.8.6. I forgot this special mistake and I am convinced that gems are included in gem sources. Rubyonrails.org, which does mine.

Any suggestions? What other environmental information do I need to provide?

If I have problems, then is there any way to download and install the latest version of Rail?

I am not very familiar with the tracks immediately, but it seems that the Rail 2.0 has not been updated. is.

There is a problem here, whose railway from Gitul finally resolved it.

If that does not work, it's been a while since I've developed the railways on windows, but if you update your version of Ruby Gems (described in the link) So the rail should work to install and update the following:

  Installed Rail Rail  

If this does not work, I will uninstall and install it on the basis of it. This will get you setup to create a suite of built-in window and server window that comes with the rail (WEBrick or mongrel if you install the gem). Whether you do not need a server for the development of heavyweight DBS and developers - just a hassle.

If you want to use Windows as a server platform then some things may be a bit complicated. I did this for a while some years ago, but it was such a pain that Why I learned Linux, and it was worth good when I did it on Windows, so I used to install my own SQL and Apache.


Is there any open-source library that can be used to search the Deep Web? -


Is there an open-source library that can be used to search?

Metadata is the Open Archive Initiative Protocol for Harvest that uses HTML on XML. You can find it here:

Apart from this, deep web (also called the DeepNet, invisible web, dark web or hidden web) refers to the World Wide Web content, the surface of the web Not part of indexed by standard search engines.

Commercial search engines have started looking for alternate methods to crawl deeper web. Sitemap protocols (previously developed by Google) and Mod OE systems allow search engines and other interested parties to search deep web resources on particular web servers. Both systems allow web servers to advertise URLs that are accessible on them, allowing automatic search of resources which are not directly connected to the web. Google's deep web surfing system prepares presentations for each HTML form and combines the resultant HTML pages into the Google search engine index. Results of front results for one thousand queries per second for deep web content In this system, submission is pre-computed using three algorithms:

(1) Accepting Keywords Select input values ​​for text search input,

(2) Identify the information only for a specific type of value (e.g., date), and

(3) less input By selecting combinations, the web search index Switch to generates the appropriate URL for inclusion.


actionscript 3 - Type cast error in dispatchEvent -


I have three sections: A, B, C Class A transmits an event, square B handles it and then it will send it. However, I found this strange type of casting error in the transmission function of B, which looks like this:

  Public function handler (Event: some avent): zero {removeEventListeners (); DispatchEvent (event); }  

If I change it to the following, I do not get any errors:

  Public function handlers (Event: SomeEvent): Zero {removeEventListeners (); Var newEvent: SomeEvent = event.clone (); // Send a clone of yourself Event (new event); }  

Can anyone help me on this? Thank you.

Are you using a custom event? If you are, you need to define the clone method. When you "redirect", Event Flash automatically clones the event and sends the clone. This is the reason why you change your code to event .clone () This works. So, in a nutshell, your second implementation is right.

If you do not want to write that extra bit code, you should apply the clone method. Documents of EventDispatcher.dispatchEvent () show this:


.net 3.5 - Visual studio 2008 - Referenced project dll -


I've got a project named by my project name. And in this project I refer to another project named MyProject.Models.

MyProject.Models is a reference to MySQL.Data.dll. In the reference option, the local copy is set to true.

My problem is that manually MySql.Data.dll must be added to the project in MyProject.Views. Which I think is not a great idea, I would just like to add that dll project to MyProject.Models because it requires the project which is dll ...

This means that MyProject.Models is highlighting something in its public interface, which has some reliance on MySql.Data.dll - for example, a class that MySql.Data.dll is derived from some, or a type of property defined in MySql.Data.dll if you are using MyProject , You see the compiler error you receive. The reference to the scenes MySql.Data.dll should help you track down what the dependency is: I think it tells you what's happening in MySql.Data, but it should be expected that you have the model project You can give an idea about it, depending on it.


.net - Team Foundation Build - resolving cross solution project references -


We have a shared project referenced in many solutions, that is when TF faces built-up reasons:

'Error MSB3202: Project file "...... \ trunk \\\ sharedproject.csproj" did not get' '

In the form of directory structure on the build server, it is fine that the source control Is not mirrored. Is it possible to modify the build file to search in a specific location for this project?

Perhaps you consider adding a DLL reference to a shared project instead of a project reference, and After that, include Dell in your source control. If this is not an option, you can always create another solution file that refers to the correct path of the Share Project file on your build server, and that build is a solution on your server uses it. I am bowing down to the DLL reference, however, the option is difficult to maintain for two long periods.

Hope it helps.

/ Klaus