The Official Status Thread
-
@Tsaukpaetra What exactly are you trying to do?
-
@Tsaukpaetra said in The Official Status Thread:
Status: Wondering if there's any better way of doing this...
ints
is an array of ints (original, yeah?).That's gonna break horribly if anyone is using a system with different endianness than you expect.
If you're not worried about that, you can make it look all fancy with Linq:
Metadata = BitConverter.GetBytes(ints.Length).Concat(ints.SelectMany(i => BitConverter.GetBytes(i))).ToArray();
-
@RaceProUK said in The Official Status Thread:
@Tsaukpaetra What exactly are you trying to do?
Essentially, it's shoving a bunch of ints into a byte array, prepended with an int that represents the number of elements.
@ben_lubar said in The Official Status Thread:
That's gonna break horribly if anyone is using a system with different endianness than you expect.
If you're not worried about that, you can make it look all fancy with Linq:
Metadata = BitConverter.GetBytes(ints.Length).Concat(ints.SelectMany(i => BitConverter.GetBytes(i))).ToArray();
Yeah, we know it will be uber fun if endian-ness doesn't match. But is the Linq query more efficient?
-
@Tsaukpaetra said in The Official Status Thread:
But is the Linq query more efficient?
No, but if you're going for runtime efficiency, C# is not the right language to use. C# optimizes for programmer efficiency.
-
@ben_lubar said in The Official Status Thread:
That's gonna break horribly if anyone is using a system with different endianness than you expect.
@Tsaukpaetra said in The Official Status Thread:
Yeah, we know it will be uber fun if endian-ness doesn't match.
And that's why
$DEITY
inventedBitConverter.IsLittleEndian
;)
-
@RaceProUK said in The Official Status Thread:
@ben_lubar said in The Official Status Thread:
That's gonna break horribly if anyone is using a system with different endianness than you expect.
@Tsaukpaetra said in The Official Status Thread:
Yeah, we know it will be uber fun if endian-ness doesn't match.
And that's why
$DEITY
inventedBitConverter.IsLittleEndian
;)Did
$DEITY
inventBitConverter.GiveMeLittleEndianGoddamnitDontMakeMeWriteCodeForYou
?
-
@ben_lubar beep beep i'm a sheep
-
Status: Next task: Figuring out how to extend a base class with properties that interpret the base class object, but don't re-allocate new memory when cast.
Essentially, I have a base class that has a single member (a byte array), from which two different classes derive from it, and have properties that reference that byte array for the purposes of slicing it up.
It seems to work, except I can't seem to cast the base class to the derived class explicitly (I think I understand why, but.... why?).
Ah well.
-
@izzion I don't follow what you expect Google to have done instead. Call you at your desk and say "we noticed your site's PKI is generating server certs without a SAN"?
-
@Greybeard
I'd settle for not stealth-pushing a change that is contrary to the default settings for the private CAs for over 90% of the server market, based solely on a small feedback thread that had a few posts.And then not being like well, our usage stats showed only about 2% of people using enterprise PKIs would be effected when they (should) know damn well that enterprise users are going to disable reporting usage stats by their default policy and/or their firewall.
-
@izzion Not seeing the stealth.
Changes in technology surprise people who aren't paying attention and make them scramble to catch up. Woe betides!
-
Status: So did it failed... or did it succeed?
Edit: Oh it definitely failed.
-
@Tsaukpaetra said in The Official Status Thread:
Status: Wondering if there's any better way of doing this...
ints
is an array of ints (original, yeah?).bytes[0] = (nints >> 0) & 0xff; bytes[1] = (nints >> 8) & 0xff; bytes[2] = (nints >> 16) & 0xff; bytes[3] = (nints >> 24) & 0xff; for( i = 0, j = 4 ; i < nints ; i++ ) { bytes[j++] = (ints[i] >> 0) & 0xff; bytes[j++] = (ints[i] >> 8) & 0xff; bytes[j++] = (ints[i] >> 16) & 0xff; bytes[j++] = (ints[i] >> 24) & 0xff; }
Pointer version left as an exercise to the reader.
-
Stato: Forza Ferrari
-
All my invoices got paid yesterday :D
I love getting paid.
-
Status: I'm picking up my parents from the airport later today. They sent me their flight information, and GMail helpfully set up an event on my calendar. Not for the time of arrival when I'd be picking them up
$here
, but a flight from$place
to$here
, and not even the right one at the right time, but a different one about 10 hours earlier.
-
-
@hungrier said in The Official Status Thread:
Status: I'm picking up my parents from the airport later today. They sent me their flight information, and GMail helpfully set up an event on my calendar. Not for the time of arrival when I'd be picking them up
$here
, but a flight from$place
to$here
, and not even the right one at the right time, but a different one about 10 hours earlier.Google's automatic calendar events for travel leave many things to be desired. Particularly annoying is that it creates all day events for hotel stays on the day of check in. So at midnight the night before the stay, you get a notification that you should be in a hotel.
Which leads to calendars that look like this on long multi stop trips
This is a case where the developers and designers working on the feature clearly have no idea about how it will be used.
-
Status: Got my Xamarin.Forms project up and running, had the basic structure going and wanted to add in some external UI stuff (turns out, a proper Scheduler is hard, who'd have thought).
No problem, though. Just pull in the proper nuget-Package and ... wait a minute. Why can I only add references to the Android and UWP sub-projects and not to the cross-platform one?
Turns out that right at the beginning, upon creating the project, I should have looked bit more closely at the default setting (which is "native") and chosen "PCL" instead. Damn. Good thing I wasn't that far along.
-
I went to the casino and won about £280 quid.
I just checked my jeans from the casino visit ... £280 in chips. I didn't cash them in FFS.
-
Status: Lol that's an incredible capacity/usable space ratio:
-
Status: hedgehog + pizza = happy :D
-
@Tsaukpaetra said in The Official Status Thread:
usable
I suppose the issue is that I'm copying files from Windows to Linux? I guess?
Ugh.
-
@Tsaukpaetra Turn off the restriction in Win 10.
-
@lucas1 said in The Official Status Thread:
@Tsaukpaetra Turn off the restriction in Win 10.
Eh. using FTP instead for now. Will try again once the initial copy is done.
-
@Tsaukpaetra said in The Official Status Thread:
copying files
...
.......
I'm assuming it's doing a chkdsk right now, because otherwise there is nothing to indicate what else might be going on...
-
@Tsaukpaetra said in The Official Status Thread:
assuming
...? If it completed successfully, why isn't the progress bar at a visual 100%?
FFS Windows!
Should have used a better backup utility...
-
I'm unsure whether this is a James Bond joke or not.
-
@RaceProUK said in The Official Status Thread:
Status: Wondering what to use when you want to take a screenshot of the Snipping Tool...
Spin up a VM...
-
status: pub time
-
@dcon said in The Official Status Thread:
@PleegWat said in The Official Status Thread:
Why am I having battery problems after less than a year?
Obvious. Built-in obsolescence to get you to buy a new one.
Doesn't the G5 have replaceable batteries?
-
@RaceProUK Wow, there's even a HuCard on there!
(While the Megadrive and SNES still used big ugly cartridges, NEC used thin memory cards, as seen in the bottom row, second from the right (to the right of Zelda: Oracle of Seasons)
-
@Tsaukpaetra said in The Official Status Thread:
FFS Windows!
I'm beginning to think Windows hates the VirtIO drivers, or somehow bhyve is broken. Both are very likely.
Stupid part is that this worked fine on another machine, so ...
-
@Jarry
Tsss wrong glass ...
-
Status: Well it's performing as well as it can, CPU wise at least...
I think if I can get the network drivers stable it might just be sufficient...
-
@Luhmann Next time I'm asking batman for the right one
-
@Jarry said in The Official Status Thread:
batman
wanted: a dwarf fortress world where there are enough bat men that I can play as bat man.
Unfortunately, there are no cat women, but there are some less domesticated versions.
-
TIL that kids cocoon themselves to emerge as nightflies later:
status: fixing a roof.
**also status: ** my butt hurts.
-
@Mikael_Svahnberg said in The Official Status Thread:
my butt hurts
Had an evening with @Perverted_Vixen? :P
-
@RaceProUK Are you insinuating that @Perverted_Vixen is a vixen with perverted tendencies? Why would you sully her good name like that?
-
@Tsaukpaetra said in The Official Status Thread:
Well it's performing as well as it can, CPU wise at least...
CPU pegged… It's running Windows Update?
-
Status: The tax return calculator estimates that I'm due about 1,120.00 € in tax returns. Let's see how much of that will actually arrive in my bank account. If I actually get that (and the promised 700€ from my health insurance) I have a bit of spare change on my hands :)
-
@aliceif said in The Official Status Thread:
Doesn't the G5 have replaceable batteries?
Yup. Google shows up one vendor with official ones for €20, one for €50, and everything else is third-party replacements starting at €30. Somehow this makes me suspicious.
-
@Rhywden
New gaming PC time!Or a reeeeeeeeeeally good night on the town with @Perverted_Vixen
-
Status: The Slacks segments during the DOTA major broadcasts make me want to punch babies.
Though the one kind of funny thing about this "guess the heroes" one was... he was using a Mac to view his notes or such -- but had a second, Windows PC that he was using to drive the TV that was displaying the item builds for players.
Macs, so powerful that they can't even drive different things on a secondary monitor.
-
@dkf said in The Official Status Thread:
@Tsaukpaetra said in The Official Status Thread:
Well it's performing as well as it can, CPU wise at least...
CPU pegged… It's running Windows Update?
Compiling. Really should have four tea cores in that screenshot, as then that red graph would actually be at 100 percent.
-
status: hating bluehost for not allowing programmatic updates to dns. Office got another IP address already, and I don't want to spend an hour driving there just to discover what it is and update it by hand...
In other news: Imma clean this room!
-
@Tsaukpaetra said in The Official Status Thread:
status: hating bluehost for not allowing programmatic updates to dns. Office got another IP address already, and I don't want to spend an hour driving there just to discover what it is and update it by hand...
In other news: Imma clean this room!
Get the secretary to hit an external server you control so you can look up the IP in the logs?
Send an email with a cat picture or something.
-
@izzion said in The Official Status Thread:
@Rhywden
New gaming PC time!Or a reeeeeeeeeeally good night on the town with @Perverted_Vixen
well, if you're prepared to post bail in the off chance we get caught i know some GREAT places to have fun on the town.
-
@PleegWat said in The Official Status Thread:
Get the secretary to hit an external server you control so you can look up the IP in the logs?
Haha we don't have a secretary, it's just "whoever happens to notice the guy that walked through the door and doesn't look like he belongs".
Nah, when I get in tomorrow I'm going to set in a ddns client to my own domain so I can obtain it that-a-way.