« first day (1396 days earlier)      last day (3551 days later) » 

12:01 AM
jsfiddle.net/5j3trtzs Anyone know why this throws an illegal invocation exception?
 
another dumb question, how would you make a border outlined with a gradient?
 
@Meredith has to have this bound to console
var log = console.log.bind(console);
 
^
log is a method of console, and therefore needs to have console as its thisArg
 
I was going to write an exam today but the paper said "no aids permitted" so I had to leave
badum-tss
 
I thought that just made log reference console.log
Like log = &console.log
 
12:10 AM
@rlemon if you ever got an assistant, would that make him/her a lemon-aid?
 
yes
 
In Javascript a.x() and var x = a.x; x(); isn't the same
If you express it using .call, the first is a.x.call(a) and the second a.x.call(window)
 
@Meredith it does, but somewhere in console.log, this is referenced to invoke a command from console to actually print to the console, which you only have if it is invoked with this as console
 
var obj = {
  value: 1,
  foo: function() { console.log(this.value); }
};
var bar = obj.foo;
bar() // undefined.
var obj = {
  value: 1,
  foo: function() { console.log(this.value); }
};
var bar = obj.foo.bind(obj);
bar() // 1
 
@Mosho Yeah that makes sense
 
12:17 AM
0
Q: How to pass extra data down a Parse Promise chain

Joris MansIn my Parse Cloude code I need to run a few successive queries, each of them using a "find()". Example: var promise = firstQuery.get(objectId).then(function(result1){ return secondQuery.find(); }).then(function(result2){ return thirdQuery.find(); }).then(...

 
12:48 AM
I'm a JavaScript noob, although I've been a programmer for over 30 years. Wondering what the best way of doing the following in JS:
- I have a webpage collecting the output of several CGI scripts into one page.
- I need to pass CGI parameters via GET to the CGI scripts when certain things are clicked, and need to capture the output and redisplay it over the part of the page where the old stuff from that CGI script was.
 
@Respectech 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've tried using forms with hidden fields, but that takes me to the CGI page instead of allowing me to massage the output into my big page.
I've also tried XMLHttpRequest(), but that doesn't seem to work either. When I click on an 'onclick' element, the CGI script doesn't get hit.
@CapricaSix I read the rules. Thanks.
 
1:09 AM
OK. Nevermind. I've been hitting my head on the wall on this problem for a few days off and on and shortly after I ask the question I figure it out on my own.
 
@Respectech Ouch, CGI. You have my sympathies
 
@Respectech Often it helps explaining it in the form of a question. Happens to me every time
!!define cgi
 
@monners It means I aint got time to learn your $5 words.
 
@Respectech XHR is the right way to go
 
Hidden forms are like cheap wine. Does the trick, but you'll regret it the next day.
3
 
1:17 AM
@Respectech Use chromium and get used to the dev tools
They will guide your way
 
@monners Telstra just bought my company
are they evil?
 
@BadgerGirl Compared to your previous company? 50/50
 
I am having trouble trying to decide where I need to focus, I really feel like college is just going to be 120k dollars, a waste of time, and only for a piece of paper showing I can do something I already can do without it. How many of you were actually asked for a degree before working at your jobs, is it really needed now a days to get work (at a startup)?
 
1:32 AM
lol I love it
 
@Brandon Probably not, but you need something to show
 
@copy I am building up my Github account now, that count?
 
Yeah
 
@BadgerGirl lol, why ya asking me?
 
@monners because you're Australian
 
1:50 AM
@Loktar True fact: gifs that make it to the internet aren't the ones where you are successful
 
haha
 
@BadgerGirl SO EVIL
 
@brandon you don't want to start your career at a startup
College is also an awesome place
 
@SomeKittensUx2666 Have you seen the price of a decent college?
 
Heck, I went to one.
 
2:03 AM
@SomeKittensUx2666 I just don't feel like it will be worth it for all that money
Did any of your jobs require a degree?
 
Come to Germany, here it's almost free
 
CA colleges are the worst in terms of price
I never got my degree.
But I took 1.5 degrees worth of classes
 
@SomeKittensUx2666 So do you think it is really worth it though? I feel like I could be putting that time to good use, building my own startup or improving my abilities.
 
2:20 AM
Guys, I saw a movie called "The English Teacher". The movie is basically about a old woman happen to phuck her old student but she soon gets busted for doing it. Then she realises age difference between the student and herself, so she ends up dating his dad.
 
@Brandon no
 
@brandon like I said, you don't want a startup as your first job.
!!afk food
 
2:44 AM
@copy Thanks for the advice. I'll give that a shot in the future.
@SomeKittensUx2666 Same here.
 
@Respectech SomeKittensUx2666 is afk: food
 
man I need to start doing p90x
look at these results
 
You should check out the 2 year old picture of @jAndy
 
Is that a result of drinking too much chocolate flavoured protein shake?
 
Michael Jackson's biography backwards?
 
3:02 AM
@copy heh true
 
@copy what picture?
 
3:16 AM
I can't find it now
It's closer to the 2012 picture
 
3:42 AM
Hey all, I've been working with some code a friend gave me, and I think I've figured it out, but I'm not sure that I'm right. I was wondering if anyone would have anything to say.
 
@AndrewG 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 have a JSFiddle here of the code I got: http://jsfiddle.net/dhgomjwj/1/
What I think is going on is that none of the variable's values inside the the functions in the array are ever evaluated and "saved" until that last possible moment, which would be when (I think), index is incremented to 8, and the terminator expression evaluates to false, exiting the loop. At least, that's the best answer I could find. I do have lots of experience in Java, but not very much in JS/Web Coding so far.
 
need a closure
451
Q: JavaScript closure inside loops – simple practical example

nickfClosures are one of those things that have been discussed a lot on SO, but this situation pops up a lot for me and I'm always left scratching my head. var funcs = {}; for (var i = 0; i < 3; i++) { // let's create 3 functions funcs[i] = function() { // and store them in fu...

 
is there any advantage of
/\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i
over
/\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i
for a beginner level email regex validation?
 
I wasn't asking how someone would make it 1,2,3..., but more whether or not my logic about what's happening is correct, and if someone could go into more detail about what's actually going on behind the scenes.
 
3:56 AM
for more details i suggest reading lexaical scoping , free variables and variable objects from dmitry's javascript tutorial or documentation or explanation .. whatever the way u put it
 
@shortCircuit You could try expert level email validation: email.indexOf("@") >= 0
 
actually its not for javascript , in rails they have these models where validations are written, so i need a regex .. :P
 
Well, you get the point
/@/
There's your regex
 
:D
whatif someone puts @@@.com
 
Nothing bad will happen
@@com would be a valid email address, by the way
 
4:06 AM
valid, logically, but from the bottom of my heart, i feel this shouldnot be an email ... because maybe email is unlike duck .. so, everything the walks like an email and talks like an email is not an email :D :D
 
You can't do anything about people entering a fake address anyway
 
Email validation's not an option?
 
You send them a confirmation token, then you know you got the right address
 
Yeah that's what I meant. Fake address and they won't get the confirm.
Assuming they don't actually create a fake address to give you...
 
hmm.. but the company i am in doesnot consider me considering that part .. especially during the training and probabtion period ..
 
4:14 AM
@BadgerGirl What's your company?
 
@monners Ooyala
 
Oh, nice.
Telstra's alright. I mean it's a telecom, so...
 
olala
 
@BadgerGirl I know they've got a really passionate innovation team
 
Nice
 
4:32 AM
Of course, with your digital snooping you probably know that I have to say that :P
 
5:12 AM
hi :D
@BadgerGirl i didn't recieve you rakhi :P
 
sorry?
To be fair, I wanted to eat a banana and it was all green.
The taste was unbearable.
 
xD
@BadgerGirl :P it ohkay -_-
 
And I'm still hungry.
 
@BadgerGirl postal address please ?
oh wait
 
Hey all!
I'd like to make it so something happens when my img src changes into a certain path. Is there an event handler for that?
 
5:22 AM
Try change event, I am not sure if it works for img
 
@FagnerBrack Ok! I'll go try that now :) Thank you!
 
If that doesnt work you always have the possibility of listening yourself (pseudo-code):

var img = document.getElementById( "myimg" );
var old = img.src;
var srcHasChanged = function( newSrc ) {
// do something with newSrc
}
setInterval(function() {
if ( img.src !== old ) {
srcHasChanged( img.src );
old = img.src;
}
}, 50 );
 
@Willow If you're the one who is changing the src, you can define your own events using EventEmitter
 
@copy Actually the one changing the src is an image slider script; I'm just trying to listen for the change so I can display a particular info div when its assigned image is displayed :)
 
You could patch the script or ask the original author to do it
 
5:36 AM
@copy Actually, I don't think I can do either because I'm working on the Joomla CMS, and I used an image slider extension .o. I just came up with the idea to listen for the img src change because I noticed that it's what the extension does to change the image displayed
 
Eww, Joomla
 
@SomeKittensUx2666 I know, right, but work. D:
 
You could possibly pass the script a mocked image object that observes src
But it might not work because those scripts are often awfully unmodular
 
The only way to find a solution is understand what you really want
 
The web sucks
 
5:40 AM
Yes it does ._.
 
Not more than native GUIs though, I believe
 
The web doesn't suck, why you say that?
 
HTML sucks, CSS sucks ass and JavaScript is mediocre
 
Actually.

I've been wanting a chance to finally work with Python, but noooooo
 
It is for those who don't know how to code with it.
 
5:43 AM
@Mosho Ssup dude. I am working on making bubbles in a bubble chart drag/ droppable. If you see my bubble chart here: jsfiddle.net/rdesai/sqvov74j/2 if you remove line # 446, dragging works. I have added that line so that the other bubbles could re-arrange after a bubble is dragged. The problem is that, its resisting the drag after adding this line.
 
@RahulDesai that's too much code man, sorry
 
@FagnerBrack I know too much, the horrors cannot be unseen
3
 
@RahulDesai take a look here sscce.org
 
@FagnerBrack Well, the input data itself is ~400 lines. The actual code isnt much.
 
@copy Understanding the design patterns around javascript allows you to develop as better as with java, ruby, python, etc. Javascript is so well elaborated that have been here for several years in an environment with constant changes and lack of standards, the web. Now JS is used in server-side and HTML5 is used to develop mobile apps.
 
5:48 AM
...that lag and feel shitty
 
Mobile apps that lag on my 2 year old phone
That has more CPU than computers had 10 years ago
 
@copy even on my nexus 5 they lag
 
@copy is it time yet?
 
And if JavaScript is so great, why doesn't it have set. Or why can't it catch a specific type of exception
 
I am not saying it is perfect
 
5:49 AM
it has -_-
 
Javascript coding differs from regular Object Oriented concept. I develop in Java AND Javascript. I understand if I use the same concept on both I will consider one of them as crap.
 
@BadgerGirl He wasn't online, probably he didn't go
 
@copy I have 3 slides and one of them is the title
 
@BadgerGirl That's enough for tonight
 
5:51 AM
... we will resume in morning
 
@soyuka Broken
Can only store strings and integers
 
here it is the morning \o/

ES6 Set from mozilla
 
@copy Trying to implement OO concepts in JS is like trying to develop with Java using non blocking IO like Node. That's what I meant for "JS sux for those who don't know how to code with it."
 
I know that, what I ask for aren't OO concepts, especially not like in Java shudder
 
So what do you ask for?
 
5:55 AM
@FagnerBrack Any idea, dude? jsfiddle.net/rdesai/sqvov74j/2
 
set, Bigint, catching specific exceptions, pprint, logger, eventemitter, operator overloading, hashmaps that can store objects as keys, integers, modules, queues
Maybe a fixed version of this
 
Everything can be done perfectly well. In some of them you are asking for some features missing the whole point of how the language works.

You cant design a city house if you are used to build a farm one.
 
Almost everything I wrote can be added in without breaking the language
 
bigint is not necessary for most applications
JS doesnt work with exceptions, it is not needed
logger can be easly built
modules are being built and can be used today with AMD pattern
 
6:02 AM
JS doesnt work with exceptions

What? You can throw, try and catch with JS!!
 
@soyuka old video and clearly explained by Brendan Eich
@soyuka JS have exceptions but they do not work as Java, for example
 
Modules are build with indirections and build steps, which is awful
 
oh yes ofc, but you can't compare what's not comparable ^^
 
@soyuka Exceptions in JS are not a must
 
And you only picked the easy points
 
6:03 AM
@FagnerBrack could you link to this explanation?
they are not a must but are handy in some use cases
 
They are absolutely necessary for every language that is higher-level than C
 
@soyuk yes, one sec
 
@FagnerBrack thanks!
@copy why should they? When you work with real time you don't want your code to break so, you "emit" errors you don't throw them for example.
 
@soyuka I am just trying to find the talk here "The state of Javascript"
 
6:09 AM
guys what is this Stackexchange.ready in SE source?
 
Yeah I met with him here in Brazil at BrazilJS 2012
He made a talk and presented the video with explanations
 
I'd love to :O here in France there are no such things as great conf's :'(
 
Man I cant find the video, I heard they lost a lot of the footage
But he stoped each video statement to explain what exactly was going on in the video entitled "WAT"
Thats was all fruit of the video maker ignorance
 
:/ I'm gonna tweet him thanks for that info!
 
of how JS works
Tweet him and ask for the talk, see if he have it
That was very funny
 
6:13 AM
:D
your twitter username @FagnerBrack?
 
Yeah but I am not active
 
founded
anyway I've CC ya ;)
thx for this time to go to work bb @
 
@FagnerBrack take a look at angularjs jquery is really depreceated today ^^ (youmightnotneedjquery.com)
 
Progressive enhancement
You cant do it with Angular
You need one or another according to specific requirements
 
6:18 AM
@FagnerBrack Name a buzzword from year 2000?
 
@copy Can you elaborate?
 
Web developers know for years that progressive enhancement completely fails for web applications
 
It depends on your requirements
 
Agreed
 
If you want to develop an application that doesnt care for SEO, is very complex but you dont want to use server-side to generate the content, then you use angular
 
6:21 AM
Has SEO, isn't very complex, uses angular
It doesn't work with JavaScript disabled, so that is a point for you, I guess
 
If you have dynamic generated content how can you develop in a simple way in which you would easily expose you site to most search engines?
 
Search engines are smart enough for that these days
 
Are you sure?
 
Yes
 
Google has a tool for testing your site that reveals exactly what the web crawlers see when they hit ya
 
6:27 AM
I see a lot of usability issues, does it work for voice devices?
It is not related to the underlying technology though, just a note
 
Hi fellas
 
@FagnerBrack I don't know, but even if not, the economical decision is not to spent hundreds of extra development hours for that
 
@copy I understand. Now coming back to Angular, you say that all major Search Engines are properly reading content generated with Javascript without the need to workaround?
 
Maybe
 
There are some requirements where a "Maybe" doesn't work, and that is a good reason for not Using Angular.
 
6:34 AM
@FagnerBrack that's likely dependent on your JavaScript. I'd be more than a little surprised if Google hadn't optimised its web crawling to at least pick up content delivered by its own company's frontend framework!
 
What @monners said, plus all major search engines (at least in Europe and America) is only Google
 
One thing that I always wondered is how I could develop my app using hard typed HTML and progressive enhance it using regular.
AFAIK whether you start a module using angular or you don't
 
That's additional steps for something that should be pretty much automatic. I am aware of this technique.
The more rules you add to your app the more complex it becomes and more money you should be spend to maintain it through capacitated human resources.
 
wat
 
6:38 AM
@olive_tree Yes I am :) Sorry that I didn't reply before but I didn't see your message. Yes I am god but I'm not a special person, just like you. Feel free to ask anything you want :)
 
If you've got standard content, write it as standard content. Surely you're not delivering all of your content through conditional frontend logic?
 
I'm tired of my mum
and family
 
@monners can you elaborate?
 
What should I do at this point?
I just want to listen to rock-songs and just live!..
 
Get drunk
 
6:41 AM
can you eleborate?
 
No
 
HAMMERTIME!
 
i have a question my friends
 
Bring it in, lad.
 
6:43 AM
what appeals more to you something like onedrive.live.com/…
or an uber applisque advertisment where we show the software with just narrations and deep british accent ?
 
Absolutely the latter
 
no sarcasm, @copy you being honest or being sarcastic ?
 
Honest
 
I think you should definitely add your mum in the story.
 
6:46 AM
Our pitch video is totally like iPad Air Introduction
 
Your script sounds very artificial
 
@FagnerBrack going home. Maybe later.
 
@copy yeah i wanted to sound extremely artificial just to show the product more like "smosh"
wanted to blend in humour.. but hmm lets try writing some applisque stuff
@EnglishMaster onedrive.live.com/… ? like this
 
sounds nice, but your scripts are usually too mild.
you should definitely add sex contents for more entertainment.
 
lol
i need to work on the pitch video more cause that goes on crowdfunding
 
6:52 AM
Maybe produce an advertisement about a English Teacher phucking her old student but the student took photos of her naked and uploaded on snapick. Later the teacher figured out the student uploaded the photos on snapick because nobody really uses snapick (so no one knows about the photos) and wanted to threaten the teacher that he'll share the snapick link on his Facebook and let everyone knows its existence.
 
Try the opposite of what @EnglishMaster writes
 
Nope, seems like a solid plan to me.
Definitely wouldn't hurt the name.
 
!!mute EnglishMaster 2d
 
room mode changed to Gallery: anyone may enter, but only approved users can talk
@SecondRikudo Muted user 1065129 for 2d
 
Getting real tired of your shit @EnglishMaster. Cool down.
 
6:55 AM
:P
/me works on pitch video
 
Goforit
@AbhishekHingnikar look at Prezi
 
@AbhishekHingnikar Pitching it to whom?
 
@Kippie people and angels
 
Why getting investment? Show to yourself that you are capable of.
 
@FagnerBrack i cannot process the whole internet on my pocket.
 
6:56 AM
People dont buy what you do, people buy why you do it
 
facial/object recoginition, stemming and learning and aggregating is extremely expensive processing wise.
 
Would the immediate cost really be that high? I mean, I get that it would probably cost alot if you get lots of traffic, but that probably won't be the case for the first few months
 
@FagnerBrack That's a common mistake. You shouldn't do everything yourself.
 
So how can you be sure you wil achieve it? How can the investor be sure you can achieve it?
 
ps i am putting up a live version with the pitch which works on iPad, iPhone, Android, Desktops
 
6:57 AM
It works excellently with small projects, not so with large projects.
 
It depends on your business plan
 
@Kippie It could be anything, what if somebody imports 20gb of dropbox images :->
 
@FagnerBrack Since when are investors "sure" something will succeed? It's all about trust in the product, which they need to determine for themselves is worth the investment
 
Ok not "sure" but "most likely"
Change all sentences
 
I had atleast 2 interested in me in Imagine Cup
one was ceo groupon india
hes still following up with me :->
 
6:59 AM
@Feeds meh. Bad answers :P
 

« first day (1396 days earlier)      last day (3551 days later) »