java – Trouble running Axis2 example pojoguidespring

I have a problem running the example “pojoguidespring” from Axis2.


I am running an Ubuntu 20.04 machine with Apache Tomcat 9.0.35 Server and the Axis2 1.7.9 container.

What I have done so far:

At first, I have tried to run the example “pojoguide” which is located in $AXIS2_HOME/samples/pojoguide.
I have built it with ant, load the resulting WeatherService.aar via the Axis2 administrator panel, run the client on console with ant rpc.client and get the expecting result. (some weather data)

Now I want to do the same on the “pojoguidespring” example. At first, I have built it with ant. First problem here is, that the download links in the build.xml for getting some *.jar files are not reachable. So I searched for the files on the internet and insert new links. Now I can build the service and I get the WeatherSpringService.aar. After I load it via Axis2 administrator panel, the service list says that the service is faulty. Therefore, I can’t run the client via the console. The error message here is:

Exception in thread “main” org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) http://localhost:8080/axis2/services/WeatherSpringService

The files which are needed to build the pojoguidespring:

  • spring-core-1.2.8.jar

  • spring-context-1.2.8.jar

  • spring-beans-1.2.8.jar

and where I get these from:


So, how I can get the example to run?

advertising – Trouble diagnosing an AdSense Viewability / Active View issue

I’m having a viewability issue with a vertical Adsense placement (300×600 and under).

It’s a pretty standard above-the-fold, right column placement. The top of the placement starts around 200 px from the top of the browser window, so it’s a very visible placement. Easily the most visible on the site for desktop users.

The placement is hidden in mobile (by hiding the parent per current AdSense regulations) and doesn’t serve to mobile devices. (This is tested and confirmed, btw… so that’s not the issue).

The placement is currently scoring a meager 30% Active View in AdSense reports, which means it’s serving and not being seen — a lot.

Where else should I be looking to diagnose this problem? I’m pretty sure the viewability issue is negatively impacting RPM.

The site has excellent traction, with over 6 ppv and an average pageview time of nearly 1 minute. The bounce rate is a very healthy 33%. The CWV on the page are all healthy (Rather, as healthy as can be expected with a site running AdSense).

Anyone familiar with viewability / active view issues? Any thoughts on where else the issue could lie?


javascript – Estou tendo problemas para atirar no Robocode / I’m having trouble shooting Robocode

Preciso de ajuda para meu projeto da faculdade. Estou tendo problemas para o canhão mirar e atirar, consigo fazer somente o radar mirar no inimigo e manter fixo, mas a arma não consegue acompanhar e tirar quando for preciso.

I need help with my college project. I’m having trouble with the cannon aiming and firing, I can only make the radar aim at the enemy and keep it fixed, but the gun can’t follow and take out when necessary.

package Oliver;
import robocode.*;
import java.awt.Color;
import robocode.Rules;
import robocode.AdvancedRobot;
import robocode.ScannedRobotEvent;
import robocode.util.Utils;
import robocode.HitRobotEvent;

public class MyFristRoboto extends AdvancedRobot
    int count = 0;
    double gunTurnAmt;
    String trackName;

    public void run() {

        trackName = null;
        gunTurnAmt = 10;

        //Definindo Cores

            // vira o RADAR e não temos mais giro, inicia se parar é no início da rodada
            if (getRadarTurnRemaining() == 0.0){
        }while (true);

    public void onScannedRobot(ScannedRobotEvent e) {

        //Ângulo absoluto em relação ao alvo
        double angleToEnemy = getHeadingRadians() + e.getBearingRadians();
        //Subtraia a direção do radar atual para obter a corrida necessária para enfrentar o inimigo, certifique-se de que esteja normalizado
        double radarTurn = Utils.normalRelativeAngle(angleToEnemy - getRadarHeadingRadians());
        /*Distância que queremos varrer do meio do inimigo para ambos os lados
        O 36.0 é quantas unidades do centro do robô inimigo ele varre*/
        double extraTurn = Math.min(Math.atan(36.0 / e.getDistance()), Rules.RADAR_TURN_RATE_RADIANS);
        /*Ajuste as curvas do RADAR para que avance muito mais na direção em que vai virar
        Basicamente, se vamos virar para a esquerda, virar ainda mais para a esquerda, se for para a direita, virar mais para a direita.
        Isso nos permite ultrapassar nosso inimigo para que tenhamos uma boa varredura que não escorregue*/
        radarTurn += (radarTurn < 0 ? -extraTurn : extraTurn);
        //Virar RADAR

        if (trackName != null && !e.getName().equals(trackName))
        // If we don't have a target, well, now we do!
        if (trackName == null) {
            trackName = e.getName();
            out.println("Tracking " + trackName);
        // This is our target.  Reset count (see the run method)
        count = 0;
        // If our target is too far away, turn and move torward it.
        if (e.getDistance() > 150)
            gunTurnAmt = normalRelativeAngle(e.getBearing() + (getHeading() - getRadarHeading()));
            setTurnGunRight(gunTurnAmt);        // Try changing these to setTurnGunRight,
            setTurnRight(e.getBearing());   // and see how much Tracker improves...
                                            // (you'll have to make Tracker an AdvancedRobot)
            setAhead(e.getDistance() - 140);

        // Our target is close.
        gunTurnAmt = normalRelativeAngle(e.getBearing() + (getHeading() - getRadarHeading()));
        // Our target is too close!  Back up.
        if (e.getDistance() < 100)
            if (e.getBearing() > -90 && e.getBearing() <= 90)


     * onHitByBullet: What to do when you're hit by a bullet
    public void onHitByBullet(HitByBulletEvent e) {
     * onHitWall: What to do when you hit a wall
    public void onHitWall(HitWallEvent e) {

    //Faz com que o meu robô não colida com o outro
     public void onHitRobot(HitRobotEvent e) {
       // Only print if he's not already our target.
        if (trackName != null && !trackName.equals(e.getName()))
            out.println("Tracking " + e.getName() + " due to collision");
        // Set the target
        trackName = e.getName();
        // Back up a bit.
        // Note:  We won't get scan events while we're doing this!
        // An AdvancedRobot might use setBack(); execute();
        gunTurnAmt = normalRelativeAngle(e.getBearing() + (getHeading() - getRadarHeading()));

   public void onWin(WinEvent e) {
        for (int i = 0; i < 50; i++)
    // normalAbsoluteAngle is not used in this robot,
    // but is here for reference.
     * normalAbsoluteAngle:  returns angle such that 0 <= angle < 360
    public double normalAbsoluteAngle(double angle) {
        if (angle >= 0 && angle < 360)
            return angle;
        double fixedAngle = angle;
        while (fixedAngle < 0)
            fixedAngle += 360;
        while (fixedAngle >= 360)
            fixedAngle -= 360;
        return fixedAngle;
    public double normalRelativeAngle(double angle) {
        if (angle > -180 && angle <= 180)
            return angle;
        double fixedAngle = angle;
        while (fixedAngle <= -180)
            fixedAngle += 360;
        while (fixedAngle > 180)
            fixedAngle -= 360;
        return fixedAngle;

external users – Trouble with downloading a large number of files from SharePoint

I have an external partner account that wants to download a large GIS data set from our SharePoint. The data set is about 13500 files and is around 43 gb in size, and is housed within a folder. When they try to download it, it’s downloaded as a zip file, but it’s never able to fully complete, even though the browser says the download is complete. Sometimes the zip file is only a couple of GBs and won’t open.

enter image description here

Other times, the download manages to get to around 20 gb, and the zip file can be opened, but half the files haven’t been downloaded and I get a bunch of text files in the zip with error messages in them.

enter image description here

Each text file has an error message inside:
“This file cannot be downloaded.

ExceptionType: ZipMeTAException.

CorrelationId: 7dcb10e9-be4f-4edb-b24b-d469dcaaf844,

UTC DateTime: 1/29/2020 10:09:47 PM”

I’ve tried downloading the folder myself and never got past 20 gb before the download “completed”. Is there any reason why it’s not possible to download the whole folder, and is there a better method to download such a huge number of files that would work for an external partner?

Trouble getting USB iso to boot

Sorry total Noob to Linux and not sure but don’t think this is a Linux issue but possibly a hardware issue. I just don’t know where else to turn right now. I just built a new system with a Ryzen 7 3700X on a ASUS ROG STRIX B550-F Motherboard. Running Windows 10 Pro. I want a Ubuntu dual boot so I have a new 2 TB hard drive to install it on.
When I try to boot my USB appears to initially start ( I get the menu for run or installation). Whether I choose install or run the light on my USB stick then goes out like it’s not being accessed and all I get are a lot of Wait Loop Timed Outs, Then a lot of Hexadecimal with a final message of Kernel Panic- Not Syncing Fatal exception in interrupt. I have also seen a message that it seems to be unable to access the USB port.
I have made a bootable iso USB with Ubuntu using Rufus and I’ve tried using balenaEtcher for the creation. I’ve used every format (Fat32, NTFS, even GPT). I’ve tried it with 20.04 and 18.04.5 versions of Ubuntu. I have tried disabling CSM. I even unplugged the SSD with my Windows installation. I’m at a loss!! Any Help would be vastly appreciated! Thanks!

client – Trouble compiling bitcoind on OSX with homebrew

Update: These instructions or similar are included in the bitcoin source as of 19 February 2013. See doc/ for details. As such, the below instructions may fall out of date. Alternatively, make it easy on yourself an use WyseNynja’s homebrew tap with brew tap wysenynja/bitcoin && brew install bitcoind.

I got bitcoind working using these instructions. For reference, I’m on OSX 10.8.2 with homebrew 0.9.3. I’ve made an assumption throughout that homebrew is installed in /usr/local. I’ve also assumed that you’ve installed the Xcode command line utilities and any other packages that are essential to building code. If you build any code regularly, e.g. you have RVM installed to build ruby occasionally, you’re probably OK!

Install some necessary libraries from homebrew.

brew install boost miniupnpc openssl

Revert berkeley-db formula to an older version

cd /usr/local
git checkout e6a374d Library/Formula/berkeley-db.rb

You may have to unlink it if you’ve already installed the latest version.

brew unlink berkeley-db

Install berkeley-db 4.8 now that you’ve got the right formula in place.

brew install berkeley-db

Checkout from Github.

git clone

Edit the makefile.osx to change it a bit. Here’s a diff that shows what you need to change, or you can just use this as a patch by doing echo '$patch-text' | patch, where $patch-text is the patch text below.

diff --git a/src/makefile.osx b/src/makefile.osx
index 9629545..ffac9a3 100644
--- a/src/makefile.osx
+++ b/src/makefile.osx
@@ -7,17 +7,19 @@
 # Originally by Laszlo Hanyecz (


- -I"$(DEPSDIR)/include/db48"
+ -I"$(DEPSDIR)/include/db48" 
+ -I"/usr/local/Cellar/openssl/1.0.1c/include"

- -L"$(DEPSDIR)/lib/db48"
+ -L"$(DEPSDIR)/lib/db48" 
+ -L"/usr/local/Cellar/openssl/1.0.1c/lib"


Start the build.

cd bitcoin/src
make -f makefile.osx DEPSDIR=/usr/local

It’s now available at ./bitcoind. We have to first create the rpc configuration file, though. Run ./bitcoind to get the filename where it should be put, or just try the below text.

echo "rpcuser=bitcoinrpc
rpcpassword=HdAseQSRkirfoNuUSzqzixyL9sM1T6ABfzV1nyNmbuwg" > "/Users/${USER}/Library/Application Support/Bitcoin/bitcoin.conf"
chmod 600 "/Users/${USER}/Library/Application Support/Bitcoin/bitcoin.conf"

When next you run it, it will start downloading the blockchain, but it won’t output anything while it’s doing this. This process may take several hours.

Mine appears to be working fine, but it’s still downloading the blockchain. I’ll be able to tell after some testing if it’s working normally or not, but I suspect that it is!


evaluation – Still having trouble evaluating expressions (involving Log this time)

I’m trying to get some old Mathematica code working on MMA 12. I found the code at this link.
Here’s the relevant code:

Portfolio = {"AAPL", "BA", "IBM", "BMW.DE", "DIS", "R", "PEP", "BRBY.L", "AXP", "BTI"};
data = FinancialData[#, "Price", {{2016}, {2020}, "Month"}]["Path"][[All, 2]] & /@ Portfolio;
ListLogPlot[data, PlotRange -> All, Joined -> True]
Returns = Differences[Log[data[[#]]]] & /@ Range[10];
ListLinePlot[Returns, PlotRange -> All, ImageSize -> Medium]

The second plot is empty. When I look at Returns, it has this mess:

{{Log[Quantity[24.172500610351562, “USDollars”]] –
Log[Quantity[24.334999084472656, “USDollars”]],
-Log[Quantity[24.172500610351562, “USDollars”]] + Log[Quantity[27.247499465942383, “USDollars”]],
Log[Quantity[23.434999465942383, “USDollars”]] –
Log[Quantity[27.247499465942383, “USDollars”]],
-Log[Quantity[23.434999465942383, “USDollars”]] + Log[Quantity[24.96500015258789, “USDollars”]],
Log[Quantity[23.899999618530273, “USDollars”]] –
Log[Quantity[24.96500015258789, “USDollars”]],
-Log[Quantity[23.899999618530273, “USDollars”]] + Log[Quantity[26.052499771118164, “USDollars”]],
-Log[Quantity[26.052499771118164, “USDollars”]] + Log[Quantity[26.524999618530273, “USDollars”]],
-Log[Quantity[26.524999618530273, “USDollars”]] + Log[Quantity[28.262500762939453, “USDollars”]],
-Log[Quantity[28.262500762939453, “USDollars”]] + Log[Quantity[28.385000228881836, “USDollars”]],
Log[Quantity[27.6299991607666, “USDollars”]] –
Log[Quantity[28.385000228881836, “USDollars”]],
-Log[Quantity[27.6299991607666, “USDollars”]] + Log[Quantity[28.954999923706055, “USDollars”]],
-Log[Quantity[28.954999923706055, “USDollars”]] + Log[Quantity[30.337499618530273, “USDollars”]],

Theoretically, this is correct, but I want MMA to evaluate these expressions and plot the answer. If I remove the Log function in the formula for the Returns, I get the expected results, but not on a logarithmic scale.

What is wrong with the Returns formula? Why won’t this version evaluate?

networking – Trouble accessing windows file shares over multiple VPN connections

Our team connects to our corporate network over VPN from remote Win 10 workstations where we access file shares. We’re lifting and shifting some resources to Azure and the easiest solution is through another VPN hosted in Azure. However when we connect to the Azure VPN we lose access to file shares on the corporate network. AFAIK there’s no address space collisions between the two networks and the corporate VPN stays connected, just stops working (access to file shares drops out) until you disconnect the Azure VPN.

How do you configure Windows 10 to allow access to file shares through two different VPN connections simultaneously?

real analysis – Trouble with the proof of Cauchy convergence criterion

While reading the Analysis 1 textbook by Vladimir A. Zorich I encountered this proof which has this one conclusion I fail to understand.

The theorem and proof :

(Cauchy’s convergence criterion) A numerical sequence converges if and only if it is a Cauchy sequence.


$implies$:(I skipped this part of the proof since I have no issues with it.)

Let ${x_k}$ be a fundamental sequence. Given $epsilon > 0$, we find an index $N$ such that $|x_m − x_k| < frac{epsilon}{3}$ when $m ≥ N$ and $k ≥ N$. Fixing $m = N$, we find that for any $k >N$
$$x_N − frac{epsilon}{3}<x_k <x_N + frac{epsilon}{3} text{,} text{(3.1)}$$
but since only a finite number of terms of the sequence have indices not larger than $N$, we have shown that a fundamental sequence is bounded.

$$text{For} n in mathbb{N} text{we now set } a_n := inf_{k≥n} x_k , text{and } b_n := sup_{k≥n} x_k text{.}$$

It is clear from these definitions that $a_n ≤ a_n+1 ≤ b_n+1 ≤ b_n$ (since the greatest lower bound does not decrease and the least upper bound does not increase when we pass to a smaller set). By the nested interval principle, there is a point A common to all of the closed intervals $(a_n, b_n)$. Since
$$a_n ≤ A ≤ b_n$$
for any $n in mathbb{N}$ and
$$a_n = inf_{k≥n} x_k ≤ x_k ≤ sup_{k≥n} x_k = b_n$$
for $k ≥ n$, it follows that
$$|A − x_k| ≤ b_n − a_n text{.} text{(3.2)}$$
But it follows from Eq. $text{(3.1)}$ that
$$underbrace{x_N − frac{epsilon}{3}≤ inf_{k≥n} x_k = a_n ≤ b_n = sup_{k≥n} x_k ≤ x_N + frac{epsilon}{3}}_{text{The problematic part}}$$
for $n>N$, and therefore
$$b_n − a_n ≤ frac{2epsilon}{3} < epsilon text{(3.3)}$$
for $n>m$. Comparing Eqs. $text{(3.2)}$ and $text{(3.3)}$, we find that $|A −x_k| < epsilon$, for any $k > N$, and we have proved that $lim_{k to infty}x_k = A$.

End of proof.

The underbraced part doesn’t make sense to me, because from the stated it could happen that $$x_N − frac{epsilon}{3} = a_n $$ and since $a_n≤x_k$ it is possible that $a_n=x_k$ and therefore $x_N − frac{epsilon}{3} = a_n=x_k$ which contradicts what was stated before in $text{(3.1)}$, $x_N − frac{epsilon}{3}<x_k $

Why does the problematic part hold despite this ?

apt – Trouble with linux image

I keep getting an error when updating or installing a package.

$ sudo apt autoremove && sudo apt autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 linux-image-generic : Depends: linux-image-4.15.0-112-generic but it is not installed
                       Recommends: thermald but it is not installed
 linux-modules-extra-4.15.0-112-generic : Depends: linux-image-4.15.0-112-generic but it is not installed or
                                                   linux-image-unsigned-4.15.0-112-generic but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

When I try apt –fix-broken I get this

$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.15.0-72 linux-headers-4.15.0-72-generic linux-headers-4.15.0-76 linux-headers-4.15.0-76-generic linux-image-4.15.0-72-generic linux-image-4.15.0-76-generic linux-modules-4.15.0-72-generic
  linux-modules-4.15.0-76-generic linux-modules-extra-4.15.0-72-generic linux-modules-extra-4.15.0-76-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  linux-image-4.15.0-112-generic linux-modules-4.15.0-112-generic
Suggested packages:
  fdutils linux-doc-4.15.0 | linux-source-4.15.0 linux-tools
The following NEW packages will be installed:
  linux-image-4.15.0-112-generic linux-modules-4.15.0-112-generic
0 upgraded, 2 newly installed, 0 to remove and 59 not upgraded.
15 not fully installed or removed.
Need to get 0 B/21.1 MB of archives.
After this operation, 74.1 MB of additional disk space will be used.
Do you want to continue? (Y/n) y
(Reading database ... 251966 files and directories currently installed.)
Preparing to unpack .../linux-modules-4.15.0-112-generic_4.15.0-112.113_amd64.deb ...
Unpacking linux-modules-4.15.0-112-generic (4.15.0-112.113) ...
dpkg: error processing archive /var/cache/apt/archives/linux-modules-4.15.0-112-generic_4.15.0-112.113_amd64.deb (--unpack):
 cannot copy extracted data for './boot/' to '/boot/': failed to write (No space left on device)
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../linux-image-4.15.0-112-generic_4.15.0-112.113_amd64.deb ...
Unpacking linux-image-4.15.0-112-generic (4.15.0-112.113) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.15.0-112-generic_4.15.0-112.113_amd64.deb (--unpack):
 cannot copy extracted data for './boot/vmlinuz-4.15.0-112-generic' to '/boot/vmlinuz-4.15.0-112-generic.dpkg-new': failed to write (No space left on device)
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Linux server 4.15.0-62-generic #69-Ubuntu SMP Wed Sep 4 20:55:53 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux