Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
0 answers
61 views

i'm translating my opencv c++ routines to emgucv c# platform.i've done all but one.here it is(c++ side): Mat equalizeHistogram(Mat img,int threshold){ Mat gray,equalized; cvtColor(img,gray,...
0 votes
1 answer
463 views

Context I've been trying to create a buoyancy script that samples the position of a point, tests if it's under a certain level (the "water level"), and adds a force on that position based on ...
0 votes
1 answer
291 views

I have recently started testing with the Dafny to Python compiler dafny build --target:py A.dfy offered in its latest version. I'm not sure if it "works well", because it doesn't generate ...
0 votes
1 answer
439 views

I am trying to use the Dafny-to-Python compiler that is suggested in Dafny's reference (25.7.7): http://dafny.org/dafny/DafnyRef/DafnyRef.html#2577-python However, I cannot run the first step for it ...
1 vote
1 answer
373 views

In python you can just have file1.py with a class called "class1" like this: class class1: def __init_(self, var1, var2): self.var3 = var1 self.var4 = var2 ...
3 votes
1 answer
127 views

Okay so...I'm in the process of creating a python client for a coding game I play. This game is originally created in javascript and employs a json object of game data found at https://adventure.land/...
0 votes
2 answers
456 views

I am trying to convert this code to lisp code. But don't know how to do it is it right? for (j=i-1; j>=0 && list[j]>key; j--) { list[j+1] = list[j]; } (loop (set j (- i 1)) (setq (...
user avatar
0 votes
1 answer
747 views

Is there a tool out there that can automatically convert Java to Solidity? And can we convert Java file to Solidity? I found that there exists Jthereum that is in its beta version now. Is there a ...
0 votes
0 answers
118 views

I am trying to calculate the euclidean distance in a matrix in C, I saw a similar post and tried it on my own matrix but as it is different I do not know how to make it work. This is my code: #include ...
-2 votes
1 answer
7k views

what i need to accomplish is to reach a way in which i can convert the basics on any python code into php functions and conditions and so on def BitmapHoles(strArr): bitmap = {} for i in ...
-2 votes
1 answer
690 views

I have a task to do code-translation of some parts of the application that is written in VB6 into Java. Now, I have two problems, first is that I have never done such a thing, so I'm inexperienced, ...
1 vote
1 answer
1k views

I have found an implementation of the said layer from this paper, "Self-Attention Encoding and Pooling for Speaker Recognition", available at here via Pytorch. However, due to CUDA ...
1 vote
1 answer
151 views

I'm trying to write a generator function (or achieve the equivalent) which takes an iterable xs in Python and counts the "runs". (This is a problem in Thinking Functionally with Haskell by ...
1 vote
0 answers
140 views

I have a fragment of code from the Get Programming with Haskell book which looks as follows: listToSTUArray :: [Int] -> ST s (STUArray s Int Int) listToSTUArray vals = do let end = length vals ...
2 votes
1 answer
840 views

I'm building an R package in which I would like to use dtplyr to perform various bits of data manipulation. My issue is that dtplyr seems to only work if I import the whole of data.table (i.e. using ...

15 30 50 per page
1
2 3 4 5
...
26

AltStyle によって変換されたページ (->オリジナル) /