Categories
Development GitHub System & Network

rabbitmq kubernetes with NFS mount

I tried to set up a rabbitmq cluster in a kubernetes envirnoment that has NFS PVs with the help of this tutorial. Unfortunately it seems like the rabbitmq wants to change the owner of /usr/lib/rabbitmq, but when I have a NFS directory mounted there, I get an error: $ kubectl logs rabbitmq-0 -f chown: /var/lib/rabbitmq: […]

Categories
Development GitHub

Atom language package using tree-sitter

I followed this tutorial on how to create Tree-sitter parser. I published the parser to npm. Then created Atom language-package that uses my tree-sitter module using this guide. When I reload Atom editor, i got the following error: (…path to my tree-sitter module…) was compiled against a different Node.js version using NODE_MODULE_VERSION 72. This version […]

Categories
Development GitHub Vue

How can I implement seo to vuetify project?

I had try some way https://github.com/nuxt/vue-meta https://github.com/troxler/vue-headful I had install it and try in my project of vuetify I try to click right use mouse on my website and select View Page Source, I see the title, description, keywords don’t change. It still uses the title, keyword and description from public/index.html. I look doubtful this […]

Categories
API Development GitHub HTML

UnitTest call /swagger-ui.html results in a 404 for springdoc-openapi

I am trying to migrate to springdoc-openapi; Everything runs great except being able to run unit-tests from mvn; The following maven command results in a 404: mvn -Dtest=SwaggerUITest test -f TestSwaggerUi -P integration Intellij has no problem running it, so I suspect that it is a classloading issue. I have used the code from the […]

Categories
Development GitHub Linux Ubuntu

Need help to free up space and speed up my machine

My Ubuntu machine is running very slow and it has a very low free disk space. I tried these steps (attached down bellow) and when I used those commands, I get an error message at the last step Clone the Repository git clone https://github.com/KID-X/Cleenux Change Directory into the Cloned Repository cd Cleenux Make the installer.sh […]

Categories
Development GitHub Linux Ubuntu

Free up space and speed up linux machine (Kali, Ubuntu, Debian)

Free up space and speed up linux machine (Kali, Ubuntu, Debian) INSTALLING STEPS: Clone the Repository git clone https://github.com/KID-X/Cleenux Change Directory into the Cloned Repository cd Cleenux Make the installer.sh executable chmod +x install.sh Install ./install.sh After installing use just cleenux in terminal to run the program. Ex: root@kali:~# cleenux Notes: Cleenux is a simple […]

Categories
Development GitHub

NYT dataset entity not found in Freebase data dump

In test data of Riedel’s NYT dataset for relation extraction, there is a sample id1 id2 entity1 entity2 relation m.06mzp m.0pbgk switzerland davos /location/location/contains However, after I downloaded Freebase latest data dump and extracted all triples containing m.06mzp, I can’t find m.0pbgk in the related triples. Why is there a mismatch between NYT and Freebase? […]

Categories
Development GitHub

How to modify dom attributes in Angular js when using ng-change?

<table class=”table table-sm table-inverse table-responsive table-striped”> <thead> <tr> <th>SL No.</th> <th>Repository Name</th> <th>Active</th> </tr> </thead> <tr ng-repeat=”eachData in lstRepositoryData”> <td></td> <td></td> <td> <label class=”switch”> <input id=”activeRepositorySlider” ng-if=”eachData.active == true” type=”checkbox” checked ng-model=”eachData.active” ng-change=’change(eachData.active,””)’ dataid=”” dataurl=””> <input id=”inactiveRepositorySlider” ng-if=”eachData.active == false” type=”checkbox” ng-model=”eachData.active” ng-change=’change(eachData.active, “”)’ dataid=”” dataurl=””> <span class=”slider round”></span> </label> </td> </tr> </table> I am […]

Categories
Development GitHub Swift

Swift – zip/unzip Data in memory without any file system interaction

My code needs to parse heaps of JSON files, and those files are hosted on GitHub and only available bundled as 1 single ZIP file. Because the ZIP file is only about 80 MB, I want to keep the entire unzipping operation in memory. I’m able to load the ZIP file into memory as a […]

Categories
Development GitHub

Sort on multiple layers [Vega Chart]

I’m building some charts with vega lite, and i have a specific case (kind of dificult), i tried some ideas but i’m out of them for the moment, so if anyone could help with a proposition or an idea. I have a bar chart vega with two layer , one contains positif values and the […]