« first day (1666 days earlier)      last day (3278 days later) » 

7:06 PM
yes no maybe ?
 
no
:P
@darkyen00 what is the benefit of OTP over the present system?
 
@AwalGarg just auth no more bullshit
as a user... its awesome
 
@darkyen00 Not sure I follow. What is the "more bullshit" part in the present day oauth?
 
@AwalGarg sign-up using facebook => need to login to facebook
this just verifies that you own this device. thats it
no extra stuff.
 
how does it verify that?
 
7:09 PM
@AwalGarg ?
PEP8 is pretty awesome
 
@AwalGarg sends you sms, you put that sms
 
@BenjaminGruenbaum it says use snake_case, doesn't let me use tabs, requires classes to have init methods, etc. etc.
 
Exactly, so all Python code everywhere is consistent
 
@darkyen00 how is that better than login to facebook?
@BenjaminGruenbaum Y NO TABS!!!
 
Casing an tabs/spaces arne't a huge deal, consistency is
 
7:11 PM
also I dislike snake_case so much :(
 
well, tabs are terrible for one thing and are displayed differently on different machines and fonts, but let's ignore that - why is it an issue?
 
@AwalGarg Consistency trumps personal style preferences
 
@BenjaminGruenbaum personal preference
 
@SomeGuy that, basically.
 
@BenjaminGruenbaum How'd your birthday go?
 
7:12 PM
mhmm, ok.
 
> "A universal convention supplies all of maintainability, clarity, consistency, and a foundation for good programming habits too. What it doesn't do is insist that you follow it against your will. That's Python!"
 
I thought your birthday was in August
 
@SomeGuy fun
> If you violate these conventions, the worst you'll get is some dirty looks.
 
owwait, caprica didn't do that nudge?
@BenjaminGruenbaum haha true
 
@AwalGarg that's from the pep btw
 
7:13 PM
yep. read it.
duh I put the nudge timing in seconds :P
 
someone on the internet will point out how you're wrong
 
happy birthday @Benjamin
 
it's your birthday? happy birthday @Benjamin!
also hi people
 
7:19 PM
@Ahmad quick, talk about JS in the Python room!
 
Lol what? :D
 
@SomeKittens How to Java?
 
@Ahmad we were chatting about PEP8
 
actually dropped by in the js room to ask my very first js question. jk, I dropped by before for tech support, but sssh.
 
@AwalGarg public class all the things
 
7:21 PM
oooh
I don't follow PEP8
2 space indentation for everything
 
shame on you
 
everything
for js, for java for ruby
for all them codes
 
I kicked Ahmad, I will not have blasphemy in this room
5
 
@SomeKittens Java gives error: java needs help. help java die.
 
it's the ahmad way of life
it's a dangerous life
 
well at least I do space indentation
some people do tabs in python 0.o
 
@Ahmad all my python code is in tabs :D
well, was. Untill 5 minutes ago.
 
you learned from your mistakes. I forgive you.
 
haha great!
 
No notifications on GH. Feels weird.
 
7:25 PM
weeeelll, the reason I'm here: Zirak's chat bot.
wanted to run it heedlessly in the android room
but can't :/
apparently I can't even compile phantom js
I failed even before actually running the bot
 
@Ahmad Hi! I just happened to see your posts here when I came in, and I run a headless version of his bot over in Root Access
I'm familiar with compiling PhantomJS. What distro are you using?
 
awesome! :) I'm compiling it on my ubuntu droplet
(14.04)
can't really make sense of it :/
 
why not download it from the website? or is there no build on the website?
 
no linux build available right now :/
> Binary packages for Linux are still being prepared. There are still issues to be solved until a static build is available (see issue 12948 for more details).

In the mean time, it is recommended that you build the Linux version from source.
 
not sure if that's the reason, but that's one reason
ah; killed cc1plus can mean that it has insufficient RAM
eh, I have a phantomjs build on my RHEL7 box that may work for you if the shlib dependencies are compatible
 
7:30 PM
ooh yeah my VPS only has a half gig of RAM
 
ldd /usr/bin/phantomjs
        linux-vdso.so.1 =>  (0x00007fffb33fe000)
        libicudata.so.50 => /lib64/libicudata.so.50 (0x00007f3ef7f1b000)
        libssl.so.10 => /lib64/libssl.so.10 (0x00007f3ef7cae000)
        libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007f3ef78c6000)
        libfontconfig.so.1 => /lib64/libfontconfig.so.1 (0x00007f3ef768a000)
        libfreetype.so.6 => /lib64/libfreetype.so.6 (0x00007f3ef73e4000)
        libjpeg.so.62 => /lib64/libjpeg.so.62 (0x00007f3ef718e000)
        libpng15.so.15 => /lib64/libpng15.so.15 (0x00007f3ef6f63000)
 
so that's entirely possible
 
think you can scrounge up those library versions? :P
ooooor
maybe i can ship them for you ;p
 
would be awesome!
 
ok, time to do some hackery with cut to get the file names
 
7:32 PM
:D!
 
@Ahmad ok, zipping it up now
 
user1596138
@Jhawins They can't change the input if it is hidden, they can only see the ID — Polaris 3 hours ago
 
that's PhantomJS binary for 64-bit CentOS 7.0 along with all the first-level library dependencies
it should run on Ubuntu 14.04 64-bit
 
@Ahmad try recompiling c++
also, get the latest version
 
oh sorry I got sucked into playing a round of agar.io
thanks a bunch @allquixotic!!
and will try that as well @tereško!
 
7:39 PM
lemme know if it works
 
:)
will do
 
waaait a moment
that QT you are compiling there
isnt it ?
 
it's phantom.js
 
it fails in QT Webkit
 
ah yes you're right
 
7:43 PM
if updating gcc/clang fails, you could setting up QT beforehand
 
@tereško PhantomJS ships a custom version of Qt and QtWebKit with hacks to make it work; it's not just bundled
you can't just compile Qt/QtWebKit on its own and then link PhantomJS to it
and if my binary works he won't need to compile anything
 
then again, I do not know the context and my primary server OS is FreeBSD .. I have a bit different take on "compile from source"
 
WebKit alone, regardless of the fact that it has Qt glue, requires something like 1-2 GiB of memory in gcc to link against, and I've never gotten Clang to compile it
it always fails on some obscure C++ standards problem
 
I would have simply done cd /usr/ports/lang/phantomjs; make install clean and it would have been compiled on FreeSBD
 
@tereško Nope -- FreeBSD only ships PhantomJS 1.9.8 which is grossly insufficient; it ships a WebKit from something like 2010, which doesn't even support ES5
I've been dealing with PhantomJS for years, and PJS 2.0 is the only sufficient version, especially when you're trying to run Zirak's chatbot, since it uses ES5
 
7:48 PM
@Zirak ping
 
ah shoot the binary doesn't work :(
 
@Ahmad doesn't work => insufficient info
error messages? specifics?
 
./phantomjs: error while loading shared libraries: libicudata.so.50: cannot open shared object file: No such file or directory
 
@Ahmad how are you running it? are you running it in the same directory as those libs?
try running it in the same directory, pjs, as LD_LIBRARY_PATH=. ./phantomjs --help
 
ooh okay!
 
7:50 PM
you can't just copy phantomjs to /usr/bin and ignore all those libs
those are required dependencies
 
oh no wait, I did run it in the same directory
 
but did you set LD_LIBRARY_PATH=. ?
libicudata.so.50 is in the tarball I gave you, so it's simply not finding it.
also, try LD_LIBRARY_PATH=. ldd phantomjs in that directory to troubleshoot what it's finding and where it's finding them from
 
okay will do
ah shoot now I'm getting
./phantomjs: relocation error: ./libc.so.6: symbol _dl_starting_up, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference
 
rm ./libc.so.6 -- let it use your system glibc
then try again
pretty basic stuff here
good ol' library linkage
 
sorry, I'm just a simple android dev :s
./phantomjs: relocation error: ./libpthread.so.0: symbol __getrlimit, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
:/
 
7:57 PM
ah, remove that one too
and probably libintl lol
just start removing every lib that gives you that GLIBC_PRIVATE error
 
okay!
it wooorks!
 
yawn :)
 
thank you very much :D
this room is awesome.
 
boring for a systems hacker, though I admittedly made a mistake in shipping you those libs to begin with ;p
funny, I'm not ordinarily in this room
 
yer all a buncha nerds
 
7:58 PM
only here because I was getting desperate and looking to see if any SE employees were around, since all the Super User mods were gone and we had a serious troll problem
 
@allquixotic the awesomest root accessor :D
 
guy was making RL threats in comments of a question
it's deleted now though
we had a "dead spot" in SU mod coverage of ~60 minutes
 
:/
 
Okay
So @BenjaminGruenbaum, just writing the documentation?
Any guidelines/style guide I need to be aware of?
 
@SomeGuy @darkyen00 pycon is happening and this time I have much more programming/python knowledge than the last time :D So I am thinking of attending. You guys coming?
 
8:02 PM
@MadaraUchiha Yes, if you want to the "What about generators" section is free, it should explain that promises work with generators, how Promise.coroutine can be used, what addYieldHandler is, what you can yield and motivate using them. A reader should know that promises complement generators rather than work against them after reading it.
 
@AwalGarg i will be
 
@MadaraUchiha make sure you git pull first and be consistent as much as you can with the other pages
 
@darkyen00 how was it the last time?
 
okay
 
@darkyen00 come to gtalk maybe?
 
8:03 PM
@Ahmad well good luck with headless now that you have a working phantomjs; you might want to write a script that puts that pjs directory on the PATH and LD_LIBRARY_PATH to ensure proper linkage
once you have it on PATH and LD_LIBRARY_PATH, just invoking phantomjs as the Node script from Zirak probably does should get it working for ya
export PATH="${PATH}:/path/to/pjs/folder"
 
yup that I should get working :)
 
export LD_LIBRARY_PATH="/path/to/pjs/folder"
then node whatever_ziraks_script_is_called
 
@MadaraUchiha ping me on any questions
 
(I don't know what it's called since I use my own hack that far predates the node login script)
 
@BenjaminGruenbaum k, I'll work on the coroutines one
 
8:05 PM
Awesome
 
Although I'm not sure I'll be able to completely explain what a cooroutine/generator is, so will need feedback on that :P
 
You don't need to explain what a generator is
This page is for people who wonder why they should use bluebird and not generators and coroutines. Lots of people don't understand they complement eachother
 
@BenjaminGruenbaum I'm not sure how one would use a generator as an asynchronous tool without promises
 
thunks for instance, or a special _ you can pass to callbacks.
 
@BenjaminGruenbaum Can has example?
 
8:20 PM
Check the old co docs for examples.
You don't have to address them though, just explain that promises and generators are compatible, that generators can do a lot more things than async and are used for sequences, and that when it's a sequence of actions it's somewhat of a coroutine, and that promises model that well
 
@BenjaminGruenbaum I want to understand the "current case" and how promises complement that case with their coroutines
 
gmail's got an api: youtube.com/…
 
8:39 PM
@AwalGarg new api
some of my friends are gonna love this ;D, they came to pycon last year with ton of stuff
over emails
 
> Most of the 'First Class' students will get Technical Seats and some of them become Doctors and some Engineers.
Some of The Second Class passout students may join for MBA, become Administrators and control the 'First Class'.
Rest of them may enter politics and Become Ministers and control both of the above.
Last, but not the least,
The 'Failures' join the underworld and control all the above.
And those who do not attend any school, become Swamis and Gurus and everyone goes to them
/* docs.angularjs.org/guide/providers#factory-recipe */
 var encrypt = function(data1, data2) {
    // NSA-proof encryption algorithm:
    return (data1 + ':' + data2).toUpperCase();
  };
 
@AwalGarg you learning about Angular?
 
@SomeKittens yep :D
 
@AwalGarg sweet! I'm currently working on an "intro to Angular" slidedeck
 
great! Ping me when it is complete :)
 
8:47 PM
What places do you think I should cover?
@AwalGarg It won't be terribly useful on its own - there's a bunch of codealong exercises
 
data binding at the top. I honestly had no idea what it is initially.
also, an honest section on where not to use it will be pretty cool.
 
@AwalGarg Isn't data binding like the first example on the Angular website?
 
@AwalGarg Good point. You're talking about {{ brackets }}?
 
@OliverSalzburg not good enough
 
@AwalGarg Will do
 
8:49 PM
@SomeKittens right
 
Let me know if there's any other rough bumps for you
 
sure :)
 
@BenjaminGruenbaum do I PR against the main repo, or against your fork?
 
That way he can claim all the credit for himself
@AwalGarg Also, use Batarang
 
8:59 PM
Done
@BenjaminGruenbaum lol was your branch that far behind?
 
wrong branch
pull against 3.0 docs
 
Yup!
 
Looks neat, thanks!
 
I'm one of the maintainers, so you can complain to me if anything breaks/you want more features
 
9:00 PM
Oh FFS
How do I edit it?
 
(ignore the 2.5 star reviews.... angry internet mobs...)
 
oh nice!
haha sure. I will do a review after using it for a while :)
 
@BenjaminGruenbaum There we go
 
9:27 PM
@MadaraUchiha are you still working on it? I want to leave soon for a beer
 
@BenjaminGruenbaum I think I'll submit the fix to what you said today, but continue tomorrow
If you have more stuff you think I should add, comment
 
Ok, sure
 
> The experience was very enlightning
 
I'll make a clear post later but any guides are also appreciated
 
Windows Bluetooth is nice, hate the fact i need to pair first :-/
Is there anything that just works for proximity device communication ?
 
9:36 PM
who are you talking to?
 
Hey there! I'm trying to decide if I should use webpack or browserify for react.. Any opinions? I've only used browserify and I see that lots of people use webpack..
 
@iamemmanouil It's the age-old new hotness vs mature ecosystem
either will work. Flip a coin
 
@iamemmanouil I recommend babel, it takes care of it for you.
 
unless you've got very specific requirements
 
Using ES6 modules, fully compatible with react and flowtype
 
9:40 PM
@BenjaminGruenbaum Babel takes care of node stuffs?
 
huh
TIL
 
It also gives you the full feature set of ES6 and some of ES7, although I admit React's JSX transformer already does classes and arrows and all that.
 
which one is the mature ecosystem? @SomeKittens
 
@iamemmanouil Browserify
 
9:41 PM
Babel doesn't care by the way, it compiles it to whatever you'd like, you can use webpack or browserify on the result if you'd like (you don't need to typically)
It's just native JavaScript
 
Ohh i see. I do have some issues with browserify so maybe I should give webpack a try
 
@BenjaminGruenbaum Where is that in the docs?
 
Btw @BenjaminGruenbaum do you mean babelify?
 
@SomeKittens how do you think does import work?
@iamemmanouil it's just babel, but sure.
 
@BenjaminGruenbaum less import, moreso I want to require('crypto') in the browser
 
Used to be called 6to5
 
@BenjaminGruenbaum erm, I mean, requiring node core modules, not using the require function
Browserify allows for that (no idea about webpack)
 
Yes, babel can convert ES6 imports to do that through whatever you want
Look at that page
 
Does anyone know if there is something similar to the webpack 'raw-loader' for browserify?
Webpack seems to be reaaally fast
 
9:57 PM
@BenjaminGruenbaum @SomeKittens neither of you have any insight into closing alerts with protractor do you?
 
It's a Selenium shim, so you should be able to hook in to whatever that provides.
0
A: Protractor Dismiss Alerts If Open

mishugashudriver.switchTo().alert().then( function (alert) { alert.dismiss(); }, function (err) { } ); This worked for me. It'll dismiss the alert if it is there, and do nothing if it isn't. Change dismiss() for accept() if you want to accept the alert (OK) instead of dismissing (Cancel).

Though none of the answers have upvotes
 
Yeah I've tried a bunch of stuff, nothing seems to work
promises seem to resolve before the actual alert appears
there's an issue on the repo where juliemr points to an example in the protractor tests, but it's been changed and doesn't have the alert any more.
 
Comment on the issue?
Julie is VERY good at that sort of thing
 
yeah good point
 
Aaaah webpack solves the issue I had with browserify (compiles successfully) but the components are not loading and no errors show up!
 
@OliverSalzburg Hey! Just found this: github.com/angular/angularjs-batarang/pull/150
 
11:37 PM
@SomeKittens since when are you part of the angular organization?
(congrats about that!)
 
11:49 PM
Just had dinner with @Jhawins
met my first chatter irl
 
@Loktar so is he a redneck? :D
 
haha nah
he is a pretty normal dude
/me waits for him to say I'm actually a redneck
> that loktar guy is weird as hell
 
That's not possible. JavaScript developers are never normal people
 
its crazy too wasn't even awkward
 
"He's over 30 y.o. and got so many games, he must be a pedo"
 
11:52 PM
LOL
 
The new "want a candy?" is now "wanna play CoD?"
 
Call of Dick?
 
oh lord
 
> Got my dick whistle out
 
11:53 PM
@phenomnomnominal you know it ;-)
 
@FlorianMargaine about a month ago
and thanks!
 
@SomeKittens pretty cool
I know who to bother when I have an issue with angular now
 
uh oh
 
@SomeKittens why does angular exist?
:P
 
because browsers coders are stupid
 
11:57 PM
no, that's the answer for jquery
 

« first day (1666 days earlier)      last day (3278 days later) »