Questions tagged [box]

Avoid using this tag. It has multiple unrelated meanings and therefore could be confusing.

Avoid using this tag. It has multiple unrelated meanings and therefore could be confusing. The tag is currently used for all of the following topics:

  • geometry
  • GUI layout containers
  • boxed (heap allocated) objects & types
987 questions
4
votes
1 answer

How to use box drawing high ASCII characters in Visual Studio 15 console app?

I have a Win32 console app that plays the game of life in a CMD window. I would like to draw a box around the field using some of the standard box drawing characters such as: (186: ║), (187: ╗) (188: ╝), (200: ╚), (201: ╔), (205: ═) but I'm not…
JSz
  • 127
  • 1
  • 3
4
votes
1 answer

Nodejs: How to send a readable stream to the browser

If I query the box REST API and get back a readable stream, what is the best way to handle it? How do you send it to the browser?? (DISCLAIMER: I'm new to streams and buffers, so some of this code is pretty theoretical) Can you pass the readStream…
user1775718
  • 1,499
  • 2
  • 19
  • 32
4
votes
1 answer

How to create signature for my JWT?

According to JWT (specifically, using the Box.com api), you need to create your header and claims, base 64 url encode them, join them with a dot. You then need to take that and the secret key (a little confusion here, more on that in a second)…
user4593252
  • 3,496
  • 6
  • 29
  • 55
4
votes
3 answers

Using As-User in Box Request

I was trying to make Box Enterprise API work using As-User. I have a admin account which i used to try to retrieve the Contents in a sub account. I first used the admin account to retrieve the User ID of the sub account. And added the User ID as a…
Kai Wu Toh
  • 236
  • 2
  • 17
4
votes
1 answer

Box API token request enterprise configuration issue

I am making a call to https://api.box.com/oauth2/token to get a token for a user. I get a 400 with the following error: Cannot obtain token based on the enterprise configuration for your app I don't see this error message defined anywhere. Any…
srt32
  • 1,260
  • 1
  • 14
  • 27
4
votes
1 answer

how to Write a boolean parameter in multiPart/form-data in Http request

Content-Type: multipart/form-data; In MultiPart/form data I have something like "String header = '--'+boundary+'\nContent-Disposition: form-data; name="file"; filename="'+file.name+'";\nContent-Type: application/octet-stream';" --AaB03x I need to…
4
votes
1 answer

Box Java SDK - Unable to download/delete specific versions of a file

I am using the latest Box SDK for interacting with the Box API. I am able to successfully upload, download, delete and upload new version of a file. However, I am unable to to delete one file version out of many, as suggested on the SDK page…
Raj Saxena
  • 852
  • 10
  • 18
4
votes
2 answers

CSS Box with header

I need the css code to create the following box: This is my approach: .content-box-gray { margin: 0 0 0px; overflow: hidden; padding: 10px; height: 15px; font-size: 15px; border-radius: 5px; border: 1px solid gray; color: #3385FF; } Now i need to…
Egidi
  • 1,736
  • 8
  • 43
  • 69
3
votes
2 answers

MFC Focusing on the first field of my Input Box

I'm a beginner in MFC and I just want my input box selected by default, ready to input text with the keyboard when the input box pops up. Here is my C++ .cpp file of the class: testInputBox::testInputBox(CWnd* pParent /*=nullptr*/) :…
Charlycop
  • 69
  • 6
3
votes
1 answer

How to add a box around the legend in ggplot2?

Using the following script, how can I add a bottom legend box like the image bellow? start <- c('2002 Q1', '2008 Q4') end <- c('2003 Q3', '2011 Q2') dates <- as.yearqtr(seq(as.Date('2002-01-01'), as.Date('2019-06-01'), by='quarter')) cod <-…
Berto
  • 57
  • 5
3
votes
4 answers

Storing and using strings of varying length (ADA)

Im working on a problem where I need to make a set of boxes according to an input number where each and every box has a unique name. I've managed to create the boxes but I've only managed to insert one name on all of them as my names are overwritten…
3
votes
0 answers

Why is a lifetime bound required on a generic return type of a boxed trait object closure?

I'm having an issue with the compiler complaining that Box does not implement 'f + FnMut(A) if A isn't bound to the lifetime 't. I've reduced it to this minimal example, where FnMut(A) is replaced by Foo: trait Foo
Ten
  • 1,283
  • 9
  • 12
3
votes
2 answers

Box Python SDK 'NoneType' object is not callable

Banging my head against the wall here, first time using an sdk. I keep receiving a 'NoneType' object is not callable error when trying to authenticate with jwt via the Box Python SDK I've pretty much followed all the recommendations from the dev…
grimes88
  • 51
  • 2
  • 8
3
votes
2 answers

Can not Download 'digest' package in R

I am trying to create clustered box plots in R. Everything about my code seems on track, but when I try to run it I get the error warning "Error in loadNamespace(name) : there is no package called ‘digest’. When I try to download the package…
Jackie Albert
  • 33
  • 1
  • 3
3
votes
2 answers

Calling a C# method with argument of type IEnumerable in Powershell

I am using the Box.V2 SDK from PowerShell. I am calling the method documented here: https://github.com/box/box-windows-sdk-v2/blob/master/Box.V2/Managers/BoxUsersManager.cs This is my code: # Load…
Johannes Maria Frank
  • 2,747
  • 1
  • 29
  • 38
1 2
3
65 66