how to cross compile a .deb package with a custom toolchain

I am running Ubuntu Bionic Beaver and have a toolchain from Linaro (gcc-linaro-7.3.1-2018.05-i686_aarch64-linux-gnu) that I need to use to cross compile my kernel (4.9.140) for the nvidia jetson TX2 board that also has an ubuntu 18.04 operation system. I have put this toolchain in my home directory under $HOME/l4t-gcc. However I also need to install a tool called overlayroot that is part of the package cloud-initramfs-tools, I downloaded the source of this and in its control file it says it depends on cryptsetup and initramfs-tools so I downloaded this source also and now I want to cross compile all this with the toolchain under my$ HOME/l4t-gcc. First I simply executed the .configure and then I tried the make like I did the make when I compiled the kernel:

make ARCH=arm64 CROSS_COMPILE=$HOME/l4t-gcc/gcc-linaro-7.3.1-2018.05-i686_aarch64-linux-gnu/bin/aarch64-linux-gnu-  but this didn’t work, it still used the native compilers. Some searching on the internet learned me that there are toolchains that you can download and install and then you simply need to sudo dpkg --add-architecture aarch64 sudo apt-get update  but I don’t see how I can make dpkg understand to use what I have under my$ HOME/l4t-gcc. Can anyone help me with this?

MAINTAINING CROSS REFERENCES WHILST DIVIDING DOCUMENT

I need to divide one 1000 page document into four 250 page documents but preserve the cross references. Thus footnote 22 ‘See p 688’ appearing on page 45 would now automatically change to ‘See Book 2, page 124.’ Or footnote 569 on pg 1029 ‘See p 45’ would automatically change to ‘See Book 1, pg 45’ Is this possible either in Word or another programme to which I can transfer the 1000 page document.?

Many Thanks.

Cross Entropy Function

I’ve seen two versions of the cross entropy cost function, and conflicting information about it. $$$$J(\theta) = -\frac{1}{N} \sum_{n=1}^N\sum_{i=1}^C y_{ni}\log \hat{y}_{n_i} (\theta)$$$$ $$C(\theta) = – \frac{1}{N}\sum_{n=1}^N \sum_{i=1}^{C}[ y_{ni}\log (\hat{y}_{ni})+ (1-y_{ni}) \log(1-\hat{y}_{ni})]$$

Some are saying that the second one is equivalent to the first for the case where there are only two classes, which makes sense. But couldn’t the second one also be used for more than two classes? For example, say we have three class classification, with the ground truth $$\vec{y} = \begin{bmatrix} 1 \ 0 \ 0 \end{bmatrix}$$ and $$\vec{\hat{y}} =\begin{bmatrix} 0.7 \ 0.1 \ 0.2 \end{bmatrix}$$. Then with the first equation, cross entropy would simply be $$-\log(0.7)$$. But couldn’t we also use the second equation and calculate cross entropy as $$-\log(0.7) – \log(0.9)-\log(0.8)?$$ When would we use the first equation and when would we use the second one, and why?

Help making the mouse cross the edges screen

Hello guys im playing fps games on Android with otg and mouse, and im triying to Cross the screen with the pointer of the mouse but is imposible… Any idea? I tried octopus APK but there is something strange… It can be crossed on fps Mode and it works perfect if u dont Cross the screen, If you do It the movement of the x axis is much faster till is total unplayable. Thanks in advance!

Help making the mouse cross the edges screen

Hello guys im playing fps games on Android with otg and mouse, and im triying to Cross the screen with the pointer of the mouse but is imposible… Any idea? I tried octopus APK but there is something strange… It can be crossed on fps Mode and it works perfect if u dont Cross the screen, If you do It the movement of the x axis is much faster till is total unplayable. Thanks in advance!

Logit Cross Validation not running

Running the train algorithm for biopsy dataset using ‘glm’ method I had the error due to invalid number of intervals.

I tried to run the R code:

biopsy_ = na.omit(biopsy[,-c(1)]) # 1 = ID  #  biopsy_\$  class = 1  #    ctrl <- trainControl(method="repeatedcv", number= 100, repeats=1)  fit <- train(class~., data=biopsy_,          method="glm",           family="binomial",          trControl=ctrl,           preProcess = c("center", "scale")) fit 

But I received the following error:

Error in cut.default(y, breaks, include.lowest = TRUE) :  

invalid number of intervals

Cross subdomain PHP security?

I understand there are security risks with regards to cross subdomain session cookie attacks which are covered in other posts. However what about PHP script security?

If a user with subdomain FTP access on a cPanel server uploads a PHP script, can the privacy of other subdomains on the same domain be compromised, eg could the script obtain a file listing from another sub-domain or include files from the parent directory?

FTP access is restricted to the sub-domain directory.

Possible ways to have cross and full edges in a mincut maxflow

I am trying to solve the following problem about maxflow mincut it seems like my conclusion is incorrect and I am wonder where.

There is no graph just following question.

An edge e can be (x) always full, (y) sometimes full, (z) never full; it can be (x’) always crossing, (y’) sometimes crossing, (z’) never crossing. So there are nine possible combinations: (xx’) always full and always crossing, (xy’) always full and sometimes crossing, and so on. Or are there? Maybe some possibilities are impossible. Let’s draw a table:

Possible answers —based on my conclusions

• always full and always crossing. (true based on the image above)
• always full and sometimes crossing. (true based on the image above and the fact that we may have several crossing edges one of them may be full, all them if all edges in the min cut is 1 and one of the crossing edges is 2)
• always full and never crossing. (false seems like there always must be a possibility of one of the ways to use edge with less capacity)
• sometimes full and always crossing. (true if we have all edges in the mincut that are 1 and crossing edge is two)
• sometimes full and sometimes crossing.( false since if we have many crossing edges that are 1 and one of them is 2 means that we might want to use the edge 2to flow more)
• sometimes full and never crossing. (true easy to see and edge that sometime full but never crossing in a graph)
• never full and always crossing. (true if all edges in a mincut is 1 and crossing edge is two)
• never full and sometimes crossing. (true if we have many 2 crossing edges)
• never full and never crossing. (true if we have a graph where one edge is 2 in min cut that never crossing)

Have asked this question on /math.stackexchange.com with no luck.

wording used.

The edge is full means in in any way we pump the flow the edge is always going to be full, basically if we have and C—(1)—A——(1)—-B and there is no other way to get to B other then going thru a then A is always full. Somewhat full if we can have C—(1)—A——(1)—-B and if there is another way to get to b by doing C—(1)—E—(1)—-B then edge is only sometime full. never full if we have C—(1)—E—(2)—-B then most we can flow is 1 but b takes 2 then it never full. The crossing part if we it can be the crossing edge in the min-cut from the cut to the sink. basically it and edge that connects the cut with the rest of flow.

Thanks.

How to create cross platform library?

Sorry for my English… I need to build a library that has access to the screen or keyboard, etc. and import it into an Android app and an iOS app. Regardless of what this library needs to do, it could also be simply a mathematical calculation …

What language should I use? Java?

The programming language is not a problem but I do not know where to start to create a library that works well for both Android and iOS.