pack

  • Cannot position widgets with pack 2018-04-02

    So I have this neat little program that is working fine except when I try to pack it in to tkinter with the fill option. I get an error if I use the fill option with the X value. TclError: bad fill style "64": must be none, x, y, or both From wh

    Tags: python, tkinter, pack, fill
  • How do I use JFrame.pack()? 2014-08-15

    Can you tell me haw I can use pack() and what it is doing? For example: //1. Create the frame. JFrame frame = new JFrame("FrameDemo"); //2. Optional: What happens when the frame closes? frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //3. Creat

    Tags: java, pack, jframe
  • c++ wrong values with pragma pack 2014-01-31

    header1.h #pragma pack(4) header2.h #include <iostream> struct my_struct { unsigned int a; double b; }; __forceinline void show_h(my_struct* my_struct_ptr) { std::cout << sizeof(my_struct) << '\t' << my_struct_ptr->b <

    Tags: struct, pack, pragma, memory alignment
  • Trying to reproduce PHP's pack("H*") function in C# 2013-12-11

    this is my code in C# : public static String MD5Encrypt(String str, Boolean raw_output=false) { // Use input string to calculate MD5 hash String output; MD5 md5 = System.Security.Cryptography.MD5.Create(); byte[] inputBytes = System.Text.Encoding.ASC

    Tags: php, md5, pack
  • Python struct.pack()/calcsize() 2013-05-15

    I want to pack a byte followed by a long. My buffer can only contain 9 elements. Why can't I pack them into the buffer? >>> from struct import * >>> calcsize('qB') 9 >>> calcsize('Bq') 12 It returns differently. Why is this

    Tags: python, struct, pack
  • C# - Loading image from file resource in different assembly 2012-05-01

    C# - Loading image from file resource in different assembly I have a PNG image file which is stored in a project called SomeProject and displayed various times using XAML in that same project. In a different assembly, I now wish to access that same i

    Tags: image, assemblies, pack
  • pragma pack(1) nor __attribute__ ((aligned (1))) works 2012-04-29

    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 ChunkStruct { uint32_t width; uint32_t height; uint8_t bit_dept

    Tags: xcode4, pack, pragma, llvm
  • Pack array of namedtuples in PYTHON 2012-04-12

    I need to send an array of namedtuples by a socket. To create the array of namedtuples I use de following: listaPeers=[] for i in range(200): ipPuerto=collections.namedtuple('ipPuerto', 'ip, puerto') ipPuerto.ip="121.231.334.22" ipPuerto.puerto="8988

    Tags: python, sockets, pack
  • Perl's pack function equivalent in Java 2012-04-11

    I have some Perl code that I need to transpose in Java. In this code I have to deal with pack function of Perl. Have you idea if this functions are already implemented in Java? The perl code looks something like this: $somevar = pack "H*", $vartopack

    Tags: perl, java, hex, pack
  • String#pack works on 1.9+, not 1.8* 2012-03-30

    I stumbled upon an error that I don't quite understand. # Ruby 1.8.7 >> [Digest::MD5.hexdigest("http://www.google.com").to_i(16)].pack("N") RangeError: bignum too big to convert into 'unsigned long' # Ruby 1.9.3 >> [Digest::MD5.hexdigest(

    Tags: ruby, ruby 1.9, ruby 1.8, pack
  • Mpi_allgather and mpi_pack in C 2012-03-26

    i have a probelm with mpi and MPI_Allgather and MPI_pack. I have structure : typedef struct{ float a; int b; int c[]; }struc_t; I intialize my structure : struc_t* test=(struc_t*)malloc(sizeof(struc_t)+200*sizeof(int)); And i would like send a array

    Tags: struct, pack, mpi
  • pack/unpack functions for C++ 2012-03-02

    NOTE: I know that this has been asked many times before, but none of the questions have had a link to a concrete, portable, maintained library for this. I need a C or C++ library that implements Python/Ruby/Perl like pack/unpack functions. Does such

    Tags: serialization, pack, unpack
  • Need more details on PHP pack function 2012-02-28

    i have been trying to understand the pack function. I'm having trouble on this sort of code pack( 'NNnNna*', $string); what does NNnNna* mean? and also i saw others as axa* and a4xa*. --------------Solutions------------- After googling "PHP pack", yo

    Tags: php, pack
  • Program like smartassembly but for C++? 2012-02-24

    http://www.red-gate.com/products/dotnet-development/smartassembly/ Is there a program like smartassembly for C++ that will remove all unneeded code from any linked DLL's (to reduce size) and pack them into a single EXE and then obfuscate it and compr

    Tags: compression, obfuscation, pack, smartassembly
  • Disable item in CMFCToolBar 2012-02-21

    I am trying to upgrade my MFC MDI application to use the new MFC Feature Pack. I converted the CToolbar to CMFCToolBar. Now I am trying to disable one item in the toolbar under certain conditions. I listened to the ON_UPDATE_COMMAND_UI message of the

    Tags: mfc, mdi, pack
  • Convert string to something shorter and unique in JavaScript 2012-02-05

    So I'm currently looking in this ruby implementation: Base64.urlsafe_encode64([Digest::MD5.hexdigest('example.com').to_i(16)].pack("N")).sub(/==\n?$/, '') The example.com string is converted to "SY5Rcg", which is actually the thing that i'm trying to

    Tags: ruby, javascript, pack
  • Oracle Enterprise Pack for Eclipse 2012-01-17

    I'm trying to setup a development environement with Oracle Enterprise Pack for Eclipse. I successfully deployed my EAR to WebLogic 10.3.3. If I modify Java / JSP resources, everything is deployed instantly to the WebLogic server. But for other web re

    Tags: deployment, oracle, enterprise, weblogic, pack
  • Perl pack function is broken? 2012-01-11

    I have a header creation Perl script and it works great most of the time, but every once in a while the thing breaks. I'll get right down to the meat of it, given the CRC number 772423333 the PERL pack function breaks. my $dec = 772423333; my $broken

    Tags: perl, perl module, pack
  • A way to pack string into another light weight structure 2011-12-29

    i need a way to pack/zip a string (10 digit number) into another structure which will takes less memory. My goal is to randomize a big array of numbers (112M of records) but i can't load it into memory right now (only 30M of records). So i think abou

    Tags: perl, arrays, pack
  • how to convert to c# code in php pack('s') method 2011-12-14

    I want to connect to a game server. Blocked in the header portion. help me t.t ex) php code $obj = new stdClass; $obj->variable1 = 202; $obj->variable2 = 123; $str = json_encode($obj); $header = "\x0a\xFF\x00\x10".pack("s",strlen($str)).$str; .

    Tags: php, pack

Copyright (C) dskims.com, All Rights Reserved.

processed in 5.205 (s). 9 q(s)