hi i have a table as follows id,school,address,city,phone,email,fax . There is almost 40 cities . I need to select 1 entry from each city. can any one guide me
Given a latitude and longitude, what is the easiest way to find the name of the city and the US zip code of that location.
(This is similar to http://stackoverflow.com/questions/23572/latitude-longitude-database, except I want to convert in the opposite direction.)
Related question: http://stackoverflow.com/questions/158557/get-street-address-at-latlong-pair
Okay, so I've figured out how to get my external ip using wget:
wget -q -O - http://whatismyip.com/automation/n09230945.asp
that outputs the ip to the command console. adding currentip.txt to the end will write it to a text file. But what I want to do is use
netsh interface ip set address name="Local Area Connection 2" source=static addr=[WHAT DO I PUT HERE]
Also, a way to make the command prompt not flash would be nice too :)
The following code raise a keyError exception:
addr_list_formatted = []
addr_list_idx = 0
for addr in addr_list: # addr_list is a list
addr_list_idx = addr_list_idx + 1
addr_list_formatted.append("""
"{0}"
{
"gamedir" "str"
"address" "{1}"
}
""".format(addr_list_idx, addr))
Why?
Using python 3.1. Thanks.
hi guys,
i wonder if it is possible to create a bookmarklet to click on and the current webpage scrolls to the bottom!
javascript:function%20scrollme(){dh=document.body.scrollHeight;ch=document.body.clientHeight;if(dh>ch){moveme=dh-ch;window.scrollTo(0,moveme);}}
if i create a new bookmark and paste this as address nothing happens. I actually have no idea how to run javascript within a bookmarklet, however i just bookmarked the css-tricks Printliminator
maybe you could help, i would love to have a bookmarklet like this!
Is it posibble to select 3 tables at a time in 1 database?
Table 1: employee
-- employee_id
-- first_name
-- last_name
-- middle_name
-- birthdate
-- address
-- gender
-- image
-- salary
Table 2: logs
-- log_id
-- full_name
-- employee_id
-- date
-- time
-- status
Table 2: logout
-- log_id
-- full_name
-- employee_id
-- date
-- time
-- status
I wanted to get the value of employee table where $id of selected. Then the $id also get the value of log.time, log.date, logout.time, and logout.date.
I already try using UNION but nothing happens.
I want to use PHP to get the URL of the page to which the following address redirects:
http://peacecorpsjournals.com/journal/6731
The script should return the following URL to which the URL above redirects:
http://ghanakimsuri.blogspot.com/
I have website http://waycoolblog.com . but i cannot access through its ip address
http://74.220.219.56/
why is this happening. ?
My main question is whether this is a common thing. in my app am trying to the resolve the sitename myself and trying to connect with the ipaddress instead of sitename.
I want to makesure this that works properly.
Thanks.
Hi folks,
I have name, phone number and E-mail infomation of a contact. I just want to insert the additional email and phone for the existing contact. My questions are
How to find the contact is already existing or not?
How to insert the values on the additional or secondary address option?
Thanks in Advance.
First off, my question was a little vague or confusing since I'm not really sure how to phrase my question to be specific. I'm trying to query a database of stockists for a Knitting company (school project using PHP) but I'm looking to print the city as a heading instead of with each stockists information.
Here is what I have at the moment:
$sql = "SELECT * FROM mc16korustockists where locale = 'south'";
$result = pg_exec($sql);
$nrows = pg_numrows($result);
print $nrows;
$items = pg_fetch_all($result);
print_r($items);
for ($i=0; $i<$nrows2; $i++) {
print "<h2>";
print $items[$i]['city'];
print "</h2>";
print $items[$i]['name'];
print $items[$i]['address'];
print $items[$i]['city'];
print $items[$i]['phone'];
print "<br />";
print "<br />";
}
I'm querying the database for all of the data in it, the rows being ref, name, address, city and phone, and executing it. Querying the number of rows then using that to determine how many iterations for the loop to run is all fine but what I'd like to have is for the h2 heading to appear above the for ($i=0;) line.
Trying just breaks my page so that might be out of the question. I figure I'd have to count the number of entries in 'city' until it detects a change then change the heading to that name I think? That or make a heap of queries and set a variable for each name but at point, I might as well do it manually (and I highly doubt it would be best practice). Oh, and I'd welcome any critiques to my PHP since I'm just starting out.
Thanks and if you need any more information, just ask!
P.S. Our class is learning with PostgreSQL instead of MySQL as you can see in the tags.
hi,
i having more than Three web services,
In that one is master site,and Others are client sites.
In My User Interface One Text box is Available ,In that text box i need to give Destination End Point address
from that Text box Value i need call the Client Service.
for Example:
Client1 end point Service Name:
http://localhost:1524/WebServiceService.svc"
Client2 end point Service Name:
By
Rajagopalk
http://localhost:8085/WebServiceService.svc"
if i give "localhost:1524" in Text box Client1 Service will call,
if i give "localhost:8085" in Text box Client2 Service will call,
I'm testing a Person class that models a person with name, address and date of birth.
How do I set dob (date of birth)?
This doesn't work:
Person a = new Person();
a.setDateOfBirth (01/08/1985);
In continuation off of this question, what are the PHP statements I need to accomplish this:
curl -is -F 'J:A-login=BTDT::Action::Login' -F 'J:A:F-address-login=EMAILADDRESS' -F 'J:A:F-password-login=PASSWORD' http://hiveminder.com/splash | grep -o 'JIFTY_SID_HIVEMINDER=[0-9a-f]\+'
The flags and fields are still mysterious, and I've not the time presently to swim through docs to figure out how this translates. I do at least understand the | grep ... portion, though.
I am building a web application which will store general details (address, email, landline....) about my company's clients.
What security measures should I put in place to comply with the Data Protection Act principles?
Is there anywhere a specific list of measure to put in place?
Sorry I forgot to mention In UK.
How can I wait for the contact to be chosen in my address book, before going on?
Hereunder the code I use
BPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc] init];
picker.peoplePickerDelegate = self;
[self presentModalViewController:picker animated:YES];
//following code
Right now it just proceeds with executing the code...
Thanks
How can I get client side information using either Javascript or Java Servlets?
Client side information such as client's computer name, its IP Address etc.
Thanks in advance.
I want to extract email addresses from a large text file. what is the best way to do it?
My idea is to find '@' in the text and use Regex to find email address into substring at (for example) 256 chars before this position and length of 512.
if i send email from my smtp server, For Example in code if i set From to [email protected] and sent to an email address, than the recipient think that mail comes from anydomain. so how to confirm email source?
I am trying the following but every once in awhile the nativeApp is not defined.
var nativeApp:Object = getDefinitionByName("flash.desktop.NativeApplication");
nativeApp.nativeApplication.exit();
I am confused why sometimes getDefinitionByName("flash.desktop.NativeApplication") resolves and other times it does not.
I am trying to resolve this problem to address the following issue in flexcover - http://code.google.com/p/flexcover/issues/detail?id=33
this code is supposed to be used in VB. port number and IP address is available. how to prevent packets from entering is to be known. Its similar to the work a FireWall does.
Does anyone have some recommendations on how I can find databases for random things that I might want to use in my application. For example, a database of zip code locations, area code cities, car engines, IP address locations, or whatever. I'm just asking generally when you decide you need a bunch of data where are some good places to start looking other than google?
Hi
I want to create an iPhone app which makes calls to a web service. For testing, I want to first create the API calls on my mac (server running XAMPP) and if it works fine there I want to port it to the actual server.
If my iPhone and mac are on the same network, can I access the web service using the IP address of my mac?
Thanks.
i wonder what the difference between a library and a plugin is?
if a component creates a database (maybe comes with a .sql file or creates through a method) could it still be a library or is it called a plugin or module?
cause i am creating a address book component and it provides methods to insert and read records in database. i don't know if i should put it in library folder or plugin folder.
please shed a light on this.
thanks