« first day (3216 days earlier)      last day (1957 days later) » 

01:30
@OvieTrix The entire idea of the Tor network is anonymity. It is possible to be completely anonymous. And you can host anonymously as well as receive and make payments. HOWEVER, if you are not smart and make mistakes you can easily give yourself away. Simply resizing your browser window could give you away. For example:
329
Q: How can I connect to a Tor hidden service using cURL in PHP?

frostyI'm trying to connect to a Tor hidden service using the following PHP code: $url = 'http://jhiwjjlqpyawmpjx.onion/' $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_PROXY, "http://127.0.0.1:9050/"); curl_setopt($ch, ...

That above question was asked by the guy who created the Silk Road. He stupidity posted the Silk Road link in his question, connecting and dark site to an account on the surface web allowing law enforcement to track him.
Correction: The link was to The Hidden Wiki not Silk Road itself
@KevinB What makes this toilet different then all your others that it is worthy of a star?
01:56
hey there
 
2 hours later…
03:29
@JBis that's a classic
legendary even
 
3 hours later…
 
1 hour later…
08:09
sup kids
._.
:d
google flutter or react native?
I was expecting an autoreply from @CapricaSix at least
are you referring to the welcome message?
nah, she had an autoreply for react
 
1 hour later…
09:23
@taco if you can choose a solution from Google and a solution not from Google, typically the latter is gonna be better :P
Yeah, I hate that React Native is by Facebook, but they'd embrace my app a bit more than Google I think
@taco React has already kinda loose ties with facebook at thsi point
After they've released React on MIT it kinda settled the score
Well facebook ties into instagram..... long story... no point in telling yet
Facebook owns Instagram
yeah.... thats why i'm leaning towards react native.....
09:29
not really sure what other ties do matter here
ok, thanks though
:)
also isn't Flutter exposed in some weird languages like Dart and C++
yeah
Dart for autoreloads and it lets you update older apps with the c++ support
I have a long journey either way
09:44
gnight
@badrijani 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.
*girly voice* hiii Bartek
 
1 hour later…
11:07
@OvieTrix the reason why it appears "anonymous" is the legal protection that hangs around it. When an investigation is conduction, it stops at the border of the country you operate in.
 
1 hour later…
12:19
hey
hey miau
I have this react app that waits for a callback event from a global window object when a link within the container is changed. But for some reason its not receiving the callback the first time I click a link..only the second
based on the value coming from this event..I render a certain view
if that makes any sense..possibly
actually it doesn't I'll make a gist
seems interesting and awesome on first hand but I am still holding a grain of salt
chip is just quantum entangled with a young factory worker.
cheaper AI
From a React lifecycle perspective..is this correct?
componentDidMount should be called before render?
because when I'm debugging on the first render.. render() is called first then componentDidMount()
12:35
@rlemon it has an article in The Nature
so
you're fun
don't ever stop being fun
k?
is that a message for me?
yes
a Canadian Sorryâ„¢ then
hi every one . I need a solution for my question. how can we be able to use fancybox in images inside a label. Label> img is there any solution?
12:42
@AliQorbani 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.
so you want the label trigger to open the lightbox?
exactly i need label or img to open lightbox
so, assuming you've already tried to just wrap the lightbox image in a label and that doesn't work
attach a click event and trigger the lightbox manually
the api docs explain how
13:15
hey
so didn't figure this out yet..I have a conditional render based on some state being set from a callback
when I debug the correct condition for the selectedRoute in getVew() is being hit, but it doesn't return the view just renders null
a gist for reference ^
any ideas why the correct span isn't returned and rendered?
13:36
which version is better
meaning faster
module.exports = (req, res, next) => {
  req.obj = {
    write: (payload, maxAge) => {

    },
    destroy: () => {

    }
  };
  next();
};
or
function Handler(req, res) {
  this.write = (payload, maxAge) => {

  };
  this.destroy = () => {

  };
}

module.exports = (req, res, next) => {
  req.obj = new Handler(req, res);
  next();
};
moot
there is no significant difference there for performance impacts
the decision to use one vs the other has no performance implications.
so the question is moot
if you still want to ask the question tho.. the question is "create a single instance vs object literal"
but in a module like that there is no real difference
thank you very much
I never knowif the fact that having Handler defined above
process.env.DB_NAME

where is this variable saved? I thought it will be given over the cmd as --DB_NAME=bla
but since I just do
node server.js
I don't pass any variables
13:41
and thus already in memory has some kind of advantage
but it magicly gets the variable
so where is this process.env.DB_NAME saved?
even though we are instantiating it everytime anyway
modules are cached.
you instantiate it once during the life of your program
THANK YOU
@rlemon how can I delete the cache? - what do you mean with "modules"?
hehe ok.. I can just delete the whole dist folder... yeah thx hehe
wasn't talking to you bro
learn to read context
13:51
hahahahha but wtf it solved my problem
because you probably have a config that sets the env vars
like dotenv or something
maybe there is ... one sentence.. the sentence!!! which solves EVERY problem?
"delete the cache"
yes I have dotenv
so then there is a file that sets them
probably called .env
but the dotenv object which I use has this.
aha
aaaha
hahahaha "modules are cached"

hahahha
oh god.. why am I so dumb
now, why I was saying that to the other guy is because when you export an instance of an object, it is cached. so each time that module is requested throughout the application, it's the same object. not a new object created when the module was called
so module.exports = new Foo() will always return the same instance of Foo
14:10
@rlemon yes but it if is a function that gets executed for every request and that function is creating a literal object or instantiating an object, that object gets created every time
and I was wondering if having the function definition of the object outside that fuction that gets called for every request, has any benefit vs having the literal inside
the exported function
handling requests
@Aurelius no it doesn't
thank you
if you had a file that does module.exports = { value: 1 } and in another module you import it and change value to 2, in all other modules that you import that it'll be 2
because it doesn't re-create anything
that export is cached for future use
i know it is a generell question, but how you guys handle async stuff in your app.js that is loaded on startup? I need an object from aws (s3.getObject()). This object is used to init a libary. Is there anything i can read or you can tell me. Currently stuck in async hell
14:18
is the only option to put my startup code in an async function?
async function main/setup/init/whatever() {
 ...
}

main().then( () => console.log( 'app started' ) );
or grab a top level await package
they're (tmk) toying with adding top level awaits to node
so it won't be a huge change
ah okay. Thank you!
stage 3
so maybe just grab a lib to fill that for now?
i will consider your informations
@rlemon thanks, too kind
14:23
alert('Hello');
we don't use alert anymore
chat is safe
go back to 2001
i tested it
against xss
yw
chasing those bounties
#whitehat
14:42
Yop guys
Any idea if it is possible to draw a huge things on canvas and then resize it to fit a proper width
I'm trying to take a picture from my webcam and draw it
Like this.context.drawImage(this.player, 0, 0, this.player.videoWidth, this.player.videoHeight);
How can I blur a formControl focus dynamically in TS?
  blur(): void {
    this.formGroup.controls['url'].
  }
@BaldrĂ¡ni huh?
you can't resize after you draw.
but you can during the draw
15:37
TS for what?
angular?
react?
because typescript doesn't have much to do with that... other than, you know, types
15:55
@KevinB angular 8. Using Renderer2 I came up with:
this.renderer.selectRootElement('#input').blur();
I'm not familiar with those methods, but based on what they're named, that sounds about right
which I kinda don't like cause it forced me wot put an id on my element.
        <input
          id="input"
          type="url"
          class="url-input"
          formControlName="url"
          placeholder="{{ 'content.webpage.urlInputPlaceholder' | translate }}"
          (blur)="submit()"
        />
Are you doing this based on an event of the input?
because if you are, you can use $event to get the input
No, keydown.enter
<form [formGroup]="formGroup" (keydown.enter)="blur()">
15:58
I am being told not to pass $event around, it is too heavy.
i wouldn't know, not much experience with angular as of late
what are you in @KevinB?
I want to learn a bunch of everything right now, python, view, etc
*Vue
coldfusion is what i spend most of my time working with, but when not backend, i prefer vanilla and react
cool
i kinda need something though that doesn't take so much control of the page.
16:02
I feel that way too on my own projects. But since my bread and butter comes from the man.. I gotta do the needful :P
I wonder if react can work well for "widgets", like say if a page has a slider, or a product image zooming thing, etc, while still allowing me to control the rest of the page and routing with the backend
is ColdFusion still being released?
kinda, but i'm using an open source variant that's being kept up to date
lucee
The official version from adobe mostly just receives security updates
and hooks for their other products
 
2 hours later…
I'm excited to see how low that question goes
lol
I'm just really frustrated about it today; coming into a new codebase and seeing how fucking mashed together it all is. Completely unreadable
I don't understand why it's seemingly so difficult to get people to give a crap
They're not bad people, they're just ignorant
Pretty sure developers are paid plenty
Not that I'd refuse even more money
But you sure do get paid enough to give a crap
18:05
It's absolutely inevitable that this problem will arise if you hire junior developers without close oversight by someone more experienced
Bruh, the mentioned issues are being generated by senior developers; Junior devs just follow the rules laid down
Well, they try to at least lol
well some of those things I don't think are objectively wrong
80-char line limits are totally unnecessary but they shouldn't be a big deal
consistency is key
The problem is all of the rules together create this really long unreadable string of lines that makes you really scratch your head
You shouldn't have to decipher the code to be able to understand it
I don't even think that extra blank space is allowed before the if statement in there
if I ran the prettifier, it would remove it
Because fuck readability, apparently
that's a weird prettier rule then
Well yeah, that's my point entirely
18:10
honestly I don't think most of that is so bad, I can look at it and understand what's going on really quickly
Intentionally enforcing unreadable mashed-together slop
talking about readability, has no semicolons
you're the worst.
is that the awful code you're complaining about?
Bro, they enforce no semicolons too
Which is also my point
THE WORST
18:10
I agree
I want to brain myself with a hammer today
do they also enforce comma-first?
no semi-colons enforced, is BS imo. but otherwise that code seems mostly fine
they're enforcing trailing commas
find new work
trailing commas are fine
18:11
which is ok, but dumb, imo
enforcing them is stupid. write proper code
100% agree
few dumb techniques in use, like inline conditionals
> lets enforce rules for the lazy
but meh
18:11
this isn't spaghetti code
@KevinB it's not the best example, because you might do that to destructuring anyways, and listing the props all on one line
i've seen far worse
but the adronment section illustrates the point effectively
and no spaces between methods
mashing it all together
the massive const at the top is awful
I don't think that destructure is bad
18:13
all to save a tiny bit of typing
did it even save?
I do think the adornment object having JSX in the object is kind of weird but I don't think that's a styling issue
That line could be way more readable if it wasn't split up so aggressively
Most of those variables are only used once
Our files are super long because of how aggressive the enforcement is of things that I disagree with entirely
ah yes you're right on that
@ndugger then change the prettier rules
18:15
Ok, it's not that simple, and you should know that
and then go fix every file to match the new rules
it's easy
copy paste
@KevinB npx prettier --write *.js
but yea I'm being sarcastic
simple != easy; there's red tape when it comes to things like this
18:16
right right
I know you can't just reformat the entire codebase
you still at that red circle place?
We'll see for how much longer
at this point
I'm probably just having a bad day
I should have known that they'd have weird prettier rules
The project I owned wasn't this awful
I'll think about that next time I'm in a store
what are these React projects even for? the website?
18:17
I don't work on the .com
Fuck that
Their website is pretty ugly
it is indeed
whoa on the homepage there's a section called "Based on your recent browsing" that is showing me stuff I was searching for on OfferUp lately
I'm not surprised that they have the data, I'm surprised that they present it so boldly
That's probably thanks to ad data
18:20
for once not directly in response to something this room did, however it's still a decent notice for all RO's and users
12
Q: Chat moderation: don't threaten, just do

Shog9Once again, there's a small hullabaloo in chat started by someone threatening someone else with... Moderation. That doesn't work very well. As a general rule, folks don't like threats. So if someone's already upset / angry / disruptive... Threatening them isn't likely to make them less upset / ...

If you moderate me, I'm gonna write a post about it on twitter calling you all bigots
tl;dr stop warning people - just kick them. warnings do nothing.
@ndugger problem with that is on your social media they have context to who you are
so it'll be dismissed just as fast
But everyone knows how upstanding of an e-citizen I am
@rlemon that line needs a semicolon, not a comma
I'm trying to win an argument over using bible verses to make a point on stackoverflow
in the comments there
The bible verse I pulled out is pretty dank
18:29
lmao
> Deuteronomy 23:1
No one whose testicles are crushed or whose male organ is cut off shall enter the assembly of the Lord.
> Ezekiel 16:17
You also took the fine jewelry I gave you, the jewelry made of my gold and silver, and you made for yourself male idols and engaged in prostitution with them.
Bro, they made solid gold dildos in the bible
user8729657
Lol
user8729657
I'm really concerned about government regulating the internet, are they trying to regulate the information that we're sharing with one another or something else?
are you taking in regards to NN?
which government?
18:43
he's Canadian
so ours I imagine
user8729657
I don't understand what they mean by regulating the internet though
in regards to what?
net neutrality?
user8729657
Are they trying to make it so information is not available to public?
okay.. last time. in regards to what?
what are you referencing here?
user8729657
Like articles, DIY things
user8729657
18:45
Like knowledge
sigh
what regulations are you talking about? something sparked this thought process. what was it
like, blocking people finding plans to 3dprint weapons?
but they're not blocking you finding them. they're blocking others distributing them
small difference.
user8729657
18:47
I see news articles like these saying they want to regulate the internet, so I'm in fear because the internet is where I learn important things and I'm wondering can that be taken from me one day.
i mean
anything is "possible"
the question is would anything like that ever happen there?
The government already knows every site you go to, where you live, who you talk to, etc. Nothing new here.
here in the states... there's quite a few things standing in the way of that kind of government control. i'm not familiar with canada
also, that article seems to be focused on the fact that hate speech and calls for violence need to be removed from platforms and dealt with lawfully. however it does note that it could give companies more strict control over policing content
which, afaik, they already have
user8729657
:o
18:49
Google and friends already censor the internet
prove it
@OvieTrix it isn't a bad thing. SO censors content. google sensors content. fb sensors content
everyone does
oh shit, burden of proof
uhhh
make me
how'bout all the kiddy porn they strip daily
they are for sure policing content
and for good reasons. they don't want to leave illegal things on their platform
user8729657
I'm starting to understand more about what it means to regulate the internet @rlemon thanks!
18:51
Not that Tulsi Gabbard is right (she's a great candidate, but not the brightest when it comes to technology), but she's currently suing google over censoring her political ads
Nonsense, but I believe it does happen
especially on platforms like facebook
and youtube
do you seriously think google has a direct hand in that?
if your content is so against the grain that the algo decides to hide it.. man you must be really out of line
I'm not ignorant to the point to think tech companies don't drive a narrative.
but this whole "ohh woe is me I'm being personally targeted by the largest tech companies in the world" is just ugh
no snowflake. you just don't jive with people
Well, I think that the manual reviewers wrongfully censor all the time. I don't think I blame the algo for that, but sometimes I would imagine it makes mistakes
we have a few systems here that require manual reviewing. fortunately it's not political stuff, but, mistakes happen. often. it's hard to define a set of rules for someone to follow that will catch every exception, it's why we have manual reviewing in the first place. but it's never perfect. Not at all that person's fault, either.
@OvieTrix to follow up, the big news in Canada recently after the christchurch shooting was if we needed to explicitly say hate speech online was illegal.
afaik it is illegal in all other forms in Canada
so it wasn't a huge push
I find it really odd the dynamic that corporations try to portray, though. Like youtube, for example. All corporations in the US that are public and have investors are 100% beholden to the will of the share holders/board members. All they want is to make more money, as much money as possible. However, they get away with it by portraying liberal values as a guise to their real purpose, which is to drive revenue.
Google does this well; "We're liberal guys, we promise. We want sunshine and rainbows". No, they just want money
18:56
@ndugger hint: both dems and repubs want money. they just disagree on how to get it
at that level
you can believe one is going about obtaining it in a less destructive way
I'm pretty sure liberalism in corporations is purely a guise
user8729657
Yea, things like spreading hate and violence on the internet shouldn't be welcome. Thanks for clearing that up for me @rlemon.
@OvieTrix people get scared at the notion because if the laws are not written properly it can of course be taken advantage of for nefarious reasons.
we just need to be on top of that

« first day (3216 days earlier)      last day (1957 days later) »