The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
Not everything that is on the internet is bullsh1t.
I didn't say that...
I said that bullsh1t spreads very fast in social networks. See the dummy things about corona the last months...
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
I have access control application called db digitus which is used SQL server to storing data and retrieving. once i search for access control even report , i am getting this error "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding". Can anybody help me to fix this issue please?
This might not be a programming question, so I'll try to help a little. However, it would be better if it were in the database forum.
The message you have got is fairly generic for a million and one database issues and does not necessary mean that you have a timeout despite the words in the message. I get the message a lot. Often it is intermittent and can be got around by re-requesting the transaction? If that is the case in your situation, I'm afraid it is one of the "tough - that's life, live with it" problems. If the same transaction always gives the problem then it might be your SQL that is at fault - too complex query, bad indexing (i.e. wrong items being indexed), trying to return too many rows / columns, no caching etc etc - in which case it should be posted on the database forum.
The message you have got is fairly generic for a million and one database issues and does not necessary mean that you have a timeout despite the words in the message.
Doesn't necessary mean that, but often does.
Often it is intermittent and can be got around by re-requesting the transaction?
So why the question mark? You unsure?
If that is the case in your situation, I'm afraid it is one of the "tough - that's life, live with it" problems.
No, it ain't; and if you encounter it, you pay me for the solution. I've seen and solved it; sometimes it is the query, sometimes it is the processing of the results; and before you even dare to make an offer, make it a fakkin' sweet one, since I aint tempted easily, especially not after a lecture of someone who is swimming in sand.
Get back to your basket, I'm in a foul mood.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
Yesterday I asked "Why learn Rust", mostly because I was curious but seeking encouragement while facing the overwhelming existential dread of having to configure my system...
Then I distractedly did it while youtubing and.. well, that was easy!
So... why not do it hey?!
Here is how:
Step 1. Install VS Code (there is a one click installer ask google)
Step 2. Install Rust (rls) extension (click on the 4 cubes icon the left, type rust, click install)
Step 3. As per RustRls extension description, install Rust tool (google it, there is a one click windows installer for it)
=> You now have intellisense and mouse hover tips / documentation!
You are now ready to go, err.. I mean rust!
I had 0 configuration, just run 3 installers!
(might have to restart, I did restart since I was also checking windows update)
Additional optional step, I want to press F5 and debug!
I had to google 2 minute to find out how! (phew)
Step 4. Install the VS Code extensions "C/C++" (by microsoft)
Step 4a. (tricky) I had to find a mysterious hidden setting I can't find again which enable breakpoints everywhere
Step 5 create a debug config in your system, Run > Add Configuration, choose "C++ Windows Launch", then edit the .vscode\launch.json file "program" variable to point to your program
"why not xxx?" is not really a question, at best a rhetorical question, but really a suggestion to do xxx.
Other than that I suppose you mean to ask if I had any ulterior (or posterior ) motive to learn rust?
To that I will say yes. Yes I do.
Based on assumptions yet to be proven though, so time will tell...
If you really want to know, just like Microsoft using the ultimate C++ power to write desktop app, instead of C#, I am trying to see if I could comfortably write ultimate desktop app in Rust.
Tried C++ but that was painful. And I don't just mean the duplication of info (.h, .cpp), but the super slow recompile, some interop issue with arrays (I think it was not easy to pas array into C# and then into DirectX, had to make copies...), trouble working with generic, if I remember right, and I forgot what else...
I hope it might be painfree with Rust!
And also DirectX friendly.. (which C# is not)
And also.. reflection friendly (or a working alternative, such as the new .NET 5 code generator)
In other news I can already see that startup times are faster. While a C# / .NET Core start in a barely perceptible amount of time, a rust console app is already finished before my finger even rise up from enter!
For the time being it will be for fun for my home project..
We shall see... My home projects are more often than not desktop app... so I hope that the WinRT binding is working well enough! Yet?
I never found C++ to be particularly painful. The thing about C# is it stores arrays in different memory order than C++ for multidimensional arrays, IIRC so yes, making them work together would require a copy.
A better way to do it (and I'd probably have to see how feasible this is as I haven't tried DirectX coding in years) though would be to let the unmanaged code pass you arrays in different memory order, and in the C# code just account for it. Your indices would need to be translated. Easiest thing i can think of is to just map everything as a 1d "flat" array using interop, and then do the math of of y*totalX+x or vice versa to translate.
Real programmers use butterflies
Last Visit: 15-Aug-20 1:37 Last Update: 15-Aug-20 1:37