core

Core animation presentation layer

I am using the two image view animated using UIView animation. And checking the collision between them by performselector method. Once collision detected we stop the animation and set the images to collide location. But some time one image goes some distance ahead and then detect the collision and set back to the exact collision location...

SMTP service on Windows 2008 R2 Core

Hello, I have setup a server with Windows 2008 R2 Core Web Edition. The question is, how can I install the IIS7 SMTP service? Or is SMTP missing in the Core editions? Thank you ...

What is object graph in java?

Whenever I study Garbage Collector I hear the term object Graph. What does it mean exactly? ...

In java why not widen then box?

Hi In java we can box and then widen. Why cant we widen and box? For ex: class WidenAndBox{ static void go(Long x) { } public static void main(String [] args) { byte b=5; go(b); } } Compiler error ...

How to get each pixel position (Coordinate) of a Hollow Character drawn using Core Graphics?

I am using UIView subclass to draw an alphabet using Core Graphics.Using this code only hollow characters are drwan(By Making the stroke color- black color).Here I need each pixel(Coordinate) position of the character.Please give me an idea how I will get each pixel point(Only the black point's pixel value) of the hollow character. Sour...

core dumped - but core file is not in current directory?

While running a C program , It says "(core dumped)" but I can't see any files under current path. I have set ulimit -c unlimited and verified it with ulimit -a I also tried to find file named "core" but didn't get the core dumped file? Any help , where is my core file? ...

How to access a variable from one function to another function in java ? Can that local variable be made static in a function?

Possible Duplicate: How do I create a static local variable in Java? Hi I am noob to java I wanna access local variable of a function in another function. But java does java support static variable in a function? If not then how to access that variable.I do not want to make that local variable as instance variable of calss. Tha...

closedir () causing core dumped

I have below lines in my code written in C on unix platform. Please let me know why I am getting core dumped in closedir() function. I could successfully opened the directory specified by path. if (opendir(MyDir) != NULL ) { closedir((DIR *) MyDir); exit 0; } ...

Write a java program to read a text file without using any import statements in the program..

Hi This was the question asked in one of the interview I have to write a program but there should not be any import statements in the program as i need to import java.io.* package. Is this program more efficient without using import statements? ...

Which one is faster in java? 1. Math.max(a,b); 2. (a>b)?a:b

Hi This was the question asked in my interview Which one is faster in java and why? Math.max(a,b); (a>b)?a:b ...

Inner shadow in Core Graphics

I want to do something similar to Photoshops inner shadow effect in Core Graphics. If I draw/fill a path with this effect, I want get something similar to the following: ...

How do you Reuse custom animation for multiple layers

Hi, I am a self taught noob with a real interest in code. Please excuse any wrong terminology I have multiple animation blocks that I want to reuse through out my app, in mulitple views and multiple layers/buttons. So how do I do the following: Create an "animation class" that all my views can access. Adjust my code so any layer can...

Why does a PNG image sometimes get blurry depending on its position in a view

Hi, I have noticed that when placing PNG images into a view using IB and/or animating those images to various positions around a view, the image can sometimes get a slight blur. In most cases I can remedy the blur by adding .5 of a pixel to the images position. [lbLiteButton.layer setPosition:CGPointMake(140.5,159.5)]; Sometimes I ...

Is there a way to implement a core code template in WCF?

Hi, I am working on a WCF based web services project. We have like 50 different services which provide get,create, update and delete operations. My problem is when I find a bug in an operation, let's say in get operation, that is common on all the services, i need to open and replace all the code in all the 50 services. My question is, ...

Core file Issue

Any idea about the core file debugged by dbx debugger. I am not getting why this core file is generated. Please help me on this For information about new features see `help changes' To remove this message, put `dbxenv suppress_startup_message 7.6' in your .dbxrc Reading mhost.new core file header read successfully Reading ld.so.1 Readin...

How to access the private variables of a class in its subclass?

This is a question I was asked in an interview: I have class A with private members and Class B extends A. I know private members of a class cannot be accessed, but the question is: I need to access private members of class A from class B, rather than create variables with the same value in class B. I hope I am clear with this questi...

What is constant folding in java compiler?

Possible Duplicate: is there any concept called Constant Folding in java? Hi I have come across line Java compiler uses something known as Constant Folding.What is this? and how Does it affect? ...

pusha assembly language instruction

I am having a core dump which stack is corrupted. I try to disassemble it and found the following plz help me to anaylyse it .. (gdb) bt #0 0x55a63c98 in ?? () #1 0x00000000 in ?? () (gdb) disassemble 0x55a63c90 0x55a63ca8 Dump of assembler code from 0x55a63c90 to 0x55a63ca8: 0x55a63c90: add %cl,%dh 0x55a63c92: cmpsb %...

wcstombs segmentation fault

Hello, this code int main (void) { int i; char pmbbuf[4]; wchar_t *pwchello = L"1234567890123456789012345678901234567890"; i = wcstombs (pmbbuf, pwchello, wcslen(pwchello)* MB_CUR_MAX + 1); printf("%d\n", MB_CUR_MAX); printf (" Characters converted: %u\n", i); printf (" Multibyte character: %s\n\n", pmbbuf); ...

Why does the specified object be eligible for garbage collection?

For the record, I'm NOT a Java Beginner, but -- rather - an intermediate-level guy who kinda forgot a bit about fundamentals about Java. class C{ public static void main(String a[]){ C c1=new C(); C c2=m1(c1); //line 4 C c3=new C(); c2=c3; // line 6 anothermethod(); } ...