« first day (291 days earlier)      last day (4658 days later) » 

12:00 AM
never heard of it
what is this I don't even
 
i knew it..!
Angel was almost like a sequel to Buffy the vampire slayer
i dont know if it actually was but i would say that it was.. thats just how cool i am
 
it could almost make a good anime... maybe
 
:)
Trigun <- now thats a good anime
 
I just finished watching dragonball z (the abridged series)
 
@Lollero Yes! it is! :DDD
 
12:05 AM
o_O
 
lol... edit fail :P
 
im not even sure where im at with dragonball :D i mean i watched whole lot of episodes and never bothered to see if there was more cause ..they sure stretch the storyline like its some kind of freakish rubberband
 
hi, does anyone know how to pass a javascript var into a php block contained within the js? - stackoverflow.com/q/6918191/840973
(I'm using jquery)
 
you are going in the wrong way about this
 
@lollero that's why you watch the abridged series
 
12:08 AM
@teresko reallu?
*really
 
@david thats why i watch all kinds of other series :)
 
if you need to pass data from php to javascript , you place data withing the html
 
team sea slug!!!
 
if you need pass something from javascript to php , then you use XHR
 
12:10 AM
@AlexCoplan you seem to be misunderstanding the way php works. Your php block will run on the server before the page is sent to the client. The javascript will run once the page is loaded in the client's browser.
 
indeed. js is client side. php is server side. opposite sides
 
@teresko my problem is this I have a jquery event which is called when a user selects something in a dropdown, this then needs to set the text in my tinyMCE
@teresko and I get that text by including it's path (from an array of paths)
 
You can either preload all those text files and send them to the client, which will increase your initial payload size, or you can load them via ajax, which will introduce a delay when you make the request
 
@david @Joseph myanimelist.net/profile/sommu ( theres not all that ive watched here.. but a few )
which reminds me to learn php one of these days..
 
@AlexCoplan so what ?
use XHR
 
12:12 AM
@david are those the only two options? - this is basically for a CMS, in which the user can edit .txt files which appear to be 'rich' but are just being saved off as HTML
 
@Lollero If you're going to spend the time then there are probably better things you can learn than php
 
XHR?
 
@david raise money trees?
 
nah, like node.js and some kind of templating library
 
but php is my passion
starting from ..Now
 
12:14 AM
well, i guess if that's your thing then go for it. Just remember to use protection
 
well js is my passion starting from ..
 
i always use knee and wrist paddings
 
Deathnote... sweet... Haven't seen FMA Brotherhood @Lollero?
 
@Joseph i have, yea
 
oh I only saw FMA on there
 
12:17 AM
liked it a lot
yea, ive seen both though
 
@teresko - so I just make a request to another php page, which will load the file for me?
 
posted on August 03, 2011 by Thomas Fuchs

Ready? Here we go: 10. JavaScript is the new cool kid on the block. If blocks where made out of programming languages, that is. 9. You want to do something cooler with events then just watching select boxes changes. We might have one or two things to show you. 8. Homework that is actually fun. [...]

 
@Joseph just actually bought like.. 4... collection packs of anime.. uuhm... Hellsing was one of them
 
@Lollero nice! I've only seen the Brotherhood version of FMA btw :P been meaning to see the other one too
 
@Joseph wrong order. Shame on you.
@Joseph you wouldnt happen to know anything much like Death note but one that isnt Death note? that was really unique for me.. at least for the types of genres that i watch..
 
12:24 AM
@Lollero idk... another surreal one might be Baccano. That one was good.
 
been meaning to watch that..
for a long time now actually
 
It's very confusing at first but it progressively reveals itself
 
you seen Madlax? i was like "whats going on!?" for the first 12 episodes or something :P
 
no, haven't seen that one. Been kinda behind in watching anything recently. after college... that's when life starts :P
 
thats when anime starts.. thats all i heard
 
12:30 AM
lol
 
Just got a nodester key. Excited :)
 
nice
 
@Raynos I dont know what that is but its great that you got it.. now hand it over nice and slow..
 
it's a node.js hosting service
does some cool stuff like automatically updating when you push commits to git
 
and then BOOM! skynet!
im just waiting for the day
Well gotta go to bed.. Need to sleep at least some before i need to leave for work..
Cya
dont do anything i wouldnt do while im gone
 
12:36 AM
to match any console.*** line which stands after any kind of whitespace character
/(?<=\s+)console\..*\(.*\)/
that should be it ?
why there is no regex chat open and running :p
 
@jAndy try it :D
 
I can't really
 
bye @Lollero
 
@jAndy does . match brackets?
 
My personal favourite is "tell the intern to do it by hand"
 
12:38 AM
I'm doing that expression in an ANT script
 
@jAndy what if someone did this
 
because if so the .* will chew up the \(.*\) bit
 
hmm don't think so
 
var hax = "co" + "ns" + "ole";
var oh_yeah = top;
oh_yeah[hax]["l" + "o" + "g"]("owned");
 
but I'm not sure about the positive look-ahead
@Raynos: It's just to strip my debug messages out of my scripts before minifiying
 
12:39 AM
@jAndy basically you need a full js AST parser
> strip my debug messages out of my scripts before minifiying
Get a better minifier that does this for you
 
which one does that ?
 
also you will get excitement when there are nested brackets
 
@david: that regexp works perfectly fine. As I mentioned I'm just not sure about that look ahead for the whitespaces
 
you can probably also replace the crazy look ahead with a word break
 
@jAndy closure of course
 
12:42 AM
hi all does anyone know how to get the selected index of an html dropdown from a jquery change() event?
 
@Raynos: closure strips all kind of console. messages?
@Raynos: what about console.table or console.info
 
@jAndy \b
 
@jAndy dont know about table
Chrome doesn't have .table
 
@AlexCoplan: $('select').val();
 
12:43 AM
@jAndy cheers :)
 
@Raynos: I can't imagine closure will removed all possible console. propertys
 
@jAndy I lied
It doesnt do it out of the box
 
nah whatever, I'll just fire that expression into the ANT, we'll see what happens
.. drop all tables and remove all scripts permantly...
after that, remove all backups
then send drones which destroy any hardcopy backup
finally, murder jAndy
 
sounds like a plan
 
@jAndy whats table?
 
@jAndy sorry just tried it out that's getting me the string value of each one, I'm looking for the index?
 
$('option').index();
 
@AlexCoplan: oh, you could just call this.selectedIndex within a change-event handler for instance then
 
@jAndy will try now...
thanks
 
I guess the jQuery solution would look like
$(this).find('option:selected').index()
 
12:53 AM
@jAndy problem I'm having is that my event is getting called before it's actually changed the index, because when it brings up a test alert I've got in there, it pauses on the old selection in the dropdown
 
Thats hefty more code, but I think that is just more crossbrowser compatible
 
$(document).ready(function(){
$("#fileSelect").change(function(){
is what i'm doing
 
I didn't understand that.. you're just binding a change event handler in that snippet
 
well that seems to get called every time I change my dropdown
 
yay.. thats the expected behavior
 
12:55 AM
$(document).ready(function(){
$("#fileSelect").change(function(){
var index = $('#fileSelect').index();
alert(index);
changeText(index);
});
is the full code
and then the change function is an XHR
to update my textarea
 
that will return 0 all the time
 
(1 in my case :))
sorry I'm very new to jquery
 
ahh yay maybe 1 if there are more select elements
either index = this.selectedIndex;
 
the XHR works
because i hardcoded different indexes in
 
or index = $(this).find('option:selected').index();
 
12:57 AM
ok will try that now...
 
gosh I hate this chat for NOT allowing for CMD+C to copy text
who made this ?!?
 
@jAndy BOOM it works!
@j
@jAndy if I could give you rep i would :)
 
hah! :p
 
@jAndy and I agree about the cmd+c
 
@jAndy Ctrl+C works here :P
 
12:59 AM
summoning @NickCraver
go, tell the coder of this chat not to block native MacOS keycombos any more
 
I have to drag a text snippet to textedit then cmd+c from there
 
@jAndy again, really? do you doubt your powers so soon, young padawan, that you must try them again?
 
what can I say
¯\_(ツ)_/¯
 
you ought to be ashamed.
 
wow - I also found the first thing I don't like in codA
 
1:03 AM
¯\_(ツ)_/¯
-----|||
-----/ \
Had to do the dashes cuz it filtered the spaces
 
it doesn't show the full path of an opened file anywhere.. thats pretty bad if you're working with same file names in different folders right
 
I have no clue what codA is but yes, that sounds bad.
 
oh,... well you're young so I can forgive you
codA is the one and only, greatest IDE for macOS
 
@jAndy :) ...not having a Mac, i wouldn't know ;) ...but if/when I get one, I'll remember.
 
night of disappointments.. ANT does not support look-aheads syntax in regexp statements
baaahhh I get some sleep better
 
1:11 AM
hi guys
 
greets o.o/
 
macs are weird. took me ages to get the mouse feeling right
 
hi, sorry bout that I was just setting up a jsfiddle: jsfiddle.net/nK2y4/7
if you wouldn't mind, can someone help me with it. it pretty much works the way I want it, except for one thing. If you select a material the price updates. now if you selec from the material dropdown please select I get £Nan
is there anything I can do so that the default value from 222 loads again
 
.toFixed() eh? well shit
 
yep, anything wrong with it?
 
1:27 AM
nah it's just sweet and I didn't know about it
if you wanted to be super bogan about it you could do a if (isNaN(price)) check in there
 
oh lol, only found out myself today with a bit of googling
yeah i thought i'd have to do that, but hoped there was a nicer solution
 
1:43 AM
RT @ODevRel: Details for devs on what's new in Opera Next Snapshot 27th July edition: http://t.co/084VQZ1
RT @ChromiumDev: HTML5 a.download attribute now working in Chrome dev channel. Useful for named client-side resource downloads. http://g ...
RT @kangax: Adding (SVG-like) `path` command to canvas would be super-useful — http://goo.gl/I0LjS Easier SVG translation, more compact ...
 
2:11 AM
2
Q: how to cancel http request using javascript

loveshi have a page on which there an event handler attached to an onclick event. when the event fires it passes contents of a textbox to a GET request. since the url is not in the same domain so i create a script tag and and attach the url to its source like this elem.onclick=fire; function fire() ...

 
 
2 hours later…
3:59 AM
RT @mesh: Adobe Edge Preview 1 and jQuery : http://t.co/acolhy1
RT @devongovett: What’s New in Firebug 1.8: http://goo.gl/LcEWw
 
4:11 AM
RT @mozhacks: Make history with the August Dev Derby! Let's see what you can do with the History API: http://t.co/nJgeMXF #mdn #demos # ...
 
 
1 hour later…
5:24 AM
caniuse.com now provides info on browser support for use of the CSS “pointer events” property with HTML elements http://goo.gl/N5tqT
 
can anyone tell me why i am getting this error : Cannot use object of type stdClass as array Error
 
5:51 AM
0
Q: Insert a default date in textbox using jquery

adietan63How to insert default date in jquery when the page is loaded date format is ('YYYY-dd-mm)

 
 
3 hours later…
8:28 AM
RT @rik24d: Part of CSS 3D Transforms is currently landing in Firefox http://t.co/NiDVrRM Still a few patches to land but that looks clo ...
 
8:52 AM
@AjayPatel can you provide some context ?
 
9:36 AM
SQL Anyone?

SQL SERVER

This room is all about SQL SERVER and its issues
 
dt
9:47 AM
@Raynos what about SQL? I know SQL
 
10:35 AM
@Raynos Stalking me on Google+ :o
 
11:22 AM
I'm not allowed to use Google+
 
0
Q: Need help with javascript on specific effect

user385917As I am new to javascript: I would like to change onmouseover one div id with another div id. On mouse out everything would go back. I was looking and tried this online for several hours with no luck.

0
Q: Randomize letters in a word

TomalakAccording to some controversial story, the odrer of ltteres in a wrod deos not mttaer much for raednig, as lnog as the frist and lsat lteter macth with the orignial wrod. So, for fun, what would be the shortest function to randomize letter order in a word while keeping the first and the last let...

 
11:38 AM
@gsnedders yes. May I remind you, you are mr snedders. The Mr Snedders
 
@ChristopheCVB Hi
Any one help me how to use SOAP in JS
 
@Raynos Okay, make that, you're someone I've spoken to stalking me on Google+. :P
 
11:57 AM
hi all
can i get some help on here
0
A: how to refresh comoponents inside tab in extjs4?

KunalIf you want to refresh which is updated from database. DataStoreName.load(); Ext.getCmp('id').doLayout(); here id means the id of control which you want to refresh.

 
12:10 PM
@gsnedders oh, because I don't personally know, it's not cool?
I seem to be using g+ as an aggregator for people I value
 
@Raynos No, I mean, you're one of the few people who has me in a circle who I know at all.
 
oh.
Why are you so popular?
Is it because of the hair? I bet it is
 
@Raynos Because for some reason people have heard of me. And care about what I write. Even though it's scarcely about why they've heard of me.
 
@gsnedders your a popular man
 
12:29 PM
@Raynos I get all the boys and girls. :3
 
Meh, I still subscribe to the hair theory on his popularity
 
12:49 PM
How do I get the currentClickedNode from another DOM?
 
Hello, please how do I refresh the contents of a div? Withought refreshing the entire page?
 
@gsnedders that sounds a bit weird
Oh wait, you are a bit weird
 
Would I be a complete and utter evil person if I made a new gmail account and faked the DOB so i could get G+?
 
@ThomasShields Why fake your DOB?
 
@Greg since it's beta, they won't allow anyone under 18 to join. :-/
 
1:04 PM
@ThomasShields ah... I wouldn't know - they don't allow me to join at all because I pay them for Google Apps :|
(That old chestnut)
 
@Greg yeah I had that issue too, so I tried a different account I had which I guess for some reason had my birthday in it - no luck.
 
That's why I always increase my age when I'm registering into a site! So I can get the full features. I'm on G+. 17
 
@ThomasShields Or just claim you're Arieta Povsic, age 32, working as a lawyer. I mean, they can't tell any better.
 
@gsnedders HA lol.
I just made an @gmail address to go with my Google account though, no need to make another. I'll just wait 'till it comes out of beta, I guess.
anyone know when that is, btw?
 
It's not in beta. It's just limited availability. :P
 
1:09 PM
@gsnedders well - yeah, but beta is faster/easier to type.
 
nah - now I realize, my starred message is not really funny out of context
"this is not windowS ..this is Macintosh"
the guy was talking about the window object
 
ie.microsoft.com/testdrive/HTML5/PositionedFloats/… <-- super cool; only works in IE10 PP2 though AFAIK
 
Any one ever used soap in JS?
@jAndy Hay can you please help me regarding my question ?
 
@AjayPatel: I can try at least, otherwise I'll go for the ¯\_(ツ)_/¯
which is most likely the case, but lets see
 
1:24 PM
@ThomasShields Yeah, IE is the only think to impl that so far
 
@jAndy Thanks stackoverflow.com/questions/6926582/… regarding this
@jAndy I want to send multiple soap request
 
@gsnedders pretty awesome, eh? you think anyone else will implement it?
 
@AjayPatel: so the question is basically how to send multiple ajax requests at once?
 
@ThomasShields Everyone else will, almost certainly
 
@jAndy no soap request check in that link in that one solution is conformed, in that only one soap envelop is sent
 
1:27 PM
@gsnedders awesome.
 
i want to send multiple
soap envelop
@jAndy var symbol = "MSFT";
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("POST", "http://www.webservicex.net/stockquote.asmx?op=GetQuote",true);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState == 4) {
alert(xmlhttp.responseText);
// http://www.terracoder.com convert XML to JSON
var json = XMLObjectifier.xmlToJSON(xmlhttp.responseXML);
var result = json.Body[0].GetQuoteResponse[0].GetQuoteResult[0].Text;
// Result text is escaped XML string, convert string to XML object then convert to JSON object
@jAndy var xml with single envelop
 
@AjayPatel: I don't think I really understand the problem/question. might be because I never did anything with soap really
 
@jAndy if u nvr use soap its bit tricky for you
 
By the way thanks bro...
 
1:35 PM
better luck next time
 
@jAndy oh ya thanks
 
1:50 PM
Ooh, accidentally used the comma operator. That was an interesting bug.
 
@ThomasShields thats interesting
 
@Loktar yeah. It's not complete yet though; if you bring up a window to cover it completely it doesn't register as being not-visible.
 
2:11 PM
Oh good, we're talking about soap now? I have to deal with soap. And of course, the obligatory NDA =/.
 
Anyone know how to get the full path of a file in JS? The file is accessed via HTML5 file API
 
@Incognito SOAP :( y u no REST
@ThomasShields of course not
thats a security risk
 
@Raynos but you can read the entire file
How is reading the entire file not a risk but getting the full path is?
 
It exposes information about the system.
Also, vector for malicious code.
@ThomasShields Why do you need the path?
 
@ThomasShields because the file is content
the path exposes information about your file system
 
2:19 PM
@Incognito I was hoping to try to play local songs via html5 audio.
 
the html5 file api allows you to upload data
the users wants to upload data
it doesn't want to upload information about its own system
 
hmm... good point.
 
i need to figure out a way for that too... like how to convert mp3's to ogg
for my current game im working on
but allowing users to upload songs does that make you responsible?
 
@ThomasShields Do what this guy did. antimatter15.github.com/player/player.html
 
sort of how napster got hit waaay back
 
2:21 PM
@Loktar Lots of stuff makes you liable. We're not lawyers but just put up a disclaimer and say you'll make a reasonable effort to ensure copyright protection.
You're probably liable for a million things you haven't even thought of yet.
 
@Incognito and how did he do it? (I knew i wasn't the first to think of this.)
 
yeah, just sucks having to worry about that.
 
@ThomasShields It's on github.
 
@Incognito cool thnx. i'll checkit out.
 
2:36 PM
0
Q: Javascript: Replacing a for loop that iterates over an array with the functional programming equivalent

Austin YunPlayer.prototype.d2 = function(ratingList, rdList) { var tempSum = 0; for (var i = 0; i < ratingList.length; i++) { var tempE = this.e(ratingList[i], rdList[i]); tempSum += Math.pow(this.g(rdList[i]), 2) * tempE * (1 - tempE); } return 1 / Math.pow(q, 2) * tempS...

 
answer is : no
because you cannot do tail recursions in javascript
it is one of the major flaws in this language
 
@Incognito so basically he just guesses at the file path?
 
@teresko You will be able to in ES6, FWIW
 
@gsnedders: when will that be available in all majors ? :p
I hopefully can still see anything until that point !
 
@jAndy I'd hope no more than three/four years.
 
2:48 PM
wow this is amazing actually, Im going to use how he gets song info.
 
@gsnedders: I would be shocked, but I'd love it also if es5->6 only took 4 years to finish+implement
 
@jAndy tbh, I'd rather see the spec not published as finished until it was implemented, as otherwise you're basically doomed to need a .1 version, as you won't find everything wrong in the spec till it's implemented
@jAndy But I'm not privy to all that goes on in TC-39
 
hi
2
Q: how to cancel http request using javascript

loveshi have a page on which there an event handler attached to an onclick event. when the event fires it passes contents of a textbox to a GET request. since the url is not in the same domain so i create a script tag and and attach the url to its source like this elem.onclick=fire; function fire() ...

 
@gsnedders: well, also tbh I don't think ecmascript edition 6 will be available completely in all majors until 2018 - 2020
 
2:55 PM
it uses jQuery though @lovesh
 
just too much people/companys/organisations involved
 
@jAndy ES5 starts in August 2008, we more or less have everyone supporting it now.
Which is only thee years.
 
Anybody knows how to get Mouse positions into a div ? (or a div in an accordion in a tab space) ?
 
@Darkyen sure
 
the e.pageX - offestTop aint working for me
 
2:56 PM
@gsnedders: es5 started in aug 08 ? do I miss anything or is that just the "offical" date
 
** e.pageX - this.offsetLeft
 
@jAndy ES5 took a year and a half to spec, nothing more. ES4 wasted the best part of a decade, though.
 
u saw my link @lovesh ? its basically the bs t solution out there
 
this is cool; don't think it works for local files though. :(
 
brb
 
3:01 PM
@gsnedders: well, ok I might be confused because ES"4" never appeared, so actually its the jump from 3 to 5
which took a decade
 
@jAndy The time taken for ES4 isn't really relevant though, in terms of the time ES5 took.
 
@gsnedders: however, its still the same timeline
 
@Darkyen that is basically XMLHttp.abort() right?
 
@jAndy It's unlikely that such a long time will be spent on stuff that won't be quickly implemented again.
 
yes but its in jQyery
@lovesh jQuery is different from MooTools
 
3:04 PM
@gnsnedders: I think it again will strongly depend on Microsoft. If they fully follow W3C and the ECMA committee
if we're talking about 'all majors'
 
yes in my ques i m not using xhr and moreover document.body.removeChild(script); is stopping the request in google chrome but not in firefox. i wonder how its done in firefox
 
I got contacted for this even though I meet only 1/10 requirements.
 
@Raynos & @jAndy any solution in mind about lovesh's question ?
 
Good to know someone thinks I'm capable, though.
 
@lovesh u was using mootools for it right ?
if i remeber correct
 
3:08 PM
no just javascript
 
oh okay
what are u using to 'make' make the script ?
i mean document.createElement() ?
 
RT @dalmaer: JSON Pointer: I love a "spec" that fits on a couple of pages, and (especially if you take out the boiler plate) ... http:// ...
 
i said mootools has a function but later understood that it does the same thing as document.body.removeChild(script);
@Darkyen yes
 
okay (hmm)
try doing this is basically another way to to do it" save ur request in a variable and use variable reference to remove it " var a = document.body.appendChild(script);
and use a.parentNode.removeChild(a); .
 
doesnt work too already tried and moreover its doing the same thing. firefox is making me crazy...........
 
3:12 PM
lol
what error firefox generates btw ?
 
@jAndy if the es-transpiler works we can do it in 1 year.
 
@Darkyen it wont stop the request
 
@jAndy nope es6 in all major browsers 2014-2015
 
@Darkyen it wont stop the request
 
@lovesh it must be generating an error for not running a line
try reading console
 
3:14 PM
ok
 
Does assigning more then 1 similar events to a same element in jQuery affects its functionality ?
i am trying to do something like a drag , click and rightClick on a same anchor resulting in different results.
 
like click and dblclick?
no errors in firefox console tried a breakpoint after document.appendchild but the control does'nt go beyond that line weird........
in chrome it does
 
Hmm yes
lol
about my question
its giving me
drags when my rightclick ends
* i mean event after rightclick
 
i m not familiar with jquery
 
it takes like 30 - 50 minutes to understand it
bugs occur later x(
 
3:23 PM
the whole jquery?
 
noah the basic understanding
of how stuff is going to work
its like chess .. an hour to learn a lifetime to master ...
 
i m only familiar with its selectors look like css and xpath
 
i gtg
dinner
.
 
i m still wondering if i should learn jquery
or should i go for google's closure
 
only working demo i saw but it uses ajax
 
3:28 PM
familiar with closure library?
 
3:39 PM
jQuery would definitely be the best choice.
Just due to its popularity, and your marketability.
 
@Darkyen , demo111.* is a archive site .. i suspect it's at least 5 years old
 
3:57 PM
@Loktar jQuery is not the best choice
the DOM is
once you know the DOM use your abstraction library of choice
 

« first day (291 days earlier)      last day (4658 days later) »