The Official Status Thread
-
@BernieTheBernie said in The Official Status Thread:
Calling
sync
after every replacement?Every time it writes the file, it has to ensure that the changes have hit disk. It doesn't have to do it after every replacement... but if the changes are well spread out in a large file then they might as well be.
It's very rare for a file undergoing such replacements to be easy to rewrite in place without lots of rewriting. Every change would have to be not changing the overall length of the text or the position of any non-replaced part of it. I don't know whether they allowed for that case.
If they do trickery with mmap(), it gets worse as the rewrites are not atomic. Forcing things to be done using an auxiliary file is much faster as that can pump bytes across. After that, a lot of differences will probably be down to things like buffer sizes, sync frequencies, and so on.
Or is the original file on a network drive?
Network drives make everything worse.
-
@topspin said in The Official Status Thread:
Or is the original file on a network drive?
Yes. Who knows what that fucks up.
That's the thing - "everything" gets slow with file access over a network.
Copy it to a local drive, do the replacements with your first script, copy it back: should be much faster that way (though the changes you made to the script / output to new file could still be faster).
-
@dkf
sed -i
does create a new file. Note theInode:
field.$ echo 'foo' > test.txt $ stat test.txt File: test.txt Size: 4 Blocks: 8 IO Block: 4096 regular file Device: fc02h/64514d Inode: 268631196 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 1000/pleegwat) Gid: ( 1000/pleegwat) Access: 2023-01-25 15:50:11.565195199 +0100 Modify: 2023-01-25 15:50:11.565195199 +0100 Change: 2023-01-25 15:50:11.565195199 +0100 Birth: 2023-01-25 15:50:11.565195199 +0100 $ sed -i 's/fo/bar/' test.txt $ stat test.txt File: test.txt Size: 5 Blocks: 8 IO Block: 4096 regular file Device: fc02h/64514d Inode: 268631201 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 1000/pleegwat) Gid: ( 1000/pleegwat) Access: 2023-01-25 15:50:28.199615480 +0100 Modify: 2023-01-25 15:50:28.200615505 +0100 Change: 2023-01-25 15:50:28.200615505 +0100 Birth: 2023-01-25 15:50:28.199615480 +0100
-
@PleegWat The Birth timetamp is different too (but not as distinctive as the inode number).
-
@dkf I'm not really used to that being a field yet.
-
@PleegWat said in The Official Status Thread:
I'm not really used to that being a field yet.
I must need to wake up more, but isn't that just the "Created On" equivalent?
-
Status: Bean new GPU decided to short itself overnight while idling.
Really?
Well, let's hope the user is good with their words and can get a good RMA.
-
@Tsaukpaetra said in The Official Status Thread:
Status: Bean new GPU decided to short itself overnight while idling.
Really?
Well, let's hope the user is good with their words and can get a good RMA.
Not sure I've ever heard someone describe "mining cryptocurrency" as "idling"
-
@izzion said in The Official Status Thread:
@Tsaukpaetra said in The Official Status Thread:
Status: Bean new GPU decided to short itself overnight while idling.
Really?
Well, let's hope the user is good with their words and can get a good RMA.
Not sure I've ever heard someone describe "mining cryptocurrency" as "idling"
It literally didn't get that far. Fresh install of Windows 11, just joined the domain before I left. Come in in the morning, dead.
-
@Tsaukpaetra said in The Official Status Thread:
Bean new GPU
-
@TimeBandit said in The Official Status Thread:
@Tsaukpaetra said in The Official Status Thread:
Bean new GPU
Autocorrect is winning today it seems.
It's a brand new PNY NVidia 3080 10Gb GPU. Problem has been isolated to the primary PCIe connector. If I plug in just the secondary, the lights turn on (but the card itself does not boot).
-
@Tsaukpaetra said in The Official Status Thread:
@PleegWat said in The Official Status Thread:
I'm not really used to that being a field yet.
I must need to wake up more, but isn't that just the "Created On" equivalent?
On linux traditionally you would see three stamps: atime, mtime, and ctime. These were the access, modification, and change time.
ctime was sometimes mistaken for creation, but it gets updated on attribute changes. These attributes include hardlink count, owner, access mode, as well as atime and mtime (by
utime()
and friends, not by normal data read/write).
-
@PleegWat said in The Official Status Thread:
mistaken
TIL .
I suppose having a creation time probably fingered someone the wrong way when the system was conceived.
-
@TimeBandit said in The Official Status Thread:
@Tsaukpaetra said in The Official Status Thread:
Bean new GPU
-
Status: Am disappoint by these Ghirardelli dark chocolate squares.
-
@izzion said in The Official Status Thread:
Ghirardelli
-
Status
I can't UAT <ios thing>, it says it can't verify the install.
Is your phone registered with the developer certificate? This product is old and crufty and needs special handling.
Yeah, I've done UAT for other tickets before for this product.
<tries a bunch of things, no dice>
...
Oh yeah, I just got a new iPhone and this is the first thing I've tested with this phone.
-
Status: Sometimes it's nice to be noticed, even if it's just automated probes...
-
Status: Mood.
-
@Tsaukpaetra
but ... you seem to Excel in it
-
@Luhmann said in The Official Status Thread:
@Tsaukpaetra
but ... you seem to Excel in itI thought so initially, but ended up at right angles, all turned around.
-
@Tsaukpaetra said in The Official Status Thread:
Status: Mood.
Sounds like a good opportunity to spread sheet on the network.
-
@Tsaukpaetra said in The Official Status Thread:
Status: Mood.
Best of luck for your new job!
Â
Â
In unrelated news, I think this is a good time to buy Intel stock.
-
@Zerosquare said in The Official Status Thread:
your new job
Huh? No this isn't me, that's someone else's Time Off Request comment.
-
status GUIs for git suck when you have nearly 5000 branches and you're trying to reset the upstream branch. The combobox shown on Ubuntu has no scrollbars. So you have to use the mouse to find what you want. (Normally, I'd just use the cmdline to do it, but I'm running a build on the current branch - I'm 5000 of 9000 steps thru.
edit: Oh, hey! PgUp works! Success - I finally got to the top of the list.
-
@dcon said in The Official Status Thread:
Normally, I'd just use the cmdline to do it, but I'm running a build on the current branch - I'm 5000 of 9000 steps thru.
Why not clone it and have a second local copy you can use while waiting for the build to finish?
-
@dcon said in The Official Status Thread:
edit: Oh, hey! PgUp works! Success - I finally got to the top of the list.
Doesn't Home work too? Or is that another Ubuntu-ism?
-
Status: Feel like doing system updates on the main server. It's been 235 days of uptime through a few power outages, but tonight let's intentionally reboot!
-
@error_bot uptime
You alive? Or did the VNET config shit itself like it always seems to...
-
I have been alive for <time dateTime="PT10M40.851S">10 minutes, 41 seconds</time>.
-
@dcon said in The Official Status Thread:
GUIs for git suck when you have nearly 5000 branches
5000 remote tracking branches or 5000 local branches? The latter would be a for sure, but it is definitely a lot of tracked branches to keep around in a remote repo too.
(The GUI for git in Eclipse mostly doesn't show remote tracking branches, at least in situations like you describe.)
-
@Tsaukpaetra said in The Official Status Thread:
@dcon said in The Official Status Thread:
edit: Oh, hey! PgUp works! Success - I finally got to the top of the list.
Doesn't Home work too? Or is that another Ubuntu-ism?
I'll try next time... I was evidently close to home before so only 2 presses of Up got me there.
-
@dkf said in The Official Status Thread:
@dcon said in The Official Status Thread:
GUIs for git suck when you have nearly 5000 branches
5000 remote tracking branches or 5000 local branches? The latter would be a for sure, but it is definitely a lot of tracked branches to keep around in a remote repo too.
(The GUI for git in Eclipse mostly doesn't show remote tracking branches, at least in situations like you describe.)
Remote. Seems most people forget to check the 'delete on merge' box when creating their PR. SmartGit, when selecting an upstream branch, shows all local branches plus all branches from origin.
-
@dcon said in The Official Status Thread:
@dkf said in The Official Status Thread:
@dcon said in The Official Status Thread:
GUIs for git suck when you have nearly 5000 branches
5000 remote tracking branches or 5000 local branches? The latter would be a for sure, but it is definitely a lot of tracked branches to keep around in a remote repo too.
(The GUI for git in Eclipse mostly doesn't show remote tracking branches, at least in situations like you describe.)
Remote. Seems most people forget to check the 'delete on merge' box when creating their PR. SmartGit, when selecting an upstream branch, shows all local branches plus all branches from origin.
I've been known to nuke all branches that have rotted away without changes for 6 months with no questions asked on projects where I'm calling shots.
-
Status: Stupid assholes.
It'S fReE iF yOu UsE WiNdOwS. BuT yOu MuSt BuY a LiCeNsE tO cOnTiNuE!!!!
-
open source
Do they have a github with downloadable installers, or is their open source just "Here it is, build it yourself peasant"
-
@hungrier said in The Official Status Thread:
their open source just "Here it is, build it yourself peasant"
It's "Here's a docker command, go fuck yourself"
-
@Gustav said in The Official Status Thread:
@dcon said in The Official Status Thread:
Normally, I'd just use the cmdline to do it, but I'm running a build on the current branch - I'm 5000 of 9000 steps thru.
Why not clone it and have a second local copy you can use while waiting for the build to finish?
See also: worktree
-
@Zecc fuck no. It's just asking for things to go wrong. Storage is cheap, multiple full checkouts are completely fine.
-
@Gustav I've never actually used it, as I don't see the point.
-
Point 2 in the comment is something I never actually considered in these things...
-
@dcon I bet that asshole also docks points for not writing "+ C".
-
Status Is my luck changing for the better? Is it an omen? I actually won a housing auction. Sure, it's just a small in the Goblet, but on Balmung.
Nah, it's probably just the universe getting ready to sucker-punch me.
-
@Benjamin-Hall said in The Official Status Thread:
Status Is my luck changing for the better? Is it an omen? I actually won a housing auction. Sure, it's just a small in the Goblet, but on Balmung.
Nah, it's probably just the universe getting ready to sucker-punch me.
Hopefully you can get a good resale price on your old cardboard box.
-
@izzion said in The Official Status Thread:
@Benjamin-Hall said in The Official Status Thread:
Status Is my luck changing for the better? Is it an omen? I actually won a housing auction. Sure, it's just a small in the Goblet, but on Balmung.
Nah, it's probably just the universe getting ready to sucker-punch me.
Hopefully you can get a good resale price on your old cardboard box.
I've been playing off and on since the end of ARR. This is my first house.
-
@Benjamin-Hall said in The Official Status Thread:
@izzion said in The Official Status Thread:
@Benjamin-Hall said in The Official Status Thread:
Status Is my luck changing for the better? Is it an omen? I actually won a housing auction. Sure, it's just a small in the Goblet, but on Balmung.
Nah, it's probably just the universe getting ready to sucker-punch me.
Hopefully you can get a good resale price on your old cardboard box.
I've been playing off and on since the end of ARR. This is my first house.
You must not follow the subreddit and the recent housing memes
-
@izzion said in The Official Status Thread:
@Benjamin-Hall said in The Official Status Thread:
@izzion said in The Official Status Thread:
@Benjamin-Hall said in The Official Status Thread:
Status Is my luck changing for the better? Is it an omen? I actually won a housing auction. Sure, it's just a small in the Goblet, but on Balmung.
Nah, it's probably just the universe getting ready to sucker-punch me.
Hopefully you can get a good resale price on your old cardboard box.
I've been playing off and on since the end of ARR. This is my first house.
You must not follow the subreddit and the recent housing memes
Ah, no. I hadn't seen those memes. But yeah, that's about how it was. For many many years.
I much prefer the auction over the "must use bot to spam-click the placard" system, however. At least once they opened new wards. Still need to do something about those people who have a brazillion one-member FCs on alts and occupy entire wards just to show off...
-
@Benjamin-Hall said in The Official Status Thread:
Still need to do something about those people who have a brazillion one-member FCs on alts and occupy entire wards just to show off...
Commie.
-
Status: Windows is telling me , but it isn't snowing and, as far as I can see, there hasn't been any. So I guess it's going to start then immediately stop???
-
@HardwareGeek said in The Official Status Thread:
Status: Windows is telling me , but it isn't snowing and, as far as I can see, there hasn't been any. So I guess it's going to start then immediately stop???
It's going to stop coming!