bit

Python and 16 Bit Tiff

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: How can I convert and save a 16 bit single-channel TIF in Python? I can load a 16 and 32 bit image without an issue, and see that the 32 bit image is mode F and the 16 bit image is mode I;16S : import Image i32 = Image . open ( '32.tif' ) i16 = Image . open ( '16.tif' ) i32 # i16 # But I am having trouble working with the 16 bit image. If I want to save either as PNG, I cannot do so directly: i32 . save ( 'foo.png' ) # IOError: cannot write mode F as PNG i16 . save ( 'foo.png' ) # ValueError: unrecognized mode If I convert the 32

wrong ELF class: ELFCLASS32

匿名 (未验证) 提交于 2019-12-03 01:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm getting this error pointing to some .so file when running my application on a Solaris machine. However, the application runs just fine in my Windows machine. If I'm not mistaken, my application is expecting for the 64-bit version but I only have a 32-bit version of the .so file in the Solaris machine. Is there a way I can fix this so it will use the 32-bit version instead? I understand it has nothing to do with the bytecodes but probably with the JVM. I tried running using -d32 or -d64 but it has no effect. UPDATE: This is the exact

How should I make my VBA code compatible with 64-bit Windows?

匿名 (未验证) 提交于 2019-12-03 01:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a VBA application developed in Excel 2007, and it contains the following code to allow access to the ShellExecute function from Shell32.dll : Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long I originally said: Apparently the application will not compile on a 64-bit version of Windows (still using 32-bit Office 2007). I assume that this is

Visual studio designer in x64 doesn't work

匿名 (未验证) 提交于 2019-12-03 01:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: In Visual Studio 2010 64bit I can't design my forms. I keep getting this warning (and error): Warning 18 The designer could not be shown for this file because none of the classes within it can be designed . The designer inspected the following classes in the file : MainForm --- The base class 'Blah' could not be loaded . Ensure the assembly has been referenced and that all projects have been built . This only happens with when I compile for x64 ... in x86 the designer works well. Just want to be clear that I NEED the project to

JAI and ImageIO for 64 bit Windows

匿名 (未验证) 提交于 2019-12-03 01:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i searched JAI and ImageIO library for 64 bit windows, but i didn't find any version of these. Last 64 bit win vesion request on Java Bug tracking system 6-7 years ago. I think, jai's developers will not release any version for win64. :( My question is, can we build jai and imageio from their source for 64bit windows, is it possible? How? thanks a lot... 回答1: JAI and JAI Image I/O have two parts from source language points of view, java and C/C++. The java part is free (as free beer) and you can download and compile from java.net, but this

Unable to load rJava on R

匿名 (未验证) 提交于 2019-12-03 01:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I wish to load rJava in R x64 3.1.2. OS- Windows 8.1 64 bit Though installation seems to work fine: > install.packages("rJava") Installing package into ‘C:/Users/sony/Documents/R/win-library/3.1’ (as ‘lib’ is unspecified) --- Please select a CRAN mirror for use in this session --- trying URL 'http://cran.utstat.utoronto.ca/bin/windows/contrib/3.1/rJava_0.9-6.zip' Content type 'application/zip' length 758898 bytes (741 Kb) opened URL downloaded 741 Kb package ‘rJava’ successfully unpacked and MD5 sums checked The downloaded binary packages

IP Don't fragment bit on Mac OS

匿名 (未验证) 提交于 2019-12-03 01:27:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am writing a file transferring program over TCP. I want to set the don't fragment flag on IP On a socket this is what I want to do: int val = 1; setsockopt(sd, IPPROTO_IP, IP_DONTFRAG, &val, sizeof(val)); However IP_DONTFRAG does not seem available on Mac OS. Am I missing something? or did I forget to include it correctly? Thanks in advance if anyone knows --Sam 回答1: google brought up this: http://lists.apple.com/archives/macnetworkprog/2006/Jul/msg00014.html 回答2: The DF bit is typically used for path MTU (PMTU) discovery automatically by

Installing NumPy and SciPy on 64-bit Windows (with Pip)

匿名 (未验证) 提交于 2019-12-03 01:27:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I found out that it's impossible to install NumPy/SciPy via installers on Windows 64-bit, that's only possible on 32-bit. Because I need more memory than a 32-bit installation gives me, I need the 64-bit version of everything. I tried to install everything via Pip and most things worked. But when I came to SciPy, it complained about missing a Fortran compiler. So I installed Fortran via MinGW/MSYS. But you can't install SciPy right away after that, you need to reinstall NumPy. So I tried that, but now it doesn't work anymore via

Typecasting in Python

匿名 (未验证) 提交于 2019-12-03 01:25:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I need to convert strings in Python to other types such as unsigned and signed 8, 16, 32, and 64 bit ints, doubles, floats, and strings. How can I do this? 回答1: You can convert a string to a 32-bit signed integer with the int function: str = "1234" i = int ( str ) // i is a 32-bit integer If the string does not represent an integer, you'll get a ValueError exception. Note, however, that if the string does represent an integer, but that integer does not fit into a 32-bit signed int, then you'll actually get an object of type long

Node Sass could not find a binding for your current environment

匿名 (未验证) 提交于 2019-12-03 01:25:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am having issues building an app because node-sass keeps failing with the error. ERROR in Missing binding /Users/warren/Sites/random-docs/my-cms/node_modules/node-sass/vendor/darwin-x64-11/binding.node Node Sass could not find a binding for your current environment: OS X 64-bit with Node 0.10.x I have tried running npm rebuild node-sass which says Binary is fine; exiting. When running node -v I get v6.2.2 Which is different to what the sass error says "Node 0.10.x". I cant figure out why it is getting the wrong version. I have also tried