« first day (2188 days earlier)      last day (2775 days later) » 

9:01 PM
Got it. FFS... Migraine
 
no
 
Thanks for the help anyway guys
 
9:31 PM
o look it's @JohanLarsson
 
hej killar
 
don't give me any of that
I'm not in the mood for demonstrative pronouns
 
kek
 
@TravisJ, too bad the last letter in your username isn't t
It's quite a Travis...T
 
Not seeing the connection.
 
9:35 PM
travesty
 
womp womp
 
XD
@TomW, if only the T in your name was a p
Then you could rearrange the letters to womp
womp womp
Tom W
 
PomW would be just fine on its own I think
 
Pom W
PomW
 
none of you are Australian so fu
I'll accept that from them
 
9:38 PM
I have been to Australia.
I have eaten their Kangaroo.
 
!!urban pom
 
I think I had an Australia in the toilet this morning
 
@TravisJ I think they have more than one
 
Australian toilets suck.
There is no water in them while you are going.
 
Australian toilets suck because they're in Australia
 
9:40 PM
@TravisJ like an airplane toilet?
 
the water runs the wrong way don'tcha know
 
@kush - Kinda, yeah
@kush - Except that it is shaped more like a rectangle than a bowl.
 
@TravisJ does it have a suction effect? o.O
 
@kush - Nope
 
take pictures?
 
9:40 PM
^
 
 
Isn't Australia just desolate, hot, and gross?
Looks like you have the gross part on lock
 
@Nathvi - Not all of it, Aus is the same size as the US.
 
No, this photo is in the US
 
XD
 
9:43 PM
@TravisJ o.O I didn't know that
 
with a population of about 17mil I think
 
US is the best
only US, I am the dirt I live on :o
 
severe dustbowl effect going on in most of the interior atm I think
 
DONALD TRUMP 2016
 
3.797 million mi² > 2.97 million mi²
 
9:44 PM
XD
 
the best square miles
 
my square miles are the best
 
I remember reading that some Australian cars are banned everywhere - including the United States, which is ludicrous, for being too polluting. If America won't accept them...
what do they run on, dolphins?
 
yes
 
@TomW 23.13 million (2013)
 
9:46 PM
@TomW - Yeah the interior is almost unpopulated aside from indigenous people
 
@kush nonsense, my geography lessons 15 years ago are immovable fact forever.
 
You mean you haven't destroyed all the indigenous people? What happened to your national pride?!
 
Melbourne supposedly has a nice climate
not too hot
 
@Nathvi England is working on it.
 
@TomW - Yeah the west coast is colder, and the south west is very cold.
 
9:48 PM
mmmmm
 
You know what language they speak in England?
 
Amurican
 
fuck you
 
Pakistani
 
haha
erbody speaksz murican
 
9:49 PM
Haven't you heard, Birmingham is completely Muslim
 
That's too bad
 
(Trump said that, I think)
 
Because everything he says is fact.
 
trump also said that te terroristz were tailgating in the streets after 911
 
I have been making my own trump facts
 
9:49 PM
and that he has the best memory
that last debate was a god damn disgrace
 
He also apparently said violence is at a high in forty five years?
 
maybe it is
I'm not sure
 
gun violence certainly is
 
i know globally it had been going down
 
@Nathvi it definitely is not
@TravisJ no, it is not
 
9:51 PM
@kush, yeah it is
 
@Nathvi violence was really high in the eighties and the nineties
we can't compete with those days unless we dropped everything we do and went around kicking each other for no reason
 
@kush, idk, I just got done watching this
 
this?
 
@Nathvi well isn't that what he said? that violence is on the decline?
 
9:54 PM
Yes, and that's what I said was happening
 
the problem now is that we're so used to peace that the smallest thing makes us jumpy
 
prbly
Media has a higher saturation
 
Yeah, I mean someone with a truck couldn't cause instant global panic fifty years ago
 
prbly not
I'm not sure it was global panic
 
Thing is
 
9:56 PM
hm
 
People will piss away their liberties for small bs
 
that was eminently possible for as long as trucks have existed
 
@kush - You are correct
 
By the way, Americans have led a charmed life with respect to civil unrest. Domestic terrorism is only new to you
 
10,945 was the number for 2014 (since it isn't on the graph) which indicates the trend is still in decline compared to the 80's/90's heights
 
9:58 PM
@TomW, if you don't consider the police domestic terrorists
 
this is the long term homicide trend
 
@TravisJ, is that normalized?
I assume
against per capita
 
I think it is just raw. 25,000 homicides in 1990 for example.
The graphs came from the bjs.gov (Bureau of Justice Statistics)
This is a related report that contains the first graph bjs.gov/content/pub/pdf/fv9311.pdf
slightly dated, but looking at long term trend it is still relevant
 
11:01 PM
I intentionally mentally dig into programming extra hard now when any politically charged topic comes up. Politics is such a toxic topic here in the States unfortunately. People WAY too often take a difference of opinion as some personal affront.
All you can do is draw your own conclusions here and take your opinions to the voting booths.
 
@hilli_micha - You probably get it worse than most of us, considering you are in FL.
 
Yes. Florida has such a mix-mash of cultures/opinions that it can get real ugly real fast.
Unfortunately however, the entire country as a whole it's kind of an issue. Which I imagine is why voter turn out is ALWAYS an issue. By the time election time rolls around, people are just ready for it to be done with. Doubly so with this particular election cycle.
 
Hi guys
Is it possible in jQuery to set functions for various Ids? Example:
I have two <div> with unique ids, I want to make it so for <div id=1> to do certain things and <div id=2> some other things.
Should this be done with if conditions?
 
It depends on what you mean by "things".
@hilli_micha - In California we are mindless beings and all vote the same every cycle.
 
@TravisJ I have a function for webcamjs called Webcam.set, I need to set different settings for those two <divs>
 
11:13 PM
So make two function calls, each call with the different div?
 
It's mainly for the size of the cropped image. One <div> should render 700x700 and other 550x700
@TravisJ Can you please provide an example?
 
$("#id1").webcam();
$("#id2").webcam();
 
does Control.Invalidate(Rectangle.FromLTRB(0, 0, 0, 0), ... invalidate one pixel? Or is right/bottom exclusive, so it does nothing?
 
@doug65536 - It will repaint the area you specify, yours seems to repaint the entire page?
 
11:17 PM
so the rectangle specified will include the right pixel(s) / bottom row then? It seems to not invalidate. hard to tell for sure if that is it or something else is wrong right now
 
Unless the 0 offsets are not meant as 0 from left, 0 from right, and are instead distances to cover, in which case it covers 0 distance and will not repaint anything.
 
The Webcam.set looks like this:

Webcam.set({
enable_flash: true,

// live preview size
width: 800,
height: 450,

// device capture size
dest_width: 1600,
dest_height: 900,

// final cropped size
crop_width: 550,
crop_height: 700,


// format and quality
image_format: 'jpeg',
jpeg_quality: 100
});

I have another one with the same settings except crop_width: 700
 
say I did Invalidate(Rectangle.FromLTRB(0, 0, something.Width, something.Height), false) - that would be wrong to invalidate the last pixel(s) on the right, etc
that would need -1 on the last 2 parameters then?
 
Say there is a subset of widgets, each with an ID. Then there is another list of all widgets, with their status over time. Using Linq, what is the most efficient way to get the most recent status of a widget in the subset?
 
@KevinMaxwell - there does not seem to be any selector involved in your example.
@doug65536 - So that would invalidate an area of .W*.H starting at the top left I believe.
 
11:21 PM
exactly, the demo does the same thing, but it does for one webcam but I need to run for two because I need to capture two sizes.
https://www.npmjs.com/package/webcamjs
 
@ChristopherJ.Grace - widgets.Where(w => w.ID != null).OrderBy(w => w.TimeStatus).First();
@KevinMaxwell - Unsure.
 
@TravisJ I know, not that many people use webcamjs. Thanks anyway.
 
@KevinMaxwell - I believe, after using set, you need to use: Webcam.attach( "#div_id" );
 
Yes, I do it:
Webcam.attach('#app_camera');
Webcam.attach('#app_camera2');

but they take the same Webcam.set
 
yes that seems to be the case
 
11:28 PM
I was thinking to do it this way, set Webcam.set (with 700x700) to #app_camera and other one to (550x700)
Set different Webcam.set to different divs
 
I would suggest modifying their source code.
 
@TravisJ hmm, I'm not a jQuery guy :(
 
It would require modifying a significant portion of the library to conform with the jQuery .fn API.
 
correct
 
Perhaps you can put in an issue for their github account. The modifications are fairly straightforward if you are familiar with jQuery.
 
11:31 PM
@TravisJ Yes, that would be the right thing to do, but unfortunately I have a deadline to meet
 
@KevinMaxwell - A very simple alternative would be to simply rename Webcam to Webcam2 in every instance of a copy, and then use both webcam1 and webcam2 as copies to have two on your page.
Which is to say, copy the entire .js file, rename the webcam umbrella, and use both the original and the copy.
This would qualify as a "hack" though.
 
sounds interesting
I will test it now. Thank you
At the beginning of codes it says : var Webcam = {... , so I can duplicate this file and call the other one var Webcam2 = {
 
yes, but make sure in the duplicate you also rename other instances of Webcam to Webcam2
There is a small possibility that it is physically impossible to read from a webcam from two places at the same time. Unsure.
 
@TravisJ VM75017:50 Uncaught ReferenceError: Webcam2 is not defined
There was no other place to change Webcam to Webcam2
 
@TravisJ yeah, adjusting my coordinates fixed it. the "right" and "bottom" are not included in the range being invalidated, the start coordinate is inclusive, the end coordinate is exclusive
thanks
 
11:40 PM
:)
@KevinMaxwell - There is a reference to Webcam lower in the script that is significant.
 
oh yes, why the Search didn't find them
 
@KevinMaxwell - There are several calls to dispatch, init, and a window.Webcam reference that all need changing
 
yes, I found them now
 
okay
 
It's working as expected. now I have two Webcam windows with different aspect ratios. Thank you @TravisJ, I really appreciate your rapid support.
 
11:51 PM
@TravisJ Hi Travis! I didn't ask that right. Here is an example: gist.github.com/dialedin2014/c036a7d5c11409cfeb8d1b3291db9bc0
WidgetSubset.join(widgetstatuses).orderbydescending(date).groupby(id) seems to be the more common approach, but could groupjoin be used with selectmany? Or maybe there is another option?
 
@KevinMaxwell - Wow, nice :D
 

« first day (2188 days earlier)      last day (2775 days later) »