I'd like to graphically indicate several status of large collections of lat/lng positions on a map. Once generated the status of each remains static (so no updates required). The idea was to use one icon per dimension (e.g. open/closed, happy hour etc.; a shadow icon is not that important) and to finally overlay them (using anchor points...
Hi frieds,
I have created tool bar and set the UIBarbuttonItem in that tool bar.When i clicks the bar button, i have just removed one custom view. I want to avoid the multiple touches of the bar button items, because sometimes the user clicks the bar button items more than one.( It happens some time only).
Here my sample code,
UI...
Hi there,
I have an interesting problem and I was looking for a solution; Hoping that someone here can help me out.
(I did read through related questions on this topic but they have solutions which are not relevant to my situation).
Details are:
I have two activities. One is a simple list view to list available audio tracks. Another ...
How does one make Zend Db cascade delete multiple levels of the hierarchy? For example:
dealers -> products -> attributes
deleting one dealer should go all the way down to attributes, and now it doesn't :(
Any thoughts?
...
I think I should know this, but my mind has gone blank. I'm making an app that has a few hundred small sound files and I want it to play a certain file dependent on a String I pass to the function. Where I hit the brick wall is getting the resId of the sound file.
I am using this code:
MediaPlayer mp = MediaPlayer.create(context, R.raw...
If I have this code, the string "test" is echoed. This is in PHP 5.3. Is this some oversight that shouldn't be relied on, or is it some way of achieving multiple inheritence in PHP?
class Test1
{
function getName()
{
return $this->name;
}
}
class Test2
{
public $name = 'test';
function getName()
{
...
Say I have an entity A in one table and an arbitrary number of other entities B related to it in other table.
I have a situation where I need to replace all those B entities with a list of new B entities in a way that there should be no duplicates.
Simple way would be to issue a DELETE query first to remove all the old ones and then a...
Hi,
I am making a planner application for the iphone that can work online to store tasks in a mysql server. However, when I attempt to synchronise the two databases I have a problem. The thing seems to be that I can't insert more than one set of values at once into the iPhone database:
INSERT INTO planner (title, duedate, submitdate, su...
Hello I want to connect DROID to two device via bluetooth(Nexus One and another bluetooth device(not mobile phone))
I've done succeful connection to Nexus One. As for example I 'm using BluetoothChat. Now I have problem with multiple connection.
Could you help me please? How should I create and manage multiple connection via bluetooth? ...
I have 3 tables:
Dealerships
------------
ID, Name, Website
Locations
------------
ID, DealershipID, Address, Ect.
Contacts
------------
ID, LocationID, Name, Ect.
So the relationship shows that we have dealerships who have multiple locations (Example: Weed Chevrolet of PA, Weed Chevrolet of NJ) and then each location has its own co...
I've got an iPhone app requesting an API, and it uses a nested param structure to pass in a username and password to login.
In my Rails controller, I'm successfully retrieving this information normally using:
username = param[:session][:username]
I'd like to test my API from shell, using cURL. But I can't figure out how to provide n...
I want to build hits engine that simulate users hits to specific Url,
I use curl_exec call to the same url in a loop.
How can I improve the performance of this script ?
What is the right way to do this ?
What i do until now is :
$options = array(
CURLOPT_RETURNTRANSFER => true, // return web page
CURLOPT_HEADER => tru...
I have 3 employers IDs: 1, 2 and 3. I am generating tasks for each one by adding a line in database and in column "for_emp" I insert IDs I want to assign this task for and could be all 3 of them separated by comma. So let's say I got a task and "for_emp" is "1,2,3", the employers IDs. If I would like to select all tasks for the ID 2, wil...
hi,
i'm struggling to create a jpa query that makes use of several tables. i cannot seem to understand how to join the tables together. this is the query i am trying to create:
SELECT algm.m_l_i, algnsm.n_s_i
FROM algm, alg, algnsm, mal
WHERE algm.l_g_i = alg.l_g_i
AND alg.l_g_t = 'xxx'
AND algnsm.l_g_i = algm.l_g_i
AND mal....
Hi.
I'm using MERGE in my query and i'm making INSERT on clause WHEN NOT MATCHED THEN, but then i would like to get the inserted row identity and make another INSERT to some other table. Query for now is:
ALTER PROCEDURE [dbo].[BulkMergeOffers]
@data ImportDataType READONLY
AS
SET NOCOUNT ON;
DECLARE @cid int = 0
MERGE dbo.oferta AS ta...
Hi everybody,
I need a solution to run some PHP code on multiple domains. The domains are hosted on different servers, and the base PHP code isn't on any of them, let's say a dev server.
All I could come up with was using file_get_contents on a file hosted on the dev server, and running that code with eval. So on every domain i have an...
Hey guys,
I want to start the gallery via intent and want to get the results in my onActivityResult method.
All works fine if i click on one pic.
The question ive got now is, how do i get the results, if i choose more than one picture in the gallery?
If found hcpl´s code, which does it for one picture:
public class BrowsePicture extend...
Hey all,
I have a script I'm working out to upload up to 10 files at once. I have 10 seperate inputs in my html:
<?php
for($i=0;$i<10;++$i) {
$num = $i+1;
echo '
<span>'.$num.'</span><input type="file" name="photo'.$i.'" />
';
}
?>
And then I have my uploader which I have used ...
Here is the code i made, im expecting it to work but somewhere there must be an error. I can't figure out myself, Please help.
<?php
if(isset($_POST['submit'])){
$max_size = 500000;
$image_upload_path = "images/products/";
$allowed_image_extension = array('jpg','jpeg','png','gif');
for($i=0;$i<2;$i++)
{
...
Is there a way to configure a container in multiple configuration files?
For instance, I want to register types for a container in a web.config file located at the root and also register types for the same container (and others containers) in the web.config file of sub-folders.
And also register other types for others containers in a...