problems

CakePHP memcache items expire too early

Hi, I got very strange behaviour with cackephp engine = memcache. The problem is that the cached items always expire earlier than it has. Setting engine = file fix the problem but this is not what i need. Any help will be appreciated! P.S. Im using cakephp 1.2.3.8166 stable. ...

Unsolved problems in Software Engineering

In a recent question on unsolved issues in Computer Science, one answer was, probably correctly, criticised for not strictly being a CS problem, but a software engineering one. In software engineering we have best practices, patterns, methodologies and templates, perhaps because it's quite a woolly area - probably more art than science...

Are There Good Sites/Blogs about CodeJam Problems & Solutions ?

I'm a programmer with some knowledge in C++, Objective-C and stuff like PHP. Google CodeJam sounds interesting. Any blogs/sites with Model Problems for CodeJam and their solutions for practice ? ...

Excel Graphs not printing the right size in Word 2007

Hi there I'm highly annoyed because I've been trying to print excel charts in word and I'm not getting any love. I have 170 graphs or so that need to be put into word (so I can have 2 per page) and then printed as an Appendix to a report. I'm transferring the graphs by dragging the actual excel file and dropping into word as this is the...

values are scrambled when we call a RFC method in .net with sap .net connector 2.0

With .NET SAP Connector 2.0 we invoke a RFC Method. When we pass only one character in the parameters, the values are stored in the SAP system and readable when we query the table in the SAP system. When we pass only more then one character in the parameters, the values are stored in the SAP system and not readable when we query the tab...

Does anyone know where I can find Artificial Intelligence basic problems for practice?

I would prefer if these problems found are more oriented to c++... ...

C++ interview preparation

I have a Phone interview coming up next with with a company which works in financial software industry. The interview is mainly going to be in C++ and problem solving and logic. Please tell me the method of preparation for this interview. I have started skimming through Thinking in C++ and brushing up the concepts. Is there any other way...

Which are practically unsolvable problems in programming world?

Travelling salesman problem is said to be practically "unsolvable" when number of nodes increase. What other programming problems that are considered unsolvable? ...

C Problems and Solutions

I'm looking for a series of C problems (with solutions) that I can use to build my C skills. I already understand the basics of the language, the syntax, and the semantics. I am looking for a series of problems that will help me hone my skills, not a set of simple questions that you'd see in an introductory programming class. ...

Binding redirect problem in .net

I have a class library called "MyAssembly" that is internally referencing a.dll, b.dll of version 3.1.1.0; I have build the project which outputed MyAssembly.dll. On a different system (box) I have created a web application project and referenced the MyAssembly.dll. the new system has new versions of a.dll and b.dll 4.0.0; I used binding...

[Cufón] Cufon.now(); causing problems in Google Chrome

When using Cufón the documentation recommends using the following snippet with IE in order to eliminate a small delay in rendering the replacing font. <script type="text/javascript"> Cufon.now(); </script> While testing it I never experienced any delay with IE7+ but the issue occur using Google Chrome. If I put the snippet on, Chrome ...

Problems with behaviors in Doctrine

Hello Stack Overflow! I have a problem in one of my projects, where I'm using Doctrine as an ORM. For some reason, when rebuilding the models and database structure, Doctrine ignores the behaviors and relations, I define in one of the table definitions. The YAML table definition looks like this: ... User: actAs: Timestampable...

Jquery problems in IE8

Jquery runs fine in Safari and Firefox. In IE8 (using the Developer Tools), I get the error: "Could not get the position property. Invalid argument jquery-1.3.2.js, line 12 character 12949". Using debugging, the script highlights the characters {J[G]=K}. I have no idea what this does, but it seems to cause the problem! The result is whe...

What are some fun programming competition questions?

When I was in university, I helped organize a programming competition for Computer Science students. I believe we had 4 questions in total and allowed an hour for each one. The best received question was: Sort a series of integers such that the order goes from lowest-highest-lowest. eg. If given 1,2,3,4,5,6,7,8,9,10, the correct sor...

Extracting unique caller information in java

What I want to do is implement some basic security by checking not only what class has called a particular method, but also, which instance of that class. I tried StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace(); but that obviously only gives me the class name. The problem with allowing/requiring th...

Problems with stage.displayState (it's null even after assignments). Fullscreen AS3.

Relevant things: I had fullscreen code working before I did a security update on the flash player. Nevertheless, I still can fullscreen Youtube right now I'm doing the fullscreen activation in response to user clicks (therefore no security is blocking it AFAIK) stage.displayState is null all the time, in the main timeline and even afte...

Haskell -- "The last statement in a 'do' construct must be an expression"

Like it says in the tile: what does The last statement in a 'do' construct must be an expression mean? I ended my do block with a putStrLn like it shows in several examples I've seen, and i get an error. Code: main = do args <- getArgs file <-readFile "TWL06.txt" putStrLn results And i just realized why it's like that.......

Compiles fine but have problem publishing whit updatable option

Hello evey one, I have a web site developed on VS2005. that compiles fine. But when i try to publish it whit the "Allow this web site to be updatable" i get the following compiller error: error BC30002: The type 'ASP.ucDireccion' is not defined. The problem seams to be related to a user control im accesing its public properties and me...

C++ Swapping an array of integers passed through an int& parameter

Hi, I need to swap a couple of integers in the format int i[2] using a void swap(int& x) function. As you see the function takes an argument of type int&. Here is non-working version of the function: int i[2] = {3, 7}; void swap (int& x) { int temp; temp = x[1]; x[1] = x[0]; x[0] = temp; } int main() { cout << i[0...

How can I diagnose "Cannot determine peer address" in my Perl TCP script?

I've this little script which does it's job pretty well but sometimes it tends to fail. It fails in 2 cases: with error send: Cannot determine peer address at ./tcp-new.pl line 52 with no output or anything, it just fails to deliver what it got to connected Tcp Client. Usually it happens after I disconnect from server, go home and con...