problem

memcpy adds ff ff ff to the beginning of a byte

I have an array that is like this: unsigned char array[] = {'\xc0', '\x3f', '\x0e', '\x54', '\xe5', '\x20'}; unsigned char array2[6]; When I use memcpy: memcpy(array2, array, 6); And print both of them: printf("%x %x %x %x %x %x", array[0], // ... etc printf("%x %x %x %x %x %x", array2[0], // ... etc one prints like: c0 3f e 5...

Facebook like not working for Unauthorized Users.

I ma implementing a facebook like function for my site using FBML.If click like as facebook authorized its working fine .But Whenever i click as unauthorized it pops up for the login and successfully logs in.But it doesnt perform the like operation. I have to click it again to like it.I would appreciate any help. ...

Flex4 addElement problem or something wrong with creationComplete event!?

Hi. I am using the new Flex4 Spark stuff but I'm stuck at an awful problem. Let me explain a bit of the situation first. I have a container (mx:Canvas) in which I do addElement() of one type instances (DocumentWindow). The document window class is supposed to be the holder for a view according to the type of the document. The DocumentWin...

WPF applications hanging in some scenarioes! But WHY?

Hi! Check out following scenario: A User control which contain two combo boxes... First combo box contain list of States and Second combo box contain list of Cities. When you select a state the second combo box will contain list of cities using a LINQ query. When you select another state in first combo box the second combo box's items ...

Anybody know how to solve a "viewDidUnload undeclared" problem?

And also how to solve an "expected ';' before '{' token? code below (from xcode 3.2.3) - (void)viewDidUnload { self.cheatName = nil; self.description = nil; } Both errors are in the first line - (void)viewDidLoad { [super viewDidLoad]; [self.titleLabel setText:self.title]; [self.descriptionLabel setText:self.d...

Help Identifying If Specific Problem is a Classical Comp Science Problem

Hi All, I have a manufacturing-process issue I tackled ages ago in VBA, and it's held up for some time now although it's progressively running slower and slower as more data gets into the file. I think it's finally time to rewrite a more elegant solution in a different language, outside of VBA, but am curious if anyone knows of this be...

PJSIP. Outgoing call cut off at 20 sec at certain Wi-Fi networks

What steps will reproduce the problem? Startup application with PJSIP at iPhone 3G with iOS 4. Make outgoing call. Start conversation. Wait 20 seconds. What is the expected output? What do you see instead? Actual result: Outgoing call cut off at 20 sec. The call breaks on the phone on which I have called. And the call ends normally ...

Client date and server date confusion.

I am working on a website in ASP.NET where emails can be scheduled for feauture. But the problem is with the date difference between server and client. As the server is in India an USA user can schedule a date behind today's date as their time zone is different. But this email will not be sent ever as the date has already been passed her...

On site load: "Cannot read .htaccess"

Hi, I'm trying to get my website back online after recovering from an XSS attack. At the time of the attack, I set all the file permissions to 400 to take the site offline. I left it that way for a few days, and then ended up deleting all the files in the var/www/ directory and uploading a full backup of the site. The backup had screw...

Logical problem

Hi stackoverflow, I would like to know some solutions to such a problem. It is given a number lets say 16 and you have to arange a matrix this way 1 2 3 4 12 13 14 5 11 16 15 6 10 9 8 7 the language doesn't matter, (prefferably PHP); ...

UITableView Sectioned Row Question

Hello, I have a sectioned UITableView using dictionaries adapting code from a tutorial (I don't have a link on me at the moment but I can dig it up if you really need it). Anyway I'm trying to have it delete an item from the list when I get this error (warning: its long) Terminating app due to uncaught exception 'NSInternalInconsiste...

java eclipse iterator debugger problem

hello, [edit: I forgot to mention that it is a JUnit Test Case i am debugging. Is that a problem?] i have a really strange problem in eclipse. (I am new to debugging in eclipse so post all what is in your mind...) When i am at a certain line it just stops to go further in the code. It remains in the same line although i am pressing F6...

How to resolve j2me contacts 'Array Out Of bound Exception' ?

Hi, I am newbie in j2me development. I have made application to retrieve contacts name,email and phone no.. I am able to fetch name and email correctly,But while it is going to fetch Phone No. , it is giving exception 'Array Index out of bound'. I have checked code again , it is written correctly.But any how it is giving exception for...

Problem while moving avd to another location

Hi! I want to move avd file to another location: android move avd -n titanium_6_HVGA1 -p c:\avd but I get as a result help for java: Usage: java [-options] class [args...] (to execute a class) etc... Oh, I just checked, I could run android list without any problem, but now I am getting the same as for "android move.." c...

php - using shorter tag won't work

I'm reading the book "PHP for absolute beginners" and I got to the part which says that this peace of php code: <?='Weird'?> yields the text inside quotes. But this isn't the case for me and I'm not sure why. Anyone knows the problem? I'm using Apache/mySQL (XAMPP) and Eclipse. ...

Visual Studio losing functions

Hi, I have been noticing, over the last few weeks, that my installation of VS2008 keeps losing items from menus. Eg: The "Advanced" sub menu from the "Edit" menu pull down is no longer there. I am not making any changes to the application, I'm not installation anything, ever, and I never mess about with the options dialogs. This morni...

A problem from a programming competition... Digit Sums.

I need help solving problem N from this earlier competition: Problem N: Digit Sums Given 3 positive integers A, B and C, find how many positive integers less than or equal to A, when expressed in base B, have digits which sum to C. Input will consist of a series of lines, each containing three integers, A, B and C, 2 ...

Jquery offset issue

Hi all, I'm trying to position some divs children of the same parent, giving offset top and offset left. It's doing it almost ok, but for some reason jquery is adding the height of the previous item to the top of the next, can someone help me? EDIT: this is my code <html> <head> <style> .earea {overflow: hidden;width: 381px;height: 46...

JW player relative path problem

i am using jwplayer on my site but the problem is that i cant play the video...there is an error.....access denied and then it shows the flv files path........ i am cofused how to use the relative path for player and flv files..... i am using windows hosting and here is the link to my video page link text and here is the code i am usin...

i've got some problems with my spinner..

So i'm starting a application and the first thing to do is make a description of a city when the city is selected. I can show the description but it make the description of all the cities on the same time and it don't come out when i select another city : it add more and more . this is my code : public class Main extends Activity imple...