lazyvar

joined 2 years ago
MODERATOR OF
[–] lazyvar@programming.dev 7 points 2 years ago* (last edited 2 years ago)

But for iOS you’re forced to use Xcode for implementing certain things like permissions, build and upload.

You can do all that via VSCode as well if you so desire.

Permissions, configurations, etc. are essentially all just XML files and can be edited as such, building, running in simulator and uploading can all be done via CLI.

And if you're not comfortable doing it via the terminal in VSCode, you can also find some extensions.

Personally as a native dev I don't know why you'd want to of course, but to each their own.

[–] lazyvar@programming.dev 17 points 2 years ago* (last edited 2 years ago) (3 children)

I think you might be misunderstanding what this does.

You did a search for symbol references that contain "User" ignoring cases.

When you do a search for symbol references this way, Xcode will return two things:

  1. A declaration of all the symbols containing "User" and/or some context surrounding the symbol (ignoring Case)
  2. Show any places where your code references the symbol

And it did just that.

The first three .swift files show references to symbols that contain "User".
The forth one, User.swift, is in and of itself a symbol that matches the query and has symbols inside itself.
The last one UserViewModel.swift is in itself a symbol as well and all the parts that are nested within that you've annotated with underscores and question marks, serve to give you context about the symbol "UserViewModel", hence the ellipses.

It's essentially telling you "Hey I've found this symbol UserViewModel, it starts with a var named username, has a bunch of stuff following that (i.e. …) then has an extension, then some more stuff (i.e. …) and then ends".

Without knowing what's inside UserViewModel.swift I can't tell if it goofed with giving you a typical declaration, but that doesn't change the fact that its trying to give you context about a valid search result, the symbol UserViewModel, so that you can figure out if that's the one you're looking for.

Keep in mind that variables are considered symbols as well, but in this instance I don't think that's what happened here, otherwise it would've been marked with a P instead of a C.

If this is not desired behavior then I suggest you switch from "Containing" to "Matching Word" or instead consider using the search bar at the bottom of the Symbol Navigator. Another option, if you're searching while going through code, is to right click on the symbol in your code and click Find > Find Selected Symbol in Workspace.

Lastly it might be an idea to go over the Xcode documentation as a refresher. This would be a good starting point.

That said, Apple clearly feels that things can be improved by clarifying, because in the current Xcode beta they've changed the option label from References to Symbols (and added a few more options).

[–] lazyvar@programming.dev 7 points 2 years ago* (last edited 2 years ago)

The presumption of innocence doesn’t preclude the fact that criminal courts don’t find someone innocent, rather they find someone not guilty.

This is for the simple fact that it’s neigh impossible to establish someone’s innocence, whereas it’s easier to establish that there isn’t enough evidence to consider someone guilty.

This case is, and sexual assault cases in general are, a great example why we can’t expect criminal courts to establish innocence.

These are often cases with little evidence available either which way, because often there are no other witnesses. Even if there would be physical evidence of a sexual act, it’s still challenging to prove under what circumstances those acts have occurred, specifically on the matter of consent.

To expect a court to be able to say with certainty that something hasn’t occurred is unreasonable.

That is not to say that it isn’t good that we have these high standards before we impose punishment onto someone, but it is important to recognize what it means when a court comes to a decision.

Additionally the presumption of innocence is just that, a presumption to establish who has the onus to prove something, there is no additional meaning attributed to it in the legal principle beyond establishing who has the onus to prove the facts at hand.

In that regard it’s rather unfortunately named, as it would’ve been more apt to name it “the presumption of not guilty” but I suppose that doesn’t roll as nicely off the tongue

To add to that, that the presumption is specifically a principle that only has meaning in criminal court, because the burden of proof is generally higher than in civil court.

People can be, and have been, found liable in civil court for the very thing a criminal court has found them “not guilty” on, on the very basis that criminal court can’t establish innocence and that the bar that needs to be met in civil court is generally lower than in criminal court.

As such to bring up the presumption of innocence in a vacuum is kind of like bringing up the generally recognized human right of freedom of speech when a social media company bans someone and removes their post.

Yes, the concept exists, but it’s irrelevant because it doesn’t apply to the topic at hand, because the concept aims to govern a very specific circumstance that isn’t applicable here and withholding the important context surrounding it (i.e. the role it plays in criminal court for the presumption and the fact that it only limits governments for the freedom of speech) masks the limitations of said concept.

None of the above aims to reflect my opinion on Spacey’s innocence (or lack thereof), rather it aims to provide the necessary details to put things into context.

[–] lazyvar@programming.dev 2 points 2 years ago

Most likely different incentives and platform culture.

Customization isn’t that big on iOS, other than the occasional viral fad, so there’s less interest for custom keyboards and in return less development spent on it.

Monetization of custom keyboards is also really hard and due to limitations on tracking and collecting data the incentives that Android has don’t really exists on iOS.

So what you end up with is a handful of custom keyboards often by big players that have bags of money to throw at it or as a companion to a regular app (e.g. Grammarly, GIF apps) to fulfill a specific function.

[–] lazyvar@programming.dev 3 points 2 years ago (2 children)

They’re right about browsers, but jumped the shark on keyboards.

Custom keyboards come with some rules and limitations for obvious reasons, but they’re by no means the system keyboard in disguise like how browsers are all WebKit under the hood.

Here’s documentation on custom keyboards: https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/CustomKeyboard.html#//apple_ref/doc/uid/TP40014214-CH16

[–] lazyvar@programming.dev 16 points 2 years ago

Most of these services are US-centric because a lot of the necessary records to provide the information isn’t public in many countries outside of the US.

Birth records, death records, marriage records, divorce records, voting records, criminal records, etc. is considered public information in much of the US. Even address information can be found publicly and immigration records become available to the public after a certain time.

In a lot of countries, especially in many European countries, these are hard to access for people that aren’t the subject of these records, if accessible at all.

For example while court records are public in much of Europe, often times the names of private persons are censored because it’s not deemed necessary to know who the parties are to be able to check if the courts make fair decisions.
This automatically excludes criminal and divorce information from disseminating into the public.

Some countries will make some records public once the subject of those records have passed for X amount of years, but that’s still pretty rare.

As such services like these have limited use outside the United States.

[–] lazyvar@programming.dev 5 points 2 years ago* (last edited 2 years ago)

@mrmanager@lemmy.today was talking about European companies doing fine despite strong unions in Europe and there being a lack of companies toppling over due to the strong unions.

They actually undersold it, because in many Western-European countries everyone benefits from union negotiations, even people that aren’t members of a union because the collective bargaining agreements unions manage to negotiate will affect everyone working in the relevant industry by virtue of laws deferring to those collective bargaining agreements.

You in turn decided to reframe the discussion at hand from companies doing well to unemployment numbers and not just general unemployment numbers, but youth unemployment numbers because you felt it would serve your argument best.

But if you look at the trends for unemployment then the story isn’t as bleak as you’d make it out to be. For starters general unemployment averages under 6% with only two countries being above 10% (and below 15%).
Average youth unemployment sits at 13.9% with a hand full over 20%.

However, both general and youth unemployment are on a steady downwards trend since 2013.
One exception to this trend for general unemployment is during the pandemic, where it shows a bump and for youth unemployment there's an additional minor bump in 2022, which suggests a correlation with the influx of refugees from Ukraine. This is the European source on these statistics.

There will always be a higher unemployment rate in the EU compared to the US, especially when it comes to youth unemployment.

This lies mainly in the fact that most European countries have a civil registry system that automatically keeps track of certain data, unemployment being one of them, whereas in the US this data is collected by the Census Bureau for the Bureau of Labor Statistics by conducting a survey of roughly 60,000 households.
Another factor is a difference in definitions. A good example is the one from the website of the Bureau of Labor Statistics:

Garrett is 16 years old, and he has no job from which he receives any pay or profit. However, Garrett does help with the regular chores around his parents’ farm and spends about 20 hours each week doing so.

Lisa spends most of her time taking care of her home and children, but she helps in her husband's computer software business all day Friday and Saturday.

Both Garrett and Lisa are considered employed.

Neither of them would be considered employed in most European countries. There are other such discrepancies, for example the US doesn't include people under 16, whereas Europe looks at 15-24 for youth unemployment.

And then there's the cultural difference between the two markets about when people are expected to start working and subsequently the jobs that will be available.

Which makes sense. Companies still need people, but if it’s more expensive to get low-end workers you just won’t hire entry level workers unless they’ve proven themselves beyond a shadow of a doubt.

Your hypothesis is quite lacking.
As stated, the trends have been going down for a decade now, if your hypothesis was true we'd see an upwards trend.
Additionally, these labor protections, including protections against being laid off, have been around for decades, your hypothesis doesn't offer an explanation why, despite these protections, unemployment is going down.
Also, minimum wage, as is often paid for these kinds of jobs, is lower in most EU countries than in many US states, making it comparably cheaper to hire those kind of jobs in Europe than it is in the US, your hypothesis doesn't explain why, despite this, the unemployment rate is higher in Europe than it is in the US.

In short, your hypothesis nor the unemployment rate is relevant to what @mrmanager@lemmy.today was positing, so lets refocus to the topic at hand: the lack of companies toppling over like domino bricks despite the copious amounts of employee protection facilitated by strong unions.

Perhaps afterwards, we can talk about the lack of landlords, corporate or otherwise, going bankrupt despite the strong tenant protections as well as the lack of companies selling merchandise to consumers pulling out of the market despite the strong consumer protections, and so and so forth.

And then, maybe, just maybe, we can afterwards all come to the conclusion that these QoL improvements are attainable without some kind of economic doom scenario.

[–] lazyvar@programming.dev 3 points 2 years ago

Like some have pointed out there are ways to circumvent this, but it doesn’t make for a great experience, might cause issues down the line in particular with updates and there’s no guarantee it’ll keep working.

If you’ve purchased this form your company’s surplus and they refuse to unenroll from MDM I’d just give it back and ask for my money back, it’s not worth the hassle and the warranty is a nonsense reason since they can take the MBP off of their warranty service plan.

[–] lazyvar@programming.dev 6 points 2 years ago (2 children)

The point is that “6 months free ink” is misleading whichever way you look at it because it’s ambiguous since ink isn’t measured in months.

Even if your reading of it would be the intended reading, then it’s still misleading because it’s just a 6 month trial for a per page subscription. Or put differently: if you surpass the monthly allocation of pages, you would have to pay, making it not free.

Given that neither the trial component nor the per page component is mentioned in the image and given the fact that the offer is ambiguous, there isn’t much to like or dislike about the deal because the deal as presented is false and non-existent.

Moreover, you conveniently sidestep all the other issues I’ve mentioned.

Like the fact that people receive cartridges with their printer that will be rendered useless with no clear warning on the box that this will happen or how to prevent this, instead they’re listed on the box in the same fashion other printer manufacturers list their cartridges that don’t get rendered useless.

[–] lazyvar@programming.dev 2 points 2 years ago (1 children)

Fair point, thought it was a little over the top with him at times as well.

Despite that, have been enjoying it so far. I just try to take it as it’s presented, a goofy whodunnit played for laughs.

[–] lazyvar@programming.dev 30 points 2 years ago (7 children)

Can’t speak for the article because all it leads me to is a photo disguised as a video without much context and pop-up galore.

That said, it’s a bit more nuanced that you make it out to be. HP uses some very shitty dark patterns.

Used to be that printers came with a set of starter ink cartridges.

HP nowadays uses Schrödinger’s ink called “HP Instant Ink Ready” cartridges.
If you never sign up for the HP Instant Ink subscription (incl. trials), then the cartridges that in the box will just be like the starter cartridges you’re used to.

If you however sign up for the subscription **or its ** trial, then the cartridges are changed into Instant Ink cartridges and will refuse to work once the trial is up and/or cancel the subscription.

I can see how people would expect to be able to use the cartridges that came with the printer like they always have been able to before HP pulled this nonsense.

It’s bad enough that this isn’t clearly and explicitly communicated with the customers.

What’s worse is that during setup of the printer (and in the marketing materials for the printer) customers are offered and asked if they want X months ink for free, without much indication that this is a trial for a subscription service.

Even worse that is not ink based, but per pages printed. Or to put it more bluntly: it’s a subscription that, depending on the tier chosen, gives you X amount of pages to print per month (paper needs to be provided by yourself) and HP will automatically send you ink to ensure you can print that amount of pages.

However, in all the marketing HP emphasizes ink and ink subscriptions (or “free” ink), and only after spending time looking into details can you figure out that you don’t pay for the ink, but for pages.

Here’s an example of how they market it as “6 months free ink”:

That ink is not free, because if after 6 months you cancel the trial, that ink is unusable.

Of course they can’t get a full cartridge and then just cancel the subscription

Is that so self-evident?
Classically (and HP also still has this as an option somewhere hidden away I believe) these kind of subscriptions used to be supply subscriptions.

For X amount a month we’ll send you Y amount of supply and it was yours to keep and do as you see fit, nowadays it’s often marketed as “auto-ship” across many web shops and comes with a marginal discount, but there are also plenty of examples that just call it a subscription (e.g. razor blade subscriptions).

[–] lazyvar@programming.dev 3 points 2 years ago

Seems like this season is on track to be as fun as the last season.

 

cross-posted from: https://lemmit.online/post/80419

This is an automated archive made by the Lemmit Bot.

The original was posted on /r/siloseries by /u/alexeyalb2577 on 2023-07-03 16:43:37+00:00.

 

cross-posted from: https://lemmit.online/post/79907

This is an automated archive made by the Lemmit Bot.

The original was posted on /r/siloseries by /u/Andromeda321 on 2023-07-03 15:47:31+00:00.


Just putting this up because I’ve seen many posts speculating about the location of the Silo, but not putting it in the context of what we DO know, which is it’s in the northern hemisphere because the “W” is the constellation Cassiopeia. Which, for those unfamiliar, is a VERY northern constellation- more north than the Big Dipper, one of the first ones you hit going from the Little Dipper/Ursa Minor. Which leads to the following details:

  • The city is to the north of the Silo(s) (bc it’s just over the ridge where we see Cassiopeia), so per the panoramas at the end (with the mountains in the opposite direction of the city) those mountains are to the south. I mention this for those detailing how the snapshot of the city must be to the east of Atlanta- celestially this just doesn’t hold up.
  • We don’t know how high the rim is obscuring the city, but with the height of Cassiopeia I’m gonna bet if anything Atlanta is a bit too south for it to be visible that high and clearly. Even from say Florida today you need a decent horizon and good viewing to easily spot it, so definitely not south of there; similarly at European/ Canadian latitudes Cassiopeia starts getting pretty direct overhead. So I think mid-latitude lower 48 makes sense.
  • also worth noting, since the camera is fairly narrow angle that they clean, there’s likely never a view of the sun and the moon in the Silo, nor of the planets. In these latitudes those are always in the southern sky from you, with the furthest they go “north” is East and West. Maybe a brief one, but my evidence here is you know what’s way more obvious to a stargazer than Cassiopeia? The planet Venus, or Jupiter, which are honking bright in comparison and they move, on the same ecliptic line as the sun (moon is a tiny bit off but not much). More interesting and easier to track, but they aren’t mentioned! So makes me think the moon is never seen either, for starters.
  • That said there is a sun in the simulation. Unclear if that’s just bc they can view 360 degrees, or there’s enough fake things in the simulation that who cares about the sun in the wrong part of the sky. :)

Finally this all goes with the caveat that often constellations etc in movies and tv are just plain wrong- James Cameron famously obsessed over details of accuracy in Titanic for example but the sky was 100% wrong with the North Atlantic in spring. But I’m hoping if they included constellations as a plot point we can assume someone checked what would be accurate.

 

cross-posted from: https://lemmit.online/post/81397

This is an automated archive made by the Lemmit Bot.

The original was posted on /r/siloseries by /u/switchfoot47 on 2023-07-03 18:56:52+00:00.

 

Any SwiftUI related projects you're working on?

Something you'd like to share or perhaps need help with?

Share it here!

 

Share what you're watching with the rest of the community.

Anything that pleasantly surprised you? Or did something disappoint perhaps?

Found a gem that no one is talking about but everyone should know about?

Share it all in here!

view more: ‹ prev next ›