TEIA.RU
Зеленый хостинг ТЭИА

Uptolike

Feed aggregator

Is there a hook to be able to edit a flag confirm form to add additional functionality?

feedspot - Sat, 09/14/2024 - 01:25

I have a flag to report content as inappropriate, and when someone clicks on the "Report as Inappropriate" flag I want a confirmation to drop down with a title, some text, and the submit and "i've changed my mind" buttons. However with the flag module I can only add a "flag confirmation message" and edit the flagging button text but not the cancel confirmation button text.

Does anyone know if there is a hook to edit the flag confirmation form?

And if not if there is another way to edit it to add additional functionality?

I looked into the documentation on drupal.org but that all looked like it was for the D7 version of the flag module and I couldn't find anything that detailed API stuff for the D10 version of the module

Categories: World News

How can I migrate XML content?

feedspot - Sat, 09/14/2024 - 01:25

I have a XML structure as below:

<?xml version="1.0" encoding="UTF-8"?> <accordion> <title>Facts</title> <description></description> <items> <item> <subheading>Test</subheading> <description>&lt;p&gt;Consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Mattis rhoncus urna neque viverra justo nec ultrices dui.&lt;/p&gt;</description> </item> <item> <subheading>consectetur adipiscing elit</subheading> <description>&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Mattis rhoncus urna neque viverra justo nec ultrices dui. Ut porttitor leo a diam. Auctor neque vitae tempus quam pellentesque.&lt;/p&gt;</description> </item> <item> <subheading>Elit pellentesque habitant morbi tristique senectus</subheading> <description>&lt;p&gt;Aliquet nibh praesent tristique magna sit amet purus gravida quis. Elit pellentesque habitant morbi tristique senectus. Sed velit dignissim sodales ut eu sem integer vitae.&lt;/p&gt; &lt;p&gt;Vulputate enim nulla aliquet porttitor lacus luctus. Nec ullamcorper sit amet risus nullam eget felis. Tellus molestie nunc non blandit. Sed viverra tellus in hac habitasse platea.&lt;/p&gt;</description> </item> </items> <disclaimer></disclaimer> </accordion>

I have migrated each item inside items as a paragraph named accordion_item with a migration file for paragraph.

I have another migration file in which I want to migrate the XML into a block content type and file looks like:

id: accordion_dct label: 'Accordion Block Migration' migration_tags: - 'Accordion' migration_group: migration_phase_one source: plugin: url data_fetcher_plugin: file data_parser_plugin: xml urls: - modules/custom/migration/data/Accordion/default.xml item_selector: /accordion fields: - name: title label: 'Title' selector: 'title' - name: description label: 'Description' selector: 'description' - name: disclaimer label: 'Disclaimer' selector: 'disclaimer' - name: accItems label: 'Accordion Items' selector: 'items' ids: title: type: string process: type: plugin: default_value default_value: accordion_block_type info: title field_accordion_title: title field_accordion_subtitle: description field_accordion_disclaimer: disclaimer acc_items_array: plugin: xml_items source: accItems field_accordion_content: plugin: sub_process source: '@acc_items_array' process: target_id: - plugin: migration_lookup migration: accordion_dct_paragraph source: subheading no_stub: true - plugin: extract index: - 0 target_revision_id: - plugin: migration_lookup migration: accordion_dct_paragraph source: subheading no_stub: true - plugin: extract index: - 0 destination: plugin: 'entity:block_content' migration_dependencies: required: - accordion_dct_paragraph

acc_items_array in the file is an array of all the subheadings and descriptions from the XML and I am using subheadings as IDs.

The migration runs but only one paragraph is connected to the field 'field_accordion_content'.

How would I make the field 'field_accordion_content' reference to the multiple item from XML?

Categories: World News

How can I create a custom stream wrapper like public:// or private://? [closed]

feedspot - Sat, 09/14/2024 - 01:25

I want to create a custom stream wrapper for my site.

How can I achieve it?

Categories: World News

How can I migrate a SQL dump?

feedspot - Sat, 09/14/2024 - 01:25

My site went recently down, and all the data were lost (PHP installation of Drupal 5). What I am left is simple SQL dump from PHPMyAdmin.

I would like to "use" this disaster and finally migrate to Drupal 7. Because of this, I do not know how to continue.

Should I install Drupal 5 first, import SQL dump, and then upgrade?

Is there any way how to save stored data from Drupal 5 (SQL dump) to Drupal 7? If the answer is yes, can you please point me to correct procedure?

Categories: World News

Alan Pope: Where are Podcast Listener Communities

feedspot - Sat, 09/14/2024 - 01:24
Parasocial chat

On Linux Matters we have a friendly and active, public Telegram channel linked on our Contact page, along with a Discord Channel. We also have links to Mastodon, Twitter (not that we use it that much) and email.

At the time of writing there are roughly this ⬇️ number of people (plus bots, sockpuppets and duplicates) in or following each Linux Matters “official” presence:

Channel Number Telegram 796 Discord 683 Mastodon 858 Twitter 9919 Preponderance of chat

We chose to have a presence in lots of places, but primarily the talent presenters (Martin, Mark, and myself (and Joe)) only really hang out to chat on Telegram and Mastodon.

I originally created the Telegram channel on November 20th, 2015, when we were publishing the Ubuntu Podcast (RIP in Peace) A.K.A. Ubuntu UK Podcast. We co-opted and renamed the channel when Linux Matters launched in 2023.

Prior to the channel’s existence, we used the Ubuntu UK Local Community (LoCo) Team IRC channel on Freenode (also, RIP in Peace).

We also re-branded our existing Mastodon accounts from the old Ubuntu Podcast to Linux Matters.

We mostly continue using Telegram and Mastodon as our primary methods of communication because on the whole they’re fast, reliable, stay synced across devices, have the features we enjoy, and at least one of them isn’t run by a weird billionaire.

Other options

We link to a lot of other places at the top of the Linux Matters home page, where our listeners can chat, mostly to eachother and not us.

Being over 16, I’m not a big fan of Discord, and I know Mark doesn’t even have an account there. None of us use Twitter much anymore, either.

Periodically I ponder if we (Linux Matters) should use something other than Telegram. I know some listeners really don’t like the platform, but prefer other places like Signal, Matrix or even IRC. I know for sure some non-listeners don’t like Telegram, but I care less about their opinions.

Part of the problem is that I don’t think any of us really enjoy the other realtime chat alternatives. Both Matrix and Signal have terrible user experience, and other flaws. Which is why you don’t tend to find us hanging out in either of those places.

There are further options I haven’t even considered, like Wire, WhatsApp, and likely more I don’t even know or care about.

So we kept using Telegram over any of the above alternative options.

Pondering Posting Polls

I have repeatedly considered asking the listeners about their preferred chat platforms via our existing channels. But that seems flawed, because we use what we like, and no matter how many people prefer something else, we’re unlikely to move. Unless something strange happens ? .

Plus, often times, especially on decentralised platforms, the audience can be somewhat “over-enthusiastic” about their preferred way being The Way™️ over the alternatives. It won’t do us any favours to get data saying 40% report we should use Signal, 40% suggest Matrix and 20% choose XMPP, if the four of us won’t use any of them.

Pursue Podcast Palaver Proposals

So rather than ask our audience, I thought I’d see what other podcasters promote for feedback and chatter on their websites.

I picked a random set from shows I have heard of, and may have listened to, plus a few extra ones I haven’t. None of this is endorsement or approval, I just wanted the facts ma’am, just the fax, ma’am.

I collated the data in a json file for some reason, then generated the tables below. I don’t know what to do with this information, but it’s a bit of data we may use if we ever decide to move away from Telegram.

Presenting Pint-Sized Payoff

The table shows some nerdy podcasts along with their primary means (as far as I can tell) of community engagement. Data was gathered manually from podcast home pages and “about” pages. I generally didn’t go into the page content for each episode. I made an exception for “Dot Social” and “Linux OTC” because there’s nothing but episodes on their home page.

It doesn’t matter for this research, I just thought it was interesting that some podcasters don’t feel the need to break out their contact details to a separate page, or make it more obvious. Perhaps they feel that listeners are likely to be viewing an episode page, or looking at a specific show metadata, so it’s better putting the contact details there.

Some podcasts have the contact details buried inside episode notes. They have nothing on the home page, and no “contact” or “about” pages exist. Each to their own.

I haven’t included YouTube, where many shows publish and discuss, in addition to a podcast feed.

I am also aware that some people exclusively, or perhaps primarily publish on YouTube (or other video platforms). Those aren’t podcasts IMNSHO.

Key to the tables below. Column names have been shorted because it’s a w i d e table. The numbers indicate how many podcasts use that communication platform.

  • EM - Email address (13/18)
  • MA - Mastodon account (9/18)
  • TW - Twitter account (8/18)
  • DS - Discord server (8/18)
  • TG - Telegram channel (4/18)
  • IR - IRC channel (5/18)
  • DW - Discourse website (2/18)
  • SK - Slack channel (3/18)
  • LI - LinkedIn (2/18)
  • WF - Web form (2/18)
  • SG - Signal group (3/18)
  • WA - WhatsApp (1/18)
  • FB - FaceBook (1/18)
Linux Show EM MA TW DS TG IR DW SK MX LI WF SG WA FB Linux Matters ✅ ✅ ✅ ✅ ✅ ✅ Ask The Hosts ✅ ✅ ✅ ✅ ✅ Destination Linux ✅ ✅ ✅ ✅ ✅ Linux Dev Time ✅ ✅ ✅ ✅ ✅ Linux After Dark ✅ ✅ ✅ ✅ ✅ Linux Unplugged ✅ ✅ ✅ ✅ This Week in Linux ✅ ✅ ✅ ✅ ✅ Ubuntu Security Podcast ✅ ✅ ✅ ✅ ✅ Linux OTC ✅ ✅ ✅ Open Source Adjunct Show EM MA TW DS TG IR DW SK MX LI WF SG WA FB 2.5 Admins ✅ ✅ Bad Voltage ✅ ✅ ✅ ✅ Coffee and Open SourceDot Social ✅ ✅ Open Source Security ✅ ✅ ✅ localfirst.fm ✅ Other Tech Show EM MA TW DS TG IR DW SK MX LI WF SG WA FB ATP ✅ ✅ ✅ ✅ BBC Newscast ✅ ✅ ✅ The Rest is Entertainment ✅ Point

Not entirely sure what to do with this data. But there it is.

Is Linux Matters going to move away from Telegram to something else? No idea.

Categories: World News

The Fridge: Ubuntu 22.04.5 LTS released

feedspot - Sat, 09/14/2024 - 01:24

The Ubuntu team is pleased to announce the release of Ubuntu 22.04.5 LTS (Long-Term Support) for its Desktop, Server, and Cloud products, as well as other flavours of Ubuntu with long-term support.

As usual, this point release includes many updates and updated installation media has been provided so that fewer updates will need to be downloaded after installation. These include security updates and corrections for other high-severity bugs, with a focus on maintaining stability and compatibility with Ubuntu 22.04 LTS.

Kubuntu 22.04.5 LTS, Ubuntu Budgie 22.04.5 LTS, Ubuntu MATE 22.04.5 LTS, Lubuntu 22.04.5 LTS, Ubuntu Kylin 22.04.5 LTS, Ubuntu Studio 22.04.5 LTS, and Xubuntu 22.04.5 LTS are also now available. More details can be found in their individual release notes (see ‘Official flavours’):

https://discourse.ubuntu.com/t/jammy-jellyfish-release-notes/24668

Maintenance updates will be provided for 5 years from the initial 22.04 LTS release for Ubuntu Desktop, Ubuntu Server, Ubuntu Cloud, and Ubuntu Core. All the remaining flavours will be supported for 3 years. Additional security support is available with ESM (Expanded Security Maintenance).

To get Ubuntu 22.04.5 LTS

In order to download Ubuntu 22.04.5 LTS, visit:

https://ubuntu.com/download

Users of Ubuntu 20.04 LTS will be offered an automatic upgrade to 22.04.5 LTS via Update Manager.

We recommend that all users read the 22.04.5 LTS release notes, which document caveats and workarounds for known issues, as well as more in-depth notes on the release itself. They are available at:

https://discourse.ubuntu.com/t/jammy-jellyfish-release-notes/24668

If you have a question, or if you think you may have found a bug but aren’t sure, you can try asking in any of the following places:

Help Shape Ubuntu

If you would like to help shape Ubuntu, take a look at the list of ways you can participate at:

https://discourse.ubuntu.com/contribute

About Ubuntu

Ubuntu is a full-featured Linux distribution for desktops, laptops, clouds and servers, with a fast and easy installation and regular releases. A tightly-integrated selection of excellent applications is included, and an incredible variety of add-on software is just a few clicks away.

Professional services including support are available from Canonical and hundreds of other companies around the world. For more information
about support, visit:

https://ubuntu.com/support

More Information

You can learn more about Ubuntu and about this release on our website listed below:

https://ubuntu.com/

To sign up for future Ubuntu announcements, please subscribe to Ubuntu’s very low volume announcement list at:

https://lists.ubuntu.com/mailman/listinfo/ubuntu-announce

Originally posted to the ubuntu-announce mailing list on Thu Sep 12 20:05:59 UTC 2024 by Paride Legovini on behalf of the Ubuntu Release Team

Categories: World News

Jonathan Riddell: git revert name and Akademy

feedspot - Sat, 09/14/2024 - 01:24

I reverted my name back to Jonathan Riddell and have now made a new uid for my PGP key, you can get the updated one on keyserver.ubuntu.com or my contact page or my Launchpad page.

Here’s some pics from Akademy

Categories: World News

Одно из самых популярных Android-прилож?

Новости Softodrom.ru - Sat, 09/14/2024 - 00:50
Одно из самых популярных Android-приложений для подкастов. Позволяет управлять подкастом, радио, аудиокнигой, прямой трансляцией, каналами YouTube, Twitch, SoundCloud и новостными лентами RSS
читать дальше >>
Categories: Open News

Adobe Scan превращает ваше устройство в

Новости Softodrom.ru - Sat, 09/14/2024 - 00:49
Adobe Scan превращает ваше устройство в мощный портативный сканер, который автоматически распознает текст (OCR) и позволяет сохранять файлы в различных форматах, включая PDF и JPEG
читать дальше >>
Categories: Open News

Десктопная версия популярного мессендже?

Новости Softodrom.ru - Sat, 09/14/2024 - 00:48
Десктопная версия популярного мессенджера Telegram, предназначенная для Linux
читать дальше >>
Categories: Open News

OCCT — программа для тестирования стаби?

Новости Softodrom.ru - Sat, 09/14/2024 - 00:47
OCCT — программа для тестирования стабильности работы центрального процессора, графического процессора и оперативной памяти в Windows
читать дальше >>
Categories: Open News

Программа для восстановления данных пос?

Новости Softodrom.ru - Sat, 09/14/2024 - 00:47
Программа для восстановления данных после удаления из корзины, форматирования диска, изменения разделов или вирусного вторжения
читать дальше >>
Categories: Open News

Бесплатное приложение для доступа к обл?

Новости Softodrom.ru - Sat, 09/14/2024 - 00:46
Бесплатное приложение для доступа к облачным хранилищам Google Drive, Dropbox, OneDrive, Azure, Amazon S3, OpenStack Swift, DRACOON, Backblaze B2, а также FTP, SFTP и WebDAV
читать дальше >>
Categories: Open News

Редактор кода, ориентированный на разра?

Новости Softodrom.ru - Sat, 09/14/2024 - 00:46
Редактор кода, ориентированный на разработчиков самого широкого профиля. Разрабатывается Microsoft, имеет открытый исходный код, массу функций и поддержку тысяч расширений
читать дальше >>
Categories: Open News

Telegram Desktop — популярный мессендже?

Новости Softodrom.ru - Sat, 09/14/2024 - 00:43
Telegram Desktop — популярный мессенджер с поддержкой сквозного шифрования. Версия Portable
читать дальше >>
Categories: Open News

Telegram Desktop — мессенджер с поддерж?

Новости Softodrom.ru - Sat, 09/14/2024 - 00:43
Telegram Desktop — мессенджер с поддержкой end-to-end шифрования, позволяющий обмениваться текстовыми сообщениями, а также фото- и видео-файлами
читать дальше >>
Categories: Open News

n-Track Studio — многотрековая аудиосту?

Новости Softodrom.ru - Sat, 09/14/2024 - 00:42
n-Track Studio — многотрековая аудиостудия, позволяющая создавать свои собственные музыкальные композиции профессионального качества
читать дальше >>
Categories: Open News

Бесплатная программа-каталогизатор виде?

Новости Softodrom.ru - Sat, 09/14/2024 - 00:42
Бесплатная программа-каталогизатор видео, ориентированная на коллекционеров как зарубежных, так и отечественных фильмов
читать дальше >>
Categories: Open News

PrivaZer — бесплатная программа для уда?

Новости Softodrom.ru - Sat, 09/14/2024 - 00:41
PrivaZer — бесплатная программа для удаления истории просмотра сайтов и следов любой другой деятельности на компьютере
читать дальше >>
Categories: Open News

PrivaZer производит сканирование ПК и б?

Новости Softodrom.ru - Sat, 09/14/2024 - 00:41
PrivaZer производит сканирование ПК и безопасно очищает систему, уничтожая любые следы от просмотров веб-сайтов и любой другой деятельности на компьютере
читать дальше >>
Categories: Open News

Просто хороший хостинг