« first day (2004 days earlier)      last day (2938 days later) » 

1:00 PM
Hi all, any idea how can I copy strings in unescaped format from a variable?
 
You don't need a hintpath for assemblies in the GAC
 
The problem is at: service=@3
if i remove that condition it works
but i need that condition too...
 
@KendallFrey that only works with GAC'd assemblies from what I understand
this is a nuget ref
 
but i tried it
nope :(
 
1:02 PM
In that case, try readding the package
The reference doesn't contain a version at all
 
i issued a "update-package -reinstall" on the whole solution
 
but it should I think
 
the problem i have now is whats left :(
@KendallFrey yeh i was wondering that
 
@AccountUnknown where does item come from?
 
listbox via foreach loop
there is no problem in that..
 
1:05 PM
nuget needs an unfuck command
 
Well obviously there is, as you've identified @3 as the problem
 
anything to solve?
 
Shattering SO into more language-specific sub-cultures
 
POCCNR
I'm terrible
 
1:10 PM
@RoelvanUden the gist I got from the portuguese site was that speakers of that language who also speak english tend to prefer to use the site in english, at least judging by the comments. If you don't speak english you can't use the main site anyway
 
I don't have any kind of scientific backup for my expectations, but I merely expect that anyone that hasn't mastered English completely yet will just go to their first language version, instead of continuing to learn and contribute to an international community.
 
@KendallFrey ok so it turned out I was fixing the ref on the wrong project
 
user47589
lol
 
lol
programming!
 
the project in question that was complaining about ref versions didn't even have that ref
so without a ref I had code working with that assembly (no idea how that works)
now it's telling me to use nuget package restore to restore the missing packages
so when i do it says "nothing to restore"
jeez M$ :(
 
1:16 PM
^ Error between chair and keyboard.
 
not really ... since the IDE should give me the actual error not this stupida ass retardation
"project 1 can't compile because of the wrong version of a ref" ... when the actual problem is "project 2 is missing ref"
hmmm ... the current problem is that apparently the project cant find the compiler
odd way to do things ... having a project reference its compiler
 
Aw I missed Adan get kicked
@tweray what'd you kick him for? :D
 
1 hour ago, by Adan Ramirez
@AvnerShahar-Kashtan lol the betrayal
 
@Amy I need your help :(
 
@RoelvanUden PEBKAC
 
1:21 PM
@Sippy just check the starred, i mean, srsly i don't want to explain every kik
 
@tweray o_O
 
user47589
wassup
 
@Sippy he was being stupid
 
just for reference, i never kik ppl for fun
 
He's a trump supporter
what you expect lol
 
1:22 PM
@tweray Come on, it's 5:00am, do you expect me to go check why people were kicked on my own? :)
 
user47589
i think we should kick people who come in here looking for help without attempting to solve it themselves
 
Shit.
 
lol
 
Guys.
There's a lot of smart people here.
I just think that.
 
user47589
what? where?
 
1:23 PM
If we all pull together, and you stop focusing on other things.
 
@tweray I wasn't suggesting you did lol
 
@Amy brutal ... isn't it more fun taking the piss when you solve it in 1 statement though?
 
We can all fix my problem.
 
I was suggesting I was hovering on the kick button yesterday
 
And in the end, isn't that what really matters?
 
1:23 PM
Just wondered what he did to get kicked today lol
 
@Tomwa totally
 
@Sippy I clicked the kick button, but alas, the moment I did, @tweray beat me to it.
 
lol
 
user47589
the kick olympics
 
do i get some medal or free donuts on it?
 
1:26 PM
kicklympics
 
hello
*scrolls up, reads, throws up
 
^ why you not going to sleep ?
 
almost solved my code!
 
Have you been lying to all of us
 
visual studio has the best debuggers man, i scrolled and checked step by step (f10) to find the issues
 
1:28 PM
I can't deal with both of them in here.
 
my LINQ is wrong and all over the place T_T
 
Laters.
 
@Sippy where u going? come're
:3
 
lol removing the reference to the compiler allows the project to build ... wierd
 
@wadry removing compiler itself would help too
 
1:30 PM
Am I doing something wrong or is -1%6 really -1?
 
It's really -1.
 
@Mathematics I don't even know why M$ do that
 
@Thijser ever been to school ?
 
user47589
is that % the mod operator?
 
yup
 
1:31 PM
 
posted on April 11, 2016 by ericlippert

You are outside a large gate inscribed, “Abandon all hope ye who enter here!” The gate is open; beyond you can see a desolation, with a pile of mangled bodies in one corner. Thousands of voices, lamenting some hideous fate, … Continue reading →

 
they have some nuget packages and nuget itself puts stuff in to my project files that refers to specific compiler versions that then causes a headache
 
What else would it be?
 
@Thijser What made you think it shouldn't be -1?
 
have u guys ever tried to understand math? in a fundamental way?
how we have math rules in the first place, what match actually IS
 
user47589
1:32 PM
no none of us have ever tried to understand math
 
@wadry nothing new really
 
@RoelvanUden well just look at wolfram alpha makes of it, so c# and wolfram are in disagreement
 
@Mathematics well i finally fixed dll hell ... the net result is that the original problem i had ... not even a problem
the code in question wasn't even wrong
 
user47589
> When either a or n is negative, the naive definition breaks down and programming languages differ in how these values are defined.
 
user47589
In computing, the modulo operation finds the remainder after division of one number by another (sometimes called modulus). Given two positive numbers, a (the dividend) and n (the divisor), a modulo n (abbreviated as a mod n) is the remainder of the Euclidean division of a by n. For instance, the expression "5 mod 2" would evaluate to 1 because 5 divided by 2 leaves a quotient of 2 and a remainder of 1, while "9 mod 3" would evaluate to 0 because the division of 9 by 3 has a quotient of 3 and leaves a remainder of 0; there is nothing to subtract from 9 after multiplying 3 times 3. (Note that doing...
 
1:33 PM
So google also agrees that -1%6 = 5 google.nl/…
 
@Thijser Usually in math, mod restricts a value to 0-n, whereas in computers, mod represents the division remainder, which is negative for negative inputs
I've used this trick more times than I can count:
 
@KendallFrey alright then I' m used towards it automatically making the correct value
 
a mod b = (a % b + b) % b
 
@KendallFrey was trying to use the % operator to prevent overlooping
 
someone knows any test http point ?
 
1:34 PM
wait, what type did you use? int/float/double?
try decimal, might get a more accurate result
 
@Mathematics that does what?
 
I am trying to make promises work
 
So here's something interesting when I start the game by double clicking the executable, it opens just fine.
 
but my 1st promise returns before first
 
When I start the game by opening the executable with WinDbg
 
1:43 PM
I built an endpoint that basically returns whatever you post to it lol
 
I get a FileLoadException
 
@wadry cheeky :P
 
Well I had the same problem you have now
So it was / is useful ... Doesn't take a lot of code just a simple webapi controller
 
I think I need to clean up my build process
But before I do that, I'm going to bed.
 
@Tomwa I think u need to find me a good http point
 
1:47 PM
@Mathematics I don't even know what you mean by that
 
I need some dummy data using Get request
find me a http end point
 
@Mathematics imdb has a json based API I think
 
!! google get http end point
 
!! google imdb endpoint
 
!!google imdb api
 
Oh it's omdb lol
 
user47589
 
1:50 PM
I am not getting any endpoints...
 
What about Microsoft graph
 
user47589
`left-pad.io` is 100% REST-compliant as defined by some guy on Hacker News with
maximal opinions and minimal evidence.
 
!!google graph.microsoft.com
 
@Amy rofl
 
1:52 PM
gitter is a piece of shit
 
user47589
whats up @Failsafe
 
almost as bad as SO chat
@Amy yo
 
I GIVE UP
 
user47589
but you said you'd never give us up, never let us down
 
user47589
never gonna run around and desert us
 
1:57 PM
umm, when i try getting the occurence of a specific char in a list, i get the wrong results lol, try this: var charList = wordList.Count(x => x == 'q');
wordlist contains: ['q', 'b'] , the linq returns 2 o.o
tried other methods too lol, wow this one is a first
 
@Mathematics what's wrong with this: graph.microsoft.io/en-us/graph-explorer
that's 4000+ endpoints
 
@AdanRamirez code?
 
@AdanRamirez

var wordList = new [] {'q', 'b'};
var charList = wordList.Count(x => x == 'q');
MessageBox.Show(charList.ToString());
That returns 1 for me
 
@TomW how much code do u want?
 
@AdanRamirez enough that demonstrates the problem...?
 
2:01 PM
var wordList = new List<char>(); wordList.Add(items[itemsWithIndexes[i] + tick].Item1); var charList = wordList.Count(x => x == 'q');
returns 2 o.o
il try an array instead
 
@AdanRamirez This also returns 1:

var wordList = new List<char> {'q','b'};
var charList = wordList.Count(x => x == 'q');
MessageBox.Show(charList.ToString());
@AdanRamirez I think it's something wrong with the way you get the item to add
 
 
haha
Fast Reports documentation:
Kill me
 
2:20 PM
okay.. my code is not running right
u guys wanna try it?
im getting different incorrect values when they should be correct
run this, supposed to return 3, it returns 4
first time VS has failed me
 
are you learning tuples or torturing them?
 
@AdanRamirez the first S in "SSCCE" is short
 
Oh dear do you not indent properly because you're a rebel?
 
the code is bugged
im not even joking, want a screen shot?
@mikeTheLiar 1 sec
just run the code lol it's retarded
 
What the hell are you even trying to do?
 
2:25 PM
@wadry thanks it works
it was my code which wasn't right
 
@mikeTheLiar it calculates extra damage from Leblanc's Q
 
hazzah! ... welcome to my world of half arsery
 
in League of Legends
 
i usually end up saying ... oh right ... that was stupid of me
 
basically if she uses a spell shortly after Q , 3.5 secs or less, it applies extra dmg
 
user47589
2:28 PM
1 message moved to Trash can
 
You're programming League of Legends? I don't follow.
 
yea move it to trash
but the code is buggy, i swear to god
 
Why is your first linq statement selecting twice?
 
user47589
paste a SHORT code example that demonstrates the problem
 
what line?
i pasted that so you can run it on ur PC to find that it's buggy
 
2:29 PM
var itemsWithIndexes = items.Select((tuple, index) => new { Index = index, Data = tuple }).Where(item => item.Data.Item1 == 'q').Select(item => item.Index).ToList();
 
@AdanRamirez the useful one might be a good start
 
user47589
do you understand "short"?
 
"buggy"
 
@AdanRamirez it does no good for us to run code that doesn't work when we don't even know what it's supposed to be doing.
 
@mikeTheLiar wtf is that
 
2:30 PM
@mikeTheLiar that line Avner gave to me
 
@RoelvanUden "code"
 
@mikeTheLiar shoulda re-evaluated it T_T
 
I don't get why you would do that
 
@wadry I have no idea
 
LMAO
 
2:30 PM
It's from that wall of code Adan posted
 
so you suspect that piece of line is the source of the bad returns?
 
You still haven't actually explained what you're trying to do. You just spewed a bunch of LoL talk at me that is essentially meaningless.
 
ok, it starts with itemsWithIndexes
 
@AdanRamirez yeh thats a broken line of code alright
 
1. find every instance in the tuple where Leblanc 'q' is activated
2. once the indexes are found, start to apply an equation that sees if any other spells are activated during q's activation
 
2:32 PM
And it's "buggy" yet the very definition of a software bug is " is an error, flaw, failure or fault in a computer program or system that causes it to produce an incorrect or unexpected result, or to behave in unintended ways.". But we don't know what you expect nor intent.
 
list.Where(t => t.ItemOne == 'q')
 
within a 3.5 second window, Leblancs Q deals double dmg if cast
 
@AdanRamirez this. this is meaningless. How is that determined?
 
make a final list of the # of times a spell is used during 3.5 second window when 'q' is cast
 
What exactly are you trying to build @AdanRamirez?
 
2:33 PM
@RoelvanUden wasn't the original reason that the term "a bug in the system" came about because the first time it was used there was an actual bug eating wires in the system?
 
@AdanRamirez technical requirements please. Assuming I know nothing about LoL or gaming at all.
 
I don't know. I'm no good at useless trivia :P
 
user47589
i think it was a moth interfering in a printer
 
user47589
nothing like chewing on wires
 
2:34 PM
I think it was in Grace Hopper's lab
 
uh, it's too hard to explain, and this is just 1% of the entire thing
 
The first actual case of a bug being found: computerworld.com/article/2515435/app-development/…
@Amy yeh my bad, I had a crossed wire in my head (as you now know that happens a lot with me)
 
boring day
 
this is just a small little Q equation, the real code does more shit and it's in like 10+ classes
 
@AdanRamirez At least give us a global idea of what it is you're trying to build.
 
2:35 PM
A software bug is an error, flaw, failure or fault in a computer program or system that causes it to produce an incorrect or unexpected result, or to behave in unintended ways. Most bugs arise from mistakes and errors made by people in either a program's source code or its design, or in frameworks and operating systems used by such programs, and a few are caused by compilers producing incorrect code. A program that contains a large number of bugs, and/or bugs that seriously interfere with its functionality, is said to be buggy or defective. Reports detailing bugs in a program are commonly known...
 
it's hard to explain
 
@AdanRamirez so you have a log of keys mashed
 
catch
 
user47589
finally
 
2:35 PM
// Gotta catch 'em all
 
and you want to do some shit with it
 
user47589
Do all the shit with it
 
@wadry no, this determines the winner of a fight before fighting
 
is that the "technically correct" version of his problem?
 
in the game
 
2:36 PM
@AdanRamirez surely that's not known until the game plays out
 
Bug: program doesn't do what I want it to do and I don't know how to make it
!!bugreport
 
@mikeTheLiar That didn't make much sense. Use the !!/help command to learn more.
 
You can't know how a game goes when it's not yet played.
 
positioning, what about hits getting blocked / misses
 
@wadry not without my solution
 
user47589
2:37 PM
@RoelvanUden checkmate in 47 moves!
 
I am currently looking at formfactory.apphb.com which states that it is a form builder but when you think of a form builder you think of an application like a user defined Q and A
 
And there is always a RNG and latency factor.
@Amy ~_~
 
@Amy aw, you win again
 
well, it doesent perfeclty do it, it simulates a fight where the conditions are perfect for each player
 
@AdanRamirez ok so assuming 2 people stand still and mash the right combo of keys you can predict the outcome
 
2:37 PM
that allows you to build the textboxes radio buttons when you want it
 
@AdanRamirez I hope you know that any kind of "perfect" simulation is entirely meaningless.
 
@RoelvanUden i was just thinking that
 
@wadry it simulates a fight using optimal conditions, the winner of the fight is then determined, however in the real world variables apply, however it is still useful
 
I am looking to do an MVC version of this. Have any of you guys seen any tutorials like this around?
 
user47589
unless you have a billion dollars and the brightest minds in the world
 
2:38 PM
The simulation is perfect, it's just reality that's wrong
@Amy or this chatroom
 
user47589
lol
 
yea but you want to simulate enough, not perfectly
 
user47589
@mikeTheLiar you made me spill my coffee
 
sometimes you only want specific info/results
 
user47589
you'll be hearing from my lawyer
 
2:39 PM
Is your lawyer nice? Can we get lunch together?
 
user47589
yes he's super chill
 
I think @mikeTheLiar wants to make moves on your lawyer.
 
no...well then wing it I shall
 
bow chicka wow wow
 
Making the enemy into a friend is a great tactic @mikeTheLiar, I approve.
 
2:41 PM
Making an enemy an employee also works
 
Eh bby, you want sum cross examination
 
Hackers all up in your grill? Hire them.
 
@TomW Employees are friends motivated by money.
Once more money comes along, it fades.
 
Anyone know anything about Antiques?
 
user47589
Friends are employees who are motivated by the prospect of being able to watch the big game on your 4K screen and drink your beer.
 
2:43 PM
@PrimeByDesign Yes, they are old.
 
:D
ahh...
 
user47589
I had an antique once, rubbed it a bunch of times and got a wish.
 
struggling... I bought this wine decanter some time ago...
 
Why are there no wine recanters?
 
I found a matching one on the internet but I can't find out much about it
haha
 
2:44 PM
If wine needs to be decanted does that mean that wine is the bottle is canted?
 
just getting distracted by it... wondering about it's history
 
Hi, I got 2 nested for loop. I'm using .Length to get array size. inside the inner loop is a code that creates a new thread.. I found out that sometimes loop count becomes greater than what is specified...
so sometimes i (integer) becomes greater than the size of the array even if I specifically specified in the loop that i < array.Length

what do you think is the problem?
 
I decant even
@LexBryan something in the thread is mutating i
 
Lex... are your objects immutable?
 
@PrimeByDesign yep..
 
2:46 PM
hmm
 
Well obviously a count variable isn't
 
this only happened when I added the "create new thread" code
 
@LexBryan can you post a short piece of code that replicates the issue?
 
@LexBryan Can you show the code
 
okay
yes
show the code
 
2:46 PM
sure. wait.
 
let me guess
after 2 minutes 150 lines of code will be pasted here
 
user47589
@tweray 42
 
lol
@tweray :D
 
for(int h=0; h<tables.Length; h++){
   for(int i=0; i<tables[h].Length;i++){
      ... <thread here>
}
}
 
@LexBryan press up, Ctrl+K
 
2:50 PM
woah
the more you learn
 
Yes, those are two for loops.
 
@LexBryan And what does that thread do.
 
@LexBryan I think... the problem is with your loops
h is doing tables.length
and so is i
i<h.tables[h].length
 
Yeah but a sub array which is fine
 
the table array is a multi-dimensional array..
 
2:51 PM
hold on, dont you need to specify dimension?
like table.GetLength(1)/(0)
 
It's a multi-dimensional array. C'mon guys. This is evident from that snippet.
 
what are you trying to do with i
 
ah you're right it's a sub array
didn't spot that
 
Oh fgs don't get so hung up over two trivial for loops
 
We're going to need to see the thread creation/contents of the thread
 
2:52 PM
The real question is, what does the thread do?
 
yes need to see thread code
 
it calls a function that gets data from db.. but it uses the values of h and i
 
Show us please.
 
wait.. it's on a different machine...
 
@LexBryan see, this is why I asked for a short piece of code that replicates the issue.
So we don't have to spend the next hour slowly and painfully extracting information from you.
 
user47589
2:55 PM
!!mcve
 
If you would like assistance, please create a Minimal, Complete, and Verifiable Example
 
for (int h = 0; h < C.tables.Length; h++)
            {
                for (int i = 0; i < C.tables[h].Length; i++)
                {


                    if (C.table_stack.Exists(element =>element == C.tables[h][i])) continue;


                    Thread th = new Thread(() => LoopThroughTables(h, i));
                    th.IsBackground = true;
                    th.Start();

                    C.table_stack.Add(C.tables[h][i]);
                }
            }
 
What does LoopThroughTables do?
 
user47589
i think this is a closure issue
 
That's the most likely scenario.
 
2:58 PM
@Amy a very reasonable guess
 
user47589
at the top of the loop, please add:
 
user47589
var h2 = h;
var i2 = i;
 
user47589
then change this line: if (C.table_stack.Exists(element =>element == C.tables[h][i])) continue;
 
user47589
to this
 
user47589
if (C.table_stack.Exists(element =>element == C.tables[h2][i2])) continue;
 
2:59 PM
And idem for the thread.
 
user47589
same thing with the other references to h and i
 

« first day (2004 days earlier)      last day (2938 days later) »