Hi friends,
whenever i press the numbers in text filed upto 9 numbers my textfield has taken
right values but i press 10 th number.i have found duplicate number.
in my header file i declare a pressnumber is "long long int"
-(IBAction)press:(id)sender{
pressNumber = pressNumber*10 + (int)[sender tag];
phonenumber.text = [NSString stringWithFormat:@"%d",currentNumber];
}
i want to enter a phone number in my textfiled but it is not taken 10 right numbers.
Thanking you,
I would like to read the last 1 megabyte of a MP3 file and calculate SHA1 checksum for just that part of the file. The reason that I would want this is that when I'm looking for duplicate MP3's, the header info (song title, album etc.) can differ even though it's the exakt same audio file, so I figured I would be better of to checksum a part of the file at the end instead of the whole one. Is there an efficient way of doing this?
In Oracle's PL-SQL, you can declare a variable and define its type based on a table column:
declare var1 table.column%TYPE;
Is it possible to do something similar in MS SQL Server?
I searched but could not find a duplicate for this question. If there is one, please let me know and I'll refer to it and delete this.
I've coded a C# executable that uses xcopy (cmd.exe /Q /D /C xcopy [args]) to duplicate some files.
If I run the .exe by double-clicking it, the xcopy operation works every time.
If I run the .exe by double-clicking a shortcut to the .exe, the xcopy works only if the shortcut is in the same folder as the .exe.
This makes absolutely no sense to me, I wouldn't even know where to begin to find the answer.
So, you know, help.
I wont to add to mysql other tcp port that he will be lessen to
and i will be able to connect to that port from my application
i have duplicate my appliction and i runing them both from the same machine
they both connected to the mysql server that are running on the same machine
the problem is that the default port 3306 all ready taken
thanks
This question is related to Tools for matching name/address data. There is a number commercial tools provided by SAS, Oracle, Microsoft, etc., that allow to de-duplicate or merging names of individuals or companies coming from multiple sources.
However, after reading the answers to the question mentioned before, I wondered why a seemingly interesting problem didn't receive any answers mentioning open source projects that could tackle the problem.
Are you aware of any open source projects or algorithms to implement the so called "record linking", "record merging", or "clustering"?
Hi All,
I have to include a dynamic page content into my template, Say I have a left panel which gets the data dynamically through a view. Now, I have to include this left panel into all my pages but I do not want to duplicate the code for all the pages. Is there any way, I can write a single script and include it in all my templates to display the left panel in all my pages?
Thanks in advance.
Duplicate: Is there any form designer available for Google Android?
I would like to move a CheckBox, so it displays in a different location than the top-left corner under Absolute Layout inside main.xml, for 'Android'. I'm using Eclipse to edit my views. How would I do this?
On an iPhone they have a tool called Interface builder that allows you to move things in a WYIWYG fashion.
Does Eclipse have similar functionality?
Regards
ShotSimon
I execute a core data fetch which specifies a predicate as follows:
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"identifier IN %@", favoritesIDs];
When there are duplicate items in the favoriteIDs array, the fetch request only returns 1 managed object. How can I ensure that more than one instance is fetched? Thank you.
Basically I'd like to make a Dictionary work with duplicate keys without going into custom comparer implementations. There is an idea of:
Dictionary<key, List<value>>
but it still has some overhead. I wish Dictionary had "AllowDuplicates".
i'm making a program that i need help with i'm trying to duplicate impero's policy lock screen i need help i'm trying to have my program search to see if a file is there. the concept is if the file exists it will launch it,but i'm having troubles would i use background worker do search for it and if so how would i make it search for it?
if you can help that will be great
Related:
While coding, how many columns do you format for?
Is there a valid reason for enforcing a maximum width of 80 characters in a code file, this day and age?
I mostly use C, however this question is language agnostic. Its also subjective, so I'll tag it as such.
Many individual projects set their own various coding standards, a guide to adjust your coding style. Many enforce an 80 column limit on code, i.e. don't force a dumb 80 x 25 terminal to wrap your lines in someone else's editor of choice if they are stuck with such a display, don't force them to turn off wrapping. Both private and open source projects usually have some style guidelines.
My question is, in this day and age, is that requirement more of a pest than a helper? Does anyone still login via the local console with no framebuffer and actually edit code? If so, how often and why cant you use SSH?
I help to manage a few open source projects, I was considering extending this limit to 110 columns, but I wanted to get feedback first. So, any feedback is appreciated.
I can see the need to make certain OUTPUT of programs (i.e. a --help /h display) 80 columns or less, but I really don't see the need to force people to break up code under 110 columns long into 2 lines, when its easier to read on one line.
I can also see the case for adhering to an 80 column limit if you're writing code that will be used on micro controllers that have to be serviced in the field with a god-knows-what terminal emulator.
Beyond that, what are your thoughts?
Edit:
This is not an exact duplicate. I am asking very specific questions, such as how many people are actually still using such a display. I am also not asking "what is a good column limit", I'm proposing one and hoping to gather feedback. Beyond that, I'm also citing cases where the 80 column limit is still a good idea.
I don't want a guide to my own "c-style", I'm hoping to adjust standards for several projects. If the duplicate in question had answered all of my questions, I would not have posted this one :) That will teach me to mention it next time.
Edit 2
question |= COMMUNITY_WIKI
Hello! I am an MVC newbie. I'm trying to get my URLs to look like this:
/Corporate/Users/Edit/1
/Corporate/Stores/Edit/17
/Corporate/Contacts/Edit/17
/Store/Contacts/Create
/Store/Products/Edit/29
Pretty much like plain-vanilla urls, except with a user type at the front. I'm running into a lot of problems with duplicate controller names, etc.
Is there a simple way to do this? I looked briefly at Areas, but this seemed way to complicated.
I Have a function that references a specific input text box. I would like to extend the function to be used by two specific input text boxes. Rather than duplicate the code for the other text box, can anyone advise on how to reference the other?
Here it uses #Tags, but if i wanted it to reference #Tags2 also, how could I do that?
$(function () {
$('#Tags').tagSuggest({
separator: ", ",
tagContainer: 'div',
tags: ["tag1","tag2"]
});
});
I have a sample Solr schema as follows
isPublic = boolean
source = facebook| twitter | wordpress
I want to write a query which returns all documents from the index which matches either the isPublic = true or isPublic is false and source= facebook. Something like this
solrUrl/?q=blah&fq=(isPublic:true OR (isPublic:false AND source:facebook))
Is such a thing possible or should I search the index two times with each of these conditions and then combine + de-duplicate the results?
I've never seen a good list of free Java libraries.
What are some of your can't-live-without Java libraries?
Note: to keep this poll as useful as possible, please remember:
Post only one library per answer
We don't want duplicate answers, so before posting check if the library has been mentioned already
When adding a new library, provide a short summary of what it does / why you think it's useful
Possible Duplicate:
Why are we using i as a counter in loops
I've used these myself for more than 15 years but cannot really remember how/where I picked up that habit. As it is really widespread, I'm curious to know who originally suggested / recommended using these names for integer loop counters (was it the K&R book?).
Possible Duplicate:
A puzzle - a program printing its own source
In your favorite programming language, write a program that, when run, will print out its own source code!
Sounds interesting, now let's go!
ps: Literally, there is "NO" use case for this, just plain curiosity!
Possible Duplicate:
What are the benefits of using C# vs F# or F# vs c#?
There are a lot of general questions comparing functional programming vs object oriented. But I need to know the advantageous of F# over C#.
Assuming you have the same skill/experience/expertise in both C# and F#, and there are no other constraints (time, team skills, etc) when would you choose C# over F# (or vice-verse)?**
Possible Duplicate:
Can I add custom methods/attributes to built-in Python types?
In Ruby you can override any built-in object class with custom method, like this:
class String
def sayHello
return self+" is saying hello!"
end
end
puts 'JOHN'.downcase.sayHello # >>> 'john is saying hello!'
How can i do that in python? Is there a normally way or just hacks?
Possible Duplicate:
Any ideas for C++1y ?
What features would you like to see in the next version of the C++ standard? Try to include a detailed description, and if possible an example of the syntax.
Please list only one feature per answer.
I do have thousands of urls in my database. what I want to do is display all urls in multiple pages say number of URLS per page is 100 and alphabetically then when ever a user search for a URL info it should get updated on relevant page. for example if it is google.com then it should get updated on "G" page and no duplicate entry. how can I do this with PHP and MySQL??
Hi
I have a list of points as shown below
points=[ [x0,y0,v0], [x1,y1,v1], [x2,y2,v2].......... [xn,yn,vn]]
Some of the points have duplicate x,y values. What I want to do is to extract the unique maximum value x,y points
For example, if I have points [1,2,5] [1,1,3] [1,2,7] [1,7,3]
I would like to obtain the list [1,1,3] [1,2,7] [1,7,3]
How can I do this in python
Thanks
I am developing an app that keeps track of items going in and out of factory.
For example, lets say you have 3 kinds of plastic coming in, they are mixed in various ratios and then sent out as a new product. So to keep track of this I've created following database structure:
This is very simplified overview of my SQLAlchemy models:
IN <- RATIO <- OUT <- REPORT ITEMS -> REPORT
IN are products coming in, RATIO is various information on measurements, and OUT is a final product. REPORT is basically a header model which has a lot of REPORT ITEMS attached to it, which in turn relate it to OUT products.
This would all work perfectly, but IN and RATION values can change. These changes ultimately change the OUT product which would mean the REPORT values would change.
So in order to change an attribute on IN object for example I should copy that object with that attribute changed.
I would think this is basically a question about database normalization, because i didn't want to duplicate all the IN, RATIO and OUT information by writing it in REPORT ITEMS table for example, but I've came across this problem (well not really a problem but rather a feature I'd like for a user to have).
When the attribute on IN object is changed I want related objects (RATIO and OUT) automatically copied and related to a new IN object.
So I was thinking something like:
Take an existing instance of model IN that needs to change (call it old_in)
Create a new one out of it with some attributes changed (call it new_in)
Collect all the RATIO objects that are related to old_in
Copy each RATIO and relate them to a new_in
Collect all the OUT objects that are related to old RATIO
Copy each OUT and relate them to a new RATIO
Few questions pop to mind when i look at this problem:
Should i just duplicate the data, does all this copying even make sense?
If it does, should i rather do it in plain SQL?
If no what would be the best approach to do it with Python and SQLAlchemy?
Any general answer would suffice really, at least a pointer in right direction.
I really want to free then end user for hassle of having create new ratios and out products.