Devel “devel.toolbar.settings_form” does not exist even though the route exists

After updating my core with 8.6.15 and devel with 8.2 version, I am facing the following error: Route "devel.toolbar.settings_form" does not exist.

    The website encountered an unexpected error. Please try again later. </br></br><em class="placeholder">Symfony\Component\Routing\Exception\RouteNotFoundException</em>:  Route "devel.toolbar.settings_form" does not exist. in <em class="placeholder">Drupal\Core\Routing\RouteProvider-&gt;getRouteByName()</em>  (line <em class="placeholder">201</em> of <em class="placeholder">core/lib/Drupal/Core/Routing/RouteProvider.php</em>). <pre class="backtrace">Drupal\Core\Routing\UrlGenerator-&gt;getRoute(&#039;devel.toolbar.settings_form&#039;) (Line: 271) 

Determine whether there exists a one-to-one character mapping from one string to another

The task

Determine whether there exists a one-to-one character mapping from one string s1 to another s2.

For example, given s1 = abc and s2 = bcd, return true since we can map a to b, b to c, and c to d.

Given s1 = foo and s2 = bar, return false since the o cannot map to two characters.

My solution

const s1 = "foo"; const s2 = "bar";  const isMapable = (s1, s2) => new Set(s1).size === new Set(s2).size;;  console.log(isMapable(s1, s2)); 

Seems to be too easy…not sure whether I miss something…

Using AppleScript to delete an event still exists in Calendar

I’m trying to write a script that clears a calendar (an iCloud one) of all of its events. I have the following:

tell application "Calendar" tell calendar "Test calendar" set theEvents to every event repeat with current_event in theEvents delete current_event end repeat end tell end tell

In Script Debugger, I can see that the number of events in the list “theEvents” is going down as it deletes each one. If I run the script again, Script Debugger tells me that there are now no events in the calendar. However I can still access and change the events in the Calendar app, be that on the same computer or on another device or the iCloud website.

What’s going on here?

Cheers for any help,


iptables: No chain/target/match by that name., but chain EXISTS

I have created a new chain with the following command

iptables -N INPUT2 

I then attempted to add a fire wall rule with the following command

iptables -I INPUT2 1 -p tcp --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT 

But I get this error

iptables: No chain/target/match by that name. 

However when I attempt to see if the chain exists, it does

iptables -L INPUT2  Chain INPUT2 (0 references) target     prot opt source               destination 

Any ideas whats going on here?

Drush cim: error “Table xyz already exists”

I’m trying to deploy a dev website to a dev server. When running drush cim on the dev server, drush ends with an error message:

Table honeypot_user already exists

When running drush cim again right after that, the same error comes up again for a while with different table-names. The database does definitely not have these tables before running the config import.

What’s the underlying problem and how can I solve that?

Using drush 8.1.17 on a Drupal 8.3.7 (both running offline and soon to be updated for security patches)

The workflow could not create the list item. Make sure the list exists and the user has permissions to add items to the list

I am working on a Sharepoint Online environment. I have a 2013 Main Workflow running sub 2010 workflows. Let me set this straight: everything worked properly until today. I never saw this error before, and I am finding the waste of time trying to search online as to what this generic stupid error could really mean extra-annoying.

The main workflow is being accessed as supposed to, the history logging is being done properly in this first stage. Once the sub workflow is accessed, immediately the error is logged in the history list. And when I say immediately, I mean immediately, the first command is not even done. (In fact Status is saying: Failed on start)


Failed on start (retrying) 


The workflow could not create the list item. Make sure the list exists and the user has permissions to add items to the list 


Unknown error 

The thing is, the ‘Create item’ command in the sub workflow, comes after the Sub workflow would supposedly have already created 2 history logs. These are nowhere to be seen in the history list: I only see the error. So Sharepoint is telling me that the item could not be added because: the list may not exist, or the user may not have permissions, BUT the flow would not have reached that point, as no logs are actually surpassed! Nice one Sharepoint :’)

I changed the permissions of the client experiencing this issue to be global admin, but it didn’t solve the problem. I am trying to run them from my account but still: same problem.

I found somewhere that the problem could be with cache, but I cannot seem to find from where I can reset it. Besides, having to reset the cache because of this idiotic problem. to me, really makes no sense.

Any suggestions would be appreciated.

UPDATE: The workflow is working properly on previously created list items. The issue is happening on newly created list items. Other workflows are working properly too: for example, I have a workflow which runs automatically on creation/update and it’s working as supposed to.

QEMU USB passthrough -device usb-host: drive exists

I am using Qemu, running on an Arch Host to use a Windows VM, and I need to passthrough the webcam. It is an integrated webcam using USB>=2.

lsusb yields for this device
Bus 001 Device 002: ID 0c45:6723 Microdia

Here is the script I am using (

#! /bin/bash sudo qemu-system-x86_64 \      -m 8G \      -enable-kvm -cpu host -smp cores=4 \      -vga virtio -display sdl,gl=on \      -drive file=win,format=raw \      -device nec-usb-xhci\      -device usb-host,hostbus=1,hostaddr=2\      2>&1 win.log 

But this stops with:
qemu-system-x86_64: -device usb-host,hostbus=1,hostaddr=2: drive with bus=0, unit=0 (index=0) exists
And I cannot find where the error is. The VM boots without a problem when I remove the 2 -device lines.

This script is based on what I could find there :

And the folder is setup as such:

ls -lh win* -rw-r--r-- 1 soulthym users 128G Apr 13 19:34 win -rw-r--r-- 1 soulthym users 4.4G Apr 11 20:28 win.iso -rw-r--r-- 1 soulthym users    0 Apr 13 18:57 win.log -rwxr-xr-x 2 soulthym users  297 Apr 13 19:57 

Check whether a value exists in either cell in a pair of rows for a whole column

I have a spreadsheet that operates as a roster and I want to work out coverage. So each column represents a shift and each pair of rows represents a day because each day has two slots available.

To explain what I mean, consider this table:

 |   Col1   |  Col2   |  Col3   |  |----------|---------|---------| | John     | John    |         |   | Bob      |         |         |   | -------- | ------- | ------- |   | John     |         |         |   | Bob      |         | John    |   | -------- | ------- | ------- |   | John     |         |         |   |          | Bob     |         |   | -------- | ------- | ------- |   | -------- | ------- | ------- |   | 3        | 2       | 1       |   

Each name is on a different row (the —- separator is just for clarity). I want to first check if a string exists in each pair of rows (to indicate it has been covered) and then the bottom row represents how many of the days have coverage.

Currently, I just do a =IF(OR(C3<>"", C4<>""), 1, 0), =IF(OR(C5<>"", C6<>""), 1, 0), etc. for each pair in a separate column and then sum it at the bottom but I feel that there has to be a better way.

How to check whether a file exists, outside a Makefile rule?

This is a pseudo code:

if .gitignore exists      GITIGNORE_PATH := .gitignore else     GITIGNORE_PATH := ../.gitignore fi  all:      do_build... 

I tried to search this, but they always show how to do this inside rules, as in:

$  (UBIN)/%:     @if [ -f '$  @' ]; then \         $  (CC) $  (CFLAGS) -o '$  @' $  (OBJS) -L $  (ORAHOME) $  (ORALIBS) \         $  (LNKPATH) $  (DSTN_LIBS); \         echo ""; \     fi 
  1. Testing if a file exists in a make file
  2. Testing if a file exists in makefile target, and quitting if not present
  3. How to check if a file exists in a makefile