Guardar puntos geográficos, en el controller, error en ajax

introducir la descripción de la imagen aquí

Tengo algunos puntos en el mapa, que se cargan mediante una petición Ajax.

En mi controlador tengo esto:

public function recogerForm(Request $  request) {      $  marker = new Marker;     $  marker->name = $  request->nombre;     $  marker->address = $  request->direccion;      $  marker->idG = $  request->idG;      $  pos = strpos($  request->LatLng, ',');     $  latitud = substr($  request->LatLng, 1, $  pos-1);     $  longitud = substr($  request->LatLng, $  pos+1,strlen($  request->LatLng));      $  marker->lat = $  latitud;     $  marker->lng = $  longitud;     $  marker->idMarker = '1';//$  request->id;      $  marker->save();      return $  request; } 

En mi ruta tengo lo siguiente:

Route::post('/bus','MapaProcesarController@recogerForm'); 

En mi js:

 function save_marker(marker, place, i) { //Save new marker using jQuery Ajax var mLatLang = marker.getPosition().toUrlValue(); //get marker position var myData = { id: i, name: place.name, address: place.vicinity, latlong: mLatLang, idG: place.id }; //post variables console.log(myData); $  .ajax({   type: "POST",   url: "/bus",   data: myData,   headers: { 'X-CSRF-TOKEN': $  ('meta[name="csrf-token"]').attr('content') },   success: function (data) {      var url = "/guardar";     $  form = $  ('<form class="formMapa" action="' + url + '" method="post"></form>')     $  form.append('<input name="_token" type="hidden" value="' + $  ('meta[name="csrf-token"]').attr('content') + '">');     $  form.append('<input type="text" name="nombre" class="' + "nombre" + data.id + '"/>');     $  form.append('<input type="text" name="direccion" class="' + "direccion" + data.id + '"/>');     $  form.append('<input type="hidden" name="LatLng" class="' + "LatLng" + data.id + '"/>');     $  form.append('<input type="hidden" name="idG" class="' + "idG" + data.id + '"/>');     $  form.append('<input type="hidden" name="idMarker" class="' + "idMarker" + data.id + '"/>');      $  form.append('<input type="submit" name="submit" value="Seleccionar" /><br>');     $  ('.preForm').append($  form);       $  (".nombre" + data.id).val(data.name);     $  (".direccion" + data.id).val(data.address);     $  (".LatLng" + data.id).val(data.latlong);     $  (".idG" + data.id).val(data.idG);     $  (".idMarker" + data.id).val(data.id);     //console.log(myData);             },   error: function (xhr, ajaxOptions, thrownError) {     alert(thrownError); //throw any errors   } }); 

Cuando trato de insertar en mi base de datos el Ajax me marca error si le quito en el controlador el código de insertar en base de datos y sólo dejo

return request

, no me marca error, a qué es debido, por qué no puedo guardar todos los puntos en mi base de datos? en cambio si no los guardo no tengo problemas?

Microsoft XboxOne and XboxOne S controller under Ubuntu (Wired USB)

I’ve got both Xbox One Controllers the Original (shiny plastic around guide button) and the Second Edition (smooth matt plastic to Guide button)

I am connecting these controllers via a USB cable. They are being detected by dmesg and lsusb gives me details about the attached device.

Doesn’t get any further than that.

I’ve tried installing the suggested profiles but nothings working.

Neither of which are being detected in Game or in Steam menus or showing up in the /dev/input list

$  > /dev/input/by-id usb-Logitech_Logitech_G930_Headset-event-if03 usb-Logitech_Trackball-event-mouse usb-Logitech_Trackball-mouse usb-Mad_Catz_Saitek_Pro_Flight_X-56_Rhino_Stick-event-joystick usb-Mad_Catz_Saitek_Pro_Flight_X-56_Rhino_Stick-joystick usb-Microsoft_Natural®_Ergonomic_Keyboard_4000-event-kbd usb-Microsoft_Natural®_Ergonomic_Keyboard_4000-if01-event-kbd usb-Oculus_VR_Rift_Sensor_WMTD303A3011WY-event-if00 
$  > dmesg [  389.625051] usb 3-13: new full-speed USB device number 15 using xhci_hcd [  389.774252] usb 3-13: New USB device found, idVendor=045e, idProduct=02ea, bcdDevice= 3.01 [  389.774255] usb 3-13: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [  389.774258] usb 3-13: Product: Controller [  389.774260] usb 3-13: Manufacturer: Microsoft [  389.774261] usb 3-13: SerialNumber: 3032363030303235393132373233 [  429.862555] usb 3-13: USB disconnect, device number 15 
drevilish@Linsair:~$   lsusb -d 045e:02ea -v  Bus 003 Device 018: ID 045e:02ea Microsoft Corp. Xbox One S Controller Couldn't open device, some information will be missing Device Descriptor:   bLength                18   bDescriptorType         1   bcdUSB               2.00   bDeviceClass          255 Vendor Specific Class   bDeviceSubClass        71    bDeviceProtocol       208    bMaxPacketSize0        64   idVendor           0x045e Microsoft Corp.   idProduct          0x02ea Xbox One S Controller   bcdDevice            3.01   iManufacturer           1    iProduct                2    iSerial                 3    bNumConfigurations      1   Configuration Descriptor: 
Linux Hostname 5.3.0-12-generic #13-Ubuntu SMP Tue Sep 17 12:35:50 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux 

SharePoint Search Host Controller service stucks on starting(in services.msc window)

In our SharePoint 2013 (Enterprise version) based intranet production farm, after SharePoint server reboot, the ‘SharePoint Search Host Controller’ service(in services.msc window) is not running and stucks on starting.

Search functionality i snow not working as this service is not running.

This service was running before and search was also working OK but after server reboot this service has stopped to run. In central admin -> services this service shows as started but in ‘Windows Services’ it is not running.

In event viewer there are following error messages continuously reported.

Event 1000-Faulting application name:hostcontrollerservice.exe

Event 1026-Application:hostcontrollersesrvice.exe,Exception info:System.ServiceModel.AddressAlreadyInUseException.

I have tried following solutions so far to start this service but no joy.

  • Cleared the cache from config folder and modified Cache.ini file
  • Elevated the search account permission on all search related databases, added search account to local admin group as well.

SharePoint Search Host Controller service and SharePoint Server Search15 service both are using the same logon identity account.

USB bluetooth controller still appears even though hardware no longer present

Machine is running 16.04 LTS, current on updates.

I had an IOGear USB bluetooth adapter. Worked reasonably well. At one point I pulled it out to give to my son. Like a fool I just yoinked it out hot. Now I have a replacement, a IOGear GBU521 (which I think was the same as the original). I can’t get it to work, and I am suspecting it’s because the machine insists the previous adapter is still present.

Here is lsusb:

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 007 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 002: ID 046d:c517 Logitech, Inc. LX710 Cordless Desktop Laser Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 009 Device 002: ID 05e3:0612 Genesys Logic, Inc.  Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 008 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 003: ID 058f:6362 Alcor Micro Corp. Flash Card Reader/Writer Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 002: ID 0a5c:21e8 Broadcom Corp. BCM20702A0 Bluetooth 4.0 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub 

and hciconfig:

hci0:   Type: BR/EDR  Bus: USB     BD Address: 00:02:72:C8:AC:34  ACL MTU: 1021:8  SCO MTU: 64:1     UP RUNNING      RX bytes:1038 acl:0 sco:0 events:63 errors:0     TX bytes:4962 acl:0 sco:0 commands:63 errors:0 

bluetoothctl list shows:

Controller 00:02:72:C8:AC:34 khym [default] 

The remove command in bluetoothctl does nothing (says “not available”).

I tried wiping the entries in /var/lib/bluetooth, but the entry for the phantom controller keeps returning. I also found and removed the firmware file /lib/firmware/brcm/BCM20702A1-0a5c-21e8.hcd.

Boot messages include:

Sep 12 23:11:17 khym kernel: Bluetooth: hci0: BCM: chip id 63 Sep 12 23:11:17 khym kernel: Bluetooth: hci0: khym Sep 12 23:11:17 khym kernel: Bluetooth: hci0: BCM20702A1 (001.002.014) build 0000 Sep 12 23:11:17 khym kernel: bluetooth hci0: Direct firmware load for brcm/BCM20702A1-0a5c-21e8.hcd failed with error -2 Sep 12 23:11:17 khym kernel: Bluetooth: hci0: BCM: Patch brcm/BCM20702A1-0a5c-21e8.hcd not found 

When I plug in the new adapter I get an appropriate entry in lsusb and hciconfig, but the gnome bluetooth panel doesn’t recognize it.

I’m thinking since the original controller worked without trouble, if I can get the machine to forget about it the new one should come up without further trouble.

A couple other notes: – This machine is somewhat old (core 2 duo) and currently has a dead CMOS battery so I get corrupted memory messages in my boot logs. Everything else works fine so I believe that isn’t relevant – Machine is using nvidia drivers for graphics (I know that was an issue years ago but is it still?)

I did a fair bit of searching, tried to infer where things are and how files should be based on posts of people getting their btusb to be recognized, but I haven’t come across anyone with the opposite problem!

Thanks in advance for any suggestions for further diagnosis!

ken

Gamecube Controller has right trigger always held down but only on linux

The only controller I have that works on my pc is my official gamecube controller using an unofficial third-party adapter. The controller itself works perfect in Windows and on my Switch and Wii. But, for whatever reason, on my Xubuntu 18.04.2 installtion, it acts like the right trigger is being constantly held down.

It seems no one else in the entirety of the internet has had this problem so I really have no idea what to do about this..

Como cambiar el color de los item generados en la pestaña ‘MORE’ en un Tab Bar controller en swift

He creado un controlador Tab bar y cuando agrego más de 6 items se auto genera un pestaña llamada ‘MORE’ en el cual se listan los demás items que se agreguen.

El problema que tengo es que cuando en el appdelegate.swift cambio el color de todos los tableview a un fondo color negro, el texto de los items de la pestaña ‘MORE’ se oculta porque son color negro, y no he encontrado la forma de modificar el color del texto de los item, lo único que he podido hacer es cambiar el color de los iconos de tableview.

AYUDA!!! 🙁

Así de muestra el tableview con el texto de los items oculto

Retroarch not detecting controller

I have an Xbox One controller I am trying to connect to Retroarch. It used to work very well in the past and for whatever reason has stopped. Thus far, nothing has helped. When I go to Settings > Input > User 1 Binds and try to to find the controller under “User 1 Device Index”, nothing shows up. I have used the arrow keys to look for it, but it just stays “Disabled”. So far, I have tried:

sudo snap connect retroarch:raw-usb sudo snap connect retroarch:joystick

reinstalling Retroarch from every source I can (3 different versions in the software center, also tried Snap)

building from source (can’t do it because I get an public key-related error for output after the command: sudo add-apt-repository ppa:libretro/stable )

tried changing the drivers (under Settings > Drivers) for input and joystick to every conceivable permutation

I’m tearing my hair out with this unsolvable problem, send help.

NVIDIA GTX 1050 does not appear as VGA compatible controller


Hardware

  • Dell XPS 15 9560
  • NVIDIA GTX 1050

Software

  • Ubuntu 18.04
  • NVIDIA driver 430.40 (same issue with 390)

Desrciption

NVIDIA GTX 1050 does not appear as VGA compatible controller on my laptop. After installing nvidia-430 on my machine, I expected that NVIDIA GTX 1050 appear as VGA compatible controller, but it only appear as 3D controller.

I am curious whether it is natural not to have NVIDIA on the list, or am I missing something so that NVIDIA GTX 1050 is not appearing as VGA compatible controller although it is supposed to be here, if properly set up.

$  lspci 00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 05) 00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 05) 00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04) 00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 05) 00:14.0 USB controller: Intel Corporation 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller (rev 31) 00:14.2 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Thermal Subsystem (rev 31) 00:15.0 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Serial IO I2C Controller #0 (rev 31) 00:15.1 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Serial IO I2C Controller #1 (rev 31) 00:16.0 Communication controller: Intel Corporation 100 Series/C230 Series Chipset Family MEI Controller #1 (rev 31) 00:17.0 SATA controller: Intel Corporation HM170/QM170 Chipset SATA Controller [AHCI Mode] (rev 31) 00:1c.0 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #1 (rev f1) 00:1c.1 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #2 (rev f1) 00:1d.0 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #9 (rev f1) 00:1d.4 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #13 (rev f1) 00:1d.6 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #15 (rev f1) 00:1f.0 ISA bridge: Intel Corporation HM175 Chipset LPC/eSPI Controller (rev 31) 00:1f.2 Memory controller: Intel Corporation 100 Series/C230 Series Chipset Family Power Management Controller (rev 31) 00:1f.3 Audio device: Intel Corporation CM238 HD Audio Controller (rev 31) 00:1f.4 SMBus: Intel Corporation 100 Series/C230 Series Chipset Family SMBus (rev 31) 01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1) 02:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32) 03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01) 04:00.0 Non-Volatile memory controller: Toshiba America Info Systems XG4 NVMe SSD Controller (rev 01) 
$  nvidia-smi +-----------------------------------------------------------------------------+ | NVIDIA-SMI 430.40       Driver Version: 430.40       CUDA Version: 10.1     | |-------------------------------+----------------------+----------------------+ | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC | | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. | |===============================+======================+======================| |   0  GeForce GTX 1050    Off  | 00000000:01:00.0 Off |                  N/A | | N/A   39C    P8    N/A /  N/A |    379MiB /  4042MiB |      5%      Default | +-------------------------------+----------------------+----------------------+  +-----------------------------------------------------------------------------+ | Processes:                                                       GPU Memory | |  GPU       PID   Type   Process name                             Usage      | |=============================================================================| |    0      1468      G   /usr/lib/xorg/Xorg                           203MiB | |    0      1622      G   /usr/bin/gnome-shell                          66MiB | |    0      2205      G   ...quest-channel-token=5426997116794375214   108MiB | +-----------------------------------------------------------------------------+