#_ — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #_, aggregated by home.social.
-
৲︒ Soundscapes von Ben Gerstein
https://www.youtube.com/watch?v=Jerv_0L1k8c
Rincon Beach
#_ #BenGerstein #Meer #Meereswellen #Natur #OrteRäume #RinconBeach #Soundscapes #Strand #Ufer #Wasser
-
-
Where you can (and can't) use Emoji in PHP
https://shkspr.mobi/blog/2024/04/where-you-can-and-cant-use-emoji-in-php/
I was noodling around in PHP the other day and discovered that this works:
<?php$🍞 = "bread";echo "Some delicious " . $🍞;I mean, there's no reason why it shouldn't work. An emoji is just a Unicode character (OK, not just a character - but we'll get on to that), so it should be fine to use anywhere.
Emoji work perfectly well as function names:
function 😺🐶() { echo "catdog!";}😺🐶();Definitions:
define( "❓", "huh?" );echo ❓;And, well, pretty much everywhere:
class 🦜{ public int $🐦; public ?string $🦃; public function __construct(int $🐦, ?string $🦃) { $this->🐦 = $🐦; $this->🦃 = $🦃; }}$🐓 = new 🦜(1234, "birb");echo $🐓->🐦;How about namespaces? Yup!
namespace 😜;class 😉 { public function 😘() { echo "Wink!"; }}use 😜\😉;$😊 = new 😉();$😊->😘();Even moderately complex Unicode sequences work:
echo <<<🏳️🌈Unicode is magic!🏳️🌈;I've written before about the Quirks and Limitations of Emoji Flags. The humble 🏳️🌈 is actually the sequence U+1F3F3 (white flag), U+FE0F (Variation Selector 16), U+200D (Zero Width Joiner), U+1F308 (Rainbow).
Take a complex emoji like "Female Astronaut with Medium Dark Skin Tone" - 🧑🏾🚀 - that also works!
$🧑🏾🚀 = 1;$👷🏻♂️ = 2;echo $🧑🏾🚀 + $👷🏻♂️;Probable the most complex emoji has 10 different codepoints! It looks like this - 🧑🏾❤️💋🧑🏻
And it works!
$🧑🏾❤️💋🧑🏻 = "Kiss Kiss. Bang Bang!";echo $🧑🏾❤️💋🧑🏻[-1];There are some emoji which don't work;
$5️⃣ = "five";The 5️⃣ emoji is U+0035 (Digit Five), U+FE0F (Variation Selector 16), U+20E3 (Combining Enclosing Keycap). PHP doesn't allow variables to start with digits, so it craps out with
PHP Parse error: syntax error, unexpected integer "5", expecting variable or "{" or "$" in php shell code on line 1You also can't use "punctuation" emoji as though they were normal characters:
echo 5 ❗= 6;And, while not strictly emoji, you can't use mathematical symbols:
echo 5 ≤ 6;So, there you have it. Is this useful? Well, probably. It is easy to get lost in a sea of text - so little pictograms can make it easier to see what you're doing. If the basic ASCII characters aren't part of your native language, perhaps it is useful to make use of the full range of Unicode.
Does your favourite programming language support Emoji?
-
When do symbols stop being political?
https://shkspr.mobi/blog/2020/01/when-do-symbols-stop-being-political/
I am a civil servant in the UK - this is my personal blog. As part of my job, I have to follow the Civil Service Code which, among other things, says I'm not allowed to be political at work.
Political Impartiality
You must:
- serve the government ... no matter what your own political beliefs are
- comply with any restrictions that have been laid down on your political activities
You must not:
- act in a way that is determined by party political considerations
- allow your personal political views to determine any advice you give or your actions.
That's probably a good thing. I should execute my duties without regard to my personal political feelings. If an elected official asks me to do something, I shouldn't refuse or undermine them if I voted for a different party.
If I turned up to work wearing a t-shirt saying "Vote for the Whig Party!" I'd probably be sent home.
But what if I wore a badge which said "Votes For Women" and displayed the suffragette colours? Now that women have the vote, is the symbol still political?
Well, the suffragette flag has done a tour of civil service buildings - and senior staff have happily posed with it.
SuffrageFlagRelay
@SuffrageFlag
The #suffrageflagrelay has now finished. Thank you to everyone who volunteered, cheered us on and joined in via twitter. Thank you to @SMcDonaldFCO @JoannaRoperFCO @MatthewRycroft1 @diploeconomist for the tremendous #globalsuffrageflagrelay @XgovCentenary #followtheflag pic.x.com/tgwirjzg5g ❤️ 29💬 4🔁 018:52 - Fri 14 December 2018Undoubtedly there are probably still a few people who think extending the vote to women was a bad idea and should be rescinded. But that is so far outside of the mainstream that I don't think a complaint would be upheld.
What about other political symbols?
I'm proud to wear a rainbow lanyard at work. It is a sign off allyship with my LGBT+ colleagues (other acronyms are available). It is a visible sign that as an employer - and as an individual - we will stand up for equal rights, and tackle homophobia and transphobia.
Terence Eden is on Mastodon
@edent
Working at @NHSX is never dull. Spent an interesting morning with CyberDyne Systems(!) talking about medical robots.
👩⚕️🤖!
どうもありがとうございました。 pic.x.com/jqqmsebbvq ❤️ 25💬 3🔁 009:07 - Mon 08 July 2019Is that a political symbol?
The USA banned the flying of rainbow flags from its embassies. Some modern political candidates can be quite open in their desire to roll back equal rights. It is a political symbol, right?
MOD LGBTQ+ Network
@MODLGBT
How proud are we?! @DefenceHQ is now lit up in Rainbow 🌈 colours for the first time ever. This weekend marks the 20th anniversary of the lifting of the ban on LGB staff in our Armed Forces. #WholeForceInclusion #DiversityInDefence #LGBT2020 #TeamDefence pic.x.com/k9hwew5xh9 ❤️ 442💬 11🔁 007:01 - Fri 10 January 2020A quick conversation with some of my gay and bi friends found a split opinion. "Pride is a riot - and the rainbow flag is a symbol of political protest" said one. Someone else thought it was so mainstream due to rainbow-washing (where companies use Pride as a marketing tool) that it was meaningless.
Another pointed out this part of the Civil Service Code:
You must carry out your responsibilities in a way that is fair, just and equitable and reflects the Civil Service commitment to equality and diversity
(Emphasis added)
Equality is a political position. But it is one which is (fairly) mainstream and thus has the appearance of neutrality.
But nothing is truly neutral.
My personal political views on universal suffrage and gay rights may happen to be reasonably mainstream, but I've chatted with people at work who are uncomfortable wearing a rainbow. Some because they think people will think they're gay, some because it might be seen as appropriation, and some because they don't believe in the cause behind it.
Thankfully the latter are rare.
But it doesn't escape my mind that symbols have meanings, and nothing is truly neutral.
🏳️🌈
-
Bon du coup je tente Dokuwiki et j'y comprends déjà rien, j'ai tout téléchargé et…du coup je fais quoi ? #_# #PensezAuxNoobsParPitié
-
CW: %Rant - Caps - lautoentrepreneur.fr
Mais ma parole prenez un designer qu'il vous apprenne à mettre une pastille d'alerte ou à cocher par défaut une case pour que ça nous envoie des mails, c'est pas possible -__-"
Et c'est par là que passent TOUS les auto-entrepreneurs en plus !!!! donc on est des centaines / milliers à subir cette interface de merde !!!!! #_#
-
@cjwyoming currrrsssssseeeeddddddd iiiimmmaaaaaagggeeeeeeeeeeee #_#
XD