Questions tagged [implementation]
Deals with various issues of implementation.
2,115
questions
1
vote
1
answer
35
views
Make a prompt look good while still letting JavaScript pause
So I want to make a custom prompt/alert/confirm box, but I have it so that many of those happen in sequence. In a normal prompt, this wouldn't be an issue because the JavaScript pauses and waits for ...
0
votes
0
answers
15
views
What exactly goes into implementing a file format?
While fully aware of the possibility that the main reason for me being unable to find a clear, coherent answer to this question somewhere on the internet is that the question itself may be ...
0
votes
1
answer
11
views
How to implement angular signature with fabricjs in angular 11?
I have tried to use paperjs and angular-signature library but all to no avail, it seems I couldn't found my way around it.
But I later found another better solution. I thought posting the answer under ...
2
votes
1
answer
39
views
About alias implementation in elastic search
I would like to ask about the methods of alias in elastic search, how are addAlias and removeAlias implemented? How do they avoid problems with atomicity among other operations? For example, how to ...
-3
votes
1
answer
68
views
Rewrite given algorithm to use heap memory [closed]
The exercise states:
Write Question #2 using variables that are only defined on the heap
Question 2:
#include <stdio.h>
int main() {
int i, s[4], t[4], u=0;
for (i=0; i<=4; i++)
{
...
0
votes
0
answers
23
views
Interface and Implementations with Separate Templates
I have a Java interface with several implementing classes. Each implementation class needs its own associated (sub)template. At runtime I add a collection (List) of objects implementing my interface ...
0
votes
0
answers
17
views
Finding it difficult to implement comet chat
Please can someone tell me what i'm doing wrong. I have been trying to implement comet chat into my application. I copied the code just the way it was on their website and did as i was instructed but ...
1
vote
1
answer
36
views
Zendesk migration from Web Widget (Classic) to messaging web widget sdk
The website is using the new SDK for Zendesk and I need to update the code, but the documentation is not really helpful.
I'm opening the widget like this:
zE('webWidget', 'reset');
zE('webWidget', '...
0
votes
1
answer
34
views
Does more processors in Apache Nifi lead to lower throughput?
In Apache Nifi, there are connections between each processors, which acts like queue of FlowFiles, and Nifi by default persists data content of FlowFile on disk. Does it mean each of such connection ...
-2
votes
0
answers
12
views
Question about object-oriented programming. What is the fundamental difference between the two options for using the interface?
Question about object-oriented programming. What is the fundamental difference between the two options for using the interface:
Many interfaces, one implementation;
Many implementations, one ...
0
votes
0
answers
11
views
API usage (local API.jar) how do I use a static API
Title says it all. I was given an API.jar and I need to use it for my Project.
How do I include the API in my html/css/javascript Project? (no PHP allowed for some reason)
Thanks in advance!
1
vote
0
answers
37
views
C++ Undefined, Referenced Variable [closed]
Issue:
I have a common question that I'm trying to solve, but I cannot figure out why the solution I have isn't working. I'm receiving a LNK2001 error message for not having numOfShapes properly ...
1
vote
0
answers
54
views
How to implement and run Leetcode Problems (LinkedList, Trees) locally from scratch in Python3?
I want to implement Leetcode problems on my local machine as I am a beginner and I want to master programming in python. I think implementing the problems locally helps me understand the problem in ...
0
votes
1
answer
34
views
multiplication of two binary numbers
I need to do the function that multiplicates two binary numbers represented by a list of booleans.
Here what I wrote :
Fixpoint brmul_r (x y res: list bool): list bool :=
match x,y,res with
|x,y,...
0
votes
1
answer
43
views
How to get Tailwind CSS to config file to connect to my HTML?
I'm trying to use custom colors in the my html file but by tailwind.config.js does not seem to be connecting. I have the content configured to './*.html' so it'll look for everything in the root. My ...
1
vote
1
answer
33
views
Program efficiency: Algorithm vs Implementation
I was watching a lecture about program efficiency where the professor said:
"If I measure running time, it will certainly vary as the algorithm change. (...) But one of the problems is that it ...
0
votes
1
answer
30
views
Is there a way to see Scipy.Special.Gamma() function implementation in the source?
I've tried to write functions to calculate special functions (e.g. exponential, gamma, erf, etc), but to do the sum or product operations, I used while-loop with 10k turns. This is very time-...
0
votes
0
answers
44
views
std::any bad cast whenever a function inside a header is implemented in a cpp file returns it
This is my main.cpp
#include <iostream>
#include <unordered_map>
#include <string>
#include "myclass.h"
int main(int argc, const char * argv[]) {
any a = myclass::...
0
votes
0
answers
12
views
I was expecting to see my application #fullstate in console but I got this error. #Failed to load resource: net::ERR_FILE_NOT_FOUND
When I run my terminal with npm start, it's not working and give me this error.
I tried to install redux to my app and see the full state of my application.
0
votes
0
answers
10
views
How do I find and implement the most efficient pathway from a list of stations in graph theory?
Really need help here. I am building an app in react-native that shows which bus to catch after choosing starting station and ending station.
I have a list of bus data with its routes(stations). In ...
1
vote
1
answer
61
views
Different ways of implementing a coroutine
I can currently think of two ways of implementing a coroutine:
Whenever a coroutine is started, instead of storing local variables on stack, get a piece of memory from heap and use it to store local ...
1
vote
1
answer
68
views
Passing two references to the same object in strtoul
The following code runs well under gcc 11.2.1:
// test.c
#include<stdio.h>
#include<stdlib.h>
int main(int argc, char **argv){
char *msg;
unsigned int val;
msg = "1024 ...
0
votes
1
answer
26
views
Is there any way to use ADTrees on python with PYWEKA?
Hi guys I have this question because im trying to use ADTrees of weka on python using pyweka like this:
cls = Classifier(classname="weka.classifiers.trees.adtree", options=["-B", &...
1
vote
1
answer
43
views
question about C++ single linked list implementation
I am studying the following code but get confused on the building of the single linked list in function read_file(), I have marked the question at the function next to the code below:
here is the full ...
0
votes
0
answers
92
views
React epub using only Readium.js
In the past, I used Epub.js for my project. However, the whole epub content must be available to load the book. On researching, I found a cool library called Readium.js. Don't know how to integrate it ...
0
votes
0
answers
20
views
How to set the exact type of kotlin property which has definite implementations?
I am trying to get a list of my enums.
val weatherTypes: List<Array<out Enum<*>>> = listOf(Atmosphere.values(), Clear.values(), ...)
All my enums are implementing StringOperation ...
0
votes
0
answers
15
views
Unit Testing and Integration Testing - how would I apply it to my IT project?
The project is about creating a website for careers guidance (I'm using WordPress to create it). I understand Unit tests a bit - e.g. you add a search bar to the site, then test it to see if it ...
0
votes
1
answer
42
views
How to make payment with iOS application with xamarin?
I am creating a demo project with xamarin and in that, I want to list down payment methods to pay. In that list, I want to add google pay. So that users can click on the google pay button and make ...
0
votes
0
answers
12
views
Change default style of automatic implementation of interface on Visual Studio from lambda to body expression
I would like to know if there is some way to force the default style of automatic implementation of interface on Visual Studio from lambda to body expression for all members. As we can see in the ...
1
vote
1
answer
118
views
How to integrate google pay in xamarin for application for iOS?
I am creating a demo project in Xamarin and in that, I want to use google pay(gPay) as a payment option. I have checked many sites/videos on the internet and it is providing solutions for android ...
1
vote
1
answer
71
views
Intersecting dfferent interval types with Boost ICL
I would like to check whether a boost::icl::right_open_interval<double> i1 and a boost::icl::closed_interval<double> i2 have an intersection. Unfortunately, the boost::icl::intersects(i1, ...
2
votes
1
answer
101
views
python implementation of numpy.lib.stride_tricks.as_strided
I'm trying to translate the as_strided function of NumPy to a function in Python when I translate ahead the number of strides to the number of variables according to the type of the variable (for ...
0
votes
1
answer
78
views
implement a list with a static method javascript
I must reimplement a list and the method forEach with the following instructions:
// Do not construct any array literal ([]) in your solution.
// Do not construct any arrays through new Array in your ...
0
votes
0
answers
157
views
Is there a way to implement a LightGBM model into R without access to the LightGBM package?
For my use case I do not have the luxury of having access to the R version of the LightGBM package. I'd like to implement a trained model into a platform that can use R but does NOT have access to the ...
0
votes
0
answers
44
views
Implementing the Iterable and Iterator interfaces for TreeMap in Java
I have an assignment where I have a TreeMap<String,Node> and I have to implement the Iterable and Iterator interfaces to support a for-loop printing all the String-keys of the map. Java and ...
-1
votes
1
answer
70
views
Where are the methods of the Iterator Interface actually implemented in the Collections Framework?
Following the hierarchy of the Collections Framework in Java, I struggle to understand where these 2 methods of the Iterator Interface are being implemented.
boolean hasNext();
E next();
The other 2 ...
0
votes
2
answers
70
views
How does one implement an Iterator for a an Object that has generic types?
So I have an object called DetailedResponse<T>. Now I want to use this for an API where I can pass some data into it. Let's say this is the implementation for DetailedResponse
#[derive(serde::...
1
vote
1
answer
76
views
Binary tree in Java implementation
My task is to implement a Binary Tree in Java and do some operations on the tree e.g adding elements or showing the minimum or maximum element of the tree. I am having trouble solving this so if ...
0
votes
0
answers
96
views
How to parse the resource section of a PE executable using C/C++?
I am trying to understand how PE files work and I'm developing a small application in C/C++ as well as Python to parse a *.exe file and get the version information only from the file.
In essence I'm ...
1
vote
0
answers
29
views
finding unknown 4th point in arbitrary space programmatically
Problem:
I know the x and y of three arbitrary points on a 2d plane.
I know the vague distance from each point to the unknown, though I don't know the x y components.
I want to find the position of ...
0
votes
0
answers
31
views
Hoshen-Kopelman Algorithm MatLab Implementation
First of all, I'm not 100% sure if Matlab is allowed on stack overflow; if I'm violating the rules tell me and I'll delete the question.
I'm currently studying percolation on a 2D surface (using a ...
1
vote
1
answer
168
views
Is there a way to see decompiled C# code in VS Code?
Is there a way to see decompiled C# code in VS Code?
Whenever I go to the decompiled implementation, I see only interfaces of methods, but not the implementation. I heard that some people claim that ...
0
votes
0
answers
32
views
How can I open an outside C# type description in VS Code?
How can I open an outside C# type description in VS Code?
Usually I would do what I want to do right now as follows:
Let us take the System.Collections.Generic.IEnumerable as an example. Whenever I ...
1
vote
0
answers
45
views
Should you split up implementation of member function templates and normal member functions?
If you have a class that contains both member function templates and normal member functions like so:
struct Foo
{
void normal();
template<typename T>
void templated();
};
With code ...
1
vote
2
answers
74
views
SML finding the middle of a list
I am new to SML and am trying to create a function middle(lst) of type 'a list -> 'a which returns the middle element of a given
list. I want to be able to do this without any pre-implemented ...
0
votes
0
answers
214
views
Latent Dirichlet Allocation (LDA) with Gibbs Sampling in Python
I'm trying to re-implement LDA with Gibbs sampling in Python 3.8, but my code gives wrong result. I'd highly appreciate if you are kind enough to help me debug the Gibbs sampling procedure!
The code I ...
2
votes
1
answer
69
views
In LevelDB, are all the keys loaded in memory?
So, I have been reading about the implementation of LevelDB and other key-value stores which use the Log Structured Merge Tree in their implementation. I had a couple of questions on this:
Are all ...
0
votes
0
answers
35
views
Is my algo. correct for solving minimum number of jumps in an array question?
Came across this question of minimum number of jumps to reach end of array :
https://practice.geeksforgeeks.org/problems/minimum-number-of-jumps-1587115620/1#
I designed a algo in O(n) here is the ...
0
votes
0
answers
19
views
An approximation algorithm for the general routing problem
I have been researching about general routing problems and came across a type TSP problem as: "Find a minimum cost cycle in a graph G = (V, E) which visits vertices in a required subset V′ ⊂V ...
0
votes
0
answers
36
views
implementation other module method
I'm developing multi-module project, and my problem is how to reference method in other module.
my project structure is
module1
module2
common
db
gradle file is
project(':module1') {
dependencies {
...