Vijay Guru Prasadh's Q&A profile
Windows Forms Remove blank lines from a textbox
Blank lines in a textbox can be: A series of spaces followed by a carriage return OR A carriage return OR A line filled with tabs How can I remove all blank lines from the text entered in my textbox Thanks. That's great regex. The problem with the above is that If the text is in paragraph blocks - it rips out the blank line dividing paras. I'd like to rip out extra tabs, whitepaces-before-newline, double-blank-lines and preserve paras with a single blank line between them. And then take each para and store it into an array... ...Show All
.NET Development Issue with Socket Buffer
Hi, I am facing an issue with the socket buffers as described below: Version: 1.1.4x NameSpace: System.Net.Sockets Class: Socket Setup: An Asynchronous TCP Client Server Setup. Test: Server: Fires beginsends continually to client/s Client: Stays connected but blocks on receive.[or does not call receive] {I've forced it to do so in this case by puttin a breakpoint on begin receive} Issue: 1] Begin sends & end sends are returned successfully for a random # of times. 2] After setting the socketbuffer's size to 0, 26 begin sends & end sends are returned. Now the server would be under an impression that the client would have r ...Show All
Audio and Video Development Problem with 'content ID' while creating directory in 'persistent storage'.
Hello Everybody.... In the java script for creating a directory (FileIO_createDirectory), do we have to specify the content id also If we don't specify, whether the directory will be created or some exception will be thrown I am giving two examples below, please tell in each case what will happen. 1. FileIO.createDirectory("file:///required/app1",callback_createDirectory); 2. FileIO.createDirectory("file:///required/11111111-1111-1111-1111-111111111111/app1",callback_createDirectory); Hello to Everybody.. I am really getting confused about who specifies the content ID and how can be there more then one Content IDs possible..... Please see if anybody know about this.... thanks in advance Azaz ...Show All
Visual Studio Assembly compiles to 0.0.0.0
Hello, One of my library project always compiles to v 0.0.0.0 even though it is set to 1.0.* using vs 2005 Any Ideas Jason Hi Paul, Thanks for the reply The version is set to 1.0.* I tried it with a fixed value, but it still compiles to 0.0.0.0 Jason ...Show All
SQL Server I don't want my cube to sort my measures and dimensions alphabetically
My cube has multiple measures and dimensions, and I want them to show in the field list of my pivot table in a specific order. However, when I preview them in BI Development Studio Browser, it automatically sorts in alphabetical. I don't want Analysis Service to reorder my measures and dimensions. Is there a way to diable the sorting feature of SSAS I'm afraid it's not possible:(. Oledb specification explicitly states that measure schema rowset (same true for dimensions) are sorted by name. http://msdn2.microsoft.com/es-es/library/ms126250.aspx You can try (and I have not tries this approach myself) to name dimensions and measures so, the form a specific order and give captions that are what y ...Show All
Windows Search Technologies You may not have the appropiate permissions to access the item???? IM the administrator!
Hi, i keep getting this error which is pretty annoying. and i get it all the time when i double click some application/program im trying to open. So in other words, there are many programs i CAN'T open because of that error. I am the Administrator of this SINGLE PC, and i have even made new ADMIN accounts to see if that solves it, but i still get the error. I also got rid of al my AV and I still get the error. Can anyone please help me. I feel your pain! I have encountered the same problem installing on a Windows 2003 SP1 Server. The package I'm installing is the UNC protocol. I'm not sure if you stated what you were trying to install when you got the error, but I'm curious to see if it is the same. Have you resolved the issue ...Show All
SQL Server SSMS Launch error?
One fine day at work, I decided to open SSMS. And to my suprise, I get the following error message: "The File %CommonDir%\dte80.olb could not be loaded. An attempt to repair this condition failed because the file could not be found. Please reinstall this program." ... " The application cannot start" I've uninstalled the client tools, and reinstalled it. No problems there. Hmmm. But when I went to launch it again, alas, the message appears yet again. I have no idea why this would suddenly occurr. Any ideas anyone, anyone <EDIT: From another machine on the network, I can connect to the database engine fine.> That file is related to one of the CLR functionality, so I would say it ...Show All
Visual C# ListView Project.
Hello All, I'm doing a project like the Event Viewer Form " frmViewMessages " where I have a ListView " lvMessage " that is showing me the list of X items. If you double click an item the detail form " frmMessage " open and display the information in read only Text boxes. In that form " frmMessage " I have two buttons which I intend to move the select Item in the form " frmViewMessages " to the preview or next items. Here is were I have the problem. Could some one tell me how to achieve this part. Here is the code I have so far and is working OK but only allow me to move to just one Item down. For further refernce look the Event Viewer "Application log " in your PC. and d ...Show All
SQL Server prediction in ms sql server 2005
Hey Does anyone know if the following is possible: I want to add a column to a table that contains the predicted value according to a decision tree mining model. (I know that this is possible). But now I would like that when a new row is added to this table, and every column except the prediction column is filled in manually, can ms sql server add the predicted value automatically for this row I know it is possible to execute a Singleton query for this kind of single prediction, but I would like to integrate this in my data table, because for now my steps would be: - Create the table with one prediction column - Add the known values of all columns for one row - Use singleton query in Mining model prediction tab to know the predicted value ...Show All
SQL Server Processadd Dimension
Because I have a very large subscriber dimension and the oracle temp space of the underlying Oracle db is limited, I want to do a processadd on a dimension. The dimension is defined in a named query. In the original Datasource view, the where clause limits the result set to 'NL'. I created a new DS view with only the subscriber named query in it. I copied this code in the xmla script and I changed the DS name to the original one. In this script, I also specified the where clause to take the 'UK' records. Allthough the xmla script is being executed without error messages, it seems to ignore the ds view part and always queries on 'NL' instead of 'UK'. Below, you can find the xmla source. I cannot figure out what is wrong here! ...Show All
Visual Studio 2008 (Pre-release) General Question Navigate to a Page threw a Window
I have a Window Application (Window1) and was woundering if i was to add a Page . If I can Navigate to that Page with in Window1 Same principle as in the Media Center 2005 on my System or the Media Center in Vista thats on my other system...I want to use a Button for Navigation ,not a NavigateUri using a Hyperlink...In the Applications = Code + MarkUp book i just got it shows something similar more along the lines of a Wizard..but i'm not making a Installation Wizard thou.. Thxs Rattlerr ok,cool Thxs Lee d ....If you know of any good examples for that it would be appreciated... ...Show All
.NET Development Best Approach to Throwing/Handling Exceptions
Hi all, I am writing an application that has several layers, where in each layer there is the possiblity of Exceptions being raised. Where is it best for my to handle an exception if it is raised in a lower layer, such as the data layer For example, I have the following layers... UI Layer (Form) -> Middle Layer (Manager Classes) -> Data Layer (Database Classes). If a query against the database raises an exception, is it best to catch this in a try->catch block that is based in the UI layer in which that block calls the Middle Layer, which then calls the Data Layer Or is it best to bubble up Exceptions from the Data Layer to the UI Layer and catch this bubbled exception in each layer (I am going to use this code on a mobile device ...Show All
Windows Search Technologies Vista Machine with Office 2007- Outlook not finding emails. Instant Search/Indexing issue
Hi, I have search everywhere for a solution and still I do not seem to find a solution. Outlook is not finding any emails (instant search). I think it is not really indexing anything. Vista search works perfect (seems like it). The index says it is done (outlook is included on it) As I receive emails, the list of pending items to index just grows and grows. I am using pop accounts not exchange. (I already checked the instant search options, the indexing thorugh control panel). Any ideas. I spent the last two weeks searching for a solution, and I have read and follow the suggested solutions from microsoft, but still is not really finding anything.. so frustrated!. Thanks for reading this, and I hope somebody can help me ou ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DEVICE_OMSETRENDERTARGETS_HAZARD & DEVICE_PSSETSHADERRESOURCES_HAZARD
Hi, I receive the following warnings: D3D10: WARNING: ID3D10Device::OMSetRenderTargets: Resource being set to OM RenderTarget slot 0 is still bound on input! [ STATE_SETTING WARNING #9: DEVICE_OMSETRENDERTARGETS_HAZARD ] D3D10: WARNING: ID3D10Device::OMSetRenderTargets: Forcing PS shader resource slot 0 to NULL. [ STATE_SETTING WARNING #7: DEVICE_PSSETSHADERRESOURCES_HAZARD ] I have a rough idea what this tells me, but I would appreciate some explanation here. - Wolf First, note that this is a warning. It is possible that you need not fix anything, especially if the warning originates from an invocation to OMSetRenderTargets (ie. the RenderTargets are still what the application expects) ...Show All
SharePoint Products and Technologies could some one comment the ExcelService.CalculationA1
I think the CalculationA1 can calculate some thing base on the post ExcelService.CalculateA1 Method (Microsoft.Office.Excel.Server.WebServices) However I don't know how to use it and what ' type of scenario could use it. Any suggestion By default Trusted File Locations are set to honor the workbook's calculation method, which by default is Automatic Calculation. To change the calculation method for the workbook (in case you want to recalc manually) open the workbook in Excel, go to the Formulas Tab, Calculation Options drop down, and Select Manual then save it back to the document library. Your workbook will now only recalc when you tell it to through the Calculate methods (or through the UI). You can also change the setti ...Show All
