I'm writing an iPhone application and trying to determine how to find a business name/address from a user's current GPS location (longitude/latitude). For example, if someone if using the application from inside a Starbucks, how can I find this out from their location? Is there a way to do this using mapkit or any API/Webservice? Many Thanks!
Hi, I'm trying to build a login form using OpenID Auth. I'm using sample code from: http://openidenabled.com/php-openid/ But I only get user's email address when auth with account on myopenid.com I want get returned email when auth link "google.com/accounts/o8/id" How can I do? Thank you very much.
public class Foo{
public string Prop1 {get;set;}
public string Prop2 {get;set;}
public Foo(Foo source) {
this.Prop1 = source.Prop1;
this.Prop2 = source.Prop2;
}
}
public class Main
{
private List<Foo> items = new List<Foo>();
public IEnumerable<Foo> GetItems() {
foreach (Foo foo in items) {
yield return new Foo(foo);
}
}
}
I'm trying to create a UL/LI horizontal list with background images only, with no text link visible. The reason for this is so that when I over over a list item, the background would rollover and when I click on it the current item would toggle. basically it is a horizontal menu with background images that can be toggled; mimicking the job of a radio button.
I have done it like this;
<div id="options">
<ul id="list">
<li class="active"><a href="#" class="option1 active" id="link1"><span>XXXXX</span></a></li>
<li><a href="#" class="option2" id="link2"><span>XXXXX</span></a></li>
<li><a href="#" class="option3" id="link3"><span>XXXXX</span></a></li>
</ul>
</div>
The CSS for option1, option2 and option3 simply define the background image.
#options LI{list-style-type: none; display : inline}
a.option1{ background:url('../images/option1.png') no-repeat;}
a.option2{ background:url('../images/option2.png') no-repeat;}
a.option3{ background:url('../images/option3.png') no-repeat;}
a.option1, a.option2, a.option3{
background-position:top;
display:inline;
width:230px;
height:40px;
}
And the hover & active css part simply sets the background position like so-
a.option1:hover, a.option2:hover, a.option3:hover{
background-position:bottom;
}
a.active{
background-position:bottom !important;
}
This works fine, however on top of the background I get the words "XXXXX" as text links and I'm struggling to hide them. They are interfering with the hover action and preventing rollover (even if I replace XXXXX with a period or something short).
I can't just remove the text from the link as it would hide the whole LI element. I have tried to use
display:none; or text-indent:-999px
but then the whole UI element becomes invisible. I can't understand what I'm doing wrong.
Are you able to help?
Thanks
It is aligned in Chrome and Firefox but in IE7 it looks like this:
http://ada.kiexpro.com/html/list.html
(I already fixed the z-index issue I just want to align the list vertically.
In my model I have these entities:
public interface IOrder
{
string Name {get;set;}
List<IProduct> OrderedProducts {get;set;}
}
public interface IProduct {}
In partial class generated by linq-to-sql I map these properties on my entity properties:
public partial class Order : IOrder
{
List<IProduct> OrderedProducts
{
get { return this.L2SQLProducts.Cast<IProduct>.ToList(); }
set { this.L2SQLProducts = ??? }
}
}
How should setter look like?
How to list records for a query and to display 'no records' when no rows returned using a single query?
Now i'm using a count(*) query or using the mysql_num_rows and then another query in different result set to list data..
Please tell me whether its possible with a single query..?
Hi,
I have a FreeBSD machine running on a virtual machine. I am using SUN Virtual Box.
I need to set static IP address to this machine. So that I can access this machine.
Is there anyway to do this ?
SELECT name FROM sys.databases -- this can list all database name in the server
user database
SELECT * FROM INFORMATION_SCHEMA.TABLES
-- these two line can list the table for one particular database
But how can I output the results like below?
Database Table
--------- -------------
db1 t1
db1 t2
db2 t1
... ...
For example, I have 1000 tests. I run them and 200 fail. I want to create a test list fot the 200 failed list. What is the fatest way to do it?
Thanks guys.
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,
After authenticating the user i need to get the users friends list
I got the user name and photo by below code
<'fb:profile-pic uid='loggedinuser' facebook-logo='true'<'fb:profile-pic
"Welcome, <'fb:name uid='loggedinuser' useyou='false'<'/fb:name.
I need to display friends list here ,Please suggests how to do this with uid attribute in hand .
I'm reading a comma-delimited list of strings from a config file. I need to check whether another string is in that list. For example:
"apple,banana,cheese"
If I check for "apple" I should find it, but if I check for "app" I should not.
What's the most straight-forward and concise way to do this? It doesn't have to be fast.
(I'll add my solution as an answer, but I'm hoping someone has something better.)
Hi guys,
I'm trying to work out an app design in my head and I would like the user to be able to click there destination address on the map of there area.
If I know the user is in Liverpool is it possible to pop up the map over liverpool and then allow the user to select on the map where they wanna go, and the google map/api return the street or the name of the area?
I've never used googlemap/api yet so just wondering if this kind of thing is possible on the iphone yet.
Many Thanks
-Code
As a result of a conversation with a colleague today, I've been searching (unsuccessfully) for a large'ish list of what technology stacks are being used popular websites and standalone applications today. We're aware of the big ones like Facebook (php/ ), Twitter (scala/cassandra), Youtube (python/?), Digg (php/cassandra), stackoverflow (.net mvc/sqlserver), but we're looking for a more complete list. It would also be interesting to hear about any stats for desktop apps also?
Can anyone help?
Hi,
I am using Google API Ver 2 for .NET.
I want to access list of domains users with there information like userid and password.
Ho w can display list domain user's using Admin's credential?
Thanx
Sorry this is not a very well defined question, I am thinking about an ideal for a product, so need to know what is possible...
Say I am standing at the fount door of a house, given the GSP coordinates from a smart phone, how can I find the address I am standing at?
Is GPS good enough for this?
How much does the data/service I need to use cost?
What other questions should I be asking about this?
I tried to get os version of remote computer using ip address with WMI ,It shows "RPC server unavailable" error.
If anybody have solution for getting remote system information without WMI in vbnet,
Please help me
Calling concat on vectors returns a list. Being a total noob I would expect that the result would also be a vector. Why the conversion to list?
Example:
user=> (concat [1 2] [3 4] [5 6])
(1 2 3 4 5 6)
; Why not: [1 2 3 4 5 6] ?
I am working on a helper macro that look into the list function on a given module name on the active excel workbook.
Ex: I have a module name "Module1". Inside this module has the following function or sub
Sub Sub1()
End Sub
Sub Sub2()
End Sub
Function Func1()
End Function
Function Func2()
End Function
Is there a command or routine that can return the list of Function and Sub names?
I have a property in umbraco that uses a dropdown data type with a set of prevalues that you can select from.
How do I retreive a list of all the possible prevalues that are in this drop down list?
Assuming I have a list of DLL's an executable loads, How do I get a list of all the functions defined by those DLL's?
EDIT: preferably without the use of GUI's or huge programs like Visual Studio
Thanks,
I want to get a list of all the forms in the project i am running a form from .
Suppose i am running a project which has 4 forms
1.Form1
2.Form2
3.Form3
4.Form4
and i want to retrieve the list of them for further direction which form to direct to