AstAn's Q&A profile
SQL Server Report Server goes to sleep....zzzzzzz
The known issue about the report server going to sleep after being idle for a while is causing me a problem. I have set up a dummy sibscription to create and email a report every hour and also have set the IIS setting on the application pool the RS uses (shut down worker process after being idle for x mins, I have set this to 860!). But the report server still goes to sleep and it can take up to 60 seconds for a report to start up. What else can I set to reduce this problem If reporting service has to perform quickly I ussually copy the setting of the apppool from Sharepoint. These apppool are configured to recycle at a given time (tab 1) and no recycle after some minutes (tab 2). Hope this would ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Breakout
Hello, I have about a year of experence with C# and I have tried a simple game using XNA, I made breakout with some crappy homemade graphics Would anyone mind to look at my code and tell me what I could do better with Note: The game is not completely done yet but for the most part, it works. Code is at http://joshmackey.net/programming/XNA/XNA%20Breakout/ OrpheusTheBard wrote: Or another fun alternative would be... take a snapshot of the mouse X position when the ball is like 15 pixels above the paddle, and then take another snapshot on the moment of collision. Subtract both values, and that should give you a value of how "strong" and "fast" the user movement was. You can then ...Show All
Visual Studio 2008 (Pre-release) Opening a URL to a new browser instance
Quick question... is the WPF recommended way to launch a URL in a new browser instance still to do this I'm just wanting the URL to open in IE or whatever default browser is used. System.Diagnostics.Process.Start(url); Or is there something new that is better Yes, that way you ensure the shell instantiates whichever browser happens to be the default on that box. If you don't require a new Browser instance for the navigation, and want to keep the user in the same application context, you can do for example System.Windows.Navigation.NavigationService.GetNavigationService(this).Navigate(new Uri(@" http://www.microsoft.com ")); (where this is used to get the navigation container). Note: either approach won't ...Show All
Game Technologies: DirectX, XNA, XACT, etc. MC2 Editor
I can not see the MC2 Editor being part of the XNA project. When I build/rebuild MC2 the editor files are not updated. What do I do wrong or How can I make changes and updates to the MC2 editor I'm sorry if it seems like I'm hijacking this thread. I just thought it more appropriate to keep the number of MC2-specific threads as low as possible. It seems I've stumbled across yet another MC2 Editor bug. When starting the editor and selecting a New Map 60x60, I was more than a bit surprised to see "newmap.tga" ending up at ~9MB while"newmap.burnin.tga" was at the more appropriate size just over 2MB. Set a breakpoint at CreateScaledColorMap() in EditorData.cpp, and it will all become ...Show All
SQL Server how to loop through several excel sheets in a file in integration services
Hello, I'm new at Integration services and I have an excel file with information in several worksheets. I want to loop through some specific sheets to retrieve the data and save it in a database table. I know how to retrieve the data from one sheet, but I don't know how to do it for several sheets. Any ideas ...I would appreciate any help. The last bit of pre-processing I want to do in Excel, I know how to do in an Excel macro, but not in SSIS. Can anyone adapt this into an SSIS Script task Here is the macro code snippet: Sub ClearWorksheets() With Application .Calculation = xlManual .EnableEvents = False Worksheets("MyData").Range("A:H").Clear .EnableEvents = ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Please Post First Impressions Here.
For the working stiff's like myself, could those of you who have successfully downloaded GSE post you first impressions here. Thanks. I'm an EE who likes to write software in my spare time (go figure). I have been learning 2D game development for the past few weeks using Visual C++ and Visual C#. All I really want to do is make some small, fun 2D games with custom sprites for my family and friends. I got the XNA Game Express announcement email from Microsoft about an hour ago. I downloaded it (already had Visual C# 2005 Express installed) and installed it. I saw on this forum the info on the mini tutorial in the help file for creating your first XNA game and ran it. I had it up and running and a sprite bouncing around on the sc ...Show All
Smart Device Development Tabpage, panel cann't capture mouse-click event
Hi Experts, I am creating a form and putting one tabcontrol on that form, now i am trying to put panel control on one of its tabpage1. Now whenever i am trying capture any mouse event on that panel i am not able to capture any mouse event on that panel. one more thing i would like to add that i am handling that mouse events in another .cs file. for example: i have created a form in form1.cs and on that form1.cs i have created tabcontrolwhich contains two tabpages, and one the tabpage contains the "panel" and there is one another .cs file i.e "sign.cs" in which i am trying to capture the mouse event occured on that "panel". But it doesn't seem to work out. Am i missing something while initialisation of contr ...Show All
Visual Basic Problem retrieving specified graphics files to form
Hi, I have Bitmap files whose names are concatenated from a drawing and a reference number. I need to be able to retrieve all the files of drawings for a specific reference number. The following Do While loop will work using dwgNo as the condition, until the actual drawing number does not exist, at which time it naturally throws an exception. Private drawings As New List( Of Bitmap) Do While (some condition) curFileName = "Drawing " & dwgNo & "-500" & ".bmp" curImage = Image.FromFile( "C:\temp\" & curFileName) drawings.Add(curImage) dwgNo = dwgNo + 1 dwgQty = drawings.Count Loop I'd like suggestions on whether there is a better wa ...Show All
Visual Basic Datagrid refresh after record insert
Hello, I've the following code to insert a record into an MS Access database when clicking on Button1: CODE Private Sub Button1_Click(ByVal sender As System .Object, ByVal e As System.EventArgs) Handles Button1.Click con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=""C:\Programacao\Visual Basic\Inapal\ReportIt\ReportIt.mdb"";" con.Open() sSQL = "SELECT * FROM [Scrap]" da = New OleDb.OleDbDataAdapter(sSQL, con) da.Fill(ds, "Scrap") Dim dsNR As DataRow Dim cb = New OleDb.OleDbCommandBuilder(da) dsNR = ds.Tables("Scrap").NewRow dsNR.Item("Tipo_Peca") = ScrapCombo.SelectedValue dsNR.Item( ...Show All
.NET Development converting a byte array to a string?
I have a program that acts as a server and when it receives information I would like to get all the data until a break char is given. for example the return key. The problem I am having is converting the Byte Array back to a string, it seems to only be giving me numbers. If you would like me to post my code to explain then I will :D. See this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1940704&SiteID=1&mode=1 ...Show All
Visual Studio Team System Get specific version (history) after a rename/move
Early this week, I moved all elements off the main trunk to a child branch. This move did not go as smoothly as I would of liked. The first problem is that when I moved all the folders all sub-elements also got renamed as well not just the folder element itself (which would have been the case with Rational ClearCase. What this has caused is that we are unable to get a specific version that is before the move/rename version. We do have a work around, where we just get the details of the version we want copy & paste it over the latest version. While this does work I do not like. Is there a way to get an older version after a rename/move has been preformed FYI, when we try to get a version of the element previous to the move, it u ...Show All
Software Development for Windows Vista Accessing workflow instance members from WorkflowInstance (runtime event handlers)
Hi All, Is there a way to retrieve a strongly typed reference to the actual running workflow from a WorkflowInstance instance More details: I have a runtime event handler (loaded, idled) that receives a WorkflowEventArgs parameter. In that method I would like to access some of the instance properties (DependencyProperties) of my own workflow class. The only object I have in that method is a WorkflowInstance with an InstanceId. So the question is, how can I get a MyWorkflowClass instance if I have an InstanceId Thanks in advance. Shelly, I'm also concerned about lack of access to the workflow instance. I understand why the workflow passivation feature requires that you hide the workflow instance ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Is the Keyboard class in the 360 xna framework useable?
I was using the object browser in C# express and noticed that the Keyboard class was present for the xbox360 (C:\Program Files\Microsoft XNA\XNA Game Studio Express\v1.0\References\Xbox360\Microsoft.Xna.Framework.dll ) assembly. Under the Microsoft.xna.framework.input namespace. So I was wondering is this by mistake If I plug in a usb keyboard into the 360 can my app/game make use of it (I don't have creators club yet to test it) Yes. It works fine... except that on my compact Cherry keyboard, Left-Ctrl, which I was using for shooting, is not recognised (and maybe some other keys - haven't tried all of 'em). Stuff like arrow keys, spacebar etc work great. Handy for quick testing when you don't want to r ...Show All
Game Technologies: DirectX, XNA, XACT, etc. directdraw not available?
well, i tried to play haloCE but the problems with directX. on the display tab, all of those things are "not available" any help would be appreciated. heres the information from directX and a screenshot. i hope this is the right spot to post this in! by the way, im on a toshiba 1005-S157 laptop. http://forum.ccleaner.com/index.php act=Attach&type=post&id=877 You will need a better graphics card if your laptop is upgradeable. Otherwise you will need to get a better laptop/pc. This isn't a Windows/DirectX problem, it's a hardware problem. ...Show All
Windows Forms DataGridViewCellStyle, BackColor/ForeColore Edit
Hi, It seems as generating a cell style object combined with the CellFromating event is the most applicable way to dynamically change cell format properties as the background or foreground colors. The problem is posponement of the actual change to only take place after conclusion of the edit session, for a particular cell. Is there anyway to circumvent this and not to zigzag within the cells or use the EndEdit and BeginEdit events. Also, change and return of the current cell to another cell did not do the trick either. Regards, Reza Bemanian The datagridview's EditingControlShowing allows you to set properties for the editing textbox like charactercasing and autocomplete mode. Unfortunately you can not cha ...Show All
