« first day (2756 days earlier)      last day (2206 days later) » 

3:00 AM
If only we could use bs4 and python lol. I get that you are working on ux so this isn't really an option, but it's a much better tool for web scrapping which this, from what I grasp, is boiling down to.
 
@DavidKamer what ever does not trigger replacement on other numbers so i need to to be just the zip
 
@DavidKamer He's trying everything he can, but a regex is not the right solution
 
lol i need to be run by a chrome script
https://blog.lateral.io/2016/04/create-chrome-extension-modify-websites-html-css/
 
@FredMcgiff Do you have the correct xpath?
Maybe this will help you:
var iterator = document.evaluate('//span', document, null, XPathResult.ANY_TYPE, null );
var nodes = [];
try {
  var thisNode = iterator.iterateNext();

  while (thisNode) {
    nodes.push(thisNode);
    thisNode = iterator.iterateNext();
  }
} catch (e) {
  alert( 'Error: Document tree modified during iteration ' + e );
}

for (var i = 0; i < nodes.length; i++) {
  thisNode = nodes[i];
  console.log(thisNode);
  thisNode.innerHTML = 'PUT YOUR REPLACE HERE';
}
 
you the man so i would replace the zip there
and the replacement zip would go
 
3:02 AM
change the //span to the xpath
that you need
 
no alert is need push to log
or no pop up
so i would put ok could you post xpath i may freak out myslef if this close and spen all hour missing a bracket
//*[@id="chat"]/div[81]/a/div[1]/div[2]
there an xpath of chat icon . so that would go where span is like

var iterator = document.evaluate(//*[@id="chat"]/div[81]/a/div[1]/div[2] );
space between the 2] );
 
i'm not going to debug your xpath
put quotes around it at least
 
@david yolo
 
well thats a vaild xpath
 
user6086034
Anne Hathaway is so beautiful
 
3:08 AM
@boo yea she is.. is she on cam now
link please
jk
 
I'm more of a Rosey ODaniel guy myself
Or maybe hoda
!! Beatty White
 
@DavidKamer That didn't make much sense. Use the !!/help command to learn more.
 
Oops
!!urban Beatty White
 
@DavidKamer No definition found for Beatty White
 
What ever happened to Megan Fox?
 
3:22 AM
I think she blew up after her last botox
occupational hazard
 
user2620028
err... betty white?
 
no, beatty
rosey odaniel's friend
 
Spiderman
 
3:41 AM
is it bad to do settimeout 2 seconds to start a web app
i feel like my loading screen flashes so quick nobody gets to see the cool art i did for it
so im gonna make them wait for 2 seconds and look at it
 
ahaha
are you testing locally? because it might be fast for you but maybe once it's live it will be slower
 
yeh locally
thats a good point
i guess it will be a minimum 2 sec wait time now :D
do u remember that GO board game i made, the deadline was a couple of days ago for it. My dissertation ended up being 55 pages haha
 
user2620028
as a user, i would personally hate you for doing that to me
 
if you want to be extra fancy, make it cover the whole app and fade out over a second once it's loaded
and by using pointer-events: none or whatever that css rule is you can even make the page interactive while it fades out
 
user2620028
my room mate is a designer and has put wait times in his applications to show animations and loading gifs for no reason... if he goes missing i might have something to do with it
 
3:47 AM
@RachelDockter of course I remember :D how did it go?
 
aw D:
it was a pain to write
it ended up working perfectly tho with no known bugs or errors
so i should get a high grade for it
 
nice
 
user2620028
you are getting a cs doctorate?
 
Bsc
its like half cs and half game development
 
@david can't get it to work
 
user2620028
3:48 AM
you had to do a dissertation for a bachelors???
 
user2620028
wut
 
darn
 
only for my final year project
but yeh
 
user2620028
@RachelDockter dude sick, i am always interested in video game dev but don't ever have time / help to really do any projects lol
 
user2620028
do you have any game projects you are working on?
 
user2620028
3:50 AM
also congrats on graduating
 
current my main focus is a social media app im developing, its not really a game tho
 
@HatterisMad contracts also..
 
user2620028
oh god, you have gone to the dark side
 
thanks :D
 
user2620028
@FredMcgiff wait what
 
3:51 AM
i think its great i could be the next mark zuckleburg
 
user2620028
is that something to aspire for?
 
recently, probably not haha
 
@RachelDockter meant congrats for graduating my bad .
 
user2620028
i mean being infinitely wealthy seems nice... but the negative impact of social media on society seems like an incredibly immoral thing to help along
 
dw i know what u mean, thanks :D
 
user2620028
3:52 AM
@FredMcgiff oh lmfao, i was so confused
 
the main focus of my app is actually being irl social so i think its a positive
kinda like pokemon go
 
user2620028
that is..... probably better...
 
but i having all types of issues still cannot get get zip code and replaced via examples above
 
user2620028
@RachelDockter have you seen the relevant black mirror episode?
 
i never heard of black mirror
i dont watch much tv
 
user2620028
3:55 AM
it is a netflix exclusive series that covers lots of ethics and moral points surrounding our advancing technological age
 
oh really that sounds intresting
 
user2620028
usually is set in a near future as technology has taken a leap forward usually for the worse
 
i do agree, social media as a whole is bad, i dont have facebook or twitter or anything
 
user2620028
they are all seemingly bad for different reasons
 
there was one called yik yak, u might have heard of it, it really helped me in uni when i had no friends, its shut down now tho
real shame
 
user2620028
3:57 AM
facebook is a political echo chamber, instagram is a live time keeping up with the jonses, twitter allows idiots to have their own news platform
 
user2620028
i remember a room mate trolling people on that app
 
 but that would only trigger that other numbers or only hit my zip code
so i would add reg ex somewhere here
var str = "Mr Blue has a blue house and a blue car";
var res = str.replace(/blue/gi, "red");
 
thats so true haha
 
user2620028
@FredMcgiff is this a question? lol
 
this works but to selects everything neeed to just have xpath or add regx in here  var elements = document.getElementsByTagName('*');

for (var i = 0; i < elements.length; i++) {
    var element = elements[i];

    for (var j = 0; j < element.childNodes.length; j++) {
        var node = element.childNodes[j];

        if (node.nodeType === 3) {
            var text = node.nodeValue;
            var replacedText = text.replace(/[word or phrase to replace here]/gi, '[new word or phrase]');

            if (replacedText !== text) {
 
3:59 AM
wat
 
tried everyone snippet still can't seem to get it correctly
 
user2620028
@FredMcgiff what is the end goal, can you make a jsfiddle?
 
this is gonna content.js file that runs in the mainfest file
that in the in the folder next to manfest.jsonn
that i trying to get to find a zip code that need to be changed and a fax number for print to pdf on part severs
thousand of severs
pages of error that i need to fix
 
user2620028
you are searching the document for text nodes and try to replace them?
 
it does have xpath .. span class the zip is inside but anyway i can seleect the number and replace it
 
4:05 AM
@HatterisMad careful, talking to him leads to madness
 
user2620028
im starting to notice this
 
with corect number . number selection been hard i can't find any examples there allot of repace lower case to upppercase and so on i understand but
 
watching this is better than tv
 
user2620028
you don't get out much do you :/
 
i do computer sci, so not really lol
 
4:06 AM
alright then didn't know i was madd i just stuck in a project that i overthinking or there no solution yet
 
user2620028
i had to go outside to get food today :O
 
im sorry to hear that
 
user2620028
@fred the biggest problem here is that i would love to help you, but i am finding it quite difficult to communicate effectively with you
 
@HatterisMad random question, but why are so many web developers indian
 
I gave you code to replace any element that matched an xpath @FredMcgiff, why did that not work?
 
4:09 AM
https://stackoverflow.com/questions/5797661/replace-text-in-website-with-chrome-content-script-extension
but i need not text i need zip code
or number
and i can't figure that out
does this better explain my objective
 
user2620028
@RachelDockter i believe that is a cultural question truly. India has lots of people and their culture forces them to struggle for a better life in a very competitive way. STEM careers are a good way for them to move forward with their lives, be it to get out of India or to move up in a society that deems socioeconomics as the sole importance for living
 
but i need not text i need zip code
or number
and i can't figure that out
 
oh that makes sense, i thought indian was genrally a poor country so didnt know how there was so many lol
 
user2620028
@rachel if you wanted to know more on that topic, ask our resident expert @ShrekOverflow
 
oh is he indian
 
user2620028
4:11 AM
yes, and quite a good programmer
 
user2620028
hoping he becomes an american soon, JOIN THE DARK SIDE SHREK
 
top 8% i see
i am from the uk
currently 5am
 
user2620028
yeah india is quite a poor country, but they also have the highest population out of any country in the world, this leads to tons of middle class that are wealthy enough to get higher education and computers are cheap nowadays
 
user2620028
jesus... go to sleep
 
oh yeh
i will soon
 
4:18 AM
I think there are plenty of chinese developers too, they just stick to china and chinese
Indian developers flock to the US and other english speaking countries
or otherwise try to work in that environment
it's not just web either
you go to SV, swamped with Indians at a lot of companies
 
whats sv?
 
of course, the barrier to entry is lowest for web
silicon valley
and I'm not talking about Indian US nationals
 
oh i see
 
5:12 AM
Why is it that jquery css function works but addClass does not?
anybody
 
add class works fine
 
if addClass wasn't working i'm sure more people would be complaining about it
 
document.getElementById('id').addClass('class');
are u using it like that?
 
user2620028
why not just use document.getElementById('id').classList.add('class');
 
user6086034
@azamkhan show the code please
 
5:26 AM
poop
 
user6086034
at what age did you all start learning programming
 
11 or so
haven't learned much since
!!caprica
 
!!>no
 
@taco "ReferenceError: no is not defined"
 
5:32 AM
!!>28101..toString(36);
 
@taco "lol"
 
is there a proposal for a dom event listener called "rightclick" which aliases to "contextmenu"?
and then "rightmousedown" and "rightmouseup"
 
there is already mouseup and mousedown
you can get which button it was inside
 
oh, TIL
 
@RachelDockter No I am using it $("svg").addClass("someclass");
 
5:43 AM
@azamkhan dont u have to use #svg or .svg with jquery?
im not that familier with jquery so i might be wrong
if its an id, try adding # to the front
 
no
svg is an element
 
you adding by tag?
 
its working fine if I use css method but it is by no means working for the addClass
I am just testing and nothing works so now I am adding it to tag instead
 
@azamkhan it's working fine: jsfiddle.net/c3843yr4/1
using jquery
 
it might be ur class thats wrong, u can use inspect element to see if a class was actually added
 
5:45 AM
I am stuck @david and posting the code is very tedious..
have tried all that @RachelDockter
 
its something outside thats effecting it then
maybe other code preventing it?
 
yes... I get the svg elements and post it to console and they are all there .. when I add inline css with 'css' method it works.. but addClass and toggleClass is not working
 
have u tried using the javascript way?
might be worth a shot
instead of jquery
 
user6086034
@azamkhan just post the code.
 
yes.. that is working but I am not that good with pure javascript and now the issue is that I have to change the class based on the clicked element and I am not good to do that in javascript
 
5:49 AM
thats easy, u can refer to the clicked element as 'this'
document.getElementsByClassName('class').addEventListener('click', function(){ console.log(this); }
its up to u, but thats what i would do
 
1 message moved to Trash can
@azamkhan Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
Hi! Caprica
@CapricaSix
 
user6086034
@azamkhan she's a bot
 
really?
last time she talked to me like a real person... :D
 
ahahaha
 
5:52 AM
she was asking for a marriage dowry too...
 
user6086034
she passed the turing test
 
don't laugh at humans @RachelDockter
we are humble beings..
 
it makes me laugh when ppl talk to caprica six
i used to do it too before i was told its a bot
i need to get food brb
 
user6086034
@RachelDockter not everyone has friends
 
me being one of them
anyway brb
 
5:55 AM
okay.. we can be friends then
you have to pass human test... not sure @RachelDockter is a human or not
@boo I can't post the code it has sensitive content and editing is not easy
 
6:44 AM
im a human
i just ate subway
 
a human can't eat several tonnes of metal, gravel and concrete
sounds like an autonomous excavating robot to me
 
ahahaha
 
7:06 AM
@derp Someone ate an entire plane once
Why you'd do something like that I have no idea, but it's been done
 
omg, so someone did
 
What, you didn't believe me?
We're on the internet. When was the last time you saw someone lie on the internet? Seriously..
@RachelDockter Also, that laugh though.. sounds so fake
Definitely a robot
I could totally write a regular expression which predicts that laugh
 
hahahaha
i believe in "trust but verify"
which really translates to a google search nowadays
so if you have mad SEO skills, you could probalby get me to believe anything
 
reminds me of the old joke: how do you eat an elephant? One piece at a time..
 
7:13 AM
wrong...elephant sized smoothie maker
 
@Neil I imagine some pieces may be difficult to swallow
Like any bone the beast has
 
@Cerbrus I suppose you could reduce anything to small enough pieces, even bone
 
Cheat :P
 
Assuming you have a knife to cut off pieces of the elephant, you'd presumably have any other tool at your disposal for the bones
If we're asking how you could eat an elephant with no tools whatsoever, I'd have to say you're correct, sir
 
Unless you happen to be an elephant
I'm pretty sure they don't need tools. They are the tool.
 
7:16 AM
pretty sure that statement doesn't apply for non-human entities
That's a bit like saying eating somebody isn't cannibalism because it doesn't necessarily suggest the entity eating the somebody is human
 
7:29 AM
Well, strictly speaking, the entity doing the eating could be a tiger
Or an elephant.
 
anyone know how I can easily make mocha output the final pass/fail report output to stderr?
looks like it's stdout by default
 
@Mosho haha, what game is this referring to?
 
I'm not sure :P
does it matter?
USA vs Germany
 
nvm, found it :D
 
soccer, probably
 
7:37 AM
yeah, definitely football
well that is not good. now I need to find an updated one
 
At least somebody asked the right meta question:
251
Q: Is Stack Overflow really racist/sexist?

BohemianIn Jay Hanlon's recent "Not Welcoming" blog article, Jay claims in the first sentence that the community is unfriendly to women and people of color. I myself never look at who's posting, let alone try to divine their race or gender. Finding out someone's race is typically hard to do for new user...

This whole "the reason you don't support SO growth strategy is because you're racist" was sick. I am offended by this low demagogy.
 
7:54 AM
@DenysSéguret If Jay Hanlon writes that, it isn't for nothing. In other words, he's probably addressing hate mail on the subject is my guess
The absurd thing is that he is getting hate mail
Or whatever is the reason behind it
It seems clearly unjustified to me
I've seen very few sexist or racial remarks since I've been an active user, and everytime something like this has happened, it was handled by a moderator swiftly
 
It's a big leap from "not welcoming" to "sexist/racist".
Anecdata seems to suggest that the "not welcoming" thing is true. Isn't that alone something worth changing?
Does the "why?" really matter?
 
Well yeah, it's worth making the site seem welcoming
but if it isn't welcoming because of false claims of sexism and racism, I have to disagree
 
There are a lot of people who want free programming help, but don't like the way stackoverflow functions
i personally think that stackoverflow isn't the problem, it's people's expectations
but i'm interested to see how this plays out
 
I'd like to know what people would expect when they ask for help
 
if it makes the site function better than it doesn't really bother me why things change
 
7:58 AM
Good morning from Greece.
Christ is Risen.
 
"This question has been asked before, but let me just copy and paste that for you so you'll also have it here."
 
@ChrisP You make an entrance, don't you?
 
i think they expect good programmers to take time out of their day for free to help them with their personal issue...
 
But the answers already exist..
 

« first day (2756 days earlier)      last day (2206 days later) »