problems

What sort of math will help me solve programming problems?

I have been looking at various programming problems and algorithms in an effort to improve my programming and problem solving skills. But, I keep running into description like this one: "Let A = [a1,a2,...,an] be a permutation of integers 1,2,...,n. A pair of indices (i,j), 1<=i<=j<=n, is an inversion of the permutation A if ai>aj. We a...

jQuery .animate background-position not working in Firefox on Mac

Hi folks, We've setup a cute little moving clouds animation here: http://thechildrensguide.harmonyapp.com/?password=test It works nicely in Safari on Mac but doesn't seem to work on Firefox. Any suggestions on what we've done wrong? Also, does this technique use a lot of resources? Safari's CPU usage jumps from around 4% to 13% when ...

UIWebView load problems but Safari works fine

UIWebView fails to load a web page (ex:http:/www.ncm.com), but Safari loads it fine. It reports a tag mismatch and only loads half the page. But Safari and other browser handle the content correctly? Is UIWebView faulty? ...

NHibernate object id is returning incorrect value

I am using NHibernate and this is not a Homework. Suppose I have retrieved an object of type Faculty(suppose Faculty of Engineering in the University of XYZ) from the database. It has 5 child objects associated with it of type Department and should contain IDs 2,4,5,8 and 9 according to the database-table. My 1st problem is, I see that...

What do people find difficult about C pointers?

From the number of questions posted here, it's clear that people have some pretty fundemental issues when getting their heads around pointers and pointer arithmetic. I'm curious to know why. They've never really caused me major problems (although I first learned about them back in the Neolithic). In order to write better answers to thes...