#ot1-perplexing-regexing
1 messages · Page 383 of 1
but since these types of wave are spread all over world
no
The microwave dishes are dangerous, if you climb up and sit in front of one with a sun lounger
then it may cause harm
stop.
As people have done.
study must be done
@low shadow Dude, microwaves are shielded pretty heavily
But it's such a low amount literally everywhere else
before implementing 5G
And btw, WiFi is on the same frequency
Study HAS been done
show me some links
BUt it has such a low intensity that it does not harm anyone
which is why routers are hard locked at 100 miliwatts
Why don't you exercise some critical thinking and find them yourself?
i found this
Broadcasting radio and television signals
Transmitting signals from cordless telephones, cell phones and cell phone towers, satellite phones, and 2-way radios
Radar
WiFi and Bluetooth
Cooking food (in a microwave oven)
Heating body tissues to destroy them in medical procedures
None of that says anything other than where microwave technology is used
There's literally no context
Yup
but low amount than cell tower
they come from space
@gentle moss
@low shadow Let me ask you something
Do you know what radio actually is?
any kind of radio wave?
i know what radio waves are
yeah well what is it?
यसैमा फेरी खोज्ने
वेब परिणामहरू
Radio wave - Wikipedia
en.wikipedia.org › ...
यस पृष्ठलाई अनुवाद गर्नुहोस्
Radio waves are a type of electromagnetic radiation with wavelengths in the electromagnetic spectrum longer than infrared light. Radio waves have frequencies ..
and cell phones towers emit radio waves, 5g may emit stronger frequency
You hear other people because they talk to you in a specific frequency we can hear
You cannot hear wifi because you cannot hear the frequency
Some people take that and say because we have ears, those frequencies impact us
you cant hear xray so is it not dangerous
but it's bullshit
The hilarious thing is that the towers don't really put out much by way of waves
about the effects of mmWave technology on living creatures
Your phone is adding far more of them in order to find towers
We highlighted the findings of mmWave radiation studies on the eyes and skin since, in communication applications, these tissues would receive the most radiation, with other tissues receiving, by comparison, a negligible amount. Ocular injury can be induced by short-term high-intensity exposure (e.g., 2,000 mW/cm2, 1.5–5 s) far beyond the anticipated future communication device levels, but the eyes do not appear to suffer damage from longer low-intensity exposure (e.g., 10 mW/cm2, 8 h), which might be experienced from mmWave communication technologies in the far field.
a.k.a. you need to literally try to irradiate someone to do damage
2,000miliWatt of mmWave radiation fired straight into your eyeball can cause damage
Just don't climb a tower and sit in front of an active dish on a sun lounger with a beer
You'll die, but more importantly, the beer will explode
"in other words" vs "also known as"
Just don't climb a tower and sit in front of an active dish on a sun lounger with a beer
@sand goblet i drink wine not beer
both work.
That is literally the most pedantic response you could have made
Also you don't drink anything, you're not 18
:v
Also you don't drink anything, you're not 18
@sand goblet i drink there is no rule here
Where is here?
nepal
Oh, okay
nepalese drinking age is 18
in asia literally no one follows such rules
yeaaaah....
Maybe they should.
Are they all alcoholics? Is that what you're saying? Haha
no
Then they can.
I wanna go to the Indian sea in one of the next few years
There is a french island
Makes holiday there extremely convinient
Well, the long term effects of drinking on minors is something that's been studied, so
That explains a lot
consumption of nearly every major psychoactive compound has a negative effect on brain development
even caffeine
French? I thought you were German
still people drinkg
Do you know French too?
even caffeine
@gentle moss
Je parlez en petite peux du francais Monsieur
Not bad
consumption of nearly every major psychoactive compound has a negative effect on brain development
@gentle moss just the reply
The site's name was literally vape360
No need to call the mods because of a bit of french @gentle moss
i did and u called mods
Of course they're not going to tell you how nicotine fucks you up
Read the subtext
yes
@sand goblet But it's more along the lines I want to go somewhere tropical but not into a country where I may be executed because I looked wrong at someone
It's EU, that is the motivation here
Nobody in the healthcare field can officially recommend nicotine for purposes not approved by the FDA, and the FDA has only approved it for smoking cessation
fda hasnt approved curcumin , so what its not healthy
@thorn snow That's fair
these all seem to be preliminary studies which haven't made it out of the phase of testing it on mice
and it doesn't change the fact that your brain doesn't stop developing until you're 25
and consumption of psychoactive compounds will change how your brain develops.
it's long
it's complicated
and you're totally not going to read it. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6018192/ https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3151730/
Cigarette smoking is the main cause of preventable death in developed countries. While the direct positive behavioral reinforcing effect of nicotine has historically been considered the primary mechanism driving the development of TUD, accumulating contemporary ...
Typical clickbait
The other day I saw an article, heading was like "ANIMAL CROSSING COMING TO PC", article: "Animal Crossing will never be released for PC, but have a look at this game"
shit has become fucking awful
magazines putting out wrong headings, just to put things into perspective later
but most don't read until that part
Because poor cognitive performance at baseline predicts relapse among smokers who are attempting to quit smoking, studies examining the potential efficacy of cognitive-enhancement as strategy for the treatment of TUD may lead to the development of more efficacious interventions.
that's an interesting conclusion
That is an amusing conclusion isn't it
yes but the study is talking about methods to help people quit smoking / nicotine
lol
"People who are stupid can't drop smoking"
Fine Motor Skills Alerting attention – accuracy and response time Orienting attention – accuracy and response time Short-term memory – accuracy Long-term memory – accuracy Working memory – accuracy and response time
What kind of study lol
i'm still reading the paper machine
:P
it's long and complicated, so i'm trying to understand what it actually says
ok
oh dear
section 2 1st paragraph
In a population-based study of 2163 participants, smokers demonstrated deficits in attention, working memory, and impulse control functions
Again, the second one is all about treating people that are addicted to cigarettes
you can't cherry pick sections of a paper you like
and use it as evidence for your position
i can give you 10+ reports to prove that consumption of nearly every major psychoactive compound has a negative effect on brain development is wrong
racetams are psychoactive too
nicotine is just an example
They're both saying that IN SMOKERS that they've given nicotine instead of cigarettes, those smokers PERFORM BETTER WHEN CIGARETTES ARE REPLACED WITH NICOTINE
They're not saying random people should take nicotine
:D
And they do also point out that nicotine is still addictive when taken without the cigarette
i m just proving consumption of nearly every major psychoactive compound has a negative effect on brain development is wrong
It's a well known fact
And they do also point out that nicotine is still addictive when taken without the cigarette
@sand goblet so what if i can control addiction i am the king
because of lockdown i m not using nicotine
And there are lots of psychoactive compounds, you'd have to prove a majority don't cause problems
Collectively, these studies demonstrate that nicotine has differential effects on cognition in humans that depends on smoking history and nicotine withdrawal status at the time of testing, and that cognitive enhancement from smoking may have downstream effects on mood by shifting the attentional bias of smokers away from negative stimuli.
You cannot control addiction, that is why its called addiction
that bit's interesting
why are you back here trying to promote drugs again??
that's probably where the "nicotine helps depression" bit comes from
can you fucking stop?
"nicotine is good for you"
is wrong
is promoting
my statement is not wrong
smoking or using nicotine while your brain is developing will alter brain development
end of.
fact.
yes racetams are psychoactive
Nicotine probably isn't necessarily harmful if you're not a minor, on its own, but trying to say that it has positive effects on non smokers is pretty batshit
same for caffeine
that's why lots of places in the world have banned sale of drinks with high caffeine levels to children
Nicotine probably isn't necessarily harmful if you're not a minor, on its own, but trying to say that it has positive effects on non smokers is pretty batshit
@sand goblet is neuroprotective
I don't think you understand what most of these terms you're throwing out mean
they prevent glutamate excitotoxicity that is neuroprotective
But I would expect nothing less from someone that shitposts on r/drugs
also bisk said caffeine is harmful for brain even caffeine
but there study which shows caffeine is great
we're talking about minors
majority of selfhack report is from ncbi
Yeah, kids suffer from caffeine issues at way, way lower doses too
you know, children.
And again you've linked a random blog instead of a credible source
what if i dont have developed prefrontal cortex from nicotine , i will have other parts develops, it impairs prefrontal cortex onlly
as i know
A new study in the journal PLOS ONEconcerns caffeine consumption in pubescent lab rats. Researchers found that young rats who consumed the rat-sized equivalent of the caffeine in three or four cups of coffee daily experienced reduced deep sleep and delayed brain development.
i'm so glad there aren't kids jacked up on redbull / kick in the town centre anymore tbh
Given all of these factors, it is necessary that more research be conducted on caffeine use among children to understand long-term consequences of caffeine exposure during this critical period of development.
study must be done
cant say anything
Can we maybe just move on to another topic?
ok
@low shadow You've been bringing up addictive substances and praising the use of prescription drugs for offlabel use for a while now. Please stop doing that.
This isn't only about today
And that is not the point
There was this thing following the betel nut yesterday as well
yes thats wrong i know( betel nut),
That looks like datura stramonium in his profile pic
I hope he isnt taking that stuff.
its an extremely deadly poison.
I hope that you are not doing that, sincerely
Its very similar yes. Its where scopalamine and atropine come from
Oh jeez, yeah, definitely don't take that
Atropine is in the emergency injection for soldiers
Atropine has soem medical uses, mainly reducing saliva in the mouth I think for certain procedures.
Scopalamine is just a deadly substance that makes you delirious
When I was in the army, you have a little pouch with bandaids and stuff
in real situations, you also get an injection against ABC attacks
its atropine
right
it makes other poisons need longer to work
but it slowly kills you
Basically it protects you from taking up chemicals/radiation etc
Interesting.
If you take it, find a field hospital, otherwise you die
but if you don't, you die faster
so
literally pick your poison 😄
Well that explains why you're incoherant on reddit
whats incoherant
😄
You're impossible to understand because your points make no sense, your language is terrible, and your posts have no direction
Something like literally dosing yourself with poison will do that to you
i just did once
only
anyways dont discuss here
probably ves zappa can get angry and ban me
Yeah, not really a suitable subject
But I do advise you to stop taking these substances in general
You'll feel better for it
I remember you saying that, yeah
Jesus Christ.
what
You know, there's a search button at the top right
That stuff is what people use in south america to rob people it makes you so delirious you'll do anything anyone tells you to do.
I dont know why you'd think that is something youd benefit from taking
i just did once. Felt like mad person. Just to know how IT FEELS. Never tried again
oh yes i was on programming assembly
i read one book, it was beginner friendly, beginning x86 assembly, recommend to others
It is like saying "I just killed someone once. Just to know how IT FEELS"
Killing is immoral
The thing that makes that particular substance so deadly is that without a lab its impossible to measure it. And the threshold between death and delirium is very small. Its not used recreationally, I suppose its occasionally used by very curioous people. Its mainly used to victimize people :/
SSL got deprecated
ok
that is why he got renamed
lol
i still hear TLS/SSL; probably replacing with TLS only should be done to avoid confusion
SSL usually refers to the certificate rather than the encryption
It is like pigeons/IP
u may die of heartbleed
the reason I picked this name when I came in here is because its an impossible user name to search for and find anything else about me
@low shadow TLS uses TCP/IP to ensure security
The name means Transport Layer Security
is beast and heartbleed attacks related to TLS
Heartbleed was a bug in a library
!$!$!4\ is a good username too haha
haha yeah
i hear a lot of name in my childhood just like shellshock but now i know the meaning
i bought shellshock game but couldnt play it
Of course, all you have to do is search the chat for links ive shared and you can dox me as easily as anyone else
But it doesnt hurt to make it difficult for people
Fun fact: You cannot really place TLS in the OSI model
it uses L4 to provide the stream, but the key exchange happens between 5 and 7
interesting
i dont know OSI model . It is very confusing . The layers. Some people mix layers
There are 2 different models really, if you look at it
Its helpful as an abstraction to understand what might be causing what and what definitely isnt
The OSI model for computers in general
and the network OSI model
so always gotta know what you are talking about really
i onlly know first layer is of hardware
thats all
tcp/ip guide is good book but still i couldnt understand
L1 is pigeons
and in between describes how the electrical signals go from there to becoming data
Which one is DNS again? haha
It is like pigeons/IP
@solid pollen why is akarys focused on piegons
The only good way to make a reliable network
@rough sapphire L7
You don't know the story?
IPoAC
hahaha
first time heard something like this
how can piegons carry internet traffic
usb stick
?
They carry usb sticks around
so each piegons have usb sticks
It can be faster to do things like this than transfer over the Internet too
I mean if you FedEx a box of hard drives and it takes 2 days to get there you can be reaching several GiB/s in real time depending on how big the drives are
When you are a network admin and AA Guns suddenly becomes an issue
what is AA guns (in relation to computer)
oh
BUt when you think about, routing isn't too different how pigeons work. Always need to know where your next hop is
how much km is one hop?
@sand goblet https://what-if.xkcd.com/31/ Reminded me of this
depends @low shadow
Between 2 sealines, multiple hundred km
on land? a few hundred
from your computer to your router? Probably a few meters
What, another switch? no, no.. it looks like we're going to need to install some aa cannons over here
Oh that's actually a technique used by Google
It's a good book 😄
hmm
hop in networking means from one router to the next
ok
hold on I can show you something
I know that Apache.org is hosted in helsinki via its secondary ip
apache.org has address 40.79.78.1
apache.org has address 95.216.24.32```
Start: 2020-04-18T13:11:14+0200
HOST: ras.internal.tuxstash.de Loss% Snt Last Avg Best Wrst StDev
1.|-- router.internal.tuxstash. 0.0% 10 0.6 0.6 0.6 0.8 0.1
2.|-- 62.155.243.146 0.0% 10 5.4 4.8 4.3 6.1 0.6
3.|-- 217.0.195.185 0.0% 10 8.7 8.7 8.3 9.0 0.2
4.|-- 217.0.195.185 0.0% 10 8.5 8.4 8.1 8.6 0.2
5.|-- ffm-b4-link.telia.net 40.0% 10 8.6 8.5 8.4 8.6 0.1
6.|-- ffm-bb2-link.telia.net 0.0% 10 35.6 35.6 35.3 36.0 0.2
7.|-- s-bb4-link.telia.net 0.0% 10 33.4 33.2 33.0 33.4 0.1
8.|-- hls-b1-link.telia.net 0.0% 10 35.2 35.3 35.1 35.7 0.2
9.|-- hetzner-svc067711-ic35160 0.0% 10 31.8 32.0 31.3 34.1 0.8
10.|-- core32.hel1.hetzner.com 0.0% 10 31.7 31.8 31.3 32.7 0.5
11.|-- ex9k1.dc2.hel1.hetzner.co 0.0% 10 32.8 31.8 31.4 32.8 0.4
12.|-- tlp-he-fi.apache.org 0.0% 10 31.7 31.7 31.5 32.3 0.2```
Look at hop 6
that is where it goes into the sea cable
interesting
Google isn't really representative, they have mirrors everywhere
I only recently learned that there were sea cables. They were talking about russian subs or something on the news and I was like, WHHAT sea cables?!
that is the sea cable
@thorn snow ok
and looks like the telia router in frankfurt is really busy 😄
because it's too lazy to answer ICMP today
I know the very basics of networking, like enough to login to my router at home. But when it gets to like complicated networks at a business that require a lot of switches, that stuff is way too complicated. Its amazing that anyone ever came up with it.
same here
It's not complicated
i know subnetting, dhcp
but bridges and gateways and some other things like DMZ, ALG are ???
I know theoretically they stop collisions right, communicating from hosts to the router?
In the early days, we used hubs
the issue with hubs: it sends packages into ALL connected cables
a l2 switch remembers which mac is on which port via the arp resolution table
thus could be sniffed? wireshark
the issue with hubs: it sends packages into ALL connected cables
@thorn snow
Therefore it sends packages only where they are supposed to go
I get that much.
Collisions aren't much of an issue today anymore
So if you plug a hub into itself, it go boom?
But as far as knowing where to install them. Thats complicated to me.
since cables are full duplex
it was an issue in the early days, token ring for example
where only one machine could talk at the same time on the whole network
We also have CSMA/CD today
Networking is still a complex topic with many parts
which detects the electrical resistance caused by a collision
There was a while that I was monitoring traffic on our network with wireshark and over time I realized, "I have no idea what any of this stuff means." I learned about ARPs through that. But so much of the traffic is via a protocol that I just dont know.
ARP is the translation of MAC into IP, it's pretty simple
right
open a shell and type arp -a
yeah, you can abuse those switch tables for IP spoofing
confusing arp
with constant pings
right.
but it only works within a network until the router
because ARP stops at the router
which is called the Broadcast domain
Because when a computer does not know the mac for an IP, it sends a broadcast to FF-FF-FF-FF-FF
and if the switch has no clue where the mac is he is looking for, then he sends it to all devices
but it stops at the router
which is why networks that have a lot of devices can become dreadfully slow
Right, I recently cleared them all out when I reset the passwords.
Are you talking about a lot of active devices or just a lot of devices in the router's memory?
idk if memory is the right word
no, a lot of devices sending ARP requests
right
That is where you need a router even in an internal network
to limit the broadcast domain
Router in a networking context does not mean what you know as home router
yeah, until I played with wireshark I didnt know what arps were. That was the only thing I learned from that experience other than packet sniffing is above my level of networking knowledge
in a professional setting, a router just routes, it is not this multi-thing you have at home
which consists out of 6 or 7 different devices
How does my computer have upto /Dev/sda7 when MBR partition support only 4 partition
@rough sapphire A lot of that traffic is probably also IPV6
IPV6 works a bit differently and talks a lot
yes, you can filter it though
Thats the only way to use wireshark is by filtering specific things
Its just an excess of info
Any idea?
@rough sapphire I really suggest to keep using wireshark for learning
Filter by icmp and do some traceroutes or mtr
then you understand why 50% loss in the middle isn't a valid packet loss
mtr?
it's what produced the result I've posted earlier
its basically a trace route tool on linux
I'll try that. Let me boot up my device that has that kind of software on it and I'll let it run all day today
But tbh, there aren't really that many interesting protocols to watch for at home
yeah... I believe it.
DHCP may be neat
So like
but it's 4 messages 🙂
When life goes back to normal I have a trip planned to a hotel where I really was planning to have some fun monitoring the network and seeing what interesting things would happen. But it kind of got canceled. But when I can I still plan to.
That will be fun
can do that on any free wifi in the area
HTTP and TCP are also fun to watch
TCP is always like SYN, ACK, SYN, ACK then finally some FIN, ACK
And then you can understand what a SYN flood is
I remember those and thinking "I need to look up what these mean"
Thats what wireshark is for a newb is a million things to look up that youve never heard of before. The only one that really stuck with me was ARPS
since thats majority of what it is at home
SYN flooding is when you are trying to get a host to make a TCP connection with you, but only ever send a SYN and never ACK
so the server ends up with a lot of unfinished connections
and eventually runs into his connection limit
That is a popular ddos mechanic
Ah. That's interesting to know but starts talking louder "That is something I would never do."
lol
Really though, I wouldnt
No, do it. Use a target in your own network of course, but is nice to learn
Or UDP reflection with Windows LDAP 😄
Fair. You know what was fun to read is the heroku pen testing policy.
They basically are like, "You can do anything that doesnt look like a ddos to us"
and I was like, "Wow that is some policy"
UDP reflection basically means, send a small request to a target, spoof the sender and provoke a large response
that way you get another machine to ddos a server
with minimal networking overhead for you
But I am probably going into dangerous territory here with the server rules 😄
What Windows LDAP?
I think we are allowed to talk about pen testing here. The topic has come up before and no one seemed to mind it.
Yeah, LDAP is very susceptible to that
Obviously, I think thats only true because were just enthusiasts and not malicious
never expose ldap to the internet
or memcached
Those are ALWAYS targeted to be used in ddos onto another target
I'm not too familiar with Windows stuff. My friends in the pentest community tend to praise AD and thats mainly where Ive heard the term LDAP come up along with that.
It's a database basically, used in AD as well
Well, directory services
but for all intents and purposes, it stores data and communicates it over the network
which is why a small request can provoke a large response
as in bytes wise
[12:37] scorcher24: UDP reflection basically means, send a small request to a target, spoof the sender and provoke a large response
some of the amplification type attacks are really cool
not if you are on the receiving end of it 😄
yes
DNS amplification was the cause of that massive global DDoS event wasn't it?
i think it was a two years ago or so
ooh, 4 years ago.
the DDoS record is at 580m PPS
that's...
O_O
oh lord, that was just a SYN flood
@thorn snow now what did you say I should filter for fun and traceroute later?
icmp
put it as display filter
ok
Only select the network device first
right
then put it as display filter on top
I think we are allowed to talk about pen testing here. The topic has come up before and no one seemed to mind it.
@rough sapphire I once posted some writeups. I got warning from ves zappa
@rough sapphire Does your ISP support voip?
Could try to record a sip phone session with wireshark
and yes that works
I think it does.
get a softphone like MicroSIP, use the login data from your isp call someone, record rtp
in wireshark
you'll be able to listen to the phone conversation by playing it
srtp isn't used a lot
i've never seen it deployed in the wild
i've set it up locally for a bit of fun
ooh, one i've been tempted to do is record Zoom session RTP
Alright Im gonna let this run all day, I dont expect anything fun because its just the people living in my house. But id like to learn to do this for when Im in fun situations like public wifi
since they use AES ECB it's potentially possible to get image data back from it
depends on the formatting i guess
@rough sapphire There won't be that much with icmp filter on
I meant that filter more for active testing/learning
Internet Control Message Protocol
so you mean to run tracerouts while this is running?
yes
@rough sapphire Thats a system broadcast
i.. know
oh man good way to hide my chats
everyone use ssh
it's just that i was never expecting someone to message me in an active ssh session
That would scare me
haha
was playing a game and wondering why i kept hearing pings
you can clearly see me respond in the screenshot :p
didn't actually read it 😛
just saw the pattern
Broadcasts always look like elephants
idunno what sort of elephants you seen
@rough sapphire It's just my brain being weird. I also see numbers as streets, which nobody else does I've asked about that
It definitely started showing stuff when I did traceroutes. Not sure what im looking at though
Like, its a very long street with houses being the numbers
@rough sapphire Look at the ttl
[12:58] 𝚡𝚡: it's just that i was never expecting someone to message me in an active ssh session
haha
Then look at the trace route how it lists every hop
:D
TTL only gets decreased by routers
now you know how a tracert finds out how many hops there are
traceroute is based on icmp, right?
I only know what TTL is in the context of domain names. Its like... how long it takes to do something with DNS. I cant remember.
It's how long it is cached
in networking, it is how many routers the packages shall pass
so, TTL 1 to the IP of google.com, means it ends at your gateway
or any router in between
TTL 2 it ends up at your ISP's router
TTL3, the next hop on the way
and so on
because when TTL is zero, the router throws the package away
yes
each hop decreases the TTL by 1, doesn't it?
yes
until it's depleted
router does TTL=TTL-1 if TTL==0: dump package
I'm gonna sniff http I think lol. See what people in my house are doing with their quarantine time.
And tell them to bug the website provider to implement let's encrypt
ha yeah
but why not take a level further?
connect to a http server with telnet and talk to it
ahhhh, manual protocol communications :D
I have an http server running right now on VM.
i think the one i've done that with the most is SMTP
telnet it and do GET /
okay hold on.
http ver?
I thought you need more
I have to help the lady real quick. I'll be back and we should talk about this more some time haha
Trying 2a00:1450:4001:806::2003...
Connected to google.de.
Escape character is '^]'.
GET /
HTTP/1.0 200 OK
Date: Sat, 18 Apr 2020 12:12:26 GMT
Expires: -1```
nice
Oh great, emergency mode because I put a new disk in my computer
oh nice.
@thorn snow access control system has failed on some buildings
good thing everyone is in lockdown
:D
man, why does stuff like this always happen on a saturday
Saturday is a corrupted day for working people
i work saturdays :(
they're chill af saturdays.
it's only to support one retail customer
who, guess what, isn't opening shops atm
boom.
should probably use the quiet time to do something super productive.
I am still new at this job, so I don't have to, but normal work time for us is 10 days, then 4 days off
but that was said at the interview
I have quite a lot of workdays on weekends ahead of me
But then, I don't have anyone that would require me anyway
woot
23m50s single segment quake run
so many faults :(
going to have to grind a bit more to get into the 20's again
19m by end of lockdown or bust
damn Im exhausted now.
setTimeout(function() {
console.log("Five seconds");
}, 5000);
for(let i=1; i<10; i++) {
setTimeout(function() {
console.log(`${i} seconds`);
}, 1000);
}
This has a weird effect
Basically it dumps all the seconds in the for loop at once.
And then finished with the five seconds coming after five seconds
I'm so exhausted tho, will figure out whats going on there later
Whats happening there is that setTimeout isn't blocking. You're setting something to go off in one second, then immediately moving into the next stage of the loop, where you'll set another thing to go off in 1 second. So what you end up with is the 9 setTimeouts set to go off at practically the exact same time.
To achieve what I think you want. Here's some code
setTimeout(function() {
console.log("Five seconds");
}, 5000);
for(let i=1; i<10; i++) {
setTimeout(function() {
console.log(`${i} seconds`);
}, 1000*i); // The only difference is the *i here
}```
is there actually a decent js discord server?
SpeakJS was ok the one time I used it
I can't link it here, but googling SpeakJS discord should find it for you
would there be any legal issues around hosting the comments posted on a particular site?
for example - if one was to scrape all comments from the website of a publication, would it generally be permissible to host that somewhere that others can access it?
So apparently the KDE partition manager decided that it would make sense to write in the fstab to mount an ext4 partition as nfts even if when I right click mount it does mount it as ext4, like it should
Sure.
ahhh witcher
i can jump off a 2 story building and roll to safety
but if i jump into a moat off a 2 story bridge and don't notice a tiny rock just under the surface i die?
Came across this one in Reddit https://www.wired.com/story/lee-holloway-devastating-decline-brilliant-young-coder/
It's a long read, really quite something
So I'm trying to make a function that generate a tree
I kinda have an idea of how to do it, and I know I'll have to use recursion
thing is: what do I return?
I can't return a Node, since it would return the last node created I think
So what do I return?
import random
class Node:
def __init__(self):
self.left = None
self.right = None
def gen_tree(current_root):
if random.randint(0,10) > 5:
current_root.left = Node()
gen_tree(current_root.left)
if random.randint(0,10) > 5:
current_root.right= Node()
gen_tree(current_root.right)
r = Node()
gen_tree(r)
So, you don't really need to return anything. You just need to recursively add to the tree
and have some stopping condition
https://paste.pythondiscord.com/lupokadife.py that's what I have at the moment
my plan is:
I stop if I reach a depth of 5 and I have the max number of rooms allowed
But now I'm stuck, because I don't know how to add a node for each node. Like. Ok, I generate all the nodes for the current node. Great. I can keep doing this over and over until I reach my condition
But how do I say "ok, enough of this node, let's go to the other node at the same depth as this one and repeat this"?
Is yours even a tree? Conceptually, in a building full of rooms, you'd expect to be able to have a cycle

My plan is for something like:
and
Maybe I'm not understanding them properly. I don't know what to google to understand them better, I found them at random on a reddit post about procedural puzzles
Assuming each square in that is a node
then its a graph
and not a tree
Which doesn't matter
it just means, that I personally have no clue how to go about generating it
ah
no I was misunderstanding the sources. Each square isn't a node
Well, the first one is a graph/grid. The second one is a tree
Yes, but the same concept applies?
I think
Like generating one should be the same as generating the other
N node tree with junctions
every graph reduces to a tree after all
wot
Isn't a graph a tree with loops?
yes
well no
Assume this is a graph. Then the 4 red nodes form a cycle, and the one edge in the top right is the loop. A loop is an edge connecting to the node it starts at
but you can remove any one of the four "lines" and it would still be valid
It jus becomes a tree
Yeah, you can cut edges off and get the minimum spanning tree
but thats completely changing the structure

Well this is besides the thing I'm trying to follow
which doesn't provide any code examples or anything, so idk where to bash my head.
What I understood about the res is: I need to make a tree that represents the room structure
And then I can place locks and keys (no clue how) in a way that makes it always solvable
so I'm trying to generate the room layout, but I can't get the tree working.
import random
class Node:
def __init__(self):
self.children = []
def gen_tree(current_root, depth):
if depth > 10: # Passing the limiting factor down the tree
return
children = random.randint(1, 4) # Adding a random element
for _ in range(children):
child = Node()
gen_tree(child, depth + 1) # Making sure the children aren't empty
current_root.children.append(child)
r = Node()
gen_tree(r, 1)
Basically what I did
I opted for generating all the new nodes at the same time
So I won't have the headache of backtracking
And I hit max recursion. Great.
I can't see where you're doing anything with the neighbours (children) in what you pasted
or any recursive calls
oh, the for loop is where your neighouring things up
wait, what are you doing with your neighbors' children!?
If I were you, I'd dissasociate the gamey stuff from the treey stuff at first
just get it working for the tree
then add the gamey bits
@rough sapphire I'm making their childrens
@undone berry That's what I'm doing
I don't have any gamey stuff, just nodes atm that hold a bunch of information
width, height, color, x, and, y all seem to be not relevant to the tree to me
Sure, so for now, don't think of it in terms of rooms
just completely cut that part out of your code for now
class Blob():
def __init__(self, neighbors):
self.neighbors = neighbors
def generate(nodes, depth, count):
if(depth > 5 and count == MAX_ROOM_NUM):
return True
else:
new_node_list = []
for node in nodes:
for index,branch in enumerate(node.neighbors):
if(branch == None and random.randint(1, 3) != 1 and count < MAX_ROOM_NUM ):
new_blob = Blob([None]*MAX_ROOM_NUM)
node.neighbors[index] = new_blob
new_node_list.append(new_blob)
generate(new_node_list, depth = depth + 1, count = count + len(new_node_list))
```
Like so?
Also idk if my idea of "blooming" each node at the same time is good
if(depth > 5 and count == MAX_ROOM_NUM): is that right? WIth that, there's a chance you exceed the maximum room count
why?
If depth is 6 and count is 20, it's done
Oh
Yeah
Well it returns None now >:I

I removed the max count
Does it work for you?
Yup, playing around with the constants and where I generate the nodes gives different results
Idk why mine isn't
Like
it does, but when it return it return None
and idk why
probably missing a return somewhere?
You never return a blob object or a list - the only thing you ever return is True
def generate(nodes, depth):
if(depth == 5):
return nodes
else:
new_node_list = []
for node in nodes:
for index,branch in enumerate(node.neighbors):
if(branch == None and random.randint(1, 3) != 1):
new_blob = Blob([None]*MAX_ROOM_NEIGH)
node.neighbors[index] = new_blob
new_node_list.append(new_blob)
depth += 1
generate(new_node_list, depth )
root_blob = Blob([None] * MAX_ROOM_NEIGH)
print(generate([root_blob], 0))```
new_node_list = []
for node in nodes:
for index,branch in enumerate(node.neighbors):
if(branch == None and random.randint(1, 3) != 1 and count < MAX_ROOM_NUM ): # if the randint hits 3, then you skip this if
new_blob = Blob([None]*MAX_ROOM_NUM)
node.neighbors[index] = new_blob
new_node_list.append(new_blob)
generate(new_node_list, depth = depth + 1, count = count + len(new_node_list)) # WHen you skip the if, new_node_list is empty, so the for loop doesn't happen and you return None
with the sudoku I didn't return anything, and it worked
Those comments explain why
but I can't initialize it anywhere else
Yours works for me
wtf
MAX_ROOM_NEIGH = 9
def generate(nodes, depth):
if(depth == 5):
return nodes
else:
new_node_list = []
for node in nodes:
for index,branch in enumerate(node.neighbors):
if(branch == None and random.randint(1, 3) != 1):
new_blob = Blob([None]*MAX_ROOM_NEIGH)
node.neighbors[index] = new_blob
new_node_list.append(new_blob)
depth += 1
generate(new_node_list, depth )
root_blob = Blob([None] * MAX_ROOM_NEIGH)
print(generate([root_blob], 0))
print(root_blob)
you're printing the result of generate
which will always be none
or true
:/

I'm so...OOOOH!
Ok I have another question now.
I can traverse a tree recursively like I generated it. It's almost the same.
But how do I represent it?
Representing it is very difficult. The __repr__ way I've done it is a janky way of doing it

Also my tree is very janky. Like.
It only has one node visibile. You have to dig into it to see the others.
I'm doing it wrong.
nice
playing with this stuff makes my pc heat so much
My fans kicked in.
Gn yall 😄
I'm pretty happy about what I did today! I feel like I've learn something!
hi
@rough sapphire You've probably figured it out by now, but I wrote an attempted explanation for your JS woes earlier that you might have missed. If you're still trying to figure it out, here's the link to the message: https://discordapp.com/channels/267624335836053506/463035241142026251/701079391991496774
Didn't want to @ you earlier because it seemed like you wanted a break
hey I appreciate that. haha. But I dont mind if you @ me generally. But if I seem like I want a break, thats a good reason not to. I'll check it out
Ah, I actually didnt figure that out because I went right to bed around that time
Makes sense, thank you
hola hola
Damn when I scrolled I saw this article that gdude posted earlier. https://www.wired.com/story/lee-holloway-devastating-decline-brilliant-young-coder/
that is pretty terrifying.
i didnt read it anyways
@lime gazelle It's a little sad, yes. Sadder, perhaps, for his friends and family.
It was a neurophysiology thing.

I kinda want to change my tree into a graph but that will be a headache
You could turn it into a table, @lime gazelle
my name is kiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiid
rock.
bowdiggy
Sure bisk
bawitdaba da bang da bang diggy diggy diggy
diggy said the boogie said up jump the boogie
it's amazing he's made a career as some white trash
i used to like kid rock as a kid
he's anything but white trash you know
As a kid, did you kid rock to kid rock?
They only got through the first line of this fairly traditional Irish sounding song however
"Well I know my name is Ritchie but my girlfriend calls me Dick, and she's got Dick on her mind, all the time.."
hah
https://twitch.tv/beehivekay - Quake 1 run again. aiming sub 20m.
my name is kiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiid
@gentle moss really?
hey kiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiid
Did anyone watch Gumby when they were younger?
I'm pretty sure I still have a toy of him, somewhere.
i just love bisk new name
Maybe you were more of a Fantastic 4 kind of person.
who' or 1=1#?
urg, today is not a fine day for quake
it's a song machin.
Check out the enhanced video for Kid Rock's "Bawitdaba"
Watch the best Kid Rock videos on YouTube here:
http://www.youtube.com/playlist?list=PLakoz4isJL_ndybf7wxBheRx1BZW9unvL
Official website: http://www.kidrock.com/
Facebook: http://www.facebook.com/kidrock
Twitter: http:/...
ok
bash: warning: command substitution: ignored null byte in input from this command echo $(./$1 2>/dev/null) 2>/dev/null even i used 2>/dev/null HOW DO I FIX THIS ERROR OR NOT TO DISPLAY THIS ERROR
@gentle moss you post a kid rock video and Machineyadav gets a bash warning, coincidence? i think not
wtf, it must be coincidence singe age 16 doesnt denote (children or kid) but adolescent
😎
@rough sapphire got it . And help me fix bash error
what are you trying to do there mach
where $1 = asm ( nasm compiled using elf64 and then done ld )
its a assembly programming i m trying to run
but produces output as well as error
I don't think redirecting stderr to /dev/null is really a good idea
^
for a start
you shouldn't have to double pipe stderr like that either
that's probably why the error is happening.
"command substitution" implies it's the evaluated $() section
if you're just running it, why are you evaluating it?
ok
echoing produces extra line
like this
root@kali-linux: ld .......
outputroot@kali-linux:
similar output
but echoing
it's also possible your ASM program is returning null bytes
the dumb thing to do would be to strip the nullbytes out
The smart thing would be to not produce null bytes
^
ok
why is my nasm not working when i previously runned same command it didnt produce error
just did some messing in bash
root@kali-linux:~/HDD/Machinexa/Learn/learninglinux/assembly# nasm -f elf64 asm3.asm
nasm: fatal: unable to open output file `asm3.o'
it's definitely your ASM program
We aren't in your computer you know
not bash
on the topic of dumb things you probably shouldn't do: i save screenshots directly into a variable in bash https://github.com/neonsea/shincludes/blob/master/common-aliases/screenshot.sh#L17
i am not an assembly programmer
i can't help you mate
you're going to have to hit up google.
haha
nice xx
whats meaning of that i save screenshots directly into a variable in bash
how can screenshot be saved in variable
he's storing the data of a screenshot in a bash variable.
Raw bytes I guess
he's storing the data of a screenshot in a bash variable.
@gentle moss how
by the looks, yeah
Yeah
wait
well a screenshot is just data. you just store that data inside a variable.
everything is data
:D
everything is variable
where is the variable
well a screenshot is just data. you just store that data inside a variable.
@gentle moss
mate
in memory
I mean..
he posted the bash script
In a bash variable
all thing is getting over my head can u explain me clearly which variable i saved where
i dont see any variables
do you see
Did you looked at the code
which code?
aaaaaaaaarrrrrrrrrrrghhhhhhh
i literally highlighted the line with the variable
SCREENSHOT
that is a variable
SCREENSHOT=$(maim -u -s /proc/self/fd/1 2> /dev/null) this?
You see, the blue thing there is what we call an url
It points to a place on the world wide web
lol
🤦♀️
what the hell is going on in this chat
i wouldn't worry about it
can u explain me how is SCREENSHOT=$(maim -u -s /proc/self/fd/1 2> /dev/null) this code running in my computer
????
how is screenshot variable in my computer
please stop trolling
maim -u -s /proc/self/fd/1 2> /dev/null gets evaluated and stored in SCREENSHOT
so
i'ma compooooterrr. stop all the downloading.
i m storing screenshot in variable
beep boop
@low shadow ... this is just something I do in my script
wasn't that the guy that died paragliding?
see its saved in pictures not variable
i don't know how this is related to you at all
who is it related then
oh wait, it was king of random that died in a paragliding accident
It's just xx's mad library of mad shell scripts
xx said its dumb thing to do then why xx does uses variable to store screenshot
the mad is in the wrong place.
it's not a mad library
they're mad scripts
yeee boiii
Gotta trust you on that one