The Official Status Thread
-
@heterodox said in The Official Status Thread:
@ben_lubar said in The Official Status Thread:
@heterodox can you run any program on there? I suggest writing something in a language with a tar library and statically linking it.
It's Windows. There's no built-in tar library that I know of to link against.
Want me to write something in Go?
-
@ben_lubar said in The Official Status Thread:
Want me to write something in Go?
I would have to retype it... into the Go compiler I don't have. And I'm fairly sure without a deeper understanding of tar's foibles you'd have the same problem and end up with code much the same as what I have. Maybe I'll find another tar file to exemplify this after it's solved.
I'm just looking at 7z source code and bitching; I'll be fine. :)
-
@heterodox https://golang.org/pkg/archive/tar/
I'd never write my own file format decoder for any reason other than a hobby project. Too many edge cases.
-
@ben_lubar said in The Official Status Thread:
I'd never write my own file format decoder for any reason other than a hobby project. Too many edge cases.
You seem to fundamentally not understand the problem I'm having. The target computer is isolated. It doesn't have a decoder already. Therefore I have to write one. Or it won't have one. And it needs to have one.
Reinventing the wheel is unfortunately not uncommon in my job due to security constraints. It sucks, but it is what it is.
-
@heterodox remind us again: why are you using tar files in Windows?
-
@cartman82 said in The Official Status Thread:
I'll send him the fruits link and he'll send in the solution in an hour or two.
You have people coding in exchanging for fruits?
-
@heterodox said in The Official Status Thread:
@ben_lubar said in The Official Status Thread:
I'd never write my own file format decoder for any reason other than a hobby project. Too many edge cases.
You seem to fundamentally not understand the problem I'm having. The target computer is isolated. It doesn't have a decoder already. Therefore I have to write one. Or it won't have one. And it needs to have one.
Reinventing the wheel is unfortunately not uncommon in my job due to security constraints. It sucks, but it is what it is.
If it's isolated and doesn't have a tar binary, how in the fuck is it getting a tar file?
-
@ben_lubar said in The Official Status Thread:
I'd never write my own file format decoder for any reason other than a hobby project.
Did it for whatever is called the bigfiles in the old Duke Nukem 3D game. Got a lot of scripts that defined rules for the game, and had lots of fun defining weird values that changed the game. That was way before game modding were a thing.
-
@Weng said in The Official Status Thread:
If it's isolated and doesn't have a tar binary, how in the fuck is it getting a tar file?
Because someone's playing a sick fucking joke on me, clearly.
... Seriously, I can't think of a way to further explain my use case in a way that's going to be able to make sense. Rest assured I've requested a zip file with the same contents, but it's going to take a while, so let's just say it's a hobby project from now on and I just want to understand tar files better.
Example of a problematic tar file entry: http://ftp.gnu.org/gnu/tar/tar-latest.tar.gz when uncompressed. The entry for tar-1.29/m4/fnmatch.m4 has size 13606 octal, 6022 decimal, but if you look at the contents of the file that follow the header, it's 6021 bytes. Reading 6022 bytes results in reading an extra NUL byte and breaking all the following offsets.
It's just interesting, is all. Wondering about what edge case/math I'm not understanding.
-
Status
- , so.... on a scale of one to ten exactly how offensive was the comment?
- I see....
- Yeah. I totally deserved to be punched in the face. ... Can i have the cold compress back please?
- Just..... Just get out of here and.... don't do that again.
-
-
Status:
([A-Z]{2}[0-9]{2}[A-Z]{2})|([A-Z][0-9]{1,3}[A-Z]{3})|([A-Z]{3}[0-9]{1,3}[A-Z])|([A-Z]{3}[0-9]{1,6})|([0-9]{2,3}[A-Z][0-9]{1,4})
Yeah...
-
@heterodox Doesn't a
tar
file consist of 512-byte blocks?
-
@PleegWat said in The Official Status Thread:
@heterodox Doesn't a
tar
file consist of 512-byte blocks?Yeah, it does. You read the stated file size, then assume the rest of the bytes are NULL up until the block boundary and throw them away. Or at least I do and that works if the stated file size isn't wrong.
Today's a slow day, obviously. At this point I'm just curious if I can extract the tar file I already have and move along before the wheels of bureaucracy get me the zip file eventually.
-
@heterodox I'm guessing you already looked in the specification?
-
@wharrgarbl said in The Official Status Thread:
@heterodox I'm guessing you already looked in the specification?
That's a fair guess, yes. It's not very good, but I might as well review it again since I'm stuck.
-
@heterodox said in The Official Status Thread:
@PleegWat said in The Official Status Thread:
@heterodox Doesn't a
tar
file consist of 512-byte blocks?Yeah, it does. You read the stated file size, then assume the rest of the bytes are NULL up until the block boundary and throw them away. Or at least I do and that works if the stated file size isn't wrong.
Today's a slow day, obviously. At this point I'm just curious if I can extract the tar file I already have and move along before the wheels of bureaucracy get me the zip file eventually.
Does a standard tool generate a file with trailing NUL?
Wait a minute you're on windows. You are reading that thing in binary mode right?
-
@Perverted_Vixen said in The Official Status Thread:
Status
- , so.... on a scale of one to ten exactly how offensive was the comment?
- I see....
- Yeah. I totally deserved to be punched in the face. ... Can i have the cold compress back please?
- Just..... Just get out of here and.... don't do that again.
We had something similar this week when one pupil punched another one in response to some offensive remark.
I don't have the details yet but due to the fact that physical violence is expressly forbidden at schools, we'll have the full
star chamberclass conference treatment for both of them.Oh, and they pulled that stunt at the beginning of an exam.
-
@PleegWat said in The Official Status Thread:
Does a standard tool generate a file with trailing NUL?
Not one I can think of off the top of my head, but that doesn't mean it can't happen. One would think the format's been used a lot over the years and input is meant to == output on any input.
Wait a minute you're on windows. You are reading that thing in binary mode right?
Yes. Though I do suspect there's something wrong with my code now. In the example I gave above of tar-latest.tar/tar-1.29/m4/fnmatch.m4, when I extract it via 7-Zip, the output really is 6,022 bytes. I'm beginning to suspect I've done something very, very stupid and the files/specification are just fine. If that's the case at least I can give everyone a nice WTF to laugh at in this thread. :D
-
@heterodox said in The Official Status Thread:
@PleegWat said in The Official Status Thread:
Does a standard tool generate a file with trailing NUL?
Not one I can think of off the top of my head, but that doesn't mean it can't happen. One would think the format's been used a lot over the years and input is meant to == output on any input.
Just meant to say, if the actual input file contains a trailing NUL, it's no surprise your extract yields on either.
-
STATUS: Should have everything I need for my computer project now. Also, unpacking the new monitor had the foot fall out on my foot, which was ow and may leave a bruise.
-
@heterodox said in The Official Status Thread:
I'm beginning to suspect I've done something very, very stupid and the files/specification are just fine. If that's the case at least I can give everyone a nice WTF to laugh at in this thread. :D
Iiiiiit's an encoding issue (@PleegWat called it). What were the fucking odds. I don't know how or why yet, since I'm reading into a byte array and writing out of the byte array, but it's a fucking encoding issue. Fuck my dumb ass.
-
-
@heterodox here's the header for the file entry:
Note that it's aligned to a 512-byte edge (000a8800h is a multiple of 200h). It itself is 512 bytes long, and the file's contents starts at the next 512-byte edge (000a8a00h is a multiple of 200h). The file length is 13 606 (octal), or 6022 bytes, which should be padded with null characters to the next 512-byte edge -- 000aa200h (for a packed length of 6144 bytes). And, scrolling down to it, there it is:
HOWEVER, when I'm viewing it in hex mode, that offset is 696832 -- 000aa200h -- but when I'm NOT viewing it in hex mode, the offset is only 696831 -- 000aa1ffh. Somewhere in that range, there's a byte that is showing up in hex mode that isn't showing up in normal mode... I can literally select the Range, switch between normal and hex mode, and see the selection length changing from 6143 to 6144 when I'm not changing the actual selection at all...
This leads me to strongly suspect some kind of character encoding bizarreness...
-
@anotherusername It's the c in François, I think you'll find maybe?
Yay, tar file this idiot vendor gave me is extracted and I can move on with my real work. Out of curiosity, what editor is that? Looks useful.
-
@heterodox yep, that's it. It's showing up as
ç
, but when it's selected, it counts it as 1 character...edit: it was using ANSI encoding, but calculating the selection length in UTF-8 I guess (actually, that seems like it should be a ...). When I switch the encoding to UTF-8, then it shows up as one character,
ç
.
-
@heterodox said in The Official Status Thread:
Out of curiosity, what editor is that?
Notepad++, of course.
@heterodox said in The Official Status Thread:
Looks useful.
Of course.
Of course... you do also need the correct plugin...
It can be a bit glitchy sometimes, but it's quite handy.
-
statusbolded text****
fucking hell Canada Post. They redid their website for tracking packages. It's a shitty One Page App now. The old URL would be something like:
http://canadapost.com/track_package.php?tracking=123456789
The new URL, after you enter the tracking number and click submit is something like
http://canadapost.com/FuckingStupidThing?exec_step=2
Notice the lack of the tracking number in the URL. And note that there's no POST-- it's a single page app.
So guess what happens when I come back a few hours later and press F5 to refresh the page and get the latest status-- that's right, it's right back to the start of the process, asking me for the tracking number again.
Fuck you Web 3.0.
-
@heterodox said in The Official Status Thread:
If that's the case at least I can give everyone a nice WTF to laugh at in this thread.
That's what we're here for!
-
@Lorne-Kates
Have you tried giving Web 3.0 money?
-
Status:
-
-
status I guess we really want (only) new users. Cause our new webpage has no login button or link. Anywhere. (If I "create" my existing user, it fails and then there's a little-itty-bitty link to login an existing user at the bottom of the page)
-
@dcon said in The Official Status Thread:
@dcon said in The Official Status Thread:
status Call back at 5p. (I'm on jury-duty-wait-and-see)
Update 1: Call back at 11a.
Update 2 (after 11): Call back at 5p. (whew, don't have to be there by 1p)edit: Hopefully the status will be the same tomorrow - I have to interview a candidate in the afternoon...
Thu update: Still calling in (or F5ing, depending on website availability). Repeat after 5p today...
-
@dcon said in The Official Status Thread:
status I guess we really want (only) new users. Cause our new webpage has no login button or link. Anywhere. (If I "create" my existing user, it fails and then there's a little-itty-bitty link to login an existing user at the bottom of the page)
We're the opposite. Apparently new account verification was so damn confusing in VR that we just flat-out removed it as an optional action.
-
Status: Shenanigans.
-
@Tsaukpaetra Is
Size
only adding up the size of the primary stream - whereasSize on disk
is adding up all the streams?
-
@dcon said in The Official Status Thread:
@Tsaukpaetra Is
Size
only adding up the size of the primary stream - whereasSize on disk
is adding up all the streams?NFC. It's NAS. Who knows?
-
@Lorne-Kates said in The Official Status Thread:
It's a shitty One Page App now.
Virtually every OPA is shitty. I've written a few and they were indeed -laden…
OTOH, you can probably use a network analyser to see what the stupid page is doing (probably fetching some JSON or XML) and replicate that yourself, so letting you make your own shitty OPA. It'll still be shitty, but it'll be yours rather than some the rubbish spat out by some bored minimum-wage JS grunt…
-
@ben_lubar I'd give it Soft Drink as a correct answer.
-
@heterodox Speaking of this
Is there a non-shit archive application for Mac? Everything I've seen only extracts the contents to the same directory. I want to view the archive, damn it, not extract it, especially for JARs
-
@JazzyJosh said in The Official Status Thread:
@ben_lubar I'd give it Soft Drink as a correct answer.
Random Guild Wars 2 trash items == soft drink?
-
@ben_lubar With the tiny image, it looks like crushed aluminum cans to me.
-
@JazzyJosh Those icons are each on one of these three pages: https://wiki.guildwars2.com/wiki/Category:Sigil_icons https://wiki.guildwars2.com/wiki/Category:Rune_icons https://wiki.guildwars2.com/wiki/Pile_of_Bloodstone_Dust
-
@JazzyJosh said in The Official Status Thread:
Is there a non-shit archive application for Mac? Everything I've seen only extracts the contents to the same directory. I want to view the archive, damn it, not extract it, especially for JARs
I haven't used a Mac since Mac OS Classic, so I really couldn't say.
-
@JazzyJosh said in The Official Status Thread:
Is there a non-shit archive application for Mac?
yes, yes there is!
@JazzyJosh said in The Official Status Thread:
I want to view the archive, damn it, not extract it, especially for JARs
$> jar tf JarFile.jar
or to extract files from the
cookiejar$> jar xf JarFile.jar JarFile1.class JarFolder/JarFile2.class
PERFECT!
-
@RaceProUK said in The Official Status Thread:
Status:
([A-Z]{2}[0-9]{2}[A-Z]{2})|([A-Z][0-9]{1,3}[A-Z]{3})|([A-Z]{3}[0-9]{1,3}[A-Z])|([A-Z]{3}[0-9]{1,6})|([0-9]{2,3}[A-Z][0-9]{1,4})
Yeah...
Numberplates? I think I've used the same regex
-
@Jaloopa said in The Official Status Thread:
@RaceProUK said in The Official Status Thread:
Status:
([A-Z]{2}[0-9]{2}[A-Z]{2})|([A-Z][0-9]{1,3}[A-Z]{3})|([A-Z]{3}[0-9]{1,3}[A-Z])|([A-Z]{3}[0-9]{1,6})|([0-9]{2,3}[A-Z][0-9]{1,4})
Yeah...
Numberplates? I think I've used the same regex
For the UK and Ireland, yes
-
@Jaloopa said in The Official Status Thread:
@RaceProUK said in The Official Status Thread:
Status:
([A-Z]{2}[0-9]{2}[A-Z]{2})|([A-Z][0-9]{1,3}[A-Z]{3})|([A-Z]{3}[0-9]{1,3}[A-Z])|([A-Z]{3}[0-9]{1,6})|([0-9]{2,3}[A-Z][0-9]{1,4})
Yeah...
Numberplates? I think I've used the same regex
do you fellows allow vanity plates or are they just whatever you happen to get?
because if you allow vanity plates i'd hate to see that regex that handles those!
-
@accalia I doubt it will be that long before I encounter a customer with imported cars or special Snowflake registrations. If it comes to that I'll probably just ditch the regex or change it from an error to an "are you sure?"