Questions tagged [data-representation]
177 questions
-1
votes
1 answer
Common format to represent a data mapping allowing duplicated column/key names
Context:
I actually have an extracting task in PHP which executes a SQL query and generates a CSV file. The CSV columns names are based on the query column names.
The CSV must contain a lot of columns and some column names appear multiple times (2…

AymDev
- 6,626
- 4
- 29
- 52
-1
votes
2 answers
How to find the kth bit of a number in c?
So the first solution that I found for this said to do:
(n & ( 1 << k )) >> k
But I don't understand how this will work because if I have the number 11100, and I want the 2nd bit, this number & (1 << 2) will give me 100. Now, if I do this number >>…

madmax007
- 91
- 2
- 10
-1
votes
1 answer
Dynamic thermal image using CSS?
I have an illustration made by an illustrator.
This is a static thermal image with 6 particular points that I would like to animate (according to the temperature obviously).
For example, I would update a JSON file and according to this file, the…

ZazOufUmI
- 3,212
- 6
- 37
- 67
-1
votes
1 answer
How to organize information about dishes in a SQL database?
I'm going to create a SQL database to store the information about cookery. There going to be dishes, ingredients, etc.
The problem is how to represent the information about a dish in order to include all of the ingredients related to the dish.
For…

Konstantin Kostanzhoglo
- 224
- 1
- 8
-1
votes
1 answer
Apply scale_colour_gradient in multiple histogram
For a set of 8 genes I have performance and coverage data for three different methods, I would like to represent at the same time both measurements. I was thinking about plotting performance in y-axis and coverage as scale_colour_gradient, something…

PGreen
- 3,239
- 3
- 24
- 29
-1
votes
1 answer
Binary representation of the character value
We want to create a table in such a way that each character value is represented by a 6 bit binary value if i enter a character it should represent in binary.Can any one help me out in finding logic in c program.
000001 A
000010 B
000100 C
if i…

Jeevan R
- 1
- 2
-1
votes
1 answer
Which algorithm+representation should I use for finding minimum path distance in a huge sparse undirected graph?
I need to find the minimum distance between two nodes in a undirected graph, here are some details
The graph is undirected and huge(no of nodes is in order of 100,000)
The graph is sparse, no of edges is less than no of nodes
I am not interested in…

Registered User
- 2,239
- 3
- 32
- 58
-1
votes
1 answer
Storing and walking a tree (with lists as leaves) in bash
I'm wondering about a way to categorize data based on filename with uniform format. With filenames like 1_dog_yorkshire.sh and 1_cat_persian.sh which can be represented with simple regex:
[0-9]+_[a-z]+_[a-z]+.sh
I want to make tree-like structure…

zuberuber
- 3,851
- 2
- 16
- 20
-1
votes
1 answer
How to present/organize repetitive data contained in cells in excel?
Would there be a better way to present/organize repetitive data contained in cells in excel? I've provided a set of sample data below (I can't show my actual records for confidentiality reasons) just so that you guys could visualize the…

Linda Chua
- 37
- 1
- 3
- 7
-2
votes
1 answer
Sort an array alphabetically and return a number representation for every character
I want to try to make my own function.
I want to sort an array of characters in increasing order and return the occurrence count of each character as a compact number.
Example:
function numberRepresentation(arr) {
// arr is an array
//…

314
- 1
- 1
-4
votes
1 answer
Can I memcpy std::weak_ptr?
First off, what is the typical implementation of a std::weak_ptr? Particularly is std::weak_ptr just a pointer to the control block of a std::shared_ptr?
If all the std::shared_ptr references are gone is the internal control block deleted? If so,…

Game_Overture
- 1,578
- 3
- 22
- 34
-5
votes
2 answers
How to convert decimal to binary?
How to convert the decimal number "18.25" to binary? I've been confused by the decimal points .25.

yathavan
- 183
- 1
- 14