Posts

php - Lexical Analysis libraries -

I want to make a piece of software capable of ensuring that the sentence is positive or negative I do not know where I should start. standard name for this job

sql server - Single User after renaming an MS-SQL database -

I am using the help of SqlServer.Management.Smo to rename an attached MS SQL database. New Database in the form of slow code The problem is that the database has been set as a single user after the name change. So what am I doing Wrong? Your second statement is setting it on a single user.

Accessing XMLHttpRequest from the success ajax event in jQuery -

According to the doctor, 'error' the AJAX event has passed the XMLHttpRequest object, not 'success'. > It's a shame, because I want to be able to successfully use the HTTP status code. I am doing so successfully with error. Error: Function (Data) {Warning (Data.States)} Any clue would be great. Thank you. You full () Callback in this case, which is generated after success Happens: // When a request ends (after the success and error callback is executed) a function to call. // function passes two arguments: // XMLHttpRequest object and a string which describes the success of // type of request. This is an Ajax event full: function (XMLHttpRequest, textStatus) {it; // Option for this AJAX request}

sql server - Can I loop through a table variable in T-SQL? -

Is there any way of loop through a table variable in T-SQL? DECLARE @ I also use the cursor, but the cursor seems less flexible than the table variable. Cursor before 1 selection select Colonel 1 cursor for cursor open cursor 1 curious cursor 1 next to I use the same way as a cursor I would like to be able to use table variables In this way, I can execute some queries on table variable in one part of the process, and then execute some code for each row in the table variable. Any help is greatly appreciated. Try this: DECLARE @ RowsToProcess int decarary @CurrentRow int decalare @ SelectCol1 int Decalare @ table1 table (not roid int no zero primary key identification (1,1), col1 int) INSERT @ table1 (col1) SELECT col1 to table 2 SET @ RowsToProcess = @@ ROWCOUNT SET @ CurrentRow = 0 WHILE @ CurrentRow & lt; @ RowsToProcess BEGIN SET @ CurrentRow = CurrentRow + 1 Select selectCol1 = from col1 @ table1 WHERE ROWID = CurrentCrow = - Here's your talk - end...

visual studio 2008 - Add prerequisites/dependencies to VS2008's Setup Project options? -

There are some built-in prerequisites in the VS-2008 setup projects (for example, NETFX version, VSTO, PowerPacks) that you simply check Can you close the bootstrap to make sure that they are installed but what about other dependencies you want to add, such as SQL Native Client (available only as MSI, not as a merge module) ODBC Data Provider for .NET? Is there any way to add these dependencies to a Windows Installer Setup project? Edit: M $ has provided some new bootstrap packages that can be downloaded - but of course I do not need this case. So it seems that there are options: Try creating your bootstrap package using the pre-existing instances in SDK's bootstrapper \ package folder Add a custom action or MSI to check the dependency GUID (but how?) I got some helpful information on (another example.) I also have a Bootsper Manifest Generator (|) Rykram've had, but I have not done it yet - because I think the people from the hands to work properl...

php - Throwing Exceptions in an SPL autoloader? -

Is there a way to throw an exception in PHP with a SPL Autoloader that fails it? It does not work under PHP 5.2.11. class SPLAutoLoader {public static function autoloadDomain ($ className) {if (file_exists ('test /' class classname '.php')) {require_once ('test /'. Class classname 'Class.php' '); Return true; } New exception throw ('file not found'); }} // and class // start spl_autoload_register (array ('spile ooLoader', 'autoloidman')); Try {$ Domain = new foobarDomain (); } Hold (exception $ c) {echo 'file not found'; } When the above code is called, there is no indication of an exception, instead I get a standard "fatal error: Class 'faubarddomain' not in the block met". And the execution of the script ends. This is not a bug, it is: Note : Exceptions throwing in the __autoload function can not be caught in the hold block and as a result of a serious error. The reason for...

wpf controls - WPF Scale Transform and ScrollViewer - When Zoomed can't scroll beyond original size -

I have a StackPanel inside ScrollViewer. I have a slider, which converts on scale StackPanel problem to allow zoom-in and zoom-out functionality is that when I zoom in, scroll-before content Do not accept it as 'big'. So, if I scroll a little bit and scroll as much as I can go to - it stops, before I reach the end of the content, if I zoom back at the transformer level , So I think that at that point there is absolutely no stop. If I zoom a lot, then I can only see a small fraction of my total content when I scroll all the way. I lose most material, which can change TransformOrigin to control the side; But I think there should be no care for ScrollAvrayer (or for any other control?). Are you rendering, or change the layout? You should do later.