Feed aggregator

Lucius Digital: 16 Cool Drupal modules For site builders | Februari 2018

Drupal Planet -

Drupal Doggo!

It took a while before I could write a new edition, I was just busy with the production of customer projects. Here again with a brand new version, what struck me in module updates in the past month:

1. D8 Editor Advanced link

A popular module that extends the standard editor in Drupal 8 with additional options for managing links. You can now add the following attributes:

  • title
  • class
  • id
  • target
  • rel

D8 Editor Advanced link

2. Password strength

Default password checks are stupid and annoying for the user: they can check the entered password meets certain rules, such as the number of characters and varying types herein (symbols, numbers, capital letters etc.).

This is a stupid way of checking because the password ‘Welcome123’ is accepted, while it is easy to guess.

This module enables a secure password policy by “pattern-matching” and “entropy calculation”. Almost every type of password is accepted, as long as it has sufficient entropy.

SourceHow it works

Instead of checking strict rules, this module calculates the expected time a brute force attack needs to retrieve the password. This is calculated based on underlying patterns:

  • Words that appear in a standard dictionary, common first and surnames and other default passwords.
  • Words from a dictionary, but written in Leet / 1337. For example, where the “e” is written as a three and “a” like an @.
  • A standard sequence of letters like “abcdef”, “qwerty” or “123456”
  • Dates or years.

This module has been around since 2007, I wonder why I only encounter this now :) It is currently available in alpha for Drupal 8 and stable for Drupal 7 available — it is supported by Acquia and Card.

So if you want people to not have to bother to look for a password such as “one special character, 1 upper case and at least 8 characters’, then this module offers a solution.

Password Strength

3. Better Field Descriptions

In order to give content managers issues, it is possible to write an explanation of all content fields that they import. But the standard explanation in a field in the backend of Drupal are often irrelevant, to not apply these generic texts in the implemented *user story* of the installation concerned.

After installing this module you can:

  • Content managers have their own explanation text per field.
  • Set where it stands: above or below the field.
  • The explanatory style that you like.

Better Field Descriptions

4. Better login

Want to make the standard Drupal login screen better? Then install this module and you are good to go: through template overrides you can then do the required further tuning of the layout of the login screen.

Better Login

5. Ridiculously Responsive Social Sharing Buttons

Another social sharing module, but as you see in the title: these are terribly responsive. The icons are SVG based and you need no external services such as AddThis.

Advantage: you’re less dependent and have your data in hand, downside: you have less functionality- such as comprehensive statistics.

Ridiculously Responsive Social Sharing Buttons

6. Flush Cache

If you are not using Drush or Drupal console works then you can Drupal caches flush via “the ‘Flush all caches” button in the Drupal backend. But in a production environment, you will almost never flush all caches, it can cause severe performance problems.

This module solves that problem: install it and you have more control over the caches you want to flush.

CacheFlush

7. Multiple Selects

Have your Drupal content management easier with ‘multiple selects’ administration, this image seems to me to speak for itself:

Multiple Selects

8. Neutral paths

If you are running a multilingual Drupal website, visitors can see the content in one language: the currently active language. Sometimes you would like to see pages in another language. In addition: content managers / Drupal administrators usually want English and not the backend *default language*, in our case, often Dutch.

Issue tracking for example, much easier if the backend is in English: Drupal documentation and support in English is much more available than in Dutch.

This module ensures that you can visit other pages in another language than the default. And can navigate the backend in English, while frontend is in another language.

Neutral paths

9. Password Reset Landing Page (PRLR)

Drupal core includes a ‘password’ function: If you have forgotten your password then you can request a one-time login link that is automatically mailed to you.

If you click on the login link, you will see a screen with a login button. Once you click the ‘login’ button you are logged in and you are redirected to your profile page — that’s it.

You are in this situation where your password is lost / forgotten. You are not required to change your password. This is not usually done, so people often endlessly request login links.

This module solves this: the screen where you end up after clicking on the login link not only contains a login button, but also a function to change your password immediately.

Password Reset Landing Page (PRLP)

10. Auto Purge Users

The user list in Drupal is usually not or hardly ever administered. If people have long been inactive or have not completed their registration, the account can usually be removed to avoid overhead and security issues.

This module does it for you automatically, it checks inactivity below a point and blocks users if they meet:

  • Certain time inactive.
  • Account never activated after registration.
  • Not been logged in for a period of time.

Not a popular module, but in the case of an example Drupal social intranet it can come in handy.

Auto Purge Users

11. Vertical Tabs Config

Want to influence the order of the Drupal tabs? Or do you want some tabs to not show all of your content manager? To keep tabs simple and usable you can install this module: select which tabs to show and in what order.

Modules with similar functions: Simplify and Hide vertical tabs.

Vertical Tabs Config

12. Custom Search

The default Drupal search is fine, but really standard: you have few options to tune the engine. After installing this module, changes that you can then include are:

  • Change the default label in the search box.
  • Set a default text in the search box.
  • Tune ‘Advanced Search’.
  • Change the text on the “submit button”.

And much more, see module page:

Custom Search

13. Persistent Login

Drupal 8 core does not have a ‘remember password’ function when you log in. You can remain automatically logged for some time, but that is based on a PHP session. This module does not, you can also:

  • How long users can stay logged in.
  • How many places a person can be logged in at once.
  • Select certain pages that the user must log in again at. These are usually pages where more sensitive information is available.
  • Allow the user to delete all his logins themself.

Persistent Login

14. Realistic Dummy ContentWisdom

Using the Devel module you can automatically generate content so you can see if your modules / themes work well. But it gives an unrealistic picture of the end result, this module generates more realistic images and texts.

Realistic Dummy Content

15. Password Policy

Although I am a fan of the aforementioned ‘Password strength’ module, this can also be useful if you want to make a specific password policy on your Drupal website.

Password Policy

16. Mass Password Reset

This module, we often use to implement Drupal social intranet: previously, all users and content created by an administrator on a test environment, without it people were informed through e-mail.

Once the social intranet went live, we sent all users at once an email with a login link via this module; the system was live!

Mass Password Reset

Wrap Up

So far that’s what I noticed last month in Drupal modules, stay tuned for more fat Drupal content!

Source header image

16 Cool Drupal modules For site builders | Februari 2018 was originally published in Lucius Digital | Blog on Medium, where people are continuing the conversation by highlighting and responding to this story.

Mitsubishi Electric Believes Its AI-enhanced Camera Systems Will Make Mirrors on Cars Obsolete

Slashdot -

In its annual R&D Open House on February 14, Mitsubishi Electric described the development of what it believes is the industry's highest-performance rendition of mirrorless car technology. From a report: According to the company, today's conventional camera-based systems featuring motion detection technology can detect objects up to about 30 meters away and identify them with a low accuracy of 14 percent. By comparison, Mitsubishi's new mirrorless technology extends the recognition distance to 100 meters with an 81 percent accuracy. "Motion detection can't see objects if they are a long distance away," says Kazuo Sugimoto, Senior Manager, at Mitsubishi Electric's Image Analytics and Processing Technology Group, Information Technology R&D Center in Kamakura, 55 km south of Tokyo. "So we have developed an AI-based object-recognition technology that can instantly detect objects up to about 100 meters away." To achieve this, the Mitsubishi system uses two technology processes consecutively. A computational visual-cognition model first mimics how humans focus on relevant regions and extract object information from the background even when the objects are distant from the viewer. The extracted object data is then fed to Mitsubishi's compact deep learning AI technology dubbed Maisart. The AI has been taught to classify objects into distinct categories: trucks; cars; and other objects such as lane markings. The detected results are then superimposed onto video that appears on a monitor for the driver to view.

Read more of this story at Slashdot.

Security updates for Monday

LWN Headlines -

Security updates have been issued by Arch Linux (irssi), Debian (bind9, gcc-4.9, plasma-workspace, quagga, and tomcat-native), Fedora (p7zip), Mageia (nasm), openSUSE (exim, ffmpeg, irssi, mpv, qpdf, quagga, rrdtool, and rubygem-puppet), and SUSE (p7zip and xen).

Man, Seeking New Copy of Windows 7 After Forced Windows 10 Upgrade, Sues Microsoft

Slashdot -

Catalin Cimpanu, writing for BleepingComputer: An Albuquerque man has sued Microsoft and its CEO -- Satya Nadella -- seeking a fresh copy of Windows 7 or $600 million in damages. According to a civil complaint filed last week on February 14, Frank K. Dickman Jr. of Albuquerque, New Mexico, is suing Microsoft because of a botched forced Windows 10 upgrade. "I own a ASUS 54L laptop computer which has an OEM license for Windows Version 7," Dickman's claim reads. "The computer was upgraded to Windows Version 10 and became non-functional immediately. The upgrade deleted the cached, or backup, version of Windows 7." Dickman says that the laptop's original OEM vendor is "untrustworthy," hence, he cannot obtain a legitimate copy of Windows 7 to downgrade his laptop.

Read more of this story at Slashdot.

Humanity's Biggest Machines Will Be Built in Space

Slashdot -

When rockets can no longer hold oversize payloads, building in space might be the best way to go. Popular Mechanics: Headquartered in Mountain View, California, Made In Space is working to make that dream a reality. For the past few years, they've operated the Additive Manufacturing Facility, one of the only 3D printers in space. While the AMF sits comfortably aboard the International Space Station, Made In Space has plans to launch a new printer that would operate exclusively in the vacuum of space. Their prototype, called Archinaut, is scheduled to launch later this year. Future machines like Archinaut will be able to print nearly everything in orbit -- where there's no limit on size. "We can manufacture a structure that couldn't support its own mass if it were on Earth," says Made In Space CEO Andrew Rush. "The only practical limitation you have is how much material you're providing to the system." The first Archinaut prototype is mostly just a proof-of-concept and won't be constructing mile-wide satellites anytime soon. "First you crawl, then you walk, then you run," says Rush. "We'll start out with manufacturing space-optimized trusses and booms and reflectors to provide a supply capability that we can't currently achieve." But once this tech gets off the ground, it can be used to build structures as big as their owners want them.

Read more of this story at Slashdot.

SuiteCRM 7.10 released

LWN Headlines -

SuiteCRM is a fork of the formerly open-source SugarCRM customer relationship management system. The 7.10 release has been announced. "SuiteCRM 7.10 includes a long list of enhancements, improving user experience, adding new functionality and providing a new REST API. This edition of SuiteCRM also assists companies to be ready for GDPR, including opt-in functionality to track the consent of individuals."

Scientists Grow Sheep Embryos Containing Human Cells

Slashdot -

An anonymous reader quotes a report from The Guardian: Scientists say growing human organs inside animals could not only increase supply, but also offer the possibility of genetically tailoring the organs to be compatible with the immune system of the patient receiving them, by using the patient's own cells in the procedure, removing the possibility of rejection. "Even today the best matched organs, except if they come from identical twins, don't last very long because with time the immune system continuously is attacking them," said Dr Pablo Ross from the University of California, Davis, who is part of the team working towards growing human organs in other species. Ross added that if it does become possible to grow human organs inside other species, it might be that organ transplants become a possibility beyond critical conditions. Ross and colleagues have recently reported a major breakthrough for our own species, revealing they were able to introduce human stem cells into early pig embryos, producing embryos for which about one in every 100,000 cells were human. These chimeras -- a term adopted from Greek mythology -- were only allowed to develop for 28 days. Now, at this week's meeting of the American Association for the Advancement of Science in Austin, Texas, the team have announced that they have managed a similar feat with sheep embryos, achieving an even higher ratio of human to animal cells. "About one in 10,000 cells in these sheep embryos are human," said Ross. The team are currently allowed to let the chimeric embryos develop for 28 days, 21 of which are in the sheep. While that might be sufficient to see the development of the missing organ when human cells are eventually combined with the genetically modified embryo, Dr Hiro Nakauchi of Stanford University, who is part of the team, said a longer experiment, perhaps up to 70 days, would be more convincing, although that would require additional permission from institutional review boards.

Read more of this story at Slashdot.

IBM Sues Microsoft's New Chief Diversity Officer To Protect Diversity Trade Secrets

Slashdot -

theodp writes: GeekWire reports that IBM has filed suit against longtime exec Lindsay-Rae McIntyre, alleging that her new position as Microsoft's chief diversity officer violates a year-long non-compete agreement, allowing Microsoft to use IBM's internal secrets to boost its own diversity efforts. A hearing is set for Feb. 22, but in the meantime, a U.S. District Judge has temporarily barred McIntyre from working at Microsoft. "IBM has gone to great lengths to safeguard as secret the confidential information that McIntyre possesses," Big Blue explained in a court filing, citing its repeated success (in 2012, 2013, 2015, 2016, 2017) in getting the U.S. government to quash FOIA requests for IBM's EEO-1 Reports on the grounds that the mandatory race/ethnicity and gender filings represent "confidential proprietary trade secret information." IBM's argument may raise some eyebrows, considering that other tech giants -- including Google, Microsoft, Apple, and Facebook -- voluntarily disclosed their EEO-1s years ago after coming under pressure from Rev. Jesse Jackson and the Congressional Black Caucus. In 2010, IBM stopped disclosing U.S. headcount data in its annual report as it accelerated overseas hiring.

Read more of this story at Slashdot.

qed42.com: Implementing #autocomplete in Drupal 8 with Custom Callbacks

Drupal Planet -

Implementing #autocomplete in Drupal 8 with Custom Callbacks Body

Autocomplete on textfields like tags / user & node reference helps improve the UX and interactivity for your site visitors, In this blog post I'd like to cover how to implement autocomplete functionality in Drupal 8, including implementing a custom callback

Step 1: Assign autocomplete properties to textfield

As per Drupal Change records, #autocomplete_path has been replaced by #autocomplete_route_name and #autocomplete_parameters for autocomplete fields ( More details -- https://www.drupal.org/node/2070985).

The very first step is to assign appropriate properties to the textfield:

  1. '#autocomplete_route_name':
    for passing route name of callback URL to be used by autocomplete Javascript Library.
  2. '#autocomplete_route_parameters':
    for passing array of arguments to be passed to autocomplete handler.
$form['name'] = array( '#type' => 'textfield', '#autocomplete_route_name' => 'my_module.autocomplete', '#autocomplete_route_parameters' => array('field_name' => 'name', 'count' => 10), );

Thats all! for adding an #autocomplete callback to a textfield. 

However, there might be cases where the routes provided by core might not suffice as we might different response in JSON or additional data. Lets take a look at how to write a autocomplete callback, we will be using using my_module.autocomplete route and will pass arguments: 'name' as field_name and 10 as count.

Step 2: Define autocomplete route

Now, add the 'my_module.autocomplete' route in my_module.routing.yml file as:

my_module.autocomplete: path: '/my-module-autocomplete/{field_name}/{count}' defaults: _controller: '\Drupal\my_module\Controller\AutocompleteController::handleAutocomplete' _format: json requirements: _access: 'TRUE'

While Passing parameters to controller, use the same names in curly braces, which were used while defining the autocomplete_route_parameters. Defining _format as json is a good practise.

Step 3: Add Controller and return JSON response

Finally, we need to generate the JSON response for our field element. So, proceeding further we would be creating AutoCompleteController class file at my_module > src > Controller > AutocompleteController.php.

<?php namespace Drupal\my_module\Controller; use Drupal\Core\Controller\ControllerBase; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use Drupal\Component\Utility\Tags; use Drupal\Component\Utility\Unicode; /** * Defines a route controller for entity autocomplete form elements. */ class AutocompleteController extends ControllerBase { /** * Handler for autocomplete request. */ public function handleAutocomplete(Request $request, $field_name, $count) { $results = []; // Get the typed string from the URL, if it exists. if ($input = $request->query->get('q')) { $typed_string = Tags::explode($input); $typed_string = Unicode::strtolower(array_pop($typed_string)); // @todo: Apply logic for generating results based on typed_string and other // arguments passed. for ($i = 0; $i < $count; $i++) { $results[] = [ 'value' => $field_name . '_' . $i . '(' . $i . ')', 'label' => $field_name . ' ' . $i, ]; } } return new JsonResponse($results); } }

We would be extending ControllerBase class and would then define our handler method, which will return results. Parameters for the handler would be Request object and arguments (field_name and count) passed in routing.yml file. From the Request object, we would be getting the typed string from the URL. Besides, we do have other route parameters (field_name and Count) on the basis of which we can generate the results array. 

An important point to be noticed here is, we need the results array to have data in 'value' and 'label' key-value pair as we have done above. Then finally we would be generating JsonResponse by creating new JsonResponse object and passing $results.

That's all we need to make autocomplete field working. Rebuild the cache and load the form page to see results.

PURUSHOTAM RAI Mon, 02/19/2018 - 17:29

Cousin of ITAPPMONROBOT

The Daily WTF -

Every year, Initrode Global was faced with further and further budget shortages in their IT department. This wasn't because the company was doing poorly—on the contrary, the company overall was doing quite well, hitting record sales every quarter. The only way to spin that into a smaller budget was to dream bigger. Thus, every quarter, the budget demanded greater and greater increases in sales, and the exceptional growth was measured against the desired phenomenal growth and found wanting.

IT, being a cost center, was always hit by budget cuts the hardest. What did they need money for? The lights were still on, the mainframes still churning; any additional funds would only encourage them to take wild risks and break things.

One of the things people were worried about breaking were the thin clients. These had been purchased some years ago from Smyrt, who had been acquired the previous year by Hell Computers. There would be no tech support or patching, not from Hell. The IT department was on their own to ensure the clients kept running.

Unfortunately, the things seemed to have a will of their own—and that will did not include remaining up for weeks on end. Every once in a while, when booting Linux on the thin clients, the Thin Film Transistor screen would turn dark as soon as the X server started. They would remain dark after that; however, when the helpdesk SSH'd into the system, the screen would of course render perfectly on their end. So there was nothing to do to troubleshoot except lug a thin client to their work area and test workarounds from there.

The worst part of this kind of troubleshooting is when the problem is an intermittent one. The only way they could think to reproduce the problem was to spend hours in front of the client, turning it off and back on again. In the face of budget cuts, the already understaffed desk had no manpower to do something so trivial and dull.

Tedium is the mother of invention. Many of the most ingenious pieces of automation were put in place when an enterprising programmer was faced with performing a mind-numbing task over and over for the foreseeable future. Such is the case in this instance. Lacking the support staff to power cycle the machine over and over, the staff instead built a robot.

A webcam was found in the back room, dusty and abandoned, the last vestige of a proposed work-from-home solution that never quite came to fruition years before. A sticker of transparent rubber someone found in their desk was placed over the metal rim of the camera so it wouldn't leave any scratches on the glass of the TFT screen. The webcam was placed up close against one strategically chosen corner of the screen, and attached to a Raspberry Pi someone brought from home.

The Pi was programmed to run a bash script, which in turn called a CLI image-grabbing tool and then applied some ImageMagick filters to determine the brightness value of the patch of screen it could see. This brightness value was compared against a known list of brightnesses to determine which state the machine was in: the boot menu, the Linux kernel messages scrolling past, the colorful login screen, or the solid black screen representing the problem. When the Pi detected a login screen, it would run a scripted reboot on the thin client using SSH and a keypair. If, instead, the screen remained dark for a long period of time, it would send an IM through the company messaging solution to alert the staff that they could begin their testing, then exit.

We've seen machines with the ability to manipulate physical servers. Now, we have machines seeing and evaluating the world in front of them. How long before we reach peak Skynet potential here at TDWTF? And what would the robot revolution look like, with founding members such as these?

[Advertisement] Incrementally adopt DevOps best practices with BuildMaster, ProGet and Otter, creating a robust, secure, scalable, and reliable DevOps toolchain.

Salon Magazine Mines Monero On Your Computer If You Use an Ad Blocker

Slashdot -

dryriver shares a report from BBC: News organizations have tried many novel ways to make readers pay -- but this idea is possibly the most audacious yet. If a reader chooses to block its advertising, U.S. publication Salon will use that person's computer to mine for Monero, a cryptocurrency similar to Bitcoin. Creating new tokens of a cryptocurrency typically requires complex calculations that use up a lot of computing power. Salon told readers: "We intend to use a small percentage of your spare processing power to contribute to the advancement of technological discovery, evolution and innovation." The site is making use of CoinHive, a controversial mining tool that was recently used in an attack involving government websites in the UK, U.S. and elsewhere. However, unlike that incident, where hackers took control of visitors' computers to mine cryptocurrency, Salon notifies users and requires them to agree before the tool begins mining.

Read more of this story at Slashdot.

jmolivas.com: Try Drupal 8.5 and umami profile using one command

Drupal Planet -

Try Drupal 8.5 and umami profile using one command jmolivas Mon, 02/19/2018 - 08:23 Body

If you are following the upcoming release of Drupal 8.5 you might be aware of the umami profile. This installation profile is part of the Out of The Box experience initiative. The goal of this profile is to add sample content presented in a well-designed theme, displayed as a food magazine. Using recipes and feature articles this example site will make Drupal look much better right from the start and help evaluators explore core Drupal concepts like content types, fields, blocks, views, taxonomy, etc.

Chrome Extension Brings 'View Image' Button Back

Slashdot -

Google recently removed the convenient "view image" button from its search results as a result of a lawsuit with stock-photo agency Getty. Thankfully, one day later, a developer created an extension that brings it back. 9to5Google reports: It's unfortunate to see that button gone, but an easy to use Chrome extension brings it back. Simply install the extension from the Chrome Web Store, and then any time you view an image on Google Image Search, you'll be able to open that source image. You can see the functionality in action in the video below. The only difference we can see with this extension versus the original functionality is that instead of opening the image on the same page, it opens it in a new tab. The extension is free, and it will work with Chrome for Windows, Mac, Chrome OS, or anywhere else the full version of Chrome can be used. 9to5Google has a separate post with step-by-step instructions to get the Google Images "view image" button back.

Read more of this story at Slashdot.

Google Trains AI To Write Wikipedia Articles

Slashdot -

The Register: A team within Google Brain -- the web giant's crack machine-learning research lab -- has taught software to generate Wikipedia-style articles by summarizing information on web pages... to varying degrees of success. As we all know, the internet is a never ending pile of articles, social media posts, memes, joy, hate, and blogs. It's impossible to read and keep up with everything. Using AI to tell pictures of dogs and cats apart is cute and all, but if such computers could condense information down into useful snippets, that would be really be handy. It's not easy, though. A paper, out last month and just accepted for this year's International Conference on Learning Representations (ICLR) in April, describes just how difficult text summarization really is. A few companies have had a crack at it. Salesforce trained a recurrent neural network with reinforcement learning to take information and retell it in a nutshell, and the results weren't bad.

Read more of this story at Slashdot.

Sweden Considers Six Years in Jail For Online Pirates

Slashdot -

Sweden's Minister for Justice has received recommendations as to how the country should punish online pirates. From a report: Helene Fritzon received a proposal which would create crimes of gross infringement under both copyright and trademark law, leading to sentences of up to six years in prison. The changes would also ensure that non-physical property, such as domain names, can be seized.

Read more of this story at Slashdot.

The Wikipedia Zero Program Will End This Year

Slashdot -

Wikimedia: Wikimedia 2030, the global discussion to define the future of the Wikimedia movement, created a bold vision for the future of Wikimedia and the role we want to play in the world as a movement. With this shared vision for our movement's future in mind, the Wikimedia Foundation is evolving how we work with partners to address some of the critical barriers to participating in free knowledge globally. After careful evaluation, the Wikimedia Foundation has decided to discontinue one of its partnership approaches, the Wikipedia Zero program. Wikipedia Zero was created in 2012 to address one barrier to participating in Wikipedia globally: high mobile data costs. Through the program, we partnered with mobile operators to waive mobile data fees for their customers to freely access Wikipedia on mobile devices. Over the course of this year, no additional Wikipedia Zero partnerships will be formed, and the remaining partnerships with mobile operators will expire. In the program's six year tenure, we have partnered with 97 mobile carriers in 72 countries to provide access to Wikipedia to more than 800 million people free of mobile data charges. Further reading: Medium.

Read more of this story at Slashdot.

Roy Scholten: Tweets starting from here

Drupal Planet -

18 Feb 2018 /sites/default/files/styles/large/public/20180219-notes-ui.png?itok=Xp6Vepyy Tweets starting from here

My previous post inspired Joeri to some improvements on his site. Nice!

I built another step towards POSSE this weekend: tweet-sized notes posted as content on yoroy.com that get pushed to Twitter via RSS and Zapier. Here’s how:

Create a new content type “Note”. This one needs to only have a text area. And here we run into Drupal always requiring a title. We can’t create entities without giving it a title. The title itself is always a text field, so not ideal for writing 280 char bits of text. Two contrib modules to work around this:

  • Auto entity label to define an automatic pattern for the title of these Notes. I set it to use a simple timestamp.
  • Exclude node title to actually hide the title field on the Note creation form and on display.

Next I defined a new text format that does not use CKEditor but allows tags and automatically transforms URLs into links. I set this to be the default text format for the text area on the Note using the Better Formats module (sadly currently only available as an old development release). This step is optional, it helps remove user interface clutter. This gives me a content creation form with just a single plain text text area, a “published” checkbox and a Save button.

I updated the views that list blog content on this site to also include content of type “Note” and configured a Notes RSS feed as well. I use this feed as an input on Zapier where the Notes body is extracted and posted as a tweet.

Tags posse twitter Drupal content modeling drupalplanet

Occupational Licensing Blunts Competition and Boosts Inequality

Slashdot -

Occupational licensing -- the practice of regulating who can do what jobs -- has been on the rise for decades. In 1950 one in 20 employed Americans required a licence to work. By 2017 that had risen to more than one in five. From a report: The trend partly reflects an economic shift towards service industries, in which licences are more common. But it has also been driven by a growing number of professions successfully lobbying state governments to make it harder to enter their industries. Most studies find that licensing requirements raise wages in a profession by around 10%, probably by making it harder for competitors to set up shop. Lobbyists justify licences by claiming consumers need protection from unqualified providers. In many cases this is obviously a charade. Forty-one states license makeup artists, as if wielding concealer requires government oversight. Thirteen license bartending; in nine, those who wish to pull pints must first pass an exam. Such examples are popular among critics of licensing, because the threat from unlicensed staff in low-skilled jobs seems paltry. Yet they are not representative of the broader harm done by licensing, which affects crowds of more highly educated workers like Ms Varnam. Among those with only a high-school education, 13% are licensed. The figure for those with postgraduate degrees is 45%. [...] One way of telling that many licences are superfluous is the sheer variance in the law across states. About 1,100 occupations are regulated in at least one state, but fewer than 60 are regulated in all 50, according to a report from 2015 by Barack Obama's White House. Yet a handful of high-earning professions are regulated everywhere. In particular, licences are more common in legal and health-care occupations than in any other.

Read more of this story at Slashdot.

Pages

Subscribe to Heydon Consulting aggregator