Categories
Database Development

Is it bad practice to calculate within the insert query?

I am trying to do a web application for time sheets. I have three options to calculate the value of hours (AFAIK): In the form In the backend In the query Is it smart or bad practice to do this calculation in the SQL query? with list as (select code_id,code_ppu from code) insert into hr […]

Categories
Mastering Development

Looping over results from query in blade template laravel

I am trying to run a foreach loop over an array of data coming back from a query in my controller in my blade template. I keep getting an error saying ‘Undefined offset: 1’ no matter how I try. If I simply print out it shows me what I would expect, but for some reason […]

Categories
Mastering Development

Pause and resume caret training in R

Let’s assume I will do a caret training in R, but I want to split this training in two run sessions. library(mlbench) data(Sonar) library(caret) set.seed(998) inTraining <- createDataPartition(Sonar$Class, p = .75, list = FALSE) training <- Sonar[ inTraining,] testing <- Sonar[-inTraining,] # First run session nn.partial <- train(Class ~ ., data = training, method = […]

Categories
Mastering Development

Excel file cannot open with uwsgi + django?

The excel file generated cannot be open when my project started with uwsgi as it can be opened successfully with manage.py runserver My main codes like below: ── test_excel ├── urls.py ├── wsgi.py └── settings.py ── manage.py urls.py from django.contrib import admin from django.urls import path from django.views import View from openpyxl.writer.excel import save_virtual_workbook import […]

Categories
Mastering Development

Upload a file to a Sharepoint folder using Python

I have a Python script that saves a file to a server shared folder for a user to access. Our organization recently moved our server file structure to Sharepoint… including all the folders. (I’ve read multiple articles that’s a bad idea, but there’s no changing it right now.) I have new code that uploads a […]

Categories
Mastering Development Software

Why do Node.js projects not function properly?

I have been trying to use Node.js since it was first released, and in all of the intervening years, not once have I encountered a single Node.js project that worked as described when using the directions for initial setup, testing, and/or deployment in that project’s official documentation. Is this due to immature package management? Are […]

Categories
Mastering Development

Do i need to remove brackets for tokenization? RegexpTokenizer

First attempt at tokenization using nltk’s RegexpTokenizer for an assignment (necessary). Not sure if I should remove brackets? You are required to extract the token and append them into the list ‘token’ …not sure if I even did this right. import re import nltk from nltk.tokenize import RegexpTokenizer from nltk.probability import * from itertools import […]

Categories
User Help

Should I use Project Management software like TFS for teams of one?

Summary So the reason I am asking this question is because currently I work for a company as a software engineer that I interned with. This position was actually created specifically for me to do specialized projects to help with our production. Due to this, I am currently a team of one. I have no […]

Categories
Linux Mastering Development Ubuntu

is possible get VNC remote server working with KDE/plasma?

I’m trying to get running a multiuser remote desktop Quarantine Mode, every session running their own instances of kde. At this moment I have configured lightDM with the VNC server running. I can get running Xfce without problems, but Kde crashes on splash. Also from Xfce I can’t get OpenGL running (glxinfo does not find […]

Categories
Ask Engineering

How to go from specs/requirements to design, architecture, code, tests, documentation for embedded systems? [closed]

How do professional embedded systems engineers design, architect, code, test, document systems? Any good examples, libraries, resources that showcase the process of going from specs/requirements to system design, diagrams, architecture, coding, testing, documentation? For RTOS versus no operating system code? So we can see the difference and thought process? Ideally it would showcase things like: […]