Sponsored Content
Top Forums UNIX for Advanced & Expert Users Google Translate API with wget (only one client and connection): Suspected Terms of Service Abuse Post 302574871 by Corona688 on Friday 18th of November 2011 01:49:13 PM
Old 11-18-2011
Code:
wget -qO- "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=$1&langpair=$2|${3:-en}"

Code:
Automated requests are prohibited; all requests must be made as a result of an end-user action.

Running translate by hand in a terminal would be okay by that description, but if you wanted to use that function to automate anything, that would definitely be a violation.
 

3 More Discussions You Might Find Interesting

1. Linux

Better FTP service needed. (suspected inteferance)

Hello there, I have of recent been having overbearing problems with my Linux computer when accessing servers via FTP. The server behaves rather erractically and refuses to complete uploads, merely stalling the transfer for an unpredictable amount of time, which can stem from being either 5... (2 Replies)
Discussion started by: Noran Rad
2 Replies

2. UNIX and Linux Applications

Problems with wget and https connection

Hi, I have wget for linux but I'm having trouble using it. I am trying to use it with a HTTPS connection to save cookies but it doesn't works. I do: wget --save-cookies=cookies.txt --post-data... (2 Replies)
Discussion started by: mierdatuti
2 Replies

3. UNIX for Beginners Questions & Answers

SSL_ERROR_SYSCALL in connection to qa-api.ncl.com:443

I am getting SSL_ERROR_SYSCALL in connection to qa-api.ncl.com:443. Please help me on this. But I am able to get response in Soap UI. Please use CODE tags when displaying sample input, output, and code segments. (13 Replies)
Discussion started by: Ayeesha
13 Replies
QwtMetricsMap(3)						 Qwt User's Guide						  QwtMetricsMap(3)

NAME
QwtMetricsMap - A Map to translate between layout, screen and paint device metrics. SYNOPSIS
#include <qwt_layout_metrics.h> Public Member Functions QPoint deviceToLayout (const QPoint &, const QPainter *=NULL) const QSize deviceToLayout (const QSize &) const QRect deviceToLayout (const QRect &, const QPainter *=NULL) const QwtPolygon deviceToLayout (const QwtPolygon &, const QPainter *=NULL) const int deviceToLayoutX (int x) const int deviceToLayoutY (int y) const bool isIdentity () const QSize layoutToDevice (const QSize &) const QwtPolygon layoutToDevice (const QwtPolygon &, const QPainter *=NULL) const QRect layoutToDevice (const QRect &, const QPainter *=NULL) const QPoint layoutToDevice (const QPoint &, const QPainter *=NULL) const int layoutToDeviceX (int x) const int layoutToDeviceY (int y) const QSize layoutToScreen (const QSize &) const QRect layoutToScreen (const QRect &) const QPoint layoutToScreen (const QPoint &point) const int layoutToScreenX (int x) const int layoutToScreenY (int y) const QPoint screenToLayout (const QPoint &) const QRect screenToLayout (const QRect &) const QSize screenToLayout (const QSize &) const int screenToLayoutX (int x) const int screenToLayoutY (int y) const void setMetrics (const QPaintDevice *layoutMetrics, const QPaintDevice *deviceMetrics) Static Public Member Functions static QwtPolygon translate (const QMatrix &, const QwtPolygon &) static QRect translate (const QMatrix &, const QRect &) Detailed Description A Map to translate between layout, screen and paint device metrics. Qt3 supports painting in integer coordinates only. Therefore it is not possible to scale the layout in screen coordinates to layouts in higher resolutions ( f.e printing ) without losing the higher precision. QwtMetricsMap is used to incorporate the various widget attributes ( always in screen resolution ) into the layout/printing code of QwtPlot. Qt4 is able to paint floating point based coordinates, what makes it possible always to render in screen coordinates ( with a common scale factor ). QwtMetricsMap will be obsolete as soon as Qt3 support has been dropped ( Qwt 6.x ). Member Function Documentation QwtPolygon QwtMetricsMap::translate (const QMatrix &m, const QwtPolygon &pa) [static] Wrapper for QMatrix::map. Parameters: m Matrix pa Polygon to translate Returns: Translated polygon QRect QwtMetricsMap::translate (const QMatrix &m, const QRect &rect) [static] Wrapper for QMatrix::mapRect. Parameters: m Matrix rect Rectangle to translate Returns: Translated rectangle Author Generated automatically by Doxygen for Qwt User's Guide from the source code. Version 5.2.2 Mon Aug 1 2011 QwtMetricsMap(3)
All times are GMT -4. The time now is 01:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy