ok im gonna try my best to explain my problem i have this program where u can select 5 balls when u select one you can take it with you while you have the mouse button pressed and its within the ball radius.
The problem is that i need a way to make the ball go up when the user stop pressing the mouse button like he sent it to float in the air then…
I want to initialize an array and then initialize a pointer to that array.
int *pointer;
pointer = new int[4] = {3,4,2,6};
delete[] pointer;
pointer = new int[4] = {2,7,3,8};
delete[] pointer;
How can I do this?
My shop is trying to formalize the release management process for an OSS product we maintain. It's a sort of a web development framework/CMS kind of thing, as in it's a product that other projects are built on top of. This makes clear communication about the versioning system especially critical for developers that are using the tool.
I'm hoping…
Below is my code. For some reason, after the user logs into the little pop-up window, the little window will redirect back to '/" with a lot of session JSON junk at the end of the URL.
How do I make it so that the little window closes, and my parent window refreshes?
<script…
Hi;
I'm trying do save data to database by help of Hibernate , in Java. But when i run codes , i had lot of problems. Can anyone help me about that?
Thanks...
My code:
package org.ultimania.model;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import…
For example in git you could do
git commit --allow-empty -m"I like what this guy did"
I was considering using commits as a commenting system,
and I just wanted to see how that would go over.
What sort ort of programming paradigm (sockets,RPC,Web services,Distributed objects middleware) is usually used between web server and application server in PHP n-tier architecture?Whats the difference of using DOM or Web services for this purpose?
Basically I'm using Flash to connect to a Java server.
Despite my Java application replying to the , in the Flash debug log it lists (not sure about the order as there are lots):
* Security Sandbox Violation *
Connection to 192.168.1.86:4049 halted
- not…
Hi guys, I have a bit of an issue, and to be honest I don't think there's an answer, but I'll give it a try anyway.
So I have two databases [A]-Company and [B]-Product. Both databases have a Country table which is then linked to other tables in each individual…
How a programming call is usually made between web server and application server in a PHP n-tier architecture when the servers are on separate machines in the network?Whats the difference of using DOM(Distributed object middleware) or Web services for this…
If you ask a DB2/zOS engine DBA a question about DB2's behavior, the DBA will refer to the DB2 engine as "he" much the way a sailor uses "she" to refer to his ship.
For example: "Once you fill the freespace, DB2 still wants to keep those rows in cluster…
Hi,
Is it possible from Spring to inject the result of calling a method on a ref bean?
I'm trying to refactor some cut/pasted code from two separate projects into a common class. In one of the projects, the code lives in a class I'll call "MyClient"…
I need some scripts inside an existing site's scripts.js.
This site has been online for ages, and I can not touch the scripts file.
I am including it standardly in another page. There are numerous jQuery calls in the scripts file. The place I include…
I have a table whose columns are varchar(50) and a float - I need to (very quickly) look get the float associated with a given string. Even with indexing, this is rather slow. I know, however, that each string is associated with an integer, which I…
I've recently learned how to join 2 arrays using the + operator in PHP.
But consider this code...
$array = array('Item 1');
$array += array('Item 2');
var_dump($array);
Output is
array(1) { [0]= string(6) "Item
1" }
Why does this…
Hello,
I'm writing several C programs for an embedded system where every bit of performance we can squeeze out will matter. Part of that is accessing log files. When determining if a file exists, is there any performance difference between…
I am researching possibilities of using memcached as a session storage for a system built on CodeIgniter. Has anybody done this before(that's probably a stupid question :) and if so what's your experience folks? Have you used any existing…
I'm having a nightmare uploading my site to the production server. The site runs fine locally and on a staging server (exactly the same server, settings as the production site). However when I deploy to production I'm getting a 404 error…
Hey there!
I have very long integer sequences that look like this (arbitrary length!):
0000000001110002220033333
Now I need some algorithm to convert this string into something compressed like
a9b3a3c3a2d5
Which means "a 9…
Hi all,
I need a Cxf client which can deal with HTTPS wsdl url.
The cxf documentation isn't really big, so i would appreciate some help.
Is there any example of what i want ? google isn't my friend today :(
Thx for helping me.
Is it possible to turn result sets obtained in LINQ through a stored procedure or function call into a "live" set of objects of which I can retrieve Foreign Key related objects?
If, for example, my stored procedure returns a set of…
I working with jQuery and I need to get anytime and anywere exception (with any operation), if I attach some event or try to perform some action with elements (got from selector) that don't exist.
Is there some internal "strict"…
I have a serializable POCO called DataUnification.ClientData.ClientInfo in a .NET class library project A.
It's used in a parameter for a web service defined in project B:
public XmlDocument CreateNewClient(ClientInfo ci,…
I am working on a Regex pattern for searches that should allow optional '+' sign to include in the search and '-' sign to exclude from the search. For example: +apple orange -peach should search for apples and oranges and…