Posts by Delfino • 1,651 points
69 posts
-
-1
votes1
answer28
viewsQ: Generic mapping multiple numerical ranges
I’m writing a code, for making decisions on an 8bit microcontroller, an AVR. I get 8 range of double values, limited by Vf_max and Vf_min, I don’t know which will be the biggest in each track. As in…
-
0
votes1
answer117
viewsA: What configuration should be done in Angular for use with Jekyll?
I found the following solution. I created a Workspace of the angular with the command ng new --skip-tests --skip-install Jekyll --directory . --defaults in Jakyll’s own working directory, so I…
-
1
votes1
answer117
viewsQ: What configuration should be done in Angular for use with Jekyll?
I’m developing an application that will use Jekyll with its themes as the basis of the site, however, I need to create a Jekyll layout <jekyll_root>/_layout/angular.html which will be uploaded…
-
-1
votes1
answer65
viewsQ: Unsubscribe does not work in RXJS, what is the correct method of use?
I made a code to monitor a map using the nativescript-Geolocation and the nativescript-google-maps-sdk, there is an Angular service that encapsulates all the logic of access to the…
-
2
votes1
answer35
viewsA: What is the use of $ in an expression that executes a pipe in a property in Angular?
Dollar at the end of property names has become a convention of uncoded, or weakly typed languages to facilitate identifying properties that are of types that contain what it actually represents, for…
-
0
votes1
answer35
viewsQ: What is the use of $ in an expression that executes a pipe in a property in Angular?
In the tutorial written by Jen Looper for Nativescript website it demonstrates a code that before the pipe is preceded by the symbol $ as below: <ScrollView> <StackLayout>…
-
0
votes1
answer115
viewsQ: How to recover a project using Angular 2 that was damaged with "npm update"
I’ve resumed my studies with Angular 2, and I’m trying to rebuild the design of this link step by step, but when executing the update of packages with npm update I can no longer test the project…
-
2
votes0
answers25
viewsQ: Avoid route authentication late with JWT
The JWT allows us through the method unless inform Urls and request methods that no authentication should be required. But as far as I know it is necessary to do this when Middleware is informed to…
-
0
votes0
answers98
viewsQ: Using two connections with Mongodb using Mongoose with references to distinct collections
I have two Mongodb databases that I connect using Mongoose on Nodejs, one with an X collection that references the ID of another Y collection that is in another Mongodb database on another server. I…
-
5
votes1
answer104
viewsQ: offline maintenance of Python modules
Due to problems with internet where I live, I need to maintain the packages and install new ones without the internet connection, keeping a microservicer mounted on Nanopi so that I get the files…
-
1
votes0
answers26
viewsQ: Maintenance of Debian Linux Offline Packages
Due to internet problems where I am living, I need to maintain a mechanism to update my linux installations without always relying on the internet. In case I need to download the packages to a small…
-
1
votes0
answers28
viewsQ: how to change include references in classes created by Qxorm Editor?
I started today programming using Qxorm for persistence layer for testing, and as I use the eclipse for all my projects, I immediately created a first test project importing into Eclipse. But the…
-
1
votes0
answers72
viewsQ: How to compile gettext on MSYS2 using x86_64-W64-mingw32-gcc
I am doing a series of recompilations to build a custom QEMU for my microcontroller studies, I have succeeded in compiling some packages up to gettext, after reading all the instruction files in…
-
1
votes0
answers19
viewsQ: Maintaining a Fork in Git with two or more different sources and deleting directories
I’m working with the QEMU for testing and continuous integration of a project using the Opencv and TBB, but need to maintain a Fork of QEMU that uses only a few resources from the original, added…
-
1
votes1
answer901
viewsA: How to install mingw-W64-x86_64-GCC with MSYS2 if I get the message mingw64 is already installed on the system
To solve such problem just create a name folder mingw64 at root when running Msys2 shell. This problem affects the 64bit version that waits for the directory to install the packages. see below:…
-
1
votes1
answer901
viewsQ: How to install mingw-W64-x86_64-GCC with MSYS2 if I get the message mingw64 is already installed on the system
I am trying to install GCC on my Windows station to do new tests with the use of GCC and some C compiled programs that can be ported to Windows. I’ve used several versions of GCC for Windows, some…
-
0
votes0
answers42
viewsQ: How to ensure that a code in a Cortex-A is running at maximum CPU frequency
When executing a C code I need to execute every 30ms a set of calculations that transforms an image and that is taking up to 100ms which forces me to discard 3 of every 4 frames that I get. How can…
-
0
votes1
answer200
views -
0
votes1
answer200
views -
1
votes0
answers78
viewsQ: Methods that return constant values in C and C++ even if they come from variables, is it possible?
In a series of optimizations in a code written in C++ adopted a class to store application parameterization data and some pseuconstants let’s say so. What actually happens is that when the…
-
0
votes1
answer129
viewsQ: Error when using inline methods in C++ classes: Undefined Reference to
I’m optimizing part of my code where some methods that are called loop very often I’m passing them to inline, but while doing so I’m getting the following error messages: And I’m getting the…
-
1
votes2
answers691
viewsQ: How to avoid "Warning: ISO C++ forbids variable length array ːfilename' [-Wvla]" error in C++11
I have the following piece of code that aims to create a buffer for the file name that will be created based on some information provided at class instantiation: char fileName[size];…
-
0
votes1
answer18
viewsQ: how to ask Make to only run one target after the end of another when using multicore
UPDATED When running make with the -j option to use multicore, that is to put each requesting target on a core, it does not respect the order and runs both simultaneously. For example make Object1…
-
0
votes1
answer112
viewsQ: How to debug a C/C++ application remotely using ECLIPSE, different operating systems?
I am developing a C++ application that runs a Nanopi M3 board with Linux specially compiled for my purpose, and there have been certain errors and unexpected behaviors, I would like to be able to…
-
1
votes1
answer1884
viewsQ: C++ Class Destructor Called in the middle of code
I’m getting deeper into the use of C++, and I’m having trouble migrating an application that uses callbacks and a Singleton to manage settings. During code initialization still in main function, I…
-
0
votes1
answer19
viewsQ: Profiling deposited in the Versioning Repository (Github)
I am doing some tests with an experimental code that makes count of cyclists in the bike lane, for these tests I am using the gprof and gcov that generate several analysis files, one of these…
-
3
votes1
answer58
viewsQ: branching a branch from a particular commit and migrating subshot commits
I was updating a repository, creating its documentation, so I created a new branch called master-guibook a ". /Docs" directory and a "book.json" file at the root of the project, so I opened the…
-
4
votes1
answer202
viewsQ: Unexpected Error using parse_args() function of the Argumentparser object in Python
In a simple code I’m doing in Python, I get the exception below, when I call the function parser_args() on the type object ArgumentParser: Unexpected error: (<type 'exceptions.SystemExit'>,…
-
0
votes1
answer185
viewsQ: How to capture and treat an Exception in the Swift language
I have a method of one framework, of AVFunction that throws an exception, but when writing the code that calls this function I can’t find what exactly the exception is launched. How should I proceed…
-
0
votes1
answer50
viewsQ: Factory of objects related to local persistence on SWIFT
In the application I am developing using Swift, I need to have access to a locally persisted data entity, this entity will be built through a Factory based on data obtained probably by a request and…
-
0
votes2
answers239
viewsA: How do I see a view inside the Viewcontroller after pressing a button?
Eduardo, I’m also a beginner, but I would do it with a different approach, as suggested by Rafael. I would use the Storeboard, to build the flow of views, so when you have a button that displays a…
-
0
votes1
answer72
viewsQ: Interrupt a chain of actions on SWIFT
I am developing a simple application with two screens, uama authentication and another for a second process, this application is for IOS using the SWIFT language. When using Storebord to define the…
-
1
votes1
answer82
viewsQ: Error regarding the number of parameters in Query when not using Query, what is wrong?
I’m having difficulty using Hiberante/JPA with composite key, I believe the problem is there, although the generated exception stacktrace points to another place that is not superficially related to…
-
3
votes1
answer54
viewsQ: For an unordered set of listeners what is the best java.util.Set implementation to use?
I’m developing a Handle to a data stream, where periodically events will be launched that are to be captured by a small set of Listeners from 1 to 5 listeners. This set of listeners do not need to…
-
11
votes1
answer886
viewsQ: Multiple Controllers with Javafx 2, as a reference to each other’s instance
UPDATED. I am creating a new Java application using Javafx, when programming with Swing I had the habit of creating multiple specialized controllers for the interface, and in Swing I use a…
-
4
votes1
answer180
viewsQ: JMF, Java Media Framework, is there a replacement?
A few years ago, around 10 years ago, I started a road data collection project, this project was being done in Java and used the JMF, a framework to deal with various types of media in particular…
-
1
votes1
answer285
viewsA: How does the LED lightweight encryption algorithm work?
I’m also researching on the subject and reading on [Crypto.SO] I found this answer interesting, so I’ll adjust here, I hope it meets us. On page 3 of Proposal for the LED Algorithm says: "Note that…
-
3
votes1
answer73
viewsQ: Is it possible to know which JEE Container is being used during Dispatcher Servlet startup?
After some difficulties with the use of the Spring Security and JBoss using annotations based on API Servlet 3 (Servlet 3.1 more specifically), I discovered that when using Spring with JBoss, in…
-
0
votes1
answer176
viewsQ: It is better to use common division or Shift and Soma operations on 8bit microcontrollers
Considering programming for 8bit microcontrollers, we know that even for this microcontroller, the compilers have reached a unique level of optimization that allows us to program focused only on the…
-
1
votes4
answers6387
views -
3
votes0
answers385
viewsQ: Example of Spring Security Does not work in Jboss, what should be done to make the example compatible?
Continuing my studies in the use of Spring Security and Servelet 3.0 I am trying to follow the suggested examples in the tutorial Hello MVC - Running the insecure MVC Application, but such examples…
-
2
votes0
answers170
viewsQ: How to Run Pivotal TC Server with Eclipse Luna?
I’m studying the use of Spring Security, and as the tutorial on this link, you need to use the STS - Spring Tool Suite, however as I already have my installation of Eclipse of daily use, I installed…
-
14
votes2
answers481
viewsQ: What are the Types of Ioc?
Reading the Book "Pro Spring Security" by Carlo Scarioni of Editora Apress, 2013 edition, I came across the following text that left me confused about Ioc: The basic idea of DI, a type of Inversion…
-
1
votes2
answers1237
viewsA: How can I get more accurate values by dividing two long?
See in principle your problem is in using the function print/println of the object Serial these functions when dealing with type numbers float and double allows you to specify how many digits will…
-
3
votes1
answer2440
viewsA: Should I use DIRECTORY_SEPARATOR or BARRA (/)?
I find the use of constant little elegant, hinders the reading of the directory, but with the use of a new constant as DS I think valid because it minimizes the impact on the application, but this…
-
0
votes2
answers277
viewsA: Error entering record, last possible Intel value already used
To solve such a problem it will be necessary to use a composite primary key, and control the auto increment through a Trigger, so it will no longer be automatic in the field itself. Based on the…
-
0
votes1
answer921
viewsA: Failed to Capture USB J-Link Device with Virtual Box, MACOSX SAM4S Xplaned
This problem occurs when the SEGGER Driver for J-Link devices captures the USB port on the MAC-OS, to avoid this problem it is necessary to configure a USB device filter in the settings of the…
-
1
votes1
answer921
viewsQ: Failed to Capture USB J-Link Device with Virtual Box, MACOSX SAM4S Xplaned
For many years I use my Macbook together with Virtual Box to program in applications that only exist for Windows, but currently I need to develop a Firmware for a Cortex-M3 and for testing I am…
-
2
votes1
answer369
viewsQ: Is it possible to prevent Wine from getting viruses? or is it already immune by running on Linux and Mac?
We know that there are viruses for MAC and Linux, this is not the question, the question is whether it is possible to use Windows applications using Wine without contaminating with viruses, this is…
-
2
votes2
answers501
viewsQ: What is the way to configure VI to autocomplete and format the files in a standardized way according to each language?
I’ve been using VI for some years, I think about 20 years, at the time still in XCO Unix and Xenix, but I never took the initiative to make my environment fully parameterized to program in languages…