« first day (1796 days earlier)      last day (3164 days later) » 

8:02 AM
who is 25737455?
 
:25737455 You
 
I'm 1835379
 
I am the darklord
 
I am not a number
 
Everyone hates NaN
:D
 
crl
8:06 AM
doc===undefined||null does it need parenthesis around undefined||null?
 
won't do what you think it will
 
crl
ok I see :) it does (a===b)||c
 
@Cerbrus Obvious troll is obvious TBH, I'd say it's not much point feeding it :)
 
and doc===(undefined||null) won't do what you think it will
 
Troll? I just assume they're retarded.
 
8:08 AM
@FlorianMargaine that's what I was referring to
 
@AwalGarg of course dear
 
I am the Darklord, and the darklord ain't dear
> Or even HP and the Yule Ball, aka Dating for Dummies: at least the Ball takes up a few chapters rather than just one or two scenes! (scifi.stackexchange.com/questions/102879/…)
nice
 
crl
@FlorianMargaine oh yes I'm retarded, it's doc===undefined || doc===null
 
What's a good adjective for "having side effects"?
 
@MadaraUchiha wrong chat
collateral damages?
 
8:19 AM
"Most of my modules are _______" vs "Most of my modules have side effects"
 
hm...
 
harmful?
 
side effects can be good
 
@MadaraUchiha idiomatic?
 
8:23 AM
Hi! I cannot seem to get dgAuthProviderService injected into my app.config from the dgAuth module github.com/tafax/angular-digest-auth as stated on their README
I have successfully imported the dependency for dgAuth as:
 
!!are you here?
:(
 
var app = angular.module('myApp', ['dgAuth]);
 
@shyam Hasn't been updated in over 2 years, are you sure it's still compatible?
 
I am not sure. But that was the only library I could find on digest authentication.
 
Also show some code and any errors you're getting
 
8:25 AM
It was either this or implementing it myself.
@BenFortune Sure!
 
CREATE TRIGGER offliners
ON Videoconferences
FOR UPDATE
AS
BEGIN
var currentTime = getdate() // current date
DELETE FROM Videoconferences v
where (v.updatedTime - currentTime) > 4 seconds
END
 
it's SQL!! run!!!
 
@shyam Any errors? Is something not happening that should be?
 
we need an exhaust report Kappa
 
8:29 AM
i want to delete records that are older then 4 sec possible ?
 
Yes. It says dgAuthServiceProvider is undefined when print in out in the console
 
where (v.updatedTime - currentTime) > 4 seconds doesn't look valid at all
Why not just 4?
 
I took a look at the source of dgAuth module and dgAuthServiceProvider is defined there as a provider
 

MySQL and relational databases

Ask your question, and then hang around a while to see if an e...
 
@BenFortune yes i know, i'm just saying what i wanted
 
8:32 AM
It works !
( My timezone is set in PDT )
 
@BenFortune Any ideas?
 
(v.updatedTime - currentTime) is gonna be less than 0 always
 
Fuck it, I'm not good with SQL
 
i have question about angular
 
8:34 AM
neither me
i hate SQL
@EuphoriaGrogi ask!
 
im good at sql
 
@shyam Absolutely none I'm afraid
 
:o maybe you could help him then
 
wait
i will ask first :)
this is my model
 
@BenFortune :(
 
8:34 AM
subjectName and i have a filter
 
@shyam See if you can reproduce it in a plnkr.co
 
@EuphoriaGrogi help me please
 
<li ng-repeat = "subject in student.subjects | filter: subjectName |orderBy:'marks'">
{{ subject.name + ', marks:' + subject.marks }}
</li>
and this is the controller definition
QUESTION : i filter the subjects using the text entered in subjectName textfield
 
@Neoares i know my trigger is wrong , i just wrote in casual words my concept
 
Lo (again) - so my issue with the view not updating is caused by me dumping a load of data back into my model in a "resetState" call, which is doing:
 
8:36 AM
yes but the concept is wrong
 
how angular mapped it that when it filters the subject array
 
angular.extend(this, angular.copy(this._savedState));
 
it will look in subject name
 
I mean it should be current_time - updated_time
 
@Neoares y? cant we delete records that are older then 4 seconds ?
 
8:37 AM
@Simply I'm not sure, I'm not good at SQL
I just realized about the wrong substraction xD
 
hmmm okk
 
v.updatedTime is this a datetime field?
 
@Simply DELETE FROM Videoconferences v where (NOW() - v.updatedTime) > 4
 
because current time is gonna be >= updated time always
 
noooo
that is correct
@BenFortune no need to update that
 
8:38 AM
@MadaraUchiha "impure"
 
@Simply answer my question
v.updatedTime is this a datetime field
??
 
God I'm thick
 
DATEDIFF(second, v.updateTime, currentTime);
 
DELETE FROM Videoconferences v where v.updatedTime < (NOW() - INTERVAL 4 SECOND)
 
NO ONE ANSWER MY QUESTION EVERYONE FOCUSED ON SQL :(
including me bdway
(wave splashing)
(bird passing)
 
8:42 AM
@Abhishrek What works?
 
yes yes it is datetime field
 
mssql or mysql>
 
@EuphoriaGrogi sorry sorry did not see
ms sql
 
try datediff
 
sql server 2008 r2
 
8:43 AM
DATEDIFF(second, v.updateTime, currentTime) > 4
js master
help me
im studying angular
 
that 1st parameter(second) constant ?
@BenFortune thank you. i'll try this too :)
 
@Simply It's MySQL, not sure if it'll work with MSSQL
 
-1
A: How can I mock dependencies for unit testing in RequireJS?

Jinto JohnI think you should check new Squire.js lib,Squire.js is a dependency injector for Require.js users to make mocking dependencies easy.. You can use the below link for more clarifications.. https://github.com/iammerrick/Squire.js/

-_-
 
@BenFortune oh -_-
 
@BenFortune a small utility i wrote to shut down my system in case of a network failure
 
8:48 AM
@Simply no, the first param is the unit, the second is the subtrahend, the third is the minued
minuend *
Ben Fortune Cookies
Ben 10
just kidding
 
Can you stop spamming, please?
 
just showing my humor
sorry
 
@Abhishrek is this written purely in js?
 
@Abhishrek That's disgusting. :D
 
8:51 AM
@BenFortune why disguisting ?
Its atleast better then NTFS file system crash
 
yah disgusting
 
    <a class="visit-editor__action visit-editor__action__save"
       ng-click="vm.saveVisit()"
       ng-class="{
         'visit-editor__action__save--unsaved': vm.isUnsaved('y')
       }">
 
Pretty sure you can do it in PS1 in 2-3 lines
 
@EuphoriaGrogi thank you, do you know how to get current date along with time seems like GETDATE() with will not give me time
 
@BenFortune whats ps1 ?
 
8:52 AM
Powershell
 
getdate will return date and time
 
I'm checking that this specific ng-class call is being made after I update my model. It is, and it returns true when I want it to, but the class is never applied
 
@BenFortune I havent tried it, but i prefer writing it in node
 
@EuphoriaGrogi okay
 
because tomorrow if i move to linux / osx all i have to do is change slight amount of code :P and then finally it will be cross platform for the same thing
 
8:52 AM
@Simply upvote my answer hahahha
 
@Abhishrek How are you checking the connection?
 
Pinging a network server
 
@BenFortune There seems to be yet another error when I try this on plunker. Anyway, here is the basic setup: plnkr.co/edit/GycWyWZlWy1Biw9u0hdI?p=preview
 
	'www.google.com',
	'www.cloudflare.com',
	'www.baidu.com',
	'www.yandex.ru'
 
hello all
 
8:56 AM
unlikely all will fail at the same time
 
so finally
select * from a
 where DATEDIFF(second, a.DateValue , GETDATE()) >= 4;
 
what sites you can recommend in learning intermmediate js?
 
page just w8 for all ajax to finish executing is there any way i could abort all ajax before moving to another page
 
0
Q: Express JS Node JS multer intergration issue

Ranganathan Swamyhttps://github.com/cminhho/AngularFileUpload-Express/blob/master/server.js I am implementing this tutorial and I have done things accordingly but when I am working with updated express js, it throws an errors on the express js side. Error C:\nodefiles\new\node_modules\express\lib\applic...

 
or page doesnt w8 for ajax
 
8:57 AM
please help
 
@EuphoriaGrogi oh we can even upvote answers here ? tell me how i'll do it
 
@MuneemHabib just wait it to finish
@Simply its a joke only
 
@EuphoriaGrogi oh :D
 
@Simply its ok if no upvote,
even if u upvote me i cant surpass John Skeet
 
@EuphoriaGrogi is there any upvote feature here ?
 
8:58 AM
i dont know haha
this is my first time here
haha
 
@RanganathanSwamy You have an answer that works...
 
@BenFortune I am new to all this. Actually I don't know how to implement that given code in that tutorial. Sorry I might sound stupid but this is new to me.
 
@RanganathanSwamy Don't use the tutorial, it's outdated code. Use the example from the module...
Exactly as the answer states.
 
If you have time can you please link me to any other tutorial where I can learn to upload multiple images.
 
@RanganathanSwamy try angular
its AWESOME!
im currently studying it
 
9:01 AM
I am using angular for the frontend @EuphoriaGrogi
 
@EuphoriaGrogi Angular 1 / 2 ?
 
@Abhishrek 2 maybe
im new to it
cant tell
 
If you are still trying out 1 be ready for orbital annihilation.
@EuphoriaGrogi well does this look familiar
'$httpService' ?
 
orbital annihilation?
 
@Abhishrek I am using angular 1.1.3 or something
 
9:02 AM
y? is this complicated?
 
is the new one very different from the current one?
 
im using 1.3.14
 
@RanganathanSwamy Oh yes
 
@EuphoriaGrogi Angular 2 is radically different than 1
 
which is better?
if i learn 2
 
9:03 AM
2 by far :P
 
Ohh... what should I do then, @Abhishrek change to the new one?
 
does it mean that i will shortcut in learning 1?
 
@BenFortune I am making react-native work on windows
 
@Abhishrek What does that entail?
 
@BenFortune Please give me a link then Thank you for your help.
 
9:04 AM
@RanganathanSwamy @EuphoriaGrogi I left Angular after 2 was announced.
@BenFortune Its PITA OSX friendly :-/ help ?
 
@Abhishrek I will check it out today only Is it still in beta phase or something?
 
@Abhishrek Didn't the android version require a rewrite?
Or is it just all build scripts?
 
@BenFortune dude the computer you create your app on.
the cli can only run on osx, linux with some changes
windows no luck so far
 
Oh lol, I thought you meant you were porting it to run on Windows
 
@Abhishrek can you help me with my problem because it is evident that you have worked with these before.
 
9:06 AM
@BenFortune fuck windows
I mean not fuck, fuck windows
 
@Abhishrek u will fuck a computer?
 
but on windows normal react can work without much issues and have native privilages
 
hahah be careful not to be electricuted
 
so no point of react-native their.
@EuphoriaGrogi usually condoms are latex so not a chance that it could occur.
 
@Abhishrek So it's just the android version you want working?
 
9:08 AM
This is what I am really trying to do. I want the user to have the facility to upload multiple images and then show them in a gallery format. Like suppose I uploaded 12 images of Taj Mahal then they will be uploaded in one go and I'll have their urls in mongo db. Then I want to call them on the frontend and they'll be shown as thumbnails and when the user clicks on particular thumbnail he will see the complete revolution image.
 
@BenFortune I just want the cli to work on windows.
until i can get a mac that is.
 
i wish i have a mac
that mac is so expensive
 
@EuphoriaGrogi you can rent one online
and use it
 
link?
 
I wanted to buy my boyfriend one for his birthday, but he didn't want it
 
9:11 AM
@BadgerCat send it to me
those ungrateful guys should not have one
haha
 
@BadgerCat Copy is unique :P
 
hm
I'm gonna buy an S5 soon
I can have one for ~30euros
 
@Abhishrek Yeah, now I don't know what to get him
 
@Abhishrek i dont want to rent
i want to own one
 
9:13 AM
whats the price now?
 
@BadgerCat how about an antique computer ?
like classic stuff ?
 
He wouldn't want that
 
@BadgerCat on my first day at my job, I was asked to choose between an mbp and a lenovo. Lenovo is easier to install linux on, so I went with that
 
@BadgerCat maybe his a gamer
need a gaming laptop
 
Yeah, I think copy would have picked the mbp but still install linux on it
 
9:15 AM
    delete from Testoff where DATEDIFF(second, Testoff.UpdatedTime , GETDATE()) >= 4; // Working

delete from Testoff t where DATEDIFF(second, t.UpdatedTime , GETDATE()) >= 4; // Not working
 
But he already has a new gaming computer
 
I hate softwares which are mac only, Even more when they are useful dev-tools
 
why the second one not working o.O
 
hi, how can nodejs return value after mongo extraction?
anyone know?
 
where select * from Testoff t where DATEDIFF(second, t.UpdatedTime , GETDATE()) >= 4; // working
 
9:17 AM
@Simply why not working?
its the same
ur just aliasing it
 
The problem is that he already has everything and he hates consumerism
So I guess I'll just cook his favorite meal
 
lucky guy,
 
hey guys.
0
Q: Confusion with combining math.Max and math.Min

AspergerThere is a formula I have read on stackoverflow and one thing is not clear to me, more on that below. maxMax returns the second value within the brackets and the mathMin the first one. So let us assume I am making a calculation where let us say: max = 2 * 10 min = 2 * 5 In order to calculate t...

 
other people like me struggling
sigh
 
@BadgerCat thats sweet.
 
9:18 AM
wonder what you guys could tell me regarding my question.
 
that reminds me a card is due in 15 hours, shit
 
error is "incorrect syntax near where."
 
@BadgerCat thanks !
 
@Asperger
max = 2 * 10 min = 2 * 5
this is a two statement
max = 2 * 10; min = 2 * 5
==================
max = 2 * 10;
min = 2 * 5;
 
was actually just some example. Can be anything really
add 3 * 4
 
9:21 AM
please update the question
its not clear
 
thing is I dont really get the formula which is, as far as I understood, pretty the basic way of defining a min and max value within a calculation
 
I just updated it. Let me know which part is not well formulated : (
 
hmmm i got aliases are not allowed  in delete query in that way
 possible like this way
DELETE f FROM dbo.foods AS f WHERE (f.name IN ...);
 
DELETE FROM dbo.foods AS f WHERE f.name IN ('hotdog', 'sausage');
 
9:25 AM
@EuphoriaGrogi check my latest comment. Hope it explains it
 
@Asperger All of it. It's unclear what you're trying to achieve.
 
Math.max(a, Math.min(x, b))
give sample values for a , x and b
Math.max(a, Math.min(x, b))
example :
a = 10 , x = 2, b = 5
 
@EuphoriaGrogi this is what im working on jsfiddle.net/c6h9uuon/2
its a mess but you get the idea
 
this is the return, 10
why its behaving as Math.min?
 
dont solve it! I want to solve this myself hehe but what formula do I need
Well it is not that its behaving as math.min. It is just what it looks like to me
 
9:28 AM
@EuphoriaGrogi LOL
 
ang gulo2x grabe
@Simply why?
 
what if user likes hotdog a lot and he don want to delete it :p
 
Im just not understanding how the formula works. For example the second value of math.max is math.min. The second value is what max returns though. Shouldnt "a" and math.min positions be switched?
im screwed lol
 
@Simply so u remove it in the condition? haha
@Simply implement it like this
@pass the foods user want in xml
then in your sql
parse your xml
so its a litlle bit dynamic
 
@EuphoriaGrogi did you check my jsfiddle?
 
9:33 AM
@Asperger nope haha
sorry
 
you should know what im trying to do
 
and shrimpball
im eating crabstick
 
just dont tell me the answer.
 
@Asperger what specific expression here r confused?
 
from the formula?
 
9:35 AM
wScan or result?
first thing i notice
x and b is not defined
aaha
 
@EuphoriaGrogi jsfiddle.net/c6h9uuon/3
it works
but the new version im building, im trying to add a limiter for max and min values
 
var wScan = {width: window.innerWidth || document.body.clientWidth };
var result = Math.ceil(fontSize * wScan.width / compress);


var wScan = {width: window.innerWidth || document.body.clientWidth };
Math.ceil(Math.max(a, Math.min(x, b)))
var result = Math.min(Math.ceil(fontSize * wScan.width / compress)); Math.min(Math.ceil(fontSize * wScan.width / compress));
 
so the formula I found online kind of confuses me. I cant add math min and max on one line. I have to combine them somehow so that I get 1 result
 
bdway
Math.ceil(Math.max(a, Math.min(x, b)))
this is a left operand
you should implement it like this
 
@EuphoriaGrogi never heared of the term
 
9:38 AM
var thisIsALeftOperand = Math.ceil(Math.max(a, Math.min(x, b)))
assign it to something (e.g. variablt
 
@EuphoriaGrogi in this case it is my result jsfiddle.net/c6h9uuon/3
 
and declare all your variable
yes!
thats enough
 
It was just floating around there so that I can have a look at it. Should have commented it out
 
yah
:3
 
Thing is... (not dont get shocked)
I dont understand something : (
explanation coming
ok I think I know why I was confused
 
9:42 AM
Well, you used w3schools. No wonder you're confused. Use a real website.
 
Does the second value have to be the highest number or are they interchangable?
 
@RoelvanUden yah w3 schools sucks
 
I think w3schools confused me lol
 
read a formal tutorial
hmmm
 
I never really read w3schools, it was just an exception and I noticed how bad they teach people
 
9:43 AM
the site explains it right
 
but u understand it wrong
haha
 
ya!
So it is my brain lol. Hey, but really, they could have explained it better!
When you see the example you start to believe: "Oh, so the second value is value returned"
 
> Return the number with the highest value
 
Im so screwed
 
9:44 AM
Seems pretty clear.
 
> The Math.max() function returns the largest of zero or more numbers.
Very little confusion about that
 
ya. I have no idea why this is always happening to me. I didnt read the technical details lol
 
!!> Math.max()
 
-Infinity. I guess the bot is dead.
 
!!live
 
9:49 AM
!!die
 

« first day (1796 days earlier)      last day (3164 days later) »