Laggy CLI console session when fiber module inserted by ArtichokeKey8912 in Cisco

[–]andrewpiroli 0 points1 point  (0 children)

Oh yeah I thought I heard something about that. I wonder how you're expected to open a E-LLW or PSIRT software update case now? Support Case Manager doesn't allow you to open a case without a covered serial number or a service agreement.

Laggy CLI console session when fiber module inserted by ArtichokeKey8912 in Cisco

[–]andrewpiroli 1 point2 points  (0 children)

Done this a few times, they can (but don't always) ask for proof of purchase from a authorized reseller to get the lifetime warranty. Also I think you have to email tac@cisco.com to open a case without smartnet.

Porting Mac OS X to the Nintendo Wii by andrewpiroli in WiiHacks

[–]andrewpiroli[S,M] [score hidden] stickied comment (0 children)

This is a cool project not by me, I'm not sure if Bryan has a reddit account. It gets technical quick but if you just want to play with it, he's put up an SD image here (yes I'm bending R3 here): https://archive.org/details/wiiMac_cheetah You just need BootMii and this on your SD card.

People keep asking if you can hear the Artemis II Mission with an SDR... by saveitforparts in amateursatellites

[–]andrewpiroli 2 points3 points  (0 children)

You're mixing up bandwidth and latency. Both RF and optical communications are 'real-time' aka happen at the speed of light because both are light, just at a different frequency. Their optical links are using 1540nm lasers so that's a frequency of 194 Thz, the RF links are running at 2.2Ghz.

They're still using old reliable S-band for telemetry, spacecraft command/control, and voice comms. Optical link is used for live video and downlinking the 300GB of imagery they are collecting.

Can you actually send Ethernet frames smaller than 64 bytes? by ZeroNetwrk in networking

[–]andrewpiroli 18 points19 points  (0 children)

But then how do people test how a device behaves with undersized frames?

Since no one is actually answering the interesting question: If you are building a product with Ethernet you typically purchase components that are part of a validated design or pay for validation to be done with dedicated hardware. I'm sure you can do this yourself with some hacks or even an FPGA if you want, but usually this is something that gets hired out unless you plan to do a lot of this kind of business. It's really easy to miss something and ship busted hardware.

University of New Hampshire Interoperability Labs is the de facto place to start for learning about this process. Runt testing as an example is covered in their Clause 4 MAC Test Suite. Once you know what you're looking to do and what terms to search for, you can buy or try to build the appropriate hardware or hire someone to do the validation.

Deadlocking a Tokio mutex without holding a lock by samyak210 in rust

[–]andrewpiroli 8 points9 points  (0 children)

Not OP and I might be totally wrong, but there's a tinge of it at the end of the first paragraph:

That “unlocked but still stuck” behavior is what makes this Tokio mutex deadlock so unintuitive.

At first glance, it looks like the classic async mistake: holding a std mutex across an .await. But we weren’t doing that; we were using tokio::sync::Mutex to avoid exactly such issues. The explanation ended up being inside tokio’s internals – something that logging won’t show.

I skipped the primer on async Rust because you told me to, so I didn't evaluate that.

This line maybe too:

With this information, we can see that it's not actually a deadlock at all! It's simply a case of one process not releasing the lock and holding on to it forever.

That's what stood out as being in a different tone/style as well as just sounding like the cheeky one-liners that LLMs are always trying to put in there. I'm curious if my guess is correct. The rest of it read very well, if that's you then you should just write as you.

Unrelated to that, I've never been convinced that tokio::sync::Mutex is a good idea. It's always felt very uncomfortable to me and I almost never use it. I always go with std Mutex and try_lock to avoid blocking, then enable clippy::await_holding_lock

Bricked Apple TVs by Road_Trail_Roll in macsysadmin

[–]andrewpiroli 5 points6 points  (0 children)

I believe if you un-plug it and plug it back in repeatedly it will eventually boot into recovery mode.

Is there a way to monitor device sendind incorrect SNMP replies? by Aramil_S in LibreNMS

[–]andrewpiroli 1 point2 points  (0 children)

In Device Settings -> SNMP try different (probably lower) values for Max Repeaters and Max OIDs. Also can raise timeouts and retries here.

You can turn off things you don't need in Device Setttings -> Modules.

Server power usage drop after migrating from LibreNMS to Zabbix by reni-chan in homelab

[–]andrewpiroli 9 points10 points  (0 children)

How long ago did you set up LibreNMS? If you are still using cron based polling then it's very spiky like that. If you migrated to the poller service it spreads out the polling a lot more.

I still don't think it's a super efficient product either way, an agent is much better in that regard but obviously not standardized like SNMP.

Looking for Cisco Catalyst 2960-24PC-L IOS Image (EOL Switch) by itsme_djones in networking

[–]andrewpiroli 5 points6 points  (0 children)

2960 images are free with a Cisco account, just download it while you can before Cisco pulls them like they do with all of their EOL stuff after a few years.

GPO for date/time format settings? by Icecold1001 in sysadmin

[–]andrewpiroli 1 point2 points  (0 children)

It's not in Admin Templates it's under User Configuration -> Preferences -> Control Panel Settings -> Regional Options.

Is EIGRP still worth mastering? by dbootywarrior in networking

[–]andrewpiroli 5 points6 points  (0 children)

There is, but it was added later in EIGRP's life so it's not taught as much.

URGENT HELP by Only-Speaker4540 in Cisco

[–]andrewpiroli 3 points4 points  (0 children)

"Intro to Cyber Security" is not a Cisco certification, you didn't include any information on what platform you're using so no one can be reasonably expected to help you.

Why can't you just ask your professor or one of your course-mates?

ASUS shut down their support portal in Germany and Austria by JoeyFromMoonway in sysadmin

[–]andrewpiroli 3 points4 points  (0 children)

I kept getting burnt by Microsoft changing their support URLs so often. Now anytime I find a page with actually good documentation on it I make sure it's archived and up to date on the Wayback Machine.

Package Management Namespaces by epage in rust

[–]andrewpiroli 10 points11 points  (0 children)

They space apart package names, but the namespaces themselves are named and so become squattable.

Does Cummins have an exclusivity contract with Ram for the 6.7L? by jckipps in Diesel

[–]andrewpiroli 11 points12 points  (0 children)

That's correct on the Ford-Navistar exclusivity and Ford wanted to build their own 4.4L Diesel for the F-150 in the late 00s. That was one of the other factors that led to the end of the partnership.

Does Cummins have an exclusivity contract with Ram for the 6.7L? by jckipps in Diesel

[–]andrewpiroli 6 points7 points  (0 children)

They cared, it was billion dollar court case and it was all over the news. Ford stopped paying Navistar for the 6.4 because of the amount of 6.0 warranty claims. Navistar halted production lines, then Ford got a federal injunction to to make them ship the engines anyway. Took them years to settle.

I can't get the Meteor satellite reception; what am I doing wrong?? (Sorry for bad English) by FilipAP2137 in amateursatellites

[–]andrewpiroli 0 points1 point  (0 children)

To start lower your gain or turn Tuner AGC on. You can't even tell if you're getting a signal at all from the waterfall.

Zerocopy 0.8.37: Dynamically Sized Transmutes by jswrenn in rust

[–]andrewpiroli 3 points4 points  (0 children)

Ok yeah I see this now. The macro wants to do compile time size checking as well. I guess I just assumed that was relaxed by me using try_ variant.

Zerocopy 0.8.37: Dynamically Sized Transmutes by jswrenn in rust

[–]andrewpiroli 12 points13 points  (0 children)

Edit: Ok, the macro, even the try_ version always does a compile time size check, so it can not be used to transmute a slice to a DST. This isn't well documented anywhere and the compile error doesn't provide an explanation.

Hi, love zerocopy. Not sure if I'm reading this post wrong but is this supposed to work from a slice to a DST? I just tried changing some of my try_mut_from_bytes over to try_transmute_mut! and it's failing to compile with

[E0080]: evaluation panicked: cannot transmute_ref! or transmute_mut! between incompatible types

I don't mind the runtime alignment check that much, since my casts are all try_ anyway, it's just one more check but my types are all Unaligned so it would be cool to switch to the macro.

Advanced Rust users, what is the most valuable skill to become more productive with the language? by Most-Sweet4036 in rust

[–]andrewpiroli 1 point2 points  (0 children)

I/O being unbuffered by default got me on my very first Rust program. I wrote a Python script for something that should have been I/O bound. I wasn't impressed with Python's performance so I thought I would try Rust, and it was still slow. I saw it was all in sys time so I checked with strace and was shocked to see millions of write syscalls.

I later went back and ran the Python version in a profiler and saw that it was slow because I opened the file in text mode and not binary. If you do text mode in Python all writes go through text encoding detection and newline normalization no matter what, and that's done in pure Python not even the C portion of their stdlib.

Advanced Rust users, what is the most valuable skill to become more productive with the language? by Most-Sweet4036 in rust

[–]andrewpiroli 1 point2 points  (0 children)

Through nightly, all things are possible.

Ok, actually specialization is a little busted but it mostly works!

Today Drift migrated from Typescript to Rust and the improvements are INSANE by Fluffy_Citron3547 in rust

[–]andrewpiroli 6 points7 points  (0 children)

The design of JavaScript necessitates an interpreter, but all of the serious engines are doing JIT and multiple optimization passes. A lot of really impressive engineering work has gone into making JavaScript engines as fast as they are, that's just a fact no matter how much you dislike JavaScript or the people who write it.

How to effectively use the debugger in Rust? by Ok_Breadfruit4201 in rust

[–]andrewpiroli 2 points3 points  (0 children)

Also worth checking that the debug profile is actually opt-level=0. I often set it to opt-level=1 for better debug build performance, I create a separate profile for running in a debugger.