Far Cry 5: Cracker umgehen komplexen Kopierschutz aus Denuvo und VMProtect

heise online Newsticker - 19. April 2018 - 11:00
Nicht einmal drei Wochen nach dem Marktstart ist auf Tauschbörsen die Vollversion vom PC-Spiel Far Cry 5 inklusive eines Cracks aufgetaucht. Für Publisher und Entwickler Ubisoft ist dies fatal.

Oberverwaltungsgericht: Hamburger Handelskammer muss Daten nicht offenlegen

heise online Newsticker - 19. April 2018 - 11:00
Auch bei der nächsthöheren Instanz scheitert der Chaos Computer Club mit seiner Klage, dass die Hamburgische Handelskammer ihre Daten nach Transparenzgesetz freigeben soll.

Saudi-Arabien bereitet sich auf Eröffnung des ersten Kinos vor

heise online Newsticker - 19. April 2018 - 10:30
Konzerte, Messen – und jetzt auch ein Kino: Am Mittwoch soll das erste Lichtspielhaus seit den 80er-Jahren in Saudi-Arabien eröffnet werden. Um den Premierenfilm gibt es bislang nur Gerüchte.

Facebook entfernt Cybercrime-Gruppen mit 300.000 Mitgliedern

heise online Newsticker - 19. April 2018 - 10:30
Nach Hinweisen des Security-Journalisten Brian Krebs hat Facebook knapp 120 Gruppen gelöscht, in denen kriminelle Dienstleistungen beworben wurden. Mehr als 300.000 Mitglieder waren dort aktiv.

orkjerns blogg: How to find the route name in Drupal 8?

Planet Drupal - 19. April 2018 - 10:21
How to find the route name in Drupal 8? admin Thu, 04/19/2018 - 08:21

In many cases, a route name is something you might need to get something done in Drupal 8. For example to generate a link, or maybe create a local task in your module.

Some examples:

The path can be found in a routing.yml file

Some times you can just search for the path in your codebase, and then find the corresponding route name. Let's say that I wanted to link to the page mysite.com/admin/config/regional/translate. If I just search the codebase for this path, it would be revealed in the file locale.routing.yml:

locale.translate_page: path: '/admin/config/regional/translate' defaults: _controller: '\Drupal\locale\Controller\LocaleController::translatePage' _title: 'User interface translation' requirements: _permission: 'translate interface'

To link to this page using the API for generating links, I would then do something like this:

$link = Link::fromTextAndUrl(t('Translate interface'), Url::fromRoute('locale.translate_page'));

So to conclude, the route name for that particular page is the key in the routing file, in this case locale.translate_page.

The path can not be found in a routing.yml file

Now, this is what I really wanted to write about in this blog post. Getting the route name directly from a routing file is simple enough, but where do you look if the path can not be found in a routing file?

Find route name with PHPStorm

My first trick is to utilize the IDE I use, PHPStorm.

Start by setting a breakpoint in index.php on the line that looks like this:

$response->send();

Next step, refresh your browser on the page you want to know the route name for, and hopefully trigger your breakpoint. Then you click on the icon for "evaluate expression". On my work computer this has the shortcut key alt-f8, but you can also find it in the debugger toolbar, or via the menu (Run -> Evaluate expression).

Then evaluate the following code:

\Drupal::routeMatch()->getRouteName()

That should give you the name of the route. As illustrated below in a gif:

Find route name with any development enviroment.

Now, I realize that not everyone uses PHPStorm, so here is one solution that should work without having xdebug and an IDE set up:

Following the same tactic as above, let's open up index.php again. Now, just change the following code:

$response = $kernel->handle($request); +print_r(\Drupal::routeMatch()->getRouteName()); $response->send();

The difference here is adding the line with print_r.

Now visit the page you want to know the route name for. This will print the name of the route as the very first output of your Drupal site. Since you probably do not want this for your live Drupal site, this is best done on a development copy.

Other options

You can also use the module webprofiler which is a part of the devel module. This may or may not invlove more steps than necessary, depending on your project. But to be fair, that is also an option.

To finish off, here is an animated gif in the category "route". Let me know your tips and tricks in the comments!

EU-Kommission will Whistleblower stärker absichern

heise online Newsticker - 19. April 2018 - 10:00
Die Brüsseler Regierungseinrichtung hat einen Entwurf für eine Richtlinie ausgearbeitet, mit dem sie EU-weit Mindeststandards für den Schutz von Hinweisgebern etablieren will.

Azure Sphere: Microsoft setzt auf Linux statt Windows fürs IoT

heise online Newsticker - 19. April 2018 - 10:00
Mit Azure Sphere schnürt Microsoft ein IoT-Paket aus zertifizierten Chips, speziellem Betriebssystem und einem Sicherheitsdienst aus der Cloud – und entscheidet sich für Linux statt Windows.

Bundesfinanzminister kündigt Gesetz gegen gefälschte Waren im Online-Handel an

heise online Newsticker - 19. April 2018 - 9:30
Der neue Bundesfinanzminister OIaf Scholz sieht dringenden Handlungsbedarf bei Produktfälschungen im Online-Handel. Per Gesetz will er die Händler dazu bringen, ihre Mitverantwortung anzuerkennen.

Zahlen, bitte! 5 - Wie bunt ist die Ebene?

heise online Newsticker - 19. April 2018 - 9:30
Das berühmte Vier-Farben-Problem zum Einfärben von Landkarten ist gelöst, aber eine zweite Vier-Farben-Frage zur "chromatischen Zahl der Ebene" widersetzt sich seit 1950 einer Antwort. Seit Kurzem weiß man, dass sie mindestens fünf lautet.

Ein Jahr nach Freilassung: Chelsea Manning kommt zur re:publica

heise online Newsticker - 19. April 2018 - 8:30
Die re:publica hat ihren Stargast: Chelsea Manning wird Anfang Mai in Berlin erwartet und von ihrem Leben nach jahrelanger US-Militärhaft erzählen. Manning hatte Informationen an Wikileaks weitergegeben und war später enttarnt worden.

Flocon de toile | Freelance Drupal: Set up a simple inventory control with Drupal Commerce 2

Planet Drupal - 19. April 2018 - 8:00
If we do not have (yet) a contributed module (commerce_stock should be available soon), Drupal Commerce 2 already has an API to set up an simple inventory control, with the Availability Manager service. Let's look at how to set up a very simple stock control, based on a field (for example field_stock) that has been added on a product.

heise Security Tour: Für Phishing-Tests missbraucht

heise online Newsticker - 19. April 2018 - 7:30
Mit einem Test, ob die Schulung erfolgreich war, sorgte ein IT-Dienstleister für Verwirrung und Ärger. Er missbrauchte Namen und Logo von heise Security für Phishing-Mails.

Java 10 hält Einzug auf dem Raspberry Pi

heise online Newsticker - 19. April 2018 - 7:00
Liberica JDK 10 ist die Umsetzung des OpenJDK 10 für Raspberry Pi 2 und 3 mit Raspbian OS. Es bietet unterschiedliche VMs und enthält JavaFX.

Vorgeplant: Angriffswege durch taktische Informationsbeschaffung aufdecken

heise online Newsticker - 19. April 2018 - 6:00
Unternehmen heuern Red Teams an, um sie wie Angreifer Schwachstellen in der eigenen IT aufdecken zu lassen. Bei der taktischen Informationsbeschaffung zeigen sie, wie leicht sich die Schatten-IT ausnutzen lässt.

myDropWizard.com: Security Vulnerabilities Affect Your Dev Sites Too

Planet Drupal - 18. April 2018 - 23:25

When Drupalgeddon 2 (SA-CORE-2018-002) happened a few weeks back, we saw plenty of buzz from agencies and other organizations throughout the community who were having patching parties.

Yay for patching! But were you left vulnerable by not updating all of your installations?

If you didn’t update development and staging sites, you may be at risk!

Due to the nature of the vulnerability, from the largest of enterprise applications to the smallest of brochure or hobbyist site builds, all Drupal sites were affected. This includes any testing or staging versions of your site. Depending on how you manage your local development sites, even those may have been exposed too!

Still not convinced? Read more to find out why you need to update ALL sites!

Sooper Drupal Themes: Web Forms In Drupal 8 With Contact Module And Webform Module | 8 Days To Drupal 8 | Day 3

Planet Drupal - 18. April 2018 - 19:57

We're counting down the days to the official SooperThemes Drupal 8 Release! Count with us as we will be writing a Drupal 8 related blog post every day for the next 8 days.

Drupal 8 web forms and drag and drop forms video tutorial

view on sooperthemes.com if you can't see the video

This tutorial is aimed at people who just need a contact form or some other kind of user input form. We'll cover deciding between the core contact module and the popular webform module. We won't cover using the Drupal API to program complex forms that integrate with external applications.

Drupal 8 Core Contact Module

Whereas the Drupal 7 core contact module was not very useful due to a total lack of flexibility, the Drupal 8 version is much nicer. It's nicer because you can add fields to it. You're no longer limited to just the name, email, subject and message fields that were baked into the Drupal 7 version. 

Not only does the new contact form allow for custom text fields, it even supports file uploads, entity references, date fields, and other Field API fields.This simple yet powerful form builder module is not limited to just contact forms; you can use it to create questionnaires, gather user feedback, etc.  

Drupal 8 Contact module customized form

Better Together: Contact Module + Contact Storage Module

One major inconvenience of the Contact module is that is doesn't store any messages that are sent. Your only option is to send the message via email and afterwards there is no copy of the message in your Drupal site. The contact storage module will store your messages as entities. It lets you administer the messages and provides integration with the views module. Since the messages are stored as Drupal entities you also gain interoperability with other modules in the Drupal ecosystem. This will allow you to do even more, for example exporting messages as CSV, searching messages, and pushing messages to your CRM.

Webform Module

Drupal's popular webform module is a massive framework that offers a ton of extra options that the contact module doesn't have. You should choose the webform module if these extra features are useful to you and you're prepared to learn the ropes around a more complex user interface. The webform module can be intimidating at first because there are so many elements and settings... but once you're familiar with the interface you can configure and design very powerful forms fairly easily. 

To see what the webform module offers it's really better for me to show than tell. Check out the youtube video above where I show you the interface of the webform module.

Drupal 8 Webform module form using the flexbox layout option

Contact Module vs Webform Module

Personally I choose the webform module for anything that is more complicated than just the standard contact form with a subject and message field. The contact module is powerful and extendable, but the webform module gives you everything you need in one place. It's a purpose-built single-purpose application within Drupal and once you get familiar with it it's really very powerful. 

It also lets met build multi-column form layouts, a feature that I use often.

A feature-base comparison of Contact and Module based on features that I think are important: Feature
  • Multi-column layouts
  • Control labels and placeholders
  • Control Submit Button Text
  • Route email with form options
  • Search in submissions
  • Export submissions
Contact
  • ✔ (can't remove Preview)
  • ✔ (needs additional modules)
  • ✔ (needs additional modules)
Webform
Placing Drupal 8 Forms With Our Visual Page Builder

We believe interoperability with the Drupal ecosystem is important for Glazed Builder. This is why we don't include a proprietary form builder in Glazed Builder and instead encourage you to create forms with Drupal's webform module. Currently Glazed Builder let's you place blocks created with the webform module anywhere in your drag and drop page. The contact module doesn't provide blocks that we can drag and drop natively, but you can install the contact_block module to fix that.

Yakuza 6 – The Song of Life angespielt: Gangster Blues

heise online Newsticker - 18. April 2018 - 18:30
Eine Runde Pathos geht noch. Yakuza 6: The Song of Life ist das große Finale der langlebigen und schwermütigen Gangster-Saga aus dem Hause Sega, die mit ihrem Mix aus Prügelaction und Lebenssimulation zum Kulthit wurde.

Open Heritage: Google und CyArk konservieren alte Bauwerke (als 3D-Modell)

heise online Newsticker - 18. April 2018 - 18:30
Gemeinsam mit CyArk konserviert Google alte Kulturstätten als 3D-Modell. So werden gefährdete Weltwunder zumindest digital gesichert. Die Nutzer können mystische Tempel von innen und außen erkunden – oder das Brandenburger Tor besuchen.

PowerDVD 18: Volle 4K-Unterstützung, neuer Mini-Player, VR-Videos ohne Brille

heise online Newsticker - 18. April 2018 - 18:00
Die Media-Player-Software PowerDVD 17 ermöglichte im vergangenen Jahr erstmals die Wiedergabe von Ultra HD Blu-rays am PC. Nun legt der Hersteller nach.

Telegram-Blockade in Russland trifft AWS und Googles Cloud: Viele Kollateralschäden

heise online Newsticker - 18. April 2018 - 18:00
Weil Telegram Teile der eigenen Infrastruktur zu großen Cloudanbietern geschoben hat, ordnete die zuständige russische Behörde eine Sperrung unzähliger IP-Adressen an, um die verfügte Blockade durchzusetzen. Das traf einige andere Dienste.