Displaying 20 results from an estimated 36 matches for "bytesize".
2012 May 18
7
Dir.create_junction with FFI
Hi,
Try as I might, I just cannot get Dir.create_junction to work with FFI
in the ffi branch of the win32-dir project. The problem is the
REPARSE_JDATA_BUFFER struct. I''m just not sure how to set those
members, specifically, the PathBuffer member. The target looks good,
it''s UTF-16LE encoded, but I can''t make it work, despite trying
several ways of defining the struct,
2010 Dec 08
1
NoMethodError: `bytesize' for 200:Fixnum (with Rails-3.0.3)
...===========
Steps for reproduce:
===========
$ gem install rails
$ rails new testapp
$ cd testapp
$ ./script/rails generate controller Home index
$ ./script/rails server
then open http://localhost:3000/home/index
===========
Result(Problem):
===========
Internal Server Error: undefined method `bytesize'' for 200:Fixnum
===========
Console output:
===========
Started GET "/home/index" for 127.0.0.1 at Wed Dec 08 16:38:49 +0900
2010
Processing by HomeController#index as HTML
Rendered home/index.html.erb within layouts/application (2.3ms)
Completed 200 OK in 13ms (Views: 12....
2010 Jun 09
1
[patch] fix bytesize in exception template; multibyte titleize
Hi all,
I wanted to draw some attention to a couple of very small multibyte-related
patches I believe should be included before Rails 3.0 RC1:
* Use String#bytesize rather than String#length in exception templates:
This is a simple case where string length is checked, but bytes is needed,
so it breaks with string with multibyte chars.
https://rails.lighthouseapp.com/projects/8994/tickets/4727-use-rackutilsbytesize-instead-of-length-when-determining-request-c...
2013 Mar 15
2
Icalendar.Parse(StringIO.new(aString)) complains about missing method, bytesize
...l command...
curl -v --data-urlencode ics at invite.ics http://127.0.0.1:4567/ics2event
I''ve tried curl''s --data-binary and sinatra''s request.body.string to
create the stringio object, without luck.
Ultimately it complains
NoMethodError at /ics2event
undefined method `bytesize'' for #<Icalendar::Calendar:0x9c8b1b8>
file: component.rb location: method_missing line: 419
My web code is below.
require ''sinatra''
require ''rubygems''
require ''icalendar''
get ''/'' do
"Hello, world!"...
2001 Feb 28
1
com port acccess again
...d (yet)
err:file:CreateFileA Couldn't open device 'com4'!
fixme:dosfs:DOSFS_OpenDevice device open COM3 not
supported (yet)
err:file:CreateFileA Couldn't open device 'com3'!
trace:comm:GetCommState handle 132, ptr 0x40596080
trace:comm:GetCommState OK
trace:comm:GetCommState bytesize 8 baudrate 110
fParity 0 Parity 0 stopbits 1
trace:comm:GetCommState ~IXON ~IXOFF
trace:comm:GetCommState CRTSCTS
trace:comm:BuildCommDCBAndTimeoutsA
(com2:115200,n,8,1,0x40596080,(nil))
trace:comm:BuildCommDCB16 (com2:115200,n,8,1), ptr
0x40596004
trace:comm:BuildCommDCB16 baudrate (110)
trace:com...
2016 Dec 16
2
GDB pretty printers for LLVM ADTs
...have that, you can get pretty output like this:
(gdb) p Abbrev->AbbrDeclSets
$1 = std::map with 1 elements = {
[0] = {
Offset = 0,
FirstAbbrCode = 1,
Decls = std::vector of length 1, capacity 1 = {{
Code = 1,
Tag = llvm::dwarf::Tag::DW_TAG_compile_unit,
CodeByteSize = 1 '\001',
HasChildren = false,
AttributeSpecs = llvm::SmallVector of length 8, capacity 8 = {{
Attr = llvm::dwarf::Attribute::DW_AT_low_pc,
Form = llvm::dwarf::Form::DW_FORM_addr,
ByteSize = llvm::Optional is not initialized
},...
2016 Dec 17
0
GDB pretty printers for LLVM ADTs
...gt;
> (gdb) p Abbrev->AbbrDeclSets
> $1 = std::map with 1 elements = {
> [0] = {
> Offset = 0,
> FirstAbbrCode = 1,
> Decls = std::vector of length 1, capacity 1 = {{
> Code = 1,
> Tag = llvm::dwarf::Tag::DW_TAG_compile_unit,
> CodeByteSize = 1 '\001',
> HasChildren = false,
> AttributeSpecs = llvm::SmallVector of length 8, capacity 8 = {{
> Attr = llvm::dwarf::Attribute::DW_AT_low_pc,
> Form = llvm::dwarf::Form::DW_FORM_addr,
> ByteSize = llvm::Optional is not...
2016 Dec 19
2
GDB pretty printers for LLVM ADTs
...DeclSets
>> $1 = std::map with 1 elements = {
>> [0] = {
>> Offset = 0,
>> FirstAbbrCode = 1,
>> Decls = std::vector of length 1, capacity 1 = {{
>> Code = 1,
>> Tag = llvm::dwarf::Tag::DW_TAG_compile_unit,
>> CodeByteSize = 1 '\001',
>> HasChildren = false,
>> AttributeSpecs = llvm::SmallVector of length 8, capacity 8 = {{
>> Attr = llvm::dwarf::Attribute::DW_AT_low_pc,
>> Form = llvm::dwarf::Form::DW_FORM_addr,
>> ByteSize = l...
2004 Aug 19
1
Serial Communication
...x4066ec4c (nil))
trace:file:get_dos_device L"COM1" -> "/home/met/.wine/dosdevices/com1"
trace:file:CreateFileW returning 0x9c
fixme:comm:GetCommProperties (0x9c 0x4132b414 )
trace:comm:GetCommState handle 0x9c, ptr 0x4132b454
trace:comm:GetCommState OK
trace:comm:GetCommState bytesize 8 baudrate 38400 fParity 0 Parity 2
stopbits 1
trace:comm:GetCommState ~IXON ~IXOFF
trace:comm:GetCommState fOutxCtsFlow 1 fRtsControl 2
trace:comm:GetCommState fOutxDsrFlow 0 fDtrControl1
trace:comm:GetCommState CRTSCTS
trace:comm:GetCommTimeouts (0x9c,0x4132b470)
trace:comm:BuildCommDCBAndTimeout...
2016 Dec 20
0
GDB pretty printers for LLVM ADTs
...gt;
> (gdb) p Abbrev->AbbrDeclSets
> $1 = std::map with 1 elements = {
> [0] = {
> Offset = 0,
> FirstAbbrCode = 1,
> Decls = std::vector of length 1, capacity 1 = {{
> Code = 1,
> Tag = llvm::dwarf::Tag::DW_TAG_compile_unit,
> CodeByteSize = 1 '\001',
> HasChildren = false,
> AttributeSpecs = llvm::SmallVector of length 8, capacity 8 = {{
> Attr = llvm::dwarf::Attribute::DW_AT_low_pc,
> Form = llvm::dwarf::Form::DW_FORM_addr,
> ByteSize = llvm::Optional is not...
2016 Dec 20
2
GDB pretty printers for LLVM ADTs
...DeclSets
>> $1 = std::map with 1 elements = {
>> [0] = {
>> Offset = 0,
>> FirstAbbrCode = 1,
>> Decls = std::vector of length 1, capacity 1 = {{
>> Code = 1,
>> Tag = llvm::dwarf::Tag::DW_TAG_compile_unit,
>> CodeByteSize = 1 '\001',
>> HasChildren = false,
>> AttributeSpecs = llvm::SmallVector of length 8, capacity 8 = {{
>> Attr = llvm::dwarf::Attribute::DW_AT_low_pc,
>> Form = llvm::dwarf::Form::DW_FORM_addr,
>> ByteSize = l...
2001 Nov 07
1
WG: Re: Wine and the serial port [LONG]
...imeout). (Note the different thread-ids).
In the wine trace (done with +comm +file) you see the following
-------------------------------------
trace:file:CreateFileA opening device 'COM1'
trace:comm:GetCommState handle 268, ptr 0x421666f8
trace:comm:GetCommState OK
trace:comm:GetCommState bytesize 8 baudrate 9600 fParity 1 Parity 0 stopbits
2
trace:comm:GetCommState ~IXON ~IXOFF
trace:comm:GetCommState ~CRTSCTS
trace:comm:BuildCommDCBAndTimeoutsA (baud=9600 parity=o data=8
stop=2,0x421666f8,(nil))
trace:comm:SetCommState handle 268, ptr 0x421666f8
trace:comm:SetCommState bytesize 8 baudrate...
2016 Dec 20
0
GDB pretty printers for LLVM ADTs
...gt;
> (gdb) p Abbrev->AbbrDeclSets
> $1 = std::map with 1 elements = {
> [0] = {
> Offset = 0,
> FirstAbbrCode = 1,
> Decls = std::vector of length 1, capacity 1 = {{
> Code = 1,
> Tag = llvm::dwarf::Tag::DW_TAG_compile_unit,
> CodeByteSize = 1 '\001',
> HasChildren = false,
> AttributeSpecs = llvm::SmallVector of length 8, capacity 8 = {{
> Attr = llvm::dwarf::Attribute::DW_AT_low_pc,
> Form = llvm::dwarf::Form::DW_FORM_addr,
> ByteSize = llvm::Optional is not...
2016 Dec 20
2
GDB pretty printers for LLVM ADTs
...DeclSets
>> $1 = std::map with 1 elements = {
>> [0] = {
>> Offset = 0,
>> FirstAbbrCode = 1,
>> Decls = std::vector of length 1, capacity 1 = {{
>> Code = 1,
>> Tag = llvm::dwarf::Tag::DW_TAG_compile_unit,
>> CodeByteSize = 1 '\001',
>> HasChildren = false,
>> AttributeSpecs = llvm::SmallVector of length 8, capacity 8 = {{
>> Attr = llvm::dwarf::Attribute::DW_AT_low_pc,
>> Form = llvm::dwarf::Form::DW_FORM_addr,
>> ByteSize = l...
2005 Mar 21
0
Comport access error
...n th
e [dsound] section of your config file.
fixme:opengl:wglSwapIntervalEXT (0),stub!
fixme:comm:SetupComm insize 1024 outsize 1024
unimplemented stub
trace:comm:SetCommTimeouts (0xc8,0x4069f964)
trace:comm:GetCommState handle 0xc8, ptr 0x4069f978
trace:comm:GetCommState OK
trace:comm:GetCommState bytesize 8 baudrate 38400
fParity 0 Parity 0 st
opbits 1
trace:comm:GetCommState IXON ~IXOFF
trace:comm:GetCommState fOutxCtsFlow 0 fRtsControl 1
trace:comm:GetCommState fOutxDsrFlow 0 fDtrControl1
trace:comm:GetCommState ~CRTSCTS
trace:comm:SetCommState handle 0xc8, ptr 0x4069f978
trace:comm:SetCommState b...
2016 Dec 20
0
GDB pretty printers for LLVM ADTs
...gt;
> (gdb) p Abbrev->AbbrDeclSets
> $1 = std::map with 1 elements = {
> [0] = {
> Offset = 0,
> FirstAbbrCode = 1,
> Decls = std::vector of length 1, capacity 1 = {{
> Code = 1,
> Tag = llvm::dwarf::Tag::DW_TAG_compile_unit,
> CodeByteSize = 1 '\001',
> HasChildren = false,
> AttributeSpecs = llvm::SmallVector of length 8, capacity 8 = {{
> Attr = llvm::dwarf::Attribute::DW_AT_low_pc,
> Form = llvm::dwarf::Form::DW_FORM_addr,
> ByteSize = llvm::Optional is not...
2009 Jun 19
3
Wine and serial port again
...x32e878
trace:comm:io_control 0xdc IOCTL_SERIAL_GET_LINE_CONTROL (nil) 0 0x32e8e1 3 0x32e878
trace:comm:io_control 0xdc IOCTL_SERIAL_GET_HANDFLOW (nil) 0 0x32e8c4 16 0x32e878
trace:comm:io_control 0xdc IOCTL_SERIAL_GET_CHARS (nil) 0 0x32e8d6 6 0x32e878
trace:comm:GetCommState OK
trace:comm:dump_dcb bytesize=8 baudrate=9600 fParity=0 Parity=0 stopbits=1
trace:comm:dump_dcb ~IXON IXOFF
trace:comm:dump_dcb fOutxCtsFlow=0 fRtsControl=1
trace:comm:dump_dcb fOutxDsrFlow=0 fDtrControl=1
trace:comm:dump_dcb ~CRTSCTS
trace:comm:dump_dcb bytesize=8 baudrate=115200 fParity=0 Parity=0 stopbits=2
trace:comm:dump_d...
2016 Dec 20
1
GDB pretty printers for LLVM ADTs
...t;
> (gdb) p Abbrev->AbbrDeclSets
> $1 = std::map with 1 elements = {
> [0] = {
> Offset = 0,
> FirstAbbrCode = 1,
> Decls = std::vector of length 1, capacity 1 = {{
> Code = 1,
> Tag = llvm::dwarf::Tag::DW_TAG_compile_unit,
> CodeByteSize = 1 '\001',
> HasChildren = false,
> AttributeSpecs = llvm::SmallVector of length 8, capacity 8 = {{
> Attr = llvm::dwarf::Attribute::DW_AT_low_pc,
> Form = llvm::dwarf::Form::DW_FORM_addr,
> ByteSize = llvm::Optional is not...
2003 May 21
6
COM: port problems
Unfortunately, almost all the Windows programs I want to run under
Wine need to access the COM: ports, and I cannot get any of them to run.
Typically, I get stuff like this ...
fixme:comm:EscapeCommFunction16 no cid=0 found!
fixme:comm:EscapeCommFunction16 no cid=0 found!
err:comm:COMM16_ReadComplete async read failed 000003e3
fixme:comm:EscapeCommFunction16 no cid=3 found!
2004 Oct 17
2
[LLVMdev] Automake Notes (Long)
...A "gmake -j 3"
builds from scratch on my machine in under 10 minutes. Since building is
done much more frequently than configuring, this is a development win.
EXECUTABLE SIZES
================
Below is a list of the sizes of some of the larger/important executables
that LLVM builds. The bytesize of the Automake built version and the
Existing version are shown as well as a percentage. In every case the
automake executable is smaller, by an order of magnitude.
AutoMake Existing Pct Program
-------- -------- ---- -------
2084426 46046545 5% analyze
6118914 77679274 8% bugpoint*...