Well never used Visual Studio Code, never had to. Just curious if it even came with a debugger (I thought it was only a text editor) but it does, they're using Mono
Hey everyone. Yes, Visual Studio Code debugs, but I'm not sure how intuitive the process is. I've used Eclipse (for Java) before, and VSC isn't as user-friendly, I don't think.
@deostroll The regex itself should be very similar, with the same escape sequences. The main difference is that it should be passed as string, rather than as a /-delimited sequence, and the g is unnecessary - it means "find all matches, rather than just the first", so it would simply be a call to Regex.Matches rather than to Regex.Match.
Oh, and you'll have to escape the " in the middle there with a \".
/home/kame/Desktop/main/programme/monodevelop/learningcsharp/learningcsharp/Program.cs(7,7): Error CS0246: The type or namespace name `Threading' could not be found. Are you missing an assembly reference? (CS0246) (learningcsharp)
Well, as it turns out, yes, there was a good reason why my LayoutUpdated was called every 30ms. Should have noticed that number, 30. Should have been a clue.
@SebastianL Unfortunately I don't work with C++ that takes a small decade to compile. I don't have time to do anything during a compile. If a compile exists at all. :/
@deostroll But.. why does it need to be real-time?
IME, test duration depends entirely how you code your integration tests. If it's just in-memory then it's pretty quick, but the moment you start to do full-stack headless browser tests or database-setup-teardown it slows to a crawl
the slowest CI build I ever worked on was about 1 1/4 hours
that was using a 4-machine cluster to run full stack UI tests
which was, in turn, only 1/10th of the entire application suite. Sometimes we couldn't get a working cut of the entire system for 3 weeks at a time.
Keep finding little nuggets, like a server call to "mark item as seen" that's called on every SelectedItemChanged, regardless of whether it was already marked as seen.
It still takes about 1.5 seconds to select an item in the list. Way too long.
I need to check a string input and accept strings that matches \w+\.\w+ so for example fgdfg46df5g4d.684dfg564dg is correct. But the string 0.0 or 5416541.5 shouldn't be accepted. I made two regex, one for the \w+\.\w+ and the other for the number match and I check the two regex to know if I can validate the input string. Should I try to combine those two regex & is that possible?
Ugh. My main DTO object, Entity, comes from the server with a string field called JsonEntityGraph, which is a JSON-encoded object. So now when I want to create a viewmodel for each of my results, I need to deserialize the JSON-encoded object and read its properties. This means that instantiating a VM takes ~15 ms extra for the decoding, which means 100 items take an extra 1.5 seconds, which is noticeable.
@AvnerShahar-Kashtan I'll parse some data, the data will contain a variable path. A variable path is composed of project_name.variable_name. A project name can contain any word caracter. A variable name can contain any word caracter plus some other (not relevant). So I would like to match that. My problem is that if I check this with ^\w+\.\w+$ it'll also match floating numbers
@AvnerShahar-Kashtan so I made two checks to remove floating numbers but I would like to combine those two checks in one
I couldn't think of a solution and I wanted to know if it was possible, and if it was I would have learned something new, if it's not it's not a big problem I'll keep the solution I made
@Alex it wouldn't allow 4fdgdfgdfg.4sdsrgrgr465rg4 which would be a valid path
@SebastianL you can right-click on a variable while debugging and use "Add object id", it then adds an id which is specific to the object instance, and it will be shown in the debugger
@Sippy But instead of doing a foreach, do ` for` so the IndexOf doesn't have to scan the entire collection just to get an index you should've known in the first place.
Guys, I got a requirement that need to protect the content of the pendrive to be used for only one machine. I mean the content when it is installed for one machine, it should not be installed on other machines like a license setup's used to be. But am not sure what to search for this doing this?
@Ganesh You'll want to generate a machine-based unique key, so, look into hardware identifiers. Then, you want to create a key based on the hardware identifier, so look into password derived key generation functions. Then, you can do regular encryption, like AES.
You may need to create a virtual file system too, in a container, otherwise it's still pretty much a moot effort.
Oh and don't forget to protect your binary to avoid simple machine key extraction and spoofing. But that depends entirely on how military grade you want to make your solution
@Sippy Sure. But, if the key is a physical machine then not knowing the key makes it entirely impossible to decrypt to virtual container (other than brute forcing, that is). Therefore, even if you make it open source, and give the encrypted virtual container on a pen drive to someone that doesn't have access to the physical machine, they cannot use the encrypted content AT ALL. So, it's protected, in a way, because the key is not accessible ;-)
Well.. you can record the output. If humans can see it, you can register it digitally, too, so yeah, the entire endeavor is a pointless thing to begin with
@Squiggle yes it might be correct but what I am looking if that does not work what else I can tell them that this is not possible and these are possible to do
@Ganesh It's a requirement put down by someone who has no clue about IT. You cannot, and I repeat, you cannot prevent copies of digital content. If you have a need to present something to a human being, it must enter an output device and be transformed into something we can conceive. That transformation can always be captured, digitally or after being transformed.
You cannot easily convert your method to handle a generic list, because well your method is not generic. It requires for each item in the list to have properties Cnt and Year, for your method to be generic you have to add this constraint.
public interface IYearTemplate
{
int Cnt {get;set;}
...
So I have a make target that runs my app, which is in a subfolder. How do I run the app in the subfolder with the working directory set to the subfolder as well? i.e. where I would cd dist; myapp in cmd, what can I do in a makefile?