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

Uptolike

feedspot

Syndicate content My RSS Feed
My RSS Feed
Updated: 5 weeks 3 days ago

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

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?

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]

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?

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

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

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

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

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!

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?

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

Bella Hadid Reportedly Lawyers Up Against Adidas Over Controversial Campaign

Sun, 07/21/2024 - 17:28
Bella Hadid is exploring legal options against sportswear giant Adidas following her removal from a recent campaign, according to a report by TMZ.
Categories: World News

Microsoft Estimates 8.5 Million Windows Devices Impacted By CrowdStrike Outage

Sun, 07/21/2024 - 17:28
Microsoft has disclosed that an estimated 8.5 million Windows devices worldwide were impacted by the global tech meltdown. This staggering figure, unveiled for the first time, suggests that this could be "the largest IT outage in history."
Categories: World News

First We Found Out Hello Kitty Is Not A Cat. Now It Appears Goofy Is Not A Dog.

Sun, 07/21/2024 - 17:28
Goofy, the tall, lovable goofball with a signature laugh, has been a mainstay of the Disney universe for nearly a century. Yet, a surprising debate has swirled around Goofy for decades: is he actually a dog?
Categories: World News

Newly-Released Video Shows Apple’s Steve Jobs Predicted ChatGPT 40 Years Ago

Sun, 07/21/2024 - 17:28
Newly released footage from 1983 shows Steve Jobs, the co-founder of Apple, predicting a technology that closely resembles today's ChatGPT and other AI models.
Categories: World News

&quot;Free,&quot; &quot;libre,&quot; and &quot;open source&quot; in 2024

Sun, 07/21/2024 - 14:26

I grew up on welfare and in public housing, so we used refurbished ThinkPads and the CDs in Linux magazines for our computing at home not because we were savvy, but because it was the best bang for buck at the time. These days, I'm still not super savvy, but I'm still using a refurbished ThinkPad and Linux as my daily drivers. It's almost a principle thing, at this point.

But I've been trying to get more tech-savvy recently, and not just as far as computers go. Made a post a few hours ago about my ideas for getting into microscopy - this citizen/democratization of science stuff is right up my alley for the same reason free/open source/libre software is. One of my future projects would be something like this, which has this bit:

A top-end version would cost a couple of hundred pounds to produce, and would include a microscope objective and an embedded Raspberry Pi computer.

Just the other day, I listened to RMS' talk about copyright vs community, and he mentions not using Raspberry PI. Sure, I could be convinced. You go the FSF page or the Libreplanet page on SBCs, and the options are slim. Shit, for hardware, in the smartphone section, they're still pushing the Nokia 8110 4G Dual SIM. Maybe not too up-to-date on the hardware front, their SBC page seems to be updated every 3-5y. You dig around a bit on Reddit, and you have some good-sounding alternatives - HiFive, Pine64.

But I'm shaky on how ethically solid they are - can't really look to the FSF for guidance there, and more & more people say you can't look to the FSF too much, in general. From where I'm standing, good points all around. But I can't wait for the Libre Silicon folks to catch up, so I need a crash course in the ethics of...whatever we're calling "hardware and software that the user controls, not the producer." I got a stew of terms for this stuff - free, FOSS, libre, open source, right to repair - and no clue how they all gel together. Skim through people talking about GPL/copyleft vs MIT vs Apache licenses, none of that means anything to me. So if you got overviews of the situation today, or a good reading list to get my head around this stuff, I'd appreciate it.

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

Wireshark on my iPhone

Sun, 07/21/2024 - 14:26

Using iPhone 15 pro max and UTM from App Store, Debian 11 with about 2gb ram runs really good. Of course you must wait for it to load but I’ve been installing my fav packages and it’s great to have a full Linux experience instead of some terminal emulator bs on the App Store!

It seems like distros requiring more than 4GB lag too much, so iPad Pro with 16gb might be better for those. But Debian is good enough for me.

submitted by /u/Old-Opportunity-9876
[visit reddit] [comments]
Categories: World News

Why I went back to KDE Plasma after using a tiling window manager on Gentoo for years

Sun, 07/21/2024 - 14:26

When I first discovered Linux about four years ago, I was using beginner-friendly distributions such as Linux Mint, Manjaro, and Ubuntu. After that, I switched to Arch Linux then Gentoo with DWM as my window manager. Because Gentoo forces you to basically set up your OS and what software you want on it, I learned so much about Linux from using it. I loved the productivity gains I got from using DWM as my window manager.

However, over the years, I realized that I was spending more time configuring my system than actually using it. I was applying as many patches as possible to DWM for increased productivity and speed. I compiled all my packages with several C compiler optimizations such as LTO, Graphite, march=native, -O3, etc. All of this didn't actually make a noticeable impact, it was more of an obsession I had with squeezing the most performance and productivity out of my system as I possibly could. Basic things like configuring my monitor setup was difficult on such a minimal configuration. I came to the realization that the law of diminishing returns is completely true. I became less productive and less focused on my work as I continued to try to optimize my system further.

I recently installed CachyOS with the graphical installer and chose KDE Plasma as my desktop environment. I have to admit that the user experience is just better. I can still tile windows if I want, it's just not automatic. I can also set up keyboard shortcuts so that I don't have to use the mouse often. Honestly, KDE Plasma can do most things a tiling window manager can do and much more. It "just works." I have come full circle. I feel like the IQ bell curve meme applies perfectly to this situation.

Having said all of that, do I regret trying Gentoo and DWM? No. I learned so much about Linux and low-level C programming just by tinkering with them that in the end I think it was worth it. But it definitely won't be my daily driver.

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

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