Does anyone know, or can anyone guess, the business case for predictive text? On phone apps, it is often incredibly difficult to turn off. Why is that, do you think? (The examples I have recent experience with are Facebook and Outlook mobile apps.)...
Is that really the case? Would everything one type to the keyboard be send to the companies and used as training data for AI? Does that any keyboard at all on the smartphone?
I think predictive text predates even Android and smartphones (but not exactly), when we had to press a key 3 times until specific characters appeared; called T9 and just a dictionary. Having or not having a dictionary suggestion was the difference between life and death. Now the modern smartphone has way more compute power and resources, therefore they can analyze text in more depth. It's just the logical next step to the plain and simple dictionary.
Solution was quite easy. Thanks to the user reply here: beehaw.org/comment/3535588 or programming.dev/comment/10034690 (Not sure if the links actually work as expected...)...
class PosixPath(Path, PurePosixPath):
"""Path subclass for non-Windows systems.
On a POSIX system, instantiating a Path should return this object.
"""
__slots__ = ()
if os.name == 'nt':
def __new__(cls, *args, **kwargs):
raise NotImplementedError(
f"cannot instantiate {cls.__name__!r} on your system")
Which sub classes PurePosixPath, which itself is basically just PurePath with a Posix flavour to it. And Path itself is PurePath as well. Not sure if I should copy paste them here.
Edit: So I added these to my reply:
PurePath
def __new__(cls, *args, **kwargs):
"""Construct a PurePath from one or several strings and or existing
PurePath objects. The strings and path objects are combined so as
to yield a canonicalized path, which is incorporated into the
new PurePath object.
"""
if cls is PurePath:
cls = PureWindowsPath if os.name == 'nt' else PurePosixPath
return object.__new__(cls)
def __init__(self, *args):
paths = []
for arg in args:
if isinstance(arg, PurePath):
if arg._flavour is ntpath and self._flavour is posixpath:
# GH-103631: Convert separators for backwards compatibility.
paths.extend(path.replace('\\', '/') for path in arg._raw_paths)
else:
paths.extend(arg._raw_paths)
else:
try:
path = os.fspath(arg)
except TypeError:
path = arg
if not isinstance(path, str):
raise TypeError(
"argument should be a str or an os.PathLike "
"object where __fspath__ returns a str, "
f"not {type(path).__name__!r}")
paths.append(path)
self._raw_paths = paths
Path
def __init__(self, *args, **kwargs):
if kwargs:
msg = ("support for supplying keyword arguments to pathlib.PurePath "
"is deprecated and scheduled for removal in Python {remove}")
warnings._deprecated("pathlib.PurePath(**kwargs)", msg, remove=(3, 14))
super().__init__(*args)
def __new__(cls, *args, **kwargs):
if cls is Path:
cls = WindowsPath if os.name == 'nt' else PosixPath
return object.__new__(cls)
I think in Python 3.11 and prior overriding new was needed in order to subclass it correctly, because it was buggy until 3.12. This was a workaround, if I remember correctly. I already tried without new and setting self__source, but couldn't make it work. I was close!
With your suggestion it works now! I will need to test the app a bit now and if everything looks fine, will update the repository. Did exactly what you said and replaced this part:
Edit: Forgot to answer your question. This could work without subclassing too off course, but doing it this way makes it more clean in my opinion. It's the natural way to me to extend functionality and use the extended version for the purpose its designed to. It's not strictly required and I would have done it otherwise too, if this was problematic and not working.
A short list with categories of my smol terminal focused tools, scripts and functions I have created over the years. There are some general purpose and very specific ones. This list was needed, because in Github it was a bit cluttered. Maybe, just maybe, you find something useful or inspiring in there.
I've seen this before. It's a nice visualization. As for the "biggest" script, its not as slow as you think. It's a single du call (alongside cheap sort, head and tac) and therefore quite fast. In example in my ~/Documents directory is almost 1 TB big and running time biggest Documents executes it in almost 2 seconds (for the first time after a reboot). Subsequent calls are quicker, 0.6s and then 0.07s. Edit: And BTW, it's a mechanical HDD, not SSD too.
Also I like the output of the files or folders and I can even use commandline arguments like biggest Documents/*.txt in example. So for me this is enough and exactly what I need.
This video documents the recent feats of 15-year-old Tetris master Alex T, and the discoveries players make by pushing the game farther than it has any right to go
Its a classic conflict of interests. But I believe he is a sportsman guy and truly was happy for the kid. Kinda felt bad though, but this is how things goes. Either way, congratz to both.
You know what I just realised? These "universal formats" were created to make it easier for developers to package software for Linux, and there just so happens to be this thing called the Open Build Service by OpenSUSE, which allows you to package for Debian and Ubuntu (deb), Fedora and RHEL (rpm) and SUSE and OpenSUSE (also...
Why would PKGBUILD solve the issue? The packaging issues are still the same, as every distro has different package names, revisions and not all packages in their repository. The dependencies are not solved with this.
A few weeks ago, some of us discovered that KDE apps just looked terrible when run in GNOME.
They should test this much more often and frequently. Unlike Gnome, KDE do actually care about their users, not just about themselves.
Dolphin now gives you the option to enable previews for folders on remote locations.
I wouldn't use this for internet connections, but when accessing my Steam Deck through Dolphin on my PC, then this could be fast enough for smaller directories I guess. Meaning as long as the remote location is in the LAN and not the internet, the performance wouldn't be too bad I guess.
Discover now handles the case where one of your Flatpak apps has been marked as “end of life” and replaced with another one; it gives you the opportunity to switch to the new one, or cancel and keep using the old one anyway
Wow! This is a topic we discussed a lot in the web. Not for Flatpaks but often for native package managers like in Fedora or Archlinux, where no longer supported programs are still in the repository (such as neofetch). I still wish this check from Discovery app would be on the side of the package managers+repository information like Flatpak+Flathub itself, as I do this in commandline only. But very nice to see how KDE improves on this front.
BTW a personal little problem from me: My Application Launcher menu is very slow with bad performance. It always freezes for half a second goes loads when I move mouse and freezes again. Does anyone experience this issue?
I didn't change from any desktop environment. But I think that I also use Gnome applications, not sure. cleaning .config or .local directory is not an option for me.
This is the equivalent of Sony requiring PSN account in countries where no PSN account exist. Just on a different technical level, but with the same outcome. This should be illegal.
I find it incredibly disruptive every time this page comes up and it's never completely capable of restoring my tabs. Is there any way to disable it so that it will instead update when I choose to restart Firefox?
You can enable saving the tabs when closing Firefox. I use Firefox like this since a decade or so. Open Settings > General > Startup and check option "Open previous windows and tabs" (its the first top most option on that page).
You can also open the Menu > History > "Recently Closed Windows" and probably open the last window this way? I don't know if this works after an update. But in the History menu could also be an option "Restore Previous Session", when a session is available (maybe after an update??).
Honestly, I don't know why Firefox does not ask to reload tabs, after restart of an update. I think it's an oversight.
I see. I am using Firefox like this for years and it works for me and I thought it would for everyone else by just enabling the option.
As said, you could also look into the History menu to restore last session or closed window. And if all of this does not work for you, either look into an alternative plugin (should be the last option in my opinion) or simply save all open tabs in a temporary bookmarks folder before restart / update. Such a manual solution is always ugly, but if nothing else helps...
Reddit has become one of the internet’s largest open archives of authentic, relevant, and always up-to-date human conversations about anything and everything.
Reddit CEO Steve Huffman says
But refuses to pay the users or at least moderators who build Reddit to what it is now. Instead, it pushes more advertisements and sells data to AI companies for millions of Dollars.
The license does not apply to posts and replies in Reddit, right? Thank god I created a blog to post about any stuff that I want, without license or restrictions from Reddit. Before the AI breakthrough and what happened to Reddit. But even if so, do AI tools understand such a license text and evaluate if they can or cannot use the material?
Well the companies and developers don't decide for every single material. In example what I expect is, that they program the scraper with rules to respect licenses of individual projects (such as on Github probably). And I assume those scraper tools are AI tools themselves, programmed with AI tool assist on top of it. There are multiple AI layers!
At this point, I don't think that any developer knows exactly what the AI tools are fed with, if they use automatically scraped public sources from the internet.
Most people don't need the newest and expensive tech. From the last 30 days of active games on Playstation brand, here a split PS3/PS4/PS5 (I just show a ratio that is set in relation to the numbers of players for the game), meaning left side is older console:
Edit: I have added simple math result in how many times the PS4 player base is big as the PS5 player base. Just out of curiosity and to provide a quicker way of scanning through the list.
(**ps3 players almost at 0 level for this game)
As you can see, all games are available for PS4 and they run decent enough, are multiplayer games and the new consoles do not offer anything substantial for these kind of players.
All the greatest recent games run super well on the Steam Deck
I get what you are telling here, but it's not 100% accurate, generally speaking. It might be true for you personally. I own a first gen Steam Deck myself and its just a complementary hardware to my PC (and wonderful at that). It does not run all greatest games at all or in some cases limited and problematic. So "super well" is a little bit exaggerated, but that does not take away how fantastic the device is.
I own an Xbox Series (got it for free, you can't argue with that), but still will wait for the PC port. I don't think it will take 3 years before it comes to PC, especially not in todays landscape with a strong PC in Gaming overall. They surely are already working in a way to enable such a port. So 1 year from console release date seems to be realistic.
fpath is not a replacement for a ls like command, but to change its output (I am an eza user myself). fpath takes output of eza to transform it into whatever I want. And its not just usable with an list program such ls or eza, but also operates on stdin like grep, even non existent files to maybe form something on a different place with same name in example. I still use ls (which is eza for me as an alias) for regular day operation.
fpath is useful for output from find command or baloosearch6 (KDE's file indexer, that only outputs full path of matching search). In this case eza does not help me. Sometimes it can get messy with using sed and grep mulitple times and Bash substitution to get file extension and so on. Or I use baloosearch6 "Super Mario World" | fpath -F{name} -x*.pcm to just show filename, excluding all paths matching *.pcm glob (not regex) for whatever reason I want to use. The thing is, this is just a moment to be in. Next moment I can easily adjust the output to output it with or without other information.
It's a bit hard to show examples that justifies such a tool. But it's not about making things possible, as there are other tools like ls, grep and sed and awk and Bash commands to do all the formatting and output. But its a little bit easier and more flexible to have fpath, which understands paths and has dedicated functionality to support that. It's more about being flexible and doing it in place easily. At least for me, because I know the tool.
Let's say I want to output some information about files that come as a result from my file indexer baloosearch6 (from KDE). It only outputs full paths. Let's say I want to show only its names and the file type information (or any other) next to it:
Human Rights are higher than any law. Just because its law in China, does not mean it is correct to follow the law. It is not we decide which laws to follow, but it is universally in entire world the right thing to support Human Rights, regardless of any law.
It is literally either follow this law or cease operations here. Both would end in the song being blocked anyway.
Which does not change the fact that Google does it. So the reason why Google supports China and their anti Human Rights laws is, because of money. That's what we criticize.
This would probably make the entire world talk about it and it would be worse in China, because this would only anger people and fighting against the country. We won't see that, because Google wouldn't dare. The money is more precious than any Human Right, regardless of law.
People really need to kill that notion that telemetry is automatically bad.
I agree with you. There are projects where I opt in and enable telemetry, such as KDE or opt in the Steam survey whenever asked. Steam in particularly does a good job on representing the data in front of me that is sent back.
If the information they are collecting is minimal, as non-identifiable as possible and actually being used to help develop the browser, it’s a good thing.
Problem is, its a bit ghosty what is actually being collected and sent for most people. Is it really non-identifiable as we think now? You know, sometimes later things get revealed and suddenly the entire time you was living in a lie (Privacy mode thing, where people had a misconception). If its enabled by default, this is especially bad, because this should be opt in. Telemetry is not bad per se, but it is bad if its enabled without user agreement.
opt-in telemetry is pretty much useless for trying to understand the majority of your user base.
Wrong. In example Steam does an opt in and the data is somewhat representative. You don't need to watch every user to know what is going on. A small sample is enough to understand the majority of the user base by extrapolating the data. Telemetry does not need to be exactly perfect to be useful, it just needs to help understanding trends or huge bottlenecks.
In case of Microsoft, this is a whole new dimension and not comparable to Mozilla. First Microsoft products are (usually) closed source. That alone is a black box and we don't know what is sent, compared to open source Mozilla projects we can actually understand what is going on and report. Secondly, Microsoft does it not only with the browser, but on the entire operating system, if you want it or not. It's not opt in, not opt out, its just selecting a few options to sent a few less data, that's all. Which BTW reset themselves sometimes for unknown reasons.
Putting Mozilla and Microsoft in the same sentence about privacy and telemetry is heresy (towards Mozilla)!
It’s the ideal solution morally-wise, but it still samples out a ton of users precisely because people are used to the idea of telemetry = bad
And that's a good thing. Because that is the decision by the user. The freedom of choosing in opt in fashion is much more important than collecting some individual data for a specific use case of a specific company. Opt in is not just ideal solution morally-wise, its the best solution we have in general and every company should strife this solution. Plus the data should be presented before sending, so there is no ambiguity. Steam, a closed source program, does that in the best possible way.
I just watched an excellent 2 hour (just needed to edit title, as I noticed it was 2 hours and not 1, wow time really flew away!) long documentary. The build up in stages and showing the evolution of the best players achievements, is intense and very well edited, narrated and written documentary!...
You can watch them piece by piece (meaning if its broken up by chapters like this), if its too long. I personally don't do that, but can absolutely understand it. Nowadays I also watch most videos at higher speed. Some talk really slow, I mean slow that I watch it at x1.4 speed and it sounds like someone else is talking at x1.0 speed. But this video, I didn't have a problem with the narration itself.
BTW I recommend Looking for an addon or like that if you watch on a browser. I have a more fine control over the speed values, as x1.25 sometimes is too fast. In example I often watch at x1.1 by default or sometimes at x1.2... and in really bad cases even faster.
Hello, i was looking for a wysiwyg html editors i could use for my personal website, perferrably just as a simple open source desktop program on linux (though anything else is fine). i DID find something called KompoZer but i was wondering if there's any other ones, thanks
As others recommended, using a web browser to edit is actually pretty cool, especially in Firefox. I myself use Wordpress in the browser instead, which has such a builtin editor.
Brodie is my favorite Linux YouTube. I personally don't agree with your statement about full of unnecessary fluff. However, some of the videos are a bit useless, but I have to come across any YouTuber or content creator in general who produces only good stuff. Besides that, his videos are educational, entertaining and on the point. He often does historical documentation too and covers some drama as well (to be fair, the drama stuff is just for fun and he does it a bit too often in my opinion).
Brodie also plays games and streams, but that is something I never watched and was not interested into watching. I rather play games myself.
I agree with you in this, that I don't like watching most stuff on YouTube and prefer short articles to read (unless they are written from an AI, which plagues most blogs now). But recent years I became more and more of a YouTube/video consumer and sometimes just sitting there and watching for pure fun is also cool. But I absolutely get what you are saying. Maybe I'm a bit used to his style now.
Often when I watch others, it feels such a waste of time. I have memorized to use jumping to next chapter with keyboard shortcut Ctrl-right, which is a godsend, plus SponsorBlock addon (not only for sponsors, but also for outros, recaps, interaction reminder and such). I even watch many videos at higher speed, often x1.2. Many people are talking too slow in my opinion, but Brodie is not one of them.
I did it again; exaggerate a simple idea and make it look more complicated at the end with too much text in the readme. I was bothered with the output of file listings and how unreadable they can get, especially with long paths and many of them on screen. At the end, I am not sure how useful this will be in the long run, but...
Did you mean 1MB? With correct settings, you get under 1MB Rust binaries and with even more compression using upx it gets to 300KB, probably less for much simpler applications. Rust applications aren't that big of a deal as people make it to be; within reasons off course.
Tabs are 8 characters, and thus indentations are also 8 characters. There are heretic movements that try to make indentations 4 (or even 2!) characters deep, and that is akin to trying to define the value of PI to be 3....
How can this even relate to the ideology of the first document? I am deeply saddened by these new rules.
The previous document was written in a time when only C was the language in the Kernel. Now that two different languages and eco systems exist, it makes lot of sense to not mix them up. The document with guidelines for C code was needed, because there was no uniform guide that every user used. But with Rust it is different. There exist rustfmt and practically every user is learning and writing code with it and every public documentation and library is using this tool; most of them with default values.
You don't mix C with Rust anyway, so why do you want force every Rust programmer and code formatted like C? I don't think this is an issue that needs to be fixed. Are you programming for the Linux Kernel? Do you do it in C and Rust? Otherwise, why do you think this is a problem?
Edit:
Also the very first paragraph and second sentence in the linked document says this:
Coding style is very personal, and I won’t force my views on anybody, but this is what goes for anything that I have to be able to maintain, and I’d prefer it for most other things too.
But you seem to ignore that and force everyone to write code like this, declaring it to be an issue in the code (which it isn't). Do you not think that other Linux developers didn't think of this? Why is this an issue that has to be fixed and how do you explain this? Why does the C coding standard apply to Rust, when Rust has its own established one?
To be fair, consistent styling across the entire project is not meaningless. But on the other side, I don't think this needs to be fixed here, because it is already consistent (within their language).
Hard disagree. 8 spaces is waste and 4 should be industry standard. Tabs should not be used for indentation, but spaces. On the other side, Tabs are configurable, so that's actually a plus point.
80 character limit instead of 100.
Why? 80 is an old standard with limitations that do not apply today anymore. We have wider screens and higher resolutions. While it makes sense to keep this to be consistent with previous code and language defaults for C, there is no reason to enforce this for the new adopted language, which already has a standard on its own.
And yes rustfmt can be configured and when I started with Rust I changed max_width to 80, just because I was used to it with Python. But there is no benefit doing this in Rust.
Why is predictive text so hard to disable?
Does anyone know, or can anyone guess, the business case for predictive text? On phone apps, it is often incredibly difficult to turn off. Why is that, do you think? (The examples I have recent experience with are Facebook and Outlook mobile apps.)...
[Solved] Subclassing pathlib.PosixPath broken since Python 3.12 (actually its fixed, but workaround broken)
Solved: Thanks to a user with this reply: https://programming.dev/comment/10034690...
[Solved] Subclassing pathlib.PosixPath broken since Python 3.12 (actually its fixed, but workaround broken)
Solution was quite easy. Thanks to the user reply here: beehaw.org/comment/3535588 or programming.dev/comment/10034690 (Not sure if the links actually work as expected...)...
My Linux Command Line Tools ( thingsiplay.game.blog )
A short list with categories of my smol terminal focused tools, scripts and functions I have created over the years. There are some general purpose and very specific ones. This list was needed, because in Github it was a bit cluttered. Maybe, just maybe, you find something useful or inspiring in there.
For a game that turns 40 years old next month, it's unreal what we are learning about Tetris ( www.youtube.com )
This video documents the recent feats of 15-year-old Tetris master Alex T, and the discoveries players make by pushing the game farther than it has any right to go
Did I just solve the packaging problem? (please feel free to tell me why I'm wrong)
You know what I just realised? These "universal formats" were created to make it easier for developers to package software for Linux, and there just so happens to be this thing called the Open Build Service by OpenSUSE, which allows you to package for Debian and Ubuntu (deb), Fedora and RHEL (rpm) and SUSE and OpenSUSE (also...
Apple limits third-party browser engine work to EU devices ( www.theregister.com )
lmao imagine that
This week in KDE: all about those apps ( pointieststick.com )
EA SPORTS WRC will be adding EA anticheat, game will not playable any more. On ProtonDB game is rated Platinum ( lemmy.ml )
https://www.ea.com/en-gb/games/ea-sports-wrc/wrc/news/ea-anticheat
Is there a way to disable the "Restart to Keep Using Firefox" page? ( lemmy.ml )
I find it incredibly disruptive every time this page comes up and it's never completely capable of restoring my tabs. Is there any way to disable it so that it will instead update when I choose to restart Firefox?
Reddit’s deal with OpenAI will plug its posts into “ChatGPT and new products” ( www.theverge.com )
Half Of PlayStation Players Still Haven't Upgraded To PS5 ( kotaku.com )
Grand Theft Auto VI Now Targeting Fall 2025 Release, Take-Two Confirms ( kotaku.com )
fpath v0.8: Reformat and stylize file path like text output. ( github.com )
https://github.com/thingsiplay/fpath/raw/main/img/blue_and_red.png...
YouTube Blocks Access to Protest Anthem in Hong Kong ( www.nytimes.com )
See what’s changing in Firefox: Better insights, same privacy ( blog.mozilla.org )
To disable it in about:config...
The History of Tetris World Records [by Summoning Salt] ~ a 2 hour documentary ( youtu.be )
I just watched an excellent 2 hour (just needed to edit title, as I noticed it was 2 hours and not 1, wow time really flew away!) long documentary. The build up in stages and showing the evolution of the best players achievements, is intense and very well edited, narrated and written documentary!...
Fallout 4 Fans Are Begging Bethesda To Stop Updating The Game ( kotaku.com )
Marvel Rivals: Content Creators Asked to Sign Contract That Prohibits Saying Anything Negative to Gain Access to Playtest ( mp1st.com )
Are there any WYSIWYG html editors? just curious
Hello, i was looking for a wysiwyg html editors i could use for my personal website, perferrably just as a simple open source desktop program on linux (though anything else is fine). i DID find something called KompoZer but i was wondering if there's any other ones, thanks
fpath v0.2 + update v0.3: Reformat and stylize file path like text output. (Python, terminal) ( github.com )
https://github.com/thingsiplay/fpath/raw/main/img/blue_and_red.png...
Back when both Brodie an Nicco feared Wayland ( www.youtube.com )
Here is the podcast URL...
fpath: Reformat and stylize file path like text output. (Python, terminal) ( github.com )
I did it again; exaggerate a simple idea and make it look more complicated at the end with too much text in the readme. I was bothered with the output of file listings and how unreadable they can get, especially with long paths and many of them on screen. At the end, I am not sure how useful this will be in the long run, but...
superfile - A pretty fancy and modern terminal file manager ( raw.githubusercontent.com )
https://github.com/MHNightCat/superfile
Linux kernel Rust coding guidelines are heretic.
Tabs are 8 characters, and thus indentations are also 8 characters. There are heretic movements that try to make indentations 4 (or even 2!) characters deep, and that is akin to trying to define the value of PI to be 3....
Microsoft says it needs games like Hi-Fi Rush the day after killing its studio ( www.theverge.com )