« first day (2372 days earlier)      last day (2574 days later) » 

1:05 AM
hello how do i add image to my treeview items?
 
 
2 hours later…
3:15 AM
Heya, anyone there?
 
Yo.
 
Hi @jhmckimm . I am looking for some help with a linq project. Do you know anyone looking for a little side work?
 
Nope, sorry.
 
I tried to find a way to work from home for years. Finally found it. And hope to keep it!
 
3:59 AM
how much you payin
 
hey
is anyone good with UWP?
 
nope
or, not i, rather
 
what about wpf?
 
nope
 
I'm trying to work in visual studio to find an event to handle when the tool TimePicker's cancel button is pressed...
:(
 
4:12 AM
datetimepicker?
says there is no cancel event
but idk if thats what you're using, but i suggest finding the docs if what i pasted isn't right
 
well... I was hoping it might be similar to WPF but it might not be cause the TimePicker is a little different from the DateTimePicker.
 
 
well I am looking for UWP as well but I cant find too much useful info on the mdsn website.
 
4:51 AM
https://repl.it/HJWu/0 — can anyone explain to me why this doesn't throw?
am i missing something?
 
5:34 AM
hi every one
can any onw help me blurring image from specific location ?
 
@Ahmad might have to elaborate a little there
 
5:51 AM
there ? where i ask Question u mean ?
 
yes
what kind of image? what kind of location? what kind of blur?
 
i have edit my Question . check it
 
it'd also be helpful to provide a link to the question
 
ok
give me the link
 
6:34 AM
ohayou
 
6:49 AM
hello there
 
Hi guys
Anybody here who have worked on wcf>
?
 
7:06 AM
i'm totally tired the last 3 days
-.-
 
7:38 AM
@Proxy for me it's been the last 3 months or so
Have you guys heard of the Radeon pro SSG? it's a gpu with integrated m.2 pcie raid which can write at 4GB/s for rendering and calculation link.
 
how do you handle it :S
 
@Proxy I break my truck :p
 
wut
 
> me tired
going to work at 7 am
don't see a car coming from the right until the last moment
steer to avoid the car, hit a sign
broke the oil pan, still drive 500m to park the truck.
a day later, change the oil pan, working great.
drive home, the motor makes weird noise -> back to the garage.
 
hello everyone
 
8:00 AM
oh
at least you are fine
 
yup, though around 300 - 500 euros to change the motor.
if I do it myself
 
oh you eeven know how to do that ? nice
 
8:14 AM
hello
i have question about vs2017. is it slow performance same as vs2015?
 
@Proxy tie the motor, pull all the screws, pull the motor, put it on the ground, tie the new one, put it in, screw all the screws back. Dammit, where do theses 2 screws go?
 
i have no idea about cars
 
that's about the same thing as changing a laptop cpu, except you need a crane :p
 
8:38 AM
it takes a lot more time i guess
 
can i make a foreach loop with two excel ranges?
does anyone know?
 
@Proxy too, and there is also this damn last screw that is rusted and won't come off.
 
best guy ever
lay down, eat bamboo and watch the clouds
 
8:53 AM
When I do that people complain I'm lazy and should stop eating bamboo
 
don't listen to them
 
@RoelvanUden people are just jealous
 
they want to steal your bamboo senpai
 
Being that chill is actually quite hard to achieve
 
9:17 AM
hello
 
9:49 AM
how can I make something like this happen?

foreach (xl.Range rowC in rowsC && xl.Range rowF in rowsF)
 
@AdiMohan you'd probably have two foreach
foreach (xl.Range rowC in rowsC) foreach (xl.Range rowF in rowsF){
		//dostuff
}
use brackets as you want.
 
is that a foreach in another foreach basically?
 
yup
foreach (xl.Range rowC in rowsC) {
	foreach (xl.Range rowF in rowsF){
		//dostuff
	}
}
if you prefer
 
cause basically what i'm trying to do is get two ranges (columns) and compare the cells ont the same row
 
oh
then, you probably need a "good ol" for
 
9:58 AM
I've tried doing that but I don't seem to posses the necesary neurons to get it working :))
 
for ( int i=0 ; i<rowsC.Size && i<rowsF.Size ; i++ ) {
	xl.Range rowC=rowsC[i],rowF=rowsF[i];
	//dostuff
}
 
I will certainly try that aswell, thank you satibel
 
not sure if that's size or length you need.
 
ah well ive made a start point for my range and an endpoint as ranges then
 
you can also use zip if you want it pretty.
 
10:04 AM
i'm not sure how that would go but i'm guessing a loop in which i have my predifined ranges (col C and col F) would do the trick
and just loop and compare the current cell in one column with the cell in the other column
 
var rowsCF = rowsC.zip(rowsF,(rc, rf) => new { C = rc, F = rf });
foreach (var row in rowsCF){
	Console.WriteLine(row.C + "; " + row.F);
}
also shorter, but messier:
foreach (var row in rowsC.zip(rowsF,Tuple.Create)){
	Console.WriteLine(row.item1 + "; " + row.item2);
}
oh, you want only a range in each row. are those aligned or not?
 
yes
and it starts from Column C2 / F2 , and it ends with xl.xldirection.xlup
 
the dirty but working way :
      start=max(start,0);
      stop=min(stop,min(rowsC.Size,rowsF.Size));
        for ( int i=start; i<stop; i++ ) {
        	xl.Range rowC=rowsC[i],rowF=rowsF[i];
        	//dostuff
        }
 
satibel, i'm not sure what start and stop reprezent in this case
 
if you want range from C2 to C1000 and F2 to F1000, start is 2, stop is 1000
 
10:15 AM
and they are int right?
 
the min and max are just sanity checks
yes they are ints
 
so wouldn't it be int start = 2; int stop = 1000? also,
the problem here is that i only know the starting range, the end range is dynamic
 
public static void doStuff(int start=0, int stop=int.MaxValue){
  start=max(start,0);
  stop=min(stop,min(rowsC.Size,rowsF.Size));
  for ( int i=start; i<stop && /*condition*/; i++ ) {
      xl.Range rowC=rowsC[i],rowF=rowsF[i];
      //dostuff
  }
}
so you want to stop when you encounter something special?
 
yes, i will stop when i get the first empty cell on each column
thats why i made them as ranges
what i have is something ... well.. take a look
foreach(xl.Range rowC in rowsC)
            {
                foreach (xl.Range rowF in rowsFAs)
                {
                    if(count1>0)
                    {
                        xl.Range firstcellC = rowC.Cells[1];
                        string firstCellCValue = firstcellC.Value as string;

                        xl.Range firstcellF = rowF.Cells[1];
                        string firstcellValueF = firstcellF.Value as string;

                        if(firstCellCValue == "PREASSEMBLY 1" && firstcellValueF != "")
not the most elegant code but semi functional
rowsC is my entire C column from C2 to end of column C
rowsFAs same as C
l1tb_start is just where i throw the result
 
so you want to :
iterate on both rows over a range
stop when you encounter an empty cell on either row
do stuff with those cell values
?
 
10:25 AM
I want to iterate through column C and F on same row (example C3 compared to F3)
stop when i get to the first empty cell of column C and F (be it C100 & F100 or whatever number)
And when i find a string in one cell, and another string in another populate one int, and the other condition populates the other int
and when i stop finding the specific string in column C, i should stop
 
so you return an array of those int couples?
 
HAMMERTIME!
 
you're late caprica
 
no, my ints are incremented each time one of the conditions are met (in my ifs)
 
!!sudo be ashamed
 
10:27 AM
@satibel Okay.
 
so you want to count the number of times you have those strings (in a range.)?
 
yeah, if column C has specific string, and column F doesnt i increment a int by 1, if column c has specific string and column F is empty, i increment another int by one, that's it basically
the entire point is them (the columns) to coresponde in number
i don't want to compare C3 with F4, only with F3
 
atch...avascript!
(hello J.Doe)
public static Tuple<int,int> doStuff(int start=0, int stop=int.MaxValue){
  var @return = new Tuple<int,int>(0,0);
  start=max(start,0);
  stop=min(stop,min(rowsC.Size,rowsF.Size));

  for ( int i=start; i<stop && /*condition*/; i++ ) {
       var rowC=rowsC[i]
       var rowF=rowsF[i];
       if(firstCellCValue == "PREASSEMBLY 1" && firstcellValueF != "")
       {
         @return.item1++;
       }
       else if(firstCellCValue == "PREASSEMBLY 1" && firstcellValueF == "")
       {
         @return.item2++;
@return is just a variable name.
replace /*condition*/ by :
!rowC.IsNullOrEmpty || !rowF.IsNullOrEmpty
or !(rowC.IsNullOrEmpty && rowF.IsNullOrEmpty)
depending on what you find easiest to comprehend.
also, I didn't do it, but replace firstcellValueF != "" by !string.IsNullOrEmpty(firstcellValueF)
also, my brain farted, its string.IsNullOrEmpty(myString), so use that instead of mySring.IsNullOrEmpty .
!!brb nom nom
 
11:14 AM
back
 
i just don't get it, i don't get why it iterates over my appointed range
 
 
1 hour later…
12:20 PM
Happy easter to all you guys
hope you have a nice holiday
 
you 2
try not to break your eggs
 
I will, I'll keep them safe
 
for ( int i=start; i<stop && /*condition*/; i++ ) {
'i' will go from what you specify (e.g. 2) to the last row's index or what you specified, whichever is less, unless /*condition*/ is false , which in your case would be that one of the 2 cells on this row is not empty.
 
12:40 PM
Morning folks
 
o/
 
\no
 
Any EF gurus here this morning?
 
15 hours ago, by mikeTheLiar
@ShawnAbshire you can ask any question you want except for one, which is "can I ask a question". If someone is around and can help, they will.
You can ask any question you want except for one, which is "can I ask a question". If someone is around and can help, they will
4
 
Yea, I know. More or less sparking conversation.
But I'll go ahead and just ask
 
12:44 PM
:p
 
I have several entities:
Patient
FacilityHousing
HousingRecord

FacilityHousing is the reference table for HousingRecord where FacilityHousing contains all rooms within the facility and HousingRecord contains the Patient's housing assignment record.
Now, FacilityHousing and HousingRecord both contain the Patient's Id. What I'm trying to prevent is a circular reference between the Patient entity and HousingRecord entity, but I need to pull the latest HousingRecord entity in with the Patient entity. If I add an ICollection<HousingRecord> to the Patient entity, I'm going to screw up my JSON. What do?
 
did you design the db?
 
Yes, with CodeFirst so I can change whatever is necessary. I'm still fairly new to MVC and EF, coming from WebForms...
 
so, FacilityHousing contains the patient id, then when does the patient id get removed from the FacilityHousing record? when they move out?
and you use that to verify that no room is booked for more than one patient?
or why does FacilityHousing contain a patient id?
 
Yes, we need a quick way to see all available beds within the facility so I built that table so that I don't have to query an entire list of past rooms.
 
12:54 PM
kk
so, it's okay for HousingRecord to have a reference to the Patient who owns it
 
When the patient moves, their id is removed from the FacilityHousing record and the Id is set to null. This is how I query which beds are available
 
whether you want that reference or not is up to you
it's not 'duplicating' the 'Patient' object, it'll point to the original reference
but if you dont show to show it in your json, put [jsonignore] above it
 
Ah, okay cool. Didn't know about that one
So if my ajax is querying Patient, would I need a reference to HousingRecord within Patient to be able to include that with the Patient record?
 
yes
and then on your EF query you need to .Include(x => x.HousingRecord)
 
1:09 PM
@Proxy /ꟻꟻO
 
true i'm going off
gonna escape from job earlier
 
I still have 30 min to go :p
 
\job (escaped job)
 
@mikeTheLiar <\job>
job done.
also it's the end of the world : </world>
 
<job>...</
^job quit
 
1:14 PM
and the start of weekend <weekend>
 
i know how depressing
can't wait for monday
 
i can wait
anyway i'm off... happy easter if anyone is celebrating it
 
but today is friday <friday/>
 
try not to break any eggs
 
@Proxy I'll celebrate by having monday off
 
1:16 PM
me 2
<3
 
(and building my cnc )
 
cnc?
 
cnc.
more like this one though
 
oh taht
 
user7480455
Afternoon all
 
1:17 PM
i worked on that in high school
well "worked" wrote some programms
 
Is the end goal just the cnc, or are you building it to make something in particular
 
user7480455
wow is this apples new mac?
 
user7480455
they are catching up with PC
 
@007 Hahaha, "We are getting rid of EVERYTHING, and giving you the latest in lathing tech!"
 
user7480455
:)
 
1:19 PM
@Kramb I'm gonna make an ip 69 aluminum case for my laptop, some gears for my electric skateboard, maybe more stuff.
 
Nice!
 
user7480455
they have electric skateboards?? Or are you making one?
 
making one, with a small 3kw rc car bldc motor.
 
user7480455
nice!!
 
user7480455
that may take off and be a big thing man!
 
user7480455
1:21 PM
good luck report back!
 
user7480455
back when I was a kid we had those metal wheels and stuff
 
user7480455
now they have big wheels it's crazy
 
@SteveG What I ended up settling on was instead of querying the entire records table, I just query the FacilityHousing table since it's a lot smaller and less demanding than the HousingRecord table.
 
@satibel You're building a CNC?
 
1:49 PM
@KendallFrey yup
got my rails today
 
cool, my brother is too
 
1 000x600x300 mm
 
are you going for router, laser cutter, or what?
 
router, laser, aerograph, and 3d printer
 
sounds epic
I just got a 3d printer
 
1:52 PM
laser is 2.5w, so just cutting balsa, and cardboard
 
oh :(
 
user7480455
My goodness how wealthy are you guys seriously (Not looking for an answer just a statement)
 
@007 Not very, I just have next to no expenses
 
total cost : around 600 euros
 
user7480455
wow
 
1:52 PM
What a CNC? I googled it but I'm still not sure I understand
 
@mikeTheLiar A cutting/engraving/CAM robot
 
it's a robot you program to make/cut away shit i think
 
@mikeTheLiar computer controlled something ^ this
 
stands for computer numerical control
 
user7480455
Factory equipment of your own is kinda neat
 
1:53 PM
@KendallFrey that helps.
 
my uncle likes to brag to me that he programs his companies cnc
 
my brother will give me a lathe.
 
> A CNC (COMPUTER NUMERIC CONTROL) TOOL IS USED IN PROTOTYPING AND FULL PRODUCTION FOR CUTTING, CARVING, MACHINING AND MILLING IN WOOD, MDF, PLASTICS, FOAMS, AND ALUMINUM.
 
I'm also building a thing to melt aluminium and copper.
 
CNC technically includes a lot of things, like my FDM printer
typically it's a router or cutter, I think
 
user7480455
1:54 PM
a crucible??
 
i want a professional level 3d printer
 
@mikeTheLiar and titanium, and tungsten, and steel, and etc...
 
@SteveG what's "professional level"?
 
not the size of a couple coffee machines
 
user7480455
Are you guys working on skynet... its okay if you are... just let me know when you bring all this stuff on line so I can stock up on beans and water
 
1:55 PM
@007 crucible + chamber + electric heating element.
 
@SteveG so, big-ass
 
yea
 
what would you print
a car?
 
i dont know
 
user7480455
LOL
 
1:56 PM
maybe i would want to print a machine gun
 
user7480455
Robots
 
@007 ask my AI assistant, I'm not active on that project anymore.
 
user7480455
with red eyes and a Austrian accent
 
i made lots of progress on my thing this morning
 
@KendallFrey But you'd have to download it first
And everyone knows you wouldn't download a car
!!giphy you wouldn't steal a policeman's helmet
 
user7480455
1:57 PM
Tell that kid Elon Musk that
 
user7480455
I am sure that fool is working on a downloadable car
 
user7480455
damn speaking of bots
 
how sexy is that
 
user7480455
1:57 PM
the goes that caprica bot again
 
make a mid size cnc first, it will cost you less than buying pre made parts.
 
then CNC yourself a bigger CNC?
 
yup
making 1 meter length racks.
 
user7480455
is that a release valve on Austin Powers' Swedish made penis pump?
 
!!g2g
bye
 
user7480455
bye satibel
 
user7480455
what does g2g mean
 
g2g means go to god, it means he's dying
going to god*
 
user7480455
ha! Ok
 
user7480455
I am not up on all the brevity codes you young bucks have....
 
2:06 PM
hey i'm 93, you're the young buck
 
user7480455
I'm old busted rusted worn out!
 
Are you Chuck Tingle?
 
user7480455
Why yes,,, yes I am
 
That.....explains a lot, actually.
 
user7480455
who is chuck tingle... funny bame
 
user7480455
2:07 PM
name
 
Like every other question you ask here, the answer is the same. FUCKING GOOGLE IT.
But probably not at work, this time.
 
user7480455
I wish I could change my name to that... I was going to pick my porn name when I signed up... it was a toss up between Chin Ho and Trom Bone
 
user7480455
well why search engine it when the brain power is in this room??
 
user7480455
I don't like talking to computers... I like talking to people using computers...
 
> I don't like talking to computers
You're gonna make a shit programmer then.
 
user7480455
2:10 PM
I am a sh!t part time programmer
 
user7480455
I don't dispute that
 
user7480455
I don't like coding all that much but it was what I went to school for back in the 40's
 
i like turtles
 
user7480455
they are cute
 
indeed
 
user7480455
2:18 PM
Maybe I should google that so that mike does not go nuts on me LOL
 
@SteveG i like trains
beep beep i'm a sheep
 
:p
brbicecreamtruck
 
user7480455
are you serious about the train thing Kendall?
 
i said beep beep i'm a sheep
 
user7480455
sorry my 70+ year old brain does not know what that means
 
2:20 PM
@KendallFrey so the hormone therapy is working then?
 
lol
rekt?
 
meow meow i'm a cow
 
meep meep imma jeep
 
moo moo I'm a gnu
 
lol
i never laugh in real life, when i think something is funny, i say "lol"
 
user7480455
2:24 PM
are any of you guys good with sql? I would like to ask a sql question but no one is active in the sql room
 
17 hours ago, by mikeTheLiar
@ShawnAbshire you can ask any question you want except for one, which is "can I ask a question". If someone is around and can help, they will.
 
I'm decent with it
 
user7480455
cool kramb thanks
 
user7480455
so if you have view
 
I'd send you to the DBA site but I wouldn't want to inflict that pain on those fine people.
 
user7480455
2:26 PM
and you are using the EF stuff.... how do you update that view if you have made changes to it in SQL
 
user7480455
I need those changes to show up in ef...
 
user7480455
and I guess in the SQL
 
Are you using the Database first approach with EF?
 
user7480455
is there some sql command that has to be typed against that view in sql?
 
You need to drop and recreate the view with the changes.
 
user7480455
2:27 PM
in this case I am not sure...
 
user7480455
as I am not on a mvc project
 
That is entirely irrelevant.
 
user7480455
Mike I was aksed
 
user7480455
so chill
 
He said the view was already changed in sql and needed to be updated in EF
 
2:28 PM
Database first/code first has nothing to do with MVC.
 
oh yea, that
 
user7480455
but I am looking at it in sql and I notice the datatypes have not changed
 
user7480455
the sql view... I thought there was a command in sql that would update the view in sql
 
So you changed the datatypes in the sql tables and you want the datatypes changed in the view, correct?
 
user7480455
yes
 
user7480455
2:30 PM
I was looking in my learn sql in 10 mins book but I don't see the command
 
user7480455
It would be odd to have to delete and build the view over again
 
Something like

CREATE OR REPLACE VIEW view_name AS
SELECT column1, column2, ...
FROM table_name
I can never get formatting right -_-
 
Four spaces.
Ctrl+K
 
Thanks @mikeTheLiar
 
user7480455
Thanks Kramb for the help!!
 
2:35 PM
Most welcome
 
2:56 PM
Hi guys
 
hi
 
Anybody here who have worked on wcf?
Having a hard time with wcf
 
i dont do wcf sorry
 
Well I'm hella good with Google, so ask anyway :P
 
i really should learn it
 

« first day (2372 days earlier)      last day (2574 days later) »