NewWorld's Q&A profile
SQL Server Clustering Options
What options do I have to cluster SQL server 2005 Currently we have three servers that can be used for the cluster. We currently don't have any shared storage, but plan on getting a SAN down the road. What do you guys recommend I would like to have some redundancy in the database server. You must have shared storage (whether its a SAN or direct attached storage) to use fail-over clustering in SQL Server 2005. You can use Database Mirroring to have a redundant copy of a database without shared storage, so it depends on what you are trying to do. Database mirroring works at the database level, while fail-over clustering works at the instance level. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. general use of XNA vertex types?
I am trying to create some methods to manipulate various parts of the XNA vertex structs. I want to be able to pass all the different vertex types as arguments to these methods. Because they are structs they don't derive from a base class other than ValueType. If I use ValueType as the parameter I don't have access to the propertys of the vertex. Is this a case where refelection would be usefull Can anyone help me find a way to write a method that can access the position property of any type of vertex. I hope I have been clear enough. Thanks. You can do something like that : /// <summary> /// <para> Custom vertex typesfor ground. </para> /// </summary> ...Show All
SQL Server Content Manager can't access rs properties page
Hi, in one of our team projects users whom are members of the reporting services “content manager” role are not able to get onto the “sql server’s reporting services” properties page of their team project. Instead of that page they receive the following error message: The permissions granted to user '<UserName>' are insufficient for performing this operation. (rsAccessDenied) With four eyes we double checked that the users really have the content manager role, we also tried all kinds of role combinations with no success. The interesting thing is that as soon as they ‘only’ in the Browser role they have access to that particular page – but as expected are unable to administer their team projects reporting services. The ...Show All
Visual Basic Failed to add TableAdapter error
I've created a solution with a windows forms project and a class library project. In the class library I added a "DataSet.xsd" file. When I try to drag a "TableAdapter" from the toolbox to the design surface of the dataset I get the following error: Failed to add TableAdapter. Key not valid for use in specified state. in a messagebox... Any ideas how to get around this When I hit OK the tableadapter goes away. Thanks, Jason I've gotten the same error numerous time only it goes like this: Failed to add TableAdapter. An item with the same key has already been added. The only way i have found around this error is to manually add the table and table adapter by first creating a new D ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Reading the vertex data from the opaquedata in a content processor.
My question is really how would this be accomplished I asked earlier how to write a custom processor, and now I've got one, but I'm not sure how to get vertex data, or certain vertices out of the NodeContent and put it into the ModelContent. I'm trying to do this for precisely the kind of thing that was demonstrated in the "Gamefest Content Pipeline Demo" video. I would like to read certain marker batch vertices to be able to give me access to that data for placement of other meshes on top of a base mesh at the right spot. I would be much appreciative for help with this! :) Put a call to System.Diagnostics.Debugger.Launch() in your processor, at the point where you want to start debugging ...Show All
Visual Studio Express Editions how do i set gradient backcolor on form
hi i'm new to programming. how can i set the forms backcolor to a gradient color. example blue on the top and white on the bottom. Thanks this would come from overriding the On/Background/Paint event. Since this is my first time doing something like this....try this: Protected overrides sub OnPaint(ByVal e as PaintEventArgs) Dim theBackground as System.Drawing.Drawing2D.LinearGradientBrush theBackground = new System.Drawing.Drawing2D.LinearGradientBrush(new Point(0, 0), new point(ClientSize.Width, 0), Color.Blue, Color.White) e.Graphics.FillRectangle(theBackground, ClientRectangle) end sub ...Show All
.NET Development How do i send email in both HTML and text format?
Does anyone know how i can send an email with two bodies - one in HTML which will be displayed if client supports HTML, and one plain text message that will be displayed if the client does not support HTML .net 2.0 has the MailMessage.AlternateViews MailMessage message = new MailMessage( "jane@contoso.com", recipients, "This e-mail message has multiple views.", "This is some plain text."); // Construct the alternate body as HTML. string body = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">"; body += "<HTML><HEAD><META http-equiv=Content-Type content=\"text/html; charset=iso-8859 ...Show All
Visual Studio Express Editions read xml
1. hi all im trying to get values from a simple xml document but im unsure of the best way so far i have 2. textReader.ReadToFollowing("invoice_number") 3. textReader.Read() 4. TextBox1.Text = (textReader.Value.ToString) textReader.ReadToFollowing("customer_title") 5. textReader.Read() 6. TextBox2.Text = (textReader.Value.ToString) textReader.ReadToFollowing("customer_firstname") 7. textReader.Read() 8. TextBox3.Text = (textReader.Value.ToString) 9. however after it has lopped through about ten it wont get any more values there must be a more efficient way. part of the xml document is formatted like this any help would be greatly appreaciated 10. - <job_sheet> 11. &l ...Show All
.NET Development double - precision?
double a = 150.1; double b = 150.0; double temp = a - b; temp = 0.0999999999999943 Why doesn't it equal .1 Apparently, I don't know my doubles. The double type uses a binary representation, and values like 0.1 must be represented as a never ending decimal expansion (0.000110011001100110011001100...). Of course, there is a limited precision, though, so it is cut off at some point. This is similar to what you would get if you try to represent 1/3 + 1/3 + 1/3 in decimal with (for example) precision to 5 decimal places: 0.33333 + 0.33333 + 0.33333 = 0.99999. This is almost, but not exactly, equal to 1. The reason why the decimal type doesn't have this problem (I think) is because it internally uses a decimal represen ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Managed 3D API for CAD-like software
Now that XNA is out the door and Managed DirectX is more or less a discontinued product what are you telling people that need a managed 3D API for software that is not gaming related We started to develop a CAD-like software package for house automation and used Managed DirectX. Now it looks like MDX will not see any updates in future (DirectX 10 ). We wouldn't want count on an API that is bound to die (or to become outdated). But XNA Framework on the other hand doesn't seem to be the right API for the job either since it seems to be too much tailored for gaming. What is Microsoft's message here Managed 3D graphics is only reasonable in casual gaming area (XNA) or simple Datavisualization (WPF) For everthing outside that, better stay u ...Show All
Visual Basic Excel Allignment
Break the by cell value for example if storage location is not same then do break. 'startRow = 9 'FinalRow = nRows '.Range("A65536").End(Excel.XlDirection.xlUp).Row 'LastVal = .Cells(startRow, 8).Value 'For i = startRow To FinalRow ' ThisVal = .Cells(i, 8).Value ' If Not ThisVal = LastVal Then ' .ActiveSheet.HPageBreaks.Add( _ ' before:=.Cells(i, 8)) ' End If ' LastVal = ThisVal 'Next i 'Break the record in page if more than 39 record in 1 page If nRows > 39 Then nPagebreaks = Int(nRows / 39) nPagebreaks = Int((nPagebreaks * 10) + nRows) / 39 For i = 1 To nPagebreaks xlApp.ActiveWindow.SelectedSheets.HPageBreaks.Add(Before:=R.Cells(39 * ...Show All
Visual Basic Help, My program exits unexpectedly with no error codes.
My program exits for no apparent reason unexpectedly with no exit codes errors. My guess is that it might be related to timers that could be destroying the stack. I say that because every time that I could catch it I found the following condition. Timer A would start its timer elapsed routine, during that execution time timer b would fire its routine, and before timer b finished, timer a would exit its routine. I originally had 4 different timers involved, and reduced that to just two, one having a very short execution time, and the problem got a lot better, but still happens. I have made the two timers involved to be thread timers, hoping that it would eliminate any conflict, but it does not seem to help. How do I go about determining fo ...Show All
Visual Studio 2008 (Pre-release) Change binded value "on the fly"
Hi, I've got one textblock, which text property is binded to another control's width : < TextBlock x:Name = " contactName " Text = " {Binding ElementName=listBox1, Path=ActualWidth, Mode=OneWay} " /> It works well, but my problem is : I don't want the width but the width minus one. For instance, if the width is "100", I'd like to have "99" in my TextBlock. I guess I can make it in C# by using an own-crafted dataconverter, but I'd like to know if I can make this with only XaML, or if there is a simpler way with C#. Thanks in advance. you want this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=890020&SiteID=1 ...Show All
Visual Studio Express Editions If I open another form(form2) and I don't want that user will touch the first form(form1)?
like when you open a msgbox... yaniv On Form1: Me.enabled = false Form2.show In Form2 Process Process Process Form1.enabled = true Or the proper way to do it is to call a Public readonly property in form1 that has the line: Me.Enabled = true There are snippets for readonly properties. ...Show All
Visual C++ Tooltips disappeared after switch from VC 6 to VC 8 due to breaking change in CWnd::OnToolHitTest()
Hello everybody, after switching from Visual C++ 6.0 (VC 6) to Visual C++ 2005 (VC 8), many tooltips in my dialogues would not show up anymore. It took me quite a while to pin down the reason for this behaviour: The tooltips don't show up anymore for all child window controls which lie inside the window rect of another control like a group box or a tab control(*) preceding it in the tab order. The enclosing control has child window id IDC_STATIC, which in VC 6 meant that it was ignored by CWnd::OnToolHitTest() (more precisely by _AfxChildWindowFromPoint(), which is used by OnToolHitTest(), see below). Now in VC 8 the constant for the controls-to-be-ignored chang ...Show All
