|
I like dark mode because light attracts bugs
|
|
|
|
|
Wordle 1,166 6/6
β¬β¬π¨π¨π¨
π¨β¬β¬π¨π¨
β¬π¨β¬π¨π©
π©π©π©β¬π©
π©π©π©β¬π©
π©π©π©π©π©
|
|
|
|
|
Wordle 1,166 3/6*
β¬β¬β¬β¬π©
β¬β¬π©π¨π©
π©π©π©π©π©
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
β¬β¬β¬β¬π©
β¬π©β¬β¬β¬
β¬π©π©π¨π©
π©π©π©π©π©
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Wordle 1,166 6/6
β¬π¨β¬β¬π©
π¨π¨β¬β¬π©
β¬β¬π©π©π©
β¬π©π©π©π©
β¬π©π©π©π©
π©π©π©π©π©
Within you lies the power for good - Use it!
|
|
|
|
|
Wordle 1,166 4/6*
β¬π¨β¬β¬π©
π¨β¬β¬β¬π©
β¬π©β¬π¨π©
π©π©π©π©π©
|
|
|
|
|
Wordle 1,166 3/6*
β¬π¨β¬π¨π©
π©π©π©β¬π©
π©π©π©π©π©
|
|
|
|
|
Wordle 1.166 4/6
π¨β¬β¬π¨β¬
β¬β¬β¬β¬β¬
β¬π¨π¨β¬β¬
π©π©π©π©π©
GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
The shortest horror story: On Error Resume Next
|
|
|
|
|
Wordle 1,166 3/6
β¬β¬π©π¨β¬
β¬π¨π©π¨β¬
π©π©π©π©π©
|
|
|
|
|
Wordle 1,166 2/6
π¨π¨β¬β¬π©
π©π©π©π©π©
A rare 2. This day is starting well!
Ok, I have had my coffee, so you can all come out now!
|
|
|
|
|
Wordle 1,166 2/6*
β¬π¨β¬π¨π©
π©π©π©π©π©
Happiness will never come to those who fail to appreciate what they already have. -Anon
And those who were seen dancing were thought to be insane by those who could not hear the music. -Frederick Nietzsche
|
|
|
|
|
After three rum and cokes, some of the language choices seem to be not completely illogical.
I'm sure when I come back to the macros I'm writing when completely sober tomorrow, VBA will make my eyes start bleeding again.
|
|
|
|
|
Dr. Plecostomus wrote: when completely sober tomorrow
That's too early, uou wont be sober any time soon until the beginning of the new year
|
|
|
|
|
VB is in many ways far easier to read than C# - verbosity for the win. Using keywords helps map control structure end points back to their starting point without having to count braces. Where VB does fall flat on its face syntactically is writing LinQ queries.
|
|
|
|
|
My favorite is CHILL (CCITT High Level Language) which allows you to label any block. The block is enclosed in braces, and between the closing brace and the semicolon, you may optionally repeat the label. If it doesn't match the label of the block, the compiler will produce an error message.
Using the labels is optional; for tiny blocks you can use the braces only, for compact code. A label can be made far more descriptive than just identifying the kind of block. And the label is useful for flow control: You can directly leave an outer block from an inner block (possibly in multiple levels) by specifying the label of the block you want to leave; yo don't have to do it level by level (which probably requires a mess of variable flags for getting past the iteration control at the intermediate levels).
In the C family, when a loop/if exceeds 10-12 lines I have made it a habit to repeat the if, while or for condition at the closing of the statement as an end-of-line comment, to get a CHILL-style readability improvement, but I can't make the compiler produce a warning/error if I do not make the nesting right.
Religious freedom is the freedom to say that two plus two make five.
|
|
|
|
|
The bad thing about Visual Basic is that it strays from actual BASIC too much. Panders to the least-skilled developers.
|
|
|
|
|
So ya know... that Zig thing. As we all know, in a non-GC language, if you wanna return a non-literal string from a function that bad boy needs to go on the heap. And in the lovely land of C that means the caller is responsible for freeing it up yo. Now, Zig doesn't have a concept of a borrow checker like Rust, but what it does enforce is that you use allocators since there's no global one. These allocators keep track of what's going in and out of it. So, it's a tiny bit of overhead, but essentially you get a memory air traffic controller as the trade off. And if the air traffic doesn't like what you just did, it be like no bueno hoss.
BEHOLD! This use case. Zig doesn't have localization yet, so I have to interop with C. Ok, cool, which means I'm gonna wrap snprintf and return a string from that wrapper... on the heap. Dun dun dun. Plot thickens.
const c = @cImport({
@cInclude("locale.h");
@cInclude("stdio.h");
});
pub fn formatNumber(ally: std.mem.Allocator, number: u64) ![]u8 {
var buff = [_]u8{0} ** 33;
_ = c.setlocale(c.LC_NUMERIC, "");
const n = c.snprintf(&buff, 33, "%'llu", number);
const len: usize = @intCast(n);
const result = buff[0..len];
return try ally.dupe(u8, result);
}
Ok, C interop I already talked about. But, here's the cool part. Notice in the return I allocate on the heap with the passed in allocator (the idiomatic way so the caller can choose which allocator they want) by duplicating the stack buffer used during the C interop.
Cool cool cool, nothing out of the normal yet! Here's the cool part. In a unit test for it:
test "formatNumber should work with the max 64-bit unsigned integer size" {
const ally = std.testing.allocator;
const result = try formatNumber(ally, 18_446_744_073_709_551_615);
defer ally.free(result);
try std.testing.expect(std.mem.eql(u8, result, "18,446,744,073,709,551,615"));
}
Notice the defer line. If I forget it I literally get a compiler error because this particular allocator requires an explicit free (not all do). But, it's a compiler error if you forget it!
I mean, don't get me wrong, I'm sure a good linter can handle some of this. But, it's baked right into the compiler to say "nah bruh dat whack".
Edit: Now that I think about this I should make this routine generic. But, y'all get the idea.
Jeremy Falcon
modified 27-Aug-24 20:31pm.
|
|
|
|
|
Jeremy Falcon wrote: compiler to say "nah bruh dat whack".
Suddenly I want VS to show error messages like that.
It would be more useful than some of the messages I've seen.
|
|
|
|
|
dandy72 wrote: It would be more useful than some of the messages I've seen. Amen, buddy.
Jeremy Falcon
|
|
|
|
|
And more importantly, which one of you fine folks also enjoyed it? I've been a fan of Gosling ever since The Big Short and it was a catchy, lighthearted movie.
I might fall from a tall building, I might roll a brand-new car,
'Cause I'm the unknown stuntman...
Jeremy Falcon
|
|
|
|
|
For someone who is quite Windows computer savvy, but no experience with VPNs, which startup VPN would you recommend. What will it cost?
Thanks to all who respond
Ok, I have had my coffee, so you can all come out now!
|
|
|
|
|
See if it gives the country of your choice... I don't have bad experiences with VPNs generally speaking..
Look for the cheapest one.
I see Windscrine can be availed USD 3 a month on monthly contracts. SurfShark runs great rate cut deals.
|
|
|
|
|
|
Depends what you're looking for. Do you want something like NordVPN that you "proxy" through to say Amazon, or are you looking for VPN Client/Server to set up a VPN connection among you and your clients/distributed office? If the latter, then OpenVPN/Access server might be a solution for you. Business VPN For Secure Networking
"A little song, a little dance, a little seltzer down your pants"
Chuckles the clown
|
|
|
|
|
Back in the day, nobody talked about VPNs until all these online services came out. Now it's a buzzword.
I don't use one, but just feel obligated to mention if you're getting a third party VPN for security... don't. If you're worried about security when accessing public wifi, etc. you better off rolling your own.
That being said, if you want a VPN to bypass region locks or regional website testing, then by all means they're great.
Jeremy Falcon
|
|
|
|