« first day (2024 days earlier)      last day (2914 days later) » 
00:00 - 19:0019:00 - 00:00

12:14 AM
@WillemD'Haeseleer subtree changes?
 
The whole component exists out of 3 divs with some strings in them
with 1 root div
 
can you reproduce it in a fiddle or something?
 
Yeah was trying that actually, testing the perf tools first
 
12:35 AM
I would like to use Javascript to find the first link in the div (the learn more link) and wrap the entire div with that href. How can I revise this code so it does this?: jsfiddle.net/mpeoufjc
 
user2620028
12:51 AM
Sooo.... just got my computer assembled and apparently windows is still installed on the used hard drive i bought.... SO MUCH PORN DOWNLOADED
 
user2620028
This guys is why you nuke hard drives if you plan on selling them used. This person (whom i am not going to name since it is inappropriate and they are also on SO) has left their personal and business bank account info, shit tons of prostitute porn, Github projects, nasty pictures of their wife on the desktop... nice job dude etc. etc. etc.
 
user2620028
And all i want to do is download windows 10 and wipe the drive and start over lol
 
Start with step 2
 
user2620028
trying to but getting through all his crap to get to the windows 10 dl is where i found all this shit
 
Just purge the files across users/current user/
 
user2620028
1:05 AM
i am just going to do a clean install from iso when it finishes downloading
 
user2620028
i just dont have a dvd drive so it was easy to load into the existing OS when i noticed it had one
 
yay, engine and basic UI ready... now to the boring part of writing the analysis -_- towc.eu/school/geo/global-trade-data
 
@HatterisMad dd if=/dev/zero of=/dev/sda
wow
 
user2620028
its windows lol
 
Download stali, boot to it and then erase. It's just 35mb.
It also puts bad sectors to rest (Windows can't deal with them)
 
1:22 AM
@copy had time to play with baddsert, or has life taken over?
 
herro
no.jpg
 
info
kxcd proprietary
!!xkcd proprietary
Hi dnugger, little pootis, Some Guy, Sterling Archer!!
 
1:49 AM
@HatterisMad what was the user's OS?
 
user2620028
windows 7 with no license key
 
lol
@thepiercingarrow hi!
 
user2620028
the downloads folder is haunting me
 
can you unmount the system disk while Windows is running?
 
user2620028
1:53 AM
i believe so, although new applications would not be able to be opened and stuff like that
 
user2620028
used to load a comp onto a copy of windows xp that was installed on a flash drive and then pull it after i got whatever program i wanted running and move to the next machine and do the same
 
user2620028
trying to uninstall some of the crap off this computer.... why do these games require me to log into steam to uninstall them....
 
really no excuse then if you can use a running Windows host to zero a disk
 
user2620028
installing fresh from a windows iso....
 
user2620028
already explained this
 
1:59 AM
@FilipDupanović really no excuse to run Windows at all
Well actually I can think of a few excuses..
"I wanted to see how bad it really is"
"I wanted to try breaking it"
 
user2620028
I have tried macintosh and linux both and i prefer to get things done without trying to fix the os instead.
 
user2620028
I tried linux for a year on my personal machine and the entire time it didnt have a driver for my video card so it crashed constantly
 
@HatterisMad why didn't you just get a driver than?
was it proprietary?
 
user2620028
no, it didn't exist
 
2:23 AM
um... ?
you have a video card with no driver?
 
2:39 AM
function search(search, arr) {
    var min, max, guess
    min = 0;
    max = arr.length - 1;

    while (max < min) {
        console.log(guess)
        guess = Math.floor((min + max) / 2);
        if (arr[guess] === search) {
            return guess;
        } else if (arr[guess] < search) {
            min = guess + 1;
        } else {
            max = guess - 1;
        }
    }
    return -1;
}
How can i stop that while loop
when i found my target (search)
 
use break;
break; steps you outside of a while loop, for example:
while (1) {
    break;
}
will not go on forever
 
ok
 
> while (max < min)
bruh
 
but how can i return my guess after break it
 
Sorry to interrupt, but I was just wondering if fs is needed to use __dirname in Node?
 
2:49 AM
@DININDU return ends a loop too.
 
Anybody here expereinced with Node?
 
@littlepootis return ends the whole function
@Jasch1 I'm pretty good - been asking ppl questions for a week :P
little pootis remembers :P
 
Nice
I'm trying to stream video from a server to a client
 
no you dont
 
@Krush Considering JS is now replacing many languages.. :P I don't think so
 
2:51 AM
What would the easiest way to do this be?
 
__dirname is a macro defined inside node itself
 
@thepiercingarrow but isn't that what he wants
 
That wasnt my main question, just a side thought i was having
 
@littlepootis yeah - i was just being more specific than you :P sorry i thought it would be funny
 
about the __dirname
 
2:52 AM
stream video?
 
Before I start writing the code, I wanted t gauge what the most effective way to stream video from a server would be
 
@Jasch1 there are protocols for doing this
 
var arr = [1, 2, 3, 4, 5];
console.log(search(4, arr)); // return -1
 
What is search?
 
but it search something its return -1
it is search function that i provided
 
2:55 AM
What does search do?
 
@Jasch1 can you help me out and do !!unban thepiercingarrow ?
 
Where are you banned?
 
the bot
 
15 mins ago, by DININDU
function search(search, arr) {
    var min, max, guess
    min = 0;
    max = arr.length - 1;

    while (max < min) {
        console.log(guess)
        guess = Math.floor((min + max) / 2);
        if (arr[guess] === search) {
            return guess;
        } else if (arr[guess] < search) {
            min = guess + 1;
        } else {
            max = guess - 1;
        }
    }
    return -1;
}
 
Can you help me out with that too?
I'm banned from the bot
 
2:56 AM
lol
 
!!unban thepiercingarrow
 
YUP
 
little pootis plz?
 
well isnt that ironic
 
2:56 AM
;)
yes it is
 
I don't have the rights to unban or ban you lol.
 
yes you do
!!unban thepiercingarrow
 
Um, no I don't.
 
just try it
 
!!unban thepiercingarrow
 
2:58 AM
@littlepootis You do not have permission to use the command unban
 
okay
any admins here?
I have an idea actually..
 
I made thes grammer reerror I SUnmen jan dvorak
 
@thepiercingarrow Could you help me out a bit more the explaining vid streaming
Only a slight bit still confused
I saw methods that didn't seem to use those protocols
 
3:00 AM
@Jasch1 Where?
 
One sec lemme find it
 
also since the bot is open sourced i'm going to try making my own bot
 
although i need an account with 20 rep
oh i see
it uses fs.createReadStream(path).pipe(res)
didn't even know that existed
 
DO you think I could use a method similar to that?
 
The issue that I was having before was a little complicated
I would use webtorrent to download some torrents
and then try to stream them to the client
But the html wouldnt load until the vid was sent
So should I use socket.io to communicate with the client and server so that the server can alert the client when the torrent download is finished, and then the client can load the video?
 
I don't think you need socketio
!!urban ');DROP TABLE banlist
 
How else would I try to alert the client when to load the video
 
no.jpg');DROP TABLE banlist
 
Otherwise the entire page wouldn't load
 
3:06 AM
no.jpg');Jasch1 in (SELECT * FROM *) | DROP
damn my SQL sux
@Jasch1 yeah you can use socketio for that then
 
I know how streams work, that isnt the issue
 
@Jasch1 i'm sure theres a better way i just dont know it :P
 
Same, thats the frustrating thing
 
maybe send something?
POST() ?
 
@thepiercingarrow lol no
 
3:07 AM
http.send ?
 
@CapricaSix. are you here
 
!!');APPEND 'little pootis' to ADMIN_LIST
@DININDU yes he is.
no.jpg
 
@thepiercingarrow she
no.jpg
 
@CapricaSix can you tell me why that my while loop does not return right value .its return always -1
 
LOL
!!');APPEND 'little pootis' to admins
god rly
 
@DININDU Because your while loop doesn't have a return statement?
 
@thepiercingarrow Don't think that'll work, but give it a try
no.jpg
 
3:12 AM
wtf.jpg
This work or nah?
 
idk
yes.jpg
happy.jpg
rofl.jpg
roftl.jpg
okay whatever
nah
good night :)
 
user2620028
3:47 AM
New OS :D
 
but it's win10 D:
 
SO wen
 
user2620028
yeah so its amazing
 
4:29 AM
Can anybody explain what the point of wiki.ecmascript.org/doku.php?id=strawman:do_expressions do expressions is?
I can't figure out why we need this over a function call
At first I thought it might be useful for binding variable variables - not sure how to explain that - but Babel transpiles it into a normal anonymous function
 
@ScottKaye I'm fairly sure that do expressions are not part of the spec
But I can be wrong.
 
Yeah, they're stage 0 ES7 right now, I was just looking through Babel transforms and this popped up
From what I understand, stage 0 is the lowest, newest possible standing for a feature
 
5:14 AM
Anyone know how to use body-parser to fetch form inputs that go into an array in a mongoose schema?
 
@MonkeyOnARock 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.
 
Sure, I'm opening a video that I don't even know the title of that was posted in this chatroom.
 
@RahulDesai yeah, impressive
 
tldr pls
 
home-made hoverbike
 
I would guess such a thing can't have enough battery to be of any use
Oh. Ground effect. Risky to use then. Looks cool though
What's its range?
 
6:03 AM
It was meant for a good surprise :)
 
6:53 AM
@ScottKaye (function(){ /* your code here */ })() will be do { /* your code here */ } now. that's it.
an expression which can contain statements, like function expressions. and that expression is evaluated, so it becomes an immediately invoked function expression. and the last expression value is returned, so it has an implicit return too (like arrow functions).
 
So, much less cool than Haskell's do. Unless there's do* as well.
 
who could have thought functional languages could have features cooler than JS
 
o/
Many languages do
 
you don't matter
 
I mind that you say that. Mind over matter.
 
7:34 AM
!!whatsup
 
@RahulDesai That didn't make much sense. Use the !!/help command to learn more.
 
!!weather sunnyvale
 
@RahulDesai [object Event]
 
@AwalGarg So I was reading this book on Racket. It described LISP as a language that feels natural (lmao?) unlike ALGOL-family programming languages (I think he meant literally everything unlike lisp), which are closer to machine.
So, lisp was made to be readable by the programmer and not the computer..
 
@littlepootis seems like they failed at doing the former, but succeeded with the latter
 
7:41 AM
> You should learn lisp because you can make a lisp interpreter in under 50 lines.. in lisp
@AwalGarg yeah
 
# lisp interpreter in sh
echo lol you are writing lisp
exit 42
 
I wrote a js interpreter once.
module.exports = eval;
 
eval is unsafe and slow
 
Yeah, my interpreter was unsafe and slow.
 
8:14 AM
@littlepootis paulgraham.com/rootsoflisp.html (Look at the "complete article")
It's surprisingly simple
And easy to understand too
 
 
2 hours later…
10:01 AM
2 hours later
 
guys can someone help ? jsfiddle.net/ze50cs6b ( 3 lines code )
problem with quotes
 
<input type="button" onclick="displayit('Show george\'s name')" value="display">
 
@XtremeCoder 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.
 
sure
 
10:15 AM
@XtremeCoder the text is a dynamically value. The only way is to replace ' with \' ?
 
well you can use regex to replace all single quotes in that case.
 
cool.
 
So, earlier today this edit was suggested... I'm amazed he didn't bother adding a new answer, instead o.O
 
11:05 AM
@FlorianMargaine ping
I'm developing with the REPL, is there a way to get the DEFUN form of a function based on the name, somehow, so that I can change it?
Looking it up in the history is a PITA
 
If you're at the SLIME REPL (in emacs), this might work: Type (defun old-name and then hit M-p
 
@SomeGuy Aha, neat
That searches in history though, right?
 
Yeah
 
It doesn't look up the definition
That works as well, thanks
 
Sure
What are you developing, btw?
Anything interesting?
 
11:08 AM
@SomeGuy Practice
Nothing serious so far
 
11:32 AM
Hi, not sure in which channel I should ask this... I'm considering using React for a new startup, but I came across this Medium post: medium.com/bits-and-pixels/…. Because we dont want to exclude the possibility of selling the company in a few years, this blog post brings some doubts on using React. Can anyone here comment on this?
 
11:42 AM
@noodles_ftw We're not lawyers
However, React is shared under BSD, which only requires that you share the license text, so technically you can create a fork of React, that keeps up with the upstream, that does not have the patent notice.
 
just use react and don't tell anyone and come to India
 
12:00 PM
hmmm okay @MadaraUchiha
thanks
and lol @AwalGarg
 
 
1 hour later…
1:09 PM
@SterlingArcher I didn't know that you were a photographer too. You're a decent one. proof 1 & proof 2
 
2:01 PM
@MadaraUchiha M-x slime-edit-definition, or M-. if you have your cursor on the function name
 
Can you re-add a bounty if it expires?
 
so, I want a function that returns a function, let's call the latter fn. The function that returns it would usually be named getFn by me. Now, what if instead of fn we have setValue? getSetValue sounds too awful. Workarounds with clever wording?
 
@towc Why not literal getters and setters?
 
it's not just a value, it's a set of values and stuff
getSetSomeStuff
 
So you want to get a function that sets some stuff?
 
2:07 PM
nvm
 
@towc thunkSetValue
 
!!google thunk
 
if it's just a weird way of saying "func" I'll hate you :D 2.9
 
@BenjaminGruenbaum I don't understand anything here, but I think you'll enjoy it inwap.com/pdp10/hbaker/hakmem/hakmem.html
 
2:14 PM
lucky guy
 
actually yours is not exactly a thunk. it is just a hof. but I have seen thunk used in place in JS code a lot. so I suggested that.
stupid FP and stupid naming by dumbass acads
 
fuck it
getUpdateValuesFunction will be good enough ;)
 
eww
 
but thanks for showing me things I would probably have never heard about in the next 20 years
 
Did you learn Java or what
 
> school
that explains
 
I may have turned variable naming to be java-like, yeah :/ I don't know, I like it
 
You like it? might as well start hating me then
 
I shall
may your coffee be cold
g2g ;) thanks again
 
@towc Should have said tepid. Some of us like cold coffee
 
2:19 PM
right
 
In India, you like all the cold things, not just coffee
 
may your coffee not be there when you most need it
 
@FlorianMargaine Doesn't seem to work for functions defined in the repl
Also, it opens the buffer of the source file on top of the repl, even if the file is already opened :|
Thanks emacs Obama
 
Haha, there is slime-edit-definition-other-window if you want
But yeah, if you're only at the REPL, I haven't found a way
 
2:32 PM
I whipped up a small project using JSX as a template language for me to make an xsl-fo (XML) document. I think I'd like it as a react 'backend' like reactDOM. Can anyone think of other 3rd party react backends I can learn from?
yea.. specifically i'd like to take advantage of other code written for react, so I want it to use react even though it's complete overkill
 
I want to include bitcoinjs-lib to my cordova project where I already ise bitcore-lib. When I add it using npm, and reference it in index.js and try to access it using require I receive error message cannot find module. with reference that it is looking for bitcoinjs in bitcore. Would someone please help me?
 
2:53 PM
or maybe i can add support into react in the same manner it supports SVG.
 
3:51 PM
I just realized I spent 20 minutes not finding a branch when I cloned the wrong repo
fml
 
4:02 PM
My brain sucks.
 
Does it keep telling you to remove bits of your skin?
 
@JanDvorak Why, yes, yes it does. How did you know?
 
Just an EWAG
 
!!urban EWAG
 
@AwalGarg [EWAG](http://ewag.urbanup.com/4219741) Educated Wild-Ass Guess

A guess where you don't know the answer, but you do know something about the subject in general, so your answer will be better than just a WAG (Wild-Ass Guess).
 
4:05 PM
how educational
 
anybody feel like telling me why the write to json example here github.com/modesty/pdf2json/blob/master/readme.md throws Cannot find module 'L:\port\node_js\node' when run in strict mode
 
Hey guys.
 
How do I avoid the vertical lines in the above bracket
To not fully be green
and be green only until it hits the line for the next round?
 
4:44 PM
@HassanAlthaf Instead of using one element with class "game game-spacer green-border" you can use two with two different color classes.
 
@SomeGuy I remember reading that before.
 
4:57 PM
Are node streams too complicated or is it just me?
 
@Oleg Make things even more complicated by using Rx?
 
Nah, my brain would stackoverflow.
 
Who's the author of C.O.D.E?
I can't even Google :(
 
@SomeKittens ah, thanks :)
 
5:06 PM
@FlorianMargaine shout has an xss issue :O use github.com/thelounge/lounge instead
 
Guys, am I wrong to suggest to add .resume() the outputStream here github.com/jsdf/browserify-cache-api/blob/master/lib/… ?
 
5:27 PM
@ton.yeung Yeah - and you're completely right, eternal deathmarches are incredibly toxic.
I've worked at both kinds of companies. One where folks were really dedicated and believed in what we were doing (so we all worked a lot) and others where management tried to manipulate us into working far too much so we could show we "believed" in the company.
big difference - in the former people would say "I'm totally burned out, I'm taking a long weekend to recover" and everyone would be cool with it
the latter, burnout was interpreted as "not enough faith in the company"
 
6:06 PM
@SomeKittens I accidentally bought it. Regret every pound spent on it
it's for kids
well, written as if it were for kids
 
@towc oh really?
I've been thinking of buying
 
don't
unless you like being treated as a kid, that is
it probably won't teach you anything you don't know already anyway
 
6:18 PM
cool irc channels to hangout in?
preferably ones where just reading conversations helps me learn stuff
 
#startups is either awful or wonderful (logical or, so can be both)
 
about programming and CS :P
I imagine #web, #node.js, and #javascript would all be a terrible mess of assholes. so not going there
 
also #wangingout
 
you mean it would also be a mess or that you recommend it?
 
@AwalGarg I don't like ##javascript
They're like us but worse in everything
Even their bot, except that their code eval can run on either spidermonkey or v8
 
6:27 PM
but does it say HAMMERTIME?
 
Not even
 
what a retarded bot
 
#perl was pretty nice a few years ago, dunno how it is nice. I basically just sat there and was amused and occasionally enlightened.
 
@AwalGarg yes
 
Really hard to compare ourselves to ##javascript... we have 5% of the users at any given time
also I'm sure their bot can withstand a browser window closing ;)
2
 
6:30 PM
BURN!
 
@Zirak joined, thanks.
 
erm, s/dunno how it is nice/dunno how it is now/
I typed it with half a brain
 
I read it as now only the first time. Only noticed it the second time
 
@Loktar As far as traffic is concerned I think we're fairly on par with them. Not to say we don't have our share of problems, like @rlemon's pooping habits.
@Loktar Well that's...you see...touche.
 
haha yeah in fairness active users I think we might be on par with
I just wanted to poke fun at the bot, but @CapricaSix does seem more useful over all
 
6:34 PM
@Zirak ##javascript has really impressed me with their self-awareness about room culture issues
 
Haven't been involved in their meta culture, can't say about that
What impressed you?
Or rather, how have they impressed you?
 
I had some question, one guy was all I KNOW RIGHT ANSWER YOU ARE RONG DURR DURR. Mod called him out on it, and PMed me to apologise.
 
fish's irc channel is crickets but they were helpful in irc for getting my patch landed. pg, rofi, and arch's irc channels are pretty good though
 
it was "oh hey, y'all actually care about building a community"
 
is this an IRC room we are talking about or something else?
##javascript, i mean.
 
6:46 PM
IRC
 
Hey guys, is there a way to make a Mongoose call from Jade, Node?
Want to find usernames from an ID in a for loop in jade
 
You can't in Jade
You'll need to do it in Node proper and then submit it to Jade
 
So say if I get a result containing many items with a different username ID in each one, how can I use that ID to find the persons name for each item?
 
00:00 - 19:0019:00 - 00:00

« first day (2024 days earlier)      last day (2914 days later) »