Categories
Development Linux MySQL SQL

Quartz with MYSQL8.0

I am using .Net Core application with MySql 8.0 (Linux). If I create a day/week job, Then changes reflected in MySql database but it will not trigger but if i configure for minutes it will work. Before we implemented Quartz job scheduler with MSSQL is perfectly working with .Net Core application. Following are configuration changes […]

Categories
Development iOS Linux

Leading Zero bytes Serial USB from Arduino teensy using termios

I have a singleboard odroid neo4 that is connected via usb to a teensy 4.0. I’m attempting to send 4 kb buffers at a time from the teensy to the neo4 of unsigned shorts (I realize that its ultimately just raw bytes transmitting). I’m getting 256 bytes (or 128 shorts) of leading zeros each 4kb […]

Categories
Development Linux Python Windows

Python multiprocessing pool.map doesn’t work parallel

I wrote a simple parallel python program import multiprocessing as mp import time def test_function(i): print(“function starts” + str(i)) time.sleep(1) print(“function ends” + str(i)) if __name__ == ‘__main__’: pool = mp.Pool(mp.cpu_count()) pool.map(test_function, [i for i in range(4)]) pool.close() pool.join() What I expect to see in the output: function starts0 function starts2 function starts1 function starts3 […]

Categories
Development Linux

Methods to Find Vulnerabilities in Binary Files [on hold]

Disclaimer : This is for ethical purposes I am trying to find vulnerabilities on a small binary file (15kb) What the vulnerability is, how to trigger it, and it’s exact location in the binary. This file is supposed to run on Linux(Ubuntu) and it has no filename extesension. What I have tried : -command: file […]

Categories
Development Linux Website

urllib.error.URLError:

I’m trying to create a master, agent script where the master gets information out of the agent. Information such as: Hostname usage CPU usage Disk usage Memory usage I have put this in to a function that returns the data. When the data is about to be send I get the error: Traceback (most recent […]

Categories
Development Linux

Full installation of tensorflow (all modules)?

I have this repository with me ; https://github.com/layog/Accurate-Binary-Convolution-Network . As requirements.txt says, it requires tensorflow==1.4.1. So I am using miniconda (in Ubuntu18.04) and for the love of God, I can’t get it to run (errors out at the below line) from tensorflow.examples.tutorial.* import input_data Gives me an ImportError saying it can’t find tensorflow.examples. I have […]

Categories
Development Linux Windows

vtkSTLReader reads only files in folder of execution

NOTE: The question is invalid, I made an entirely different mistake, see edit at the end. I want to simply read a STL file using the vtkSTLReader class. My code for that looks like this: vtkSmartPointer<vtkSTLReader> reader = vtkSmartPointer<vtkSTLReader>::New(); reader->SetFileName(path.c_str()); reader->Update(); vtkSmartPointer<vtkPolyData> poly_data = reader->GetOutput(); and then the code proceeds to display the poly data. […]

Categories
Development Google Linux

Google Cloud Run deployment not working using `gcloud` SDK CLI

I have a service created on Google Cloud run that I am able to deploy manually through the Google Cloud Console UI using an image on Container registry. But deployment from CLI is failing. Here is the command I am using and the error I get. I am not able to understand what I am […]

Categories
Development Linux

Customizing Yocto U-boot serial prompt messages

I am using Yocto project and using U-boot for an embedded board. Trying to change U-boot prompt messages when my board is power up. For example, prompt messages is starting with U-boot “U-boot versiyon” “U-boot.bin file creation date” and then some device driver initialization messages and so on… I want to customize this screen and […]

Categories
Development Docker Linux MySQL SQL Windows

R Docker: Can’t connect to local MySQL server through socket

I’ve used a golem pipeline to package & dockerize my app. For starters, I am trying to deploy the app locally on windows pc using docker (also tried to run it on linux with a same problem). The app collects the data from a local SQlite database also running on my pc (which will be […]