Questions tagged [padding]

Extra space inserted into memory structures to achieve address alignment -or- extra space between the frame and the content of an HTML element -or- extra spaces or zeros when printing out values using formatting print commands like, in C, the printf*-family of functions.

Padding in memory structures is the insertion of additional bytes of unused space to make the internal fields of a structure align to desirable address boundaries.

Padding in HTML layout is extra space inserted between the content of the element and its border or frame. Padding is space added to the interior of the element; margin is space around the exterior of the element.

In arrays, padding is addition of extra 0's (zeros) in one or more dimension of the array in a symmetric, circular or replicating manner. This is important for signal and image processing, in the context of and convolution.

3939 questions
1
vote
2 answers

Wrong padding only in Firefox

I have this annoying problem with padding. I am building a menu, here is the html code for it (I have taken out all the other tabs and leave only one for better readability):
1
vote
1 answer

Padding sequence with numpy and combining a feature array with the number of sequence array

I have a number of sequences stored in an 2D-array [[first_seq,first_seq],[first_seq,first_seq],[sec_seq,sec_seq]],... Each vector-sequence varies in length.. some are 55 rows long others are 68 rows long. The sequence 2D-array(features) is shaped…
Felix
  • 313
  • 1
  • 3
  • 22
1
vote
1 answer

Android GUI looks different when using margin and padding

I'm a beginner on Android, but my question require a little bit knowledge in UI and not in programming. I have an xml code, i have their some views but for this question only two components are relevant. The component is a ScrollView "father" that…
DorVak
  • 297
  • 2
  • 9
1
vote
0 answers

Remove Android tab toolbar menu top spacing/padding

Thanks in advance guys. I've searched and experimented with this simple issue for ages with no luck (see pic below) -I've got a tabbed menu bar that opens initially with a lot of padding/spacing at the top. -I want to remove this and lock the tab…
1
vote
2 answers

Div with scroll not respecting top padding

Basically, i had a list that scrolls independently, but the list overflows the top padding when i scroll down, vanishing not on the padding, but in the end of the div, causing a wrong looking effect on my app. Edit with react code
1
vote
2 answers

Use of margin and padding variables in Sass in custom class Bootstap 4

I was wondering how to get the spacer variables generic with the use of Bootsrap in a custom class. I have a class .box and want to apply the class pl-3 of bootstrap 4. I don't want to add the class inline in HTML but want to style it in sass. I…
amernov
  • 626
  • 1
  • 8
  • 18
1
vote
1 answer

retrieving encrypted data actual size

In .NET framework, I'm trying to encrypt some binary data (using RijndaelManaged), for decrypting I used the following sample code (C++/.NET): RijndaelManaged^ rjdAlg= gcnew RijndaelManaged; rjdAlg->IV= IV; rjdAlg->Key=this->key; ICryptoTransform^…
Hakim83
  • 59
  • 4
1
vote
0 answers

Incorrect pad error in Pycryptodome. Encrypted in CryptoJS

I use the following to encrypt in Javascript function encrypt(input, key){ console.log("Input: " + input); var secret_key = CryptoJS.SHA256(key); var iv = CryptoJS.lib.WordArray.random(16); console.log("IV: "+ iv); var body =…
Tarun Maganti
  • 3,076
  • 2
  • 35
  • 64
1
vote
2 answers

margin-bottom not working?

I am having trouble for some reason with getting the bottom of my page to have some padding. I have a content box that goes to the end of the page and hits the bottom and doesn't look the greatest. I want to give some space from the bottom of the…
Quintin
  • 311
  • 1
  • 5
  • 12
1
vote
0 answers

How do I pad a tf.data.Dataset that contains non-uniform tf.RaggedTensors?

There is a tutorial for creating a Transformer Chatbot that takes several lists of encoded-by-word sentences with different lengths, and first pads that length difference with tf.keras.preprocessing, then creates the dataset from such encoded…
David
  • 11
  • 2
1
vote
2 answers

Are the available padding schemes compliant to the BSI guideline

I am currently evaluating the cryptographic capabilities of the ESAPI security library for Java. My goal is to verify that the ESAPI supports an symmetric encryption method that is suggested by this guideline written by the BSI (link goes to a…
Demento
  • 4,039
  • 3
  • 26
  • 36
1
vote
1 answer

Setting marginBottom via Javascript does not work as expected

i try to set a margin bottom to the body element, but it wont work as expected... document.addEventListener('DOMContentLoaded', (event) => { if(window.outerWidth > 768) { let footerHeight = document.querySelector('footer').offsetHeight; …
Yannik
  • 56
  • 6
1
vote
1 answer

Zero-padding a string to a finite length

I would like to add a zero padding to a string to make the string a specific final length. In my specific case I want the string to be of length 6 at the end and be padded with 0's before. int val = 5; int val2 = 12; char* padded_val =…
Max Michel
  • 575
  • 5
  • 20
1
vote
1 answer

Parallax scrolling effect works but my image won't pin to both sides and to top of page

I started working with HTML and CSS, I’m trying to make a project with parallax scrolling. I took the existing code from this for the parallax effect here. The parallax effect works, but the image has a barrier between it and the end of the…
user11065207
1
vote
0 answers

how to do padding and windowing function to a non-zero averaged signal which has a zero frequency spectrum

I have a specific question regarding zero padding and windowing function. How can I use the zero padding and windowing function to a non-zero averaged signal with zero frequency spectrum in Matlab? I have a data of my non-zero averaged signal . I…