« first day (2682 days earlier)      last day (2491 days later) » 

00:00
StartDate is for example 2015-12-16 then it adds half a month too much to the "Days" which is not supposed to happen
although my brainfarts are frequent, i think this one is still annoying
> but i cant do datediff on the start and end
also that ^
You can get the first and last day of the month and use that to "truncate" the date range.
5
Q: Split date range into one row per month in sql server

dinesh.kI have a table with two column called "from_date" and "to_date" the table look like:- I want result like:- from_date to_date ----------- ------------ 2013-11-25 2013-11-30 2013-12-01 2013-12-05 That date is splits from 2013-11-25 to 2013-11-...

that's uuuugly
yea.... i totally understand it
> d(n,f,t,md,bp,ep) AS
0.o?
19
Q: Selecting most recent date between two columns

TheTXIIf I have a table that (among other columns) has two DATETIME columns, how would I select the most recent date from those two columns. Example: ID Date1 Date2 1 1/1/2008 2/1/2008 2 2/1/2008 1/1/2008 3 1/10/2008 1/10/2008 If I wanted my results to look like ID ...

that's just naming a bunch of columns with short shitty names
this could work, but it will be ugly
like var x, y, f, g, t, r;
in a table with name "d". A virtual table just used in the query
00:09
yea, i know how sql works, but i will not understand what x, y, f, g, t or r mean, so it will be hard to understand a snippet which uses variables that way
Maybe rename those variables (columns) better while you parse thought it.
splitting a date range into months is just ugly to do in SQL
i was hoping for a simple max() and min() function
If you make a table with rows for each month, then you can join to that and make it look nicer
where i can pass 2 dates and it gives back the highest/lowest
yea, you can do that, but that is just one part
00:11
but as far as my google skills go, it only works with select queries
WHEN a > b THEN b ELSE a END AS MinDate
365
Q: Is there a Max function in SQL Server that takes two values like Math.Max in .NET?

skbI want to write a query like this: SELECT o.OrderId, MAX(o.NegotiatedPrice, o.SuggestedPrice) FROM Order o But this isn't how the MAX function works, right? It is an aggregate function so it expects a single parameter and then returns the MAX of all rows. Does anyone know how to do it my ...

there might be mindate() function too.. i don't remember my MSSQL well
IIF looks useful for that
IIF?
one of the answers in that link you pasted
00:14
it will make it a bit shorter
i guess, i could use it
one of those will do. good luck. i'm going to eat
This is very confusing
!!s/conf/aro/
00:22
@KendallFrey This is very arousing (source)
Dude has some legit pipes, actually
Dude is totally meming. Too bad he's dead, according to one of the video comments
10/10
oh damn dude
I think this video just cured my depression
00:38
@KamilSolecki Every time I hear that, I think of youtube.com/watch?v=awcNWrrC5Tg
This is the perfect tribute to the cranberries since their singer died youtube.com/watch?v=ECxsbUoytV8
respect, tongo
@KendallFrey omg absolutely awesome
@KamilSolecki it's champion
It made me laugh enough to make that high pitched suffocation like voice
So yeah, a bloody champion
00:51
I had no idea that the statistics are actually so crazy
I am trying to auto update when a observable variable is chaged in MobX, but nothing happends
Code pls, but keep it minimal
01:06
Ok so my store class is like this
1 message moved to Trash can
@I'mnothuman Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
import { action, observable} from "mobx";

export default class TestStore {

    @observable list = [];

    @action upDate(){
        this.list[0]=true
    }
}
and my render class is somthing like this:
import { inject, observer } from "mobx-react";
@inject("Store")
@observer

class Contacts extends React.Component {

    render() {

        return (
            <View style={styles.contactsContainer}>
                <ListView
                    style={styles.listContainer}
                    dataSource={this.state.dataSource.cloneWithRowsAndSections(dataBlob, sectionIds, rowIds)}
                    renderRow={(data) => <Row {...data} navigate={navigate} status={this.props.Store.list} renderIf={this.renderIf}/>}
inside listView on renderRow={} I have this.props.Store.list
Just to make sure, your Provider is set up for the injector to have something to inject, right?
Also it would be nice if you told us what exactly is going on, as this code isn't easily reproducible
It's also 2:20 am and I'm going to sleep, I'll look at it tomorrow if Noone else helps (and you answer the questions)
01:23
ok, thanks I think I will ask on stack
01:39
ffs, cold snap wasn't even done for all of a week and another cold snap
01:51
Also, what's your normal temperature like?
user2620028
02:06
@Loktar makes more sense :P
:-(
The recent super episode... now it just feels rushed
sold my cryptos and bought a t420
02:24
terriers joined
eat them or sell them ?
hello
can anyone give some constructive criticism on a small web app?
any suggestions would be appreciated
anyone?
@HatterisMad dude yeah that group must be large
30 orders today and people have messaged me asking when I'll have more in stock
cranked my printer speeds up to 150%
user2620028
hahaha
since they're all pretty basic shapes they're actually printing well still fortunately
user2620028
have fun man
lol thanks, glad it's a 3 day weekend at leasat
03:01
That awkward moment when you realize the hybrid tech means you'll need to maintain more janky code, gosh I feel like I am making a frankenstien
I installed the washer and dryer I bought myself
@ndugger it wouldn't let me share your post btw, that's why I just stole it
lol I added the tag you requested though
booooooo
it wasn't difficult, but I think $80 is a fair price for delivery and installation
meme theif
03:05
haha it was a quality one
@Mosho nice man grats
I've done it with a washer before, it's annoying but nothing TOO complicated, however I'll always let a place deliver them for me lol
yeah I tried
they gouged me $80 twice
every time the installer said they can't install it
@Mosho wtf?
what was the issue supposidly?
first one because I didn't buy hoses (no one told me?) and second time because the old hoses weren't disconnected
03:06
lmao they couldn't do that?
he said he can't disconnect them because he might damage something
and the tenants couldn't get it off
DRP
DRP
Hi Experts, quick question, is there a way I can push keyCode to an input?
so he just left
wtf
still charged me $80
03:06
@DRP dispatchEvent
WTF wow @Mosho
DRP
DRP
checking
that's total bs
yeah
@DRP also, keyCode was recently deprecated
you should use key
03:07
I disconnected the hose in 7.4 seconds
was just a little rusty
smh
DRP
DRP
@ndugger gold! thanks so much
so doing the "don't let outsiders in" game again
but none of my colonists are starting relationships
😬 fail
@rlemon join the club
also, what do you plan to do with sappers?
sappers?
yes, sappers
03:14
umm, kill them?
but why do you have a wall then?
the wall funnels in the mad animals and such to the guns
oh so it intentionally has gaps?
no, the gaps will be closed into corridors later.
then why the plans?
03:17
the plans were my original dimension working out
and there's mud
yeah fuck water
gotta pump out the mud, and continue to develop the outer wall
and fill the other rooms. :P
and heavy bridges to continue the wall and stuff.
but they take a lot of stone
@ndugger oh god that plot twist
> she was my cousin... she just came out of nowhere... And she just wanted a hug... I'm just getting luckier and luckier with girls
03:29
If var X = {a:1}; and var Y = X;. Then if I change X values, Y will also change because it's a reference of the same object, right? That means that they are exactly the same object and is imposible to determine which one is the original one?
Anyone know if map<text, set<int>> is valid in cassandra/cql?
> Non-frozen collections are not allowed inside collections: map
so I guess yes, but I have to use frozen
frozen<map<text, set<int>>>
03:52
@EnderLook they both reference the same object, yes
@Mosho Ok, thanks
 
2 hours later…
06:10
@ShrekOverflow Holy, shit, that's incredible
 
2 hours later…
08:09
\o
 
2 hours later…
09:53
Hey ho
hey
I am practicing Angular Js UI routing nested view, so I faced a strange problem when I run my app directly the ui routing doesn't work, but when I run it with php storm It work perfect!.
 
1 hour later…
11:19
Hello, can someone tell me why this if statement is true? jsfiddle.net/sjtn6bx3/1
11:45
Ok, got it. :)
one is always true... :D
12:34
what's a good translation for bar in hexspeak? Closest I can think of is b43, but urgh
b47?
or B48 for BAR
12:45
I'm back bitches
@KamilSolecki So much fun snow it was crazy
@Zirak ERMAHGERD
This week felt like I improved by miles and miles, got a top speed of ~90km/h, did blacks, AND managed to ski down a red with shoes in both hands
Oh and some 3m jumps, was crazy
@KamilSolecki (@MadaraUchiha) What a coincidence, I gave a talk about just that zirak.me/quirky-slides/#
@Zirak do you remember the usecase with the reserved public keyword in strict mode? Can you refresh my memory?
12:48
@MadaraUchiha Adding privacy levels to classes, like private and protected and public
Like there're in Java or whatever
@Mosho Dude I just finished a week and I also have one planned for the end of March
I love you but bro
bro
you want to
I can tell
@BenjaminGruenbaum bitch please
@Mosho I do :( but vacation days and money
excuses
whatever
@Zirak wohoo awesome! Hows your skills now? :D
I'll go alone
12:56
@Zirak also sweet, thats what I was looking for :D
@Zirak omg at the <!-- thing
!!> 1 <!-- hey
@KamilSolecki Much better, feeling more confident. You went skiing yourself not to long ago, right?
@KamilSolecki enjoy, tell me how I can improve it
@towc yeah it's pretty nuts
@Zirak sure, I'll look through it in detail after I'm done with talking to my TV
I finally managed to find up to date docs
And it's finally working
@Zirak yeah, and hopefully going one more time in a month
One decently big problem though
13:11
@Zirak that's pretty hc
The TV's power ON/OFF through http doesnt work
how long have you been skiing
and its not just me
a lot of people said its an issue
@KamilSolecki why don't you turn it on like a normal person?
Which is something I really looked forward to
13:12
like through the remote or something? :P
@SaitamaSama because I want to just tell Alexa to turn on my tv
or tell her to start netflix
and she would turn tv -> launch netflix
but the former seems to not work in general :/
we're just going on the path of sentient AIs with all this automation :B
Im literally hooking up everything I can to her for the last few weeks
got my coffee machine as well lol
I bet your house is going to be the first place to host sentient AI
that reminds me, I need to add more commands for the blinds
so the interaction will be more humane
13:14
@KamilSolecki I can imagine all sorts of things going wrong with it
Like, Alexa, close the blind partially and close the blind fully
@SaitamaSama no it actually works very well
what about when you forget to put your cup in the place?
well, that you have to remember :P
> Sorry, your request could not be completed because it looked suspicious. If you meant to perform an action on Stack Overflow, please return to the previous page and try again.
whatcha tryna do?
13:16
login
very suspicious indeed
@SaitamaSama the blinds are absolutely the best, as I dont have to stand up to move them
heh, nice
also, seems like that message by Richard gets more stars as everyday passes
its clearly a champion
cc @KendallFrey
13:23
@Mosho Why thank you, this was my 3rd week
@KamilSolecki Awesome :D
@Zirak that sounds really good
@Mosho Helped that I skiid for 100% of the time skiing was available, and took lessons throughout the whole 3 weeks
yeah, lessons are great
I'm content with not falling down randomly anymore
(with a snowboard)
not quite up to 3 weeks yet though
neat! Snowboard looks like it's much, much harder in the beginning
never tried ski, but that's what they say yeah
I fell down a lot in the first trip
a lot
13:27
heh
It's now that bad to fall down though, snow cushions you
it's not always snow
sometimes it's more ice than snow
or people
the beginner slope in poiana brasov where we went with tipranks
had a very large patch of dirt pretty much in the middle
in the first 2 days
@Mosho wait, you went to romania?
we all did
13:28
:D
yes
not proud of it
:/
but we did
@Mosho oh yeah, that sucks
why? Got hookers and booze and now are regretting it?
13:29
I don't drink
@Zirak I broke my ass a couple weeks ago on icy slopes in the local ski hill
wiped out after getting launched in the air by an icy bump
face first
then lost confidence and started falling on my ass
couldn't sit right for a week
but yeah, when the snow is soft falling down is fine
@Mosho owie
@Mosho oh yeah that's a huge factor, after falling down you're significantly less confident and perform worse
(that's what she said?)
not if you go on fridays
you gotta gotta get down on friday
@Zirak you went to val thorens right? when does it close
daily I mean
what I didn't like about poiana/bansko is that lifts close at 4-5
13:43
@Mosho around the same time
I was in seattle last week
Most of the time the lifts start closing at around 1600, last lift (which connects to most of the city) closes in 1715
resorts there close at 10
it's great
@Mosho wow, night skiing
yeah, ski hill here closes at 9 too
13:44
what's "here"?
not everything is open
@Zirak Where have you being?
@Zirak local ski hill
@MadaraUchiha Val Thorens, really high ski resort in France
200ft high :P
13:45
@Mosho Shreddin'
Wilsmer is in Canada, it's supposed to be incredible
I'm pretty sure it's cheaper to fly to the alps
from canada
hah, that's also true
Is it possible to imbue proxy capabilities on a class by extending from a Proxy?
Or something similar?
13:55
Where would you want to extend a proxy vs wrapping with it?
@zirak @rlemon I have an awesome idea.
Allow users to unban themselves, by pinging the person who banned them with a predefined apology message that will be embarassing
@KamilSolecki Peanut butter and turkey sandwich?
and cap will auto pin that
I liked the sandwich idea better
Can we revisit this "sandwich" I keep hearing about?
What exactly is it?
14:01
@Zirak Its like potato
@ssube I want to create a MyComponent where you don't use setState, but instead change properties normally
And there would be a proxy that would catch these assignments and call setState for you.
@Luggage this by all means does not exclude the sandwich idea.
Since I am the library here, I don't want to have people wrap or write anything special.
!!afk We equire more food!
@MadaraUchiha That's called mobx
14:02
heh
@Luggage Yes, but mobx requires you to decorate every property individually
And I'd like to avoid that.
you'll have to do something like that if you want to only proxy selected properties, won't you?
While I could use a decorator, I wanted to see whether it's possible to do this via inheriting from a magical class.
Hello, does anyone has experience with unit test Jest ? Cannot found out why 2 tests fails when the other (25) succeed ... Thanks for your help : stackoverflow.com/questions/48852436/…
@MadaraUchiha either wrap them in a HOC or wrap them in a hoc automatically with decorators :P
14:03
20 secs ago, by Madara Uchiha
While I could use a decorator, I wanted to see whether it's possible to do this via inheriting from a magical class.
@ssube Using a proxy means I can catch everything.
while a partial proxy makes sense from the developer's perspective, isn't it kind of against the concept of proxies?
especially in the traditional model of you -> proxy -> real thing
Sure, it's abuse
ok, carry on :D
14:04
I'm not planning on doing anything like that in production, was just curious to see if it were possible :d
I'm also curious, just thought it was a weird ask
@Zirak You're the lead expert of all things wat in these modern times.
What do you think?
throws himself out of the channel
/catches
be careful, we'll start referring questions to you
14:10
@MadaraUchiha and they say Mercy is balanced reddit.com/r/Overwatch/comments/7yc7ql/…
14:25
@MadaraUchiha Extending Proxy shouldn't do much, it doesn't alter this, creates and returns an object
14:43
@MadaraUchiha I don't see why not
though you'd have to figure out of to avoid rendering too many times
@MadaraUchiha like this? jsfiddle.net/d8Lyfvf6
you can replace the setter with a proxy
Uh I'm officially addicted to whipped cream in my coffee
You disgust me
Dude espresso with whipped cream
Is so good
We have a super expensive coffee machine at work, it's almost like free Starbucks every day
starbucks is hot piss
it only tastes good with cream
with which actual hot piss would too
damn
you could hire an entire employee in the UK for that

« first day (2682 days earlier)      last day (2491 days later) »