Questions tagged [duplication]

180 questions
1
vote
2 answers

How to treat a table that has an alias table as an alias?

I currently have 3 tables: Drug id name DrugAlias drug_id name Patient first_name last_name drug_alias_id The Drug keeps track of the scientific name (ex: acetaminophen) and the DrugAlias, which is a child of a Drug, keeps track of…
plifor
  • 31
  • 4
1
vote
1 answer

Automator: duplicate OR copy in place

I am trying to build the following services: Change type of image, result in the same folder (image.jpg => image.jpg + image.png) Change size of image, result in the same folder (image.jpg => image.jpg + image-800x600.jpg) I am stuck on part where…
Jean
  • 7,623
  • 6
  • 43
  • 58
1
vote
2 answers

How to add more objects to my form without adding the same amount of code

I have been making a small game for fun. In the game you are a small spaceship(an image) that shoots lazer beams(shape) at an object(panel). At this moment u can only fire one lazer beam at a time because there is only one lazer beam(shape) and…
Craig
  • 548
  • 9
  • 24
1
vote
1 answer

Android WebView Hardware Accelerated Keyboard Glitch

When WebView is hardware accelerated, clicking on input field causes keyboard to appear and html is redrawed shifted and duplicated for a moment: 1) When soft keyboard is appearing WebView pans its content to bottom-left, then againt to normal…
lietus
  • 199
  • 2
  • 11
1
vote
1 answer

How can I do Memcached HA?

I use memcached to save about 5MB data. About forty percent of the data updates ever seconds, that causes about 280 qps between memcached client and server, with get and set each takes half of the queries. Except the realization of such great data…
annawhite
  • 29
  • 1
  • 4
1
vote
5 answers

Create 2 arrays - 1st has random integers, 2nd has unique random integers

I am working on a school homework problem. I need to create 2 int[] arrays. The first array int[10] is filled with random integers. The second array has the same numbers as in the first array, but without any duplicates. For example, assume my first…
Alon Minski
  • 1,571
  • 2
  • 19
  • 32
0
votes
1 answer

SQL Code for INSERT while checking of multiple keys for duplicates

I have the following table: CREATE TABLE IF NOT EXISTS `customer_list` ( `id` INT AUTO_INCREMENT, `first_name` char(4) NOT NULL, `last_name` varchar(80) NOT NULL, `phone` varchar(50) NOT NULL, `province` varchar(50) NOT NULL, …
Vidarious
  • 746
  • 2
  • 10
  • 22
0
votes
2 answers

UIScrollView duplicate information

I got an app with big UIScrollView as a root viewController. This scrollView present some other views through presentViewController or pushViewControler, doesnt matter. But when i going back to scrollView, information, that was presented last time…
Eugene Trapeznikov
  • 3,220
  • 6
  • 47
  • 74
0
votes
1 answer

Querying a database in Android causes duplicated data?

I have an activity which has a database query and it brings back 300 records from the query. Now I move to another activity and make changes in the same database. Now when I return back to the first activity and refresh the database by making the…
Some one Some where
  • 777
  • 1
  • 8
  • 26
0
votes
2 answers

C# Duplicate strings with a little change within line

For example i have strings of array like this. Below is the string of Example[0] Name\r\n Gamma\r\n ID\r\n 3F97\r\n CAR\r\n Mitsubishi EVO LAN V\r\n well i would like to duplicate this value from this string into…
Gamma
  • 331
  • 1
  • 3
  • 15
0
votes
1 answer

How can i factor out this code to avoid code duplication in C#?

I have the following code: private int AllFeb(Forecast f, IRepository repository) { return All(f, repository, f.Feb); } private int AllJan(Forecast f, IRepository repository) { return All(f, repository, f.Jan); } private int All(Forecast…
leora
  • 188,729
  • 360
  • 878
  • 1,366
0
votes
3 answers

jQuery function duplication. How can I make this shorter?

You can check page here: http://jsfiddle.net/7JhjN/ Basicly, there is a hell of duplication going on and I don't like this. I am sure there is something wrong since it's not a correct programming logic. How can I shorten this function? The system…
Aristona
  • 8,611
  • 9
  • 54
  • 80
0
votes
1 answer

What's the issue with vcard duplicates?

No software I've seen is able to synchronize contacts between Outlook and my cell without creating duplicates. One would think that someone had synchronization in mind when they thought up the format. Is it impossible for programmers to work around…
sharkin
  • 12,162
  • 24
  • 86
  • 122
0
votes
2 answers

Preventing ID duplication

I am using this below. Will it prevent ID duplication? Code: $new_generating_id = on the process page this will be generating a new id for each time the process page is being processed; $sql = "select `Message_id` from `queries_sent` where…
Sam Khan
  • 2,417
  • 5
  • 18
  • 16
0
votes
2 answers

Duplicating Object

I am trying to duplicate an object with no success. I tried Serialization Cloning both methods don't work for me. When I used serialization (I am using the technique specified here Faster Deep Copies of Java Objects) I got NullPointerException.…
Shew
  • 1,557
  • 1
  • 21
  • 36