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

Uptolike

World News

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

Collective #863

feedspot - Sat, 09/14/2024 - 00:35
AIAIAI * Sanding UI * The Lost Sense * The Art of Finishing
Categories: World News

Not a technical question but need advice on making a website for fundraiser!

feedspot - Fri, 09/13/2024 - 23:08

I’m making a simple website for a fundraiser that I am coordinating. All I want is a couple pages with information, and a few links including the actual nonprofit where the donations will go. I’ve make a portfolio on Google sites before that I really liked. I have no actual web design experience. What tool do you think will be the most effective? Thank you!

submitted by /u/Illustrious_Cost8923
[visit reddit] [comments]
Categories: World News

Website Suggestions?

feedspot - Fri, 09/13/2024 - 23:08

Anyone have any suggestions on good "Sandbox" style websites? And by that I mean websites where the content is very user driven with minimal structure. I want to build a site that starts out rather barebones but then is built out as users interact with it. I know I sound vague but it is a little hard to describe.

submitted by /u/Baro614
[visit reddit] [comments]
Categories: World News

В Облаке Mail стал доступен редактор PDF-файлов

IT Новости - Thu, 09/12/2024 - 16:54
Теперь пользователям доступно как чтение, так и работа с документами формата PDF прямо в облачном хранилище
читать дальше >>
Categories: World News

Конструктор сайтов Wix заблокирует аккаунты россиян

IT Новости - Tue, 09/10/2024 - 15:48
Wix — один из наиболее популярных сервисов по созданию сайтов — объявил о том, что с 12 сентября заблокирует аккаунты пользователей из России
читать дальше >>
Categories: World News

VK Видео первым в России получил поддержку AV1

IT Новости - Thu, 09/05/2024 - 20:16
Основное преимущество видеокодека AV1 заключается в его способности передавать видео высокого качества даже при низкой скорости интернета у пользователей
читать дальше >>
Categories: World News

Абоненты МТС смогут звонить через Яндекс Станцию на телефонные номера

IT Новости - Thu, 09/05/2024 - 20:08
С помощью новой функции абоненты МТС смогут звонить с умных колонок Яндекса на номера любых операторов по своему текущему тарифу, а также принимать вызовы
читать дальше >>
Categories: World News

Приложение VK Видео стало доступно для планшетов на Android

IT Новости - Wed, 09/04/2024 - 17:05
Одной из главных особенностей приложения является возможность смотреть любой контент из обширной библиотеки VK Видео даже без авторизации
читать дальше >>
Categories: World News

Нейросеть YandexART научилась создавать короткие видео с движущимися объектами

IT Новости - Wed, 09/04/2024 - 16:59
Яндекс представил бета-версию нейросети YandexART (Vi) для создания пятисекундных видео
читать дальше >>
Categories: World News

Tele2 сменил название

IT Новости - Wed, 09/04/2024 - 04:38
Российский оператор мобильной связи Tele2 отказался от дальнейшего использования шведского бренда и сменил название
читать дальше >>
Categories: World News

«Яндекс Такси» предупредил о росте цен из-за нехватки 130 тыс. водителей

IT Новости - Wed, 09/04/2024 - 04:26
К концу 2024 года в России будет не хватать около 130 тыс. водителей такси, предупреждают в «Яндекс Такси»
читать дальше >>
Categories: World News

FT раскрыла убытки Telegram

IT Новости - Fri, 08/30/2024 - 19:22
Процесс над Дуровым во Франции ставит под угрозу планы Telegram выйти на биржу, если рекламодатели не захотят тратить деньги на платформу, которую теперь связывают с предполагаемым распространением противоправных материалов
читать дальше >>
Categories: World News

Rutube увеличил мощности на фоне замедления YouTube в России

IT Новости - Thu, 08/29/2024 - 20:56
В связи с ростом числа пользователей российский видеохостинг Rutube в августе увеличил свои мощности на 30%, а до конца года планирует увеличить их еще в два раза
читать дальше >>
Categories: World News

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