« first day (2229 days earlier)      last day (2945 days later) » 

00:34
Anybody here knows User Control?
 
3 hours later…
03:58
Howdy.
Gee it's like the whole world stops working just because it's 11pm...
 
2 hours later…
05:40
0
Q: How to use Linq to check tags within JSon

C SharperI have below JSon File :- { "requirements": { "-FileName": "sample.xls", "requirement": [ { "desc": "Employee status will be classified as: • Assigned $ when employee is working on a project. • Reserved when employee is scheduled to work on a project in near ...

 
2 hours later…
07:16
~~~Ohayou~~~
oh hi
how is it going?
at this time?
i thought they would chill down during the winter
but i guess you don't have winter :D
24C outside. :)
Winter comes around late December/January.
07:25
do the temperatures even drop below 0?
In Tel-Aviv? Last time they did was 1991, I think.
In Jerusalem they do a couple of nights a year.
yeah i assumes so since you are closer to the equator
the lowest temp i experienced is -18
Well, I lived in Canada for a couple of years when I was a kid.
So -40 it is for me. :)
but its not that bad if the wind is not blowing
oh
that is a bit extreme
I think that was an adjusted temperature accounting for wind chill factor.
Fun fact, though: -40C is equal to -40F.
07:31
speaking of f i wonder if america will ever replace it with celsius scale
they are the only country using it as far as i know
Several other small countries in the US's sphere of influence as well, but that's it, I think.
this is the first time i am spending thanksgiving outside of the US
i miss home
C4u
C4u
08:02
good morning
guten morgen
morning all o/
o/
Grüetzi!
Greetings to you too
08:12
Good mornin
Is it me, or does Process.WaitForExit totally screw up when you're redirecting stdout?
It doesn't screw up, but your process can't exit either.
I use the WaitForExit overload with the timeout, and it returns immediately, with false.
But from stdout's content, I see that it has finished.
Question is, how can I properly report on whether the process exited successfully or timed out?
08:28
@RoelvanUden good mornin' Sensai!
\o/ caps!
@AvnerShahar-Kashtan You spawned one with Process?
08:44
@RoelvanUden Yeah.
start.UseShellExecute = false;
start.RedirectStandardOutput = true;
using (Process p = Process.Start(start))
{
      var finished = p.WaitForExit(timeoutSec*1000);
}
returns false immediately.
More specifically, it returns false after the process does end, but it still returns false, so I can't distinguish between a successful execution and a timeout.
Right. WaitForExit should return true/false depending on whether the timeout elapsed or not. So, false, should be "The timeout did not elapse". The exit code should be in p.ExitCode or something.
> true if the associated process has exited; otherwise, false.
I would expect that to mean that false means the process has not exited, meaning that the timeout has occurred.
08:59
branching per environment or per feature ?
Morn all
Morning o/ @Ggalla1779
Kevin Troy on November 22, 2016
Our data platform, Providence, has evolved over the last two years. We look at how and why it has changed, and the effects on our counts of developers.
Morning everyone
09:21
hi
 
2 hours later…
11:04
It's the end of 201-freaking-6 and I still see new code written that builds a string from a list using a foreach-loop-and-trim-the-final-delimiter.
whats the matter with that?
pulls hair
obviously, that's stupid, because we should be smart enough to just not put the final delimiter on in the first place.
sorry Devils advocate sometimes is a hard role
I have long thought the 10 ways to do somrthing leads to some interesting code
hey people, I've kind of a weird question here. I'd like to lock an object(A) before I release the lock on another object(B), but immediately after I lock 'A' I want to release the lock on B.
11:19
Sounds like multi-threading.
lock(B)
// do stuff
lock(A)
// do some other stuff
unlock(B)
// do more stuff
unlock(A)
Look at Monitor.Enter and Monitor.Leave
I tried

lock(B)
// do stuff
unlock(B)
lock(A)
// do everything
unlock(A)

but on some computers stuff is mixed up and a thread gains access to B when it shouldn't
Remember that you must unlock even if you throw.
which is why I don't like MOnitor
but I guess in this case I've no other choice
11:21
Exactly.
thanks for confirming my worst premonition
Replace every "Rollin'" with "Codin'"
Fells awesome!
@RoelvanUden eeeeh you nearly got me to click that 8starred link.
what did you link there?
random japanese girls
ookay then
11:28
they are worth a click
at least
I can only agree with @Proxy
very eye pleasing
eh
depends if your into that type of Japanese girls
11:45
nah, not clicking a link distributed by @RoelvanUden
a shame greatness was awaiting for you
True dat
@Kieran Just keep on codin' codin' codin'
I am
its hurting my fingers
lol jk
I lost the feeling in my fingers months ago
@SteffenWinkler That's prejudice!
12:05
@AvnerShahar-Kashtan ohh. There are multiple level of disgrace to that. Did they use +=, or string builder? (String.Join is too mainstream)
@RoelvanUden yeah but it's justified
in any case: I think I did good when the bottleneck of my program's performance is the harddisk on which the database resides.
#notmyproblem #fixingitinhardware
#ifuckinglovehashtags
#Ilovesausagerolls
#idont @Ggalla1779
#SexDrugs&SausageRolls
My kinda life
12:08
hashtags saved the spacebar
I just installed VS2017 and SQL Server 2016 its like christmas
@Ggalla1779 why? Is there a cat in your computer or is everything on fire?
@ntohl StringBuilder.
Followed by sb.ToString().Trim(new[] { '|' });
@SteffenWinkler That doesn't mean you can't improve it
@Ggalla1779 or is your family ranting about your choice of IDE and SQL database?
12:10
I love free stuff
@Ggalla1779 Isn't the RC timebombed?
wait, vs2017 has been released?
@KendallFrey well, I could put in a fork bomb somewhere
Oh, I guess the Community edition isn't.
my family doesnt understand my IDE or SQL Databases
12:10
@AvnerShahar-Kashtan something something the Doctor
Bonus: each string that's aggregated is comprised of internal delimited strings:
`sb.Append(timestamp.EventId + "," + timestamp.StartTime + "," + timestamp.EndTime + "|");`
@AvnerShahar-Kashtan hmm is it?
@Ggalla1779 RCs often are.
ow well its my clients pc who cares
@AvnerShahar-Kashtan "smart"
12:12
One of the items in the release notes is:
> Pre-release license expiration messages more clearly communicate the current license state.
no worries I can easy install and get "real" one
uninstall
thanks good to know
Azure Data Lake...interesting words
weren't microsoft looking at making data centers in the ocean?
the name would make sense
thats true
@Kieran listen to the song, it will come back
never
12:19
@Kieran effective cooling it would have
quite
I finished Candy Box 2, now my life is empty!
i believe the idea was to draw the water into the barge, use it and then spit it back out again
thus technically never using water
@Kieran Interesting definition of "using"
how so
12:22
What are you using to cool it?
water?
that would be the idea of having a data center in the ocean
Do you want to dispose the water afterwards or why use using?
@Kieran but you said never using water
4 mins ago, by Kieran
i believe the idea was to draw the water into the barge, use it and then spit it back out again
5 mins ago, by Kieran
thus technically never using water
12:25
ah, they did
ohhh
i read your "never using water" comment incorrectly
my bad
weird, because i said exactly what you said
i know
Hello everyone, can anyone help me with a XML problem? :)
didn't realise you were referencing "thus technically never using water"
when you said never using water
Nov 3 at 13:58, by Avner Shahar-Kashtan
You can ask any question except for "can I ask questions".
12:29
post the problem if anyone knows they will help
@KendallFrey let me rephrase
haha okay :P
They are obviously using water, but not in a sense that the water would be expendable
or have i got my phrasing wrong again
> designed to be used only once and then abandoned or destroyed.
sounds like you got it backwards
EF folks, am I getting it right that the best way to erase all rows in a table is not to go through the entities themselves, but instead construct and issue a TRUNCATE statement?
I have someone's code here, probably based on some SO answer, that goes over the DbContext and sets each Entity's State to Deleted. This seems to involve pulling all the data to memory.
12:34
@KendallFrey Would not be*
@AvnerShahar-Kashtan you got that right. It's the same for most if not all Database2Object mappers
double negatives now?
lol
yes
my head has fallen off once again
english is hard
even though im english
and i've spoken nothing but english for the past 22 years
@SteffenWinkler Hmpff. I would appreciate it if they exposed a ClearAll method that constructed that TRUNCATE statement for me.
The naive State=EntityDeleted approach has been running for five minutes now.
@AvnerShahar-Kashtan I completely agree with you. It's really fun when you decided to use a mapper so that you wouldn't have to write database vendor specific SQL code in the first place
(Devart's LinqConnect in my case)
12:38
So, I am saving some files. But when the user runs the program, he still needs to press "Save". Can I let the program do this automatically?
And also the pop-up "this file already exists". I want to makes the program override this automatically
@user3201911 How are you saving the files?
 if (save.ShowDialog() == DialogResult.OK)
            {
                using (StreamWriter writer = new StreamWriter(save.OpenFile()))
                {
                    for (int i = 0; i < mylist.Count; i++)
                    {
                        writer.WriteLine(mylist[i]);
                    }
                }
            }
Sounds like you don't want a save dialog at all
just open the file directly
@AvnerShahar-Kashtan be ware, that truncate will reset identity counting
so some archived data pointing to old ids might reference something unrelated new row
@KendallFrey okay, so I delete the using (StreamWriter writer = new StreamWriter(save.OpenFile())) ?
12:41
um, no
Why would you delete that? That's the only part you want
Ok well, getting a StreamWriter is
aaaaaaah
            SaveFileDialog save = new SaveFileDialog();
            save.Filter = "txt files (*.txt)|*.iea|All files (*.*)|*.*";
            save.FileName = filename;
            if (save.ShowDialog() == DialogResult.OK)
            {
                using (StreamWriter writer = new StreamWriter(save.OpenFile()))
                {
                    for (int i = 0; i < mylist.Count; i++)
                    {
                        writer.WriteLine(mylist[i]);
                    }
                }
I would skip the OpenFile completely and just call File.WriteAllLines(save.Filename).
this is what i have now, But i should delete the first four lines
It looks like you're just using the SaveFileDialog to call OpenFile() for you, which is unnecessary.
12:44
aha okay, i will try to make it work that way
File.WriteAllLines(filename, mylist);
@AvnerShahar-Kashtan thanks for helping me. Tho it doenst seem to work yet. and this also doenst work File.WriteAllLines(filenaam + ".txt", stringlijst);
i think i still need the forloop rigiht?
Saying "it doesn't work" basically means "I'm not going to tell you what the problem is, but I want you to tell me what the solution is."
Hi Anyone had any problems with vbcsCompiler taking alot of memory and cpu ?
I got File.WriteAllLines(test123.txt, mylist);
but i need to declare the whole path i guess?
12:52
@user3201911 Otherwise it would create the file in the CurrentDirectory, which can be unpredictable.
This is what I want
guys, can i make it like, you choose once where to save all the files?
a config file?
yes txt files
so using the savefiledialog once
and saving all my txt files at that directory
you mean a folder select dialog?
yes indeed
13:01
and this only occurs on the deployed version
C4u
C4u
(WPF) what is your favourite chart-library? A free modern looking one would be cool (line-chart). Maybe also an easy to use one as I'm still a noob in binding. :p
@ShrtTth connect.microsoft.com/VisualStudio/feedback/details/910101/… it appears this is expected, in certain circumstances - but it cleans up after 30 seconds inactivity.
> Posted by Microsoft on 9/16/2015 at 9:10 AM - Sorry for the late reply, a Connect issue prevented us from seeing this bug until this week. We've made large improvements in the memory usage and performance of VBCSCompiler.exe now that it's integrated into Visual Studio 2015.
see if you're using the lastest version
i'll check this out thanks : )
@C4u We've been using DevExpress's chart library (not free), but it's been annoying us for a while. Right now we're switching a lot of our dashboards to use Grafana hosted in a webbrowser control.
How can I know what is the lastest version ?
13:09
@ShrtTth no idea :D
C4u
C4u
@AvnerShahar-Kashtan Wow grafana looks cool. Ill check their website. Thanks!
I think I'm using the latest version because there is no updates required when I go to nuget reference and check for Ms.Net.Compilers
eh graphs are the biggest obstacle im facing currently :(
Just roll your own with dynamic SVG. How hard can it be?
(trollface.jpg)
13:22
o/
@Proxy JS or C#?
I noticed in passing the other day a new .js library called D3.js
D3.js (or just D3 for Data-Driven Documents) is a JavaScript library for producing dynamic, interactive data visualizations in web browsers. It makes use of the widely implemented SVG, HTML5, and CSS standards. It is the successor to the earlier Protovis framework. In contrast to many other libraries, D3.js allows great control over the final visual result. Its development was noted in 2011, as version 2.0.0 was released in August 2011. Data visualization company Datameer officially uses D3.js as its core technology, while The New York Times sometimes uses it for rich graphs. It is used by the...
Is there an approach you've found is sane and maintainable for server modularity and extensibility? Let's say I use MEF, or an equivalent, to scan DLLs and load WebAPI controller off of them. And let's say I want to be able to control which controllers are exposed for each instance of my service. What do you use as a service catalog to instruct MEF which assemblies to load and which controllers to spin up?
@JoJo I think D3 is a more low-level library. It's not a "hook a pie chart to a data source" library, but it enables writing such controls using the library.
Yes probably not something like Fusion charts
which would be an advantage
I have not had any time to explore D3
@JoJo c# i need to display the same timeframe on each signal even if no input is received
however i can't even change data binding on the axis
13:50
@Proxy too advanced for me sounds like
@JoJo I don't think d3 is that new
#english
im good at it
:) I respect anyone who knows multiple languages
Does knowing a programming language count as another language?
if not i may need to return your respect to you...
haha, I think so.. though not as much respect as a spoken language lol
welp
13:54
So you automatically respect me, even thought I might be am an ass?
I like the strikeout
yep, I respect your intelligence for sure
@JoJo nah its not advanced i'm just dumb
Thing is, multiple languages doesn't require much intelligence at all.
If you grew up in an environment where you are exposed to two, it just happens.
ya, are you nordic? I know they teach 2 or 3 languages to their youth
13:57
If you only move abroad after the age of 30, it becomes more difficult. :(
nah its the same
i'm making nice progress with my japanese
I think knowing more than one language is conducive to intelligence. Simply because it gives you a wider perspective on language.
considering that i'm learning it for a hour weekly
13:58
@AvnerShahar-Kashtan agreed.
@JoJo Close.
Just like living in different countries helps you get a better perspective on how the world works, snaps you out of taking certain things for granted.
@Proxy Good for you! How are you learning? Online?
honestly I do struggle with German right now, because I work in English all the time. I hardly every get the chance to use a foreign (i.e. not English) language.
I should probably learn another language..
13:59
I'm too lazy to learn another language now. I master two, that's fine for me.
I haven't even mastered one :c
My Spanish is rusty but I'm pretty sure if I put in the tiniest bit of effort it would come back.
And with Spanish you basically get Portuguese and Italian for free.
i should learn spanish.
I cant find course on Ukraine
@AvnerShahar-Kashtan That lasts for about week for me after which I'm taking everything for granted again :p
14:08
@RoelvanUden yeah but i have managed to get a book, genki
its good
i usually go to a caffe and study there, net + book
but i'm lazy so its going slowly
14:58
@mikeTheLiar i studied spanish for almost one year and i speak portuguese natively. there are a lot of similarities between pt and es but there are a lot of false friends too.
@JúlioMurta Oh definitely. But knowing one is going to make learning the other a lot easier.
I usually understand enough to get the general meaning, even if it's not 100% clear.
@mikeTheLiar Legal. Então você também pode entender esta frase, imagino.
I think you're saying that you think that's also true for French?
Fuck. No. Fail.
Frase -> phrase.
Apparently not.
no. i'm saying you that i imagine you can understand that phrase too.
almost. but i understand you can get the general meaning and it is a great thing.
Yeah I had to plug it into google translate though. I think "voce" doesn't mean what I think it means.
15:03
você -> you
you can use Tu also
Yeah, I was thinking "voce" in Spanish is "voice". That's where it all fell down.
but Você is much more common. Tu is used in the brazil south or in portugal.
I was thinking something like "Then spoken you should also be able to (understand? French?), I imagine".
if im not wrong Você is Usted in spanish.
15:05
ustede means you?
Formal you
yay
Usted -> without last E
And you conjugate the verbs differently than tu (informal you)
ustedos
15:06
See, this is why i struggle with other languages
the ordering of things would completely fuck me
This has been a fun linguistics experiment.
yeah. actually Você is the third singular person and Tu is the second singular person.
Tu és - Você é - you are
Yeah, Spanish "tu eres - Usted esta"
Tu is a personal pronoun and Você is a treatment pronoun
something like Vossa majestade (your majesty), Vossa Alteza (your highness), Vossa Excelência (your Excellency) e etc
i just dont know why we commonly use treatment pronoun instead of personal pronoun
@Kieran Try Hebrew one day. Different alphabet, different writing direction, no shared Latin roots for common words, and a lot of prefix/postfix inflections instead of separate words.
Fun.
15:13
please no
sounds like japanese :P
if i could id like to learn russian some day. but first i need to improve A LOT my english and learn some mobile development, good practices and maths.
OMG i have too much things to learn ¬¬
hello children
did you finish your homework ?
15:21
Don't you remember dad? I graduated years ago. I no longer have homework. Are.. are you forgetting again? I swear dad, if you don't tell me the truth now, I'll have you tested. Granda had Alzheimer too.. you can't unravel the family as he did!
Lol
Dad.. take this seriously.
Parents take nothing serious
My older children just learned how to climb over the bed fence. Good bye 9 o'clock doing what I want
haha
15:30
also the climb ends in a pretty big fall.
@ntohl that in the crib or a real bed?
^ This applies to children as well.
@mikeTheLiar, you're forgetting magnets
@Nathvi magnets are dangerous sorcery. Do you know how they work?
15:33
@mikeTheLiar lol
I don't have to know how they work to use them
@mikeTheLiar
ya a crib
Meddling in affairs you do not understand is a dangerous game, human.
Not knowing how a magnet work doesn't mean I can't use it to stick things on the wall
I don't really know how a car works, and I use it anyway
Are you not aware of the "fucking magnets, how do they work" meme?
15:35
I am aware
I am also aware
I am not aware.
I am self-aware.
@KendallFrey, no you are not
I am aware I dont care
15:38
We are self-aware.
FTFY
There is no I in skynet
But there is an I in "STFU @Kieran"
:c
me heart is break
good,
why must you hurt me this way
because

« first day (2229 days earlier)      last day (2945 days later) »