« first day (2799 days earlier)      last day (2156 days later) » 

5:00 PM
Yeah, the camera they showed from the car made the area look darker than a lot of other cameras do
but cameras are also good at making dark places look not so dark
 
but that area is kind of a border between commercial and industrial areas, and it gets that way in some spots
 
I hit something once. Similar situation. Didn't see it until it was right there. Pulled over, couldn't find anything. I could have looked harder, though
I think it was a dog :/
 
oh no :(
 
I still feel guilty that I didn't find out what it was
I panicked and went home
@DavidKamer interesting avatar. What is it?
 
@Shmiddty it directed graph
it's a part of the study of graph theory
but it's also partly impossible lol
 
5:10 PM
how do you get to 6?
heh
 
and you have to go through 3 to get to 2
 
why was 4 afraid of 6? Because 6 8 5.
 
most people would start, and realize 1-2-3 is a loop
hehe
It also can't be worked backwards from what I remember
because you can't get to 4 without going through 6
and once you goto 5, you can't get back to 6
 
create new lines
 
this directed graph is how the real world works lol
 
5:14 PM
what's the dotted line
 
a shortcut
obv
 
Hi
 
just skip everything and back track to the first step lol
 
if you don't start at 6 then you can't get to 6
 
I think that was just because I had so many lines in the tool I used to make it, but it works well with the whole "work back from the end" aspect of it
exactly
 
5:15 PM
@forresthopkinsa that's the trick. ;)
 
amazing
 
there is also no 5...
I thought that 0 was a 5 but guess not lol
 
hahahaha
5 is on the other side of the paper
 
lol. it just goes to show that one thing that is giving out and not getting back will always f**k up the entire system
the same as something that is getting and not giving
 
!!giphy neat
 
Hey David, I could use a janitor, what's your rate?
 
I just subcontract to a company that owns a bunch of irobots lol
coin janitor looks pretty neat. I wonder if it will actually work...
I think it also tells people "some things just can't be solved" which is something I think is true if you have a strong conviction that there is only one right way to use a tool..
"even if a problem looks solvable, why didn't someone else solve it already? Are you that special?" lol
 
that's a quick way to limit progress hahahaha
 
He's half right.
Think of all the people in our industry that reinvent the wheel...badly.
 
the answer to the question, of course, is that you need to have something that the last guy didn't have
 
5:24 PM
Like pretty much everyone who is a PHP dev wrote their own "framework" at some point early on.
 
you bring something new to the equation
 
speaking of which, I just released my new library called jsQuery; it does all the things jQuery does, but it's better, because it's not jQuery
 
cool, can I get it as a jquery plugin
 
@forresthopkinsa when isn't limiting a good thing? I agree that we should try to make progress on rational goals in a rational way, but working within a system won't usually do that effectively. It will just serve the purpose of that system which is already inevitable in that system
 
What did you even just say?
 
5:26 PM
If people didn't completely reinvent the wheel enough in many variations, we wouldn't have gems like Java, Python, or even C for that matter and we would all be assembly experts
 
uhhhh what if the purpose of the system is making progress on rational goals
 
@Allenph the point of a system is predictability, so inventing a new system is the only way to do something truly unique
@forresthopkinsa is the system infinite or finite?
 
That's straight up not true.
 
@Allenph so calculus was dumb and we should have stuck with algebra because that system was fine alone?
 
That is not what I said at all. Nice strawman.
 
5:29 PM
I'm honestly not trolling here. If you feel like you would like to disagree, that's fine.
 
@DavidKamer we can all do without java and python...
 
@ndugger see, that was the real strawman lol
@Allenph how so? isn't that the basis of all computer science to some extent? Using math, the system of systems, to describe how systems work seems inevitable and very accurate
 
Revolutionary ideas are awesome. But saying that progress cannot be made without them is just not true.
 
@Allenph Sorry, I think you misunderstood me
 
I'm tempted to use jQuery conventions for a serious dev just for the luls
 
5:31 PM
You can make inevitable progress, but not unique progress..
 
We've been here before and we'll be here again
 
hey david, wanna be besties and get married?
 
@Shmiddty only for the insurance lol
 
damn. I was hoping for lots of buttsecks
 
5:34 PM
Should have asked me then.
 
giggity
 
> there is nothing new under the sun
 
wow, this went to debauchery quickly lol.
 
getComputedStyle(element).opacity is returning 0 while on the chrome dev tools it's showing 1 for the computed opacity :O
 
Sure you're selecting the right element?
 
5:36 PM
I just am now seeing that I'm not which is confusing haha
 
@forresthopkinsa ****little did forresthopkins know, but as he said this, an comet from what was technically above the sun passed slightly under the sun's Z axis for the first time, making his statement nearly instantly false but also previously true for .003234ms.****
 
nextElementSibling is selecting an element that is the child of the parent of the element
 
that's the trick @DavidKamer
the sun doesn't have a z axis
everything in the universe is under the sun
and, you know, conservation of mass, etc
 
@forresthopkinsa All hail rah! bringer of the nile tides!
 
I love the conversation of mass
 
5:38 PM
oh no
it's a good one
 
damn vim's esc key is the worst part of it
should be control i or something like that
 
remap it
 
remap your mind
 
Oh I'm an idiot here. Thanks for pointing me in the right direction @Allenph'
 
found they already have an alternative with ctrl [
 
5:45 PM
what's the difference between === and == in javascript type comparison?
 
that's why it's iMproved
 
I still wonder what kind of maniac uses emacs lol
I kind of want to use it, but it seems crazy complicated.
 
@towc as of yesterday
 
Guys so I just updated a style on master layout, and its not loading on page refresh unless i clean the history etc. So how do you push such change to your users, do you ask them to clean hisorty or can i code something in that will use my new style and not the old one from cookies etc. Since its a master layout change, the browser is using the old one.
 
6:14 PM
try programming blindfolded some time
 
sounds like the height of productivity
 
@KushalSethi have you tried websearching™️ that?
 
alta vista*
 
@BadgerCat how is life, my dear?
 
We're at the airport
 
6:17 PM
taking a trip to bermuda, bahama?
 
We're leaving Mexico and going to Costa Rica
For 3 months or so
 
wow that's quite the trip
 
@Shmiddty This reminds me of this guy who did all sorts of different drugs and painted a self portrait on each of them.
Wonder if someone has done that for programming.
 
@Allenph that was totally fake though
 
Oh really? Awww.
 
6:18 PM
yeah a couple of the portraits really give it away hahaha
don't remember which ones
would've been really cool though
 
> DXM - Feels like programming in: a really laggy terminal with a terrible connection
 
Rofl.
 
> Modafinil - Feels like programming in: SQL Stored Procedures
these are gold
 
@Shmiddty what's new in the koala life?
 
6:28 PM
@Shmiddty Come on pretty mama.
Key Largo, Montego...
 
hi any selenium developer?
 
@RAGHUNATH 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.
 
their github probably has a few
 
Any selenium developer?
 
a bit
what's the question
 
6:45 PM
having list have to click first item in list, it navigates to next page, then am clicking back, then i have to second item in list, showing stale exception...
 
any selenium developer?
 
you need to get the element a second time @RAGHUNATH
you can't hold onto element references between page navigations
I'm heading out. /afk
 
i can't get ur point..
@forresthopkinsa
 
1 message moved to Trash can
@RAGHUNATH Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
1 message moved to Trash can
@RAGHUNATH Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
i sent after clicking ctrl +k only
 
6:56 PM
Try without
if you already have 4 spaces, ctrl+k will remove them.
 
hi all
i need some help with this question
0
Q: Node.js Error: write EPIPE

Tapasweni PathakI have a code like const child = async (command, options, logger) => new Promise((resolve, reject) => { const start = Date.now(); const child = child_process .spawn(command, options) .on('error', (err) => reject(err)) .on('exit', (code, signal) => { const dura...

 
1 message moved to Trash can
@RAGHUNATH Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
List<WebElement> listItems = driver.findElements(By.xpath("//*[@id='hs_menu_wrapper_module_144649632555230793']/ul/li[6]/ul/li"));

for (WebElement item: listItems)
{
System.out.println(item.getText());
item.click();
driver.navigate().back();
action.moveToElement(driver.findElement(By.xpath("//*[text() = 'About MedHOK']")));
}
 
@KevinB Thanks a lot. How u did?
 
i use a browser extension for chrome that makes it easier
SO Dark Chat +
 
6:59 PM
@forresthopkinsa Are you there?
@KevinB This is my code
 
7:11 PM
hi
child.stdout.pipe(logger.stream());
i want to log a string before .pipe(logger.stream)
child.stderr.pipe(logger.stream());
also to .stderr
child.stdout.write('[xyz]');
only option for child.process in node8
 
that question seems familiar
 
do you have any option of doing this @KevinB
 
i have no idea
 
ok np
i'm quite stuck with this one from some time, getting no help anywhere :(
 
child.stdout.write('foo');
child.stdout.pipe(logger.stream());
You asked this already, and we told you this solution before
 
7:26 PM
thanks! i'm asking if there is any other option?
this makes the test break with EPIPE error
i checked if the pipe is closed, it isn't.
and i have child.stderr.pipe(logger.stream())
 
then fix your test
 
if I do a child.stderr.write(['xyz']) that doesn't work yeah?
 
you're trying to log an array; I'm not sure that works
 
thanks! this was helpful! do you have any debugging tips for EPIPE error?
array?
no, it is a string, just in square brackets.
 
not in the example you just wrote it isn't
 
7:31 PM
do you mean in this?
child.stdout.write('[xyz]');
ah i got it, child.stderr.write(['xyz']), sorry may be late night brain, my fault. i just want to log a string.
 
8:23 PM
@BadgerCat living in Vegas these days. It's entertaining
 
user9145305
Hey does anyone know how to append a % to a number input field
 
you don't want to do that
 
user9145305
I do
 
you think you do
but you don't
 
user9145305
well...I want to have a % in there lol
 
8:29 PM
you want to represent a number as a percentage, you don't want a percent sign in the input value
but hey, here's a very simple implementation where a % is added to the end of the value of a standard input (number inputs won't allow this): codepen.io/anon/pen/WyZJdg
 
8:49 PM
try this
type five % signs into the text field
then type 'a'
then click shift a few times
 
that just makes sticky keys pop up
 
hahahaha okay then push any other modifier key lol
very good point @KevinB , that's why cross-platform testing is important
it's all because of sticky keys
@RAGHUNATH your design is fundamentally flawed. You're navigating between pages and then still trying to use the original list of element references. Selenium doesn't work like that. The references in that list go stale as soon as you item.click(), which makes your foreach infeasible
 
1 message moved to Trash can
@forresthopkinsa 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
 
yeah it was an accident whatever
already deleted it anyway
instead, try something along the lines of:
By xpath = By.xpath("//*[@id='hs_menu_wrapper_module_144649632555230793']/ul/li[6]/ul/li");
int count = driver.findElements(xpath).size();

for (i = 0; i < count; i++) {
  WebElement item = driver.findElements(xpath).get(i);
  System.out.println(item.getText());
  item.click();
  driver.navigate().back();
  action.moveToElement(driver.findElement(By.xpath("//*[text() = 'About MedHOK']")));
}
@RAGHUNATH do you understand why I changed it the way I did? Do you get the difference?
 
9:24 PM
user image
2
 
hi
does anyone has any idea why would i get TypeError: child.stdout.write is not a function
i'm getting this in my test
where i'm console.log(logger.something.args[0]);
i searched on web and found my unanswered question SO
 
I have an idea
maybe child.stdout.write is not a function
 
@towc super salty
 
I'm not known for my sweetness
 
9:40 PM
@Shmiddty that has to be the worst code I've ever seen imho lol
lol id=num
I think best practice might be to use a number input, limit the number of digits and put a percent sign in html next to it.
OCD people like me want to just keep backspacing the % when it's empty lol
 
^
works better if you use .replace(/%/g, '')
 
@forresthopkinsa forresthopkinsa.com
Cool site.
 
lol I use it for webservices
should probably get around to replacing the default page nonetheless though
 
@Allenph I like the design lol, looks familiar though.
 
on the same server is zabdominguez.com
just a wordpress blog for a friend
I think that's the only public front-facing website running on that server rn
it's just an hp server sitting at home, I mostly use it for back-end services and development
 
9:57 PM
@DavidKamer :)
 
actually, it's pretty neat, I got around the problem of my ISP blocking port 80 by getting a free micro server from Google Cloud Platform and running a lightweight nginx reverse proxy docker service on it
 
are ISPs preventing people from hosting their own web servers?
I did not know this
 
oh yeah. the most prevalent ISP in Phoenix (Cox) blocks port 80
 
@forresthopkinsa I got around it by calling them and outsmarting the dudes working there.
 
I would assume that Comcast/Xfinity does the same
 
10:02 PM
They even opened up the mail ports for me.
 
really? no way, I never even tried that
 
It took like 3 days though.
 
dude I've been finding my own workarounds for like six years
three days, dammit
 
Also I would highly recommend logically isolating that thing from your home network.
I found some exposed stuff when I probed it.
 
yeah? neat, whaddya got
 
10:04 PM
here you go lol, this would actually work
 
Do you want to talk here or PGP me?
 
nah we can talk here, I'm at work and don't wanna set that up rn
and I'm not the most concerned with the security of that network, obviously
lol
 
For one I just got prompted for a password when I tried to SFTP in.
With root.
 
lol
 
into forresthopkinsa.com ?
 
10:06 PM
Mhm.
 
that's a google cloud server
 
RemoteRootAccess=disallow or something
 
that's just where the reverse proxy lives
 
PermitRootLogin no
 
but hey I'll give you a hint, the home server is exposed on the same domain, under a subdomain
 
10:07 PM
If you can get into the proxy server..
 
the proxy server doesn't have any authentication to the main
 
drop that ^^ in your .sshd config gile
 
alrighty @DavidKamer might as well
the home server is directly exposed to the web. It really isn't very secure at all. But that's not where it is.
 
it's possibly the only thing I would do nearly as soon as I have another account to login with, even before setting up keys
 
ssh.forresthopkinsa.com
 
10:09 PM
getting closer
 
you could probably leave it and be ok if you changed the port or even used fail2ban but both would still be less secure than disallowing it
 
uhhhh it doesn't actually have a correct password on that server though
the google server is inaccessible without keys
 
dev.forresthopkinsa.com
That's all I found in your DNS records.
 
there are more
the first IPv4 segment is 72
:P
ok I'll give it to you, say you somehow get into the google vps and you find out the main server URL, ok
it's sound.forresthopkinsa.com
now this one is the real house of straw right here
 
sound.forresthopkinsa.com
The first IP segment is not 72 its 70.
Damn you already told me.
 
10:15 PM
hahaha sorry
ehh no it's def 72
> PING sound.forresthopkinsa.com (72.195.201.196) 56(84) bytes of data
 
Weird. Is see it at 70.190.71.84
JK. DNS server.
 
oh lol
 
Regardless, also accepts root user.
 
yes it does
and this one has a password
 
Still bad. Rofl .
Don't see much on a port scan though.
 
10:21 PM
there are a few things on non-standard ports
actually I think I did disable the root password, never mind
can't get in that way
so both the google and the home servers have password prompts but there is no correct password for either
 
New weekend project.
 
hahahaha fun
 
Hack into your server! :D
 
I'm in
the access user is pretty predictable
 
Actually I think I might have you already.
One second.
 
10:24 PM
I'm on the edge of my seat
 
Rofl.
 
you in??
 
I might try a little bit. I've never attempted to hack anything before. Interesting game.
 
yeah it's fun
 
@Allenph just make sure there is a killer video montage that ends with you saying "I'm in"
 
10:29 PM
definitely
 
Can I use that 90s government anti-piracy commercial?
 
@Allenph it's definitely encouraged
 
> you wouldn't download a server
 
just download more ram bruh
 
I'm no pleb, I found some great ram on TPB and installed it on all my machines
 
10:33 PM
good, make sure you give it root/admin privileges. can't access the mainframe drivers otherwise
 
oh yes for sure
 
Hollywood hasn't been nearly as bad as they used to be
 
@forresthopkinsa Wow. I'm glad I spent the time trying to figure out what you were doing on your nonstandard ports instead of just like hitting them over http.
 
what'd you find?
 
A web interface.
 
10:42 PM
the folding? :P
 
Yeah. Awww. Look you're so nice.
 
yeah except I normally leave it off hahahahaha
 
You had it turned on when I got there.
 
yeah I noticed that, I thought you did that
lol I guess I forgot to turn it back off last time I restarted
are you getting weird styling refresh errors with it or is that just me
 
10:45 PM
is that a man or a woman
there are other things running on the apache server besides the default page
 
Your getting those refresh errors because I'm accessing it too.
At least I think.
 
hmmm weird
 
If by some off chance I get into this thing you're not going to be pissed right?
 
@forresthopkinsa boy I think
 
lol no not at all
as long as you don't rm -rf / or something
feel free to meddle :)
 
10:49 PM
No sudo rf -rf / --no-preserve-root?
 
preferably not
 
Rofl.
In my early days I actually did that once.
 
oh my gosh what
 
Yeah. I had no idea what I was doing and I had put something in root.
 
10:51 PM
It was on my server when I was like 10.
That's why I'm messed up. Because dad helped me build a server when I was 10. Rofl.
 
yeah when I was around that age I accidentally did sudo chmod -R 700 /
 
xD
 
11:37 PM
@DavidKamer I think you missed the point
!!afk home time
 

« first day (2799 days earlier)      last day (2156 days later) »