« first day (2798 days earlier)      last day (2157 days later) » 

3:03 PM
@BartekBanachewicz you weren't Sr?!
Grats
 
@Loktar nope
 
damn, I mean that in a good way though, I just assumed.
But I suppose companies are different anyway, some just do it purely on years, others based on skill + years
I know a lot of "Sr." devs who still suck at the most basic tasks
 
Personally I think Italian is the best language
 
@Loktar yeah I never really pushed for it that much
 
I'm a "senior" dev and I suck
 
3:08 PM
I just had my title updated but I prefer my old one
 
@Loktar could be a result of work years
 
new one Software Architect
old one, Lead Software Engineer,
 
here it is pretty common to be a senior after 5 years work experience
 
Yeah that varies a bit too, some consider 8 sr
It's so arbitrary imo though
it should be merit + time based
I feel like almost every new job you should roll into it as a mid level and based on years of experience have an upgrade path in the firs 6 months or so to Sr
 
mine is lead Quality Assurance but that does not cover the work I am doing atm since my dept took over the company's CRM.
but i have plenty of v-cards with that position to give away ...
 
3:12 PM
You're QA?
 
yeah
 
Our QA's are just button pressers here (simplified their jobs greatly with that description)
no programming knowledge required
 
@Loktar why the title change?
 
Promotion/raise
 
also, title change = raise?
 
3:13 PM
@Loktar eh that is not really QA imho. Maybe that is why our dept is now appraised. We help with designing new projects, write test tools and review the code from developers
 
ah :)
congrats
 
thanks
makes me want to stay here longer now though
 
and now we maintain the CRM
 
which is good and bad I guess lol
 
congratz on promotion too
 
3:15 PM
gz, Bartek the Senior
still you have no power here
 
didn't know "senior" was a title
I thought it was just "engineer"
and "minion" for the new guys/interns
 
haha
 
senior engineer: "Sr. Eng"
 
we prefix them where I'm at with Jr., nothing, and Sr.
 
3:17 PM
I sometimes joke about it: "serious engineer?"
cos you have to be serious after 5 years of work
 
Why so Senior?
 
Señior Software Engineer
 
@TylerGabb Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
:sombrero:
 
user2620028
well boys, i just did a border run to mexico yesterday and got lasik eye surgery done :D
 
3:28 PM
less expensive in mexico?
 
user2620028
yes
 
user2620028
and much more likely to be competently done imo
 
user2620028
also the vision place in mexico is like 5 miles from my house tops lol
 
rofl
 
user2620028
either way, i can see way better now
 
3:29 PM
bless
 
@Boris Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
user2620028
the rains down in africa
 
Are you quoting Africa instea of 'I can see clearly now?'
Confused at your choice but, sstill a goood song
 
user1596138
@HatterisMad Lol where'd you hear that
 
user2620028
3:43 PM
@Jhawins lol i didn't just personal experience comparing healthcare in foreign countries to healthcare at home. could be completely wrong
 
user2620028
@jhawins but there is some truth about medical tourism for sure
 
user2620028
I think a lot of the difference being a, you always get what you paid for kind of thing
 
user2620028
and your money goes much further for you in countries where the dollar trades favorably
 
user2620028
@TylerGabb he said bless.... i can see clearly now doesnt have the word bless in the lyrics lol
 
hi all - sorry to break up the conversation but i wanted to ask someone smarter than myself.

i have a key in localStorage where i am storing all kinds of values. some of the values are stored value: "dod_XXX": { xblah:x, yblah:y, zblah: z}" - where _XXX in the value object is a guid.

and so i have a lot of values with "dod_3434343434" and "dod_898989898" etc

any ideas how you would approach this?
 
i am trying to remove only the values with "dod_XXX"
and keep the remainder values in that key
ideally i would just save these against a new key, and clear that key and be done
but i can't refactor this codebase just to make my life easier
 
@HatterisMad was it significantly cheaper?
When I talked to my eye doctor pretty sure they quoted me like $1500 per eye
 
user2620028
@Loktar got it done for $2k, in San Diego to get it done with comparable technology it would have been $5k min
 
I got it done for $400 and a sandwich in an alleyway here
 
@ndugger you went to Mexico as well?
 
3:52 PM
nope, just had some homeless guy do it
 
lol
@HatterisMad that's nuts dude, sounds like it went alright though at least
since you're typing and reading
 
user2620028
@Loktar yeah man it was pretty crazy, i could feel them cut the cornea and then watched them remove the cornea flaps, and then i could watch and smell the laser shape the eye, and then watch as they put the cornea flaps back, and as soon as they did that, i could see shit on the far wall lol
 
user2620028
i felt like i was in clockwork orange for a bit
 
damn, that's awesome
I want to get it done but paranoid
 
user2620028
as they were using the things to keep my eyes open
 
user2620028
3:54 PM
and periodically putting eyedrops in
 
hah
 
user2620028
@Loktar ping me in like a month or so, but im going to guess i will be just as satisfied about it then as i am now
 
user2620028
which is pretty fuckin happy
 
what do you have to do care wise?
 
user2620028
eye drops with topical antibiotics every 4 hours that i am awake
 
user2620028
3:56 PM
and then lasik will give you dry eye for a few months when healing i believe
 
user2620028
so i have lubricating eye drops that i can use every 2-4 hours
 
user2620028
and then at night i have to wear big pieces of plastic taped to my face so i don't rub my eyes in my sleep
 
user2620028
which honestly, i slept 14 hours last night with them on and didnt really notice they were there
 
user2620028
oh and i only have to do that when i sleep, for the first week
 
4:14 PM
@HatterisMad get an eye mask
 
user2620028
@Shmiddty this is quite literally a hard eye mask
 
user2620028
which is good cause i would still rub my eyes through a soft one lol
 
oh it's a special apparatus? I thought you were just putting tape on your eyes
 
user2620028
i.ytimg.com/vi/IYR-KEvgk-M/hqdefault.jpg . like this except i had both eyes done lol
 
freak
 
4:23 PM
safety goggles
 
there's something absolutely fascinating about being hurt in completely reversible ways
almost gives you comfort
it's like you're training against pain in safe environments
 
!!stat
 
@KevinB You (https://stackoverflow.com/users/400654/kevin-b) have 82700 reputation, earned 12 rep today, asked 7 questions, gave 2308 answers, for a q:a ratio of 7:2308.
avg. rep/post: 35.72. Badges: 11g 130s 152b
 
I like to think that I absolutely don't mind pain at this point, but only what comes after it
 
try ripping a toenail off
 
user2620028
4:27 PM
ugh lol
 
well, that's just pointless
 
it won't give you very much comfort
 
you are actually exposing yourself to other problems, other than pain
 
i mean... only if you don't treat it
 
user2620028
@KevinB you took the bait
 
4:28 PM
^
 
@HatterisMad I'M LONELY OK
stop pushing potential friends away
 
user2620028
@towc THEN JUST SAY HEY GUYS IM LONELY WHAT ARE YOU ALL UP TO
 
well, I don't really care what you're up to
 
user2620028
then that is why you are lonely
 
that was an interesting conversation
 
4:29 PM
I'M LONELY, PLEASE GIVE ME GF
 
!! 🍔 or 🌮
 
@KevinB 🌮
 
@ndugger when are you meeting the gb gal?
 
@ndugger That whole "give me" part might be part of the problem. xD
 
@Allenph he said please
 
4:30 PM
@towc next week
 
xD
 
@ndugger I can't wait that long. Move it closer
 
Why are you involved in my love life?
 
@ndugger I've been with my girlfriend for almost two years...I met her on Tinder.
 
user2620028
i met my ex on tinder and dated her for 4 years
 
user2620028
4:31 PM
still my ex though lol
 
Best friend and his wife met on there too. Definitely can work.
 
@ndugger if you pull it off, you're inspiration for me
@Allenph I don't think anybody here is saying that it can't
 
@HatterisMad Not saying you're going to find your soulmate on there...but it's definitely more than just hooking up if you want it to be.
 
pull what off? I've been on tons of dates with random women. Getting dates is easy.
 
@ndugger moving on
 
4:32 PM
Ah, yeah, I have moved on.
 
@towc I was just talking, not insinuating that ndugger can't get a date.
 
again, you say that, but...
 
There is no but; I burned that bridge
 
that doesn't mean you're able to "move forward"
 
forward is the only direction to move in
 
4:33 PM
maybe you'll keep thinking of her in the more intimate moments with the gb girl
 
lol, no
 
user2620028
@Allenph man i haven't even managed to do the hooking up part of tinder, i just ended up in a 4 year relationship lmfao
 
dat ur date?
 
user2620028
that thing needs to come with a safety warning ^^
 
4:35 PM
@HatterisMad You missed out. That part was very fun.
 
first hawins and ssube, then archer
 
user2620028
@Allenph im single and trying atm lol
 
The trick for me was just immediately deciding if they were going to be girlfriend material or a one night stand.
 
trying to stay single? Not a bad choice
@Allenph that's fairly douchy
 
user2620028
@Allenph yeah i think we all do that though right?
 
4:37 PM
That's life.
 
user2620028
@towc how so
 
user2620028
you decide what you want from them going in, and you be up front with them about what you want from them, so no feelings get hurt
 
@HatterisMad I'd think you'd decide if someone's gf material by spending more time with them
 
user2620028
@towc the ones that have dealbreakers that you know you won't want to compromise over get immediately tossed into the hookup category man
 
That whole "don't judge a book by its cover" thing is ridiculous. You literally must make judgement to survive and everyone does it. That's why you don't get in the car with creepy white van guy.
 
user2620028
4:38 PM
like they smoke, or they have kids, or you wouldn't be happy waking up to that ugly mug every morning
 
@HatterisMad I have a feeling a lot of people are going to get their feelings hurt like that
 
user2620028
@towc better than leading them on
 
user2620028
most people will be pretty ok with hearing the truth immediately
 
user2620028
its when you lie to them about your intentions that shit starts to get more serious
 
^
 
4:39 PM
then just don't lie
 
user2620028
IM NOT lol
 
and don't objectify
 
user2620028
WUT
 
user2620028
shit now i have taken the towc troll bait
 
the one night stand thing
I can't imagine you going up to someone saying "I want to fuck you tonight, is that ok with you" and it going well
 
4:40 PM
Just remember hatter, you're not allowed to decide whether or not your attracted to a girl based on her physical appearance because that's objectifying.
 
I mean, I'm sure some girls might enjoy that
 
user2620028
@Allenph don't you start too lol
 
When you catch yourself doing it just remember towc, who has never done it and is a perfect standard of morality.
 
user2620028
@towc people man, some people might enjoy that
 
if they're not gf or friend material, just tell them and get out
 
user2620028
4:41 PM
if an attractive lady comes up to me and says, hey lets go, but this is all i want from you...... depends on the situation, but i will likely be inclined to hear her out lol
 
don't hope for a one night stand
 
Do whatever you want as long as you're not lying about it.
 
@HatterisMad and you think women don't feel more threatened than men?
 
user2620028
you are acting like a child @towc, you are pretending that women are not humans and will not be doing the same things to guys
 
^
It's actually dehumanizing to women to suggest that they require special protection and particular behaviors. I think they're capable of like...deciding what they want for themselves.
 
4:43 PM
I am incapable of deciding that I do not want pizza when offered.
I am a pig in a man's body
 
user2620028
@Allenph careful with that kind of progressive thinking allen, we are in the 1800's still here
 
@hilli_micha Could be worse. I'm the same way but with vodka.
 
cyka blyat
 
go up to random women and ask them if they'd like to join you for a beer. Now get a female friend of yours do the same with men. It's not a bad thing, but it will show that there are big behavioural difference between today's men and women, and I'd think it's mostly because of the feeling threatened thing
you can't expect both sides to act the same way
 
News flash. Men and women are like...not the exact same thing.
 
4:47 PM
@Allenph which is what you seemed to disagree with
 
Nope. They're different, but both rational and self-steering beings capable of taking care of themselves.
 
and some actions that might make you feel well, are likely to make others feel uncomfortable
exactly because we're rational and self-steering
 
But that's indicative of humanity as a whole, not gender specific.
 
Exactly.
 
I mean if someone came up to me and offered free beer, I'd aggressively avoid eye contact and scream for an adult
 
user2620028
4:49 PM
@towc i mean.... if they are all attractive then its probably going to be a similar success rate lol
 
@HatterisMad I really doubt it
 
@hilli_micha Want a free pizza?
 
YES
 
user2620028
aaaaand checkmate
 
I don't care that I just ate lunch, I'll make room
 
4:50 PM
@hilli_micha send us your address. What's your favorite topping?
 
Ill just need your address and social security number.
 
All toppings and no, you're not getting my address, I don't want to have you at my door step asking to be my kid.
 
not yours
just archer's, badger's, lemon's, loktar's or kendall's
 
user2620028
thank god im not on that list
 
user2620028
@sterling would be a fun dad, although i feel like he would only ever feed you uncooked ramen, and would only pay attention to his tinder lady friends
 
user2620028
4:57 PM
great, i can now see well enough to see that the house i am living in is disgustingly dirty
 
I should make that my avatar
 
do
 
now we wait for it to update
 
5:19 PM
there
perfect
.
 
@rlemon we need your trolltoshop skills
 
!!mustachify ndugger
 
Ignore if this was posted already: twitch.tv/nasa
 
Can someone point to some good javascript learning resources
 
5:27 PM
git and sex are almost the same thing, both involve lots of pushing and pulling
and comitting
 
git has more committing
 
you're one of those eh
pull, no commit
 
As long as your master branch is protected, you can push and pull all night long
 
 
.
 
5:50 PM
<script>debugger;</script>
 
I everyone, i started to practice with javascript (i have medium knowledge of Java) and I have this html : <html>
<body>

<h2>What Can JavaScript Do?</h2>

<p id="demo">JavaScript can change HTML content.</p>


<button type="button" onclick=myFunction()>Click Me!</button>

<script>
function myFunction() {
var text = document.getElementById('demo').value;
if(text == "JavaScript can change HTML content.") {
document.getElementById('demo').innerHTML = "JavaScript can change HTML content.";
 
@Gabriel14 Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
I forgot the caprica command to tell someone about code formatting
 
but the if-else statement doesn't function : it execute everytime the else
 
.value isn't what you're looking for
hint: you're already using the correct field in your code, but you're using it as a mutator instead of an accessor
 
6:05 PM
@forresthopkinsa sorry? i'm a little noob :)
 
also, please format your code with ctrl-k in the future
 
it is formatted with ctrl-k
 
look around in your code. You're using the correct field of that element somewhere else, but you're using it to set it to a new value instead of getting the original value
c'mon you got this
@KevinB what? the code isn't formatted
 
oh ok i understand. I want to check the value of the demo object and based on its value I want to change the text
 
hello guys, I'm looking for help from soemone experienced with greasemonkey
 
6:09 PM
do we need greasemonkey experience to help you
 
the issue is my greasemonkey's script jquery part doesn't work, but when I paste it into console it works
the REAL ISSUE is some part of jquery in snippet works, like $(document).ready works but selectors doesn't
 
@forresthopkinsa what i should use instead of .value?
 
is it because elements don't exist?
 
they exist because I console.log them
 
when?
 
6:12 PM
I grab all mathcing elements into array and then console.log this array
and then I trigger $(element[i]).click() on each of them
 
how are you grabbing the elements, if you can't select them?
 
when I paste it into developers console it works, but doesn't in GM
 
@Gabriel14 alright fine it's .innerHTML
 
@forresthopkinsa ok, i'll try.
 
What is click supposed to do?
 
6:13 PM
can I paste code here?
 
.value is for the value attribute of certain elements, like text input fields
 
yes, if you format it with ctrl+k
 
1 message moved to Trash can
@stetoc Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
come on, he said right there
 
	var defenses = $('input[name="game[data][defence][]"]');
          var attacks = $('input[name="game[data][attack][]"]');
          console.log(defenses, attacks);
          for(var i = 0; i < 5; i++){
              $(defenses[possibilities[i]]).prev().click();
              $(attacks[possibilities[i*2]]).prev().click();
          }
structure of html looks like:

<div>
	<a>dosomething</a>
	<input type="checkbox" name="game[data][defence][]">
</div>
 
6:15 PM
Are you sure defenses[possibilities[i]] actually contains something?
 
yes because when I print it in greasemonkey script it lists array of 20 elements and they are valid
 
i tried with var text = document.getElementsById('demo').innerHTML; but it always executes else statement.
 
Are you sure it has a previous item?
And, what is clicking it supposed to accomplish?
in other words...
what exactly isn't working
 
$(item[i]).prev().click() just does nothing while executing from GM
 
what part of that does nothing?
the click? teh first selection? the .prev?
 
6:16 PM
previous element isn't getting clicked
 
which part of that line of code isn't working properly. Before you call .click, is the proper element selected?
 
    $(item[i]).prev()
is valid, but calling .click() on it doesn't do anything
 
what is it supposed to do
 
oh sorry i was wrong on the condition, now it works :)
what is the difference between value and innerHTML?
 
when you click the a sibling of input it's supposed to mark it on page as clicked
 
6:17 PM
....
Does it call a click handler bound somewhere?
 
no
I mean yes, 3rd party scripts handler
but not mine
 
right.
so... is that event handler bound at that point in time?
 
yes, because I even tried with setInterval delaying execution of it for like 10s
 
With the correct version of i?
 
any click executed from greasemonkey doesn't work on that page
 
6:19 PM
because if you put that in a setInterval i will be incremented before it gets called.
 
no, I wrapped my whole code into function
and it's getting executed 10s after $(document).ready gets triggered
 
something is missing still
because what you've described should work.
 
function x(){
	//click in loop etc
}

$(document).ready(function(){
	setInterval(x, 10000);
});
this is what I did and it still doesn't work when called from greasemonkey
page gets fully loaded after 800-1200ms
 
you've confirmed that the elements exist, that you're selecting them properly, that they have a previous element that is clickable, and that it works from the console, sounds implausable to me.
 
that's the point of whole issue
 
6:22 PM
we need more information
 
they get orinted correctly, because when I hover on console.log result in developer console it shows those <a> tags on html
I also tried adding debugging flags with console.log, they also print in loop, it looks like .click() does nothing
but I have no clue why
 
The only way click would do nothing is if there are no events for it to trigger, or if there are no elements for it to trigger on.
 
// ==UserScript==
// @name     Unnamed Script 342740
// @version  1
// @grant    none
// @match		 url
// @require code.jquery.com/jquery-3.3.1.min.js
// ==/UserScript==
function execute() {
    if ($('#buttonSomeoneElse').length != 0) {
        window.location.href = 'redirect back';
    } else {
        $('#buttonRandom').click();
        var defenses = $('input[name="game[data][defence][]"]');
        var attacks = $('input[name="game[data][attack][]"]');
        console.log(defenses, attacks);
that's whole code I use, any .click isn't getting triggered at all
 
where is possibilities defined?
 
I know that there is no possibilities array, I removed it because it was overcomplicating code, it also doesn't work without it
 
6:27 PM
k
still doesn't really change much
there's not much involved in triggering a click event. either the element doesn't exist, or the event isn't bound or isn't performing an action.
you've proven that your part of the equation works
at least verbally
 
I pasted it now in developer console, that's the result I got
20:30:29.295
Object { 0: input.dnone, 1: input.dnone, 2: input.dnone, 3: input.dnone, 4: input.dnone, 5: input.dnone, 6: input.dnone, 7: input.dnone, 8: input.dnone, 9: input.dnone, … }

Object { 0: input.dnone, 1: input.dnone, 2: input.dnone, 3: input.dnone, 4: input.dnone, 5: input.dnone, 6: input.dnone, 7: input.dnone, 8: input.dnone, 9: input.dnone, … }
aand it worked right
now testing exxactly same code in GM
20:32:39.857
Object { 0: input.dnone, 1: input.dnone, 2: input.dnone, 3: input.dnone, 4: input.dnone, 5: input.dnone, 6: input.dnone, 7: input.dnone, 8: input.dnone, 9: input.dnone, … }

Object { 0: input.dnone, 1: input.dnone, 2: input.dnone, 3: input.dnone, 4: input.dnone, 5: input.dnone, 6: input.dnone, 7: input.dnone, 8: input.dnone, 9: input.dnone, … }
Unnamed%20Script%20342740:509:9
exactly same output, now I replaced setTimeout with setInterval
function is getting called every 5s on page and prints this list every 5s
but nothing is being clicked
I asked for someone experienced with GM because maybe this has something to do with permissions or some hidden GM feature?
 
6:48 PM
-3
Q: When Javascript goes bad

Ian WarburtonHow on earth are both of these statements true? var v1 = ''; console.log(v1 == false); console.log(v1 == ''); Here's some more text to improve the quality of this question! Have a nice day folks!

 
or maybe there is other way of injecting my JS on page load?
what I want to achieve is kinda recurrence, I wanted to use GM for it, it should work like
 
i use robo gist
but that's chrome only
 
if there is button X then go to url else execute func
 
what page are you running this on
 
I either want to fill board with random values or confirm that I already played match and want to play new one
 
6:52 PM
You're running click on prev(), is that intentional
 
yes
or maybe I don't understand how prev works?
it selects previous sibling on same level of html from given element, right?
 
it gets the previous element in the dom
I believe so
 
<div>
	<a>
	<input>
</div>
for following code
$('input').prev().click():
 
Try logging what you're actually clicking
 
should click 'a' right?
 
6:54 PM
Are you expecting that to open a tab or anything
because I don't think click() will do that on an anchor
 
no, the 'a' element is there just for js purpose
 
try .prev()[0].click()
183
A: How can I simulate an anchor click via jquery?

StevanicusWhat worked for me was: $('a.mylink')[0].click()

 
yeah it works like a charm
lol
thanks, but here's another question: why does it work without [0] index in console and in GM it requires it?
 
what sort of magic is happening when requiring .hbs (handlebars template) with nodejs
as it seems require('../bla-bla.hbs') gives back compiled template out of the box, ready to be used
 
Nothing to do with greasemonkey
 
6:58 PM
probably a require hook
 
@KevinB i dont have any handlebars plugin/helper manually installer if you mean on that
 
I assume click() on a jquery object triggers click event handlers
whereas the native click() simulates a mouse click
 
How do you have handlebars hooked into your application
Surely you've got more than just a .hbs file hanging around
 
@ndugger please remove my face from your avatar.
 
7:03 PM
@KevinB i just have handlebars installed and required in a same module before requiring .hbs template
 
@SterlingArcher ok :(
 
yeah, there's going to be something that you're requireing that is adding a hook.
 
7:36 PM
can someone help me with firebase & react?
mainly firebase
 
i've been working in firebase a lot lately
 
firebase
who work in firebase?
i would like to join them
i tried to get hired in toptal and firebase
 
@KevinB Really?
I tried it when it first came out and I hated it.
It was always going down too.
 
7:54 PM
Firebase is cool
But I obviously preferred it when it wasn't owned by Google
 

« first day (2798 days earlier)      last day (2157 days later) »