Questions tagged [buckets]

96 questions
2
votes
0 answers

SQL: Stacking columns by bucketed metrics

So I'm using SQL with a charting tool, and I can't get buckets of my metrics to reflect as proportions of a total in a y-axis (as stacked columns) with the metrics in the x-axis. Example: Metrics (x-axis values) should be "Job Count", "Visits",…
BrieJ
  • 21
  • 1
2
votes
1 answer

Limiting Bucket Search using QueryBuilder field type in Sitecore

In our Sitecore application, we have a template called NewsArticleSlide which renders a news article on a carousel slide. This template has a field called "News article" which contains the ID of the news article being rendered. The type of this…
2
votes
1 answer

Cant perform simple write to Google Cloud Bucket

I cannot do a simple write operation on my Google Cloud Bucket. I have followed the docs to the detail. This is what I have: A default bucket, A php script, all api needed enabled. Here is my script
superuserdo
  • 1,637
  • 3
  • 21
  • 33
2
votes
1 answer

Distributing stones into buckets (not trivial) / Integer Bin Packing Upper bound

Suppose you have k stones and m stone types You have f1 stones from the first type, f2 from the second and so on. (i.e. sum(f_i) = k). In addition, we are given a positive integer r. What is the minimal number of buckets needed, such that we could…
2
votes
3 answers

GetHashCode and Buckets

I am trying to get a better understanding how the internas of hashed sets, e.g. HashSet do work and why they are performant. I discovered following article, implementing a simple example with a bucket list…
sl3dg3
  • 5,026
  • 12
  • 50
  • 74
2
votes
1 answer

Displaying sitecore templates when hiding Item Bucket Content

One of the main purposes of Item Buckets is to contain a large repository of content items, without dealing with the normal structure in the content tree. With this said, displaying these Hidden Items would be unnecessary because they are…
Ben Sewards
  • 2,571
  • 2
  • 25
  • 43
2
votes
2 answers

Deleting EMPTY S3 BUCKET

I am trying to delete an EMPTY S3 Bucket. I have deleted everything, and if I go inside of the bucket in S3 browser it says: "The bucket 'blankety.blank.blank' is empty" YET, when I try to delete the bucket it gives the error: "The bucket you…
1
vote
1 answer

what hashing should i use to generate random values from a set of strings

I have an array of fingerprints in hash buckets. I would like to insert into the bucket and search on it with out going from entry 0 to entry n. What i want to do is, when i add entries into the buckets i use the fingerprint as an input to calculate…
John
  • 794
  • 2
  • 18
  • 34
1
vote
2 answers

MYSQL Bucketing issue with my query

I'm attempting to bucket rates in a user defineable range. The input from the user is a simple set of instructions about the buckets, but I can't get the SQL right. Here's what I have SELECT r.*,CASE WHEN rate_amt < 0.25 THEN (rate_amt + 0.5) as…
Jason
  • 15,064
  • 15
  • 65
  • 105
1
vote
1 answer

Connecting aspera on cloud with S3bucket

I used this policy on AWS to try connecting AoC with an S3 bucket: { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::880559705280:role/atp-aws-us-east-1-ts-atc-node" …
Said
  • 11
  • 1
1
vote
2 answers

How to find number of distinct phones per customer and put the customers(counts) in different buckets as per the counts?

Below is the table where I have customer_id and different phones they have. customer_id phone_number 101 123456789 102 234567891 103 345678912 102 456789123 101 567891234 104 …
Ishaj
  • 15
  • 3
1
vote
0 answers

Elasticsearch get top 2 per group(bucket), then sort all the elements among all the groups

my question is like this: I have sales data from different cities: SHOP NAME | SALES AMOUNT | CITY shop A, 5000 New York shop B, 4000 New York shop C, 3000 New York shop D, 1800 Boston shop E, …
Py Z
  • 11
  • 2
1
vote
0 answers

Algorithm strategy to prevent values from bouncing between 2 values when on edge of two 'buckets'

I'm tracking various colored balls in OpenCV (Python) in real-time. The tracking is very stable. i.e. when stationary the values do not change with more then 1 / 2 pixels for the center of the circle. However i'm running into what must surely be a…
hobbit_be
  • 196
  • 1
  • 5
1
vote
2 answers

Algorithm to calculate weighted distribution ratio

Here's the problem I'm facing. I have some number of items. I then have a varying number of buckets with a weight (between 0 and 1) attached to them. I'm trying to calculate the percentage of the items that should go in each bucket. For example,…
msbware
  • 23
  • 3
1
vote
1 answer

In tensorflow seq2seq framework, How to train data of different bucket-size in one batch

I applied queued reader to tensorflow seq2seq to avoid reading the whole dataset into memory and process them all in advance. I didn't bucket the dataset into different bucket files first to ensure one bucket-size per batch for that will also take a…
Nick
  • 31
  • 4