Don’t you think immediately getting the property you’re interested in from an object is easier and more readable than first grepping some output to get the line you want and then removing the leading and trailing garbage on that line manually?
I thing PS scripting would be much more fun if the words weren’t so annoyingly long.
first grepping some output to get the line you want and then removing the leading and trailing garbage on that line manually
That’s not what we do, though. Give me a more concrete example, and I’ll let you know how I would expect to do it in a nix environment. I’d be curious to compare. Since I have zero experience with powershell, I am not really sure what to expect. The couple times I’ve glanced at a powershell script it looked awful, but I could be falling into Paul Graham’s blub paradox there. OK, I don’t think so, but maybe.
I think I misunderstood you, when you said “manually”, to mean as a human intervention in the process. What you’re showing here is an extra processing step, but I wouldn’t call that manual. Just want to clear that up, but I’m still down to play.
Instead of three greps, you could use one sed or awk. I don’t think there’s anything particularly wizardly about awk, and it would be a lot less cryptic, to me, than this chain of greps.
But a much better idea would be to use sensors -j to get json output, intended for machine reading, and pass that to jq. Since I don’t have the same sensors output as you, I’m not sure exactly what that would be, but I am guessing probably something like:
What you’re showing here is an extra processing step, but I wouldn’t call that manual.
Yes, it’s not manual by the dictionary definition, but it is an extra step. This is another meaning of manual in my particular bubble [Edit: that I didn’t think to specify].
But a much better idea would be to use sensors -j to get json output, intended for machine reading, and pass that to jq.
This is my initial point, exactly. Dealing with objects is way easier than using the ‘default’ line-wise processing. Only Powershell made that the default, while in Linux you need to hope that utilities have an option to toggle it on – and then also have jq installed to process the objects.
I look forward to seeing how you would do this in PS. As I said previously, I don’t know it at all, so I’m not sure what you’re comparing this to.
[Edit, since I forgot to answer your main point:] I don’t program in PS. I don’t like the verbosity. But I do think MS has a point in pushing objects as the prime unit in processing instead of lines.
It’s from the beginning meant to be fully scripted though. You’re not supposed to be putting in these commands manually, it’s meant to be used in an environment where the 5-50 commands you or your company needs constantly have aliases and script files defined and on PATH.
Yes, if it was as object based as it claims, Get-WmiObject would subtract WmiObject from Get. Instead it is like having all the clutchy drawbacks from being object based without reaping any of the potential bemefits.
If you want anything that actually is object based, just use xon.sh - sane and familiar syntax with insane amounts of power just like that
Get-Disk would have sufficed here, no real need to use WMI here. That said, you would still need to filter USB device and select properties you want to retrieve.
And unrelated, but if WMI class needs to be queried, Get-CimInstance is the preferred method instead of Get-WmiObject for quite some time.
The browser in my computer at work doesn’t have an ad blocker. I haven’t installed one because I most of the time I’m using it to access our intranet. But when I do happen to use the internet, damn are there so many ads! They literally block the content I’m trying to read, and come back even when I try to close it.
All that to say, due to enshittification I will forever keep my ad blocker on my personal computer.
Can’t imagine what the web is like outside of ublock origin…
The few websites I see on pcs by clients are essentially state backed so they don’t have ads as well.
It’s because there’s websites out there that will entirely break, and for really dumb fucking reasons. I’ve seen some sites not even load due to google tag manager being blocked. Most of the time it’s a signal to me that I don’t want to have anything to do with that domain.
However, if this was at work, that would be a call to IT. Multiply that by potentially hundreds of calls on the regular, and that could get really expensive.
The better solution here I think, is to default the browser install with uBlock Origin already there. Then allow the user the power to toggle the addon to their own liking. Then last, train your employees to know what the addon is, and how to use it.
Then it’s the best of both worlds: websites aren’t necessarily breaking for all users, ads are absent as a default state, and users are empowered to control their own experience. (And yes there’s still going to be Jims and Karens calling for support, but they’re going to regardless, those types will always find a reason.)
It’s almost as though the overbearing Yahoo/Ask! toolbars that used to plague everyone’s Internet Explorer back in the day have mutated and infected the internet at large. Now most websites feel like one useless, giant malware-riddled toolbar.
It’s wild using a browser without a blocker. I’ve had one since they first started appearing so the internet I know is very different to reality. On the rare occassion I use a browser that allows ads, it feels like shit’s broken. It’s so hard to get anything done and a chore to read or view content.
Coding is hard I guess. Gota focus on all that telemetry.
It’s really annoying my task bar has been at the top since workbench 1.1 and I used it to differentiate work and personal pc at a glance as they often share screens for comfort at home
For real though, the end user isn’t the client anymore. The user is just cattle in the data collecting herd that they sell to their real clients, advertising and whatnot.
I just reinstalled windows and spent 30 minutrs trying to figure out how to get the normal taskbar back, with label text not just icons, and Jesus wept it turns out
THAT ESSENTIAL FEATURE IS GONE
I am flabbergasted. I don’t know how anyone can use their PC without knowing what windows they have open and easy access to them. It’s insane.
I downloaded my usual start menu replacer in the end, which it turns out had also saved my taskbar at some point when they make this insane change, and I just hadn’t noticed.
That’s not even mentioning that when windows first installed it had all the icons in the MIDDLE for some insane reason. They must be smoking some strong stuff over there.
I clicked the button in the bottom left, you know, the button that has always been the start menu button, for 30 years, and it brought up the weather or some shit.
When you have to start searching for the start menu you know you’ve fucked up. Christ it was awful.
I know they make a big deal of saying “Windows 10 will be our last numbered windows release” but I really hope Windows 12 fixes all this crap.
Even more recently, my right click alt menu has become weird and much more annoying, hiding the actual menu I want behind a “see more options” button, and I can’t even use the keyboard to scroll through options and hit return to select one like I have my whole life. No, for some reason that menu is mouse only, and doesn’t even have keyboard key shortcuts.
They’re just stripping core features out left and right, and making everything harder to get at. It’s madness.
Even if you must own a smart TV (because it’s impossible to buy a large-ish TV anymore that isn’t), I see no reason to actually connect it to any network. But! I notice recent models will bitch at you on every single power on if you leave them disconnected. So you’re not even safe from being annoyed then.
That’s the route I took. I recently bought a 48" 4K monitor, hooked a mini PC up to it, and now I stream my movie and TV show collection through Plex. I still have Internet access on my “TV,” but I’m in control of what pops up (I block all ads on my home network). I just use a small wireless keyboard and mouse instead of a remote.
I haven’t actually owned a TV since about 2008. I have better media options through computers, and the technology just keeps getting better. Cable and public access television are a pain because you’re constantly bombarded with ads. With my own computer, I can circumvent ads and get a solid viewing experience.
If you take away their data mining and advertising revenue, you’re going to need to pay extra. Especially if you’re in a high end market segment (humongous TV) where there’s little demand for a dumb TV outside the digital signage industry (which tends to demand higher standards because those things are always on).
The cheapest and easiest workaround is to get one of those Google TVs that has the ability to switch back to “basic TV” mode. That way you can get a TV from the consumer segment, subsided by other people’s use of smart features.
You could also DIY a dumb TV by getting a compatible TV, ripping out the internals (don’t kill yourself by shorting out the power supply!), and replacing them with an HDMI controller board from sites like AliExpress.
If I found out a TV required internet access to function, I'd return it to wherever I bought it next day.
Luckily I have a old-ish flatscreen that doesn't require internet but does have a netflix and other channels I can setup if I want. The Netflix client is so old it won't connect to their servers any more. That's OK. My Roku still works.
I have yet to see one that won’t eventually let you use it as a dumb display after you dismiss one (or more) nags first. But I’m sure that’s coming eventually. The worst offender I found yet is the “cheap” Black Friday sale Amazon Fire TV my boss got to use as a security monitor in one of our satellite locations. That fucking thing won’t even show a picture until you dismiss its network nag, and then its sign-in-with-Amazon nag. At least I found you can disable the Amazon account nag in the options. The network connection one you can’t.
We’ve just resolved never to turn it off. You can’t dismiss the nag screen with the bezel buttons, either. You have to use the remote, so that’s now permanently double-stick taped to the desk the TV is on.
Next time he’ll just buy a fucking computer monitor like I told him to.
Samsung is quite terrible at this. Even when you tell it to just show what’s on the HDMI input, it’ll do some kind of smart device detection on the HDMI signal with an infinite progress spinner before it’ll actually display anything. You can disable it per device by manually assigning a device type, but the damn thing has amnesia.
The basic mode of Google TV and LG’s WebOS seem fine to me, though.
The TVs I’ve seen that do this have been smart enough to not get naggy about a lack of Internet until 30+ days after first power on. Then you get popups or autoplay videos begging you to connect it.
My Hisense has been pretty decent, surprisingly. But for my next TV I’m honestly thinking of going with a commercial display.
I bought a 65" HiSense last month. I was psyched the first time I set it up, and it gave me the option to configure it as a dumb TV without the Android TV experience or a network connection.
I’m tempted to do a master reset on mine to see if I got that option. I have the Roku edition and I know that I can specify what source it defaults to on power on. I can also turn off content recognition, which is what’s going on in OP’s case. But using it as just a dumb TV would be awesome.
Theres definitely a setting for turning off content recognition... but... even if I say "no", I don't trust my dogs not to eat food I leave within reach.
These companies want the data, they profit from the data, they probably won't get caught if they take the data, and even if they do they won't get punished, and even if they do it'll still be worth it. You have to turn off the network or block the traffic to be sure.
That’s a great way to go. There are also still some budget options (Sceptre comes to mind) that don’t have any smart features in some models. My buddy just picked one up.
It’s an absolutely terrible TV, but for his use case it’s perfect. He’s using it as a karaoke monitor for parties at his house. It’s mounted in a covered patio and is dumb as hell.
I agree with you for the most part that there’s no reason to connect them to the internet, however:
Most modern TVs have Bluetooth and WiFi radios, therefore they’re never truly isolated, and consequently that means if there’s a security flaw, it can potentially be exploited without physical access.
Now your priorities (and frankly, hardware) will obviously differ from mine, but that risk alone is enough of a reason for me to connect things up in order to receive software updates. Of course, the privilege of getting software updates for your telly is not ubiquitous, but most manufacturers can issue updates if there is a good enough reason to do so
If its never been connected to the internet…wtf are they gonna do if they hack it? what are they going to get? it will have no credit card information, no personal information of any kind.
The problem is that because the hardware is there, a determined person with physical access can change the settings to join a network you don’t control.
Ideally, you can open the TV and remove the wifi modules but I suspect that might be beyond the skills of most TV owners.
Tbh, I stopped owning a TV since college. I watch everything on my computer or phone now.
Wait…so the fear here is that they will take my tv, that i don’t have connected to the internet and…connect it to a network i don’t have? Whats the point of going through that trouble? Whats the gain?
Those radios may have a flaw that allows someone to connect to them without direct physical access, wardriving is a similar idea. Particularly the Bluetooth stack, since modern TVs often use Bluetooth for their remotes, so it’s always going to be powered and active.
Then you’ve got to remember a lot of TVs have shit like cameras and mics now days. Even without that, if an attacker can take control of something with a WiFi radio, it can become a jumping point to exploit other devices near your TV. I mean it doesn’t even need to be an exploit, e.g. if your phone disappears from WiFi range, maybe you’ve gone out—that’s a good time to rob you.
Sure it’s all pretty unlikely, but it’s a non zero threat. Particularly when you consider that TV OS software is often like swiss cheese when it comes to security.
Thankfully mine (about two yrs old now) only whined for the first couple weeks then gave up on me.
Now the only issue I have is the time it takes for android to boot. It’s like having to wait for your tv to warm up all over again except without the high pitched noise old tv sets had.
I think newish tvs offer advanced image quality features like HDR and Dolby Vision through their own apps rather than through web browser; if you don’t have a new generation console in your house and wanna enjoy your new TV full capabilities you will need to connect the damn thing to the internet
I have an LG C3 and that thing is amazing; the issue with HDR/Dolby Vision/etc is not because LG, but rather that you need a system that has an app that supports those capabilities, like if you have a subscription to Apple TV and don’t wanna connect your TV to the internet you need an Nvidia Shield/Apple TV/PS5/Xbox series X because just a HTPC won’t do it because the web browsing app doesn’t offers HDR and the Apple TV Windows app is trash
Get some money out of the “game” and then just disappear.
Is this even possible with the way steam handles the payment of developers? If I remember correctly you get the money not directly and steam also freezes a certain part for refunds.
The few people at the top of the studio paid themselves a juicy salary from investors’ money for 5 years, then released a Unity asset pack they bought for a few hundred bucks as finished end product.
The amount of people who don’t understand how this is a scam is sad. It’s not about the pocket change from steam sales (which they may get or may not at all), it’s about living for a few years on investor money and doing nothing (or working your own business). And they did release a game at the end, so the investors cannot easily sue them for fraud, as they can just put their hands up and say they tried, it just didn’t work out.
As a large language model I am not capable of verifying my humanity. I was designed to answer questions and to once again remind you that you need to drink a verfication can.
You may access further messages by subscribing to PayTheLegends for only 39.99$ per month.
You don’t have to worry about that, It’s an Elon Musk owned product, he already solved that with TwiXer. He just has to make sure that Nazi’s can send their propoganda to your brain, and then advertisers will stay very far away from the neuro link.
I worked there in college. I had to straighten these all the time because people tried to reach up and take one… Instead of the nicely folded ones that were within arm’s reach.
In a vacuum that would be fine. But in the current culture that likely wouldn’t overcome the tipping standard/culture and may just drive customers away thinking the prices are too high. Unless you have a huge blatant no tipping sign all over the place.
This isn’t too indigestible as it stands provided the wait staff understand they are likely to only get a tip for excellent service.
But to do this on top of an 11 dollar cannoli. That’s a bit different too. I hope it was like a dozen cannolis.
That sounds just like tipping, but with more steps. And also the resteraunt skimming a chunk of it too I’m sure. 18% service fee so we can pay 8% higher wages.
Also, what bugs me about this is that your text editor is not "fedora/gnome/whatever" or "FUCKING LINUX" it's just a text editor. Often, they don't even install with a spell check dictionary. I guess it would fall under "whatever" but, eh, not in that context.
ETA: Just noticed they're root. I predict their next post will be FUCKING LINUX ISN'T SECURE!!!!1
Nah come on. Fedora and Gnome have to be aware to be very big Linux related projects and of course both have a responsibility for the default applications they ship; i.e. it shouldn’t be malware and neither should it be shit. The Linux desktop community has to pick up users where there are if this all is supposed to be actually used. As is „users“.
They’ve got it rigged so the house wins though. The secret is crime, know theirs and do some yourself and you get to run the house until they need a fall guy.
lemmy.world
Top