#embed — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #embed, aggregated by home.social.
-
С++26 — готов! Итоги встречи ISO C++ в Кройдоне
Привет! На связи Антон Полухин из Техплатформы Городских сервисов Яндекса. На днях в Кройдоне состоялась встреча международного комитета по стандартизации языка программирования C++, в которой я принимал активное участие. В этот раз (как и в прошлый), всё внимание было сосредоточено на C++26 и… теперь он готов! Осталось пройти формальные этапы в вышестоящих инстанциях ISO, и мы получим C++26 который заслужили. В нём будут: – reflection, – контракты, – SIMD, – линейная алгебра, – расширенные возможности сonstexpr, – hardening, – Hazard Pointer и RCU, – #embed, – executors, – и многие другие полезные вещи. Подробности и новинки
https://habr.com/ru/companies/yandex/articles/1015474/
#contracts #reflection #c++26 #с++26 #с++ #программирование #simd #compiletime #compile_time #hardening
-
Hey, wanna try out Zorn on your website, but don't use Astro? No worries, you'll now be able to embed Zorn on your non-Astro website using the all new Zorn Embed Generator. Please note that it's in beta, Zorn alone is not even stable but usable in most environments.
https://zorn.embed.sudovanilla.org/create/
The compatibility list of features and browsers has been updated for the Zorn documentation.
-
Упрощение прототипирования и верификации RTL с помощью Python
Всем привет! Хочу поделиться своим опытом использования Python на этапах прототипирования RTL-модулей и последующей верификации. Как RTL-инженер, я часто создаю модели на Python для быстрой проверки логики и алгоритмов будущего RTL. Это подход уменьшает вероятность последующих правок в логике RTL в случае если алгоритм не подходит. Однако при переходе к тестированию на SystemVerilog всегда возникала проблема с переиспользованием написанной Python модели устройства: нужно было писать обвязку на C и использовать DPI-C интерфейсы, чтобы интегрировать Python-код модели в верификационную среду. Это занимало время и было неудобно. Недавно я открыл для себя библиотеку PyStim (Bind Python & SystemVerilog), которая кардинально упростила процесс. PyStim позволяет напрямую вызывать Python-методы и работать с Python-объектами из среды SystemVerilog без необходимости писать обвязку на C или использовать DPI-C . Это значительно снизило трудозатраты и ускорило адаптацию уже готового Python-кода в тестбенче.
https://habr.com/ru/articles/911674/
#python #systemverilog #bind #prototyping #hdl #connect #integrate #embed
-
…Side #project? Sento che mi mancava un po’ lo spirito di esso, negli ultimi tempi, non andrò a mentire. Però non.,. non mi ricordo più perché mi serviva questa cosa che ho fatto oggi, uffa. Il cervellino vuole scrivere varietà miste di codice senza alcun motivo, forse. O forse è perché… non mi pare ci sia alcun sito, con una sola interfaccia sempre uguale, per visualizzare e ricondividere #video da infinite piattaforme: ☝️
- Figa la vista video in Bing e DuckDuckGo, ma entrambe non trovano i video da URL (anche quando nei risultati normali esce, lol, ma in ogni caso è problematico), e poi:
- Quella di Bing è tutta castrata su mobile, e ha un feeling un po’ scattoso;
- Quella di DuckDuckGo non prevede permalink (per la condivisione dei video ricercati).
- Belli tutti i frontend open source, ma, a parte che quelli ben fatti per i video supportano sempre solo #YouTube, puntualmente si spaccano e bisogna fare il salto tra istanze, i link vecchi tendono a morire, ecc…
- Tra l’altro, tutti che reimplementano sempre il componente player, quando quello funziona abbastanza bene, ed è invece tutto il resto del sito di condivisione video di turno che da le rogne.
Una volta, almeno per mostrare i video soltanto di YouTube senza bloat di mezzo c’era ViewPure; anche se dall’altro lato era estremamente scarno, dando solo un iFrame del video richiesto, e mi pare qualche informazione, proprio meh. Poi sparì nel nulla. E io ho nel frattempo trovato purify-video.github.io, con la stessa filosofia ma ancora più meh, e per giunta mi sembra senza tema scuro… abbastanza ovvio che, coi requisiti di sopra, comunque queste opzioni non sono adatte. 🥱️
Insomma, mi sono inventata la cosa mia, quindi. Copiando la filosofia, ho scelto il nome ViewUltra, perché… tipo #ViewPure, ma potenziato, perché voglio anche la ricerca integrata, i video correlati, e più dettagli possibili, minimizzando il bisogno di passare al sito originale del contenuto. Non potendo copiare codice, però, uso a scrocco le API private di Bing per far funzionare queste ultime funzioni… e io devo solo pensare a impaginare iFrame e metadati estratti. Non so se farò un dominio dedicato, ma per ora è su https://hlb0.octt.eu.org/ViewUltra.php! 🥰️
Ancora #WIP tuttavia… devo: cambiare endpoint interno di Bing per avere video correlati buoni, sistemare un po’ la grafica che coi colori non ancora mi convince, fare una pagina home vera con informazioni utili oltre che suggerimenti randomici e cronologia, rendere opzionalmente collassabile la sezione dei video correlati, e persino ancora caricare il sorgente sulla mia repo di script disordinati. Ma, la Octo di domani sera avrà voglia di fare tutto ciò? 🥶️Effetto collaterale figo di guardare media in questo modo è che vengono, a dire il vero, bypassati molti ratelimit e muri di login, da quei siti abbastanza stupidi da implementarli senza ritegno in primo luogo… ma poi per fortuna finire a non applicarli per i link di #embed. In particolare, TikTok, che ha il sito desktop che chiede sempre login, e quello mobile che è estremamente spaccato, funziona una favola qua dentro. Di contro, però, per #TikTok non so come estrarre i metadati per mostrarli bellini nelle altre parti della pagina: non li mette con i tag #HTML standard, offusca tutto. 😵💫️
Sul lato tecnico: questo robino supporterebbe la visualizzazione di contenuti tramite #iFrame da qualsiasi fonte, specificando l’URL… ma nella pratica devo andare ad implementare in modo specifico l’handling per ogni piattaforma, perché per far andare l’embedding serve quasi sempre un endpoint secondario (che va conosciuto a priori, quindi non può essere estratto automaticamente), e perché (per motivi di sicurezza) sul backend ho una whitelist di domini che il server può contattare per estrarre #metadati e replicarli nell’HTML. Piano piano implemento tutti gli URL per i top siti mondiali… 👻️
Ah e, l’ho fatta come app #PHP ora, e non tutta lato client come mio solito, perché comunque per quasi tutta la sua funzionalità ha bisogno di un server proxy per le richieste; a questo punto tanto vale far girare anche la logica su server, così da avere anche i metadati sempre popolati per le anteprime social, e queste robe qua. 🥳️ (Richiede comunque JavaScript, ma vi prego non mi sparate, serve solo per la ricerca e per listare i video correlati; la prima cosa andrà sistemata, ma la seconda è un buon compromesso per far caricare presto la pagina…) Share this page from your fediverse server https:// ShareThis server does not support sharing. Please visit .
https://octospacc.altervista.org/2024/10/01/ultravisiocto/
#video #HTML #PHP #YouTube #metadati #TikTok #iFrame #WIP #ViewPure #embed #project #ViewUltra
- Figa la vista video in Bing e DuckDuckGo, ma entrambe non trovano i video da URL (anche quando nei risultati normali esce, lol, ma in ogni caso è problematico), e poi:
-
How to Easily Embed iFrame Code in WordPress? https://www.youtube.com/watch?v=kpiJ2WcXX6U 💡🎬🚀 #Guide #Embed #iFrame #Code #WordPress
-
My friend the brilliant Terence Eden has been working out how to fix the problem of decaying Twitter embeds – more and more people are finally leaving the Musk propaganda machine that X has become1, and specifically, because he is against
<iframe>s, which, I can understand. He’s published a script on GitHub that will allow you to convert Tweet IDs into semantic HTML with a screenshot fallback, which are better embed options at this point. Added bonus is that it also removes the tracking back to X.OK gang! This is ready for you to test.
python tweet2html.py –css 1234
That will take a Twitter ID and return HTML and CSS for you to embed in your website with no calling back to Twitter.
Features:
🗣 Avatars inlined as Base64 WebP
📸 All attached photos inlined
🎥 Video poster inline, <video> to original source
🔗 Hyperlinks don't use t.co
#️⃣ Hashtags and @ mentions linked
🕰 Semantic time
♥ and 🗨 countsTry it out at https://github.com/edent/Tweet2Embed
Feedback and pull requests very welcome!
— Terence Eden (@Edent) 2024-08-10T17:20:46.457Z
I deleted all of my accounts on that platform last year, and it has left a number of holes in my WordPress blog where I’d embedded content from over there.
Unfortunately, this has had two other results:
- I cannot use the result from Tweet2Embed to replace my old embeds, because they are no longer there for the script to go and rehydrate into those nice semantic HTML versions.
- my old account name has been taken by someone else, and that is not one of the other very fine Andy Pipers that I know, but a bit of a strange individual AFAICT. This was always a risk of completely deleting the account and not maintaining the existence of the username, but I really wanted to be completely off that platform, for Reasons.
When I deleted my accounts I knew that these were going to be issues but I simply ignored the embed issue2. As and when I can, I’m now going through older posts to look for those embeds (I think the “best” ? way seems to be searching for “[tweet” in the WordPress editor to look for posts that include the old shortcode). I do have my content archived and re-hosted on a GitHub Pages site, so I can at least drop the Tweet IDs in to that, and get the text of the original post. I’m going to manually screenshot and update the back posts as best I can.
Working on it! (apologies for any weirdly-delayed pingbacks as I update old posts…)
I noted that Terence also plans to make something similar for Mastodon embeds to avoid the default
<iframe>option – I’m using Stefan Bohacek’s Fediverse Embeds plugin for WordPress to improve them on this blog already. YMMV!- If you’re on X, the fact that Musk is apparently posting direct attacks on the UK government and false information about recent events here, is yet another reason for you to leave it. Get out and start fresh somewhere better. I recommend Mastodon; Threads and Bluesky are alternatives you can also get value from; I’m on all three. ↩︎
- Another embed decay issue is that the new owners have gutted the old content of things like the TwitterDev YouTube channel, so my videos from there are now no longer visible; I did manage to save a couple of those for myself to re-host, and I’m also going to try to re-embed those in older posts here. I have a personal policy now to always require a copy of videos of my talks, so that I can have them for the future in case an event chooses to delete older content. ↩︎
Like it? Share it -
- Click to share on Mastodon (Opens in new window)
- Click to share on LinkedIn (Opens in new window)
- Click to share on Facebook (Opens in new window)
https://andypiper.co.uk/2024/08/11/fixing-digital-holes/
#archive #blog #content #embed #github #Historical #HTML #iframe #Twitter #YouTube