295 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
51
views
can we change the native semantics of landmark elements or any element of html5 using aria
can we change the native semantics of landmark elements or any element of html5 using aria, is it semantically correct and conforming to do so ?
Suppose I want to use the dialog element as a ...
0
votes
2
answers
600
views
How to print a list of numpy.float32 values?
I run some simulations whose result is a dict like this:
results = {
'this': 5,
'that': 6,
'those': [2.34, 5.67]
}
I save it in a human-readable format using code like this:
s = ''
for ...
0
votes
1
answer
59
views
Representation exposure on an int method
This function exposes the value of worldSize, so it is a form of representation exposure:
/**
* Returns the size of the simulation world.
* Used for documentation ONLY
* Should not have ...
0
votes
1
answer
49
views
Represent a full, but not complete, binary tree with an array structure
I have been reading about binary heaps and I was wondering if there was a similar representation that could be used to represent a non-complete binary tree, if that binary tree happened to also be ...
1
vote
1
answer
58
views
sed to find and transform binary number representation
I have a file with binary numbers that I would like to alter inline with sed -i.
The file has lines like this:
00018342 0000 dc.b 11010101b
So I would like to have it represented this ...
-1
votes
1
answer
194
views
Plot to represent coverage of a sequence
Does anyone have an idea of generating a plot that would look something like this:
Basically, I would have sequences, say T1 and T2, which need to be aligned to the "main" sequence. Also, ...
0
votes
0
answers
161
views
Swift: Trying to dismiss the presentation controller while transitioning already
I have 3 controllers like that: A -> B -> C
A: Present to B
B: Present to C
From C, I used the code below to transition to A
window.rootViewController = nil
window.rootViewController = vc
let ...
1
vote
1
answer
174
views
How can I see the contents of a NimNode?
I'm using the nim programming language and am doing some metaprogramming.
I want to write a DSL of some sorts that enables generating procs. For that I want to pass some nim-code into a macro (e.g. a ...
0
votes
1
answer
146
views
Evolutionary algorithm: permutation problem with restrictions on allowed permutations
I have a set of same-sized n(=25) matrices, m_1, m_2, ..., m_n, where each matrix falls into one of 10 classes. For each matrix, I have to find a "pair matrix" from the set so that the sum ...
1
vote
2
answers
279
views
PowerShell object representation
There are different ways to represent (display) an object in PowerShell but when it comes to complex objects it is either very verbose or quiet useless:
$Object = @{ 'a' = 1; 'b' = 2 }
Just ...
0
votes
1
answer
82
views
Meaning of string representation of binary data
Recently I faced with such string representation of binary-data: \xfa\xd4\xe4d\x00\x00\x00\x00
It is string representation of little-endian UNIX timestamp (1692718330)
I understand that, for example, \...
1
vote
2
answers
1k
views
How can I convert a bitstring to the binary form in Julia
I am using bitstring to perform an xor operation on the ith bit of a string:
string = bitstring(string ⊻ 1 <<i)
However the result will be a string, so I cannot continue with other i.
So I want ...
0
votes
1
answer
919
views
What decimal value does the 8-bit binary number 11011111 have if it is on a computer using signed-magnitude representation?
I am confused on how to present this in decimal value
Would it be just the negative value of 223 or would it be -125?
0
votes
1
answer
30
views
How do I create a representation when my constructor has added kwargs?
How do I create a representation when my constructor has added kwargs?
class Thing:
def __init__(self, a, b, **kwargs):
self.a = a
self.b = b
self.__dict__.update(kwargs)
#...
-2
votes
1
answer
46
views
Can autoencoders be used to extract useful (not truthful) representations?
I'm looking for a neural network model that can extract useful information from an image. Here "useful" is arbitrarily defined by the user based on some specific task the autoencoder needs ...