core

Why Msjetoledb40.dll is missing in Windows 2008 core - 32 bit and R2 as well?

Hello, I am working on Windows 2008 core R2 and 32 bit. While running application in which I am trying to connect to .mdb file by ADODB connection and using provider as 'Microsoft Jet Provider 4.0' . To get the connection done Msjetoldb40.dll is necessary. But it is not present in Windows 2008 core R2 and 32-bit ( which is of only com...

How to get rid of these warnings after installing zend core?

Really annoying! PHP Warning: PHP Startup: bcmath: Unable to initialize module Module compiled with module API=20060613, debug=0, thread-safety=0 PHP compiled with module API=20060613, debug=0, thread-safety=1 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: curl: Unable to initialize module Module compil...

Memory Error in C++

Hi Guys, I have a high memory requirement in my code and this statement is repeated a lot of times: Node** x; x = new Node*[11]; It fails at this allocation. I figured out this line by throwing output to the console! I am building my code on Visual Studio. It works fine in Debug mode (both in VS2005 and VS2008) However it throws the ...

floating value truncation java

Hi i want float value of 3 fraction digits after digit,i dont want to round of the value for example: float f=2.13275; i want f as 2.132 not 2.133 how can i do it in java? ...

Current Linux Kernel debugging techniques

A linux machine freezes few hours after booting and running software (including custom drivers). I'm looking a method to debug such problem. Recently, there has been significant progress in Linux Kernel debugging techniques, hasn't it? I kindly ask to share some experience on the topic. ...

How can I know/see on which core a thread run ? (In win XP)

Hi, If I have a multi-thread program, how can I know on which core each thread run ? Is there any another solution for win XP in C# ? I try this: [DllImport("ntdll"), SuppressUnmanagedCodeSecurity] public static extern int NtGetCurrentProcessorNumber(); and I get this exception: System.EntryPointNotFoundException was unhandled ...

Magento - locate specific core files

Hiya, I am familiar with theming and using template hints in the Magento back office to locate .phtml files. What I am not really familiar with are the core files such as app/code/core/Mage/Catalog/Model What I need to do is override a core file like I would a core phtml file by copying it to 'my theme'. I basically want to amend som...

NaN problem in Java

I am converting four bytes to float and I'm getting NaN as a result, but I want the value 0.0. What am I doing wrong? This is my code: public class abc { public static void main(String[] args) { int[] arry = { 255, 255, 255, 255 }; int num = ((arry[0] << 24) & 0xFF000000) | ((arry[1] << 16) & 0xFF0000) | ((...

How can I create a custom "pin-drop" animation using MKAnnotationView?

I have an instance of MKMapView and would like to use custom annotation icons instead of the standard pin icons supplied by MKPinAnnotationView. So, I've setup a subclass of MKAnnotationView called CustomMapAnnotation and am overriding -(void)drawRect: to draw a CGImage. This works. The trouble comes when I try to replicate the .animate...

Way to synchronize two cores in simulation

Hi guys, I have to build a dual-core processor simulator in C (it's actually a multilevel memory simulation, cache L1/L2, block substitution, etc). Thing is, I'm having a hard time figuring a way to synchronize the cores (which I'm programming as threads). Any ideas how I could do a global clock? Should I change from threads to child pro...

Basic Python Numbers!

Why does 0.1 + 0.1 + 0.1 - 0.3 evaluates to 5.5511151231257827e-17 in Python? ...

float input to textfield and textarea java

Hi, i want to create text field and textarea which should only take float value as input how can i do this in java? ...

How to identify whether the current data network is Edge or 3G on iPhone

Is there a way to figure out the current data network available on iPhone? Whether it is EDGE or 3G? It works for me even if its doable using core telephony private framework. I am not bothered about app store submission. I know its very simple to identify whether the user is on Wifi or CellData network. But not able to find a way to i...

Restoring program state from a core file

Is it possible, under any circumstances, to restore the state of a program to what it was during the generation of a core file? The reason I ask is that in order to take advantage of gdb's ability to execute functions and so forth you need to have a running instance. Surely it should be possible to produce a mock process of the same exe...

Questions regarding Extending JFrame in a class?

Okay, I'm NOT a Java noob, it just so happens that I've forgotten a tad bit about core Java while I was learning more fun stuff like MySQL, Servlets, Java EE, JDBC etc etc; so don't frame your answers as if I were a beginner. Now the question..... I'm writing a class (lets say ThisIsAJFrameExtendingClass) which extends JFrame, and to mi...

memory corruption

i was running a small c program: #include<stdio.h> int main() { char *p; p = (char *)malloc(10); free(p); free(p); free(p); printf("\npointer is freed!!\n"); } basically i am freeing the memory which has already been freed. i think should result in a core dump!!is it not so? but it is printing the pointer is freed!! am i wrong so...

BlackBerry - Detecting when my application is sent to the Background because of a Call

Hi All, I need to detect when my BlackBerry application is sent to the background and also when it's brought to the foreground again. I need to pause the application when a phone call comes in and resume appropriately. I assume this must be trivial to achieve but I can't find any reference to how this is done. Please put me out of my m...

what is layer in core animation

In core animation or in App kit When we say layer-backed view or simply add a layer in the view,then actually what we mean by the layer. ...

Strings are objects in Java, so why don't we use 'new' to create them?

We normally create objects using the new keyword, like: Object obj = new Object(); Strings are objects, yet we do not use new to create them: String str = "Hello World"; Why is this? Can I make a String with new? ...

what is JAVA_HOME? How does JVM will find the javac path stored in JAVA_HOME?

Hi I like to know what is JAVA_HOME where I set path of javac.exe and java.exe. It is in environment variables. When I compile java prog from command prompt how does JVM will find the javac.exe? ...