« first day (893 days earlier)      last day (4062 days later) » 

6:04 PM
getting dizzy.
 
@dievardump unonebox :P
 
0
Q: Open xml file with different extension using loadXMLDoc

Andy SelectI've got a file with an extension of .abc which is an XML file and I am processing the XML using XSL. I open an HTML page which loads the XML using loadXMLDoc like this: xml=loadXMLDoc("Example.xml"); xsl=loadXMLDoc("Example.xsl"); The problem is I need to open "Example.abc" not "Example.xm...

 
@BenjaminGruenbaum use killit :P
 
anyone feels like posting a proper answer containing a good implementation of that? old question but yuck, w3schools (and a horribly ugly function from that site)
 
1 message moved to Trash can
@ThiefMaster That answer seems OK, I think your comment is enough
 
6:09 PM
@ThiefMaster Why don't you do it ?
 
because i'll leave in about 2 minutes to the cinema
(and i'm lazy *hides*)
 
@ThiefMaster Maybe change the link to MDN, it is not plagiarism, it's 5 lines of code
 
I'm not leaving then I'll assume I'm too lazy here.
 
SO going slow for anyone else?
 
@Loktar not for me
 
6:15 PM
you guys read about this?
ttp://www.bbc.co.uk/news/technology-21954636
Im sure you have by now. Largest ddos in history
 
Hey guys, can anyone help me with a "pre-questioning matther on stackoverflow" ? :)
 
!!/google matther
 
@MostafaShahverdy what is it?
 
@BenjaminGruenbaum Party pooper.
 
6:16 PM
matter :D
sorry
 
okay i am better
 
@dievardump At least I'm not a slide pooper :P
 
but you wish you were
 
I am developing an extension for chrome here github.com/shahverdy/JS-Injector
 
6:17 PM
I'll give you a harlem Shake Pooper
 
I'll never be 13 again :/
 
You'll see!
 
otherwise you wouldn't obsess over it like a 12 year old girl and justin bieber
 
@MostafaShahverdy cool, like userscripts,
 
@BenjaminGruenbaum hey benjamin!
how are you!
you are here again!
 
I'm here a lot of time, I have this chat open when I do most stuff
 
I made a userscript that does very similar stuff without the pretty ui
> Produces a small input area for you to execute Javascript on the page. Saves scripts in LocalStorage and executes on page load.
 
well, I have a problem with my own
 
@rlemon I think what he is doing is something like tampermonkey
 
I want scripts run right before page loads
 
6:20 PM
@MostafaShahverdy ok, that's not a problem usually
@MostafaShahverdy It's an option in your manifest.json
 
but using localstorage make me use requests
 
      "run_at": "document_start",
 
now
yeah, I use that
 
localStorage makes you use requests?
care to elaborate ?
 
let me explain with codes ...
If I get "injects" from localStorage, then I have to use a "sendMessage"
right ?
 
6:23 PM
No, you can use a content-script directly, you don't have to pass messages
 
I use contents scripts
 
I'm guessing you're using a background page, iirc you can access localStorage from the page directly
 
@BenjaminGruenbaum but this would be the localstorage of the page's origin, no ?
 
but each has a localStorage for itself
so I HAVE to send massages
@dystroy that right
 
Hmmm, so you'd like persistent extension storage that would be synchronous
 
6:24 PM
@rlemon Or like me with you. And I can be more violent than a 12yo girl. Because... EYE FOOHKIN LOF YA
 
@MostafaShahverdy I'd like one.
 
@AmaanCheval HALP!
I FORGOT HOW NODE
 
@rlemon What's up?
Haha, what do you mean?
 
no srsly... node.js? simple question?
 
6:25 PM
oh yeah, a massage would be quite nice now
 
I can't remember if you node.js
 
I do a bit
 
I sometimes do if necessary...
 
@GNi33 I'm here.
 
docs are a PITA unless you know where to start
 
6:26 PM
@rlemon don't ask to ask, just ask
3
 
:D
 
I have very little. Florian will probably be more helpful
 
Mouhahahaha
 
but florian is like pro. I need someone to splain it to me like i'm 5
 
6:26 PM
@MostafaShahverdy Wouldn't it be more convenient to use developer.chrome.com/extensions/storage.html ?
 
hey
if I'm real pro I can explain to you like you're 5
otherwise I can't tell I'm pro.
 
lol
 
Not always.
You have to be pedagogically good for that
 
@dystroy That's the only option
 
@MostafaShahverdy From the page :
> Your extension's content scripts can directly access user data without the need for a background page
 
6:27 PM
if a dev can't communicate, I don't consider he's a good dev.
 
@dystroy Hmm, let me see
 
@MostafaShahverdy look at storage.sync
 
disclaimer : I never used this kind of storage in my extensions
 
var http = require('http');
var users = [];

function User(properties) {
	Object.extend(this, properties);
}

var server = http.createServer(function _server(req, res) {
	// all I want to do is send to the client (webpage) the number
	// of connected users
});
server.listen(7000);
 
@FlorianMargaine communicate and communicate with a 5yo is not the same thing.
That's why there is some SCRUM MASTER
To facilitate communication
Between devs and Product owners
 
6:28 PM
long vAxis lebels are showing dots in Google chart automatically
 
@rlemon That is AMAZING, U WRITE?
 
where do I start? a good tut or something? problem is right now I don't even know where to begin looking and the tuts i've found are all from 2010
 
@SupriyoJana Yeah! Exactly!
 
someone who know won't need those complicate word that neophyte don't understand to make his point. (S)He will use metaphor and comparison n' stuff ya know
 
@rlemon the server variable is the same for every user connected, right?
 
6:29 PM
@rlemon nodebeginner.org , I can walk you through it if you'd like
 
@BenjaminGruenbaum I RIGHT. U RIGHT?
 
is there any way to make that show entire lebel
is that possible ?
 
@rlemon you don't like books, right?
 
@FlorianMargaine is it?
 
@SupriyoJana No, it is a known bug.
 
6:29 PM
It is.
 
would be an ebook in that case
 
@GNi33 I prefer online resources - they are free and updateable.
 
Once it listens, it listens.
 
@rlemon read nodebeginner.org , srsly
 
@rlemon node is more like java/c# than like PHP. It's an application server; all the users go through the same process
 
6:30 PM
Ohh - I spent a few hours in searching
 
literally, the same PID
 
@SupriyoJana I'm kidding, of course it is possible, everything is possible if you just believe
 
@rlemon Just res.end(users.length, 'utf8'); I think?
 
so the server object is used by all the users connected
and so is your users array
 
@BenjaminGruenbaum if only my keyboard had a conscience everything would be... magic
 
6:30 PM
@AmaanCheval He isn't adding a user to the array, or removing it from the array on disconnect
 
@AmaanCheval hurr durr, how do I add and remove users from the array - i.e. how do I know a connection vs disconnect
 
@ben
 
@rlemon Dude. It's HTTP.
 
@BenjaminGruenbaum Oops, I assumed he just left those parts out
 
Stateless.
 
6:31 PM
@rlemon the callback on createServer is the connection-listener basically
 
ughughguhguhgug
 
@BenjaminGruenbaum how is that possible
 
if that one fires -> somebody is connected
 
@rlemon Read nodebeginner.org, it's clear and simple, it's a good headstart
 
can you please give me a clue
 
6:31 PM
@GNi33 but I tested that and I got two hits per connection and nothing on client disconnect
 
Why on Earth is there vanilla-JS AJAX functionality on a site that uses jQuery?
 
no... he's got another problem
@rlemon v
 
Curse you legacy cooooode!
 
The Hypertext Transfer Protocol (HTTP) is an application protocol for distributed, collaborative, hypermedia information systems. HTTP is the foundation of data communication for the World Wide Web. Hypertext is a multi-linear set of objects, building a network by using logical links (the so-called hyperlinks) between the nodes (e.g. text or words). HTTP is the protocol to exchange or transfer hypertext. The standards development of HTTP was coordinated by the Internet Engineering Task Force (IETF) and the World Wide Web Consortium (W3C), culminating in the publication of a series of Re...
 
6:32 PM
@SupriyoJana In order to believe in that, you first must believe in yourself. In order to succeed you must first succeed within
2
 
> Note that there may be multiple requests per connection (in the case of keep-alive connections).
 
read up on how this works :P
 
@rlemon you probably got two hit's on the connect because the browser automatically checked for the favicon
 
@AmaanCheval same TCP/IP connection, yeah
 
6:32 PM
And yeah, @GNi33 is likely correct there
 
but GL finding this out...
 
@BenjaminGruenbaum dude, I got it... the first three times you posted it.
Ill flag you for spam ;)
 
2
A: monitor connected clients using node.js

steweTry this: var http=require('http'); var connected_users={}; var server=http.createServer(function(req,res){ res.end('hi'); }); server.on('connection',function(socket){ socket.__fd=socket.fd; connected_users[socket.__fd]=socket.remoteAddress; console.log(connected_users); s...

 
and yeah this ^
 
see I was using .addEventListener and getting errors :/
 
6:33 PM
@rlemon Basically, you'll have to build your own router here
 
stupid tut from 2010
 
@rlemon Please google your questions before you ask them here.
 
@BenjaminGruenbaum cept I did, don't be a dick.
I wrote the rules I think I know them
 
@BenjaminGruenbaum :D
 
I love coffeescript: [a,b,c]=$[i-1..i+1];c?=z;
 
6:34 PM
@rlemon Don't be rude, the users of this chat are just trying to help you.
 
Node is pretty hard to find good resources on in general
 
I'm such a dick XD
 
:D
 
there is a nice website to find out information though
it starts with an s, ends with a w
 
6:34 PM
no, you posted the same link 4 times and didn't read when I sad "I'm reading tuts but they are all old and none of them are helping"
 
@rlemon Don't be sad :(
 
followed like 4 tutorials and all of them were dated and throwing errors
 
@BenjaminGruenbaum i came out with a better solution
 
@dystroy This seems to be a better solution ;)
 
6:35 PM
using "cookies"
 
That was fine like a month ago when I was trying to learn node
 
@AmaanCheval That's a great idea!
 
is better for hsi question
 
@rlemon personally i sometime use ebook to get a good base on a complex subject. It help get the basic more quickly.
 
@BenjaminGruenbaum bit confused as I am allowing google to render those lebel automatically, but do you think that we can sent those lebel to google to get them rendered on chart ?
is that possible ?
 
6:36 PM
@Darkyen not really a better idea :P
 
@FlorianMargaine No clue what this is.
 
@SupriyoJana I have no idea what you're talking about...
 
@BenjaminGruenbaum Yeah, what's a lebel?
 
@MostafaShahverdy Don't forget to come back make an announce when your extension is finished :)
 
announcement, bad frenchie
 
6:37 PM
@dystroy sure, of course
 
@FlorianMargaine desoled
 
@dystroy oh btw tommorrow and friday I'll be at Lyon
 
@FlorianMargaine Hum... free for lunch ?
 
around Part-Dieu
 
user image
2
 
6:38 PM
sure, if it's not too far away for you
 
@rlemon well, if you're interested just ping me, got a pdf date jan. 2013 lying around here. depends on how deep you wanna get into it
 
I'm at 5 mn of la Part Dieu
 
@BenjaminGruenbaum vAxis lebel, which are being rendered automatically along the y-axix, say for example 1000, 2000, 3000 and so on
 
heh, cool
gimme your phone
 
iExplorer
 
6:38 PM
I'm easy to recognize : I have a monkey on the back
 
now it makes sense why internet explorer suckks!
 
@FlorianMargaine You won't have an email capable engine ?
 
I will.
 
@GNi33 GIMME!
 
6:39 PM
@dystroy I'll be right here btw maps.google.com/…
 
@Darkyen Really like that!
 
tel number sent
 
got it
mail is more reliable than calling? really? :P
 
my friend owns blogsprite.com .... one reason not to sign up
 
@FlorianMargaine Le Gabion ? OK restaurant (I made a critic on tripadvisor)
 
6:40 PM
Yay, Florian has a date
 
@AmaanCheval y u happy ?
 
@Darkyen Hahaha, it looks pretty strange
 
it just makes me scared!
 
@Darkyen Just teasing
 
@dystroy lol
sure
 
6:41 PM
@AmaanCheval dont do.. it gives me bad imaginations
really bad ones
 
@dystroy I'll send you a mail when I'll be ready, dunno yet when the training will be over
 
@FlorianMargaine who said that?
 
@dievardump dystroy, over mail
 
aha
 
@Florian what day, about what hour ? It's the other side of la Part-Dieu, more like 15 minutes from home.
 
6:42 PM
@dystroy thursday or friday, you choose.
hour: can be from 12h15 to 13h45
 
Tomorrow is ok for me.
 
@dystroy question: is the restaurant often full?
 
@GNi33 I repeat, I want the PDF.
 
oh well
let's go for tomorrow
I never know: tomorrow or tommorrow?
 
I don't know if the restaurant is often full, it's not the best here. And if you live near the sea, you might be disappointed by the fish.
 
6:44 PM
@FlorianMargaine Tomorrow
 
@AmaanCheval e-mail address?
 
@dystroy I don't like fish, no worries :P
 
It's a fish restaurant...
 
@GNi33 amaan@whatthedude.com
 
6:45 PM
I think it'd be better to go somewhere else :D
 
okay, give me a sec
 
@FlorianMargaine no worry, we'll find somewhere to eat, it's Lyon...
 
yeah...
let's just meet up half ways and we'll sort it out?
 
THE HTML5 NYAN CAT SNAKE
 
Bing search engine ... where you end when you are lost or mistype your URL
 
6:47 PM
Play, or die.
 
@GNi33 yea i'll take that. My issues with the API docs is they are like reading the W3C spec to learn how to use JS for the web. it's way overwhelming and i would need to consume 40% of the docs just to start.
 
anybody has any idea why on this page -> goo.gl/lZ8aP there is chapter leadership but on this page there is not -> goo.gl/WZ31M
 
@Extelliqent why using a shortener?
 
This is like my 10th attempt at grasping node.js and it's fucking annoying when every doc or tutorial I read online does not work out of the box because node.js has changed.
 
@FlorianMargaine halfway, there's this one : maps.google.fr/…
 
6:47 PM
@rlemon mail?
 
@Happyninja link is so long
 
rob.lemon@gmail.com
 
Im gonna freak out
 
@Extelliqent i got a better trust in longer url than shorter one and this chat will deal with it so it doesn't look horrible and long
 
http://www.brightpink.org/i-am-high-risk/chapters/
http://www.internationalbeats.com/i-am-high-risk/chapters/
@Happyninja here you go :0
 
6:49 PM
@AmaanCheval @rlemon okay, sent you a link
 
The leadership bar is missing in the second one. and I cant figure out why
 
tell me when you got it...
 
@rlemon lets teach each other ;)
 
@dystroy looks good
 
@GNi33 10 seconds remaining
 
6:50 PM
@Extelliqent what do you mean by chapter leadership?
 
server is pretty fast
who do you host with
 
just a simple world4you - host
 
@Happyninja when you go to brightpink.org/i-am-high-risk/chapters you will see chapter leadership on the right pane
 
@Extelliqent it has a display:none
 
not much used though, i gotta freaking finish my page
 
6:51 PM
nice
classy
 
dude, that's my fucking name ;)
 
there is javascript code that suppose to populate chapter leaders based on which one is clicked
 
So I got my Nexus 4 yesterday, somebody give me suggestions on some first things I should do (its OEM unlocked, and rooted)
 
oh, you mean the page itself? :D
 
Evening people\
 
6:51 PM
@dievardump jquery suppose to take care of that.. Idk why it's not
 
> <div style="width: 800px; margin: 0 auto;>
@GNi33 tisk tisk tisk
 
@Extelliqent jQuery's not suppose to take care of anything. jQuery does what you tell it to do.
 
proudly made that pic with lememe
 
@dievardump here is the code
 
:8516143 i used that nick since i was about 11 or 12
 
6:52 PM
I don't use lememe... I use the guy who stole the code.
 
1 message moved to Trash can
 
@dievardump this code is taking care of that in the old website but the new one.
 
@GNi33 I wonder why that didn't ping me
 
function fillLeadership(name, positions, image, chapter_type) {
    leadershipContainer.empty();
    if (name) {

        if (chapter_type == "1") {
            chapterLeadershipTitle.html("CHAPTER LEADERSHIP");
        } else {
            chapterLeadershipTitle.html("ALLY LEADERSHIP");
        }

        for (var i = 0; i < name.length; i++) {
            var leader = jQuery('<div class="chapter-leader-item"><div class="chapter-leader-image" style="background:' + (image[i] ? ('url(' + image[i] + ')') : 'none') + '"> </div>' +
^ here is the code, not as ugly.
 
Maybe because I deleted it
 
6:53 PM
1px solid #dadada;
 
@rlemon thanks!
 
@AmaanCheval probably because you deleted your message, have you downloaded it?
 
i wonder if it was actually in design
or he just found it to sound good
 
@GNi33 Almost done
 
can anyone has any idea why longer vAxis label in Google chart is showing 3 dots at the end ?
 
6:53 PM
@GNi33 dude, did you even notice the error in the code from your site?
 
it seems like it's not even going into the query because name is not given
 
you don't close the wrappers style attribute
 
@rlemon Not as ugly as what? :P
 
really? :D
 
@GNi33 Done. Thanks!
 
6:54 PM
@PeeHaa the same code not indented ;)
 
Any of you implemented a mail opened tracker?
 
@rlemon Ah right :P
 
@rlemon haha, yeah. didn't take much care when i put my old page down
 
$("<div><p><strong>This is the worst possible <em>fucking</em> way to create DOM elements</strong>!</p></div>");
 
@rlemon That was what I was about to yell
:D
 
6:55 PM
:)
 
@dievardump - server side image image would do the tricks
 
@SupriyoJana That's what I was thinking of.
 
@dievardump a blank image
 
ah, i'm sick of templating now, better finish off some server-side tickets now to finally go home then
 
@rlemon K I'm home, wanna learn node?
 
6:58 PM
@rlemon Wait, you think this isn't ugly? Boy, do I have news for you.
 
you guys couldnt figure it out either.. it's though.
 
in 3 hours @BenjaminGruenbaum I will be all yours
 
Has anyone any idea on why longer vAxis label in google chart appends 3 dot ( . ) at the end?
 
h1 this is conteeeent
p
  span this is contennnnnnt
  span.toto this is conteeeent
  span[class:toto tutu tata,id:salmon] this is contennnnnnt
 
got tied up doing actual work :(
 
6:58 PM
Templating is awesome
 
@ShotgunNinja "not as ugly"
 
@BenjaminGruenbaum I do too! I'm guessing you're going to make rlemon do the Exercise you have in that Google Docs page?
 
Homework? pfft.. fuck that.
 
6:59 PM
@AmaanCheval no, that would take at least a few hours
 
I just got SSL working \o/
 

« first day (893 days earlier)      last day (4062 days later) »