xpam.pl

  • Watching beIN SPORTS Direct Spain from anywhere in the world

    Update 2023: this is a very old blog post now and most probably does not work anymore It’s 2017 and it is almost impossible for a regular human being to watch Champions League without being subscribed to cable or internet TV and pay exorbitant fees for hundreds of bundled channels you don’t really need or…

  • Oh FileZilla…

    I have encountered a weird problem when connecting to our FreeBSD server with FileZilla over SFTP. Either with password or key authentication I would get: Error:    Server sent disconnect message Error:    type 2 (protocol error): Error:    “Too many authentication failures” So let’s turn on debugging shall we?   Trace:    Pageant is running. Requesting keys. Trace:  …

  • pgadmin4 on Fedora 25

    wget https://download.postgresql.org/pub/repos/yum/9.6/fedora/fedora-25-x86_64/pgdg-fedora96-9.6-3.noarch.rpm sudo dnf install pgdg-fedora96-9.6-3.noarch.rpm sudo dnf install pgadmin4-v1 sudo systemctl start pgadmin4-v1 You can now access the web interface at http://localhost:5050. Unfortunately the standalone app does not currently work due to a bug in pgadmin4 package. Fortunately the pgadmin4 standalone app is just a web wrapper so you are not missing much. Cen…

  • Keycloak OAuth endpoints for Postman/HTTP Clients

    When testing REST services secured by Keycloak you need to retrieve access tokens via Postman or similar REST client. If you want to implement your own client that has to authenticate with a token you also need to know the Keycloak OpenID endpoints in order to retrieve the access token, refresh it or to end…

  • Fedora 25 on Lenoyo Y50

    Everything except WiFi worked out of the box. To get the WiFi working: sudo dnf install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-25.noarch.rpm sudo dnf install http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-25.noarch.rpm # The rest sudo dnf install kernel-devel broadcom-wl akmod-wl akmods sudo akmods sudo reboot Taken from here. In your BIOS make sure you disable Secure Boot. Not UEFI, not Legacy mode, specifically the switch…

  • Expose your dev machine to the public via reverse SSH tunnel

    Scenario: you are creating a REST service which needs to be exposed to the public even in early stage of development due to an upstream provider which sends back feedback data from a webhook API. You are also behind a NAT so you’d have to port forward yourself out but you can’t do that for…

  • OJDBC7 in a Docker container? Prepare for trouble

    Scenario: A JDK8 Docker container using OJDBC7 to connect to the database. Sounds simple enough, what could go wrong? Simptoms: Connecting to the database randomly takes several minutes, fails with a weird SqlRecoverableException: no more data to read from socket or just works fine as if there is no problem. The same Docker image also…

  • JPQL: getting whole entities on a distinct column

    If you want distinct entities in JPQL you would normally write something like this: SELECT DISTINCT(l) FROM Letter l WHERE l.name=:name; But this will do a DISTINCT on the whole Entity. This will also fail on Oracle DB if your Entity contains a CLOB. What if you really want to do a DISTINCT on a…

  • Fedora 24 XFCE pains and gains

    I recently installed Fedora 24 XFCE on my brand new Entroware Apollo, a Linux friendly laptop. Here is a list of problems I encountered during my first week of use. While most of these problems had a solution with a bit of googling, non-tech savvy person would have severe problems solving them. PAINS System completely…

  • Qt 5 + MSVC 2015 + OpenSSL + Windows XP Support = absolute mess

    Recently I decided to move all of our C++/Qt based projects up to the latest version of Qt and C++ toolkits. That means Qt 5, Visual Studio 2015 and all the latest libraries which are needed either for Qt or standalone. There was one caveat tho.. we still need to support Windows XP because a…

Categories