VecGS
Chaotic good
No bio...
User ID: 599
What idiot thought it was a good idea to add a DHCP server to a printer? That is peak anti-social.
In an office setting, I know it would take me so much time to try to figure that out. At least in a home setting, it's far easier to remember the answer to "what was the last thing that I (or spouse or kids) attached to the network in the past day or two?"
By default, absolutely nothing... you've found one of the common attack surfaces of ethernet! You can use this to do all sorts of malicious things. You can overload the switches by just spamming them with new MAC addresses. You can intercept traffic. General denial of service attacks. Circumventing security. All sorts of mayhem.
So, ways of dealing with this... you can have switches that are configured to only allow an interface with a certain MAC to connect to certain ports. Or you can have softer ways of dealing with this by feeding information from the switch to some variety of intrusion detection system. Similarly, a switch can be configured to ensure that a device DHCPing for an address can't suddenly start using a different MAC.
There's a host of enterprise-y tech being built in this arms race if you want to fund some hardcore security-focused teams. That said, I don't think I've ever encountered (maybe because I'm not an attacker) these in the run-of-the-mill office environments. This is including working at Amazon, which is a bit persnickety on security. I'm quite sure that they're running these things in the data centers though. For something like AWS, they have segregated networks for control-plane traffic (the back-end of the services and how they are configured) and customer traffic. And for customer traffic, everything is on its own VLAN to ensure that I can't make a malicious service that would attack neighboring instances on the same machine or subnet. They also have a bunch of security in place to ensure only trusted clients can connect to services and verify the servers' authenticity.
This is one of the underlying reasons that having good physical security is essential. Once you have access to a network you want to attack, you have a lot more surface area that you can use to attack it while (preferably from the attacker's perspective) remaining undetected.
How does it broadcast its request if it doesn't have an IP address?
This is where IP and ethernet get a bit blurry. ARP is operating at the raw ethernet level and it's sending out the raw ethernet packet to the ethernet broadcast address. In the packet it has it's IP and the requested IP. Implicit in the packet is the MAC address of the requesting machine. (Deeper dive: https://en.wikipedia.org/wiki/Ethernet_frame)
In most cases you think "I'm IP xxx sending something to IP yyy," the reality is at the ethernet level, the IP stuff is all payload the network really doesn't care about. Internally, everything on the actual network level is working with MAC addresses. IPs are just a really convenient abstraction on top of it. (in this case "network" is the layer 2 of the entire stack -- the data link layer)
The local network is defined by the network mask, right? So with 255.255.255.0 if I send something from 192.168.1.2 192.168.1.3 there's no need for the gateway to be set up, but 192.168.2.3 is outside the network and the packets will be routed to the gateway?
That's correct. Anything on the local subnet stays on your local network. Anything outside gets punted to the gateway to deal with.
This makes me wonder how the packets are routed within the local network, actually. Let's say I'm sending a request from my PC (192.168.1.5) to my NAS (192.168.1.2). The PC is connected to my wireless switch/AP (192.168.1.4), and both the switch/AP and the NAS are connected to the wired router (192.168.1.1). How does the switch/AP know it should send the request to the wired router and not to one of its other LAN ports?
I'm going to cavalierly ignore WiFi in this because it muddies things up and deal with layer 2 of the stack and up and just treat it as a switch. This is what's in my mental model of what's happening in some detail.
- You try to access "nas.orthoxerox.com"
- DNS lookup for that. Oops, we only have the IP of the DNS server: 192.168.1.254 (making something up)
- ARP on ethernet to get the MAC for ...254.
- This gets to the switch. It'll broadcast this packet to all its ports. (Once the switch knows that a certain MAC is on a port it remembers it. Most home-grade switches can remember a few thousand MAC addresses)
- NAS responds and then the switch and your machine know the MAC of the DNS.
- DNS lookup (several round-trips to do this) -- you now know the IP of the NAS. (Since the switch now knows the IP of the DNS, it sends it directly to the port it knows it's on)
- ARP for the IP of the NAS. (same as before)
- Finally, send an ethernet packet from your machine to the NAS. (Again, from the ethernet perspective, this is sending from your machine to the NAS based on it's MAC address when we're at the low level)
If there are multiple switches between you and the destination, the broadcast just keeps going.
If you want to have some "fun," look up "ARP storm." It's likely one of the few times most networking folks (I'm a programmer) even think about things at that level.
Much of this is really building on many decades worth of tech and it's hard to understand the why until you understand much of the whole stack.
Here's some of the whys, from my perspective in the order I would talk about them:
DHCP: when a device joins a network, it can broadcast on the network and ask for how it should configure it's network stack. Implicit in the request is the MAC (Media Access Control) address of the interface itself which provides the physical address of the interface. The DHCP server (in a home setting, usually in the router) assigns an IP from a block it manages and gives the rest of the networking details (gateway, subnet, etc) to the client. DHCP isn't strictly needed as the clients can be configured manually in many cases. Cheap IoT devices tend to rely on it.
Default Gateway: When you're sending any packet to something outside your local network, you send the packet to the gateway and it figures out how to get the packet to the destination. In a home setting, this will just be forwarding the packet upstream to your ISP. In a larger scale setting, it's going to consult things like BGP routing to figure out where to send things to. The beauty of IP is that the client doesn't need to worry about it and it's completely abstracted into the gateway itself.
Duplicate IPs: As mentioned before, every interface has a MAC address. When you're sending a packet on the network to another machine (i.e. not broadcast), you send the packet to the MAC address. But we're dealing with IP, not MACs. To translate from an IP address to a MAC address we send out a broadcast ARP (Address Resolution Protocol) request asking basically "will the device with IP xxx respond?" Broadcasts are received by all the machines on the network. The machine with the requested IP will respond. If there are multiple machines that are configured with the same IP, they'll all respond. What happens here is usually the first one wins. This is complicated by modern switches because they learn what IPs/MACs are on each of their ports. They'll likely assume there are two routes to the same host and weird things may happen. Lesson: don't do it, things break.
VLANs: From a switch perspective, it just controls what ports can talk to which other ports. If you have an 24-port switch, you can configure multiple VLANs such that, say, ports 1-12 can talk to each other, and 13-24 can talk to each other. It's setting up two "Virtual LANs." You can have a router that attaches to both of the VLANs to handle routing between them if you want. These are typically used to prioritize certain network traffic, or for security (e.g. a guest network can't talk to your servers).
UDP and NAT: Since there's no connection in UDP, the NAT device just remembers things like "when device XX using port YY sends a packet to internet address AA port BB, I sent the packet on my port PP. Later, if I get a packet from AA:BB on port PP, I'll look that up and forward the packet to XX:YY." The key here is that all IP packets have the source IP and port and destination IP and port. When it's doing NATing, it replaces the local IP (which isn't going to be publically routable) with it's own address and port. On the way back, it just does the reverse and replaces the destination IP/port (which is how the packet got to it in the first place) with the local network's addresses and ports and forwards.
Questions like this are pretty much in the wheelhouse of things like ChatGPT. It's really good at answering these high-level questions and providing good direction with the ability to dive deeper into each of the topics.
I asked on your behalf and everything looks pretty much like I would've written. https://chatgpt.com/share/677bd93a-310c-8004-9dcc-9b36c30fde8c
My take:
For home networking, unless you're setting up a homelab, you can probably ignore VLANs. Honestly, most of these are pretty much ignorable for what I'm expecting your use case of home network are concerned.
Anything vaguely modern in terms of a home router should handle all of these pretty transparently. Without getting into packet-level stuff, DHCP from the router will configure the clients and configure the default gateway to itself as well as prevent duplicate IPs (unless you're configuring them manually). DHCP itself tends to just work out of the box. UDP NATing, similarly, tends to just work. VLANs, at what I'm expecting is your scale, should likely just be ignored.
In my case, I have a small server rack that has a couple of NASes living in it along with a few switches (1GbE and 10GbE). The switches support VLANs, but even for what I'm doing, I'm far from needing any of the functionality it would provide. The router I'm using are a set of Eeros -- they can provide a mesh network, but for me all of them are hardwired to the switch.
If you're looking to experiment from a homelab perspective, that's another story. But it could be a really fun story. A common way of getting started there to get a solid grounding on the fundamentals is doing something like setting up a Raspberry Pi cluster and playing with those. It's a cheap and approachable way to learn these concepts.
Just for fun I asked: https://chatgpt.com/share/6773255e-8f74-8004-915d-56088ff34dc2
I'm not going to include the whole thing here so as not to fall afoul of the rules.
Now I want to get me some rutabagas...
Point taken. Some of the pics from the linked article have cow skulls strung up on a stick, so there's some contact with the outside world. But that said it still says something that the only photos of the tribe only have men. However, I sincerely doubt that the interaction with outsiders caused a shift in gender roles for this (or other) tribe(s).
It all reeks of starting from a conclusion and working backward to make an article to support it.
Another thing I just thought of which is unrelated to this: insurance rates. I'm a guy in my early 50s, which means at some point in the past I was a teenager. I've also worked in insurance for quite a while -- not the actual underwriting, but I had plenty of interactions with the people who did. There's a vast disparity between the accident rates for young men compared to young women, which leads to the disparate amount charged by the companies. There's something pretty obviously different in the behavior, in the aggregate, between men and women from a purely behavioral standpoint concerning risk-taking.
Similarly, all one has to do is look at the prison population and note that the vast majority of inmates are men. Some of this is caused by women getting lighter sentences for the same crimes, but that doesn't explain the order of magnitude difference between the behavior of men and women.
Even discounting differences in physical strength, there's something fundamentally different in our wiring.
Every once in a while we find yet another uncontacted tribe of people somewhere in the world. The most recent one I read about was in the Amazon.
Now, if these tribes were previously unconnected to the rest of the world, whatever "patriarchy" the rest of the world follows would not affect them. It's an unbiased sample. All of the published pictures I'm seeing are all men and no women.
The thing is that, in general, these tribes all seem to follow generally the same social schemes... the men seem to do the hunting, and the women tend to do the child-rearing and non-hunting activities. Now I'm sure there are some outliers where women are also doing hunting, but generally this isn't a thing.
From a purely physical perspective (and I'm assuming this isn't a controversial stand), being pregnant, giving birth, and the first year or so after giving birth to a child is hard and energy-intensive endeavor that would preclude many strenuous activities. Seeing as women are the only members of humanity that can do this, it would follow that societies would be set up around this. To be super specific, when I'm saying "women," I mean members of the human species who are adults and with a body form intended to produce the larger gametes we call "eggs" and gestate offspring internally and can produce nourishment for said offspring. The fact that I need to write this out, I find silly.
Men and women are different. Both men and women are needed and valuable. The progressive stance that men and women are entirely interchangeable and indistinguishable is laughable in my opinion. Men and women are different, and that's a good thing.
On the topic of SciAm, well, I dropped my subscription when they endorsed a candidate for the presidency last time around. To have science mix with politics takes away from the science aspect. Science is the search for truth -- not just "truth" that meshes with currently popular ideas.
Oh, I totally got that from your original post. I was just responding to the last bit thrownaway's comment above mine.
I also get really annoyed at all of the "emotional support dogs" that people claim are protected by the ADA, which they aren't really, hence "real service animals." Though I would love for someone to have an emotional support miniature horse just as a troll. (They also are mentioned by the ADA along with dogs as being eligible for being service animals)
It was also a big thing in Washington (at least Seattle) when I lived there... restaurants, grocery stores, whatever.
I worked at Amazon (office, not warehouse) and it was company policy that you could even bring your dogs to the office if they were well behaved. I honestly enjoyed it when my coworkers brought in their dogs -- but much of that was that they weren't random dogs so you got to know them. The 404 page on Amazon still has pics of people's dogs. The real differentiator here was that this was all done with permission and vetting.
I'm now in Nashville and I'm not seeing this effect as much here. Though people have a habit of not leashing their laws out where I live. Admittedly, I'm out in the exurbs, so that might have something to do with that phenomenon.
Dogs with jobs are a very different thing in any case. Real service animals are a true boon to their owners. Police dogs are in a similar boat.
The general feeling I get (not a dog owner myself, FWIW) is that people have been conditioned to think they are special in some way. Their dog (or kid, or whatever) is better than everyone else's. That mixed with a bit of main character syndrome and you get what we see now. Maybe this is what happens when you give everyone awards when growing up?
Another angle that would support this same outcome is that it seems to be considered rude to tell someone not to do something or that whatever they are doing is "weird." You make the accused a "victim," and suddenly, they have that as a bludgeon to wield against you. I'm not a proponent of bullying, but that tended to keep people more in line and enforced a sense of shared social norms.
I have no idea how to get back to "normal."
I don't disagree. However, I doubt something like this would ever get made while the folks signing the checks are the same people cheering on the DEI, et al. initiatives.
Honestly, I'm hoping there's going to be sea change in the coming years and we get back to something more normal. There are so many changes going on all over the western world with people getting fed up with their governments. Who knows..?
The issue isn't that race is central to fare evasion, but any difference, or perhaps even more importantly, the perception of differences in the prosecution of fare evasion, will be used to show that this is a racist policy.
I spent around seven years living in Seattle. There are a few gangs in Seattle, generally based in the southern area. As it turns out, most of the participants of the gangs happen to be black. This led to the black gang members being arrested and prosecuted for crimes in a disproportionate way compared to the overall population of the city. Seattle's solution to this was to disband the gang unit.
Seattle Police’s Gang Unit was revised to the Gun Violence Reduction Unit (GVRU) in 2020. GVRU does not actively track gang data within Seattle. GVRU conducts the majority of investigations regarding gun violence, whether or not its gang related. Gang specialist Gabe Morales says several local gangs are still active in Seattle. (https://www.kiro7.com/news/investigates/monday-530-gangs-still-plague-puget-sound-especially-among-teens/57BJEHV4IVA65IT2NHPZYI7LGM/)
The criminal irony of this style of thinking is that the (in the case of Seattle) primarily black gangs tend to commit violence predominantly to the black community itself. By not dealing with the problem of gang violence, the black community is being further set back. It's all in the name of "equity" in terms of punishment since there doesn't happen to be any prominent white gangs.
Now apply the same to fare evasion. The moment you have blacks being arrested for it, even if it is proportional to the population, you'll have the activists protesting that this is racially motivated. The end result is that certain crimes go unpunished -- and once that happens, it's defacto no longer a crime. It gets compounded when the individuals involved know they're not going to be prosecuted so they continue to break the law even more.
My sub $1000 drone (DJI Mini 4 Pro) can fly for over half an hour with the default battery (keeping it under the 250g weight limit where other rules kick in) and around 45 minutes with the slightly heavier battery. It has a range of around 20-30 miles if you maintain line-of-sight.
It's actually rather remarkable how cheap some of this stuff has become.
Absolutely! Anyone can spend their money however they please, and no one has a say in that matter. If I want to fund a study on if meth makes earthworms horny, I should 100% have that right. But insisting that the taxpayer spend that money (in whatever country) is bordering on insane, in my opinion.
Sure, string theory is kind of a gimme.
Other things that I would include for being either dumb or dangerous:
- Cosmological theories that cannot be tested
- Pathogenic gain-of-function research
- All of the *-studies fields where there is a focus on theoretical abstraction that doesn't mesh with reality (and usually is pushing a pre-determined angle to push an ideology anyway)
- Many of the departments focusing on behavioral studies and psychology that are simply publishing gibberish
I would also take a hard look at the publish-or-perish mindset of academia that is leading to the reproducibility crisis in journal submissions across the board.
The last bullet above is a part of this, and I want to elaborate further. This is one of the things where "studies" are being cranked out that don't advance, and in fact pollute and damage the fields. A good example would be Jonathan Pruitt's publications on spider behavior. It also begs the question that even if the spider behavior studies were valid, what useful information would we glean? Similarly, pulled from recent news, why would anyone spend a million dollars on studying if cocaine makes Japanese quail more sexually active?
This doesn't even touch the insane level of administration positions found in academia, which should also be trimmed, but that's not the focus of this thread.
(If you want to watch a longer YouTube about the spider issue, I highly recommend Angela Collier's telling of the tale: https://youtube.com/watch?v=qlas3TOi_CQ. She's a physicist and a great (IMO) storyteller and educator.)
I agree with that. I suppose my snark got out of hand.
Similar arguments can be said for other fields of academia as well. Take theoretical physics, for instance. You have an entire field of research like string theory, which makes few predictions and offers no ways of testing validity. The few predictions they've made have all been proven categorically wrong once we acquired more data. Underlying these styles of "study" seems to be looking for pretty math without considering reality. We're five decades in and nothing of value has come of it. This is similar to folks "studying" multiverses or what happened before the Big Bang.
They've fallen into the same trap as the social studies programs: doing something because it feels good, not because it's productive.
If some of these things were taken out as a degree and perhaps packaged up in a class in the philosophy department, I think people would be a lot happier.
I'm not talking about not doing research and science for the sake of it. But it's important not to mix up things that are real vs. philosophical discussions. Philosophical discussions should certainly happen! Hell, that's most of the reason for this site's existence.
Of course, there are also things like esoteric maths (number theory, graph theory, etc.). They tend not to be very "real," but they do have applicability in things like cryptography, computer science, or related fields. Graduates with those degrees can typically find jobs FWIW.
The ideal solution to this would be to simply reform social sciences departments and make them open to honest inquiry again, rather than destroying them altogether.
I'm not sure how this would be possible. The departments are all staffed by True Believers and I would expect not much to really change. The past 40 years of "research" in the field has been concentrated on Critical Theory as a way of advancing their field. Without using that as a crutch, I'm not really sure what even is left. All that would be left is demographic studies that is more statistics than anything, and I don't think you need an department to do that.
Even from an ideological perspective, I'm not sure the field makes sense. What is the point of "Women's Studies" when one can't even pin down what a "woman" is, for instance?
Even more broadly, the underpinnings of Critical Theory assumes that various groups are homogenous and can be talked about in aggregate. This might make sense in large populations. However, much of the *-studies fields then perverts this concept into looking at individuals and tries to apply the same analysis techniques without the law of large numbers coming to its aid. It's a house of cards that is built on something I don't think is even rational to start with. You are left with "research" that is unprovable, unfalsifiable, and based mostly on feels.
The differences between 3.5, 4o, 4o-mini, and o1-preview are pretty amazing. The "poisoned" state is pretty much still there -- the "draw a picture, but make sure there isn't an elephant" problem.
That said, there are ways of getting around this from an API perspective. I was toying with the idea of doing an RPG just for fun. The thing is that you can't have all of this in one giant chat because it will, as you've experienced, go off the rails eventually.
If I got off my butt and did this, the way I perceive as the most likely to succeed is to use it in conjunction with a wrapper to keep memory and a better sense of history. The reason I think this is because the number of tokens used for input (which is the entirety of the chat) is a really inefficient way to capture the state of the game. I think it's similar to running a game yourself. You have the adventure you're playing, and have a couple of pages of notes to keep track of what the players are doing.
The prompt per turn needs to take into account recent history (so things don't seem really disjointed), roughly where you are in the adventure (likely needing some preprocessing to be more efficient), and the equivalent of your pages of high level notes.
Running this with 4o-mini might actually work and be reasonably cheap.
Guilty as charged. I was excitedly a progressive when I moved to Seattle 12 years ago and moving there to be at one of the epicenters was cool. I even donated to Bernie... It turns out that living in a city that is so one-sided in beliefs as well as politics was a real eye-opener. The backlash from when Trump was first elected and doing nothing but just about literally doing the opposite of whatever Trump was for was maddening. You could almost see people ignore their own underlying beliefs to show to their neighbors they aren't Trump supporters.
I left Seattle five years ago as a conservative and moved to a rural outskirt of Nashville. I was equally excited to move this last time.
And cannabis is just a plant you can grow. Easily in fact. It even requires fewer tools and resources than making alcohol.
It's the other way around. Reddit was getting that much directly from me. I paid for Apollo years ago, which was far less than the new charges that Reddit would be charging Christian on an ongoing basis. Overall, his bill would wind up being around $20MM a year based on historical usage. That's far less than the money he's ever made on it.
I was establishing an upper bound for Reddit's average annual customer value.
21 days ago I got this message from Reddit when it auto-renewed my annual subscription:
Hi VecGS,
Thanks for being a Reddit Premium member!
Your yearly Reddit Premium subscription has been successfully renewed and you’ve been charged $29.99 (USD).*
You should expect a fresh delivery of 700 Reddit Coins every month.
If you have any questions about your subscription, feel free to contact us or check out the Reddit Premium FAQs.
Don’t forget, your subscription automatically renews each year. That means you can cancel your subscription at any time from your Subscription Settings. Just make sure you cancel at least 24 hours before your subscription period ends to avoid getting charged for the next year. You won’t be refunded for any remaining time on your subscription.
That $30 per year cost eliminates ads for me. That's around $2.50 a month. That's far smaller than the bill that the Apollo creator would be getting for my usage when I'm on mobile. I'm pretty sure that sets up a very convenient upper bound for what Reddit's costs are. Even with that, I would expect they make a profit on me.
This is nothing but a clear attempt to kill 3rd party apps in my opinion.
The provable lying that the CEO is doing is leaving a very bad taste in my mouth.
I guess it was a good run while it lasted.
Data point: I've been logged on here from multiple machines for many days with no issues. MS Edge in case it's relevant... but from another dev, it really sounds like a client issue.
- Prev
- Next
Over the long holiday break (I had to burn a lot of PTO before the end of the year or lose it), I got mostly done with designing and building a video game arcade cabinet. I've built some stuff before, a long built-in window seat for my Florida room. But this felt like really jumping into the deep end because so much of this isn't square -- on purpose. I've learned a lot about both designing furniture and woodworking in general.
It felt cool using some of the tools I've acquired over the years in anger. The biggest enabler of this journey was the Shaper Origin, which is a hand-held CNC. Second was the new table saw I got last year.
https://imgur.com/M03FtuI https://imgur.com/Sz8Xqqd
I'm at the point where the only parts that are left are:
I'm really hoping to get through all except finishing it over the weekend. The only part that really worries me is the drawer since that seems a bit annoying -- mostly because I've not done it before.
(and yes, the control panel was recut because it wasn't square; you can see a few mm gap in the front... since I had the bad one, I decided to install some controls to see how it'll feel.)
More options
Context Copy link