« first day (2196 days earlier)      last day (2751 days later) » 

12:01 AM
@monners Are you undecided in the election?
 
There's an election in Australia too?
 
@KendallFrey No.. Im asking if he is voting for Trump
 
I doubt many Australians are gonna be voting for Trump
 
12:20 AM
@KendallFrey Beg to differ?
 
what?
 
You dont know the term beg to differ?
 
@Dsafds what he's getting at is that monners isn't american
 
@KendallFrey But anways i think its preety clear trump won the race
 
@Dsafds lol u aving a giggle?
 
12:29 AM
@KendallFrey as of right now, 60% chance Holly tossed a bag with all of my relays in them :(
 
I remember SO Bugged out on me and i had @monners avatar for like a minute... @Rishav in tenage territory saw
@KendallFrey Lol i meant He Trumped
 
@Dsafds What's a Trump?
 
@rlemon that sucks. as of right now, i'm halfway through 1D pong
 
@monners LOL "a"
 
:( I had everything in line to setup a poc
some sand in a bowl with the sensor and the two chambers with the pump
I think the relays we have at work will be fine
can't remember what we use
 
12:31 AM
@rlemon Whatchoo building?
 
automated aquaponics
but without recycling the water
 
Friend of mine did something similar. thingspeak.com/channels/165861
 
using sensors to tell when they need more
I've got the pumps, the sensors, the arduinos/rpis, everything now but the fucking relay
and I had access to relays at work but assumed I had mine at home
I'm not mad, just a little bummed
 
@monners still undecided brah!
Company just sent me to London, so they won't be paying for Aussie too
 
12:52 AM
Be among the first to discover #NX. Watch the Preview Trailer at 7am PT/10am ET! https://t.co/R2QTzjyLUo
2
 
@KendallFrey Canadian skateboard
 
a
ma
zing
 
like, I don't skateboard... but these guys do a thing called 'skate everything'
they skate a laptop, a ps3?4? a door, a chainsaw blade.
just to most ridiculous stuff.
 
@rlemon I've been subbed to this channel for like 3 months now; I fucking love their videos and I also don't skateboard
 
@rlemon How do you skate a ps3?
 
12:59 AM
@ndugger same, actually probably the same amount of time
hehe
 
@ndugger can you post link plz?
 
Dank minds think alike
 
@Dsafds look above
Canadian skateboard
 
@rlemon Yea i see that.
But i dont see skate a ps3.. im trying to get that
If anyone can help me and find link that would be nice
 
1:04 AM
I enjoyed the glass skateboard, where the guy could have died
 
they did a 'clear' skateboard recently
 
Presidential Debate drinking rules: Drink when they say: Millennials, email, crooked, tax returns, wall
 
oooooo 9pm
that means the stream is starting
@ndugger you may like him
 
him who?
 
1:05 AM
I don't like watching people do art. It reminds me of my own failures.
 
well, fine then
looks like hes hosting another stream right now anyways
 
"The supreme court, it's what it's all about.", "Ginsberg insulted me."
 
@Luggage youtube is real laggy for me
are you watching a better stream?
rather the video is laggy
audio is fine
 
youtube.
i'm using NBCs stream, but there are many.
 
ohh well
ohhhhhh
I'm on some rando's stream
link
 
ty
 
haha, i made you watch Fox.
 
meh
MUCH cleaner stream
so tyvm
 
yea, j/k. I used their stream last time
when that is over:
 
I thought that was a giant vagina for a second
 
1:20 AM
It can be.
 
lol jesus dude
 
This has been pretty civil, so far.
Nevermind.
 
I don't remember these types of arguments in previous elections
am I wrong?
 
No.
 
mind you I only started watching US elections when obama was running
 
1:34 AM
I watched previous debates, but don't recall it this bad. Everyone else on the media also constantly mentions how it's very different.
 
lol the announcer
is that the right term?
mediator?
 
moderator
in comparison to Trump, here is McCain showing some class: youtube.com/watch?v=MRq6Y4NmB6U
 
OH MY GOD SOUTH PARK IS DOING DICKS OUT
OH MY GOD LOL
 
Ugh, "when my husband was president". What a name dropper. :)
 
1:56 AM
@Luggage lol those paraphrased captions
 
huh?
 
on the fox feed
 
ohh, i'm not on that one
 
ahh, they have a banner.
they keep putting up paraphrased captions
they're wild.
 
hello did anyone know how to configure .htaccess?
 
1:58 AM
ohh, i see now.
 
2:27 AM
Is there already a method to format: Wed Sep 24 2014 18:03:31 GMT-0300 (ART) into -> ("yyyy-MM-dd HH:mm:ss");
toISOString(); not quite doing it for me
 
use moment.js for dates
seriously
dates in JS are a huge pain in the ass
 
js dates are terrible, if you need to do more than 1-2 formats
use moment.js
 
you guys know what else is a pain in the ass?
installing modules in a server with no internet connection
 
@KarmaDoe hemorrhoids?
 
@rlemon in my case they are more messy than painful
but yeah
it aplies
 
2:35 AM
Well, unless you want to write everything from scratch, then you need to learn to upload dependencies along with your own code.
 
I have plenty of dependencies
But it still is a pain in the ass
 
who's ass?
 
well, the process should be automated.
the fact that adding a dependency is a hassle is a problem.
 
god, fox is so cringy
> we'll see if it is peaceful times, until then we're all held in suspense
(not literal quote, but close)
 
he was quoting trump from the debate.
saying that is was a ridiculous thing to say.
I think..?
 
2:40 AM
yea I must have been in the bathroom for that, I missed it, but the last line was so .. idk, it just seemed like news trying to make more drama
 
Now ot see the Sam HArris AI talk that I've been waiting to come out.
 
he quoted it then said "blah blah until then we're all held in suspense"
 
trump has been asying that he won't accept the results if he doesn't win because that means it's rigged.
 
like, why man... why add to the drama so obviously.
 
ohh, i see, they added their own thing to it.
Even Fox has been talking about how over-the-top trump is, and I think they were making that point, still. I am giving them the benefit of the doubt.
 
2:42 AM
I'm not defending anyone in the political sense, but the fox news reporter at the end was buzzfeed levels.
 
yea
 
@rlemon give me a break dude
have you looked at the stuff coming out about the other media outlets?
 
nope
literally
I don't have cable.
 
you don't need cable lmao
 
well, yea, I suppose
 
2:48 AM
I'm talking about wikileaks
 
ohh yea
 
and the direct collusion between the news media outlets and the Clinton Campaign
her getting debate questions early, interview questions early
getting to approve/change quotes
Fox is the only one that hasn't been caught in that web so far
 
don't get me wrong, I know who you support. I think they're both ugh. I was a bernie guy, but I'm Canadian. I can have an opinion but not a say and I know that.
 
If you were a Bernie guy I would hope you wouldnt support Clinton
after what she, her campaign, and the DNC did to him.
 
ohh god no
she's a lizard
 
2:49 AM
Ah yes, this is why I left North America.
 
you can see it in the face
 
this election cycle is definitely crazy, I don't know anyone who is 100% happy with the choices on the table.
But man when Jill Stein is saying to vote Trump over Hillary you know there are huge issues.
 
again, I have an opinion but not a choice, it is just hot air from me. I'm not american.
I have different views and values biased
 
Part of me wants Trump to win, just to teach the U.S. a lesson about responsible democracy (not that my country's had a particularly good run recently)
 
I realize that, and I hope I don't offend any of my american friends.
 
2:51 AM
@monners learn about responsible democracy?
 
I would think voting in Hillary would be a lesson in that
since she has been in the gov 30 years and haunted by constant controversy
 
They both would; both candidates are terrible for different reasons.
 
I think I might go to a Trump rally when I'm in Florida
 
Only in 'Merica would a billionaire playboy be considered a better candidate than an ex secretary of state :D
 
2:52 AM
"playboy"
sure
 
s/boy/man-child
 
quite frankly I think the DMC frauded your way out of bernie, but that is only because he reflects a lot of Canadian values (imo).
 
@monners yeah shows how corrupt our politicians are.
 
DNC*
 
@Loktar Pretty sure that's universal
 
2:53 AM
I reckon most of the world could do with starting again aye
 
I don't agree with most of Bernie's views, but I would have voted him because he actually seems like a trustworthy person that actually wants to do good.
 
I'd vote for Stephen Colbert
 
oh a shill vote.
lol
I'd vote for a highly partisan individual as well
 
nick, getting to the real issues
 
2:55 AM
@ndugger dude if you want people to read your FB posts why not just get more friends on FB?
instead of taking screenshots and posting them here all day
 
lol
 
Ugh. I'm out. Wake me up when the election's over and we can all go back to bitching about how whoever won is awful, irrespective of party.
 
I try to limit my facebook friends to actual friends
 
I did that, ended up deleting fb
don't feel bad for me, I'm already dead
 
lol
 
2:56 AM
@rlemon Oh, so that's what happened when they had that 24 hour outtage
 
Mojo?
 
dude
we can't watch the videos
 
my facebook feed is dank
 
it's a screenshot
of a facebook post
 
Die in a fire
 
2:56 AM
You only need to know that it happened
 
@Loktar it was enlightening, I knew no more about the people I cared about and less farmville spam. :D
 
the sounds bad, I knew no less*
maybe better?
 
haha
 
point being the people I care about I talk too, not 'fb' them
 
2:58 AM
most of my family is remote, FB is great for keeping in contact
 
god, I got you on hangouts
that means shit man :D
 
honestly, the reason I got rid of fb was the noise to data ratio.
 
If I'm in New York for 2 days with no plans, what should I do?
 
it just got too much.
 
2:59 AM
@phenomnomnominal make plans
 
Would you classify my dank memes as noise or data?
 
@ndugger definitely
 
@KendallFrey 2.6
 
3:01 AM
@ndugger unsubscribe :)
 
Throw all your money in the toilet, donate some blood and kill yourself?
 
Chop your balls odd and shit on Deborahs desk first ^
 
WHY? what did she do?
 
Turned him down
 
#content
 
3:02 AM
ohh
yea
 
duddies
 
@rlemon she used tabs for indentation
 
+1
I am a tab guy
fuck python
 
3:03 AM
@phenomnomnominal dankest memer on earth
 
I know one of those words.
 
on?
 
var format = function (dateString) {
  dateString = dateString.substring(0, 19);
  dateBeg = dateString.substring(0, 10);
  dateEnd = dateString.substring(11, 19);
  dateString = dateBeg + ' ' + dateEnd;
  return dateString;
}
 
@Luggage oui
 
simpler than installing dependencies
 
3:04 AM
 
@KarmaDoe handle with care. Looks fragile.
 
there is an api
albeit shitty
better than you are doing
 
i like your way of calling what im doing worse than shitty
you got tact man
 
no the api is shitty, but parsing strings is kinda .. ummm .. crap
 
3:06 AM
Man, someone should hire me to write them dank status updates
 
@ndugger can I hire you to stop?
 
HAMMERTIME!
 
I'll chip in on that
 
I'll do one more; I'll find a super dank one
 
@KarmaDoe it just looks very fragile and scary to those of us that have been bitten by dates and outsource that work to libraries, now.
 
3:07 AM
Didn't we all agree as a community that MomentJS won that war?
 
@KarmaDoe agreed that a full date library for just formatting a string is probably overkill. But there's better ways to just do the one little thing.
 
@Luggage input is alwais .toISOString(), or no imput at all
 
If your code is readable, it isn't sophisticated enough for real-world dates. :)
 
  itsbeen += (diff.y === 0) ? "" : diff.y === 1 ? 1 + " year, " : ((diff.y < 0 ? 30 - Math.abs(diff.y) : diff.y) + " years") + " and ";
  itsbeen += (diff.m === 0) ? "" : diff.m === 1 ? 1 + " month and " : ((diff.m < 0 ? 30 - Math.abs(diff.m) : diff.m) + " months") + " and ";
  itsbeen += (diff.d === 0) ? "" : diff.d === 1 ? 1 + " day " : ((diff.d < 0 ? 30 - Math.abs(diff.d) : diff.d) + " days");
yeah, use moment
 
last one
 
3:08 AM
ohh, so you have a Date already? I thought you started with a string.
 
nono
its a timestamp from mysql
 
ohhhh, ok.
 
but i need to format it to deliver on the ws
 
@KarmaDoe I mean no personal offense. js dates are fucky
 
webservice
 
3:09 AM
yea, that's fine. Lemon is right that there is an API, though.
 
new Date(dateString)
then go nuts
 
Yeah, ill have to check that
but, im doing 5 extra hs today, and i ain't got that much time to read new docs
ill do it when i have the time tho
thanks for pointing me that out
 
no time to red new docs and no time to use dependencies?
You like wearing handcuffs.
 
Yeah
"You know that code that you where suppoused to deliver next friday, can it be done for like, this friday ?"
Something like that.
Oh, and using node 0.10.12
Bigger handcuffs.
 
Quit
 
3:13 AM
Im not really working for the money
So i don't mind
 
I have no experience on what you are doing, sorry.
 
ok thanks for the response sir karma
 
Np.
 
lol reminds me of a conversation between 2 chat bots
 
3:28 AM
Dat Karma Doe
 
Sir Karma
#BADA55
 
lol
[ '{ Req: { Acc: '1' , Response: { Cod: '0', Desc: '0' } } }' , '{ Req: { Acc: '2' , Response: { Cod: '0', Desc: '0' } } }' , '{ Req: { Acc: '3' , Response: { Cod: '0', Desc: '0' } } }' ]
Is there a way of converting that array into a single object ?
Without having properties overwriting themselves ?
 
var obj = {0: arr[0], 1: arr[1], 2: arr[2]};
 
No, that gives me 0: {} 1: {} 2:{}
 
3:40 AM
it's still single object
 
i want Req: {} Req: {} Req: {}
 
it's impossible
 
in js or in general ?
 
in general
 
There is working code that retruns Req: {1} Req: {2} Req: {3}
Can't be imposible in general
 
3:43 AM
only if it's string
because properties of object should be unique
 
Complex type from wsdl
 
xml is not an object
 
But im not working with the xml
 
so use arrays
 
ill see how the ws parses the array
thanks tho.
@monkeyinsight Inserting the array directly into the object seems to work
 
why did I watch this?
 
iu jab tu ad uan tex bocs
that accent tho
 
5:12 AM
Well I'm headed for Milano sorry noy sorry
I can't DV yet, ping me in two days :p
 
hi
 
5:44 AM
wow, xterm is amazing
 
user3119231
6:19 AM
@monkeyinsight asking myself the same
 
i3 is telling me that I have 101.99% battery charge
 
Interresting.. do you run out at 1.99%?
 
user3119231
maybe battery is stronger than we thought
 
6:40 AM
@ivarni I'll have to check
 
It tells me I'm at 33% even at full charge.
 
user6815795
Please help me with this
 
@SandeepKollabathula Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
Because my battery capacity is that much.
 
1 message moved to Trash can
@SandeepKollabathula 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
 
user6815795
6:44 AM
function x(t){
    var a = something;

    $.each(a, function(index,value){
        y(this);
    });
}

function y(t){
    $.ajax({

    }).done(function(r){
        if(r.success){
                     }
        else{
        }

     });

    // This function should be called for the second element
    // in the each function only if its completed for the first element.
 
impressive!
 
That's cool
 
7:13 AM
@AwalGarg Interesting how you have placeholders for LESS and such :D
 
does someone have some experience with swagger?
 
7:34 AM
react router is such a gigantic turd
idk how it got so popular
it is literally the worst piece of shit ever
 
Why is it so bad?
 
7:48 AM
it's huge, bloated, slow
while still lacking features
complete overhaul every couple of months
 
Yeah, I didn't get that. Huge backwards-incompatible releases every few months
It's a shame rrtr couldn't keep up
 
user3119231
imgur.com/gallery/CXrHaIW - The first comment made my day
 
I just watch for URL changes and re-render (my render is a simple regex router) :P
 
0
Q: How to get the shorten version of url?

Alex StaneseI'm taking part in an interesting project where I need to parse some URL's and find contact details on them. I'm extracting the links from linkedin group for example: http://prntscr.com/cvpnp9 You can see that the url here is very long and somehow obfuscated: https://www.linkedin.com/profile/vie...

 
@AlexStanese Try making a HEAD request and check the location header.
 
8:08 AM
I´m build a rest api in js (express) following a tutorial. The Code is structured in Services (business logic) and Controller (HTTP API). But he doesn´t had included a database here. My Question is now where would i integrate the Database now. Should I create a new folder for databases and call the db queries from the Services or put them directly into the services?
or probably the general term for Services is ` Models` ? Could i follow this approach here ? gist.github.com/vuongtran/ef1a843cb84426d2e54e
 
@BayLife no, there is no such thing as "models" .... unless you work in fashion industry
 
haha i do not ^^
 
model is singular
it is a name of a layer
 
okay, so far i understand it. Would this be the place to do my database interaction?
 
kinda
db interaction would be in you storage abstraction code (preferably: data mappers)
that could would be part of the model layer
 
8:16 AM
okay
 
@RoelvanUden do you know any program or service that can do that?
I have no idea how to do it
 
@BayLife Do whatever feels logical. You can always refactor later. I personally would put HTTP handlers in /controller, services in /services and put entities into /model. Then I'd just put the queries directly into the services. This makes sense to me, but it's not 'the only way'
 
@BayLife take a look at this picture: martinfowler.com/eaaCatalog/serviceLayer.html
all those circles together are "model layer"
 
ahh
 
your DD abstraction is in "data source layer", your domain objects are in the "domain model" and the services are governing the interaction between them
 
8:20 AM
@AlexStanese Just your regular XHR or request module.
 
okay, i will play around with this new information. Thank you both!
 
@RoelvanUden I'm sorry, I've never heared about it. I thought it's simplyer. I thought I can use an adjacent service or program that could do this thing...
 
What? You have to investigate how this service does redirection. Presumably it does so merely by tagging a Location header into the HTTP response headers. Thus, launching a HTTP request with the HEAD verb should be sufficient to get the response headers. You can then use that response header. If it doesn't tack on a Location header, check the redirection method (e.g. via a meta or JS) and you can merely emulate it.
 
8:39 AM
I uderstand theoretically but I have no idea how to implement domething like that. Morover so that the transformation could be bossible I have to be logged in into a linkedin account. I thought there's already a program or service which can do all that automatically.
Anyway thank you for you're detailed response :D
 
@RoelvanUden yup. We use it at work too. That lets you add "hooks" for any file extension (node's require lets you do that too, but it is not documented), so we have hooks for JSX transformation and LESS for those who like to put those dependencies in their JS code (I don't). Then some super complicated webpack config with lots of plugins compiles it to working bundles, but I don't deal with that part.
 

« first day (2196 days earlier)      last day (2751 days later) »