How do I consume REST data with an external service?

I want to integrate RESTful API with drupal 8.

What I want to achieve is my a project which is built in drupal 8 is the consumer and RESTful API is integrated into another website using CodeIgniter.

I want to create a page in drupal using routing and all data will be coming from another website.

Example:

http://mywebsite.com/products [drupal 8] http://webservice.com/products/list.json [CI] 

My website will consume web service of webservice.com and will display the products on my website.

What is the better way or structure to achieve it?

Boot Camp: Plugging in an external mouse makes mouse click not work anymore

So this started happening recently, I think after the last OS upgrade. Now if I plug in an external mouse (any mouse, I’ve tested several) while in Windows 10, the mouse click and scroll won’t work anymore. It also disables the mouseclick on the track pad. The really weird thing is that I’m able to click on icons on the desktop, once. So I can’t double click them to open them, but I get that blue highlight when clicking once.

  • I’ve tried rebooting with the mouse Connected, and then it works for like 10 seconds. Which makes me believe some service starts up and messes everything up.
  • I’ve tried running msconfig to disable all non-Windows services, and then rebooting.
  • I’ve tried uninstalling the device from the Device Manager.

External Disk not properly responding in gnome files gui, only in terminal

I have a 3tb external HDD. Writing to the disk works properly. Through the terminal I can access it without problems, but when I open the disk through files and try to change a file or folder name or even enter a folder, my laptop fan starts spinning hard and it seems to hang. Not sure how to troubleshoot this.

lshw gives me this:

*-usb                             description: Mass storage device        product: Expansion        vendor: Seagate        physical id: 2        bus info: usb@2:2        logical name: scsi3        version: 0.00        serial: NA8Q2G39        capabilities: usb-3.00 scsi        configuration: driver=uas maxpower=144mA speed=5000Mbit/s      *-disk           description: SCSI Disk           product: Expansion           vendor: Seagate           physical id: 0.0.0           bus info: scsi@3:0.0.0           logical name: /dev/sda           version: 9300           serial: NA8Q2G39           size: 2794GiB (3TB)           capabilities: gpt-1.00 partitioned partitioned:gpt           configuration: ansiversion=6 guid=b78b441f-0873-4220-80ae-3da7564d3b25 logicalsectorsize=512 sectorsize=4096 

iMac hard freezes intermittently after booting off an external SSD

I have hooked up an external USB3 Samsung T5 SSD to my iMac model iMac14,2, formatted it as APFS, and installed macOS High Sierra on it, to use as my primary system drive.

I can use the system for a week, maybe a week and a half, at a time, but after a while my machine will hard freeze as I am using it – as in, can’t move the mouse or type with the keyboard, screen is frozen. It usually happens when I’m doing something disk-intensive, like opening the fuzzy file browser in Visual Studio Code, or opening a file browser, but I have a suspicion that it has frozen and then rebooted on its own while I was away from the system at least once.

I checked the console and didn’t see anything jump out at me in that span of time where the system froze. I ran First Aid on the disk itself and the disk container, but the only warning I got was warning: Overallocation Detected on Main device: (7723705+1) bitmap address (10e2e)

The only other thing that might be relevant is that something that I noticed that happened once or twice in the past week is that my keyboard suddenly stopped working – no keys would cause an action – but my mouse that is hooked up to my keyboard would continue to work. Strange.

I am currently using three of the four USB ports available in the back – one has the Samsung SSD, another has the keyboard/mouse hooked up, and a third has my Time Machine spinning-rust HDD hooked up to it, which does not have its own power cable.

macbook with lenovo c-dock duplicate external monitors

I connect my macbook to a lenovo c-dock, which connects 2 external monitors through 2 displayPort cables. The problem I have is that the 2 external moniotors mirror each other. I looked at the display settings, and there is no options to change it. How can I make the 2 exteranl monitors display differently?

I also tried to connect one of the monitor through VGA port, the 2 monitors still duplicate.

Sharepoint file sharing – external contact autofill

I have question about how to share files with external users.

I wish that my contacts(external) will be auto-filled while typing the email/name.

Below example with internal users:

enter image description here

So overall: you’re sharing a file, and starting to type the username/email.

SharePoint prompts the suggested name. That’s obvious.

BUT I wish to use my contacts (external contacts) to be prompted with same behavior. I know that it’ll work with Azure Guest Account. But is there any other way to update the auto-fill list?

All ready checked the Contacts app.

Thanks for answers.

Making a group email list for multiple org members to get emails from external sources?

In the past it was pretty straight forward to make a group with proper permissions without worry in Google Apps’ Groups Admin function. I frequently used it to create a recipient group for services like logging into a support system so multiple organization members could both login and receive emails simultaneously. An example would be support@domain.tld would then route to user.1@domain.tld, user.2@domain.tld and user.3@domain.tld.

Unfortunately with their last update the water has become quite muddy in this regard. The intuitiveness level has dropped through the floor. Could someone please advise as to whether or not the following are the correct settings for the desired external submission only effect that’s desired?

Screenshot: group "permissions" panel that's junk after the update

If file system is dirty, can I safely delete files in .Trashes folder of an external HDD to speed up fsck?

I got a brand new HDD, formatted in exFAT, I was moving folders to it and it happened that something got corrupted when I opened more threads to copy files there.

I know the directory that faulted (it got stucked, maybe for hundred thousands files in it). I tried to remove it (was moved on .Trash folder on mac).

But could not erase files. So I unplugged the HDD, thinking no process was running.

Now:

sudo fsck_exfat -q /dev/disk1s2 

reports file system dirty

sudo fsck_exfat -gd /dev/disk1s2 

I see that it goes through the long list of files listed in the ./Thrashes/

folder of the external HDD

I wonder if I could do:

rm -r ./Thrashes/* 

to remove all files in thrash, and run again fsck to make the process faster.

Or is it better to avoid and let fsck complete, since file system is dirty ?

I also occasionally see lines:

Read      offset = 0x000005200000  length = 0x040000 

Does it mean is an error, or simply an information ?

this is the log I got:

sudo fsck_exfat -gd /dev/disk1s2 Opening /dev/rdisk1s2 (S,"Checking volume.",0) (S,"Checking main boot region.",0) 7813556224 total sectors; 512 bytes per sector FAT starts at sector 32768; size 131072 sectors 15260532 clusters starting at sector 163840; 262144 bytes per cluster Root directory starts at cluster 11 Read      offset = 0x000001000000  length = 0x001000 (S,"Checking system files.",0) Read      offset = 0x000005240000  length = 0x040000 (S,"Volume name is %1$  @.",1) luigi4T Found active bitmap; first cluster 2, length 1907567 (S,"Checking upper case translation table.",0) Read      offset = 0x000005200000  length = 0x040000 Found upcase table; starting cluster 10, length 5836 (S,"Checking file system hierarchy.",0) Directory / File      /._.Trashes Directory /.Trashes Directory /.fseventsd Directory /.Spotlight-V100 Directory /.TemporaryItems Directory /20190318 BackUp File      /.com.apple.timemachine.donotpresent File      /._.com.apple.timemachine.donotpresent File      /._.TemporaryItems File      /.apdisk File      /._.apdisk Read      offset = 0x000005280000  length = 0x040000 Directory /.Trashes/501 File      /.Trashes/._501 Read      offset = 0x000005300000  length = 0x040000 File      /.fseventsd/fseventsd-uuid File      /.fseventsd/0000000002073ca7 File      /.fseventsd/0000000002089d5c ... # files I'd like to remove from Thrashes folder, *before* running a files system check again ... File      /.Trashes/501/WatchDiscovery 10.01.36 AM/backup Jan 21, 2012/Posters_cleaned/mm2219_9_Assassinio_per_cause_naturali.jpg File      /.Trashes/501/WatchDiscovery 10.01.36 AM/backup Jan 21, 2012/Posters_cleaned/mm2219_imm_Assassinio_per_cause_naturali.jpg File      /.Trashes/501/WatchDiscovery 10.01.36 AM/backup Jan 21, 2012/Posters_cleaned/mm221_0_Accordi_sul_palcoscenico.jpg File      /.Trashes/501/WatchDiscovery 10.01.36 AM/backup Jan 21, 2012/Posters_cleaned/mm221_10_Accordi_sul_palcoscenico.jpg File      /.Trashes/501/WatchDiscovery 10.01.36 AM/backup Jan 21, 2012/Posters_cleaned/mm221_1_Accordi_sul_palcoscenico.jpg File      /.Trashes/501/WatchDiscovery 10.01.36 AM/backup Jan 21, 2012/Posters_cleaned/mm221_2_Accordi_sul_palcoscenico.jpg File      /.Trashes/501/WatchDiscovery 10.01.36 AM/backup Jan 21, 2012/Posters_cleaned/mm221_3_Accordi_sul_palcoscenico.jpg File      /.Trashes/501/WatchDiscovery 10.01.36 AM/backup Jan 21, 2012/Posters_cleaned/mm221_4_Accordi_sul_palcoscenico.jpg 

…. ….


If matters, mac OS version 1.9.5

Brand new external hard drive formatted exFAT is mounted read only

I bought a new HDD, formatted as exFAT with mac. I moved files from my laptop to the HDD (moved, I mean, I also deleted them). It happened with a directory it got stucked. I quit the process of copying that directory. I tried to trash and erase trash. I could not erase it. I tried eject from Finder. It could not. I unplugged – when there were no process active.

I tried to plug, and could not mount. I discover apple run fskc automatically. I kill the process, used disktutil to mount the volume, unmount and eject.

I tried to plug and mount and again. Now the volume is mounted, but Read only. S.M.A.R.T. not verified.

So I launch fskc – I don’t know when it will finish, there are (estimated) about million files, HDD is 4T.

I m confident disk is ok, since brand new.

Please advice on how get rid of read-only and steps to mount exFAT external HDD properly in mac, want to prevent automatic fskc – also because fskc is taking forever, and not sure it could repare anything if in read-only mode. FSKC is stucked at checking system hierarchy:

    diskutil list  /dev/disk0    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                        *500.3 GB   disk0    1:                        EFI EFI                     209.7 MB   disk0s1    2:                  Apple_HFS Macintosh HD            499.4 GB   disk0s2    3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3 /dev/disk1    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                        *4.0 TB     disk1    1:                        EFI EFI                     209.7 MB   disk1s1    2:       Microsoft Basic Data myHDD                 4.0 TB     disk1s2    sudo fsck_exfat /dev/disk1s2 fsck_exfat: Opened /dev/rdisk1s2 read-only ** Checking volume. ** Checking main boot region. ** Checking system files. ** Volume name is luigi4T. ** Checking upper case translation table. ** Checking file system hierarchy. 

Mac OS 1.9.5