dan soucy boosted

Put down that 'for' and step away from the 'while'. No one has to get iterated

@brianna i have had this problem in the past!

let me tell you what you want.

you want rainbow parentheses! look for it for your $EDITOR.

Manifestation devant «la résidence du premier ministre» 

Les opposants aux mesures sanitaires n’avaient vraisemblablement pas fait leurs recherches avant d’aller manifester dimanche après-midi devant une résidence cossue qu’ils croyaient être celle du premier ministre François Legault, alors qu’il s’agissait en réalité d’une banale maison de Westmount.

«Les manifestants se sont trompés de maison... Et peut-être de combat...»


canada news/poli 

i actually know somebody from abbotsford who is the sweetest of sweethearts, but

why is everything that happens in that city such a "yikes"?

Show thread

canada news/poli 

Abbotsford, B.C. kids told to research positives of residential schools

Children were forcibly taken from their families and placed in the schools, which the 2015 Truth and Reconciliation Commission found perpetuated “cultural genocide.”

Up to 6,600 children are believed to have died in residential schools, while many others faced physical or sexual abuse at the institutions, which operated for more than 120 years.


us politics 

so Trump and his allies are 1-38 in court so far.

is there a term for vindictive legislation on a national scale?

dan soucy boosted
dan soucy boosted

There's a new "experimental feature" being tested in Firefox 83: sponsored sites in the URL bar.

"Mozilla works with advertising partners to place sponsored tiles on the Firefox home page (or New Tab) that would be useful to Firefox users. Mozilla is paid when users click on sponsored tiles."


You can disable this by setting `browser.newtabpage.activity-stream.showSponsoredTopSites` to `false`.

Found via old.reddit.com/r/firefox/comme


dan soucy boosted

richard stallman blocking a bridge 

what if you wanted to cross the bridge but richard stallman asked you to answer his three questions or you will fall to your doom

quebec politics 

what about this: a loi 21 but for christians

the christmas music has already begun. it's everywhere. in november. how did this happen? does it actually spread faster than covid?

maybe when i'm subjected to nasheed every time i'm in a public space for over a month, i'll start caring about hijabs on the bus.

dan soucy boosted

I like my gender like I like my art gallery installation: with people shaking their head while muttering 'I just don't get it these days' as they leave

Stop checking for NULL pointers! 


just to be extra-clear, i am not the author of the piece i linked! :^)

i am not sure there's a meaningful difference between dereferencing it and passing it to something else which will.

that said, i actually appreciate a good `assert(ptr);` even if the function is not going to directly use ptr.

ideally, whoever first takes the address of an object should be responsible for ensuring its validity!


in the example given, that does not require a change to the documentation. the behaviour of that function is undefined if the pointer points to anything other than a null-terminated string.

C does not provide any mechanism to check most of these cases, so there is nothing to be done other than document them.


hm. it seems to me that if an invalid pointer is passed to a function such as the one described in the article, a programming error has _already_ occurred. in your opinion, what should that function do if it gets an invalid argument?


i think the piece makes a pretty compelling argument for omitting a null pointer check in specific circumstances. have you read it?

Stop checking for NULL pointers! 


not sure what you mean. clarify please?

Stop checking for NULL pointers! 

when passing a pointer to a C function, there is only one semantically-correct value for that pointer, as opposed to 264-1 invalid values. NULL may or may not be one of these invalid values. Let the MMU and operating system handle it.


dan soucy boosted
dan soucy boosted

I've had so much on my plate as of late that I haven't had a whole lot of opportunities to be wholesome OR talk about stuff or my own projects.

So here's a wholesome little tidbit for your evening:

If you're ever feeling lost, discouraged, or just plain tired of the world and all the (admittedly) stupid stuff in it... reach out to somebody else and try to make their day just a bit better.

I'm always surprised by how fulfilling it is to shed a little light on someone else's cloud

dan soucy boosted

It's possible to interpret the right to life as absolute, but considering the founders of the UN had just executed a boatload of Nazis just 2 years before it was written, it was the norm at the time, and many of the other human rights enumerated can be deprived due to properly prosecuted crimes, it's pretty clear that was the intention when the document was written.

Show thread
Show more

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.