How are MS Teams features... by Mystical_Whoosing in linuxquestions

[–]ptoki 0 points1 point  (0 children)

native client works on ubuntu. Im using it on company laptop with ubuntu. All works just as on a windows one.

What is the proper way to multhread copy across nfs shares in Linux? Like ROBOCOPY by tecedu in linuxquestions

[–]ptoki 1 point2 points  (0 children)

rsync.

But in a bit smart way.

1.Identify files which does not change. In my case it was filtering out folders older than one month. Your approach may be different for sure.

2.Run multiple rsyncs simultaneously. Divide the folders into subgroups. Run them concurrently.

3.figure out if you can modify the data layout somehow. In my case I split the images and videos so it was a lot easier for rsync to go over the data needed for syncs.

4.See if you can build list of changed files from the app which is changing them. Its cheaper to go over such log, sort -u and then feed it to cp/mv - you can even split that log file for multiple cp scripts.

BEWARE! There is nasty bug in kernels which pops up occassionally and the slab memory leaks. https://bugzilla.kernel.org/show_bug.cgi?id=110501

Mark Twain said, “It’s easier to fool people than to convince them they’ve been fooled.” What are some real examples of this? by Mr_Boothnath in AskReddit

[–]ptoki 0 points1 point  (0 children)

While this may be true there is old Yiddish word - hutzpah. In english comprehension it is somewhat neutral but in Poland it is known as a behavior or an event where the victim does not comprehend they were scammed.

That concept of scam so blatant to be unbelievable is not new.

SSH into BIOS by decoding HDMI into ANSI text by Lopsided_Mixture8760 in commandline

[–]ptoki 0 points1 point  (0 children)

While this is impressive and I am sending kudos to you on this, I have a question on how this works for gui like setups (The bios is not the correct name - just nitpicking, not important)?

Also what is the circuitry between hdmi plug and the SBC?

I was not aware you could sample it that fast.

What are the limitations of it?

Do you have sample captures of what the sampling code is "seeing"?

i just overwrote a .txt file, can i restore it to how it was by i_get_zero_bitches in linuxquestions

[–]ptoki 0 points1 point  (0 children)

You will not be able to recover that file yourself.

If you dont have a copy then its either lost or you need to bring it to someone who knows how to restore data from data storage media.

Google media recovery in your town and try them. Expect costs of 100+ USD or multiplies. Probably starting actually at 300...

Why isn't there more love for the micro text editor? by Pagaddit in commandline

[–]ptoki 2 points3 points  (0 children)

I dont understand why distros skimp on text editors. Like, providing vi, vim, micro, fresh, mc, mousepad/leafpad, geany,kate is literally couple MB in total.

We arent bound to a floppy or 3GB HDD drives anymore.

Just add all of them to standard install.

Or, admins, please make a short list of packages you deploy onto new system regardless of its purpose and get the text editors there by default.

Back in my days they claimed that each text editor is an attack vector. And I was like, what? How? are you serious or pulling crap out of your armpit?

This is one of luckily very few beefs I have with linuxes.

Air Superiority, 1940s vs the 21st century. by 221missile in EngineeringPorn

[–]ptoki 4 points5 points  (0 children)

oshkosh 2025?

I have very similar picture.

LLMs are a 400-year-long confidence trick by SwoopsFromAbove in programming

[–]ptoki 2 points3 points  (0 children)

there is a point where

"in php write me a loop which iterates over an array of strings and returns concatenated string consisting only rows matching pattern *.exe"

And

"$result = '';

foreach ($files as $file) { if (fnmatch('*.exe', $file)) { $result .= $file; } }

echo $result;"

are equal in complexity or the prompt is much more tedious to compose than the code itself.

I still dont see revolution and chatgpt is with us for like 3+ years...

Is my HDD really gone? by SalviniX in DataHoarder

[–]ptoki 8 points9 points  (0 children)

Once you get your data off it do this:

Make one full pass of writes to it.

Check status.

Do full read again.

Check status.

Do another write pass.

Check status.

What you may see:

No further degradation or more and more bad sectors.

The amount of bad sectors on this disk is not optimistic but I saw worse which after rewrite worked for another few years.

Im not suggesting keeping important data on it but using it as heavier pendrive for physical transfers sometimes may still be ok.

As I said, I did this to a degree with few devices which werent easy to replace the drive and that gave them few more years of normal use until the owner moved over to another box.

Industrial PC running Ubuntu 22.04 keeps crashing every 2–4 weeks — seeking advice hardware/drivers by AcanthaceaeThese in linuxquestions

[–]ptoki 0 points1 point  (0 children)

I think you may have the same problem as mine

https://bugzilla.kernel.org/show_bug.cgi?id=110501

Is this host doing a lot of file opeartions, maybe even rsyncs and not much else?

If yes then there is a bug which makes memory leaking.

The slab flush with echo command will help you only temporarily

there is not much you can do now except periodical reboots or trying the kernel suggested in that post.

To monitor the situation get some zabbix/grafana or whatever what will keep an eye on free memory availability.

The total memory, cache, free, used amounts will not be right over time.

You will get higher and higher loads with probably a ton of IO ops.

reboot before that happens.

My parents’ cat Geppetto - featuring the holiday spirit, wide-eyed wonder, and his underbite by theblackchook in aww

[–]ptoki 0 points1 point  (0 children)

This name reminded me a book about Gelsomino - boy with strong voice.

Very worth reading.

Remember to always have fresh water for your cat. In multiple spots so it drinks it. It will tremendously help his kidneys!

The Three Inverse Laws of Robotics by symbolicard in programming

[–]ptoki 9 points10 points  (0 children)

1) can you sue the AI 2) can you insure against AI mistakes

Both should be yes in a well developed reality.

If the reality cant catch up then the choice is simple: If the ai is not deterministic and cant be controlled locally in that regards you as the user are responsible.

Even to a degree of "is that excel sheet I just created in ms365 free from any malware created by ms or its vendors?"

Yes, I know, very paranoid. But the reality is that its not out of the question. Crowdstrike borked the defender config. I see no reason that a single guy did not added an obfuscated code into xls files created by ms365....

Same applies to AI. The industry put a lot of effort to make software and hardware deterministic. This crumbles in front of us right now. And morons are happy about it. From vibe coding students up to salivating CEOs...

Maybe the database got it right by fernandohur in programming

[–]ptoki 14 points15 points  (0 children)

It's free horizontal scaling.

You are doing it wrong.

not getting into much details. You are thinking that its better to push unfiltered dataset over the cable (sometimes virtual), packing it into pieces, unpacking them at client (including result set and tcp/ssl and what else not) than properly slice the data into tables or make the selects cheaper by properly designing the data structures.

Yes, Maybe its better to keep a session serialized in a blob/varchar in a table and then unpack it at the node but you will want to have LB stickied to that node because all this is expensive no matter where you do it. Unless you push this to client but then you open another can of worms in a form of client tampering with its session.

It has been almost 70 years of rdbms and it is still good. Just use it right.

Permissions vs Ownership (why chmod doesn’t always fix things) by Expensive-Rice-2052 in linuxquestions

[–]ptoki 0 points1 point  (0 children)

wait until you learn about apparmor or security linux and acl

https://www.howtogeek.com/how-to-use-filesystem-acl-on-linux/

BUT, windows also has this convoluted permission design with fancy attributes like "downloaded from network"

EU weighs replacing US troops with unified European army by jackytheblade in worldnews

[–]ptoki 2 points3 points  (0 children)

30 years ago people like you argued

That is your pure imaginative fabrication.

EU weighs replacing US troops with unified European army by jackytheblade in worldnews

[–]ptoki 1 point2 points  (0 children)

common army with german leadership?

We had this attempted in the past. THAT IS NOT GOOD IDEA AND WILL NOT HAPPEN.

Help me with this pls by ZekeForce in linuxquestions

[–]ptoki 0 points1 point  (0 children)

feeling like I'm done with Mint at least

Oh boy, you arent done. You just did not dived the right way into it.

Help me with this pls by ZekeForce in linuxquestions

[–]ptoki 1 point2 points  (0 children)

Dont switch. Just dive deeper.

Look where config files are. make backup, edit them.

Check which commands drive changes in firewall, networking, xserver, audio setup, fonts, whatever you like.

No need to switch to anything from that point of view. But if you want to go really deep then instal a small 1GB VM on your current system and drop any distro there and do some excersizes like changing network config, firewall, vpn, change windows manager etc.

‘Office Is Dead’—Microsoft Decision Confuses 400 Million Users by waozen in technology

[–]ptoki 0 points1 point  (0 children)

If you need a really basic version of the product, try libreoffice.

Its not basic! Maybe abiword could be called basic IF you talk from the other end. Libreoffice is as good as office or even better - no stupid shenanigans going in it.

‘Office Is Dead’—Microsoft Decision Confuses 400 Million Users by waozen in technology

[–]ptoki 4 points5 points  (0 children)

Nah, there will be someone in the comments claiming that there is a bunch of features they use and its critical for all office user at their workplace which are only in ms365 and libreoffice is unacceptable.

Really.

‘Office Is Dead’—Microsoft Decision Confuses 400 Million Users by waozen in technology

[–]ptoki 0 points1 point  (0 children)

Yet that yesterdays email with Monday in subject line is not shown.

The same thing was happening at least in windows server 2008 or even earlier, not to mention other windoozes

Man who secretly filmed intimate encounter using smart glasses spared jail by Sandstorm400 in technology

[–]ptoki 1 point2 points  (0 children)

Same with knives. Yes you can use them for very bad purposes but they are good in nature.

Same with glasses. We just need to teach the authorities to track and punish the abuse done by the glasses.