orbite, to animals Russian
@orbite@mastodon.social avatar
nacho888882, to ilaughed
BGP, to Ford
@BGP@socel.net avatar

1948 Fleetmaster Woody

When I was a youngster I used to see these Woodys every so often and I always loved them. Back then people would actually drive them on a fairly regular basis. Now I rarely see these driven on the street and if they are, they are most likely either being driven in a parade or going to a car show.
https://pixels.com/featured/1948-fleetmaster-woody-bill-gallagher.html

LibrarianRA, to Vintage
@LibrarianRA@worldkey.io avatar

1974 zodiac pendants advertisement
.

ArtPhotosDesk, to photography
@ArtPhotosDesk@flipboard.social avatar

Featured today in The Shot, @Flipboard's newsletter, is this gorgeous roundup from @stellakalaw on iconic fashion collaborations.

"These partnerships exemplify the creative synergy that continues to reshape the boundaries of fashion," she writes.

Includes stories like "How Irving Penn and Issey Miyake Redefined the Fashion Photograph" and "Linda Evangelista and the Canny Eye of Steven Meisel."

https://flipboard.com/@stellak2020/fashion-s-iconic-photography-collaborations-kj3pqophlfoj44u2

orbite, to animals Russian
@orbite@mastodon.social avatar
LibrarianRA, to Fashion
@LibrarianRA@worldkey.io avatar

What styling outfit are you wearing today?
.
Jeans 76 and Gentlemen G's Casual Denim, Eaton's Catalog, 1976 ad
.
#Denim #Advertisement #70sStyle #Style #Fashion #70sFashion #retro #vintage

LibrarianRA, to Vintage
@LibrarianRA@worldkey.io avatar

Hart Schaffner & Marx Escadrille Collection ad, 1973
.

BenHigbie, to art
@BenHigbie@mastodon.social avatar

Made by my friend Muai, this glamorous and fabulous composition, lots of color and great fantastic energy; contact me if you're interested in having this one hanging up in your place ✨✨✨

LisaSBaker, to nature
@LisaSBaker@mastodon.social avatar
SteveHendersonFineArt, to nyc
@SteveHendersonFineArt@mastodon.social avatar

She brought the umbrella because she wanted to, not because she was told to.

In fact, most people told her she was silly to bring it.

Personally, she thought it was silly to listen to most people at the expense of heeding one's own voice.

Hello New York metal print -- https://2-steve-henderson.pixels.com/featured/hello-new-york-steve-henderson.html?product=metal-print

#newyork #nyc #newyorkcity #travel #vacation #fashion #woman #art #artwork #buyintoart #mastoart #fediart #fedigiftshop #thoughts #style #retro #ayearforart #city #urban #vogue #model #artist

doktorlond, to Musicproduction
@doktorlond@mastodonmusic.social avatar

Studio time. #studio #MusicProduction

doktorlond,
@doktorlond@mastodonmusic.social avatar

Gonna do some style like this #style #steppers #roots #reggae follow #DubUnderConstruction for more work in progress 🙏❤️

A view round the studio. Track is playing from mixing desk

orbite, to art Russian
@orbite@mastodon.social avatar
CultureDesk, to Fashion
@CultureDesk@flipboard.social avatar

J.G. Ballard's dystopian story, "The Garden of Time," inspired this year's dress code for the Met Gala. The BBC's Rosalind Jana explains the delicious irony in basing this night of extreme luxury and excess on a short story in which rich and refined beauty is overrun by a working class mob. "It would be interesting to know how the Ballard short story first came to the table. Was it just a neat title? Or is someone in the committee's midst trying to foment class rebellion?" she wonders.

https://flip.it/GDoNWr

LibrarianRA, to goodyearwelt
@LibrarianRA@worldkey.io avatar

Lady Esquire Instant Shoe Colouring! 1974
.

dcz, to opensource
@dcz@fosstodon.org avatar

The feeling when 87.5% of the discussion under your contribution is about : unreliable CI and insignificant .

Congrats, the project has created a barrier to entry for anyone who hasn't been into it for years already.

Hint: give everyone a freaking that satisfies your needs and let us move on to actual work, without having to redo the same stuff 8 times. Sheesh.

digitalangel, to art

Girl in Action Painting style (4 of 100).

#girl #art #artwork #style #ArtStyle #ActionPainting #painting

robinlovelace, to datascience
@robinlovelace@fosstodon.org avatar

Request for testing/comment: can any #rstats users out there give the #wip {styler.equals} package a spin and kick its metaphorical tires 🚲 ? Install with remotes::install_github("robinlovelace/styler.equals") and see more at https://github.com/Robinlovelace/styler.equals Especially for those who prefer typing = over <- due to laziness or any other reason! Not intending to start a flame war 🔥 arrows are great too ⬅️ Any comments/suggestions welcome 🙏 #rspatial #DataScience #style

Royalflintllc, to InteriorDesign
@Royalflintllc@mastodon.social avatar
BenHigbie, to art
@BenHigbie@mastodon.social avatar
orbite, to art Russian
@orbite@mastodon.social avatar
blog, to python
@blog@shkspr.mobi avatar

Server-Side Rendering of Embedded Markdown Code Snippets in WordPress
https://shkspr.mobi/blog/2024/04/server-side-rendering-of-embedded-markdown-code-snippets/

Because I'm a grumpy old man, I don't use Gutenberg or Block themes on my WordPress. Instead, I write everything in Markdown.

When I write code snippets in Markdown, they look like this:

php$a = 1;echo $a;if ($a < 5) { // Do Something return thing( $a, true );}

But I want to render that with code highlighting. I was using the Prismatic Plugin. It is excellent and very customisable. But it uses JavaScript to do the code highlighting. I want to respect my readers' time and battery life; so I'm trying to reduce my dependency on Client-Side rendering.

I've switched to a modified version of WP-GeSHi-Highlight. That turns the above Markdown into:

$a = 1;echo $a;if ($a < 5) {   // Do Something   return thing( $a, true );}

Necessary Changes

When the JetPack Markdown pre-processor encounters a code block, it changes:

```php

into

<code class="language-php">

This means the WP-GeSHi-Highlight detection needs to be changed.

Old version:

return preg_replace_callback(    "/s*".    "(.*)</pre>s*/siU",   "wp_geshi_store_and_substitute",   $s);

New version:

return preg_replace_callback(    "/s*".    "(.*)</code>s*/siU",   "wp_geshi_store_and_substitute",   $s);

One of those matches looks for escaped= which can be true or false. I always want this to be true so, later in the code, I change a variable from:

$escaped = trim($match[3]);

To:

$escaped = true;

Style Changes

By default, everything looks pretty good - but there are a few changes I found necessary to make.

Firstly, there was something weird going on with the line-heights of my style, so I added this to my site's CSS:

/* GeSHI Highlighter Fixes */pre:has(> .wp-geshi-highlight-wrap5) {    line-height: 0;    padding: 0;    background: none;    filter: invert(1);}

The invert gives it a dark mode.

Secondly, in order to make any changes to the default styles of the highlighter, you need to add the bundled wp-geshi-highlight.css file into your style directory. The plugin will use that if it exists - so you can change font size and padding to be the same as your main theme.

Limitations

There are a few limitations with this approach.

No line-numbers. The plugin looks for something like line="13", but there's no way to add that in Markdown.

GeSHi hasn't received style updates on some languages for quite some time. It hasn't received any significant update since 2019. Which means bugs and security issues are likely.

Language definitions are quite strict. You can use javascript but not json.

The plugin doesn't have any options - nor an easy way to override its settings. So I've monkeypatched everything above. If the plugin updates, I'll need to change my code.

Demos

A few demos - just so you can see what it looks like.

Python

#!/usr/bin/env pythonfrom datetime import datetime, timedeltafrom mastodon import Mastodonfrom bs4 import BeautifulSoupimport config#  Set up accessmastodon = Mastodon( api_base_url=config.instance, access_token=config.access_token )#  Get user's infome = mastodon.me()my_id = me["id"]year_joined = me["created_at"].year

Bash

if [ "$(basename $2)" = "Image.gz" ] || [ "$(basename $2)" = "vmlinuz.efi" ]then# Compressed install  echo "Installing compressed kernel"  base=vmlinuzelse# Normal install  echo "Installing normal kernel"  base=vmlinuxfiif [ -f $4/$base-$1 ]; then  mv $4/$base-$1 $4/$base-$1.oldfi

Rust

// This is the main function.fn main() {    // Print text to the console.    println!("Hello World!");}

JavaScript

if (hour < 18) {  greeting = "Good day";  alert( greeting );} 

https://shkspr.mobi/blog/2024/04/server-side-rendering-of-embedded-markdown-code-snippets/

#HowTo #php #programming #WordPress

orbite, to art Russian
@orbite@mastodon.social avatar
orbite, to Meditation Russian
@orbite@mastodon.social avatar
CultureDesk, (edited ) to food
@CultureDesk@flipboard.social avatar

Crocs used to just be beloved of gardeners and dads with plantar fasciitis. But over the past few years it's also been collaborating with some interesting brands and individuals, including 7-Eleven, Lil Nas X, Balenciaga, and KFC (the last of which had Croc charms that smelled like chicken drumsticks). The latest hookup is with Pringles for a collection that comprises Classic Clogs, Slides, and an ankle-high boot with a holster to store a pack of Croc-Tail Party-flavored Pringles (watermelon, chilli and lime). Here's more from Allrecipes. What's your opinion?

https://flip.it/XCRJfr

#Food #Fashion #Style #FoodCulture #Shopping #Shoes #Design #FoodCulture

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • megavids
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • provamag3
  • tester
  • Leos
  • JUstTest
  • All magazines