« first day (1496 days earlier)      last day (3446 days later) » 

9:00 AM
@Kippie also sorry if I sound butt hurt, I just wanted to do these for fun.
 
@Saiprateek Welcome to the JavaScript chat! Please review the room pseudo-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.
 
Do you see the same gradient problem here : gget.it/7j7fc65b/gradient.html ?
 
I need a suggestion regarding career profile.... continue with java will be better or I have an opporatunity to work on Mule ESB
 
@Gizmo Most people change IPs just by walking down the street.
 
9:02 AM
which one will be good for future ... bit confused?
 
@SecondRikudo not while playing an FPS game :P
 
If you can have authentication in your FPS game, just require registration on a different server, and only accept players with the correct authentication token.
 
the problem is, the server code is closed source (don't have acccess to it) and has many exploits that just won'e be fixed, so I'm looking for some safety measures to ensure high quality play
 
Those without an authentication token should receive an empty response by the server, to minimize DoS potential.
 
yeah that's why I need to setup some routing on my linux dedicated server :D
though I am not allowed to modify any client files so I really have to make two separate servers
one for registrations and one for play
you probably heard about the mod "SA-MP" for GTA San Andreas? :)
 
9:07 AM
@Gizmo You can make your registration server a very cheap VPS
It only needs to access the user database on the remote server, it's very light.
 
@SecondRikudo lucky me haz a website in Germany, and the server is in France, so it'll all work out :D
 
@BenjaminGruenbaum I want to do the challenge but baaaah Knockout!
 
@SomeGuy The point is to learn it
 
@SomeGuy I did it... wasn't so bad
 
@SomeGuy you can do it in anything, the only requirement is use knockout. I'm thinking of using RxJS with it - should be fun.
 
9:12 AM
@JanDvorak Yeah, but I don't want to.
 
knockout has something nice: components
 
KNOCKOUT IS M$ SO ITS EVIL!!!!11
 
@BenjaminGruenbaum Ooh, that should be interesting
@FlorianMargaine Fine, I'll carry on
 
@Basj chrome sucks, deal with it.
 
@SomeGuy you can use custom elements
 
9:15 AM
@darkyen00 I posted it as a qustion here : stackoverflow.com/questions/27035632/gradient-wrongly-rendered
 
Oi Crapp
 
@FlorianMargaine Oooooh!
That's awesome
 
your gpu is disabled for chrome --- most likely :D
you get concentric circles dont you ? (or concentric ellipses) thats not a chrome fault
 
I'll let you dive in the source more if you want, but I'd rather advise you to go read KO's doc
it takes barely an hour
 
for me chrome / ie / ffox / opera / safari / safari Iphone are all the same
 
9:16 AM
Yeah, I'm going through the tutorial first
 
Night night fellas
 
@darkyen00 ...it's 2:50 PM.
 
@FlorianMargaine custom composents are the same as angular directives?
 
yep.
 
9:21 AM
(line 11-12)
 
Let's have the next month's challenge have something to do with Polymer!
 
<my-media type='img' lang='{{lang}}' path='broadline/intro-box.png'></my-media>
 
well, do this one already
 
I will, jeez
 
this is one of my directives in angular, that allow me to get somme medias according to teh current lang
 
9:23 AM
@SomeGuy the next challenge will be chosen by a fair dice roll
 
@FlorianMargaine Have you tried Gulp?
 
@SomeGuy I use gulp, far easier than grunt for me
 
@SomeGuy I've tried its getting started and stuff, yeah
why?
 
Yep, I love Gulp
Saw you use a Makefile
 
to replace my makefile? :P
 
9:24 AM
Yeah :p
 
14 hours ago, by Loktar
heh man your make is way better than my process
I don't need fancy tools when 2 lines in a makefile are enough...
 
That's fair
 
you know, use the right tool for the right job
 
I wasn't trying to tell you to use it here, just wondering if you'd ever tried it
 
yeah yeah
but I'm kinda on Benji's side in the discussion we had a couple days ago... let me find it
yesterday, by Benjamin Gruenbaum
You know, gulp doesn't even offer that much over writing the build yourself manually with promises and good modules.
 
9:27 AM
why don't use use watchify?
 
watch make
 
if I want something like this
that said, I always switch between make and make debug...
I usually write correct code from the get-go, in js
 
@FlorianMargaine I prefer to test while coding
 
9:30 AM
so it's usually something like "write code", run make, doesn't work... run make debug, see that the order required by the framework is wrong, fix it, run make debug just in case, all works, run make, commit
 
Yeah I do not like to switch to make between writing
The fact that I can watchify makes it less annoying
 
yup, as I said, I know the tool and have used it in the past... just not a fan of it
 
The previous gist is my "npm run-script watch"
 
npm watch doesn't work?
 
don't know, I always use npm run-script watch
 
9:33 AM
funny how everyone uses browserify nowadays...
 
gulp watch should work though
I'm just used to add "watch" : 'gulp watch' in my package.json "scripts" attribute
 
I use browserify because of you
(and the awesome Harry Potter logo.)
 
Yeah, @FlorianMargaine's the hipster dude who introduces us to the new cool things
 
9:35 AM
:(
 
That's a good thing!
I think you and Raynos are the most up to date people I know in terms of new tech
 
browserify is not really a new tech...
 
I'm not talking about now
 
I started using it when it was far from new too...
 
Well, I first heard about it from you
 
9:37 AM
nub
ugh
 
cries in the corner
 
looking at the packages I published on npmjs
it seems to have been 2 years ago...
 
Haha
 
this one seems to be the oldest github.com/Ralt/iter-shims
it was fun writing this
oh reminds me
@rlemon you were looking for a class-list shim yesterday eh? npmjs.org/package/class-list-shim
 
10:22 AM
@darkyen00 or, you could email google and tell them "Hey, I like your idea, I even opened a side project company for the same task - maybe I should work with you on that at Google"
 
@darkyen00 if you do not tell the user to scroll, he will stay on the main section with the image going from right to left, waiting for something.
(staging.snapick.me)
 
10:37 AM
@ThiefMaster Just caught a cheater. I had already noticed him and now I took screenshots
He posts one line immediately, then deletes his answer and takes time to build a real answer, then undeletes. So he's sure to be first in the list.
BTW this question should be closed.
 
anybody knows how to bind a treeview dynamically using javascript
 
@Jobi Welcome to the JavaScript chat! Please review the room pseudo-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.
 
@dystroy Isn't that the standard way to get rep?
Aug 20 '13 at 21:07, by Loktar
then edit it and add the explanation
 
@dystroy it doesn't work anymore
he's not first in the list
it's random now
 
@BadgerGirl No. You must at least have the decency to write something which looks a little like an answer at first.
 
10:44 AM
Yeah, deleting and undeleting is taking it too far
 
@Zirak
user image
10
 
Yay! my first node-webkit hello-world complete
 
@BenjaminGruenbaum ^*2
@JanDvorak how hard was it? :)
 
@dievardump mhmm
 
10:46 AM
@dystroy that's fine.
 
@FlorianMargaine u never know it might just work.
 
@dystroy It's ugly, but I don't see why it's illegal.
Also, there are legitimate cases
 
electric pig pokemon xD
 
@dystroy here:
94
Q: Initial Edits and Fastest Gun in the West

Benjamin GruenbaumI've noticed a form of abuse recently. Take a look at this revision history I've noticed this user as well as several others often do the following: Leave an empty answer that does not contribute to the question. Delete it, so it can't be down voted. Write the answer down. Undelete it. This...

 
@BenjaminGruenbaum He doesn't even finishes his sentence. And it's not the first time, that's why I guessed what he was about to do and I took screenshots
 
10:48 AM
@dystroy Maybe you should bring it to meta.
 
@FlorianMargaine Not hard. Currently looking up what can be done with the manifest file.
 
@BenjaminGruenbaum I can't bring it to meta (which has a far greater audience than this room) without giving the name. That's why I tried to alert a mod here. The goal isn't to have hundreds of people raise forks
 
@dystroy why not? You can paint over it or something
 
This regex for detecting a space followed by alphanumeric string isnt working properly: /^\s[a-zA-Z0-9]/g
 
Well... I could... but I'm a little wary of meta... I prefer to have it a little quieter...
 
10:50 AM
its allowing % character as well
 
@RahulDesai Maybe you want a $ at the end
If not, please give us more information, like test cases
 
@dystroy I think it could be nice if people knew to look out for it.
 
@dystroy this: jsfiddle.net/rdesai/vzynhtak/10 I have added $ and it isnt working
if you select a text and right click and select any menu, it should add that to alphanumerics only
 
Don't ask me to read your wall of code after you mentionned a small regex fixing
!!afk eat
 
that wall of text is dummy
actual JS code is just 34 lines
 
10:53 AM
@dystroy AFAIK same-score answers are sorted randomly anyway to avoid FGITWing that way. So he's not gaining anything
besides the chance on the badge for posting the first answer, getting it accepted, and getting 10 upvotes
 
Well if some user posts a similar answer, he'll appear to be the first to have answered
 
Should I use HTML-style includes (script src) or migrate to node-style includes (and learn require)?
 
(or browserify)
 
@JanDvorak learn require
@dystroy no, he means in node-webkit
 
Oh, ok then, sorry
 
10:58 AM
where you can use node code in a <script> tag
@JanDvorak better have only the bootstrap script in the html
 
hmm... how does one require jQuery?
 
npm install jquery --save-dev
var $ = require('jquery');
?
 
somehow I don't think jQuery supports this module system
do I just require jQuery and then access $ from the global scope?
 
@mikedidthis Why would you use --save-dev here ?
 
@dystroy bad / old habit? I presume I just need jQuery for this project?
 
11:05 AM
Well, if you actually want it in your project, it's a good habit
Why else would you be installing it anyway?
 
@SomeGuy I guess you should use --save instead, so that it's deployed for users, not just devs of the lib
 
Oh, right
My bad
 
@JanDvorak yeah, no need for require('jquery')(window) iirc.
@dystroy sorry, can you clarify for the designer please?
 
save-dev saves it as a developer dependency not as a regular dependency
 
yeah. That's how I understand it too
 
11:07 AM
Like gulp would be a devDependency
 
You'd use --save-dev for your test or profiling tools for example
 
But something like Bluebird wouldn't
 
Ahh makes sense. I just bundle one file, so I think that is why I threw it on the devDependency.
Thanks for the clarification :D
 
can someone please give me link to the meta question which is about login authentication?
the question was shared here recently by someone
 
my shell doesn't recognize npm. Is this a path issue, do I have to install Node.js or is there a download link I have missed?
 
11:10 AM
You don't have node either?
 
You need to install node.js to get npm I believe.
 
I'm surprised node-webkit (or at least the webkit part) works without node, actually
 
@JanDvorak That's kind of the point
To make standalones
 
oh.
but then how does npm fit with node-webkit?
 
I haven't used NW myself, so I can't tell you for sure, but I believe NW comes with its own version of node
 
11:14 AM
@JanDvorak It doesn't. It has its own browser and node runtime. Just make sure you have your dependencies bundled up and it's deployed like that. I don't think you can opt to install npm deps at runtime.
 
so just dump the jQuery file next to mine, require it while ignoring the return value and then use global.$?
 
Depends on how jQuery exports in its module
Just try it out and see which works?
 
Lemme try
 
My guess would be you use it just like you would in Node usually
var $ = require('jquery');
 
fuck jquery
 
11:19 AM
I thought jQuery just dumped some stuff into the global scope?
@tereško I still want to test the module system
 
any idea how to center the text vertically in list row jsfiddle.net/wZg75/42
 
Never used jQuery on Node, so I don't know
 
@SomeGuy Why the hell would you want to use jQuery in node?
For what reason?
 
@SecondRikudo I'm trying out node-webkit
 
@SecondRikudo Not me
 
11:21 AM
@JanDvorak Why the hell would you want to use jQuery in node-webkit?
 
I've seen people use Cheerio on Node for DOM parsing, though
 
@SecondRikudo just to learn the module system, most likely
Hm... NW seems to have crashed when I tried to require jquery-2.1.1.min.js
 
@JanDvorak See? Even NW doesn't want you to use jQuery!
 
@JanDvorak Just to elaborate, node webkit is both a browser and node. You can mix and match as you please. If you want a jQuery-like experience on remote pages for, say, scraping purposes -- then look into cheerio.
 
Maybe it just doesn't want me to use require
 
11:27 AM
@SecondRikudo I want one... but I am going to spend all my funds in half an hour ;p
 
@RoelvanUden What if I want jQuery-like experience on the local page?
 
@JanDvorak Then just use jQuery and it's $ global as you normally would.
 
so... not use require? Fine then...
 
node-webkit is a browser first, with nodejs apis second, so yeah.. there is that
 
Update: it didn't freeze, I just don't know how to open the dev tools in NW
 
11:33 AM
-_-
 
OK apparently jQuery does work with Node's module system.
 
s/w.+/suck/
 
Is there a way to make NW's notifications work like Chrome's notifications? NW's notifications suck.
well, kinda
 
11:48 AM
A question regarding regex using JS: how to append x to every alphanumeric in a sectence? jsfiddle.net/rdesai/8fy33wnp/1
 
capturing groups, I guess
 
I want to add heading before the list..but it is not coming jsfiddle.net/wZg75/45.. M i missing something ?
 
@AwalGarg whats your screen resolution ?
 
!!> "a sectence".replace(/(\w)/g, "$1x")
 
@dystroy "ax sxexcxtxexnxcxex"
 
11:52 AM
178.62.199.87:8000 can people vote it on how does it looks
2
 
@CapricaSix that looks exciting
 
[i made it in past 2 hours]
 
@darkyen00 slooooooow
 
disclaimer : its running on dev, no compression enabled what - so - ever.
 
11:53 AM
hello guys, is there any regexp guru here that can help me with a regexp?
 
!!welcome BeNdErR
 
@BeNdErR Welcome to the JavaScript chat! Please review the room pseudo-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.
 
you need to sacrifice a goat to lord zirak
 
(there really should be a command autocompletion here)
 
11:54 AM
or talk to admiral dystroy
 
!!welcome me
 
@me Welcome to the JavaScript chat! Please review the room pseudo-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.
 
I need advise
 
already done, a goat and a virgin
 
11:55 AM
@CustomizedName you should have used it.
no advices will help now.
 
@dystroy have I heard a userscript request?
 
it might not me related to JavaScript, but some people may still able to help
 
(x
yeah i got it..
you should off used it ;-)
[ps ask... we might still be able to help]
 
I need to buy a mattress for first time in my life :|
 
@JanDvorak no, don't tire me with a userscript, just hack SO's server
 
11:56 AM
@CustomizedName oh dear.
 
trust me, it's a mission
 
@dystroy do you need HTTPS support? If not, a simple MITM should do
 
!!google mattress buying advices
 
I need to match the text between a defined string and a pipe (|) if present, or end of line
have a look here: jsfiddle.net/p3yumdn0
 
11:56 AM
!!google MITM
 
@dystroy Man in the middle
 
for example, string = "ERROR|TEST=20141120124436|", I need to extract "20141120124436"
 
@darkyen00 Yo'ure slower than caprica
 
@darkyen00 only if google helps with finding a mattress
anyone bought a mattress lately ?
 
11:57 AM
@BeNdErR You're sure you need a guru for that ?
 
@dystroy @Shog9
 
Damn, banned again :(
 
@dystroy anyone that knows how to do that is a guru for me
 
@BeNdErR read a regex tutorial
 
@BeNdErR find me a mattress first
 
11:58 AM
Mattress buying
gosh what more is this room going to see
 
@BenjaminGruenbaum I was trying to adapt this answer to my needs
27
Q: Regex to match url end-of-line or "/" character

Chris FarmerI have a url and I'm trying to match it to a regular expression to pull out some groups. The problem I'm having is that the url can either end or continue with a "/" and more url text. I'd like to match urls like this: http://server/xyz/2008-10-08-4 http://server/xyz/2008-10-08-4/ http://serv...

 
Don't read 'an answer', do a regex tutorial
 
@darkyen00 This room is the life of SO community
 

« first day (1496 days earlier)      last day (3446 days later) »