• 2 Posts
  • 63 Comments
Joined 1Y ago
cake
Cake day: Jun 11, 2023

help-circle
rss

Yeah, I was never a fan of the Whopper for that reason, but the IW is pretty good!


Yeah I always get that bun! If you go often, I strongly recommend the app. It remembers previous orders and what sort of toppings you like on your burger. It takes around 10 minutes to prepare it, so if you order before you head out, it will usually be ready by the time you get there. Also, you can get Scene points towards your next movie.


I like the Harvey’s veggie burger. It’s kind of old school, predating all the new plant-based ones, but it hits the spot for me and often goes on sale in the app.

I wish we had an Odd Burger where I live. My daughter and her vegan boyfriend are always saying great things about it.


So we’re basically back to year one Ford who tore down wind turbines at taxpayer expense because they annoyed him.


I worry about what this legislation could mean for medium-sized cities like where I live that are only now starting to put in bike infrastructure. It is underutilized at this point, but that’s because it is still incomplete.

You have, for example, a wonderful off-road trail that is 90% complete connecting the suburbs to downtown, but there is one section where you have to cross a bridge with no bike lanes or anything. Until that part gets done, few people will use the rest of it. But if they decide to take a lane away from cars on the bridge, the province could argue that no one uses the trail in the first place and shoot it down. Uuugh!

I was recently in Montreal and omg it’s cycling heaven! Bikes outnumber cars in many places and vehicle congestion seems less in spite of this. Also, drivers seem more cautious in general in the downtown core, even on roads where there are no cycle tracks. It’s a bit like the college campus effect I guess? When you have a high density of non-automotive road usage, the cars tend to slow down and be more patient. They’re moving slower but there is still a steady flow of traffic. Not a lot of gridlock.


Yeah, I think the current situation is they have to burn a certain amount of fuel to refine the bitumen, and then of course the oil itself is eventually burned by the end user. So it’s a carbon emissions double whammy. Not a good look. But if nuclear steps in to handle the refining part, they may be able to sell more oil by trading on a “clean” image? Or something. I have trouble getting into that mind set.


it may look to replace the role of fossil fuels in its electricity grid with another controversial energy source — nuclear

I wouldn’t be so sure about the “replace” part. Refining oil sands is an energy-intensive process. Couldn’t the nuclear power wind up going to that? I thought they were even advocating for this.



This could be why Obiwan wound up a hermit? (Programmers of my generation at least talk about “Obiwan errors” because his name sounds like “off-by-one”.)


I posted this because it gave me a hint as to why conservative propaganda has shifted in recent years. It’s mostly personal attacks on the man at the top now. “F#ck Trudeau” and all that.

While this might make some sense in the US where the presidency is an institution unto itself, it makes a lot less sense in Canada where we have a parliamentary system in which running the country is a group effort by the dominant political party.

And Trudeau is not even a power-trippy type of leader. He’s always been more of a delegator. So while I believe there is plenty of reason to be critical of the current federal government, pinning it all on the prime minister just seems weird and off. Like something a foreign influence campaign would be trying to do, in other words.



There were breaking changes between C and C++ (and some divergent evolution since the initial split) as well as breaking changes between different releases of C++ itself. I am not saying these never happened, but the powers that be controlling the standard have worked hard to minimize these for better or worse.

If I took one of my earliest ANSI C programs from the 80s and ran it through a C++23 compiler, I would probably need to remove a bunch of register statements and maybe check if an assumption of 16-bit int is going to land me in some trouble, but otherwise, I think it would build as long as it’s not linking in any 3rd party libraries.


I think the thing with C++ is they have tried to maintain backward compatibility from Day 1. You can take a C++ program from the 80s (or heck, even a straight up C program), and there’s a good chance it will compile as-is, which is rather astonishing considering modern C++ feels like a different language.

But I think this is what leads to a lot of the complexity as it stands? By contrast, I started Python in the Python 2 era, and when they switched to 3, I was like “Wow, did they just break hello world?” It’s a different philosophy and has its trade-offs. By reinventing itself, it can get rid of the legacy cruft that never worked well or required hacky workarounds, but old code will not simply run under the new interpreter. You have to hope your migration tools are up to the task.


Their developer supporters must be salivating at the thought of building more single family houses though, which solves the housing/affordability crisis about as well as building bigger roads solves traffic congestion.


The thrust of it is that the federal government would withhold funding to municipalities unless they meet certain home-building targets. Critics worry that this will accelerate suburban sprawl in order to meet quotas. There are some provisions regarding rental housing and transit infrastructure, but with unrealistic time/budgeting constraints.
fedilink

I started in C and switch to C++. It’s easy to think that the latter sort of picked up where the former left off, and that since the advent of C++11, it’s unfathomably further ahead. But C continues to develop and occasionally gets some new feature of its own. One example I can think of is the restrict key word that allows for certain optimizations. Afaik it’s not included in the C++ standard to date, though most compilers support it some non-standard way because of its usefulness. (With Rust, the language design itself obviates the need for such a key word, which is pretty cool.)

Another feature added to C was the ability to initialize a struct with something like FooBar fb = {.foo=1, .bar=2};. I’ve seen modern C code that gives you something close to key word args like in Python using structs. As of C++20, they sort of added this but with the restriction that the named fields have to come in the same order as they were originally defined in the struct, which is a bit annoying.

Over all though, C++ is way ahead of C in almost every respect.

If you want to see something really trippy, though, have a look at all the crazy stuff that’s happened to FORTRAN. Yes, it’s still around and had a major revision in 2018.


We need to watermark insert something into our watermark posts that watermark can be traced back to its origin watermark if the AI starts training watermark on it.



So far so good… For me, Shoppers is harder to avoid than Loblaws or No Frills, but we’ll see how it goes.


This was a struggle for me going from hobbyist programmer to working at a company. I tried to tone it down. Really. But eventually I got “promoted” to having my own office with a suspiciously thick door. Hmm…


True story. I was looking for an answer to an obscure problem and found it in a 10-year-old stackoverflow post. Then I looked more closely at the author…

Hey! Me from 10 years ago, stop being such a smart ass! It’s obnoxious.


1st reaction: lmao

2nd reaction: hey wait, this is pure genius!


There is also the ounce of prevention is worth a pound of cure aspect to all this. The anti-carbon tax camp loves to blame rising costs on essentials like groceries on the tax (conveniently forgetting to mention that aside from it being a minor contributor, the rebates are specifically put in to address this).

But you know what else will raise the price of food? Climate change. I think it’s fair to say that it has already contributed to shortages of certain items and you can bet it’s only going to get worse to the point that we will be looking back on the prices today nostalgically before long.


There is an issue with templated code where the implementation does have to be in the header as well, though that is not the case here. C++20 introduced modules which I guess were meant to sort out this mess, but it has been a rocky road getting them to be supported by compilers.


Looks like we’ve got a Java programmer here taking C++ for a spin.


Well that’s not really what I’m referring to. I’m talking about EUI-64, which was supposed to make life easier by giving everyone an IP addressed based on their MAC address. You wouldn’t need to worry about address collisions with such an address, as it would be globally unique.

But following up on it a little just now, it seems the idea is falling out of favour precisely due to the privacy issues I was fretting about. I assume that means DHCP or some similar scheme will come to dominate just as with IPv4? I’m not an IT guy so I don’t know what the current thinking is on this.


I’m glad the decision swung in favour of Charter protection. I worry about the implications in terms of IPv6. Typically, addresses in that case are built out of the MAC address of the device. That means you can nail down not just the person but the exact device they were using. Since IPv6 is big in the cellular world, that means your phone.


I’m trying to think of something charitable to say about Mulroney, but the closest I can get is that he, together with Mike Harris, quickly dispelled the silly notion that I could ever vote conservative at a young and impressionable point in my life. So, thanks…I guess?


There is bounds checking, but it’s opt-in. I often enable it on debug builds.



It was more than just tab conversion. For example, it decided on its own that:

if(...) {
    ...
}
else {
    ...
}

would look better like:

if(...) {
    ...
} else {
    ...
}

I mean I guess I could live with that, but really? I imagine there’s some config where you can disable all this, but it just doesn’t seem worth some giant git commit every time I touch a file with the editor.


I tried it briefly. It certainly is a lot snappier than Atom ever was, I’ll give it that. Seemed to be pretty good with Python, but when I opened some C++ source, it went around reformatting my indentation and replaces tabs with spaces. I will have to see if there is a way to disable all that, as I found it obnoxious.


Yeah how’s that going? (I don’t live in Alberta.)

It seems to me this idea of opting out of federal programmes might score some quick political points if you’re a have-province, in that it could be argued you’re sinking more into them than you’re getting out. But Alberta has historically had a boom-and-bust economy, and as such, cutting those federal lifelines seems unwise. But what do I know?


In an email to Global News on Sunday, Alberta’s health minister said that if the federal government pursues a national pharmacare program, Alberta intends to opt out, and instead intends to obtain a full per capita share of the funding.

So they can just pocket the money like that with no strings attached? wth



Good Lord, we’ve had the MMR vaccine since what, the 60s? What’s wrong with people?

I guess the problem is there aren’t so many people today who still remember a pre-vaccine world. I asked my dad about it. He got the mumps when he was a kid. Missed a year of school and had to retake the 3rd grade. He also sustained permanent hearing damage.


Ok, so in most languages, you have some way to define a data structure. It could be anything. Maybe it stores the X and Y coordinates of a Cartesian vector. And now you want to do stuff with your vectors, so you write a bunch of functions you can call like get_vector_length(myvect) or add_vectors(vect1, vect2).

In OOP, you add that kind of functionality into the data structure itself. So now you can just write myvect.length() or vect1 + vect2 (by implementing the + operator for your data structure). At this point, the data structure is typically called a “class” and the functions you build into the class are “methods”.

As you dig deeper into it, you learn about inheritance. When you have 2 related classes that share a lot of functionality, you can use inheritance to save a lot of duplication in your code.

In statically-typed languages, it can also come in useful to have a base class you can pack into a container, since most containers can only accept a single data type. If you had some graphics classes like Rectangle and Circle that all inherit from Shape, you could make a collection of Shape that’s a mix of those. (In dynamically-typed languages, this tends to be less of an issue since you can put objects of any data type straight into the list. This might be why OOP isn’t approached as soon in tutorials for such languages, since it’s not as mission-critical? But it’s still a good idea to have some sort of class hierarchy where it makes sense.)


The idea is that an insurance company deals exclusively with one or several pharmacies in exchange for lower costs. Steve Morgan, a professor at the University of British Columbia in Vancouver and an expert on pharmacare systems, said that “we don’t know exactly how much of the savings that are generated get passed on to the consumer at the end of the day.”

Oh I have a pretty good idea about that…


Apply LZ Compression and boom.

That would produce a binary stream. If that’s what OP wants, they could just leave the original hash in binary. And that would be unlikely to compress any further since hashes are, by their nature, high entropy already.


You could try base64 maybe? The above would be: Z3nFNDK4ut8Em7nYkkpXhd2IckM= (28 chrs)

base64 uses A-Z, a-z, 0-9, and the + and / characters to encode 6 bits per character. That means you can encode every 3 bytes (or 6 hex) in 4 characters (since 3 * 8 bits = 4 * 6 bits). If the data are not a perfect multiple of 3 bytes, the last group of 4 characters gets padded out with = signs.


We hope you enjoy this article concerning personal data exposure, but first, can we install cookies and track all your online activity?


Bear in mind that there is going to be nimby opposition to pretty much any new power project. I’ve seen it where I live with wind farms, for example, and it unfortunately does work, leading to delays, downscaling, and outright cancellation. I guess the thing is that with nuclear or hydro, you tend to run into a few colossal battles to get the things built, whereas with wind, you’re looking at hundreds of smaller clashes. Solar seems a little less contentious, but it’s also the least reliable energy source, meaning you will have to look at large-scale energy storage projects which, again, will attract a nimby element.