How DNS system works? (custom A record, causing reliable redirection?)

Hello,

my domain is using nameservers of the hosting provider 1, i can not change my domain's nameservers now, but i can modify this provider 1 DNS A records to point to a new hosting provider IP. I am wondering if i can use this A record IP change to reliably redirect my visitors to new hosting provider?

When i set there an IP of different hosting provider 2 – the IP that is shown to me in hosting account as a shared IP for my hosting account on provider 2 / or the IP shown as the IP on…

How DNS system works? (custom A record, causing reliable redirection?)

How to remove the packages causing GPG error at once

So there are two PPA causing GPG warning during sudo apt update

W: GPG error: https://brave-browser-apt-release.s3.brave.com bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4FE13824E3FFC656 E: The repository 'https://brave-browser-apt-release.s3.brave.com bionic InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://repository.spotify.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4773BD5E130D1D45 E: The repository 'http://repository.spotify.com stable InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. 

I want to remove these PPA from my system how to do that at once?

grep -r 'repository.spotify.com ' /etc/apt 

Ouput

/etc/apt/sources.list.d/spotify.list:deb http://repository.spotify.com stable non-free   grep -r 'brave-browser-apt-release.s3.brave.com' /etc/apt 

Output

/etc/apt/sources.list.d/brave-browser-release-bionic.list:deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ bionic main /etc/apt/sources.list.d/brave-browser-release-bionic.list.save:deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ bionic main 

Why is DisplayLink causing a crash in 16.04?

Up til a few months ago, my DisplayLink 3 adapter (RayCue) was working fine with my display. An update to Ubuntu 16.04 followed by a reboot somehow screwed things up, where the system freezes at the login display if the DisplayLink device is plugged in on boot.

Unfortunately, I did not take note of the working combination of DisplayLink driver version and kernel version (assuming this is a starting point to fix the problem), but I can observe this problem with DisplayLink drivers 5.1 and 5.2 all with Linux kernel versions 4.4.0-157-generic and 4.4.0-159-generic. I am not using Nvidia drivers.

Could anyone guess at what might be going wrong and what next steps to take?

Having my user folders symlinked to my secondary 2tb hard drive is causing my computer to lock up

Having my user folders (Downloads, Pictures, Videos, Documents) to my secondarey 2tb hard drive is causing my computer to lock up and the cpu usage spikes to 100% also a tracker-extraction procsess going on the uses a lot of CPU.

The system is semi usable after this happens but some apps frezze and won’t open for example Nautilus. Trying to run it from the command line gives me and error about timeout reached

Causing infinite loop for SharePoint 2010 Approval Workflow using SharePoint Designer

I’m trying to setup an approval workflow for new and edited items in Document Library.

I created an approval workflow that is set to start when a new item is created and when an item is edited. The workflow updates the approval status on completion.

Now when I create a new item or edit an existing item the workflow kicks off as expected. However when I approve the workflow the workflow completes and then starts a new workflow. It would seem that updating the approval status is causing the workflow to activate again.

Is there any workaround to stop this looping?

[ Politics ] Open Question : If movies had equal amount of racial diversity in lead roles, can this help to reduce racism or is racism causing lack of racial diversity?

Back in the day, blacks had to sit in separate seats from whites at the movies. We’ve come a long way. We still hear about the lack of racial diversity for lead roles and during the oscar so white controversy, Will Smith said to Robin Roberts that he would’ve liked to have left a legacy when he retires to see a diverse range of lead actors. He felt disappointed that wasn’t going to happen. @blu, I don’t mean just blacks but rarely we see asians, hipsanics, middle eastern actors etc etc repreresented as heroes. @I hate commerce, you’re talking about segregation, I already mentioned we already went through that. @blu, I already have but there are actors like Scarlett Johansson that insist she can portray anyone she wants and had a backlash for portraying a Japanese character and also about a transgender person in which she had to cancel due to the lgbtq complaints. Many people didn’t like Christian Bale as Moses and it was controversial with white actors for leads in a middle eastern story. @I hate commerce, you’re so lost then. @blu, I guess what I’m saying is that minority’s especially asians feel they don’t have a place in Hollywood and they’re easily made fun of. *minorities

multiple /dev/video devices for 1 camera causing issue with udev rules

Since upgrading from ubuntu 16.04 (kernel 4.15.0-60-generic) to 18.04 (kernel 5.0.0-27-generic) v4l now returns multiple /dev/video devices per physical device. This causes issues when trying to map video devices to aliases using udev rules. One of the /dev/video devices can stream video, the other cannot. The udev alias I’ve created does not seem to consistently choose the correct /dev/video index (the one with streaming capabilities).

I know this post is very similar to this:

Four /dev/video entries but just one camera

However, the accepted answer (bug with skype) does not adequately address the udev issue I’m experiencing.

I see someone has a similar question on stack exchange:

https://unix.stackexchange.com/questions/512759/multiple-dev-video-for-one-physical-device

However, no answer has been accepted.

Additional Information:

Computer make/model: Asus ROG GL503V

Webcam make/model: Genius WideCam F100, Logitech C920, and more.

v4l2-ctl --list-devices

returns:

USB2.0 PC CAMERA: USB2.0 PC CAM (usb-0000:00:14.0-11):  /dev/video4  /dev/video5  USB_Camera: USB_Camera (usb-0000:00:14.0-3):  /dev/video0  /dev/video1  HD Pro Webcam C920 (usb-0000:00:14.0-4.1):  /dev/video6  /dev/video7  USB2.0 HD UVC WebCam: USB2.0 HD (usb-0000:00:14.0-7):  /dev/video2  /dev/video3 

Here’s a detailed look at the Genius WideCam F100:

user@AsusROG:~$   sudo v4l2-ctl --list-devices USB_Camera: USB_Camera (usb-0000:00:14.0-3):     /dev/video0     /dev/video1  USB2.0 HD UVC WebCam: USB2.0 HD (usb-0000:00:14.0-7):     /dev/video2     /dev/video3  user@AsusROG:~$   sudo v4l2-ctl --device=/dev/video0 --all Driver Info (not using libv4l2):     Driver name   : uvcvideo     Card type     : USB_Camera: USB_Camera     Bus info      : usb-0000:00:14.0-3     Driver version: 5.0.21     Capabilities  : 0x84A00001         Video Capture         Metadata Capture         Streaming         Extended Pix Format         Device Capabilities     Device Caps   : 0x04200001         Video Capture         Streaming         Extended Pix Format Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture:     Width/Height      : 640/480     Pixel Format      : 'YUYV'     Field             : None     Bytes per Line    : 1280     Size Image        : 614400     Colorspace        : sRGB     Transfer Function : Default (maps to sRGB)     YCbCr/HSV Encoding: Default (maps to ITU-R 601)     Quantization      : Default (maps to Limited Range)     Flags             :  Crop Capability Video Capture:     Bounds      : Left 0, Top 0, Width 640, Height 480     Default     : Left 0, Top 0, Width 640, Height 480     Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 640, Height 480 Selection: crop_bounds, Left 0, Top 0, Width 640, Height 480 Streaming Parameters Video Capture:     Capabilities     : timeperframe     Frames per second: 30.000 (30/1)     Read buffers     : 0                      brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0                        contrast 0x00980901 (int)    : min=0 max=95 step=1 default=32 value=32                      saturation 0x00980902 (int)    : min=0 max=100 step=1 default=55 value=55                             hue 0x00980903 (int)    : min=-2000 max=2000 step=1 default=0 value=0  white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1                           gamma 0x00980910 (int)    : min=100 max=300 step=1 default=165 value=165            power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=1       white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=10 default=4600 value=4600 flags=inactive                       sharpness 0x0098091b (int)    : min=1 max=7 step=1 default=2 value=2          backlight_compensation 0x0098091c (int)    : min=0 max=1 step=1 default=0 value=0                   exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3               exposure_absolute 0x009a0902 (int)    : min=50 max=10000 step=1 default=166 value=166 flags=inactive user@AsusROG:~$   sudo v4l2-ctl --device=/dev/video1 --all Driver Info (not using libv4l2):     Driver name   : uvcvideo     Card type     : USB_Camera: USB_Camera     Bus info      : usb-0000:00:14.0-3     Driver version: 5.0.21     Capabilities  : 0x84A00001         Video Capture         Metadata Capture         Streaming         Extended Pix Format         Device Capabilities     Device Caps   : 0x04A00000         Metadata Capture         Streaming         Extended Pix Format Priority: 2 

Here’s the versions of various v4l packages I have installed:

ii libv4l-0:amd64 1.14.2-1 amd64 Collection of video4linux support libraries ii libv4l-dev:amd64 1.14.2-1 amd64 Collection of video4linux support libraries (development files) ii libv4l2rds0:amd64 1.14.2-1 amd64 Video4Linux Radio Data System (RDS) decoding library ii libv4lconvert0:amd64 1.14.2-1 amd64 Video4linux frame format conversion library ii v4l-utils 1.14.2-1 amd64 Collection of command line video4linux utilities 

here’s an excerpt from lsusb:

Bus 001 Device 017: ID 0458:708c KYE Systems Corp. (Mouse Systems) Genius WideCam F100

and the associated udev rule:

KERNEL=="video?", SUBSYSTEM=="video4linux", ATTRS{idVendor}=="0458", ATTRS{index}=="0", ATTRS{idProduct}=="708c", SYMLINK+="v4l/hd_cam" 

Any input would be greatly appreciated

getEnumerator causing collection has not been initialized error inside of async call inside of a loop in a script editor web part

This is an issue I’ve been struggling with – What I am doing is using a script editor web part and when a user clicks the button, I check to see if a list exists inside of a loop (in this example, it could be called Data1 – Data10) and if so, then I want to pull all of the items from that list based on the query, which is based on filters with other controls (Ignore the datepickers/filters – I know the query works)

The problem I’m hitting is that I’m running these async calls inside of my ‘does the list exist’ loop and getting to the getEnumerator line where I receive the error :

Error: The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.

I had previously posted a simplified version of this question and didn’t receive a response so was hoping if I posted the entirety of my solution that it may give me an answer.

Thanks

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js "></script>     <link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">     <script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script>     <script type="text/javascript" language="javascript">      $  (function() {         $  ( "#datepickerStart" ).datepicker();         $  ( "#datepickerEnd" ).datepicker();     });      var valStopped = 10;     var allItems;     function getListData()      {         var _clientContext;         var _web;         _clientContext = new SP.ClientContext.get_current();         _web = _clientContext.get_web();         var lists = _web.get_lists();         _clientContext.load(lists,'Include(Title)');         //Get all lists...         var listTitle = "";         var arrayOfMatchedLists = [];         var responses = {exists:false,record:0};         var arrayOfPromises = [];          for (var j = 1; j < valStopped; j++) //loop through all potential lists and see if they exist         {             listTitle = "Data" + j;             arrayOfPromises.push(get_isListExists(listTitle,j,function(listExists,counter){             if (listExists){                 responses = {exists:listExists,record:counter};                 arrayOfMatchedLists.push(responses);             }             },function(sender,args){}));         }         $  .when.apply($  , arrayOfPromises).done(function() {         var largest = 0;         for (var item in arrayOfMatchedLists)          {         //Get the largest list index             if (arrayOfMatchedLists[item].record > largest)             {                 largest = arrayOfMatchedLists[item].record;             }         }         populateList(largest);             });      }       function populateList(counter)      {      for (var i = 1; i <= counter; i++)         {              var _clientContext;             var _web;             _clientContext = new SP.ClientContext.get_current();             _web = _clientContext.get_web();             var listTitle = "Data" + i; //+ i;             var list = _web.get_lists().getByTitle(listTitle);             var myquery = new SP.CamlQuery();             if ($  ("Data6").val() !== "All") //get Data6 as a filter if it's not all, else don't use Data6 as a filter.             {                 myquery.set_viewXml('<View><ViewFields><FieldRef Name=\'Data1\'/><FieldRef Name=\'Data2\'/><FieldRef Name=\'Data3\'/><FieldRef Name=\'Data4\'/><FieldRef Name=\'Data5\'/><FieldRef Name=\'Data6\'/><FieldRef Name=\'Data7\'/><FieldRef Name=\'Data8\'/><FieldRef Name=\'Data9\'/><FieldRef Name=\'Data10\'/></ViewFields></View>');             }             //else set query as all facilities             allItems = list.getItems(myquery);              _clientContext.load(allItems, 'Include(Data1,Data2,Data3,Data4,Data5,Data6,Data7,Data8,Data9,Data10)');             _clientContext.executeQuery(Function.createDelegate(this, this.onQuerySucceeded()), Function.createDelegate(this, this.onQueryFailed));         }                }      function onQuerySucceeded()      {         var Data1 = null;         var Data2 = null;         var Data3 = null;         var Data4 = null;         var Data5 = null;         var Data6 = null;         var Data7 = null;         var Data8 = null;         var Data9 = null;         var Data10 = null;         var txtHTML = "";          console.log("before enum");         var listEnumerator = allItems.getEnumerator();         console.log("get enumerator");             while (listEnumerator.moveNext()) {                     console.log("before got current");                     var currentItem = listEnumerator.get_current();                     console.log("got current");                     Data1 = currentItem.get_item('Data1');                     Data2 = currentItem.get_item('Data2');                     Data3 = currentItem.get_item('Data3');                     Data4 = currentItem.get_item('Data4');                     Data5 = currentItem.get_item('Data5');                     Data6 = currentItem.get_item('Data6');                     Data7 = currentItem.get_item('Data7');                     Data8 = currentItem.get_item('Data8');                     Data9 = currentItem.get_item('Data9');                     Data10 = currentItem.get_item('Data10');                     var row = document.createElement("tr");                      txtHTML = txtHTML + "<tr>";                     txtHTML = txtHTML + "<td>";                     if (Data1 != null) {                         txtHTML = txtHTML + "<p>" + Data1 + "</p>";                     }                     txtHTML = txtHTML + "</td>";                      txtHTML = txtHTML + "<td>";                     if (Data2 != null) {                         txtHTML = txtHTML + "<p>" + Data2 + "</p>";                     }                     txtHTML = txtHTML + "</td>";                      txtHTML = txtHTML + "<td>";                     if (Data3 != null) {                         txtHTML = txtHTML + "<p>" + Data3 + "</p>";                     }                     txtHTML = txtHTML + "</td>";                      txtHTML = txtHTML + "<td>";                     if (Data4 != null) {                         txtHTML = txtHTML + "<p>" + Data4 + "</p>";                     }                     txtHTML = txtHTML + "</td>";                                                      txtHTML = txtHTML + "<td>";                     if (Data5 != null) {                         txtHTML = txtHTML + "<p>" + Data5 + "</p>";                     }                     txtHTML = txtHTML + "<td>";                     if (Data6 != null) {                         txtHTML = txtHTML + "<p>" + Data6 + "</p>";                     }                     txtHTML = txtHTML + "</td>";                         txtHTML = txtHTML + "<td>";                     if (Data7 != null) {                         txtHTML = txtHTML + "<p>" + Data7 + "</p>";                     }                     txtHTML = txtHTML + "</td>";                         txtHTML = txtHTML + "<td>";                     if (Data8 != null) {                         txtHTML = txtHTML + "<p>" + Data8 + "</p>";                     }                     txtHTML = txtHTML + "</td>";                         txtHTML = txtHTML + "<td>";                     if (Data9 != null) {                         txtHTML = txtHTML + "<p>" + Data9 + "</p>";                     }                     txtHTML = txtHTML + "</td>";                         txtHTML = txtHTML + "<td>";                     if (Data10 != null) {                         txtHTML = txtHTML + "<p>" + Data10 + "</p>";                     }                     txtHTML = txtHTML + "</td>";                         txtHTML = txtHTML + "</tr>";             }             console.log("ran");         $  ("#tblCustomListData").append(txtHTML);     }      function onQueryFailed(sender, args)      {         alert("failed Message" + args.get_message());     }      function get_isListExists(listTitle, counter, OnSuccess, OnError){          var ctx = SP.ClientContext.get_current();         var web = ctx.get_web();         var lists = web.get_lists();         ctx.load(lists);          var outValue = $  .Deferred();         ctx.executeQueryAsync(           function() {           if (counter <= valStopped){             var listExists = false;               var le = lists.getEnumerator();             while (le.moveNext()) {                     var list = le.get_current();                     if(list.get_title() == listTitle) {                         listExists = true;                         break;                     }                 }                 }            outValue.resolve();           OnSuccess(listExists,counter);           OnError();             });         return outValue.promise();     }  </script>        <p> Data6: <select id="Data6">       <option value="Op1">Op1</option>       <option value="Op2">Op2</option>       <option value="Op3">Op3</option>       <option value="Op4">Op4</option>       <option value="Op5">Op5</option>       <option value="Op6">Op6</option>     </select> </p>     <p>Start Date: <input type="text" id="datepickerStart">     End Date: <input type="text" id="datepickerEnd"></p>     <center><button ID="retrieveList" onclick="ExecuteOrDelayUntilScriptLoaded(getListData(), 'sp.js');return false">Retrieve List</button></center></br>     <table id="tblCustomListData" border="1">         <thead>             <tr>                 <th>Data1                 </th>                 <th>Data2                 </th>                 <th>Data3                 </th>                 <th>Data4                 </th>                 <th>Data5                 </th>                 <th>Data6                 </th>                 <th>Data7                 </th>                 <th>Data8                 </th>                 <th>Data9                 </th>                 <th>Data10                 </th>                                    </tr>         </thead>     </table> 

hardware airplane switch on supposedly causing wireless connections to not work

I have been having this issue when I updated to linux ubuntu 19.04 on my very old Dell latitude D830, one error I’ve been having is the internet connection not working, because wifi doesnt connect. I’ve tried every solution in here so far with NONE changing anything.

My original problem is that tge internet connection, wifi, is disabled, and it says UNAVAILABLE, tryinf to enable it doesnt work. I cant use tethering or usb or bluetooth because the only way I get internet is wifi and those options turn it off from my phone.

output of sudo rfkill list:

0: phy0: Wireless LAN                 Soft blocked: no                 Hard Blocked: no  1: brcmwl-0: Wireless LAN                 Soft blocked: no                 Hard Blocked: no  2: dell-wifi: Wireless LAN                 Soft blocked: no                 Hard Blocked: yes 3: dell-blueooth: Bluetooth                 Soft blocked: no                 Hard Blocked: yes 

output of ip link:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000             link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00  2: enp9s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000             link/ether 00:21:70:79:42:4b brd ff:ff:ff:ff:ff:ff  3: wlp12s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000             link/ether 00:22:5f:1c:59:62 brd ff:ff:ff:ff:ff:ff 

Again, every other solution i saw over here by googling didnt work, I typed more than a million commands for this problem to go, I actually encountered it earlier when i installed ubuntu 19.04, but I fixed it, but then after that by some months, i think around 2/3, it came back. and I have no way whatsoever to fix it, i even tried going back to what originally fixed it.