How do I use doGoogleSearch to connect to Google API
Hello all,
I am trying to do my final year project and I am currently having trouble connecting to the Google API using doGoogleSearch. I dont know how to use http://api.google.com/GoogleSearch.wsdl to fill in the parameters for the doGoogleSearch and then I have to use the http://api.google.com/search/beta2 to connect to Google and perform the test. Any help would be appreciated or code or links
Thanks in advance rgds,
Tony
Here is my code so far...................................
package tony_buckley_project;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.net.URI;
import java.net.URLConnection;
import java.util.*;
import java.io.*;
import org.xml.sax.*;
import org.xml.sax.SAXParseException;
import org.xml.sax.helpers.DefaultHandler;
import javax.xml.parsers.SAXParserFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import com.google.soap.search.GoogleSearch;
import com.google.soap.search.GoogleSearchResult;
import com.google.soap.search.GoogleSearchFault;
import com.google.soap.search.GoogleSearchResultElement;
import com.google.soap.search.*;
import javax.xml.soap.*;
import javax.xml.soap.SOAPConnection;
import javax.xml.soap.SOAPConnectionFactory;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPMessage;
import javax.xml.soap.SOAPPart;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPElement;
import org.apache.soap.util.xml.*;
import org.apache.soap.*;
import org.apache.soap.rpc.*;
import org.w3c.dom.*;
import java.io.FileInputStream;
import javax.xml.transform.stream.StreamSource;
import javax.xml.messaging.URLEndpoint;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.Source;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.*;
* <p>Title: Mr. Tony Buckley</p>
* <p>Description: </p>
* <p>Copyright: Copyright Tony Buckley (c) 2004</p>
* <p>Company: Cork Institute of Technology </p>
* @[email protected]
* @version 1.0
public class Applet2 extends Frame implements WindowListener , ActionListener
TextField searchField;
Button search , quit;
Canvas0 canvas;
public Applet2()
super();
//Set up basic window
setTitle("Tony Buckley Final Year Project");
setBackground(Color.white);
setSize(500 , 400);
addWindowListener(this);
//Set up area with buttons
//Search button
Panel p1 = new Panel();
p1.setLayout(new FlowLayout());
searchField = new TextField("" , 15);
p1.add(searchField);
search = new Button("Search the web for results...");
p1.add(search);
search.addActionListener(this);
//Quit button
Panel p2 = new Panel();
p2.setLayout(new FlowLayout());
Button quit = new Button("Quit");
p2.add(quit);
quit.addActionListener(this);
//Set up search results area
Canvas0 canvas = new Canvas0();
add("Center" , canvas);
Panel p4 = new Panel();
p4.setLayout(new GridLayout(2 , 1));
p4.add(p1);
p4.add(p2);
add("South" , p4);
}//End of constructor method public Applet2()
public void doGoogleSearch()
String key;
String q;
int start;
int maxResults;
boolean filter;
String restrict;
boolean safeSearch;
String lr;
String ie;
String oe;
public static void main(String[] args)
Applet2 app = new Applet2();
app.setVisible(true);
public void actionPerformed(ActionEvent event)
//Deals with "Quit" button
if(event.getSource() == quit)
dispose();
System.exit(0);
else if(event.getSource() == search)
/* try
String suggestion = search_internet .doSpellingSuggestion(spellingRequest);
if(suggestion == null)
System.out.println("There is no spelling suggestion in the database");
else
System.out.println(suggestion);
int startResult = 100;
search_internet.setStartResult(startResult);
int maxResult = 5;
search_internet.setMaxResults(maxResult);
GoogleSearchResult result_search_internet = search_internet.doSearch();
GoogleSearchResultElement[] resultElements = result_search_internet.getResultElements();
int startIndex = result_search_internet.getStartIndex() - 1 - startResult;
int endIndex = result_search_internet.getEndIndex() - 1 - startResult;
for(int i = startIndex ; i <= endIndex; i ++)
GoogleSearchResultElement resultElement = resultElements[(i)];
String title = resultElement.getTitle();
String URL = resultElement.getURL();
System.out.println(title);
System.out.println(URL);
System.out.println("");
System.out.println("Start Index = " + result_search_internet.getStartIndex());
System.out.println("End Index = " + result_search_internet.getEndIndex());
System.out.println(result_search_internet.toString());
int numResults = result_search_internet.getEstimatedTotalResultsCount();
if(result_search_internet.getEstimateIsExact())
System.out.println("Number of results: " +numResults);
else
System.out.println("Estimated number of results: " +numResults);
//catch(GoogleSearchFault gsf)
// System.out.println("Google Search Fault: " +gsf.getMessage());
try
String myKey = "0RK+HoNQFHJlcbNPfxgBpcjESUWV96aO";
String wsdl = "http://api.google.com/GoogleSearch.wsdl";
String url = "http://api.google.com/search/beta2";
String ns1 = "urn:GoogleSearch";
String searchTerm;
searchTerm = "science fiction";
String spellingRequest = searchTerm;
//First create the connection
SOAPConnectionFactory soapConnFactory = SOAPConnectionFactory.newInstance();
SOAPConnection connection = soapConnFactory.createConnection();
//Create the actual message
MessageFactory messageFactory = MessageFactory.newInstance();
SOAPMessage message = messageFactory.createMessage();
//Create objects for the message parts
SOAPPart soapPart = message.getSOAPPart();
SOAPEnvelope envelope = soapPart.getEnvelope();
SOAPBody body = envelope.getBody();
//Populate the message
SOAPElement bodyElement = body.addChildElement(envelope.createName("doGoogleSearch" , "ns1", ns1));
GoogleSearch search = new GoogleSearch();
search.setKey(myKey);
search.setQueryString(searchTerm);
//Save the message
message.saveChanges();
//Send the message and get a reply
//Set the destination
URLEndpoint destination = new URLEndpoint(url);
//Send the message
SOAPMessage reply = connection.call(message, destination);
SOAPPart sp = reply.getSOAPPart();
SOAPEnvelope se = sp.getEnvelope();
SOAPBody sb = se.getBody();
TransformerFactory transformerFactory = TransformerFactory.newInstance();
Transformer transformer = transformerFactory.newTransformer();
Source sourceContent = reply.getSOAPPart().getContent();
StreamResult result = new StreamResult(System.out);
transformer.transform(sourceContent, result);
//Close the connection
connection.close();
catch(Exception e)
System.out.println(e.getMessage());
}//End of method actionPerformed
public void windowClosing(WindowEvent event)
//Deals with the window closing
dispose();
System.exit(0);
}//End of method windowClosing
public void windowOpened(WindowEvent event)
public void windowIconified(WindowEvent event)
public void windowDeiconified(WindowEvent event)
public void windowClosed(WindowEvent event)
public void windowActivated(WindowEvent event)
public void windowDeactivated(WindowEvent event)
}//End of class Applet2
class Canvas0 extends Canvas
public Canvas0()
super();
public void paint(Graphics g)
Dimension d = getSize();
Font f1 = new Font("TimesRoman" , Font.PLAIN , 14);
Font f2 = new Font("TimesRoman" , Font.ITALIC , 14);
FontMetrics fm1 = g.getFontMetrics(f1);
FontMetrics fm2 = g.getFontMetrics(f2);
String s1 = "Hello , ";
String s2 = "World";
int w1 =fm1.stringWidth(s1);
int w2 =fm1.stringWidth(s2);
g.setColor(Color.GREEN);
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.net.URI;
import java.net.URLConnection;
import java.util.*;
import java.io.*;
import org.xml.sax.*;
import org.xml.sax.SAXParseException;
import org.xml.sax.helpers.DefaultHandler;
import javax.xml.parsers.SAXParserFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import com.google.soap.search.GoogleSearch;
import com.google.soap.search.GoogleSearchResult;
import com.google.soap.search.GoogleSearchFault;
import com.google.soap.search.GoogleSearchResultElement;
import com.google.soap.search.*;
import javax.xml.soap.*;
import javax.xml.soap.SOAPConnection;
import javax.xml.soap.SOAPConnectionFactory;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPMessage;
import javax.xml.soap.SOAPPart;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPElement;
import org.apache.soap.util.xml.*;
import org.apache.soap.*;
import org.apache.soap.rpc.*;
import org.w3c.dom.*;
import java.io.FileInputStream;
import javax.xml.transform.stream.StreamSource;
import javax.xml.messaging.URLEndpoint;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.Source;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.*;
Title: Mr. Tony Buckley
Description:
Copyright: Copyright Tony Buckley (c) 2004
Company: Cork Institute of Technology
* @[email protected]
http://beingaplayer.x314.co.uk
* @version 1.0
public class Applet2 extends Frame implements WindowListener , ActionListener
TextField searchField;
Button search , quit;
Canvas0 canvas;
public Applet2()
super();
//Set up basic window
setTitle("Tony Buckley Final Year Project");
setBackground(Color.white);
setSize(500 , 400);
addWindowListener(this);
//Set up area with buttons
//Search button
Panel p1 = new Panel();
p1.setLayout(new FlowLayout());
searchField = new TextField("" , 15);
p1.add(searchField);
search = new Button("Search the web for results...");
p1.add(search);
search.addActionListener(this);
//Quit button
Panel p2 = new Panel();
p2.setLayout(new FlowLayout());
Button quit = new Button("Quit");
p2.add(quit);
quit.addActionListener(this);
//Set up search results area
Canvas0 canvas = new Canvas0();
add("Center" , canvas);
Panel p4 = new Panel();
p4.setLayout(new GridLayout(2 , 1));
p4.add(p1);
p4.add(p2);
add("South" , p4);
}//End of constructor method public Applet2()
public void doGoogleSearch()
String key;
String q;
int start;
int maxResults;
boolean filter;
String restrict;
boolean safeSearch;
String lr;
String ie;
String oe;
public static void main(String[] args)
Applet2 app = new Applet2();
app.setVisible(true);
public void actionPerformed(ActionEvent event)
//Deals with "Quit" button
if(event.getSource() == quit)
dispose();
System.exit(0);
else if(event.getSource() == search)
/* try
String suggestion = search_internet .doSpellingSuggestion(spellingRequest);
if(suggestion == null)
System.out.println("There is no spelling suggestion in the database");
else
System.out.println(suggestion);
int startResult = 100;
search_internet.setStartResult(startResult);
int maxResult = 5;
search_internet.setMaxResults(maxResult);
GoogleSearchResult result_search_internet = search_internet.doSearch();
GoogleSearchResultElement[] resultElements = result_search_internet.getResultElements();
int startIndex = result_search_internet.getStartIndex() - 1 - startResult;
int endIndex = result_search_internet.getEndIndex() - 1 - startResult;
for(int i = startIndex ; i <= endIndex; i ++)
GoogleSearchResultElement resultElement = resultElements[(i)];
String title = resultElement.getTitle();
String URL = resultElement.getURL();
System.out.println(title);
System.out.println(URL);
System.out.println("");
System.out.println("Start Index = " + result_search_internet.getStartIndex());
System.out.println("End Index = " + result_search_internet.getEndIndex());
System.out.println(result_search_internet.toString());
int numResults = result_search_internet.getEstimatedTotalResultsCount();
if(result_search_internet.getEstimateIsExact())
System.out.println("Number of results: " +numResults);
else
System.out.println("Estimated number of results: " +numResults);
//catch(GoogleSearchFault gsf)
// System.out.println("Google Search Fault: " +gsf.getMessage());
try
String myKey = "0RK+HoNQFHJlcbNPfxgBpcjESUWV96aO";
String wsdl = "http://api.google.com/GoogleSearch.wsdl";
String url = "http://api.google.com/search/beta2";
String ns1 = "urn:GoogleSearch";
String searchTerm;
searchTerm = "science fiction";
String spellingRequest = searchTerm;
//First create the connection
SOAPConnectionFactory soapConnFactory = SOAPConnectionFactory.newInstance();
SOAPConnection connection = soapConnFactory.createConnection();
//Create the actual message
MessageFactory messageFactory = MessageFactory.newInstance();
SOAPMessage message = messageFactory.createMessage();
//Create objects for the message parts
SOAPPart soapPart = message.getSOAPPart();
SOAPEnvelope envelope = soapPart.getEnvelope();
SOAPBody body = envelope.getBody();
//Populate the message
SOAPElement bodyElement = body.addChildElement(envelope.createName("doGoogleSearch" , "ns1", ns1));
GoogleSearch search = new GoogleSearch();
search.setKey(myKey);
search.setQueryString(searchTerm);
//Save the message
message.saveChanges();
//Send the message and get a reply
//Set the destination
URLEndpoint destination = new URLEndpoint(url);
//Send the message
SOAPMessage reply = connection.call(message, destination);
SOAPPart sp = reply.getSOAPPart();
SOAPEnvelope se = sp.getEnvelope();
SOAPBody sb = se.getBody();
TransformerFactory transformerFactory = TransformerFactory.newInstance();
Transformer transformer = transformerFactory.newTransformer();
Source sourceContent = reply.getSOAPPart().getContent();
StreamResult result = new StreamResult(System.out);
transformer.transform(sourceContent, result);
//Close the connection
connection.close();
catch(Exception e)
System.out.println(e.getMessage());
}//End of method actionPerformed
public void windowClosing(WindowEvent event)
//Deals with the window closing
dispose();
System.exit(0);
}//End of method windowClosing
public void windowOpened(WindowEvent event)
public void windowIconified(WindowEvent event)
public void windowDeiconified(WindowEvent event)
public void windowClosed(WindowEvent event)
public void windowActivated(WindowEvent event)
public void windowDeactivated(WindowEvent event)
}//End of class Applet2
class Canvas0 extends Canvas
public Canvas0()
super();
public void paint(Graphics g)
Dimension d = getSize();
Font f1 = new Font("TimesRoman" , Font.PLAIN , 14);
Font f2 = new Font("TimesRoman" , Font.ITALIC , 14);
FontMetrics fm1 = g.getFontMetrics(f1);
FontMetrics fm2 = g.getFontMetrics(f2);
String s1 = "Hello , ";
String s2 = "World";
int w1 =fm1.stringWidth(s1);
int w2 =fm1.stringWidth(s2);
g.setColor(Color.GREEN);
Similar Messages
-
Need help using doGoogleSearch to connect to Google API
Hello all,
I am trying to do my final year project and I am currently having trouble connecting to the Google API using doGoogleSearch. I dont know how to use http://api.google.com/GoogleSearch.wsdl to fill in the parameters for the doGoogleSearch and then I have to use the http://api.google.com/search/beta2 to connect to Google and perform the test. Any help would be appreciated or code or links
Thanks in advance rgds,
Tony
Here is my code so far...................................
package tony_buckley_project;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.net.URI;
import java.net.URLConnection;
import java.util.*;
import java.io.*;
import org.xml.sax.*;
import org.xml.sax.SAXParseException;
import org.xml.sax.helpers.DefaultHandler;
import javax.xml.parsers.SAXParserFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import com.google.soap.search.GoogleSearch;
import com.google.soap.search.GoogleSearchResult;
import com.google.soap.search.GoogleSearchFault;
import com.google.soap.search.GoogleSearchResultElement;
import com.google.soap.search.*;
import javax.xml.soap.*;
import javax.xml.soap.SOAPConnection;
import javax.xml.soap.SOAPConnectionFactory;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPMessage;
import javax.xml.soap.SOAPPart;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPElement;
import org.apache.soap.util.xml.*;
import org.apache.soap.*;
import org.apache.soap.rpc.*;
import org.w3c.dom.*;
import java.io.FileInputStream;
import javax.xml.transform.stream.StreamSource;
import javax.xml.messaging.URLEndpoint;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.Source;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.*;
* <p>Title: Mr. Tony Buckley</p>
* <p>Description: </p>
* <p>Copyright: Copyright Tony Buckley (c) 2004</p>
* <p>Company: Cork Institute of Technology </p>
* @[email protected]
* @version 1.0
public class Applet2 extends Frame implements WindowListener , ActionListener
TextField searchField;
Button search , quit;
Canvas0 canvas;
public Applet2()
super();
//Set up basic window
setTitle("Tony Buckley Final Year Project");
setBackground(Color.white);
setSize(500 , 400);
addWindowListener(this);
//Set up area with buttons
//Search button
Panel p1 = new Panel();
p1.setLayout(new FlowLayout());
searchField = new TextField("" , 15);
p1.add(searchField);
search = new Button("Search the web for results...");
p1.add(search);
search.addActionListener(this);
//Quit button
Panel p2 = new Panel();
p2.setLayout(new FlowLayout());
Button quit = new Button("Quit");
p2.add(quit);
quit.addActionListener(this);
//Set up search results area
Canvas0 canvas = new Canvas0();
add("Center" , canvas);
Panel p4 = new Panel();
p4.setLayout(new GridLayout(2 , 1));
p4.add(p1);
p4.add(p2);
add("South" , p4);
}//End of constructor method public Applet2()
public void doGoogleSearch()
String key;
String q;
int start;
int maxResults;
boolean filter;
String restrict;
boolean safeSearch;
String lr;
String ie;
String oe;
public static void main(String[] args)
Applet2 app = new Applet2();
app.setVisible(true);
public void actionPerformed(ActionEvent event)
//Deals with "Quit" button
if(event.getSource() == quit)
dispose();
System.exit(0);
else if(event.getSource() == search)
/* try
String suggestion = search_internet .doSpellingSuggestion(spellingRequest);
if(suggestion == null)
System.out.println("There is no spelling suggestion in the database");
else
System.out.println(suggestion);
int startResult = 100;
search_internet.setStartResult(startResult);
int maxResult = 5;
search_internet.setMaxResults(maxResult);
GoogleSearchResult result_search_internet = search_internet.doSearch();
GoogleSearchResultElement[] resultElements = result_search_internet.getResultElements();
int startIndex = result_search_internet.getStartIndex() - 1 - startResult;
int endIndex = result_search_internet.getEndIndex() - 1 - startResult;
for(int i = startIndex ; i <= endIndex; i ++)
GoogleSearchResultElement resultElement = resultElements[(i)];
String title = resultElement.getTitle();
String URL = resultElement.getURL();
System.out.println(title);
System.out.println(URL);
System.out.println("");
System.out.println("Start Index = " + result_search_internet.getStartIndex());
System.out.println("End Index = " + result_search_internet.getEndIndex());
System.out.println(result_search_internet.toString());
int numResults = result_search_internet.getEstimatedTotalResultsCount();
if(result_search_internet.getEstimateIsExact())
System.out.println("Number of results: " +numResults);
else
System.out.println("Estimated number of results: " +numResults);
//catch(GoogleSearchFault gsf)
// System.out.println("Google Search Fault: " +gsf.getMessage());
try
String myKey = "0RK+HoNQFHJlcbNPfxgBpcjESUWV96aO";
String wsdl = "http://api.google.com/GoogleSearch.wsdl";
String url = "http://api.google.com/search/beta2";
String ns1 = "urn:GoogleSearch";
String searchTerm;
searchTerm = "science fiction";
String spellingRequest = searchTerm;
//First create the connection
SOAPConnectionFactory soapConnFactory = SOAPConnectionFactory.newInstance();
SOAPConnection connection = soapConnFactory.createConnection();
//Create the actual message
MessageFactory messageFactory = MessageFactory.newInstance();
SOAPMessage message = messageFactory.createMessage();
//Create objects for the message parts
SOAPPart soapPart = message.getSOAPPart();
SOAPEnvelope envelope = soapPart.getEnvelope();
SOAPBody body = envelope.getBody();
//Populate the message
SOAPElement bodyElement = body.addChildElement(envelope.createName("doGoogleSearch" , "ns1", ns1));
GoogleSearch search = new GoogleSearch();
search.setKey(myKey);
search.setQueryString(searchTerm);
//Save the message
message.saveChanges();
//Send the message and get a reply
//Set the destination
URLEndpoint destination = new URLEndpoint(url);
//Send the message
SOAPMessage reply = connection.call(message, destination);
SOAPPart sp = reply.getSOAPPart();
SOAPEnvelope se = sp.getEnvelope();
SOAPBody sb = se.getBody();
TransformerFactory transformerFactory = TransformerFactory.newInstance();
Transformer transformer = transformerFactory.newTransformer();
Source sourceContent = reply.getSOAPPart().getContent();
StreamResult result = new StreamResult(System.out);
transformer.transform(sourceContent, result);
//Close the connection
connection.close();
catch(Exception e)
System.out.println(e.getMessage());
}//End of method actionPerformed
public void windowClosing(WindowEvent event)
//Deals with the window closing
dispose();
System.exit(0);
}//End of method windowClosing
public void windowOpened(WindowEvent event)
public void windowIconified(WindowEvent event)
public void windowDeiconified(WindowEvent event)
public void windowClosed(WindowEvent event)
public void windowActivated(WindowEvent event)
public void windowDeactivated(WindowEvent event)
}//End of class Applet2
class Canvas0 extends Canvas
public Canvas0()
super();
public void paint(Graphics g)
Dimension d = getSize();
Font f1 = new Font("TimesRoman" , Font.PLAIN , 14);
Font f2 = new Font("TimesRoman" , Font.ITALIC , 14);
FontMetrics fm1 = g.getFontMetrics(f1);
FontMetrics fm2 = g.getFontMetrics(f2);
String s1 = "Hello , ";
String s2 = "World";
int w1 =fm1.stringWidth(s1);
int w2 =fm1.stringWidth(s2);
g.setColor(Color.GREEN);I don't know where you got the rest of this code from (was it supplied as part of the project or did you write it yourself), but I think it may be overcomplicated.
The last time (at least a year ago) that I looked at the Google WS api, this is all you needed:
GoogleSearch search = new GoogleSearch();
search.setKey("_your_key_here_");
search.setQueryString(searchStringHere);
GoogleSearchResult result = search.doSearch();You can look in their api docs for how to extract the results from GoogleSearchResult.
Hope that helps?
Kevin Hooke -
Firefox connects to google-analytics for some sites,when i click on links in websites or emails and then gets stuck, and I can never get onto the site. Or opens a new bower behind the one i'm usind that's blank i don't even know it's there untill i close the one i'm using. How do I prevent Firefox from connecting to google-analytics? Or opening a blank bowser behind the one i'm using. I use XP with service pak 3 in English
== This happened ==
A few times a week
== a couple months agoI got the same issue.
I go on a website and all the sudden another window pops up with "results.google-analytics.com" or "search.google-analytics.com". It has often ads for other sites for example. black single dating site
how can I can I stop that from happening again?
I didn't download or do anything, just visit websites, that I visit on a regular basis.
OS: Windows XP
Firefox Version: 3.6.6 -
I'm in a small office, and I have to use my ethernet connection to connect to the networked copier to be able to print, but connection to which I hooked my Time Capsule is literally 20x faster when connecting to the internet.
How can I tell the computer to use the ethernet connection to print, while everything else should go through wifi?
I have been manually going back and forth changing the order in Network Preferences between ethernet and Wifi, but I'm know there must be an easier way. Thanks for your help!A packet going to Apple is not local. It is going to 17.149.160.49 -- So it is sent to the topmost working connection to be Routed and sent to the Internet.
A packet going to a local computer or other device that is on the same subnet (has an IP address very close to the topmost IP Address of your computer) gets sent out that port as well, but is sent directly to that computer on the local subnet, since no Routing [changing of Addresses} is needed.
A packet going to a local computer or Printer or Network Attached Storage device that is not on the topmost subnet, but is on a secondary subnet such as the second network connection would be sent directly to that computer, since no Routing is needed.
I do not understand why two Routers have the same IP Address if they are not cross-connected. That makes everything very difficult when it should be simple. -
How can I use multiple network connections concurrently?
I'm using a Macbook, connected to a corporate network via Ethernet and to a private ADSL connection via Airport. What I want to be able to do is use the Airport connection for specific apps (Firefox, Safari, RDP etc) and the Ethernet connection for anything that needs to access any internal resources (Exchange etc).
From what I've tried, the OS presents the primary connection (set via the Service Order configuration) to the application and nothing else. For example when Firefox is set to not use a proxy I can't access anything, unless the Airport is given priority. But when the Airport is set as the higher priority adapter via the Service Order then I can't access any of the internal network.
Is there any way to work around this or am I stuck chopping and changing whenever I need to get out to the Internet directly?The highest priority service is the Internet connection. Anything that would go to the internet uses that service. However, you still should be able to access the internal network via Ethernet.
For example when Firefox is set to not use a proxy I can't access anything, unless the Airport is given priority.
That make sense
But when the Airport is set as the higher priority adapter via the Service Order then I can't access any of the internal network.
You should be able to at least access file servers. -
Why connection to Google Apis from Azure Role is slower
Hi,
We are writing a service which connects to Google Contact API and syncs the data. But if Contact insert to google from my local PC takes 0.3 sec, o Azure Working role it takes 1.2 secs. For a 1K contacts it is almost 15 min difference.
How can we get FASTER connection from Azure to Google APIs?Hi,
I would suggest you use fiddler to see the detailed information, the Fiddler timeline view may give us some tips about why spend so many time, refer to
http://docs.telerik.com/fiddler/KnowledgeBase/Timeline for more detailed information.
Hope this helps.
Best Regards,
Jambor
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How can I use a scanner connected to my old PC?
Hi!
Aside from my iMac, I have a PC to which a printer is attached. I used system preferences to connect to that printer (it worked just fine), and now when I click "print" on the mac, the printer starst printing (as long as the PC is on).
Now, I would like to do the same thing with a scanner, also connected to the PC. How do I do it? (I confess I forgot exactly what I did to connect the printer, as this would probably help.... hehehe.. but I remember typing the name of the PC workgroup and it's IP address somewhere.)
The scanner is an HP 2400 and USB.
Thanks a lot for the help!How do I do it?
You would have to contact the manufacturer of the scanner to see if their software allows for sharing the scanner, as Mac OS X has no built in support for that. -
How do I use Bluetooth to connect my MacBook Pro to my iPad?
I am trying to sync up my iPad to my MacBook Pro. The status on the MacBook shows that the two are paired, but neither shows them as connected. How do I achieve the connection in order to share files?
On the advice of a friend I installed and ran a program on my MacBook called 'IPSecuritas'. This has stopped my wireless network from appearing and disappearing, but I still can't connect. Would really appreciate some help with this.
-
How can I use iTunes without connecting the external drive that has all my music on it?
I have all my music on an external drive. Sometimes I would like to access iTunes, for purchases and other, without having that drive plugged in. I used to be able to do this, but something has changed and I can no longer figure out how. There must be a way.
ThanksWell, you can always ignore the fact it will automatically direct anything to a new blank library it will create on the internal drive. Just let it do it (as long as you keep track of any purchases that download, or maybe you can turn off automatic downloading ) The next time you need to use it with the external drive hold down the option/alt key while starting iTunes and select the library file on the external drive.
iTunes Store: How to enable Automatic Downloads - http://support.apple.com/kb/HT4539 -
We recently upgraded to CUCM 10.5 and CUC 10.5 using an e.164 dial plan throughout. One snafu that has surfaced is how do people access a CallHandler via the Greetings Administrator TUI if the CallHandler extension begins with a '+' character? Pressing and holding * does not seem to work. Any ideas?
We recently upgraded to CUCM 10.5 and CUC 10.5 using an e.164 dial plan throughout. One snafu that has surfaced is how do people access a CallHandler via the Greetings Administrator TUI if the CallHandler extension begins with a '+' character? Pressing and holding * does not seem to work. Any ideas?
-
[Solved]how can i use netmanager to connect wifi?
hi,
My laptop is lenovo ideapad v360.
Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)
kernel:3.1.5-2-ck #1 SMP PREEMPT Fri Dec 9 20:12:54 EST 2011 x86_64 Intel(R) Core(TM) i3 CPU M 390 @ 2.67GHz GenuineIntel GNU/Linux
When i use netmanager to enable wifi,it would be inactive.I wonder if anyone can help me?
NetworkManager DEBUG message:
NetworkManager[12329]: <debug> [1324536199.430916] [nm-manager.c:3385] manager_radio_user_toggled(): (WiFi): setting radio enabled by user
NetworkManager[12329]: <debug> [1324536199.431525] [nm-manager.c:1162] manager_update_radio_enabled(): (wlan0): setting radio enabled
NetworkManager[12329]: <debug> [1324536199.431686] [nm-device-wifi.c:3058] real_set_enabled(): (wlan0): device now enabled
NetworkManager[12329]: <info> (wlan0): bringing up device.
NetworkManager[12329]: <debug> [1324536199.434304] [nm-supplicant-manager.c:88] nm_supplicant_manager_iface_get(): (wlan0): creating new supplicant interface
NetworkManager[12329]: <debug> [1324536199.434634] [nm-supplicant-interface.c:692] interface_add(): (wlan0): adding interface to supplicant
NetworkManager[12329]: <debug> [1324536199.434970] [nm-device-wifi.c:3093] real_set_enabled(): (wlan0): enable waiting on supplicant state
NetworkManager[12329]: <info> WiFi hardware radio set enabled
NetworkManager[12329]: <debug> [1324536199.441904] [nm-netlink-monitor.c:163] link_msg_handler(): netlink link message: iface idx 3 flags 0x1003
NetworkManager[12329]: <debug> [1324536199.442122] [nm-udev-manager.c:690] handle_uevent(): UDEV event: action 'change' subsys 'rfkill' device 'rfkill0'
NetworkManager[12329]: <debug> [1324536199.442993] [nm-udev-manager.c:249] recheck_killswitches(): WiFi rfkill state now 'unblocked'
NetworkManager[12329]: <debug> [1324536199.443088] [nm-manager.c:1310] manager_rfkill_update_one_type(): WiFi hw-enabled 1 sw-enabled 1
NetworkManager[12329]: <info> WiFi now enabled by radio killswitch
NetworkManager[12329]: <debug> [1324536199.443228] [nm-manager.c:1162] manager_update_radio_enabled(): (wlan0): setting radio enabled
NetworkManager[12329]: <debug> [1324536199.443387] [nm-udev-manager.c:690] handle_uevent(): UDEV event: action 'change' subsys 'rfkill' device 'rfkill2'
NetworkManager[12329]: <debug> [1324536199.444230] [nm-udev-manager.c:690] handle_uevent(): UDEV event: action 'change' subsys 'rfkill' device 'rfkill3'
NetworkManager[12329]: <debug> [1324536199.466648] [nm-supplicant-interface.c:539] interface_add_done(): (wlan0): interface added to supplicant
NetworkManager[12329]: <info> (wlan0): supplicant interface state: starting -> ready
NetworkManager[12329]: <info> (wlan0): device state change: unavailable -> disconnected (reason 'supplicant-available') [20 30 42]
NetworkManager[12329]: <info> (wlan0): supplicant interface state: ready -> inactive
NetworkManager[12329]: <warn> Trying to remove a non-existant call id.
NetworkManager[12329]: <debug> [1324536199.609897] [nm-udev-manager.c:690] handle_uevent(): UDEV event: action 'change' subsys 'rfkill' device 'rfkill2'
NetworkManager[12329]: <debug> [1324536199.610362] [nm-udev-manager.c:249] recheck_killswitches(): WiFi rfkill state now 'soft-blocked'
NetworkManager[12329]: <debug> [1324536199.610422] [nm-manager.c:1310] manager_rfkill_update_one_type(): WiFi hw-enabled 1 sw-enabled 0
NetworkManager[12329]: <info> WiFi now disabled by radio killswitch
NetworkManager[12329]: <debug> [1324536199.610531] [nm-manager.c:1162] manager_update_radio_enabled(): (wlan0): setting radio disabled
NetworkManager[12329]: <debug> [1324536199.610569] [nm-device-wifi.c:3058] real_set_enabled(): (wlan0): device now disabled
NetworkManager[12329]: <info> (wlan0): device state change: disconnected -> unavailable (reason 'none') [30 20 0]
NetworkManager[12329]: <info> (wlan0): deactivating device (reason 'none') [0]
NetworkManager[12329]: <debug> [1324536199.610706] [nm-device-wifi.c:859] _set_hw_addr(): (wlan0): no MAC address change needed
NetworkManager[12329]: <debug> [1324536199.610918] [nm-system.c:1158] nm_system_iface_flush_routes(): (wlan0): flushing routes ifindex 3 family INET (2)
NetworkManager[12329]: <debug> [1324536199.611159] [nm-netlink-utils.c:317] dump_route(): route idx 1 family INET (2) addr 127.0.0.0/32
NetworkManager[12329]: <debug> [1324536199.611200] [nm-netlink-utils.c:317] dump_route(): route idx 1 family INET (2) addr 127.0.0.0/8
NetworkManager[12329]: <debug> [1324536199.611239] [nm-netlink-utils.c:317] dump_route(): route idx 1 family INET (2) addr 127.0.0.1/32
NetworkManager[12329]: <debug> [1324536199.611294] [nm-netlink-utils.c:317] dump_route(): route idx 1 family INET (2) addr 127.255.255.255/32
NetworkManager[12329]: <debug> [1324536199.611556] [nm-system.c:190] sync_addresses(): (wlan0): syncing addresses (family 2)
NetworkManager[12329]: <debug> [1324536199.612133] [nm-device-wifi.c:1235] real_is_available(): (wlan0): not available because not enabled
NetworkManager[12329]: <debug> [1324536199.612202] [nm-device.c:4163] nm_device_state_changed(): (wlan0): device not yet available for transition to DISCONNECTED
NetworkManager[12329]: <info> (wlan0): taking down device.
NetworkManager[12329]: <debug> [1324536199.643093] [nm-netlink-monitor.c:163] link_msg_handler(): netlink link message: iface idx 3 flags 0x1002
wpa_supplicant:
Initializing interface 'wlan0' conf 'N/A' driver 'nl80211,wext' ctrl_interface 'N/A' bridge 'N/A'
netlink: Operstate: linkmode=1, operstate=5
Own MAC address: ac:81:12:11:a3:90
wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=0x466559 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=0x466559 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=0x466559 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=0x466559 key_idx=3 set_tx=0 seq_len=0 key_len=0
RSN: flushing PMKID list in the driver
State: DISCONNECTED -> INACTIVE
WPS: UUID based on MAC address - hexdump(len=16): 65 80 55 d2 39 72 50 db a8 19 ab 81 79 b6 16 a0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: Supplicant port status: Unauthorized
EAPOL: Supplicant port status: Unauthorized
dbus: Register interface object '/fi/w1/wpa_supplicant1/Interfaces/1'
Added interface wlan0
Scan requested (ret=0) - scan timeout 10 seconds
nl80211: Event message available
nl80211: Scan trigger
nl80211: Scan trigger failed: ret=-16 (Device or resource busy)
Removing interface wlan0
No keys have been configured - skip key clearing
State: INACTIVE -> DISCONNECTED
wpa_driver_nl80211_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portValid=0
EAPOL: Supplicant port status: Unauthorized
No keys have been configured - skip key clearing
Cancelling scan request
Cancelling authentication timeout
dbus: Unregister interface object '/fi/w1/wpa_supplicant1/Interfaces/1'
netlink: Operstate: linkmode=0, operstate=6
Last edited by czheji (2011-12-22 08:11:25)I got a solution:`rmmod acer_wmi` and adding it to blacklist solves the problem
https://bugzilla.redhat.com/show_bug.cgi?id=674353 -
How can I use j2ee(jsp) connect msolap
I look for long,but not find,please tell me.thanks
I don't think you really searched all that hard.
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=jsp+msolap -
"Cannot log into Web service" error when tying to use Wifi to connect to Google Drive or Facebook
We have a relatively new Canon Powershot s120. Up until a few days ago, it worked just fine to connect to the Wifi and upload pictures to both Google Drive and Facebook. Now, every time I try to connect, I get a message "Cannot log into Web service"
I have already tried removing Google Drive from the Camera and re-adding it. I went into the Canon Image Gateway website and disconnected and then reconnected the service. That didn't do anything.
Would really appreciate any tips anyone has.
Thanks!Problem sorted - there is a new set of terms and conditions which came out on the 6th August.
You have to log in under your current user name & password and agree to them and it works again. I spent a frustrating hour doiung this until I found out that this had happened! -
How do I use the camera connection kit to transfer photos from iPhone 4 with ios 7.0.2 to iPad 2 with ios 7.0.2?
<http://support.apple.com/kb/HT4101>
"In addition to supporting digital cameras and SD cards, you can import photos and videos from your iPhone, iPod touch, iPad, and iPod nano (5th generation) using the Camera Connector." -
What is facetime? And how do you use it?
What is facetime and how do you use it?
rblue80 wrote:
What is facetime and how do you use it?
What is Google and how do you use it?
Maybe you are looking for
-
Firefox 4.0 will not work
I had Firefox 3.6. I tried to download Firefox 4.0. After the download, I received an error message that Firefox could not run on Mac OSX
-
No longer able to convert PDF files to Word.
Up until a couple of days ago I could convert PDF files to Word. Why can't I now?
-
Premiere pro free trail won't open
The adobe cloud premiere pro free trail is install on my computer but it won't open
-
Hi, When downloading new cd's etc I get an error message saying that the itunes library cannot be saved as there are insufficient access privileges. How do I fix this please? Poppy
-
Accessibility Settings opens every time I open a PDF
Every time I open a PDF a popup opens asking for accessibility settings. How do I stop this? Can I remove the accessibility plugin? Thanks!