« first day (2342 days earlier)      last day (2831 days later) » 

00:03
the rest of the space was probably taken up by the rootkit
do I know you little man?
@rlemon lol I've seen that cracks me up
seems like that takes more time than just selling the real one
right
you guys see that one?
fake ssd lol
@SterlingArcher holy shit what a terrible velocity
I mean initially
that seems like a weird way to track it though I mean did you guys just take on less tasks then?
places I've seen track velocity do it by points
nice job though overall, I guess that's why you're the .... scrum master
(•_•) / ( •_•)>⌐■-■ / (⌐■_■)
Hello
00:17
@MrSmith 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.
Lol
So I'm building this app for a couple of schools
And I'm using parse server for the backend
Don't know if anyone is familiar with it
I've hit a logical wall
The system is supposed to act as a central registry where students can register
Then they are periodically assigned to classes
The students have a class key on their object
This corresponds to a "Class" object
I don't know if that makes any sense...
00:55
@Loktar Does it even pretend to be a real SSD when you plug it in?
it's a usb stick
no idea I think I saw that on reddit somewhere
ah yeah just "large capacity memory sticks"
But SSDs are already cheap
I swear I saw one with fake sata connectors
but maybe not
Seems like an awful lot of work to scam someone outta $50
00:57
> The SSD Drives they sell are often a USB stick inside a SSD housing, often containing a couple of bolts glued inside to add weight and make it feel more realistic.
@monners yeah sandisk ssd's are cheap! lol
eh I guess they've all come down quite a bit
$99 still isn't terrible
that's what I bought for my PC as my game ssd
some are still pricey but better overall than a few years ago I suppose
I won't be going back to spinning disks.
I still have a few of those as well
3 2 tb standard hdd's, 500gb ssd, 250gb ssd, and a 250gb m.2 drive
th 250 ssd was just a random one I had though so I threw it in here
er no it's 120 I guess
I use it for shadowplay pretty much
but yeah SSDs are badass I just worry about their longevity
hdd's sometimes give you a warning when they're dying, ssd's just go
'just go'?
like a stroke?
yeah when they die they generally just immediately die
no warning just death
I still have a dvd drive though (installed in my primary machine) takes me a bit to give up certain tech lol
man using VScode and two sublime key combos I use often are differnet
ctrl+shift+d
and ctrl+shift+v
I need to remap them or something
they do different things in vscode
I am missing "a", "m" and "d" in the file tree view from Atom.
to Add, Move/Rename, Duplicate.
01:07
ahh
I didn't realize vscode was made using js as well
makes me wonder why it's so much faster than atom
It uses Electron, even.
from Atom.
crazy.. yeah makes no sense to me how it's so much faster
I had no idea it used js or electron until I looked at their repo the other day
I just assumed it was c# or something along those lines
Nope, but it can be a c# editor with debugging, too.
damn, that's pretty cool actually
since this is SO MUCH lighter than visual studio
ohh, maybe just .NET Core..
Also, it doesn't support visual studio projects.
I lied again, they do support csproj files now
i'll just shut up about that
01:13
meh I won't use it for that anyway, but it's definitely a nice editor
01:48
My skip-gram model just grouped everything similar together lolol
02:00
I remember Eclipse when Java was considered too slow for practical purpose and they had to build a whole native GUI library to make it bearable.
oh man I love rectum skin.
lol what is that from @BadgerCat?
:-|
02:45
@Loktar atom is written in coffeescript :P
ahhh that's why it's slow as shit then eh? :p
really though it's in coffee script wth?
and sadly it pales in comparison to VS for anything other than JS/TS in my experience
I thought that died in 2015
I mean VSCode specifically
I hate Visual studio tbh
just too bloated for me
looks like they are migrating to JS
30% JS now
that's why I always stick with JS honestly
because one day you will just be migrating back to it
glad I never got on the CS band wagon though
02:47
you can end up in a similar situation with just JS too
eh not quite as bad at least
but yeah, weird they went with CS
I look at TS in a similar way, just not quite as bad as CS
nahhh
CS is (was) hipster shit
TS is spec + types
All the good bits from CS are in JS now anyways
Arguably we wouldn't have them without it
02:53
only thing I can think of is arrows
and we would have had them without CS
destructuring?
same
who cares
I mean you say "we would have had them"
but I'd say it happened faster
02:54
yeah they are common in programming
and relatively easy to add
yeah, sure
same for that
we would have ended up with the same ES2015
that's my opinion
I think that JS had been stagnant AF up til things like CS came along.
02:56
@Loktar How are you finding the M.2 drive? I almost bought one, but then did a bunch of reading about how the cheaper ones aren't at all designed for many writes
@phenomnomnominal it may have contributed somehow
but it's been around since 2009
Oh, coffeescript. I was like of course we wouldn't have JS without Computer Science!
@monners works fine for me
@Mosho yeah agree
a lot of stuff for JS was already in the works of being discussed
Wasn't python more of an influence? I mean CS borrowed heavily from python, didn't it?
TC39 borrowed from places including python
and perl
03:00
I remember Ruby hipsters using it
I work with Ruby hipsters
They aight
Better than .NET drones
yeah but people still use .Net in production
/me jokes.
people do
oh I was taking a jab at Ruby
.net is incredibly popular
I don't actually have anything against it, especially now that it's becoming more and more cross platform
I don't hate .NET! I have friends who write .NET! I'm not a .NET-ist!
03:07
are you proposing a separate .NET watercooler?
But of equal quality
LOL @monners
@monners And I first read CS as C Sharp. Took me a while to see it is coffeescript.
@monners Many writes... of a heavy server. Not something you'll normally reach on a development machine.
TLC is the norm now.
@monners you had me looking at my M.2
mine should be good for a while
I got the Samsung 950 Pro
but yeah idk I haven't noticed anything crazy different from an ssd honestly with mine
I will say ram drives are still fast af compared to anything though ofc
I'm looking at nvme for my next machine.
03:13
i like M.2, its so easy to install, no fiddling around with sata cables or hard drive bays
yeah definitely
@Sheepy yeah I considered that for this one
I just went with a second samsung SSD for my linux env
It's running great. Super easy to install.
03:30
If anyone here uses Tampermonkey: stackoverflow.com/questions/42800590/…
@Loktar It's a plot for my thesis!
It's all medical terms, but if you zoom in there are fun sections :P
ah nice
 
1 hour later…
05:02
my neighbors are total wrestling fans
Does anyone know how to achieve the scrolling affect you see on twitter and facebook?
Like where everything else is fixed but when you scroll the middle section moves between two hidden parts while keeping the scrollbar to the far right
as if the page is somewhat normal
@lix there is a css spec for that
Never thought it would be so confusing to produce something simmilar
@Shrek can you get me a link to the spec?
@lix position:fixed?
sec I'll try and illustrate what I mean, I don' think it's position:fixed
oh wait
actually yeah it might be
well this is annoying I can't see an easy way to do this with bootstrap
haha look at the first real news source my server pulled through puu.sh/uJvcd/fa3c5e42d8.jpg
It would be the trumpler himself
05:25
You know it.
@Loktar Thanks for the tip fam, position: sticky actually produced an awesome result!
nice
I wish I could make a gif to show you but I'm retarted.
@lix sorry, yeah position sticky
;-)
05:29
and you can do it till IE using a polyfill
Bonus: You get support for iOS
fuck apple users
xd xd I brought an iphone T_T
The cute service rep got me with her cute smile and before I knew it I was buyying a £600 phone.
If an Api doesn't provide you with an id or some kind of explicit identifier which you can use to grab new sources as they become available what is a good way of comparing your data so you can save the newer sources and index them?
Hi, can someone help me on something simple i gues?
@Monk 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.
@monk just ask :-)
@lix So your inability to control your penis means apple users are bad?
05:35
I've made chat script, simple php ajax chat. The problem is that i use timer, so when i scroll up in chat, the chat roll back to bottom that scroll. I can share my code...
I think you understand me...
inb4 PHP and/or jQuery
jquery
@monners yes, you got me. This is how I became an apple user.
Lets see what's occurring @monk
inb4 not cancelling queued timeouts
Cani post here some lines of code?
05:39
You can if you believe you can
Yeah just make sure you do ctrl + k before you hit enter
1 message moved to Trash can
@Monk 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
format (hit ctrl + k)
e.prevent default
function auto_load(){
    $.ajax({
        url: "load.php",
        cache: false,
        success: function(data){
            $("#chatbox").html(data);
            setTimeout(auto_load, 3000);
        }
    });
}
05:40
I think your right monners
So when it returns your chat data and attempts to add it to the chat, the window scrolls back down to the data just entered right?
Something like that...but if nobody is typing, and when you for example want to see old message and you scroll up, after every 3 sec the chat refresh and the scrollbar gets back to bottom.
try adding event.preventDefault();
you'll need to apply it before you set your timeout
function auto_load(){
    $.ajax({
        url: "load.php",
        cache: false,
        success: function(data){
            $("#chatbox").html(data);
            event.preventDefault();
            setTimeout(auto_load, 3000);
        }
    });
}
Still the same...
well I'm guessing the actual issue is that your physically reloading all the content every 3 seconds
thus it keeps being overwritten causing it to no exist for a very short amount of time, but enough for it to change how it looks in the browser
Yeah, that's right...
05:53
I think you probably need to think of a way in which you can query your data set using your ajax and then return anything new and add that to the chat
rather than replacing everything
Hmm...complicated for my life haha
If your storing your chat messages within a database and you give the messages identifiers while also making sure you have a way of identifying each message from within the frontend you are able to tell the database where your at in the long run
Thus your only querying the database every 1-2 seconds for new messages which gives the affect of real time
I store in db
so say we have a thread with 100 messages
and we count the amount of times a message appears in the message box and reach 90
we can workout within our load.php script how many messages were missing since last querying and return only those
and then instead of replacing all the html we can simple add a new instance for each message
in the long run this is quite inefficient but php probably isn't the best choice for what your attempting to do :-)
yeah, i know for websockets and other things...
05:59
Still it's possible for sure just need to be creative at how you relay the information
06:46
Hi, everyone. Just want to ask if how could I set value in a input file? I know it has security issue, but is there any work-around? What Im doing is im generating a wav file from github.com/mattdiamond/Recorderjs, and I want to add it on a form. Thanks
you mean write to a users machine?
I want to save the data to server and as well save a file
on a users local machine?
does that record on a local user machine?
lol?
/me heads to bed
06:50
later man
@rlemon @towc and others ^
getting closer to release :P
still a few weeks of work left but I've actually been working on it lol
alright heading to bed for realz.
@lix @Loktar: No, its generated
a link is generated
07:06
@Loktar++
:)
say you had an array like this
1 message moved to Trash can
@zeddex 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
and you get like this
logins.Account001.email
!!format
07:17
Format your code - hit Ctrl+K before sending and see the faq
how can you make Account001 dynamic and switchable with a string var
but still work as an array
can you paste your code?
posted the array but got set to trashcan
yeah you need to use ctrl + k before you hit enter :-)
@zeddex the object access obj.yourKey is same as obj['yourKey']
so if you have a dynamic key, just use obj[yourVar] where yourVar = 'yourKey'
07:19
also what you posted is an object :-)
by this, you have a dynamic access
(but are you really sending passwords ?)
so obj[0].email would give you the email for the first instance
thanks
err no ... that's if obj is an array
does anyone know a tool that can convert multiline html to js that will be appended
'<b class="caret"></b>' +
'</a>' +
etc
07:29
@BadgerCat I'm sure that the API responds with a more insightful answer than "you're gonna dieeeeee" =P
the previous code is working great now btw, thanks :D
08:21
@zeddex ... just saw your question
anyone know a good customizable search box that I can get to look like this puu.sh/uJGay/78236397df.jpg
hmm on second thought maybe it's better I actually code one from the bottom up
Twitter's autocomplete is nice, just template it
yeah your right, if I could just make it a little more minimal and squareish it would be good
where can I ask generic question where I want to ask for approach to solve a particular problem
If it's Javascript here's a good place :-)
It is not a language related question
just about the approach
well there, ben has answerred ya
oddly enough, the icon is almost same as my desktop setup
Coffee: check. External keyboard / mouse: check. Middle screen: check. Right screeen: check. only the left screen is a laptop screen.
hey, anybody using react+webpack?
08:48
many people are for sure
just ask it
I am not using react atm though
0
Q: Approach to perform a calculation over a large dataset and calculate mean of scores

Gandalf the WhiteI have a table/collection called scores and it has 3 relevant identifiers based on which calculation need to be done. sample { score : Number, company : String, zone : String, unit : String, timestamp : Number } Everyday we get huge amount of data in this scores table which has 3 identifie...

all dem feels when it's the old so ui
09:05
Wonder if I can break some things by using an emoji as my wireless SSID
What can be wrong here? Socket.io is not working... jsfiddle
@BenFortune eh ... i don't think that you even can enter that :P
but if it supports that, try it :)
@Monk first thing I see is io.sockets.on
you only need to use io.on('connection', function(socket) { //events})
also rather than pushing the socket to the users array here, you can push the socket.id
Still nothing...it only shows "Server running...", but not "Connected: %s sockets connected"...etc
makes further computation for checking online users and requesting sockets easyier when you have more than a couple using it
09:13
also...if i check chrome console, i have this img
well, what do you guys use for hot reloading in React?
I'm new at websockets and those stuff...and that was from tutorial that is probably out of date.
It would probably be simpler to do this from your local enviroment
as jsfiddle is also telling me it doesn't understand require
the official documentation for socket.io walks you through creating a chat application
I do a lot of work with sockets so if you follow that and have questions ping me
I already tried that, and i think i had the same problem with loading socket.io but ok i'll try again.
Ok, thank you
Are you working from your local drive?
Because jsfiddle isn't great for this
09:18
Yeah...on windows
var express = require('express');
var app = require('express')();
var server = require('http').createServer(app);
var path = require('path');
var io = require('socket.io')(server);                                                                                      server.listen(80, function () {
    console.log('Server Started');
});
ugh
one sec
@monk gist.github.com/LiamDotPro/a024d6168723a771002c528d3ab626f7 most of the time when making new instances for work my server setup looks like this
Socket.io recently changed there documentation for creating a server and are updating there own documentation
Also your probably want to drop using a form as it's not necessary with sockets, much better to have an input and a send button linked up to an event which emits your message.
@lix Nothing wrong with a form
I agree, but for the moment having to deal with preventing the default action is more of an annoyance when learning.
I copyed that text just to test...and i get "Server started", but when i go to site and refresh...i don't get any other log message
when you go to localhost?
09:27
yeah
express serves from res.sendFile(path.join(__dirname + '/public/index.html'));
refactor this path to where your index is contained
in your head make sure you have <script src="/socket.io/socket.io.js"></script>
then of course in your body script open var socket = io();
His problem is more socket.io isn't serving the client library
if he's following my code you don't get feed a message back to the server, so I'm presuming it's going right so far
Just needs to create his first event
$(function(){
     var socket = io();
});
Like that or without function?
And i'm worried about chrome error i get "http://localhost:3000/socket.io/socket.io.js 404 (Not Found)" in console.
That error sounds like you haven't installed socket.io via NPM
which you can do via npm i socket.io --save from your command line :-)
09:33
i think i did...$ npm install socket.io
make sure you save it with --save
On your frontend all you need is
 <script>

var socket = io;

</script>
For the moment and we'll create a test event in a second that is pushed when a new client has connected
@lix His server wouldn't even run without it
i changed everything and still the same...damn
i can see in package.json that i have "socket.io": "^1.7.3"
is node really listening on the default port ?
In my example it is set to 80
09:36
i'll change that in a moment
bad example
whats wrong with it loading through the default?
yeah..it's for skype i belive haha i'll try it since i don't have skype :D
ahh I don't use skype :p
80 is default for HTTP. If you're developing node, use a custom port. when releasing, let it listen to 80
09:39
Hmm I knew it was default for http, but I've never personally had an issue. What could go wrong by using it @KarelG ?
Nah, let your web server run on 80 and run it through a reverse proxy.
Still the same...is my path good? res.sendFile(path.join(__dirname + 'iochat/index.html'));
I think you need a / before iochat
You're using path.join wrong
@BenFortune I can imagine a lot "it doesn't work" when people starts using reverse proxy :P
09:43
What do you guys think of my UI so far? puu.sh/uJKMU/d15c3262d7.jpg
Yeah...i know this is boried, but...i'm just trying something that is probably rly simple to do....
It is, if you read the documentation.
I believe it's first time you're using socket.io
Yeah, first time
in that case, read up the start guide. If you are able to make the first successful connection, the next steps are easy (well for me)
09:45
Just keep reading the documentation and trying it'll come together
@KarelG the socket.io website documentation is umm, a little screwed up atm
inbetween being offline for 4 days
and them changing how you connect
I read somewhere that it is not correct to follow that documentation but ok...
your better off reading the github than the website
you can use that as a ref point :-)
...
use this: socket.io/get-started/chat to start from zero and work with socket io
Hi guys
the docs (client / server ) API on github is just for reference, to know what a function does. If a function isn't explained well, just check the source...
09:52
I started from official web site and i'll see what's gonna happen.
yeah but follow the text as whole. Don't skip parts.
if you don't comprehend something, research that
the two examples are different btw
The one from the website has a few differences to the example inside the repo
Ok amm. On the official site, when i get to the part where i have to see "hello world" on localhost:3001, i don't see it lol
!!afk phone discussion
Are you able to commit and push your project on github and give me a link so I can do some testing?
09:58
are there any cons when it comes to using RxJs with React/React Native? anyone here using it?

« first day (2342 days earlier)      last day (2831 days later) »