« first day (3146 days earlier)      last day (1803 days later) » 
02:00 - 13:0013:00 - 22:00

1:08 PM
I'll try to formulate this half good:

Environment: Visual Studio (2019)
Point of intrest: Bookmarks (Ctrl + K, Ctrl + K)

Anyone know if it is possible to link creation of Bookmarks to the current git-branch you are working on?
e.G. Creating a Bookmark while working on branch "Feature1" will only exist in the branch "Feature1" and not if i switch over to the branch "Feature2"?
 
@Squirrelintraining oooh, that would be cool. same with breakpoints really. Let me know if you find something?
 
I believe a bookmark is only a personal metadata marker, and is meant to be used individually and manually.
Same goes for breakpoints, sharing my breakpoints sounds like an awesome feature
 
@HéctorÁlvarez Aye, but VS or an extension could have a file.bookmarkLocations and store which lines are bookmarked / what branch
 
"I can't take this shit any more! Here have my breakpoints"
 
in therory
 
1:19 PM
I mean technically it's possible
 
Yeah it would be very easy to implement
 
Just remove .vs from the gitignore
That's gonna fuck with everyone else on the project though
 
@Squirrelkiller BUt then you run into the problem that evry1 has the bookmarks
 
Right if you upload your personal settings you'll shit on everyone else
 
0
Q: VS2019: Extension or default behaviour to link a bookmark to the current git branch

Squirrel in trainingEnvironment: Visual Studio (2019) Point of intrest: Bookmarks (Ctrl + K, Ctrl + K) I'm looking for either an extension or the setting to link a bookmark (hotkey Ctrl + K, Ctrl + K) to the current git branch that is beeing worked on, in order to keep bookmarks branch specific. For instance: Cr...

Aye
 
1:20 PM
At my last job nobody in my department knew about that and they all kept whining about their setting restarting, blamed some SVN incompatibility and they copy-pasted the user files every time they pulled.
 
A local file which is ignored and handles the branch <-> bookmarks relationship would work tho
@HéctorÁlvarez lel
 
Prepare to visit UserVoice
And throw your idea into the endless void
 
Nevermind
I'm off for the day
cheers
 
Cya
@Squirrelkiller Whats dis (UserVoice (not DI))?
 
Chao
di? Dependency injection usually.
 
1:30 PM
@Squirrelintraining aswell: Please like, comment and subsribe!
 
Did you just ping yourself?
UserVoice is a voting platform microsoft used for input
Like this
But I just saw it's now on theri own platform developercommunity.visualstudio.com/content/idea/351684/…
 
@Squirrelkiller Multiple time today already
 
@Squirrelintraining Where do I subscribe? Do you have a patreon?
 
@RoelvanUden Not yet, I've got a paypal
But then again one can't subscribe to that :<
I can create a youtube account and fill it up wiith nasty cat vids!
Sound good?
 
You can only donate your time: github.com/Librelancer/Librelancer
 
2:30 PM
BUG!
milleniumbug has fled from battle
 
2:52 PM
posted on May 28, 2019 by ericlippert

Last time on FAIC we reviewed the meaning of “expected value”: when you get a whole bunch of samples from a distribution, and a function on those samples, what is the average value of the function’s value as the number … Continue reading →

 
3:12 PM
Sup
 
I recently switched to a new computer, and I pulled a WPF project down from the Team Foundation server and its returning a ton of nonsensical errors. Like XML errors (XML Name Expected) being returned from a .xaml.cs page. I have "<" and ">" in strings and I think it's interpreting them as the start of an xml tag. Some of these errors are even coming from commented out code.
 
3:50 PM
Hello, When you use custom IComparer<T> in Array.Sort() is it still using one of Heapsort or Quicksort in the background?
 
4:16 PM
Can C# handle a file (50mb) with 800k lines?
 
That's less a question about C# and more a question about the stats of your computer.
 
@AshSmith more specific
 
-1
Q: Reading large HTML file in C# freezes application?

Ash SmithUsing Rider IDE, the files around 50mb, 800k lines, and it seems to cry and freeze up around the 18000th line. Not sure how I can get past this without using another language. I've also tried File.ReadAllLines, produces the same result. I have 16gb memory in my computer so it should be chewing t...

 
5:08 PM
ReadAllLines creates an array, and arrays are contiguous memory. You may have plenty of RAM, but you don't necessarily have enough all in one place and if you're getting OutOfMemoryException, that's probably why
You'll have better results doing whatever processing you need one line at a time
Or something like HtmlAgilityPack will have much better management of memory for processing HTML specifically
 
5:24 PM
Hi peeps,
I want to create a class that makes light work of my current logging method

https://stackoverflow.com/questions/56345987/how-do-i-create-a-class-to-help-me-log-my-application-user-activity-clean-codi

can you help me?
 
posted on May 28, 2019 by Phil Haack

I ended my last post on package security through fingerprints with this ominous note…

 
 
1 hour later…
Is there a reason I'm missing why the list is limited to one item?
if (!links.ContainsKey(linkName))
{
    links.Add(linkName, new List<string>() { line });
}
else
{
    links[linkName].Append(line);
}
 
Rob
7:05 PM
Looks like it's a dictionary? So yes, it's limited to unique keys
If it finds an existing key, it appends to the existing list associated to that key
 
Yeah I knew that, what I was saying is the value (List<string>) limits to 1 item.
 
Rob
No it's not
The else part appends to the list
 
I know, but in my code it does.
That's what I can't understand
 
Rob
Then you must only have unique keys
Asking if that's always is going to be the case entirely depends on what you want the code to do
 
checked the file and I don't.
foreach (var pair in links)
{
    Console.WriteLine("Found key " + pair.Key + " with " + pair.Value.Count + " items");
}
 
Rob
7:08 PM
Then find a duplicated key and set a conditional breakpoint
 
returns "1 items" for all
 
Rob
Yes
So your keys are unique..
Each key has one item
 
That's the thing, it doesn't.
 
Rob
It doesn't what?
Then look in your file and put a breakpoint inspecting the key
Because the code you've provided looks fine as is
 
The keys are fine, here is my full code. dotnetfiddle.net/I1OByw
 
Rob
7:14 PM
Since you say there are duplicates in a file, put a breakpoint watching for a duplicated key and trace it
 
It hits the else, but again, the dictionary's value (the list) only has one item.
The key is an already existing item in the dictionary, so it should append, making it 2 items.
 
Rob
If that's the exact code, you're 99% just reading the output incorrectly, if you're saying it goes into the else block
 
It goes into the else block
count's value is 8 btw, which is correct.
 
Rob
Then either the code you've provided is not the same as what you're running, or you're misreading the output. Debug it, and check the dictionary (and the value for the key that should be duplicated) at the the of printing
 
Done that, keys are exact, values are different.
The value on the else will always be a list with one item.
Changing .Append to .Add fixed it.
 
7:52 PM
@AshSmith Append is an extension method on IEnumerable<T> which List<T> implements, but it returns a new value instead of modifying the value it's called on
So you do at one point have a new IEnumerable with two values which is then thrown away because it isn't assigned to anything
.Add actually belongs to List<T> and does the expected thing
 
uhh
so ms removed older versions of VS, it's vs 2019 to download now ><
 
8:45 PM
Can someone help me understand this error message that comes up when my project fails to load
A numeric comparison was attempted on "$(MSBuildVersion)" that evaluates to "" instead of a number, in condition "$(MSBuildVersion) >= 16.1.0"
 
9:26 PM
@Hypersapien are you using a newer version of VS for an older project?
 
02:00 - 13:0013:00 - 22:00

« first day (3146 days earlier)      last day (1803 days later) »