« first day (1874 days earlier)      last day (3088 days later) » 

12:00 AM
Can't even insult properly
 
isn't it like noon for you?
 
It's 10am
I'm on holiday, and my brain has turned to mush
 
I'm in Australia
 
enjoy your holidays :)
ah, kiwi meets kangaroo
 
12:01 AM
Less koalas, more big spiders.
 
lol
is it as bad as the rumor says?
watcha doing over there?
 
@KendallFrey @Zirak
 
crl
nice piece of art
 
kill me now
 
crl
boop boop
 
12:04 AM
@FlorianMargaine hanging with my mum and sister, theme parks, couple concerts
I'm only here 5 days though
 
crl
I've made a really ugly ass function, full of globals and shit
 
Hello
can someone please tell me how to use this api? npmjs.com/package/broccoli-rename-files
i'm trying to rename files in my npm package
i'm stuck understanding how to use this api
it looks very simple but i'm not getting it
 
@JoeSaad It only has one function, and two options....
 
12:15 AM
@Shea how to use it?
where do i pass my argument for the path of the file
 
1 message moved to Trash can
@JoeSaad Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
Man my code is garbage
 
what is tree tree?
 
@JoeSaad The documentation can
 
@copy you're insane
 
12:16 AM
var renameFiles = require('broccoli-rename-files');

tree = renameFiles(tree, {
  transformFilename: function(filename, basename, extname) {
    return filename.replace('.module', '');
  }
});
 
@rlemon I didn't make the pattern, just the simulation
 
what is tree tree?
@corvid any hints please? i have read the documentation like 4 times now
 
It probably requires some other NPM here
 
i installed the npm
it's not giving any error
i just wnat to know where to pass my path arguments
 
Found skimmed it and found this
 
12:19 AM
do i need to install that extra package? i don't think so
 
@JoeSaad never used it but willing to bet tree is just the filelist tree. pass in a tree of filenames and it will spit back out a revised list of filenames based upon that.
 
Yes, it seems to be an addon for some other NPM
 
i think it is already installed with the rename-brocolli
 
just try passing in a multidimensional array of filepaths to mimic a tree
 
so all you wanna do is replace some file extensions one time?? or is this a future deal?
@JoeSaad
 
12:26 AM
future deal
 
do you have to use the broccoli thing?
fs.readdir( dir, (err, files) => {
	for(let file of files) {
		if( /\.module$/.test(file) ) {
			fs.renameSync(file, join(dir, file.replace(/\.module$/,'')));
		}
	}
});
untested ofc
but using the fs module (built in) you can do this easily
 
i'm creating an npm package that does some scaffolding and after it scaffolds and writes some files, it renames some of its files based on some input from the user
@rlemon no i don't need broccoli
any rename npm should work, if you recommend using any
 
see what I wrote above.
 
@rlemon oh, then i may just need to use that then
 
it is basically how I would do it
 
12:29 AM
ok, so this code you sent i can just use?
 
you can try
node 4 might run it
 
just replace dir with my actual directory path?
 
can't tell you.. haven't made the switch
it contains es6 code
and you need the 'join' package
 
i don't have node4 yet
 
so read it, read what each of the methods do
and implement it with es5
:D great learning experience
!!afk scrabble with the misses
 
crl
12:33 AM
scrabble is great, use wordsmith.org/anagram :p
 
@Jhawins thanks! I like my hardwood floors, they have neat little scrolls
hey, are there any mods on? I have an issue I need to discuss
 
@rlemon I like the choice of words for that id
 
@KendallFrey rlemon is afk: scrabble with the misses
 
@rlemon still not clear on that
i tried using and not sure i'm getting it still
many thanks for your help in advance
 
1:06 AM
decent bundle
 
Hi Guys
How are you doing?
 
I am starting to think that I live in a fucking Faraday's cage
 
ronaldo < messi
 
If I have an AngularJS service that holds my data, and a controller that has several properties that are filters of that data (e.g. $scope.wonContracts = dataService.data.contracts.filter(function(contract){...something...}); ) how can I ensure than items added on the dataservice are displayed appropriately?
currently it looks like the properties are being assigned on the controller before the data is done loading in the service. Is there a way to re-run the filter when the array on the service changes?
Perhaps it would be better to use an AngularJS filter on the table that is displaying the contracts instead of hosting them in separate filtered arrays
 
1:22 AM
XMLHttpRequest cannot load 192.168.1.134:8888/pivot/api/report/uploadReport. Response for preflight has invalid HTTP status code 404
I am getting this error on my angularjs application.
Someone has idea about it?
Hello?
is somebody here?
 
do you know what 404 means?
 
@WangDan Do you know what CORS is?
 
Yes
I added code to backend like this
header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
But it didn't work.
 
Anyone here used zurb foundation?
 
If you can't be bothered to do a search for your error message, I don't see how you can expect someone to be bothered to explain it to you.
@FarhadNežad Yeah, long time ago.
 
1:28 AM
Can I post my question here?
 
And the api is working on other clients.
 
I'm trying to use a validation but with disabled to enable on validation
 
@FarhadNežad 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.
 
Such as postman
 
0
Q: Abide disable button and enable on validation in Zurb Foundation

Farhad NežadI'm familiar with foundation abide a little, I was wondering how can I make the button disable and as the user type it gets validated and change the button to enable for submit. Form Example: <form data-abide> <div class="name-field"> <label>Your name <small>required</small> <input ...

 
1:29 AM
But don't work on only ajax
 
Postman is not restricted via same-origin-policy. Ajax in browser is.... hence preflight
 
So what can I do to solve it?
 
Should once always unbind the event listener after it has triggered?
 
Read up CORS. en.wikipedia.org/wiki/Cross-origin_resource_sharing You need to understand it properly. CORS requires both server and CLIENT headers and any authorisation the server grants you will need to match the socket (protocol:host:port)
 
1:46 AM
@Luggage Just pushed the metadata function thing
undocumented for now.
 
Matching sox would be nice
 
user5365803
2:07 AM
hello
 
user5365803
blue dogs
 
user5365803
back
 
user5365803
are
 
Do you guys think it is necessary to have jQuery so that you can use it in Angular directives? This guy thinks so.
I would not include jQuery at all.
 
interesting game bundle.
> 12 Steam games for $3.25
goes up .25 every day
and a new game is revealed each day kind of neat.
 
2:17 AM
@RahulDesai You don't need jQuery at all.
 
@SomeKittens Yeah. That guy is making me confused.
He probably found some awesome jQuery plugin that he cant live without.
Hey, thanks for that comment. Thats a relief. :)
Is it a lot of work for you guys to move to Angular 2?
I havent played with it yet.
 
@Loktar I found a great game for you store.steampowered.com/app/375510
 
@RahulDesai Yep. I'm not on the Bootstrap team but I know them. They've put a lot of work into it. Crazy smart people.
 
@KendallFrey ^ lol
 
@SomeKittens Awesome!
 
2:23 AM
also... I already own it :/
er wait, maybe I don't
I thought I grabbed the bundle that had it, guess not
wait nm, yeah I do.
Searched A new, rather than New.
 
@Loktar Where is that, I can't find it
 
I saw it on reddit
 
hmm that isn't the same, but is mentioned there
haha regardless the game isn't something I can see myself diving into idk
I just grabbed the $6 bundle for that
Flockers looks pretty cool and runs $20 on Steam
its a newer take on lemmings (ish) more action oriented though
 
> Sorry for delay, we want to launch super awesome build and hopefully it will be ready in 1-2 months.
holy fucking shit lol
> Hi guys, I restored the company web site after it was deleted from free hosting.
 
2:31 AM
:/
yeah this is the whole dark side of early access lol
thats why I rarely pay for them, I grabbed the bundle that had that game, but it had a few others I was interested in
 
This is clearly a bunch of young guys with no clear goal and relatively little skill.
 
in fairness at least it's only 0.99
they aren't charging a crazy amount
but yeah I agree with your assessment lol
he said he made the engine in Flash using AS3..
 
oh ffs.. that is another one from that bundle
I guess that was just a shite bundle
 
I see TB looked at that game
 
user1596138
2:35 AM
@nick I only kicked you the one time if it happened again there is fuckery afoot
 
> Steven Hawkings can run better than this game.
3
ouch.
 
ooh, bring it on
I like the fact that nobody in the world knows how to spell Stephen Hawking
 
@Jhawins fuckery AKA @phenomnomnominal
 
Hmm. "Support for old IE ends on Jan 12." Reality is MS still supports IE 7 on embedded systems and IE 9 on Servers & Vista.
In fact I see IE 7,8,9,10,11 across the support list. Doesn't look it will change what you need to support if your policy is "latest IE (on your platform) only."
 
3:12 AM
@Sheepy that is interesting. Looks like Extended support ends for Vista in 2017 at least
so non embedded OS's the oldest "supported" browser + os combination is Windows 7 and IE11
 
@Loktar Well, Server 2008(non-R2) 's Extended Support runs till 2020. And it uses IE 9.
 
yeah but you shouldn't be browsing the web on a server OS :p
 
@Loktar Not even with a TOR client? ;)
 
I believe a majority of people use the Windows desktop version, I think it would be safe to say IE8 and below should be gone?
 
@Loktar Tell my IT head. I think he will laugh you off. I do find that, if it is a proper server, it is faster to google and download whatever you need, than to dig it up from the installer repo and check that it is up to date.
@RahulDesai Yes, in that case. But no, some people are still using old internet kiosks that virtually never updates.
 
3:21 AM
Douglas Crockford is right. Old IE versions survived so far because developers like us supported it.
@Sheepy old internet kiosks?
 
Well, our company don't support them.
 
Great! Mine doesnt either.
 
!!tell Rahul google internet kiosks
 
I see what you mean.
How about upgrading the "old" machine? :P
Can I do !!tell me google internet kiosks ?
!!tell me google internet kiosks
 
woops
TIL not to use x++, use x+=1 instead. Better readability. Some people might confuse if the developer actually meant ++x.
 
@RahulDesai I doubt that it is in the kiosk company's interest to offer upgrade rather than offer a much more profitable new machine...
 
Says Mr. Crockford.
I hate kiosks. Some of them have terrible UI and UX.
I would rather get the stuff done on my phone.
 
mornin
 
Don't forget that 2GHz, 5 inch smart phones and affordable 4G are pretty new.
Or that many poor souls still don't have them.
 
3:36 AM
True.
I remember the days I developed apps for Firefox OS phone that had 128 MB RAM.
lol
It was fun though.
 
thats like how much my phone had
until I upgraded a week or two ago
 
sad that mobile ie has better support for javascript than safari
4
 
!!google safari is the new IE
 
Spread the word. And if they say you have Chrome on iOS, tell them no, Apple won't have it so it is only Chrome in name and it is still rubbish.
 
3:44 AM
lel
also
until they added WKWebView in iOS 8, third party apps were stuck with UIWebView
which is crap in terms of performance, even just compared to the native Safari app
so chrome on iOS might be better now but in the past it's just been a slower version of safari with a different skin
 
Well, same on Android.
 
that webkit thing?
doesn't the Chrome app use that too though?
 
The two webview thing.
 
interesting
 
is it actually feasible to build a web app with cordova?
 
3:51 AM
@Sheepy looks like the android webview is based off Chromium starting with 4.4
 
It is more interesting than you think. The stock android browser - and thus the basic and slow webview - is open source, and saw no major update for years.
This is because Google have been moving towards their closed source apps, to force vendors to install them - all of them - by default.
 
@r3wt its not really a web app at that point is it?
 
This is the story before 4.4. I don't do that much mobile so my story is not too up to date I afraid.
 
hm, well I haven't done much android work at all so thats good to know
 
you know what i mean though; using cordova to build a cross app (as i understand it) ui with css/js/html. from what i've read it just a webpage running in a webview, right?
 
3:54 AM
but the chromium engine is open source correct?
@r3wt yeah, it's more common than you think
simple way to do cross platform apps
performance-wise it's pretty slow though
 
well, some brave souls give me a job to build first a prototype webapp, then port it to cordova. i don't want to totally fail so i'm trying to gather opinions of people who've used it
ah, that figures
 
Chromium !== stock android browser.
 
404
 
@r3wt depends what you're trying to do
 
3:58 AM
@nick It isn't that slow. Depends on how complicated the app is
If your webapp runs well enough on Chrome on Android, it'll be fine.
 
correct
I wouldn't say that regarding iOS though
 
Yeah, me neither
 
I recently found out Safari doesnt support getUserMedia
 
at my last job I built quite a few apps with cordova/phonegap and honestly, they ran like shit
they ran perfectly fine in the regular Safari browser though which was the frustrating part
 
runs perfect:
mobile ie, android chrome
doesn't run:
safari, mobile opera
@nick what framework did you build them with?
 
4:01 AM
granted, these were using Canvas so I guess you could say they're pretty heavy in the rendering department but bottlenecked by JS execution speed
 
ah, ok
that makes perfect sense.
 
yeah, read somewhere that Apple's webview didn't have an optimized JS engine like the built in safari app
 
dumb question, i'm correct in assuming that mobiles do not have a gpu?
 
they do
 
Lots do
 
4:03 AM
ah really?
had no idea
 
@RahulDesai They don't support many things. Picture, download, shared worker, fetch, or ES6.
 
Whether your browser allows you to use it or not depends, though
 
That's why some people and some sheep think it is the new IE.
 
@Sheepy Yep. And here at Apple, we need to get things working in Safari.
 
mobile gpus can even be used for non-graphics stuff.
just like a desktop
 
4:07 AM
@RahulDesai you have to be the change
 
you need to climb the corporate ladder until you call the shots
then make webview great again
 
lmao, hurt
 
yep
I should learn the languages that Safari is built on.
 
I recently told a client that, if you want native notice on the HTML5 web app we are developing for you, it will work on any browsers on Android. But not iPhone. She is unhappy, because all her staffs who need notice use iPhone. But fact is fact.
 
4:09 AM
how could you disagree then that safari sucks?
 
@RahulDesai C++?
 
I have a question: How do we make ES6 support on old browsers? Is there a library like there is modernizer.js for HTML5?
 
@RahulDesai Babel
 
@Sheepy Maybe. I enjoyed C++ at school.
 
Safari runs on WebKit. WebKit is not written in Swift or Objective-C. I have read it source.
 
4:10 AM
@Sheepy But I have heard Babel converts ES6 to ES5. Isnt that true?
 
babeljs.io is the popular ES6 -> ES5 transpiler, but there are others.
 
@RahulDesai how else would it work
 
@RahulDesai How can you support ES6 on old browsers otherwise? You tell me :)
 
I meant, it is used as a convertor. I may be wrong though.
 
you can't polyfill the syntax. you need to transpile for that.
but babel inludes plyfills for es6 functions. Some of them may be usebul even without the transpiler and new syntax.
 
4:12 AM
I was thinking of more like including modernizer.js in the HTML
 
you can use it that way, but it's really just transpiling it on the client instead of at build time
 
I think most Babel polyfill comes from core-js?
 
it's slower.
yess, core-js is right
 
ah, I see
 
You can include Babel and transpile on client side, but it is extremely not advised. Not even for dev purpose.
 
4:13 AM
ok
What is the recommended way then?
 
I think it's really really useful to have a build step for client code. If not for babel, it's usefil for other things
lint, minimize, whatever
 
Do I detect if the browser supports ES6, if not go with ES5 (hopefully)?
something like that?
 
!!tell Rahul google babel.js tutorial
 
yeah, I should read that
 
4:15 AM
No browser does. You'll need babel or another transpiler for the time being
they are all moving toward supporting more and more es6, but babel will fill in most of the blanks.
 
ok
sounds like a very useful tool
 
Babel is very nice. You can be conservative with it an only enable spec ES6, or turn on some of the other modules and get all sorts of cool features
 
Awesome!
For those of you interested, here is the material from today's Douglas Crockford's 3 days Javascript Workshop: gist.github.com/mrkd/f2c62b212d9f87f667ca
Today was Day 1.
 
just remember Babel 6 doesn't do anything out of the box
 
@nick Its just converting ES6 to ES5, right?
 
4:19 AM
not even that. you turn that on
 
I personally just use Babel 5 all on (default) and let it do its job. I am not sure I'll be using it a year later, so don't want to spend too much effort on it...
 
I know, I still need to read on it.
 
it's all opt-in
 
Even their online demo is still using Babel 5. You should try that - it converts your code on the fly, in your browser (not on server).
 
I'm still on 5, too.
One of the @nick 's had issues with it so I decided not to update, yet.
 
4:20 AM
@RahulDesai well, in order to convert ES6 to ES5, babel uses a bunch of different transforms
just get the es2015 preset and enable it in the config (this includes all of the transforms you need automatically)
and you'll be golden
 
Cool!
 
@Luggage probably the other one because he's a scrub
@Luggage I mean I did run into issues but I don't think I said anything here
 
yes, it was probably Thomas the Tank Engine
Angry Nick.
 
Nick why you angry
 
You're the one from the good universe.
 
4:24 AM
wat
 
you find github funny?
 
a lot of those are regarding the no default transforms thing in v6
it confused a lot of people
 
I can see that. I'd assume that babel's default is ES6.
 
yeah the docs don't really highlight this enough
 
4:27 AM
It's like a new TV coming with the brightness at 0.
 
lmao
 
lol
 
my only contribution was a little warning notice in the tutorials
 
user406009
I still remember when Babel used to be called 6to5.
 
ew
 
4:29 AM
@Luggage So true.
Hmm. Except that TV and monitors are still viewable at brightness 0. So sad.
 
You got what I meant.
 
user406009
Wow, they are right. The docs don't really emphasize enough that you need to enable ES6 now.
 
user406009
That should probably be fixed to prevent confusion.
 
PR
 
4:45 AM
@Sheepy pedantic nerd
 
user406009
Yeah, but I would make it bright red or something.
 
doesn't really address the whole issue though unfortunately
 
Good morning
I am very new to web designing, actually it is just a side work given to me by my project manager, but i don't know how to do that, can any body help me with a basic doubt
?
 
@Chirag 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.
@Chirag 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.
@Chirag 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.
 
would take some serious restructuring of the docs IMO
 
user406009
4:48 AM
I know we have sorta reached the realm of bike-shedding, but that's just my humble opinion.
 
user406009
Wow, the bot needs some work.
 
@Lalaland it was actually a warning (yellow) but I was asked to turn it into an info box (blue or something)
@Lalaland she has a name you know
 
user406009
@Chirag What exactly are you being asked to do?
 
chanting "Please not PHP, please not PHP".
 
lol
 
user406009
4:50 AM
@Luggage Well, if you want to write something in an hour and never touch it again, PHP might be an OK choice.
 
@Lalaland : We have a page with 5 tags, on click of each tag it should open a new page, Where for 4 tags someone from our team has already done work, now the last tag is i have to do.
So, basically when someone clicks on last tag it should open a new page below but inside the page there is nothing but the page it self should be opend in a small window.
 
backs away
 
@Chirag So your task is to make the final link open to a new popup window?
Do you have the content of the window as a webpage?
 
Yes,
Yes i am preparing it,
 
If you google "html link popup small window" you will get some results, many with code.
 
4:54 AM
Thats Mr. Crockford right there -> twitter.com/badass_js
lol
 
@Sheepy Question is, there should be a blank page in below area and also there should be a page open in window
 
I might just be tired, but I'm trying to think through the best way to have a form function without javascript, but use ajax if its there.
not really a javascript question...
 
Ok, Thanks
 
@Chirag Sorry, we can't really help you when you talk in board terms for a something we don't know the details of. For example your "below area" may be a textarea or a div or an iframe, and how you make it blank will be different.
 
I'm thinking it's either use two separate APIs or pass an additional variable when not using ajax.
 
4:58 AM
@Chirag Try grab an html or web site creation book from your local library.
 
@Sheepy Yeah, you are right, thank you for your time
Ok, @Sheepy
 
Local libraries are still a thing?
and they still have books?
 

« first day (1874 days earlier)      last day (3088 days later) »