background preloader


Facebook Twitter

Using R + ess-remote with screen in emacs. Dear list, I brought up this issue before but a good solution never arised: being able to use screen on a remote server (so if something goes wrong on my side I can always resume that R session) inside of emacs in order to utilize ESS.

using R + ess-remote with screen in emacs

The closest thing I found to a good work flow was to use ansi-term or multi-term and copying and pasting code in Emacs (ESS only worked nicely with shell-mode; reason at the end). Some would advise to use screen and open emacs inside of that screen, and voila, you have the luxuries of screen (attaching the session anywhere) and emacs+ESS (keybindings, etc). However, I prefer to use one main emacs session on my laptop/netbook (all my configurations are there), where I can have multiple projects and multiple R jobs opened at once. I would like to share what I have working (for the time being), with the help of Michael Zeller in case others are interested. Place the following in .emacs: In xterm (or the likes), ssh to the remote server and start screen. Core Reporting API - Developer Guide   This document explains how to use the Core Reporting API to access Google Analytics Data.

Core Reporting API - Developer Guide  

Introduction The Core Reporting API provides access to the tabular data in Google Analytics standard and custom reports. To access data, you create a query that specifies: the view (profile), the start and end dates, and the dimensions and metrics that make up the column headers in the table. This query is sent to the Core Reporting API and The Core Reporting API returns all the data in the form of a table.

If you are new to the API, read the Core Reporting API Overview for an introduction to purpose of the the Core Reporting API and the data it provides. Before You Begin This guide demonstrates how to access the Google Analytics API using the Java, Python, PHP, and JavaScript programming languages. Read the client libraries page for a complete list of programming language specific client libraries that work with the API. Register your application in the Google Developers Console. Java. Dimensions & Metrics Explorer  

This reference document lists and describes all the dimensions and metrics available through the Core Reporting API.

Dimensions & Metrics Explorer  

These values are only available if you link your AdWords and Google Analytics accounts and enable autotagging. Dimensions ga:adGroup UI Name: Ad Group The name of your AdWords ad group. Using OAuth 2.0 for Installed Applications   The Google APIs Client Library for Python supports using OAuth 2.0 in applications that are installed on a device such as a computer, a cell phone, or a tablet.

Using OAuth 2.0 for Installed Applications  

Installed apps are distributed to individual machines, and it is assumed that these apps cannot keep secrets. These apps might access a Google API while the user is present at the app, or when the app is running in the background. This document is for you if: You are writing an installed app for a platform other than Android or iOS, and Your installed app will run on devices that have a system browser and rich input capabilities, such as devices with full keyboards. If you are writing an app for Android or iOS, use Google+ Sign-In to authenticate your users. If your app will run on devices that do not have access to a system browser, or devices with limited input capabilities (for example, if your app will run on game consoles, video cameras, or printers), then see Using OAuth 2.0 for Devices.

Overview Configuring the client object. Hello Analytics API: Python quickstart for service accounts   Webproperty User Links: list     Analytics Management API     Analytics Management API     Analytics Management API   Getting Started - Google APIs Client Library for Python. Import BaseHTTPServerimport Cookieimport httplib2import StringIOimport urlparseimport sys from apiclient.discovery import buildfrom oauth2client.client import AccessTokenRefreshErrorfrom oauth2client.client import OAuth2WebServerFlowfrom oauth2client.file import Storage class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): """Child class of BaseHTTPRequestHandler that only handles GET request.

Getting Started - Google APIs Client Library for Python

""" # Create a flow object. This object holds the client_id, client_secret, and # scope. It assists with OAuth 2.0 steps to get user authorization and # credentials. Def do_GET(self): """Handler for GET request. """ print '\nNEW REQUEST, Path: %s' % (self.path) print 'Headers: %s' % self.headers # To use this server, you first visit # You can use any name you # like for the fake_user.

. # When you redirect to the authorization server below, it redirects back # to to after the user grants access # permission for your application. elif self.path.startswith('/?   Analytics Management API     Analytics Management API     Analytics Management API   Custom Dimensions: update   DataService (v201502)   10 Expresiones Regulares Imprescindibles en Desarrollo Web. Septiembre 15, 2010 en Snippets por Adrián Mato Artículo de presentación de las expresiones regulares.

10 Expresiones Regulares Imprescindibles en Desarrollo Web

Echamos un vistazo a 10 expresiones regulares que os librarán de más de un dolor de cabeza a la hora de validar vuestros formularios o datos. ¡No os lo perdáis porque son realmente útiles! Autor: Adrián Mato Hola! ¿Qué son las expresiones regulares? Odiadas por unos, adoradas por otros… en cualquier caso las expresiones regulares son siempre útiles y necesarias para validar todo tipo de datos, buscar, encontrar coincidencias en cadenas de texto y mucho más.

Si tuviéramos que dar una definición de forma técnica, una expresión regular (o patrón) es una expresión que describe un conjunto de cadenas sin enumerar sus elementos. Así pues en una búsqueda de dos caracteres concretos, no importará si número de caracteres es 10 o un millón, las expresiones regulares nos porporcionarán una solución al problema. Cheet.js - easy easter eggs (konami code, etc) for your site.