Categories
Mastering Development

Does Poetry install –no-dev need Rust to be installed?

I’m installing Poetry in a container in my Raspberry pi 3b+ (Lite buster February 2020). I use the image arm32v7/python:3.7-slim-buster. Here is the Dockerfile: FROM arm32v7/python:3.7-slim-buster RUN apt-get update RUN apt-get install libssl-dev -y RUN apt-get install libffi-dev RUN apt-get install build-essential -y RUN pip install poetry RUN pip install –upgrade pip COPY ./pyproject.toml /app/ […]

Categories
Mastering Development

deploying ruby-rails + react-js on heroku error

I am having trouble deploying an app I made with ruby on rails and react.js on heroku. Has anyone ran into these errors while deploying? I am completely stuck and hopeless remote: Usage: npm <command> remote: remote: where <command> is one of: remote: access, adduser, audit, bin, bugs, c, cache, ci, cit, remote: clean-install, clean-install-test, […]

Categories
Development Linux Ubuntu

newb question : Did I mess with anything while installing npm?

So I’m very new to Ubuntu, never used it before. I’m on Ubuntu 19.10 Here’s the story : I’ve installed node from the Ubuntu software. Then, I removed it using the Ubuntu software cause it wasn’t up to date or something(cant quiet remember why, I think its was v10.x). I tried to follow the instructions […]

Categories
Development

Error executing Symfony command if vendor directory is out of webapp

I have my command in Symfony3, when I execute it in my local it works fine… because my vendor DIR is inside my webapp myproject/vendor…. But in production Server this directory “vendor” is out, in a shared directory like this: /myserver/releases/myrelease/… //this is my source webapp for: app, bin, src, tests/var/web directories /myserver/shared/vendor/…// this is […]

Categories
Development

Upload file to HTML input type=’file’ that does not belong to a form

I am attempting to upload a file via curl that basically should imitate how a user would upload a file to https://lutzroeder.github.io/netron/ I can see there is a: <input type=”file” id=”open-file-dialog” style=”display:none” multiple=”false” accept=”.onnx, .pb, .meta, .tflite, .lite, .tfl, .bin, .keras, .h5, .hd5, .hdf5, .json, .model, .mar, .params, .param, .armnn, .mnn, .ncnn, .dnn, .cmf, .mlmodel, […]

Categories
Development Linux Ubuntu

Why should all world-writable directories be owned by a priviledged group?

I’m reading an Ubuntu security guide developed for the US Department of Defense, to be found here. Written for 16.04 but I don’t think this particular item has changed much. The guide says, Group ID (Vulid): V-75583 Group Title: SRG-OS-000480-GPOS-00227 Rule ID: SV-90263r2_rule Severity: CAT II Rule Version (STIG-ID): UBTU-16-010840 Rule Title: All world-writable directories […]

Categories
Development

How to Apply pd.crosstab using Lambda

For the below pandas dataframe: Col = [“Q1”, “Q2”, “Cat”] data = [[“Y”,”Y”,”BIN”],[“Y”,”N”,”CIN”],[“N”,”N”,”BIN”],[“N”,”Y”,”CIN”],[“Y”,”Y”,”BIN”]] df = pd.DataFrame(data,columns = col) Q1 Q2 Cat 0 Y Y BIN 1 Y N CIN 2 N N BIN 3 N Y CIN 4 Y Y BIN I want to take crosstab “Cat” with “Q1 and Q2” in one go. For […]

Categories
Development React

issue installing react native expo with npm install -g expo-cli

I was able to install and run react-native but when I tried to install react native expo I got some errors this is my Expo installation npm install -g expo-cli Microsoft Windows [Version 10.0.16299.125] (c) 2017 Microsoft Corporation. All rights reserved. C:\Users\admin>npm uninstall -g expo-cli up to date in 0.043s C:\Users\admin>npm install -g expo-cli npm […]

Categories
Development

Long lived AssemblyLoadContext

So this is what I’m trying to do. I would like to have a log lived AssemblyLoadContext instance in order to quickly execute loaded assemblies. When the assemblies updated event comes I would like to unload the context (I’m using .net core 3) and create a new context with versions of assemblies. When I try […]

Categories
Development

CONDA Base Env load error / NUMPY: ImportError: DLL load failed

Just installed miniconda on C:\Anaconda 3 and ran conda install numpy unsing the Anaconda shell (defaults to conda base as env). If I run the Anaconda command prompt and type python >> import numpy all works fine. If I open a normal command window and got to c:\Anaconda3 and run python >> import numpy this […]