« first day (1558 days earlier)      last day (3380 days later) » 

11:01 AM
it's noon
 
It's morning
Ehm
Nope, 1 minute late for that
 
@RahulDesai that just makes me sad about UTC again
 
o/ everyone.
I still did not finish the ECMAScript 6 book, but... they really add a lot of stuff, no?
 
Hi there!! this is my first question on this chats!!
I'm Java, C++ programmer with knowledge on OpenCV, MATLAB, so this question is very amateur but I can't sort it out, I don't know why.

I'm trying to import the jQuery plugin called DYNATABLE to use it on my webpage (feeded from a JSON).

But when I introduce some code that involves DYNATABLE, my HTML shows an empty content.. why could it be?

My imports are:

<script src="http://mydomain.com/fuzzy/jquery-1.11.2.min.js"></script>
<script src="http://mydomain.com/fuzzy/dynatable/jquery.dynatable.js"></script>
 
11:10 AM
@RafaFirenze 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.
 
@dievardump it's mostly keeping up to date with what the community already uses and got accustomed to via libs, shims and transpilers
 
11:40 AM
0
Q: use of smalloc in io.js

Naeem ShaikhThe first release for io.js is out this month, I was reading the docs when I found smalloc a new module introduced in io.js. Till today I have never felt a need of doing so in javascript. My questions are: I wonder if there is really a need of raw memory allocation in javscript usin...

 
@RafaFirenze: You seem to be including jQuery and dynatables twice
 
let's see only doing 1
@Ce
@Cerbrus done.. nothing changed.
I'm realising that the error is when mentioning something on the HTML. For example, HTML works fine, but if I add:

<script>
$('#my-final-table').dynatable();
</script>

I get an empty HTML.
NO errors in the console.
 
@RafaFirenze Well, how does #my-final-table look like?
(As in, how does your HTML markup look like)
 
user2620028
11:59 AM
Rafa did you open your dev tools and network tab to make sure that all of your resources are importing correctly?
 
they are all correct
I'm afraid it's another error
 
user2620028
jsfiddle?
 
I'm doing PHP+HTML+JS
and I think it misunderstood the quotation marks
sometimes it works with "
and other times it does with \"
 
user2620028
ahh lol php ' and " playing with someone again
 
too bad :\
sorry if I made you waste your time
 
user2620028
12:01 PM
nah its ok i was going to waste it anyways hahahaha
 
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin develop:develop
Pushing to git@github.com:foo/baa.git
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly
Completed with errors, see above
for some reason I cant push to git today or fetch with my mac, but I can browse to it on github
 
Can't remember the link to the always great "friday" music video .......
Anyone have it ?
 
guys
why does my green colour appear brighter than blue, if they are made from RGB triade?
 
¨@phenomnomnominal - there it is, thanks !
 
user2620028
12:07 PM
@Bartek kind of obvious thought but have you color calibrated your monitor? lol
 
@HatterisMad +1
 
user2620028
I was arguing with a designer about a color once until i color calibrated the monitor i was using and it completely changed the color from a black to a light blue. It was way off.
 
@HatterisMad nah, I'm running on stock profile
 
I have two ASUS monitors, PB238, PA238- bought the wrong model for the second.. calibrating these two with my Macbook is just impossible
 
user2620028
@Bartek Stock profile has always been my problem.
 
user2620028
12:14 PM
@Eddie same i have a very nice laptop screen and bought a nice samsung monitor and its impossible to calibrate the monitor correctly.
 
@HatterisMad I've given up on it for now :L + one monitor squeals when moving the brightness away from 100, so bit screwed there .. caps on its way out I guess
 
12:42 PM
first time here, nice to meet you all
 
@rlemon Hi! Can I use it as a gift for a friend of mine? If yes what do you need? Steam ID ?
(and the choice was between GoT and Space/Alien something?)
 
um i have a fucked up error
some of my code is applying an error handler on window
the problem is I have no clue how to even find it.
and becuase of htat i cannot get any logs what so ever
 
Hey guys, feedback please? docs.google.com/presentation/d/…
cc @BenjaminGruenbaum @FlorianMargaine ^
 
@SecondRikudo who are you presenting to?
 
@BenjaminGruenbaum Other front-end devs in my company
 
12:49 PM
If it's your friends at work you're selling it wrong
 
This plus the demonstration on github.com/MadaraUchiha/6to5-amd-demo
 
Can I try?
 
Sure
@BenjaminGruenbaum You want edit privileges?
 
@SecondRikudo I'd like to have them too
 
naa I'll fork
 
12:51 PM
oh yeah I can fork, nvm
 
elp ?
 
0
Q: mysql_query in php and getElementById in javascript

KhalidHi please I'm new to javascript programming and i want to select data from database using getElementById as condition here is my source code: <script type="text/javascript"> document.getElementById('id').onchange = function(){ <?php $res=mysql_query("select * from inscrits...

Apparently front end and back end run simultaneously, magically.
 
@SecondRikudo I'd do something like this docs.google.com/a/margaine.com/presentation/d/…
 
@FlorianMargaine Access
 
gimme 3 minutes
 
@SecondRikudo look at the last slide
it's very drafty of course, but you get the idea
 
your slides are... ugh
heavy
 
any angular guys?
 
1:00 PM
I'm selling it, not explaining it.
The comparison to jQuery in the IE6 days is super important. The fact it saves money, and time.
The fact it's "drop in" and you can opt out of it whenever you feel like you've had enough.
 
Aye, @Sajeetharan
 
The fact every new browser will run it in a year without the library.
 
@Cerbrus aye
 
@BenjaminGruenbaum Nice
 
@BenjaminGruenbaum still too heavy imho...
 
1:02 PM
@FlorianMargaine he's showing it to a few people in a room not to a 100 in an auditorium. In general I avoid slides when I can get away without them and when I use slides I almost never use bullet points
 
0
Q: How can i iterate over elastic search results using angular?

SajeetharanIn my dashboard application am using elastic search to retrieve data, which retrieves data fine. Now i need to iterate over the data and get the result in the required way. Here is my code, routerApp.controller('SearchCtrl', function($scope, ejsResource) { var ejs = ejsResource('http://...

 
@BenjaminGruenbaum have you looked at my example?
 
the normal iteration does not work with $promise
 
@FlorianMargaine yes, you're not selling it though. These people don't care about sugar at the cost of introducing a whole build step tool.
The important part imo is that it saves them money, it's future compatible and opting out later is very cheap.
 
you're selling it to front end devs, not to management
 
1:06 PM
@Sajeetharan arent's es query async ?
 
yes async, thats my problem. when i put a callback function
it gives XMLHttpRequest cannot load %3192.168.1.200:9200/nondomain_callrelatedinfo/callrelatedinfos/_search. Cross origin requests are only supported for protocol schemes: http, data, chrome-extension, https, chrome-extension-resource.
 
in your screenshot it returned a Promise object. maybe you should use it.
 
poor me =(
 
i used that, it angular returns an error saying cannot read property 'hits' of undefined
 
Who wants to criticize my résumé?
 
1:14 PM
I do
 
Be as harsh as you want; I want to get this as pretty as possible with what little experience I have
 
what do the numbers represent on the right?
 
My skills level out of 10. I had text explaining that before, but removed it. Do the numbers even matter?
 
add a /10 after them at least
 
@NickDugger get rid of the numbers
 
1:16 PM
That resume comes off to me as way too conversational.
 
they're the worst thing in the world
 
@buddyp450 I suppose you're right
@phenomnomnominal really?
 
@BenjaminGruenbaum how do you pronounce Traceur?
 
If you're a 10, does that mean you're never going to learn anything about that thing ever again?
 
that's true
 
1:17 PM
@SecondRikudo tra soor
 
@NickDugger it's missing 2 sections: projects, and education
 
Thanks
 
@SecondRikudo it's a french word :P
 
@FlorianMargaine I have little to nill education, so I omitted that section. What's different from projects and employers?
 
1:18 PM
@PriteshMahajan press CTRL+K before you press ENTER
 
Projects is the big one.
 
(when posting code)
 
@NickDugger given you don't have formal education I'd say it's pretty good
 
Some college on your resume is better than no college IMO.
 
@NickDugger you can add more specific info to projects
 
1:18 PM
@NickDugger I like the "no bullshit" part.
 
@BenjaminGruenbaum should I get rid of the numbers and add more 'formal' detail about projects within the employers' sections?
 
@SecondRikudo /tʁa.sœʁ/
 
@NickDugger var NickDugger = new FrontEndDeveloper(); you should use Object.create
 
lol
I was just thinking about Object.create this morning
 
@NickDugger also, no arguments? So you're identical to all other FEDs?
 
1:20 PM
A title can only be 'so long'
 
@SecondRikudo translate.google.com/#fr/so/traceur click the "Listen" button
 
var NickDugger = new FrontEndDeveloper('sugar', 'spice', 'all things nice');
 
var NickDugger = Object.extend(Object.create(FrontEndDeveloper.prototype), { look: 'sexy', beard: 'yes', PHP: 'no thanks' })
 
So, from what you guys are saying; remove the numbers from my skills, add more 'formal' detail about the projects I worked on, and maybe tweak the title?
 
too verbose, not hired.
 
1:22 PM
Police asking for a profile sketch: "What does he look like?" A: "Well, ehm, sexy..."
 
Keep in mind employers want to know what you accomplished, not just what technologies you used, what technology you used is important but only to the end of what you did with it.
 
I don't think you should just list your duties. tell what you achieved for the companies
 
@Cerbrus but the important question is; does he like PHP?
 
Yea, that'll narrow it down a lot, if the answer is "Yes" :P
 
@rlemon & @buddyp450 ok, you guys are on the same page. I'll rewrite those sections
 
1:24 PM
> I streamlined the build process saving the company 14 hours a week in developer time.
 
@dievardump yes you can re-gift it or just send me their steam ID (but you can accept it from me and regift it to them I'm pretty sure)
email me your steam ID
@towc not sure if you got my ping or not, your prize I have to buy in store :P I wasn't aware you couldn't buy google play gift cards online
 
@rlemon that just means that I don't get it unless I come to Canada, right? Don't worry
 
:P no it just means you have to wait until the next time I'm near a futureshop or somewhere else that sells them
 
I'll edit the resume at home. I don't wanna spend company time to do it. That would be a big no-no
 
1:28 PM
@rlemon oh! Thanks then! I'm in no hurry
 
a few people have to wait. I'm gonna send the steam prizes tonight, and @TylerH has to wait as well due to a bug in the hosting sites sale page (they forgot to include jQuery)
 
@KendallFrey: Accidentally? That's some Chuck Norris level accident, man!
Looks cool
 
@Cerbrus I originally wanted to just mess with matrices, but I couldn't stop.
 
HAMMERTIME!
 
1:33 PM
@KendallFrey Nice!
 
Debating whether I should polish it up and publish it
 
You should!
 
but I wasted enough time on it already
 
can anyone tell me how can i retrieve data from elastic with angular app?
 
and 3D graphics already works fine on canvas
 
1:34 PM
If you spend some more, at least you'll have something to show for all the time
 
I should probably worry about the folks who are inevitably going to try to render meshes with it.
 
@Sajeetharan than you have a problem in your request. did you console log the Promise arguments ?
 
cuz that ain't gon' work
 
@KendallFrey this line is too long to be posted in the chat :P
 
in C#, yesterday, by Kendall Frey
> m1.m00*m2.m00+m1.m01*m2.m10+m1.m02*m2.m20+m1.m03*m2.m30,m1.m00*m2.m01+m1.m01*m2.‌​m11+m1.m02*m2.m21+m1.m03*m2.m31,m1.m00*m2.m02+m1.m01*m2.m12+m1.m02*m2.m22+m1.m03*‌​m2.m32,m1.m00*m2.m03+m1.m01*m2.m13+m1.m02*m2.m23+m1.m03*m2.m33,m1.m10*m2.m00+m1.m‌​11*m2.m10+m1.m12*m2.m20+m1.m13*m2.m30,m1.m10*m2.m01+m1.m11*m2.m11+m1.m12*m2.m21+m‌​1.m13*m2.m31,m1.m10*m2.m02+m1.m11*m2.m12+m1.m12*m2.m22+m1.m13*m2.m32,m1.m10*m2.m0‌​3+m1.m11*m2.m13+m1.m12*m2.m23+m1.m13*m2.m33,m1.m20*m2.m00+ ... this message is too long
I used code to write that for me :3
 
1:37 PM
Did you code code to code that code for you?
 
@dievardump ya i can get the reuslts. Promise {$$state: Object, then: function, catch: function, finally: function}$$state: Objectstatus: 1value: Object_shards: Objecthits: Objecthits: Array[10]0: Object1: Object2: Object3: Object4: Object5: Object6: Object7: Object8: Object9: Objectlength: 10__proto__: Array[0]max_score: 1total:
 
@Cerbrus sher did
 
i need a way to iterate over it and get the required result
 
How much code could a woodchuck code if a woodchuck could code code?
 
@Sajeetharan I want you to use the Promise. hat happen when you use it has a promise should be ? .then(cb)
 
1:39 PM
!!s/woodchuck/coder/g
 
@Cerbrus How much code could a coder code if a woodchuck could code code? (source)
 
@KendallFrey Shit happens
 
@Cerbrus How much code could a coder code if a coder could code code? (source)
 
Works surprisingly well :P
 
@dievardump sorry am new to angular. do i have to change anything in the existing code?
 
1:40 PM
@Sajeetharan The Promise here is an elastic search thing. Nothing to do with angular.
 
yo dawg I heard you like code so I coded some code to code your code so you can code code while your code codes code.
 
@KendallFrey hey lisper
 
@Sajeetharan elasticsearch.org/guide/en/elasticsearch/client/javascript-api/… did you rtfm? There is an exemple of "use the promise"
 
I don't see any parentheses
Speaking of lisp, I love this joke
 
(code(code(code(code(code(code(code(code))))))))
 
1:43 PM
> How do you think the unthinkable? With an itheberg
2.9/r/funny
 
@dievardump thanks
 
.then(function (body) {
  var hits = body.hits.hits;
}, function (error) {
  console.trace(error.message);
});
after your doSearch()
 
@NickDugger sure
 
@KendallFrey Let me rephrase that. I mean I want to see him walk.
 
$scope.search = function() {
$scope.results = client
.query(oQuery.query($scope.queryTerm || '*'))
.doSearch().then(function (resp) {
var hits = resp.hits.hits;
}, function (err) {
console.trace(err.message);
});;

};
 
1:45 PM
$scope.results = client
 
this shouldn't be. it's asynchrone.
 
@BenjaminGruenbaum conclusions from the room: So, from what you guys are saying; remove the numbers from my skills, add more 'formal' detail about the projects I worked on, and maybe tweak the title? -- and also I should go into my accomplishments and things that I did to help the company (in the employer/projects section)
I think these edits will help it a lot
 
`var hits = resp.hits.hits;`
should probably become
`$scope.results = resp.hits.hits;`
Amd knowing angular a little bit, maybe wrapping it in a $timeout could help for the binding.
 
@Neil I like how his lisp changes completely over the course of the joke
 
1:47 PM
 
TIL Jesus is Bill Cosby
 
@dievardump thank you so much, now i can iterate over objects right?
it works
 
@Sajeetharan yeah you should. I answerd your question
 
thanks bro
 
2:01 PM
@rlemon amazing
 
I don't think I'd ever buy one, but neat
 
yeah, keyboard is too useful for me
 
now, fold-able keyboard computer
I might buy that
 
oooh
totally would.
in some soft matter that would harden when doing something
 
@FlorianMargaine Uuuuuhhhhhhh....
 
2:08 PM
yeah.
we're talking about the future
not invented yet syn.. stuff
 
@SecondRikudo you still need a mouse though
 
@FlorianMargaine You need a mouse.
 
you need a keyboard then
no sale
 
I'll just use the on-screen keyboard, and click on the letters and symbols as required.
 
2:12 PM
or... use a touch screen
there you go, a tablet
 
All hail the compute stick. I want one.
 
All hail google glass, oh wait...
 
Does anybody know if it's possible to launch and fully control (disconnect, add USB, whatever) ICA sessions from Javascript?
If so, could you link me? My googling fails me :(
 
All hail can be damaging.
 
@Federer Browser JavaScript?
 
2:14 PM
@KendallFrey hurrrr
 
Yes, so I have a website, and a Citrix farm... I want my user to be able to click the resource they want to access and then do what they do... via the browser.
 
@Federer No, not possible.
The browser doesn't have access to the rest of the computer...
 
Node it up
 
@SecondRikudo it can
extensions are a helluva drug
 
@SecondRikudo so, ignoring what my website is for or why I wouldn't want to use the Citrix web portal they provide, I can]t kick off ICA sessions via a browser?
 
2:16 PM
showmypc.com and codebender.cc are two examples I know of
 
@rlemon Eh? Extensions can't access COM objects and the such...
 
@SecondRikudo yes they can
 
Okay, since I'm not 100% sure I won't continue arguing.
 
@SecondRikudo they can communicate with a native application
 
codebender programs your arduinos from a serial or usb port from the browser
all it requires is an extension to be installed
 
2:18 PM
@rlemon this way will be deprecated soon.
 
hrm, looks like they beefed up (or are doing so) the API's to mitigate the change
nice
 
Hm, a request to burn microsoft on the meta:
2
Q: Request to burn [microsoft]

dav_iThis is a popular request among web developers, however, I'm talking about the tag microsoft which has almost 3k questions. Its description is: DO NOT USE THIS TAG!!! This tag is too general to be useful. Use tags more relevant to the software or device you're targeting. Which I have to ag...

 
Why would Microsoft even be a tag?
It's like making "Walmart" a tag
 
People trying to tag powerpoint: [Microsoft Powerpoint]
Which becomes
And people that don't think :P
 
2:32 PM
 
@BartekBanachewicz Fixed
 
> powered by no.js
 
function isJavaScriptEnabled() {
    return true;
}
 
I remember that one
 
> ifComputerOn, returns true if computer is on. Unspecified otherwise.
 
2:38 PM
Sep 6 '14 at 0:27, by SomeKittens Ux2666
$.getScript('https://code.jquery.com/jquery-2.1.1.min.js');
 
mr5
o/
 
@mr5 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.
 
mr5
o.O is that an auto message for new comers?
 
yes
 
mr5
yay! I was about to be surprised for him being a fast writer =P
 
2:40 PM
erm, "him" ??
 
mr5
Is that a human?
 
0110111001101111
 
mr5
I mean the account
 
!!are you a boy or are you a girl?
 
@SecondRikudo are you a girl
:D
 
mr5
2:41 PM
The account was owned by human, I really mean
 
of course. the bot isn't that smart
 
Second Rikudo posted vgcats.com/super/images/080423.gif but it was moved to chat.stackoverflow.com/rooms/61037 because gifs get annoying fast.
 
lol
It wasn't even animated!
 
mr5
Ahm, what I really really mean is, the message sent for me was sent by a bot. Okay, you're a girl I think?
 
^ this is why just checking .gif isn't a good solution @rlemon
FIX IT!
 
mr5
2:43 PM
o.O somethings wrong
"I am a bot. Occasionally run by a person, but often just a bot. Don't abuse me and I won't abuse you."
 
I'll give you a hint
 
Spoilers :P
 
Testing question guys
 
To be fair, not all gifs are animated
 
Do you think that "violently" overriding an object property/method for the sake of mocking in a test a good thing to do?
For example, I have an API client, and I want to override the this.request object with a mock so that it doesn't actually send requests
 
2:47 PM
0
A: Check if function returns true to execute another function

IanYou just need to modify your first code snippet. return is a keyword, what you are trying to do is to execute it as a function. function check() { ....validation code return true; } You'll need to change your 2nd snippet slightly, to execute the function too however... The simplest way is to w...

IIFE to run a function if a statement is true
Good idea o.O
 
mr5
I went here just to express my idea...
I wonder why no one ever try to make jQuery as a separate language despite of it being as a sweet toppings above the ugly JavaScript
 
@mr5: Why?
 
mr5
You know, we can gain a lot more performance if it will be a separate language
 
So, browsers would have to support 2 different languages
Users would have to be extremely careful to specify what language is used
 
mr5
Someone can just make an engine for it and distribute it among browsers
 
2:50 PM
Yea right
 
We could get a lot more performance if we just trashed weird constructs from the language. Constructs that make JITing hard and annoying. That's a much better idea imho. :PP
 
@mr5 it only abstracts the DOM api's and then sprinkles in a few utils
it doesn't do anything to the language itself
 
Just expand on JS, instead of building something new
Like what's already happening
Besides, jQuery isn't that heavy
(In modern browsers / PC's)
 
it isn't heavy at all
 
Heavier than native, mostly, but insignificantly
 
2:52 PM
"heavier" are we talking overhead of execution or physical library size?
I had this discussion in the HTML room yesterday, jQuery is fast enough, and small enough. imo both are moot arguments against jQuery today
 
Well, a physical library vs no library is unfair :P
I mean overhead
Hence "Insignificantly"
 
yea, I agree with you, overhead is not worth mentioning in like 98% of the applications you would use jQuery
what do I care that my selector is only run 60K ops/sec vs 200K ops/sec
the client will not notice the difference
 
mr5
@Cerbrus Like what the Oracle did to the Java. It keeps sucking. They won't look backward and only upgrade what is in demand.
 
The human client, that is
 
^
 
2:55 PM
Java =/= JavaScript
 
JavaScript moving forward should be getting a lot better
 
mr5
I mean, they are just repeating what the Java has become.
 
Nope
 
mr5
"Oh look at those bugs, we can just polish that with this."
Instead of fixing it.
 
Examples?
 
2:58 PM
are we talking bugs in Java or bugs in JS?
 
I'm not sure :P That's why I'm asking for examples
 
because JS mistakes that are still around are (from my understanding) mostly still there because we can't design them out at this point
 
^
 
which is why future versions of JS have radically new syntax
 
like typeof null?
 
2:59 PM
Oh yea, that exists xD
 

« first day (1558 days earlier)      last day (3380 days later) »