Questions tagged [implementation]
Deals with various issues of implementation.
2,199
questions
0
votes
0
answers
25
views
VS Code "go to definition" only shows method signatures without implementation
In VS Code I go to definition of a C# class/method with F12. But I see only method signatures without implementation.
How do I see the actual implementation?
I tried to google an answer but couldn't ...
-1
votes
0
answers
16
views
How can I replace Davinci codex?
I try to implement OpenAI chatgpt to my website, but I can not get through the davinci codex thing recommended by ChatGPT. I get this error message. Is there anything I can replace it?
{
"...
0
votes
2
answers
64
views
How can I regroup two structures in rust?
I am quite new to Rust and I have just spent my afternoon on the following implementation problem in Rust.
Here are my different files :
Foo.rs
struct Foo {
socket: TCPSocket
}
TCP.rs (the Option ...
0
votes
1
answer
21
views
Targer activity doesn't starts after clicking the button its navigate to main.activity
in my first Android App I've created the NoteActivity (which is not MainActivity) and fragments, database, viewmodels, navigation etc. for this activity.
The problem is when i open the app using ...
0
votes
0
answers
20
views
I cannot implement spotlight library on Android Stuido
I've decided to create a user guide for a mobile app I'm writing in Java in Android Studio. However, after adding the Spotlight library to the build.gradle file, I'm encountering an error related to ...
1
vote
0
answers
63
views
Is there a way to see decompiled C# system libraries in VS Code?
Thanks to this question, I can view Unity's classes:
Notice it says "Decompiled with ...". With classes which are part of system libraries, it doesnt do that:
Notice the lack of "...
0
votes
0
answers
73
views
AES Decryption not working correctly but all its functions seem to work correctly
This is the encryption function :
def AES_Encryption (text) :
round_keys = generate_round_keys()
#print("Round keys = " , round_keys)
aes_texts = break_text(text)
#print(...
0
votes
1
answer
65
views
Difference between implicit and explicit implementation of GetEnumerator() from IEnumerable
I have this class but I can't understand why it is useful to have one implementation as: public IEnumerator GetEnumerator() and the other as: IEnumerator IEnumerable.GetEnumerator(). I know that to ...
3
votes
0
answers
37
views
Why do Observable Objects notify observers before the change occurs rather than after in Swift? [duplicate]
The new Observation features come with a withObservationTracking(_ apply:onChange:) that executes the onChange closure when any property accessed in the apply closure is modified. However, the ...
0
votes
0
answers
32
views
Sabre- Bargain Finder Max Rest API - Frequent flyer - PassengerDataType
I am working on implementing the Sabre Bargain Finder Max Rest API and am trying to create a shop RQ for one-way sector fare flights on QF with specific frequent flyer information.
`TravelPreferences....
0
votes
1
answer
130
views
How can you apply enable_if_t template restriction to entire class with separated implementation code, if possible?
Note: I prefer to always keep my implementations separate from my declarations, even for template code that must still go in the header. So I tend to have a .h file for the declarations, and at the ...
2
votes
2
answers
99
views
How does singleton instance implementation in C++ does not leak memory?
I'm studying about singletons in design patterns and I saw this singleton implementation and I tested it with fsanitize=address, because there is no delete keyword even though there is a new keyword ...
0
votes
0
answers
8
views
Does all the custom code added through the backend editors just get pushed into the database?
When you add custom css code through the "custom css" fields in the backend editors along with using plugins for adding custom scripts, do those lines of code just get saved to the database(...
0
votes
0
answers
22
views
The following classes could not be instantiated: - androidx.appcompat.widget.SearchView and Render problem in android studio
I have two red errors in my activity_main.xml class, one is "Failed to instantiate one or more classes" and the other is "Render problem". These problem arose after I had updated ...
0
votes
1
answer
53
views
Changing the comparator's parameter in the C++ multiset
I want to implement Bentley-Ottman algorithm to find all intersections between the line segments. I was using this tutorial:
https://www.hackerearth.com/practice/math/geometry/line-intersection-using-...
0
votes
0
answers
119
views
How to implement event-driven transitions for a finite state machine using the state machine framework in zephyr OS?
I have been trying to program a finite state machine using the zephyr RTOS. I chose this framework because of its extensive libraries and its finite state machine framework. However there is not that ...
1
vote
2
answers
194
views
The non-abstract class 'CustomCanvas' is missing implementations for these members
I am using flutter_smartlook for monitoring in my app. It was working fine, But after upgrading to the latest version 4.1.7. It started to cause an error while running. If I downgrade to 4.1.5. It was ...
0
votes
0
answers
16
views
Recommended way for custom notification format mechanism?
I'm trying to implement a notification service. I've written functions that contain business logics and return notifications to fan out.
Given that notifications might be sent to different ...
1
vote
0
answers
34
views
Problem in Binary Search Tree Implementation [duplicate]
I am pretty much new to the structs in C. I tried to implement a binary search tree but failed.
#include <stdio.h>
#include <stdlib.h>
struct tree{
int data;
struct tree *left;
...
0
votes
1
answer
29
views
Implement generic protocol which already has a default implementation?
I have the following code and it works:
import Foundation
import RealmSwift
protocol GetAllDBServiceProtocol {
associatedtype T: Object
func getall() -> [T]
}
extension ...
1
vote
1
answer
133
views
Using namespaces and separate compilation in c++
I am trying to use namespaces and separate compilation for the first time on a new class I created. However, I have come across an error which reads unresolved external symbol. I am unsure of what I ...
0
votes
1
answer
64
views
How to use different implementaions of an interface in C?
I want to implement a differentiable function in C. Essentially, it is a struct that has two funcion pointers. One to calculate a function value, another to calculate its differential. The struct is ...
0
votes
0
answers
40
views
I can't view the Classes implementation of Unity Project
I am working on a game using Unity and I need to write some scripts using C# and a Playfab API, and I need to view some classes' implementation to know how the objects work. I used to do that by ...
0
votes
1
answer
56
views
My linked list implementation in Rust won't insert a new element at the end of the list
I am implementing the linked list data structure in Rust to try and learn the language. I was following a tutorial, but I noticed that their implementation inserted an element only at the start of a ...
1
vote
1
answer
42
views
How type arguments are passed to functions in .NET runtime?
While it is an implementation detail, it is still interesting for me how .NET runtime passes type arguments to generic functions.
Consider following C# code:
using System;
void PrintT<T>() =>...
0
votes
0
answers
29
views
The most efficient way to verify an email after a user changes it in Django
I have a token generator function, I know all about how to set up an smtp relay service, I also implemented
My own email verification after signing up for the website but what I'm searching for is an ...
0
votes
0
answers
25
views
implementing https in MERN stack
I am trying to find sources on implementing https in MERN stack without any additonal technologies, just by changing some codes of the given stack like changing http from tutorials to https. I do not ...
0
votes
1
answer
56
views
abstract class, but all its methods have implementation
I start working with jackson library. It has this class:
public abstract class TypeReference<T> implements Comparable<com.fasterxml.jackson.core.type.TypeReference<T>> {
...
0
votes
1
answer
84
views
Calculating the reduced mass of N particles
I am trying to implement the following in Python: I have an array of masses, say, 3. I want to calculate the reduced mass the following way: I take the first element of the array as m1 and the second ...
0
votes
0
answers
23
views
Adobe Analytics Implementation
When user hits on renewal 06/24 link we are getting Activity map as pagename: current-policy, link:RENEWAL 06/24, region: stand-tab, I want to change link name to renewal which I did. but pagename is ...
0
votes
0
answers
75
views
Is it possible to implement IP based Ratelimiter using Resilience 4j in java?
I was surfing internet on implementing IP address based ratelimiter using Resilience-4j in java programming language. But, i didn't find any relevant articles or information on this.
Can somebody ...
0
votes
0
answers
124
views
Implementing Monitors in Producer/Consumer Problem in C
#include <pthread.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <time.h>
#define NUM_PROD 4
#define NUM_CONS 4
#define STORAGE_SPACE 3
int ...
0
votes
0
answers
72
views
How can I determine the functions yet-to-be-overridden in an abstract C++ class?
I'm attempting to implement an extension of an abstract class, as a concrete class; but can't figure out why it's continually compiling to abstract. I think I'm missing a pure virtual somewhere, but ...
0
votes
0
answers
11
views
How can I integrate YouTube payment details into my website using the YouTube API?
I developing a website which need to integrate payment detail of YouTube. how to I integrate YouTube all payment details history in my website. I need a code for this.
Any tutorials ?After the ...
0
votes
1
answer
54
views
If an abstract class is one which has no body (implementation) then how is it that it can also contain regular (implemented) methods? [duplicate]
So I came across this line while studying abstraction in Java:
ABSTRACT CLASSES can also contain implemented methods ( aka regular methods) whereas an INTERFACE contains ONLY abstract methods ( ...
0
votes
2
answers
51
views
C++ header file/implementation file isn't working [duplicate]
I'm trying to use headers in C++. I have calculation.h and calculation.cpp files. I called add and sub function with the necessary arguments which are declared in calculation.h file and implemented in ...
0
votes
1
answer
37
views
How to make macros that would implement different of args to structure baaed on given tuple?
I tried to make structure that contains tuple that has different size. Structure implements function get that would return tuple created as shown in example.
// Passed tuple with four elements into ...
0
votes
0
answers
21
views
Can't import some libraries in android
I implemented volley library (implementation 'com.android.volley:volley:1.1.1') but when I try to write StringRequest in MainActivity it doesn't import.
I had the same problem with Manager ...
1
vote
0
answers
26
views
In my unit of work, I can not use DbEntityValidationException class with Entity Framework Core 7
I have to regenerate:
public void Commit(bool validateSave = true)
{
try
{
if (!validateSave)
DbContext.Configuration.ValidateOnSaveEnabled = false;
Guid tranId = ...
0
votes
1
answer
48
views
Understanding memset c
I'm trying to understand how memset works
Here is my implementation :
void *ft_memset(void *s, int c, size_t n)
{
size_t i;
i = 0;
while (i < n)
{
*((char *)(s + i)) = c;
...
2
votes
1
answer
172
views
In Go sync.Map why this part of implementation is inconsistent or do I misunderstand something?
sync.Map is a concurrent-safe map implementation. the type of raw maps in sync.Map actually is map[any]*entry.
When we call Map.LoadOrStore and the entry exists, entry.tryLoadOrStore is invoked and ...
1
vote
1
answer
57
views
How to make List logic reusable for various content classes
I have a base abstract class with multiple translate functions of different types, which I want to be able to be overridden.
I want to create a generic translator for a List of any of these types. It ...
0
votes
0
answers
84
views
VJP and JVP in Tensorflow
It is possible to obtain the vector-Jacobian product in Tensorflow through the output_gradients keyword arg in the gradient function. You can set the value of output_gradients to the vector in the ...
2
votes
1
answer
170
views
Does Python have pointers like c++? About Python's low-level implementation
I'm wondering whether python have pointers to operate. Also, I've heard that every variable even like int and strings is an object. Can anyone tell me the low-level implementation of python's variable?...
2
votes
2
answers
58
views
C# Param as interface, how to use? [duplicate]
I have a class, which implements this simple interface:
public interface IPosition
{
int? Position { get; set; }
}
And I have a class to resort collection of classes by this Position property:
...
0
votes
0
answers
19
views
How are time durations calculated and presented in Web Browser Network Consoles?
Say that I am accessing a web site, and technically, different HTTP(S) GET requests are usually sent to different servers to download the resources (scripts, css, markup files, images, etc). By using ...
-1
votes
2
answers
124
views
Implement a non-binary tree class in C++
I've been trying to implement a tree class in c++ but I can't manage to make it work.
I have implemented it like this:
class Tree {
private:
int root;
vector<Tree> children;
...
0
votes
0
answers
233
views
How can i establish the communication between classes in Flet (Flutter)?
Please can someone help here? The code should automatically transfer changes made in the UserID class (i.e. pressing the Delete button) to the RegisterUser class. So I can program there changes ...
0
votes
0
answers
24
views
ESP32 Single Layer Perceptron - Normalization
I am new to Machine Learning. My understanding is that data normalization before training, reduces complexity and potential errors during gradient decent. I have developed an SLP training model with ...
2
votes
1
answer
467
views
How is Conditional Content created in SwiftUI?
I was trying to understand the inner workings of _ConditionalContent but I wasn't able to implement a resultBuilder for it. This is how some of the resultBuilders for _ConditionalContent are defined:
...