pack Questions

2

Solved

Git stores individual objects in .git/objects/ab/cdefgh... where ab is the first byte of the SHA1 digest. However, pack files don't follow the same naming policy, and I can find no documentation o...
Disembark asked 29/3, 2011 at 8:47

1

Solved

I cant understand when should I use pack and unpack functions in struct library in python? I also cant understand how to use them? After reading about it, what I understood is that they are used to...
Defroster asked 8/2, 2016 at 13:53

3

Solved

I have JFrame with GridBagLayout. User can resize this window. Also, he can perform some editing actions that change window size. I use pack(); repaint(); now after such actions. But, actually I sh...
Showker asked 26/6, 2011 at 17:50

2

Solved

I would like to know how I can reverse what this unpack function bellow performed. I think the pack function is able to reverse what unpack performed, however I'm not sure. First I have a simple s...
Emulate asked 21/8, 2013 at 12:7

3

Solved

Are there any modules that provide pack / unpack functionality for nodejs similar to python's struct module? I haven't found any specifically for node, and I'd assume that javascript implemen...
Calvillo asked 9/4, 2011 at 12:46

4

Solved

Even after reading the standard documentation, I still can't understand how Ruby's Array#pack and String#unpack exactly work. Here is the example that's causing me the most trouble: irb(main):001:...
Wildfire asked 5/12, 2012 at 17:57

2

Solved

I have a file hashed to a standard md5 Hash Correction: OpenSSL Hashes are HEXDECIMAL representations. MD5 Hash: 57ED2E029BF9CA39383D2A671EF4FB50 I have a program that requires a byte encoding ...
Atonality asked 9/12, 2014 at 16:19

2

I've been having a problem with including Shoes in a Shoes app for Windows. The packager tool works perfectly when I don't ask to include Shoes in the app: I get an .exe that, if launched on a Shoe...
Hammy asked 8/3, 2013 at 14:51

1

Solved

You create an initial root window and then multiple widgets (such as Labels, Buttons, Events). You have to pack each one of them and can do it in several ways that I'm aware of. Button(root, text...
Monophyletic asked 15/8, 2014 at 14:58

4

Is there any function equivalent to Python's struct.pack in Java that allows me to pack and unpack values like this? pump_on = struct.pack("IIHHI", 0, 0, 21, 96, 512)
Epaminondas asked 9/7, 2010 at 4:44

3

Solved

I'm trying to convert a 64-bit float to a 64-bit integer (and back) in php. I need to preserve the bytes, so I'm using the pack and unpack functions. The functionality I'm looking for is basically ...
Matte asked 1/6, 2014 at 17:33

1

Solved

I've just downloaded the Action Bar Icon Pack from https://developer.android.com/design/downloads/index.html, and I've not been able to figure out a way to "install" these icons in Android Studio.....
Eloisaeloise asked 2/5, 2014 at 13:36

4

Solved

I have just tried using struct.pack in Python for the first time, and I don't understand its behaviour when I am mixing types When I am trying to pack a single char and nothing else, it works as e...
Aerospace asked 24/1, 2014 at 12:39

1

Solved

I got this code working, which converts from hex to base64, and vice versa. I got to_base64 from another SO question, and I wrote to_hex with some guesswork and trial and error. class String def...
Bairn asked 20/9, 2013 at 18:30

2

Solved

I want to make a function in pure Lua that generates a fraction (23 bits), an exponent (8 bits), and a sign (1 bit) from a number, so that the number is approximately equal to math.ldexp(fraction, ...
Dariodariole asked 19/1, 2013 at 17:11

1

Solved

In Ruby why we need array Packing? How does directive help to do such packing? I ran some code in my console to see what and how directives looks like in Array packing.But the output is closely s...
Tamer asked 12/1, 2013 at 13:48

3

Solved

I have a binary file which I'm reading where some 2 byte values are stored in 'reverse' byte order (little endian?), eg. 1D 00 13 00 27 00 3B 00 45 00 31 00 4F The original program that created ...
Anastrophe asked 2/11, 2011 at 16:17

3

Solved

I have a hex string (length 48 chars) that I want to convert to raw bytes with the pack function in order to put it in a Win32 vector of bytes. How I can do this with Perl?
Melone asked 11/3, 2010 at 18:18

1

Solved

I've been trying to figure out if the PHP implementation of Pack/Unpack can do something that the Perl version is able to do. The example I'd like to be able to do in PHP is: http://perldoc.perl.o...
Avaria asked 24/7, 2012 at 14:13

1

Solved

My code used to work in the past, but now the struct size suddenly is 16 bytes. It used to be 13 bytes. I recently upgraded from Xcode 4.2 to Xcode 4.3.1 (4E1019). #pragma pack(1) struct ChunkStru...
Kellby asked 29/4, 2012 at 10:7

7

Solved

Looking at plone.org to find a way to periodically pack my instance's ZODB I could only find http://plone.org/documentation/faq/how-do-i-pack-the-zodb that doesn't talk about automated packs, but j...
Passus asked 14/3, 2011 at 15:41

3

Solved

My JAR files must be signed for a webstart application. It would be nice to also have them packed to minimize the download time. I'm trying to configure an Ant task to automatically do it during th...
Abutting asked 22/7, 2010 at 19:2

2

Solved

What is application's site of origin When to use it How is the build action of a resource file associated with it What is the difference between pack://application:,,, and pack://siteoforigin:,,, ...
Bicephalous asked 18/5, 2011 at 10:21

6

Solved

I'm relatively inexperienced with Perl, but my question concerns the unpack function when getting the bits for a numeric value. For example: my $bits = unpack("b*", 1); print $bits; This results...
Bloodstone asked 21/4, 2011 at 20:5

2

Solved

I'm attempting to center a button (self.HBu) within my frame. For some reason when I run this, the button sticks toward the bottom of the frame. What am I doing wrong? Snippet: frame = Tk.Frame...
Nodule asked 25/2, 2011 at 6:55

© 2022 - 2024 — McMap. All rights reserved.