64-bit

How to install sqlite or postgresql on windows 8 for a ruby on rails setup?

淺唱寂寞╮ 提交于 2020-01-13 16:30:14
问题 I've been trying to install a database as part of my ruby on rails setup. I'm running a 64 bit windows 8, a x64 based machine. My ruby version is 2.1.3p242, rails version is 4.0.0, sqlite3 version is 3.8.6 and postgresql version is 9.3 I first tried to install sqlite3 by following the steps given in this SO answer but I get this error `require': Could not load 'active_record/connection_adapters/sqlite3_adapter'. Make sure that the adapter in config/database.yml is valid. My database.yml has

64bit Memory allocation

↘锁芯ラ 提交于 2020-01-13 08:43:07
问题 I've been asked to create a Delphi compatible dll in C++ to do simple 64bit memory management. The background is that the system in Delphi needs to allocate a lots of chunks of memory that would go well outside 32bit addressable space. The Delphi developer explained to me that he could not allocate memory with the Delphi commands available to him. He says that he can hold a 64bit address, so he just wants to call a function I provide to allocate the memory and return a 64bit pointer to him.

Determine if an executable (or library) is 32 -or 64-bits (on Windows)

为君一笑 提交于 2020-01-13 08:28:07
问题 I am trying to find out if a given executable (or library) is compiled for 32-bits or 64-bits from Python. I am running Vista 64-bits and would like to determine if a certain application in a directory is compiled for 32-bits or 64-bits. Is there a simple way to do this using only the standard Python libraries (currently using 2.5.4)? 回答1: The Windows API for this is GetBinaryType. You can call this from Python using pywin32: import win32file type=GetBinaryType("myfile.exe") if type=

Excel ODBC and 64 bit server

♀尐吖头ヾ 提交于 2020-01-11 04:39:06
问题 using ASP.NET I need to update an excel template. Our server is running Windows 2008 in 64 bit mode. I am using the following code to access the excel file: ... string connection = @"Provider=MSDASQL;Driver={Microsoft Excel Driver (*.xls)};DBQ=" + path + ";"; ... IF the application pool is set to Enable 32 bit applications the code works as expected; however the oracle driver I am using fails as it is only 64 bit. If Enable 32-bit applications is set to false the excel code fails with the

unsigned short and signed short comparison wierd behavior

不打扰是莪最后的温柔 提交于 2020-01-11 04:02:05
问题 When I assign the same value to signed and unsigned short and do a comparison it fails but it works with int . Unless I cast one or the other to make them same types the comparison is not working. #include<stdio.h> int main() { signed short b = -10; unsigned short c=-10; signed int a = -10; unsigned int d=-10; printf("%d , %d\n",b,(unsigned short)b); printf("%d , %d\n",(signed short)c,c); printf("%d , %u\n",a,(unsigned int)a); printf("%d , %u\n",(signed int )d,d); printf("b==c %d\n", b==c);

What should be tested in 64-bit Delphi

给你一囗甜甜゛ 提交于 2020-01-10 14:56:29
问题 Delphi with 64 bit compilation is now in Beta, but only invited beta-testers will get their hands on this version. What should be tested by the beta testers? 回答1: Embarcadero will probably provide a tester's guide for the beta testers. But, here are some ideas: Memory allocation, alignment, heap and stack. 32-bit could use up to 4GB (well, 3.5) of address space on a 64-bit version of Windows with the /LARGEADDRESSAWARE switch: Delphi64 should be able to use much more. Try allocating 8, 16,

Calling convention on x64

依然范特西╮ 提交于 2020-01-10 02:57:18
问题 I saw in several places that Microsoft calling conventions for x64 platforms were narrowed down to just one: Caller cleans stack ( cdecl ), and parameters are passed in a combination of stack and registers (I am not going into the exact details here). I assume that if this is the calling convention of the OS, then probably all other compilers targeting Windows (e.g. mingw-w64) follow it, too. Is this calling convention true also on other major platforms ( x64 Linux, etc.)? Or does Linux still

Floating-point precision when moving from i386 to x86_64

坚强是说给别人听的谎言 提交于 2020-01-10 02:43:08
问题 I have an application that was developed for Linux x86 32 bits. There are lots of floating-point operations and a lot of tests depending on the results. Now we are porting it to x86_64, but the test results are different in this architecture. We don't want to keep a separate set of results for each architecture. According to the article An Introduction to GCC - for the GNU compilers gcc and g++ the problem is that GCC in X86_64 assumes fpmath=sse while x86 assumes fpmath=387 . The 387 FPU

What impact, if any, does the -d64 switch have on Sun JVM resident memory usage?

有些话、适合烂在心里 提交于 2020-01-09 19:28:20
问题 I've got this webapp that needs some memory tuning. While I'm already profiling the application itself and trimming things down, the JVM itself seems overly bloated to me on our busiest instance. (The lower volume instances do not have this problem.) The details: Platform: RHEL4 64-bit ( Linux 2.6.9-78.0.5.ELsmp #1 SMP x86_64 ) Sun Java 6 ( Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode) ) Tomcat 6 with -d64 in startup.sh My webapp currently has some code that in production

How can I use a single Visual Studio solution to build both x86 and x64 at the same time?

妖精的绣舞 提交于 2020-01-09 12:18:10
问题 I've got an x86 Visual Studio solution with many project files in it. Some of the DLL files are designed to work as plug-ins to other applications on a user's system. We're expanding some of the DLL files to be able to support 64-bit applications. I'd like to set up the solution/projects so that just hitting "Build" will build both the x86 and x64 versions of those DLL files. The solution contains both C++ and C# projects. I realize that "Batch Build" is capable of building both, though it