« first day (1748 days earlier)      last day (3207 days later) » 

user3119231
6:07 AM
morning ladies and gentleman
 
Morning~
 
user3119231
Mr. John from Snow, like always :)
 
user3119231
You mean *Hallo
 
Hallo! Wie geht es dir?
 
user3119231
6:09 AM
Sehr gut und dir?
 
@Maurize yes but more so
ah languages...
 
user3119231
Sorry, I'm a bit german :D
 
<-- I just like german
 
user3119231
 
user3119231
6:10 AM
@rlemon shame you!
 
@Maurize where's that from?
 
SHAME! SHAME! SHAME!
 
user3119231
Thanks for correction :D
 
user3119231
 
user3119231
6:13 AM
everytime just funny :D
 
user3119231
good, huh?
 
Hmm... that was kinda ugly. Buut... It's not like you can't fix it
 
omg what is this :D
i keep trying to find an objective...
 
Hmm.. You really need to find a way to tell if the client has logged out :P
 
OH I GET IT cool :)
 
user3119231
6:16 AM
@JohnSnow maybe I'll create a project on github, so anyone can edit.
 
user3119231
There is no way to detect if client has disconnected o/
 
Yes there is. Through long pulling
 
why not just drop them if there arent any updates for a while
 
user3119231
Lol anytime I show this script everyone thinks this is a websocket
 
user3119231
this is a simple timer with database functions
 
6:18 AM
@Maurize If you wanna change the faq bit, you can make a push request to here: github.com/rlemon/so-chat-javascript-rules
 
@DanieClawson my web app is based on php yii framework
so i have a lot of pages to navigate
 
@sharath no experience with that framework sorry
 
user3119231
@DanieClawson how`?
 
@Maurize well if its a database just store the last update time and don't pull that entry if it's super old? the code's a little foreign to me just guessing :P
 
@DanieClawson its not about the framework, its about navigation to different pages within the web applicaiton.
 
user3119231
6:23 AM
Danei I thoght simply do destroy the cursor before getting the data, and only create cursors for data recieved
 
@sharath right but your framework is going to determine the way you load in those pages
@sharath that framework looks really awful
 
@DanieClawson its still ok, you can just imagine it as an html page and some js files.
 
@sharath well then why are you worried about flickering?
 
user3119231
GITHUB -> Failed to publish this branch
 
@DanieClawson cause flickering is bad while navigation through web pages, right?
 
6:34 AM
@sharath yes but generally speaking its caused by loading another html file, and you only have one
 
i make a page full screen when clicking a button, and when i navigate to another page the full screen goes.
 
user3119231
@sharath because you refresh page?
 
yes
 
3
Q: How do you prevent a javascript redirect from exiting fullscreen mode?

hobaileyI am trying to redirect to a new url using javascript within an already fullscreen mode but the redirect currenlt exits fullscreen mode which I dont want. Am I using the wrong JS code? window.location.href = demo_url; or window.location = demo_url;

idk if thats helpful or not as i cant seem to recreate the issue
 
ooh
thanks anyway dude
:)
 
user3119231
6:41 AM
lol why is it impossible to sync simple .png in github?
 
@Maurize gosh.. the # of applications that has if you get it working well... Im all about game dev so thats about all i can think of but real time collab is a good one too
Coming this fall: CURSOR WARS
or something
 
user3119231
Haha, yeah and the battles are on popular websites
 
user3119231
via iframe :D
 
user3119231
someone just upload cursor.png into assets folder ...
 
user3119231
6:49 AM
huh now it has worked
 
o/
Mornin'
 
Mornin
 
@Maurize Wouldn't it be much, MUCH better do to this with node/websockets?
 
@RoelvanUden Most likely
 
user3119231
It would be, but can websockets be installed on every simple webserver?
 
user3119231
6:58 AM
How would I install it on my?
 
Just upgraded my ttyLinux :D
 
user3119231
websockets are unflexible in this case.
 
@Maurize Sure, if you can run node, you can use ws..
 
user3119231
But I can't.
 
If you're all like "PHP HOSTING IS CHEAP" you should check the year.
It's not 2010 anymore.
 
user3119231
7:00 AM
 
Why wouldn't you just grab a vps instead of some shit lamp setup?
 
user3119231
Because I dono >_<
 
user3119231
However. In this case is my method an alternative
 
uh well one valid reason is its free for a whole year??
 
user3119231
It was... :D
 
7:05 AM
lol still hard to beat $2/month
 
user3119231
Yeah this is really cheap.
 
I still have Hello World running on modulus.io :0
 
@cswl don't they charge by the hour? that seems crazy
 
It was a test account I created a while back.. Its still running on the free credit :0
 
can anyone recommend a good starting point for learning node as a front-ender?
 
user3119231
7:18 AM
Lol node.js is easy as fuck. Simply download and install. Then check some tutorials and tada you got your own websocket driven app
 
@DanieClawson You don't need it much as a front-end developer. You're just interested in packaging solutions, and task runners, but not for something else. I'm not sure there is a good starting point for that.
 
@RoelvanUden well I mean for using it so i can start in on doing backend as well. like simple log in/user state and later multiplayer stuff. it doesnt seem like a huge jump, like @Maurize says it seems easy as fuck. I just dont know whats involved in addressing security issues and such, or what security concerns there are, even
 
user3119231
So start with php. This is serverside. So you understand processes.
 
user3119231
 
@DanieClawson Nothing much. Just the regular things you expect of a server-side run-time environment; don't trust user input, validate everything, etc.
 
user3119231
7:24 AM
You can use javascript and php together
 
@DanieClawson Just remember that the node model is like Java and ASP.NET; there is one process which runs a HTTP server and everything you do in a global state is shared across each connection, because it's the same process, sharing the same memory. It's not a fire-and-forget model like the mentioned PHP above.
 
@Maurize Yea I've dealt with php, a bit, but the security issues are daunting. like, just implementing a log in system is ridiculous from what I've read.
 
@DanieClawson It's the same as any server-side environment. Management of secure transport, the way you're storing the password, checking the stored password, managing session state, remembering state (cookies?), recovering accounts, etc. If you don't want to deal with most of that, just let people log-in with an OAuth provider.
 
user3119231
@DanieClawson I don't use websockets or node.js cause I don't need it. I work the most time with php which takes use for example of pdo to be very secure.
 
@Maurize If you poll the server repeatedly, you do need websockets.
Also, SQL Injection isn't the only security vulnerability PHP has.
 
7:34 AM
JavaScript why?
!!> parseInt(27387 / 100)
 
@Jonathan That didn't make much sense. Use the !!/help command to learn more.
@Jonathan 273
 
user3119231
@MadaraUchiha everything has security issues and javascript the most of all
 
Why is the rounding off?
 
How do I get the rounding right?
 
7:43 AM
iojs 2.5 was released 2 days ago.. i need to check the website often :\
how do you check for updates?
 
@cswl How did you install it?
 
@Jonathan maybe see if there are any other methods similar to parseInt that deals with other types of numbers?
 
user3119231
you serious? I was just getting some coffee :D
 
@MadaraUchiha tar -xf iojs-v*-linux-x64.tar.xz
 
@cswl Then checking for updates would be manual.
Consider using nvm
 
7:48 AM
Is nvm easier to use than its Ruby equivalent? I messed up so much with rvm that I haven't even considered trying nvm
 
@rlemon doesn't the iterating over each pixel thing already take a huge amount of calculation time by itself? I mean, is there anything I can do to make something like this? codepen.io/jackrugile/pen/OVaxLK
the canvas would be fullscreen
 
I should write a script in js that downloads and extracts the latest iojs.. so iojs can update itself :|
 
meaning millions of calculations just to iterate
 
@cswl Yo dawg', I've heard you liked node so much, we put a node update script in yo' node, so you can update node while 'yo node, dawg?
 
Morning! :)
Any ideas for this question? /cc @BenjaminGruenbaum
 
7:54 AM
@IonicăBizău What's wrong with the current answer?
 
@JohnSnow It just errors... close is not a function
 
@RoelvanUden I extract it in $HOME/bin so I dont need root.. I guess it possible :\
 
hi guys..can you please give me an example of scope and limitation of an automated payroll system with biometrics
!!okay
!!burn
 
!!hi
 
@Neoares Hello
 
8:00 AM
1 message moved to Trash can
1 message moved to Trash can
!!sandbox
 
@RoelvanUden Please go and play in the Sandbox
 
!!> "roel van uden" == "garbage collector"
 
@Neoares false
 
:o
 
@user3783598 ^
 
8:00 AM
unexpected
I've already downloaded W10
!!should I install it?
 
@Neoares Indubitably
 
Cap has spoken
leroooooooooooy
 
user3119231
@Neoares I have a new girlfriend: Cordona.
 
Cwap.. my script just deleted the symlinks in bin of all my global packages :|
 
oops
It's a bit late to say it now but you should probably test those kind of things in a vm
 
user3119231
8:11 AM
Idiot, hers name is cortana :D
 
user3119231
facepalm myself
 
Isn't Cordona a beer?
 
user3119231
Corona*
 
@ivarni Should i reinstall the packages or can npm fix this?
 
Yeah, Cordona is a gear shifter :')
 
8:13 AM
@cswl I'm pretty sure running npm install again won't fix it, if I recall correctly it only checks if the package is in node_modules and doesn't look in .bin
 
@cswl Why the hell are you running a script you've written with root privileges?
 
@Neoares Nonononononono
 
@Maurize already starting to defend your crush, huh? :P
 
@MadaraUchiha Because it's thrilling
;P
 
user3119231
@towc I told her yesterday, that I really loves her - Cortana responses: This is nice.
 
user3119231
8:15 AM
o/
 
frieeeeeeendzooooooneeed! Buuuuuu! :P
 
@Neoares I installed the beta a month ago and it had so many bugs I honestly can't believe they will be able to fix them in the next half year.
 
user3119231
!!friendzoned
 
@Maurize That didn't make much sense. Use the !!/help command to learn more.
 
user3119231
!!/help
 
8:17 AM
@Maurize Information on interacting with me can be found at this page
 
user3119231
!!/listcommands
 
@Maurize 666, help, listen, eval, coffee, refresh, forget, info, listcommands, tell, afk, ban, unban, convert, define, doge, google, hang, jquery, learn, put..it..back...ლ(ಠ益ಠ)ლ, phucket, gtfo, moneycantbuylove, catmode, coffeetime, lifeban, stopmyself, instagram, kendallfrey, excited, manigga, meinneger, dgaf, infiniteriot, okay, feelsgoodman, fabulous, sausage, playerpimp, installjavascript, moarkittens, kendall, kfc, uwot, nsfw, facepalm, somekittens, erase, fry, dudeism, hahastillhere
onebox, morecoffee, steve, whoosh, burn, woosh, roomowner, phony, really, inur, coffeescript, macaroni,
 
!!kendall
 
user3119231
!!panic
 
8:18 AM
!!tell all sandbox
 
@all Please go and play in the Sandbox
 
user3119231
!!tell Madara Uchiha no.
 
@Maurize Command uchiha does not exist. (note that /tell works on commands, it's not an echo.)
 
user3119231
-.-
 
!!tell MadaraUchiha kendall
 
:D
jk
 
user3119231
o/
 
\o
 
o/
 
\\o
 
8:19 AM
@MadraUchiha @ivrani
Its not root . It just downloads iojs linux package and extracts to $HOME/bin/iojs2 replacing older versions.. I made it to preserve lib directory., but not bin directory,. so I have global modules in my $HOME/bin/iojs2/lib/node_modules but their symlinks are not in $HOME/bin/iojs2/bin
 
user3119231
@towc this is the "fuck this shit" symbol :ooo
 
user3119231
 
!!define enrollment
 
@user3783598 enrollment The act of enrolling or the state of being enrolled
 
!!define enroll
 
8:21 AM
@user3783598 enroll (transitive) To enter (a name, etc.) in a register, roll or list
 
user3119231
@user3783598 what about getting some name? :)
 
!!give me name
 
@user3783598 That didn't make much sense. Maybe you meant: live
 
user3119231
!!tell user3783598 bm-designs.de/CursorSynchro
 
@Maurize Command bm-designs.de/cursorsynchro does not exist. (note that /tell works on commands, it's not an echo.)
 
user3119231
8:24 AM
@CapricaSix I hate you.
 
!!define enroll
 
@user3783598 enroll (transitive) To enter (a name, etc.) in a register, roll or list
 
@rlemon this is a fine metaball algorithm, right? Assuming I've done all of the gradients and stuff...
var image = ctx.getImageData( 0, 0, w, h ),
    data = image.data;

    for( var i = 3; i < data.length; i += 4 )
         data[ i ] = data[ i ] < opts.alphaThreshold ? 0 : 1;

    fctx.putImageData( image, 0, 0 );
 
!!okay
 
8:25 AM
!!list command
 
@user3783598 tobacconist ziraksadvice gayclubs loktar zirak_naked slidepoop lol mhm roomowner buttstuff greatest_question_in_universe abhishekpornfreak
 
@user3783598 Seriously, stop playing with Cap here, use the sandbox if you must.
 
^
 
No solution found :|
 
@CallumBarclay are you able to launch nautilus in i3wm?
 
8:38 AM
Hi o/
 
i guess the only way of doing this without reinstalling packages is extracting this from package.json and creating symlinks
"bin" : { "prog" : "prefix/bin"}
 
how to pass a parameter to a js script tag?
is it possible?
 
@SuperUberDuper try window.location.hash
you can pass stuff through the url
 
Is there some kind of "on ready" for a node module?
 
so <script src="foo.js#baa"></script>
 
8:43 AM
@SuperUberDuper as in index.html#a=1&b=2, then you just split for & and you parse the variable
@SuperUberDuper no, the hashes need to be in the url of the current page
 
@towc that's not passing it to the script tag
@SuperUberDuper no
 
what do you actually mean by "passing variables to the script tag"?
 
@JohnSnow when should it occur?
@towc he wants the script to behave differently based on the include url
 
I wanted to have a one line script tag that would configure the script, but looks like I'll need to have extra lines of js
 
@SuperUberDuper what you should do instead is define a function inside the script which takes the parameters and does stuff based on that. Then call that function.
 
8:45 AM
yeah
 
@AwalGarg well, it's possible. document.getElementsByTagName( 'script' )[0].src.split('#')[1] gives you the hash
of course, change 0 to whatever you need
 
Hmm... Feels like bad design no matter how I go about it, but the connection in my db connection module has to happen before I can attempt to use it
 
@towc there are way better solutions less uglier than that
 
@AwalGarg you're ugly :(
XD
 
@towc like adding data attributes to the script tag and using document.currentScript.dataset
 
8:46 AM
@AwalGarg oh, that's actually much better, yeah
 
nice I like that
 
@JohnSnow are you using babel and/or bluebird?
 
Neither, and that's on purpose
I'm rying to learn how it's done without them
 
@JohnSnow using iojs?
 
Nope. Only mongodb
 
8:49 AM
iojs is a runtime. replacement for node, but with es6 features. not a library or framework.
Everyone should use iojs, and not nodejs.
 
Well, that's your opinion :P But anywho, I am using node.js now
 
idea - lol.js. Regexp's the page for 'lol' and replaces it with various synonyms for laughter.
 
use iojs-next
 
@AwalGarg document.currentScript is null
 
/\blol\b/i
 
8:50 AM
All ES5 code suffers the callback hell problem. no real good way around it. have fun.
 
literally just came in to say that. Going away now. Love you all!
 
@SuperUberDuper I don't believe you.
 
@AwalGarg I know, I'm intentionally trying to learn the callback hell
I believe it's good for me to learn it
 
"learn" callback hell?
how do you "learn" it?
 
Learn how to use callbacks
Deal with the hell
 
8:52 AM
@SuperUberDuper jsfiddle.net/9myjsm74 seems to work for me.
 
Can some people please reject the suggested edit on stackoverflow.com/questions/31718990/… ?
 
@JohnSnow which requires promises and you aren't willing to use them :P so have fun
 
ah I was trying to do it inside document.body.onload
 
@AwalGarg: why the hell did you approve that edit suggestion?
 
@Cerbrus only one more needed
 
8:54 AM
@Cerbrus it corrected the tags
 
It mis-tags the question, ti removes capitalization on "I"'s
It didn't correct the tags. You didn't read the question.
 
@Cerbrus oh wait you asked to reject it :P oops
 
Yea
 
sorry, my bad
 
Grrrr
 
8:56 AM
@AwalGarg It doesn't "require" promises, it's just a hellofamore easier to use promises
 
@Cerbrus well it is very confusing. answers are from both JS and java and the question is a mix of hell :P
 
The way I read it,. he has a text editor in JS, used to write Java
 
@JohnSnow It requires promises in some way or the other. Because the problem behind callback hell is that we are unable to represent async returns. So even if you write your own version or even specification of promises, you will still be using promises.
So yes, it does require promises.
 
I disagree. I want to learn how to do it this way first before I move on to promises
 
Hi everybody :)
 
8:59 AM
which way?
 
I can accept the answer "we don't wanna help you"
 
we don't wanna help you. you're welcome.
 
Callbacks aren't really as evil as you make them out to be. Yes, they require more attention, and yes, you probably want so split up functions earlier, but no, callbacks aren't bad or evil. In fact, they are super simple, and their simplicity makes them nice.
 
Hi guys can anyone help please
 
@RoelvanUden i can get behind this too
 
9:03 AM
I have a json string and I want to check if a key exists and if it does check if the value is not ""
 
when doing client side routing, i can just assign callbacks to different routes and magic
 
whats the best way to do this please?
 
@RoelvanUden and they are fast as well :-P
 
e.g. var readJson = $.parseJSON(jsonObject);
if( readJson a property "id" and property "id" does not equal "")
 
9:11 AM
@SuperUberDuper Edge does ;)
 
ah nice!
 
time for me to learn node.js today =)
 
time for me to learn react
 
@user3545438 if(readJson.id)
 
is there a way to bundle a stylesheet inside a script?
 
9:17 AM
@SuperUberDuper I think webpack does that
But you can write inline styles in react
 
jspm can import styles too
 
is jspm >> webpack
 
@towc Awesome, looks like a lava lamp :D
Bit laggy on my work pc though :c
 
yeah, it is pretty laggy
 
9:20 AM
would be nice if the directions of the circles could change to
ie momentum would be conserved, but it is v nice
 
and no anti-aliasing? 😁
 
how to notify the user that the popup blocked is enabled and you can't record voice. please allow popup blocker to record voice
 
typeof <window>
 
@AwalGarg sorry, not understand.
 
!!should do actual stuff or watch movies or play games
 
9:28 AM
@Zirak play games
 
@pirabdulwakeel when you do window.open, the return value is the new window. if a popup blocker is enabled, it will be undefined, else the new window object.
 
!!listen to Caprica or ignore her
 
@Cerbrus ignore her
 
Hm, paradox much?
 
@Zirak depends on "actual stuff"? :P
 
9:30 AM
@AwalGarg: I have adblock and window.open still returns function open()
 
I took a day off work, I'm not used to having so much free time
 
@AwalGarg actually, I am using camera, so its use getusermedia or flash player.
 
@Cerbrus you have to call it...
@pirabdulwakeel where is the popup then?
 
Ah, that makes sense
 
@Zirak you should totally stay here and answer my incoming load of questions resulting from me reading the POSIX specification :-P
 
9:31 AM
@AwalGarg, when user click on record voice, there is a little tiny box. which asking that allow, or deny. when you click deny one time. than you can't show that box back again. some time user forget.
So actually I want to show user that the camera blocker is enabled , click on the right side to disable it.
 
morning
 
@pirabdulwakeel WHERE is the popup part?!
 
@towc Hope you don't mind, added a couple performance tweaks. codepen.io/xbenjii/pen/zGMeOd
 
...
 
9:36 AM
Doesn't seem to lag in edge anymore
 
@pirabdulwakeel how is that related to popups?
 
click on the block, and you will see that on the right side of the address bar, the popup blocker enabled.
or let me share another image
 
also, you can enable it without reload. see the accessibility icon at the end of the url bar after clicking the block button.
 
@BenFortune did you only change this?
 
9:38 AM
data = new Uint8Array(image.data.buffer);
it is much much faster tho
 
@towc And the forEach to a for loop
 
So might be I am wrong, that its not popup,
but its some thing similar
 
Seems to lag more in Chrome than it does in Edge...
 
@BenFortune oh... mind if I implement this in the original pen? I'll credit you ofc
 
9:40 AM
@towc Yeah sure :)
 
@pirabdulwakeel RTFM. getUserMedia->promise is rejected with a PermissionDeniedError if user blocks access.
 
thanks! I actually have no idea what Uint8Array does
 
so you need to add a catch block to the promise returned
 
yes, let me try#
 
@towc You get a funny effect if you use an 8/16 array, though it breaks the metaball.
I think the performance increase is due to modifying the buffer in the array
Don't quote me on that though :P
 
9:42 AM
I've created a new microsoft account, and it asks me for old password
wtf cortana
 
MDN have some nice docs on it though
!!mdn typed_arrays
 
thanks
 
is there a way I can avoid including dist output in my npm publish? do I just run a build command in post install
 
@SuperUberDuper Make a .npmignore
 
9:47 AM
ok, but will post install build it the same?
 
If you setup the script for it, sure, but remember that if I install your package, I won't have the package devDependencies nor your global packages. Make sure it actually runs the script correctly.
(It's actually easier to publish dist and NOT src to npm)
 
thing is I need this to be github friendly
I don't want the dist diffs on my commits
 
Use a .gitignore for that?
 
!!summon 19132
 
@TheLittleNaruto I will appear in that room after 1 more invocation(s)
 
9:50 AM
ah so you can publish the dist to npm and not for github
cool
 
@SuperUberDuper I build TypeScript to dist in my crunchyroll package (github.com/Deathspike/crunchyroll.js). The .gitignore excludes dist (github.com/Deathspike/crunchyroll.js/blob/master/.gitignore) while the .npmignore excludes sources (github.com/Deathspike/crunchyroll.js/blob/master/.npmignore). This works for me.
 
!! Why do you leave that room always ?
 
@TheLittleNaruto because you touch yourself at night
 
Can somebody execute that above summon command ?
 
!!summon 19132
 
9:52 AM
Thanks Roel :-)
 
@TheLittleNaruto She die again?
 
Yes :-| @BenFortune
 

« first day (1748 days earlier)      last day (3207 days later) »