I have a bunch of boolean options for things like "accepted payment types" which can include things like cash, credit card, cheque, paypal, etc. Rather than having a half dozen booleans in my DB, I can just use an integer and assign each payment method an integer, like so
PAYMENT_METHODS = (
(1<<0, 'Cash'),
(1<<1, 'Credit…
Answer I need help with is:
Recall that paging is implemented by
breaking up an address into a page and
offset number. It is most efficient to
break the address into X page bits and
Y offset bits, rather than perform
arithmetic on the address to calculate
the page number and offset. Because
each bit position represents a…
I am trying to add a VC6 COM DLL to our VS2010RC C# solution. The DLL was compiled with the VC6 tools to create an x86 version and was compiled with the VC7 Cross-platform tools to generate a VC7 DLL.
The x86 version of the assembly works fine as long as the consuming C# project's platform is set to x86. It doesn't matter whether the x64…
Has anyone tried compiling SciPy 0.7.1 on Windows using numpy-1.3.0 that was built with the pre-built ATLAS libraries (atlas3.6.0_WinNT_P4SSE2.zip) linked in the installation document.
I get the following linker error, and have no ideas as to how to fix this issue.
$ python setup.py config --compiler=mingw32 build --compiler=mingw32…
How do you get better than 1024x768 resolution?
Just installed MS Server 2008 64bit on a Dell PowerEdge 64bit box (works OK - Previously running MS Server 2003 32bit)
After install - gives a a max resultion of 1024x768
I want to change the reslution to 1280x1024 (Same LCD Worked OK on server 2003)
When I down load a driver I get a…
Hi All,
Does anyone know of a hashing method that you can use with .NET, that will output 128 Bytes?
I cannot use SHA-2+ generation hashes, as it's not supported on many client machines.
Thanks,
Kyle
So we're writing a full-text search framework MongoDb. MongoDB is pretty much javascript-native, so we wrote the javascript library first, and it works.
Now I'm trying to write a python framework for it, which will be partially in python, but partially use those same stored javascript functions - the javascript functions are an…
Hello everyone,
I heard on Windows x64 architecture, in order to support to run both x86 and x64 application, there is two separate/different sets of Windows registry -- one for x86 application to access and the other for x64 application to access? For example, if a COM registers CLSID in the x86 set of registry, then x64…
..except when you're having problems.
My problem is this: I have a hierarchical list of categories stored in a database which I wish to output in a dropdown list. The hierarchy comes into place when the subcategories are to be displayed, which are dependent on a parent id (which equals out to the first seven or so main…
Hello
Is there a way in Java to determine if the software is run on an x32 or x64 operating system - and in function of that - include a different jar during runtime?
I am using qtjambi and they wrap the QT c and c++ libraties in an xxx_x32.jar and xxx_x64.jar
Thanks for your feedback
Marc
On my brand new Windows 7 machine, I downloaded Eclipse (Galileo) and several Eclipse plugins (Android's ADT plugin, Subclipse, etc.)
After rebooting, neither of these plugins are showing up in the IDE (nothing in the preferences, menus, etc.) but if I click "Installation Details" in the 'About Eclipse' popup, I see…
PA6 : ?{m n} -> m = n -> n = m
is the axiom I am trying to solve and support, I've tried using a cong (from the core library) but am having troubles with the cong constructor
PA6 = cong
gets me nowhere, I know for cong I am required to supply a refl for equality and a type, but I'm, not sure what type I'm…
I have a fragment of bytes in a byte[]. The total size of the array is 4 and I want to convert this into a positive long number. For example if the byte array is having four bytes 101, 110, 10, 1 then i want to get the long number represented by binary sequence
00000000 00000000 00000000 00000000 00000101 00000110…
A common piece of code I use for simple string splitting looks like this:
inline std::vector<std::string> split(const std::string &s, char delim) {
std::vector<std::string> elems;
std::stringstream ss(s);
std::string item;
while(std::getline(ss, item, delim)) {
…
90% of the time I am unable to launch osk.exe from a 32bit process on Win7 x64. Originally the code was just using:
Process.Launch("osk.exe");
Which won't work on x64 because of the directory virtualization. Not a problem I thought, I'll just disable virtualization, launch the app, and enable it…
I've been happily using Django and MySQL in development on an existing machine running OS X 10.4 Tiger, and have set up a similar environment in 10.5 Leopard on a new 64-bit MacBook, with a working MySQL and Python 2.6.4.
However, now I want them to communicate, easy_install MySQL-python gave ld…
I have a windows installer project which installs some software (winform, service, mce addin). During the installation I need to search the machine for a registry key. This is done with with the "Launch Condition" - "Add Registry Search" (Deployment Project).
I have filled out all the properties…
Hullo
First, I want to use bash for this and the script should run on as many systems as possible (I don't know if the target system will have python or whatever installed).
Here's the problem:
I have a file with binary data and I need to replace a few bytes in a certain position. I've come up…
I'm looking for a very simple way of determining if the version of Windows the customer is using is 32bit or 64bit. I know there are ways using .NEt but I'm looking to avoid them. I simply want to use something similar the below pseudo code and want to know if this method can be reliable.
If…
I am using bitwise operations in order to represent many access control flags within one integer.
ADMIN_ACCESS = 1;
EDIT_ACCOUNT_ACCESS = 2;
EDIT_ORDER_ACCESS = 4;
var myAccess = 3; // ie: ( ADMIN_ACCESS | EDIT_ACCOUNT_ACCESS )
if ( myAccess & EDIT_ACCOUNT_ACCESS ) { // check for…
I am using nHibernate in my project but I have a stored procedure which just returns a boolen of success or now.
How do I code this in c#?
I have tried the following but it doesnt like cause I dont have a mapping for bool!!!
{"No persister for: System.Boolean,
mscorlib,…
Hi,
i'm new to iphone development. I spend several days by looking for how write muliview app for an Iphone OS. I found how to switch the diferent views without navigation hierarchy (in this article). It's great, but i want more complicated function.
For example, i have…
Has anyone tried compiling SciPy on Windows using numpy-1.3.0 that was built with the pre-built ATLAS libraries (atlas3.6.0_WinNT_P4SSE2.zip) linked in the installation document.
I get the following linker error, and have no ideas as to how to fix this issue.
$ python…