Networking – "Bluetooth: Initialized TTY RFCOMM layer" takes a long time to boot

Release of dmesg:

[   18.062831]    wlp1s0: associate
[   18.516902] IPv6: ADDRCONF (NETDEV_CHANGE): wlp1s0: the link is ready
[   18.844430] vboxdrv: loading the module outside the tree is staining the kernel.
[   18.862837] vboxdrv: 8 processor cores found
[   18.880547] vboxdrv: the TSC mode is invariant, provisional frequency 1800001178 Hz
[   18.880549] vboxdrv: The version 5.2.18_Ubuntu (interface 0x00290001) has been loaded successfully
[   18.903066] VBoxNetFlt: started successfully.
[   18.925115] VBoxNetAdp: started successfully.
[   18.959469] VBoxPciLinuxInit
[   18.975413] vboxpci: IOMMU not found (not registered)
[   72.120167] Bluetooth: TTY RFCOMM layer initialized
[   72.120177] Bluetooth: initialized RFCOMM socket layer
[   72.120183] Bluetooth: RFCOMM version 1.11
[   74.132007] rfkill: disabled input manager

"Bluetooth: TTY RFCOMM layer has been initialized" with a lot of time.

Systemd-analysis:

Start completed in 3.461s (kernel) + 22.792s (user space) = 26.253s
graphical.target reaches after 22,754 seconds in user space

Blame systemd-analysis:

                                        13.937s plymouth-quit-wait.service
7.473s postgresql@10-main.service
6.502s NetworkManager-wait-online.service
5.480s fwupd.service
5.170s bolt.service
4.933s mysql.service
3.663s networkd-dispatcher.service
3.618s ModemManager.service
3.532s systemd-journal-flush.service
3.092s udisks2.service
2.637s dev-sda2.device
2.361s motd-news.service
2.348s accounts-daemon.service
2.310s apparmor.service
2.123s plymouth-read-write.service
1.849s gpu-manager.service
1.823s network.service
1.774s avahi-daemon.service
1.732s bluetooth.service
1.727s grub-common.service
1.710s rsyslog.service
1.682s contribution.service
1.643s wpa_supplicant.service

Acer Swift 3 Laptop
The wifi and Bluetooth adapter is Intel Wireless 7265. iwlwifi driver.
SSD 256 GB Micron 1100 SATA3 M.2.

ruby – Rails: constant method not initialized by controller type

I just started my tracks. I'm trying to define routes but the format of my controller is underlined. Therefore, I do not know how to write route.

This is my controller file name:
method_types_controller.rb

This is my route file

Rails.application.routes.draw do

# For more details on the DSL available in this file, see http://guides.rubyonrails.org/routing.html
get & # 39; type_method / index & # 39;
root_mode_method # index & # 39;

end

The result is incorrect:
routing error
Constant uninitialized MethodTypeController

mysql – ERROR 1794 (HY000): The slave is not configured or initialized correctly

it's my.cnf file

[mysqld]

server_id = 1
log_bin = /var/log/mysql/mysql-bin.log
log_bin_index = /var/log/mysql/mysql-bin.log.index
relay_log = / var / log / mysql / mysql-relay-bin
relay_log_index = /var/log/mysql/mysql-relay-bin.index
expire_logs_days = 10
max_binlog_size = 100M
log_slave_updates = 1
automatic incrementation = 2
auto-increment-offset = 1
bind-address = 0.0.0.0

I've clearly mentioned the server-d in my.cnf but I also get this error by stopping the slave.

stop the slave;
ERROR 1794 (HY000): The slave is not configured or initialized correctly. You must at least set –server-id to activate a master or slave. Additional error messages can be found in the MySQL error log.

Anyone can help me as soon as possible.

kernel – the mmc image is not initialized with the QEMU arm emulator

Hi, I'm new to QEMU and I'm trying to emulate an i.MX6Q device below using the QEMU emulator version 3.1.0 on host machines with SMP # 41-Ubuntu 4.15.0-38-generic.

CPU: Freescale i.MX6Q rev1.2 at 792 MHz
Board of Directors: Mx6Q 4G
Boot Device: SPI NOR
I2C: ready
DRAM: 3.7 Gio
MMC: FSL_SDHC: 0

Below, the step-by-step approach I followed to emulate a device

STEP 1 :: Copy uImage from the actual device to the host

STEP 2 :: SD / MMC card cloned from the current device using the command below

sudo dd if = / dev / sdc from = sdcard1.img bs = 4096 conv = notrunc, noerror

Having now a copy of uImage and an image of the SD card on the host machine, the command below was used to start the emulator.

$. / qemu-3.1.0 / arm-softmmu / qemu-system-arm
-machine sabrelite, accel = kvm: tcg
uImage
-m 3840
-smp cpus = 4
-serial my: stdio
-drive file = sdcard1.img, format = raw, id = mycard
-device sd-card, drive = mycard

It started the uImage kernel correctly as below

VNC server running on 127.0.0.1:5900
Start Linux on a physical CPU 0x0
Initializing the cgroup cpuset
Initialization of cgroup subsys cpu
Initializing the cgroup cpuacct subsystems
Linux version 3.10.53 (build_team @ u1004-swb02) (gcc version 4.7.3 20130102 (preliminary version) (crosstool-NG 1.18.0)) # 1 SMP PREEMPT Tue 13 Jun 16:03:05 TAP 2017
CPU: ARMv7 processor [410fc090] revision 0 (ARMv7), cr = 10c53c7d
CPU: PIPT / VIPT data cache without alienation, VIPT instruction cache without alienation
Machine: i.MX6q
...

However, it did not attach the cloned sdcard image from the actual device, but simply ignored it and proceeded as below without having to mount mmc0.

mmc0: no regulator vqmmc found
mmc0: no vmmc regulator found
mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
mmc2: no regulator vqmmc found
mmc2: no vmmc regulator found
mmc2: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA

On the current device, I think mmc is booted by U-Boot itself. And when running the kernel, it is mounted on mmblk0 as below.

mmc0: no regulator vqmmc found
mmc0: no vmmc regulator found
mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
mmc2: no regulator vqmmc found
mmc2: no vmmc regulator found
mmc0: The host does not support reading a read-only switch. assuming that the writing is enabled.
mmc0: new high speed SDHC card at 59b4 address
mmcblk0: mmc0: 59b4 HSG04 3.74 GiB
mmcblk0: p1 p2
mmc2: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA

As mmc is not initialized in my case, startup after a certain point fails and crashes with kernel error "Unable to handle kernel paging query at virtual address ffffffec ".

Can any one suggest to me if I was wrong in any of the steps of creating the mmc drive or the qemu command used to attach the mmc drive.

postgresql – Replication Location: FAILED (The location & # 39; barman_the_backupper & # 39; n is not initialized: & # 39; receive-wal & # 39; is it running? )

I run a postgres cluster with one-time restoration with the help of bartender.
He stopped broadcasting WAL. he says that the slot "barman_the_backupper" is not initialized. How can I initiate this slot?
I receive the following newspapers:

root @ 00c27ceaa084: / go # barman check pg_cluster
2019-01-17 13: 33: 18.194 [4497] barman.config DEBUG: Including configuration file: upstream.conf
2019-01-17 13: 33: 18.195 [4497] barman.cli DEBUG: initialized version of Barman 2.4 (config: /etc/barman.conf, arguments: {'check' command, & # 39; server_name & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;) ['pg_cluster'], "Format:" console, "debug: False, quiet: False," nagios: false})
2019-01-17 13: 33: 18,206 [4497] barman.backup_executor DEBUG: The default backup strategy for postgres backup_method is: concurrent_backup
2019-01-17 13: 33: 18,207 [4497] barman.server DEBUG: server retention policy pg_cluster: 30-DAY RECOVERY WINDOW
2019-01-17 13: 33: 18,207 [4497] DEBUG barman.server: WAL retention policy for the pg_cluster server: MAIN
Pg_cluster server:
2019-01-17 13: 33: 18,207 [4497] barman.server DEBUG: Start the check: WAL archive
2019-01-17 13: 33: 18,207 [4497] DEBUG barman.server: launching the check: empty arrival directory
2019-01-17 13: 33: 18,207 [4497] DEBUG barman.server: launch of verification: empty broadcast directory
2019-01-17 13: 33: 18,207 [4497] barman.server DEBUG: Start Control: PostgreSQL
2019-01-17 13: 33: 18,295 [4497] barman.command_wrappers DEBUG: Command: ['/usr/bin/pg_receivewal', '--version']
2019-01-17 13: 33: 18,596 [4497] barman.command_wrappers DEBUG: Return code of the order: 0
2019-01-17 13:33:18,597 [4497] barman.command_wrappers DEBUG: Standard command: pg_receivewal (PostgreSQL) 10.5 (Debian 10.5-1.pgdg80 + 1)

2019-01-17 13:33:18,597 [4497] barman.command_wrappers DEBUG: Stderr command:
2019-01-17 13: 33: 18.598 [4497] barman.wal_archiver DEBUG: Look for & # 39; barman_receive_wal & # 39; in & # 39; synchronous_standby_names & # 39 ;: ['']
2019-01-17 13: 33: 18.598 [4497] barman.wal_archiver DEBUG: Synchronous WAL streaming for barman_receive_wal: false
2019-01-17 13: 33: 18.598 [4497] barman.command_wrappers DEBUG: Command: ['/usr/bin/pg_basebackup', '--version']
2019-01-17 13: 33: 18,904 [4497] barman.command_wrappers DEBUG: Return code of the order: 0
2019-01-17 13: 33: 18,904 [4497] barman.command_wrappers DEBUG: Standard command: pg_basebackup (PostgreSQL) 10.5 (Debian 10.5-1.pgdg80 + 1)

2019-01-17 13: 33: 18,904 [4497] barman.command_wrappers DEBUG: Stderr command:
2019-01-17 13: 33: 18,905 [4497] DEBUG barman.server: Check & # 39; PostgreSQL & # 39; for the server & # 39; pg_cluster & # 39;
PostgreSQL: OK
2019-01-17 13: 33: 18,905 [4497] barman.server DEBUG: checking in progress: is_superuser
2019-01-17 13: 33: 18,905 [4497] barman.server DEBUG: Check "is_superuser" for server "pg_cluster"
is_superuser: OK
2019-01-17 13: 33: 18,905 [4497] barman.server DEBUG: Start Control: PostgreSQL Streaming
2019-01-17 13: 33: 18,905 [4497] barman.server DEBUG: Check "Streaming PostgreSQL" for server "pg_cluster"
PostgreSQL Broadcast: OK
2019-01-17 13: 33: 18,906 [4497] barman.server DEBUG: checking in progress: wal_level
2019-01-17 13: 33: 18,906 [4497] DEBUG barman.server: Check & # 39; wal_level & # 39; for the server & # 39; pg_cluster & # 39;
wal_level: OK
2019-01-17 13: 33: 18,906 [4497] DEBUG barman.server: launching the check: replication location
2019-01-17 13: 33: 18,906 [4497] barman.server ERROR: "Replication Slot" Verification Failed for "pg_cluster" Server
Replication Slot: FAILED (The 'barman_the_backupper' slot is not initialized: is the 'receive-wal' being run?)
2019-01-17 13: 33: 18,906 [4497] barman.server DEBUG: Start Verification: Directories
2019-01-17 13: 33: 18,906 [4497] barman.server DEBUG: Check that the & # 39; directories & # 39; have succeeded for the server 'pg_cluster & # 39;
Directories: OK
2019-01-17 13: 33: 18,906 [4497] barman.server DEBUG: Check In Progress: Retention Policy Settings
2019-01-17 13: 33: 18,906 [4497] DEBUG barman.server: Verification of Successful Retention Policy Settings for Server 'pg_cluster & # 39;
retention policy settings: OK
2019-01-17 13: 33: 18,906 [4497] barman.server DEBUG: initial check: maximum age of backup
2019-01-17 13: 33: 18,906 [4497] DEBUG barman.server: Check "maximum age of backup" for server "pg_cluster"
maximum backup age: OK (no last_backup_maximum_age provided)
2019-01-17 13: 33: 18,906 [4497] barman.server DEBUG: checking in progress: compression settings
2019-01-17 13: 33: 18,907 [4497] barman.server DEBUG: Check the "compression settings" for the "pg_cluster" server.
compression settings: OK
2019-01-17 13: 33: 18,907 [4497] barman.server DEBUG: Start Verification: Backup Failures
2019-01-17 13: 33: 18,907 [4497] barman.server DEBUG: Check "failed backups" for server "pg_cluster"
failed backups: OK (there are 0 failed backups)
2019-01-17 13: 33: 18,908 [4497] DEBUG barman.server: start of the check: minimum requirements for redundancy
2019-01-17 13: 33: 18,908 [4497] DEBUG barman.server: Check "Minimum requirements for redundancy" for the "pg_cluster" server.
minimum requirements for redundancy: OK (1 backup, 1 minimum expected)
2019-01-17 13: 33: 18,908 [4497] barman.server DEBUG: checking in progress: pg_basebackup
2019-01-17 13: 33: 18,908 [4497] barman.server DEBUG: Check "pg_basebackup" for the server "pg_cluster"
pg_basebackup: OK
2019-01-17 13: 33: 18,908 [4497] barman.server DEBUG: checking in progress: compatible pg_basebackup
2019-01-17 13: 33: 18,908 [4497] DEBUG barman.server: Check that compatible pg_basebackup & # 39; succeeded for the server & # 39; pg_cluster & # 39;
Compatible with pg_basebackup: OK
2019-01-17 13: 33: 18,908 [4497] barman.server DEBUG: Start verification: pg_basebackup supports map space mapping
2019-01-17 13: 33: 18,909 [4497] DEBUG barman.server: Check "pg_basebackup supports" table space mapping "successful for server" pg_cluster "
pg_basebackup supports mappings of tablespaces: OK
2019-01-17 13: 33: 18,909 [4497] barman.server DEBUG: verification in progress: configuration
2019-01-17 13: 33: 18,909 [4497] barman.server DEBUG: checking in progress: pg_receivexlog
2019-01-17 13: 33: 18,909 [4497] DEBUG barman.server: Check pg_receivexlog & # 39; for the server & # 39; pg_cluster & # 39;
pg_receivexlog: OK
2019-01-17 13: 33: 18,909 [4497] DEBUG barman.server: launch of the check: compatible pg_receivexlog
2019-01-17 13: 33: 18,909 [4497] barman.server DEBUG: Checking the compatibility of "pg_receivexlog compatible" for the server "pg_cluster"
Compatible with pg_receivexlog: OK
2019-01-17 13: 33: 18.910 [4497] barman.server DEBUG: Start control: receive-wal running
2019-01-17 13: 33: 18.910 [4497] barman.server ERROR: the check of "receive-wal being run & # 39; failed for the server 'pg_cluster & # 39;
receive-wal running: FAILED (see Barman log file for more details)
2019-01-17 13: 33: 18.910 [4497] DEBUG barman.server: launching the verification: archiving errors
2019-01-17 13: 33: 18.910 [4497] barman.server DEBUG: Check "Archiver Errors" for server "pg_cluster"
archiving errors: OK

vb.net – The name of the field or property being initialized in an object initializer must start with ". & # 39;

I'm trying to make an image gallery, but it looks like I'm wrong and I can not find any reference or solution.
This gives me the error.

The name of the field or property being initialized in an object initializer must begin with "."

    Private myImageList As System.Windows.Forms.ImageList = New ImageList ()
Private myImageListSmall As System.Windows.Forms.ImageList = New ImageList ()
Private myImageListLarge As System.Windows.Forms.ImageList = New ImageList ()
Private number as integer = 0
Private ofd as new OpenFileDialog () with {_
Key .Multiselect = True, _
Key .ValidateNames = True, _
Key .Filter = "JPG | * jpg | JPEG | * .jpeg | PNG | * .png"
}
Private Fi as FileInfo

caml – The collection has not been initialized. It has not been requested or the request has not been executed. It may be necessary to explicitly request it

I receive an error below second request. Strange thing is that it does not happen first request.

The collection has not been initialized. It has not been requested or the request has not been executed. It may be necessary to ask explicitly.

function RequestSP (siteUrl, listTitle, xmlCamlQuery, viewFields) {
debugger;
var clientContext = new SP.ClientContext (siteUrl);
var oList = clientContext.get_web (). get_lists (). getByTitle (listTitle);

var camlQuery = new SP.CamlQuery ();
camlQuery.set_viewXml (xmlCamlQuery);

this.spListItemCollection = oList.getItems (camlQuery);

var includeFields = JoinViewFieldsByComma (viewFields);
console.log (includeFields);
clientContext.load (spListItemCollection, "Include (" + includeFields + ")");

clientContext.executeQueryAsync (Function.createDelegate (this, this.onQuerySucceeded), Function.createDelegate (this, this.onQueryFailed));
}

onQuerySucceeded function (sender, arguments) {
debugger;
var listItemInfo = & # 39;

var listItemEnumerator = spListItemCollection.getEnumerator (); // ERROR

while (listItemEnumerator.moveNext ()) {
var oListItem = listItemEnumerator.get_current ();

for (index var in this.ViewFields) {
var internalName = this.ViewFields[index][0];
listItemInfo + = " n" + internalName + ":" + oListItem.get_item (internalName);
}
}

console.log ("Success ...");
}

onQueryFailed function (sender, arguments) {
alert ('The request failed.' + args.get_message () +
& # 39;  n & # 39; + args.get_stackTrace ());
}

EDIT

So, one thing I did not mention, was that I was loading SPRuntime with each request and I updated it with the following, which worked for me.

var spRuntimeLoaded = false;
if (spRuntimeLoaded) {
RequestSP (siteUrl, listTitle, xmlCamlQuery, viewFields);
}
other {
var scriptbase = siteUrl + "/ _layouts / 15 /";
$ .getScript (script base + "SP.Runtime.js",
a function () {
$ .getScript (script base + "SP.js",
a function () {
spRuntimeLoaded = true;
RequestSP (siteUrl, listTitle, xmlCamlQuery, viewFields);

}
)
});
}

The "Add Media" button does not work when the editor is initialized from javascript

I'm trying to instantiate the wp_editor with javascript, which works well except that the "Add Media" button does not work. There is no error, but clicking the button does nothing.

The simplest test case I can think of is to add the editor to the feedback form, which I did via this code in a theme for twenty-nine children with fully stock content (in using the Hello World message! To be tested).

add_action (& # 39; wp_enqueue_scripts & # 39 ;, function () {
if (is_single () && comments_open ()) {
wp_enqueue_editor ();
}
});

add_action (& # 39; wp_footer & # 39 ;, function () {
?>



<? php
}, 100);

The mediaButtons parameter acts to show / hide the button itself, but is not functional.

I have the problem on a 4.9.8 site (custom theme), both on the comment field and on other textareas, I've tried. The simplified test (above) was 5.0 and the same symptom is presented with and without the activated Classic Editor plugin.

I've tried to print the editor via wp_editor () in php, and the add media button then works (for example for the comment field), but this is not a option other than for the test, because the text boxes that I need to use are dynamically added via javascript.

Does anyone have any ideas to try or would there be a configuration in which to instantiate the editor via wp.editor.initialize () gives rise to a "Add Media" job button?

2013 – How to check if ListItem DisplayName is initialized in CSOM (SP2013)?

I currently have a code that looks like this:

static public string GetListItemDisplayName (ClientContext clientContext, ListItem listItem)
{
string displayName;
try
{
displayName = listItem.DisplayName;
}
capture
{
clientContext.Load (listItem, args => args.DisplayName);
clientContext.ExecuteQuery ();
displayName = listItem.DisplayName;
}
return listItem.DisplayName;
}

I have the feeling that using a trycatch is not the most elegant solution to check if the ListItem DisplayName has been launched. Is there another way to do it?
I have tried to use clientContext.Web.IsPropertyAvailable ("DisplayName") but that does not seem to work as I thought.