Issue when importing the Android source code into Intellij-IDEA

I followed the standard process of importing android source code into IDEA.

Like this:

https://wiki.lineageos.org/import-android-studio-howto.html

Why not navigate to Message.java but Message.class in jar?

Why not navigate to Message.java but Message.class in jar

Anyone knows how to fix it?

I have successfully built the source code.

web part – Time complexity issue in fetching list items from 2 lists in React Sharepoint?

I am trying to fetch common items from two lists. For eg:- I am displaying full items from first list but there is no name column in the first list, it is in the second list which is of Person or Group type column so I also cannot use expand. So on the basis of ID column (lookup column in First list) I am fetching name from second list but there is issue of time complexity in that. Does anyone know how to reduce time complexity of my code or any alternate might work as well as long as time complexity is less:
I am using REST API call in my code below:

this.state = {healthScreening: (
        {
          Author: "",
          BookingID: "",
          Temperature: "",
          Measured_x0020_In: "",
          Result: "",
          Kit: "",
        },
      ),
};

public function = () => {
$.ajax({
      url: `${this.props.siteUrl}/_api/Web/Lists/GetByTitle('List1')/items?$select=*,Temperature,Measured_x0020_In,Result,BookingID/ID&$expand=BookingID`,
      type: "GET",
      dataType: "json",
      headers: {
        accept: "application/json;odata=verbose",
      },
      success: (resultData) => {
        var listdata = {
          accounting: (),
        };
        var listdata2 = ()
        console.log(resultData.d.results);
        $.each(resultData.d.results, (index, value) => {
            listdata.accounting.push({
              BookingID: value.BookingID.ID,
              Temperature: value.Temperature,
              MeasuredIn: value.Measured_x0020_In,
              Result: value.Result,
              Kit: value.Kit ? "Yes" : "No",
            });        
        });
        console.log(listdata.accounting);
        $.ajax({
          url: `${this.props.siteUrl}/_api/Web/Lists/GetByTitle('List2')/items?$select=Author/Title,ID,BookingStatus&$expand=Author&$filter=startswith(Author/Title,'${this.state.temp}')`,
          type: "GET",
          dataType: "json",
          headers: {
            accept: "application/json;odata=verbose",
          },
          success: (resultData) => {
            var listdata1= {
              accounting: (),
            };

            $.each(resultData.d.results, (index, value) => {
              
             
                var data = listdata.accounting.filter(
                  (index) => index.BookingID == value.ID,
                  
                )
                if (data.length > 0) {
                  console.log(data)
                  listdata2.push({
                    Author: value.Author.Title,
                    BookingID: value.ID,
                    BookingStatus: value.BookingStatus,
                    Temperature: data(0).Temperature,
                    Result: data(0).Result,
                    MeasuredIn: data(0).MeasuredIn,
                    Kit: data(0).Kit,
                   })
                }
             
            });
            
            this.columns1 = (
              {
                name: "Name",
                selector: "Author",
              },
              {
                name: "ID",
                selector: "BookingID",
              },
              {
                name: "Temperature",
                selector: "Temperature",
              },
              {
                name: "MeasuredIn",
                selector: "MeasuredIn",
              },
              {
                name: "BookingStatus",
                selector: "BookingStatus",
              },
              {
                name: "Result",
                selector: "Result",
              },
              {
                name: "Kit",
                selector: "Kit",
              },
            );
            this.rows1 = listdata2;
            console.log(listdata2)
            this.setState({ healthScreening: listdata2 }, () => {});
          },
          error: (jqXR, textStatus, errorThrown) => {
            console.log("error");
          },
        })
      },
      error: (jqXHR, textStatus, errorThrown) => {
        console.log("error");
      },
    });
}

this.rows and this.columns are the field properties of react-data-table-component from npm package.

Email issue

Hi,

Cpanel + Roundcube

My client having issue. User using imap setting in microsoft outlook. The mailbox size from cpanel show less th… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1830120&goto=newpost

magento2 – Watermark issue – Magento Stack Exchange

Currently we are running on Magento 2.2.6.
We have added a watermark for the base, thumbnail, swatch & small.

The watermark is appearing on the productlist page, but not in a good manner, see image.

But the worse thing is, it isn’t even showing on the productdetail page. Yes I see the image but not a watermark. Herefore i’m searching a solution. The first issue will be related to this older version of magento we are running.

enter image description here

Hopefully anyone has some experience for this topic and thanks for the help.

Regards,
Pascal

Regards,
Pascal

kernel – Issue when uninstalling dattobd-dkms

Configurazione di dattobd-dkms (0.10.15-29.1ubuntu20.04)...
Removing old dattobd-0.10.15 DKMS files...

------------------------------
Deleting module version: 0.10.15
completely from the DKMS tree.
------------------------------
Done.
Loading new dattobd-0.10.15 DKMS files...
Building for 5.8.0-29-generic
Building initial module for 5.8.0-29-generic
ERROR: Cannot create report: (Errno 17) File exists: '/var/crash/dattobd-dkms.0.crash'
Error! Bad return status for module build on kernel: 5.8.0-29-generic (x86_64)
Consult /var/lib/dkms/dattobd/0.10.15/build/make.log for more information.
dpkg: errore nell'elaborare il pacchetto dattobd-dkms (--configure):
 il sottoprocesso installato pacchetto dattobd-dkms script post-installation ha restituito lo stato di errore 10
Si sono verificati degli errori nell'elaborazione:
 dattobd-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

And this is the crash log:

$ cat /var/crash/dattobd-dkms.0.crash                    
ProblemType: Package
DKMSBuildLog:
 DKMS make.log for dattobd-0.10.15 for kernel 5.8.0-29-generic (x86_64)
 mer 25 nov 2020, 16:44:53, CET
 make: ingresso nella directory «/usr/src/linux-headers-5.8.0-29-generic»
   CC (M)  /var/lib/dkms/dattobd/0.10.15/build/dattobd.o
 In file included from ./include/linux/umh.h:4,
                  from ./include/linux/kmod.h:9,
                  from ./include/linux/module.h:16,
                  from /var/lib/dkms/dattobd/0.10.15/build/includes.h:10,
                  from /var/lib/dkms/dattobd/0.10.15/build/dattobd.c:7:
 /var/lib/dkms/dattobd/0.10.15/build/dattobd.c: In function ‘__tracer_setup_snap’:
 ./include/linux/gfp.h:297:20: warning: passing argument 1 of ‘blk_alloc_queue’ makes pointer from integer without a cast (-Wint-conversion)
   297 | #define GFP_KERNEL (__GFP_RECLAIM | __GFP_IO | __GFP_FS)
       |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       |                    |
       |                    unsigned int
 /var/lib/dkms/dattobd/0.10.15/build/dattobd.c:3574:34: note: in expansion of macro ‘GFP_KERNEL’
  3574 |  dev->sd_queue = blk_alloc_queue(GFP_KERNEL);
       |                                  ^~~~~~~~~~
 In file included from /var/lib/dkms/dattobd/0.10.15/build/includes.h:12,
                  from /var/lib/dkms/dattobd/0.10.15/build/dattobd.c:7:
 ./include/linux/blkdev.h:1174:55: note: expected ‘blk_qc_t (*)(struct request_queue *, struct bio *)’ {aka ‘unsigned int (*)(struct request_queue *, struct bio *)’} but argument is of type ‘unsigned int’
  1174 | struct request_queue *blk_alloc_queue(make_request_fn make_request, int node_id);
       |                                       ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
 /var/lib/dkms/dattobd/0.10.15/build/dattobd.c:3574:18: error: too few arguments to function ‘blk_alloc_queue’
  3574 |  dev->sd_queue = blk_alloc_queue(GFP_KERNEL);
       |                  ^~~~~~~~~~~~~~~
 In file included from /var/lib/dkms/dattobd/0.10.15/build/includes.h:12,
                  from /var/lib/dkms/dattobd/0.10.15/build/dattobd.c:7:
 ./include/linux/blkdev.h:1174:23: note: declared here
  1174 | struct request_queue *blk_alloc_queue(make_request_fn make_request, int node_id);
       |                       ^~~~~~~~~~~~~~~
 /var/lib/dkms/dattobd/0.10.15/build/dattobd.c:3583:2: error: implicit declaration of function ‘blk_queue_make_request’; did you mean ‘blk_queue_max_segments’? (-Werror=implicit-function-declaration)
  3583 |  blk_queue_make_request(dev->sd_queue, snap_mrf);
       |  ^~~~~~~~~~~~~~~~~~~~~~
       |  blk_queue_max_segments
 /var/lib/dkms/dattobd/0.10.15/build/dattobd.c: In function ‘agent_init’:
 /var/lib/dkms/dattobd/0.10.15/build/dattobd.c:5165:51: error: passing argument 4 of ‘proc_create’ from incompatible pointer type (-Werror=incompatible-pointer-types)
  5165 |  info_proc = proc_create(INFO_PROC_FILE, 0, NULL, &dattobd_proc_fops);
       |                                                   ^~~~~~~~~~~~~~~~~~
       |                                                   |
       |                                                   const struct file_operations *
 In file included from /var/lib/dkms/dattobd/0.10.15/build/includes.h:16,
                  from /var/lib/dkms/dattobd/0.10.15/build/dattobd.c:7:
 ./include/linux/proc_fs.h:107:122: note: expected ‘const struct proc_ops *’ but argument is of type ‘const struct file_operations *’
   107 | struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops);
       |                                                                                                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
 cc1: some warnings being treated as errors
 make(1): *** (scripts/Makefile.build:290: /var/lib/dkms/dattobd/0.10.15/build/dattobd.o) Errore 1
 make: *** (Makefile:1780: /var/lib/dkms/dattobd/0.10.15/build) Errore 2
 make: uscita dalla directory «/usr/src/linux-headers-5.8.0-29-generic»
DKMSKernelVersion: 5.8.0-29-generic
Date: Wed Nov 25 16:44:56 2020
DuplicateSignature: dkms:dattobd-dkms:0.10.15-29.1ubuntu20.04:/var/lib/dkms/dattobd/0.10.15/build/dattobd.c:3574:18: error: too few arguments to function ‘blk_alloc_queue’
Package: dattobd-dkms 0.10.15-29.1ubuntu20.04
PackageVersion: 0.10.15-29.1ubuntu20.04
SourcePackage: dattobd-dkms
Title: dattobd-dkms 0.10.15-29.1ubuntu20.04: dattobd kernel module failed to build

google analytics – GA4 issue: is new property mandatory?

I’ve upgraded to GA4 and kept my UA GA. The upgrade created two new properties: one with a new UA code and another one without. Of course the new property with the new UA doesn’t get any traffic since I didn’t add it to the site.

I managed to connect the original GA account to the GA4 property that doesn’t have a UA code, but even if it says “connected” and the GA4 shows some traffic data, the data is not the same between the GA and the GA4. For example, real-time report in GA4 is always in 0 even if I have traffic in the real-time report in GA.

Does anybody know if I should set up the UA code of the GA4 new property in the site anyway? Can I delete the UA GA4 property? (!) Is it the reason why the data that the GA4 property is not the same as in the GA original account? Help!

c++ – Frustum culling issue at oblique angles

I am using the following algorithm to test if my camera frustum contains an axis-aligned bounding box:

bool is_box_visible(vec4 planes(6), vec3 aabb_center, vec3 half_extents)
{
    for(int i = 0; i < 6; i++)
    {
        vec4 plane = planes(i);
        float aabb_radius = abs(plane.x * half_extents.x) + abs(plane.y * half_extents.y) + abs(plane.z * half_extents.z);
        float to_center = dot(plane.xyz, half_extents) + plane.w;

        if(to_center <= -aabb_radius) return false;
           return false;
    }
    return true;
}

Usage code:

matrix to_view = cam->view;
vec4 planes(0) = cam.bottom_plane * to_view;
vec4 planes(1) = cam.top_plane * to_view;
vec4 planes(2) = cam.right_plane * to_view;
vec4 planes(3) = cam.left_plane * to_view;
vec4 planes(4) = cam.near_plane * to_view;
vec4 planes(5) = cam.far_plane * to_view;

vec3 aabb_center = vec3(0.5f, 0.5f, 0.5f);
vec3 aabb_half_extents = vec3(0.5f, 0.5f, 0.5f);

is_visible = is_box_visible(planes, aabb_center, aabb_half_extents);

It works correctly in most situations, as can be seen here (notice the is_visible checkbox is correctly checked):
enter image description here

But when looking from certain angles the function returns incorrect results:
enter image description here

Is this a limitation of this particular algorithm or is there a bug in my code?

My ranking dropped on google after DNS issue | Proxies-free

I had a issue with my DNS on njal.la where 5 days did not answered and my ranking dropped on google (alexa), my domain was on the first places of google search and now its on the last. How i can improve this? Any cheap services could help me to do the ranking raise and the google page place? Please help me someone if knows.

 

plugin development – URL issue retrieving Custom Post Types using Backbone JS API

I have a Custom Post Type called pronews. I registered it with show_in_rest enabled. I’m using WordPress 5.5.

I then have this code:

export const ProPost  = wp.api.models.Post.extend( {
    urlRoot: wpApiSettings.root + 'wp/v2/pronews',
    defaults: {
        type: 'pronews',
    },
} );
export const ProPosts = wp.api.collections.Posts.extend( {
    url: wpApiSettings.root + 'wp/v2/pronews',
    model: ProPost,
} );

const post = new ProPost( {id: 2454} );

console.log( post );
console.log( 'post urlRoot:' + post.urlRoot );
console.log( 'post url:' + post.url );

post.fetch().then( ( response ) => {
    console.log( response )
}, ( why ) => {
    console.log( why.responseJSON.code )
} );

// Double check that the endpoint is functionnal
fetch( wpApiSettings.root + 'wp/v2/pronews/2454' )
    .then( blob => blob.json() )
    .then( ( response ) => {
        console.log( response.id );
    } );

In the console I first get:

{…}
​_changing: false
​_pending: false
​_previousAttributes: Object { type: "pronews", id: 2454 }
​attributes: Object { type: "pronews", id: 2454 }
​changed: Object {  }
​cid: "c3"
​id: 2454
​<prototype>: Object { urlRoot: "https://localhost/wp-json/wp/v2/pronews", defaults: {…}, constructor: i()
 }
ProNews.js:17:9
post urlRoot:https://localhost/wp-json/wp/v2/pronews ProNews.js:18:9
post url:function(){var e=a.get("apiRoot")+a.get("versionString")+("me"===i?"users/me":i);return _.isUndefined(this.get("id"))||(e+="/"+this.get("id")),e} ProNews.js:19:9

But the Backbone API’s request is done to the wrong urlRoot :

XHRGET https://localhost/wp-json/wp/v2/posts/2454 (HTTP/1.1 404 Not Found 340ms)
rest_post_invalid_id

For debugging, the result of the second HTTP Request using window.fetch, shows that the endpoint for the Custom Post Type exists and is functional:

XHRGET https://localhost/wp-json/wp/v2/pronews/2454 (HTTP/1.1 200 OK 587ms)
2454