So I've been developing this program for a while now... Its meant to act as an asset manager (and potentially more in the future) for our IT team. I have 2 services which we'll refer to as "Manager" and "IAM" for right now. The "Manager" does all things managerial for all services (currently only the inventory asset manager known as "IAM") such as automatic updates, etc., while the asset manager does its job.Anyways, its been working great for a while now. Recently I implemented an automatic upd...
ادامه مطلبI am implementing a project with angular 5 in front end and springboot in backend. While i'm trying to send a request from client to backend, In the google chrome console the following message is displayed GET http://localhost:4200/customer 404 (Introuvable) And In the tomcat console I'm getting this line avr. 23, 2018 11:26:21 AM org.apache.tomcat.util.http.LegacyCookieProcessor processCookieHeader INFOS: Cookies: Invalid cookie. Value not a token or quoted value Note: further occurrences of Co...
ادامه مطلبSo msgpack-c provides me with objects as arrays. Say I serialized a a C++ message alike this: template struct Message { std::vector data; std::vector shape; MSGPACK_DEFINE(data, shape); }; and had T == double. If deserialised to json in C++ it would have inteals like [[1.23,3.01,44.02,33],[2,2]]. Now I want to deserialize it in C# with MessagePack-CSharp. If I try to tu it into json string I get an...
ادامه مطلبAs a long-time Visual Studio user, I often use Find in Files to find things throughout the project. In IntelliJ, this is causing me problems, because sometimes IntelliJ decides, for some reason, that what I want is "Directory" rather than "In Project". (I usually notice this after I'm baffled by the small number of matches.) How can I get IntelliJ to exclusively open Find in Files in In Project mode, and never in one of the other settings?...
ادامه مطلبI created an EPLAN API with C#. It uses .NET Framework 4.8.1. The app gets an opened instance of Excel using Marshal.GetActiveObject to then make changes to the data. The code works fine and is able to see the opened instance of Excel. However the API doesn't work for 1 client because it can't see the opened instance of Excel. This means there is some setting on his PC that is causing Marshal.GetActiveObject to fail. What Excel or PC setting do I need to change to get Marshal.GetActiveObject wor...
ادامه مطلبGiven two positive integers d...
ادامه مطلبI have a sample list of file names that I'd like to capture just the 'name' and the optional s##e##. Everything else I don't need. I used regex101.com to test the patte that I would be using in Java later. Heroes (2006) - s01e01 - Genesis.mp4 [Not-Important] One Piece - s22e48 - 1178 [More_not_important].mkv Stargate s01e01.mkv Stargate the Movie.mkv Star-Trek s01e01.mkv (Not_Important) Star_Trek_the_Movie (Some-More).mkv and I have this Java regex patte (?:^[[(].*?[])])?(.*?)([sS]d+...
ادامه مطلبThis question would an "update" about this kind of topics, like this old question (Is it possible to declare constexpr class in a header and define it in a separate .cpp file?), but now with C++ modules, in the context about functions that are called from multiple files and not only called from the same file. About functions that with a traditional file structure, .h/header and .cpp files, need to be placed entirely in the header file: constexpr functions template functions Now with C++ module...
ادامه مطلبCaot get through my docker container and coect to my local ollama server. Ollama server is up and ruing : http://localhost:11434 retus "Ollama is ruing" When adding n8n credentials for ollama, I get the following : Couldn't coect with these settings ECOREFUSED Here's my n8n credentials config : Base URL : http://host.docker.inteal:11434 API Key : not needed for local install and ruing models (?!) Allowed HTTP Request Domains : All According to what I've found, looks like...
ادامه مطلبI really don't like the standard ``text'' quotations of latex, with the opening mark pointing downwards. I wonder if it's possible to obtain this result (here obtained by gimp editing): using standard latex. Any vertically symmetric quotation pair would also be fine. Moreover, also the UTF8 variants of the quotes are not particularly symmetric, something that I find unaesthetic: documentclass{article} begin{document} ``text'' end{document} I typically use overleaf, or pdflatex. Any ideas?...
ادامه مطلبI am training a C in a custom training loop. I am updating the weights manually, and calculating the gradients with torch.autograd.grad and manually. grads = torch.autograd.grad(outputs=model.fx, inputs=model.layers_weight, allow_unused=True, grad_outputs=[torch.ones_like(out) for out in model.fx]) model.fx are the outputs of all the linear functions except for the last element which is the loss. The inputs are the weights. Using these gradients I calculate back in the network dl/dw for each...
ادامه مطلبI have the following union (C# 15+): public union ValueSource(int, Func); As per the docs: An implicit union conversion exists from each case type to the union type So I expect both of the following to work: ValueSource src1 = 42; ValueSource src2 = () => 42; However, the assignment to src2 fails with: CS1660: Caot convert lambda expression to type 'ValueSource' because it is not a delegate type Moreover, if I have this static method: public class IntSource { public stat...
ادامه مطلبI'm trying to lea PCA using R but I'm unsure whether I'm using the results correctly. I have included the code for my attempt at using PCA to analyse the decathlon2 dataset in R with a scree plot, loadings and biplots with brief notes on what they show, and would like to know if these are sound conclusions or if I am misinterpreting the results.Many thanks.library(ggplot2) library(corrr) library(ggbiplot) library(factoextra) library(ggcorrplot) library(corrplot) library(dplyr) library(gt) Dec...
ادامه مطلبI encounter a strange behaviour in my Spring-Boot project (v4.0.6):When I execute a Controller which retus ResponseEntity for writing NDJSON-Lines the FilterChainProxy of SpringSecurity will get invoked twice. In the second invocation it looses the previous resolved Authentication object and throws an error.The Controller is defined as such:@RestController public class AsyncController { private Logger logger = LoggerFactory.getLogger(AsyncController.class);...
ادامه مطلبI have a Docker container with OrbStack that contains a directory repos with a repository app-main and worktrees like app-feature-a to develop in parallel. Configuration is done in order to prevent modification of the container configuration file in the ruing Docker. project/ ├── .devcontainer/ # outside the mount, on purpose │ └── devcontainer.json └── repos/ ├── app-main/ ├── app-feature-a/ └── app-feature-b/ MWE for devcontainer.json : { "name": "myproject", "image":...
ادامه مطلبWe would like to use Hibeate StatelessSession injected into our Spring Data JPA repositories. Our understanding is this requires HibeateTransactionManager and SharedSessionCreator.createSharedStatelessSession. Our setup is like follows: @Bean public HibeateTransactionManager transactionManager(EntityManagerFactory entityManagerFactory) { var hibeateTransactionManager = new HibeateTransactionManager(entityManagerFactory.unwrap(SessionFactory.class)); retu hiber...
ادامه مطلبI created a file with one line "bug line", initialized git repository and committed change. Then I added the second line "staged" and staged the change. Then I added the third line "unstaged". How to add a commit changing the first line to "bug line changed" so that I still get the second line as staged change and the third line as unstaged change without merge conflicts?...
ادامه مطلبI was reading a (quite old) book on POSIX API, and in the chapter on threads it says that on retu from main() all the threads (including detached ones) are terminated. I would expect that std::thread::detach() inteally uses POSIX threads API, and yet it seems that a detached std::thread is sort of joined with the main() thread (or the main process really), after the main() function retus on Ubuntu 26.04. For example, the code below blocks on a read from std::cin and, if I write anything...
ادامه مطلبThe following code snipped defines a nested chain of templated C++ classes. The problem I have starts on the third level. The initialization of the three level nested class works well, which can easily checked in a debugger. However, a problem arises when attempting to access the nested class member variables aValue. While the first two levels work well, accessing third level aValue gives me no joy. Any suggestions on how to propagate variable access down the chain? Ideally, is there any iterato...
ادامه مطلبI'm working on a Laravel project and I need to search through 2 models as the same time. I decided to use a union for this query, as I would do it in SQL. One of my models is converted into the other, and then the two queries are unioned. I was expecting to be able to filter as well after that, but any where clause I'm using ends up applying only on the first part of the union, and not the second. Here's the code EntityMember::union( User::select(*convert User into something similar to Entit...
ادامه مطلب