changing title in multiplot ggplot2 using grid.arrange

changing title in multiplot ggplot2 using grid.arrange

I have managed to make a 2x2 plot using grid.arrange:library(gridExtra)grid.arrange(p1,p3,p2,p4, ncol=2, nrow=2, top = "Daily QC: Blue")The main title of this multiplot is very small. Is there a way to change the title text size and font.

Issue testing and using Cocoapods in a Swift project

Issue testing and using Cocoapods in a Swift project

I'm writing an app in Swift, using XCode 6 Beta-6. I'm using Cocoapods and I'm creating some unit tests.The issue is this one: apparently is not possible to have a project that contains:1) Project written in Swift2) Some pods installed usin

How to expand/“preprocess” C++ template code

How to expand/“preprocess” C++ template code

To properly debug complex macros in C++ I usually run the preprocessor on them in order to see exactly what the resulting code looks like.Is there a similar way to "preprocess" template code? 1:One way (compiler-dependent) is to use dump

NSTimer with anonymous function / block?

NSTimer with anonymous function / block?

I want to be able to schedule three small events in the future without having to write a function for each. How can I do this using NSTimer? I understand blocks facilitate anonymous functions but can they be used within NSTimer and if so,

Need to get current timestamp in Java

Need to get current timestamp in Java

I need to get the current timestamp in Java, with the format of MM/DD/YYYY h:mm:ss AM/PM, For example: 06/01/2000 10:01:50 AMI need it to be Threadsafe as well.Can I utilize something like this?java.util.Date date = new java.util.Date();Sys

In Scala, how would I combine event driven programming with a functional approach?

In Scala, how would I combine event driven programming with a functional approach?

To clarify what I mean by event driven I'm referring to a situation where I havedef onTrade(...)Which is called every time a particular stock trades. Suppose I want to track the daily highest trade price. To me the obvious solution is:var d

Shared libraries memory space

Shared libraries memory space

Does a C++ shared library have its own memory space? Or does it share the caller process' one?I have a shared library which contains some classes and wrapper functions.One of this wrapper function is kinda:libXXX_construct() which initializ

Const reference and lvalue [duplicate]

Const reference and lvalue [duplicate]

This question already has an answer here: Literal initialization for const references 3 answers We cannot write int& ref = 40 because we need lvalue on

How to tell Gradle to use a different AndroidManifest from the command line?

How to tell Gradle to use a different AndroidManifest from the command line?

I have a multi-module project. From the root of my project (which contains multiple modules), I want to be able to call 'gradle build' and have it use a different AndroidManifest in one of my modules depending on some parameter I pass in. W

Flex graphic assets: SWF or SWC?

Flex graphic assets: SWF or SWC?

Which is a better format to store graphic assets for a Flex application, SWF or SWC?Are there any real differences, and if so what are they? 1:Assets in a seperate SWF are loaded and included at runtime.Assets in a SWC are loaded and inc

ClassNotFoundException when running a Spring + Maven2 project on Tomcat 6 from within Eclipse 3.5

ClassNotFoundException when running a Spring + Maven2 project on Tomcat 6 from within Eclipse 3.5

When trying to launch a Web project from within Eclipse I get:SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListenerjava.lang.ClassNotFoundException: org.springframework.web.context.Con

android programmatically update apk and see the result of the installation

android programmatically update apk and see the result of the installation

I'm writing an app updater for my app. After I make sure I have my apk on the device, this is what I do from within the app I'm trying to update:Intent promptInstall = new Intent(Intent.ACTION_VIEW);File f = new File(apkLocation); prompt

why pointer to pointer is needed to allocate memory in function

why pointer to pointer is needed to allocate memory in function

I have a segmentation fault in the code below, but after I changed it to pointer to pointer, it is fine. Could anybody give me any reason?void memory(int * p, int size) { try { p = (int *) malloc(size*sizeof(int)); } catch( exc

Using django-rest-interface

Using django-rest-interface

I have a django application that I'd like to add some rest interfaces to. I've seen http://code.google.com/p/django-rest-interface/ but it seems to be pretty simplistic. For instance it doesn't seem to have a way of enforcing security. H

What are ld-linux.so.2 and linux-gate.so.1?

What are ld-linux.so.2 and linux-gate.so.1?

When I run ldd program I get an output of the form linux-gate.so.1 => (0xb77ae000) libstdc++.so.6 => /lib/libstdc++.so.6 (0xb76bc000) libm.so.6 => /lib/libm.so.6 (0xb7691000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7674000)

Word-wrap grid cells in Ext JS

Word-wrap grid cells in Ext JS

(This is not a question per se, I'm documenting a solution I found using Ext JS 3.1.0. But, feel free to answer if you know of a better solution!)The Column config for an Ext JS Grid object does not have a native way to allow word-wrapped t

Go / golang time.Now().UnixNano() convert to milliseconds?

Go / golang time.Now().UnixNano() convert to milliseconds?

How can I get Unix time in Go in milliseconds?I have the following function:func makeTimestamp() int64 { return time.Now().UnixNano() % 1e6 / 1e3}I need less precision and only want milliseconds. 1:Just divide it: func makeTimestamp(

unsigned long long type printing in hexadecimal format

unsigned long long type printing in hexadecimal format

I am trying to print out an unsigned long long like this: printf("Hex add is: 0x%ux ", hexAdd);but I am getting type conversion errors since I have an unsigned long long. 1:You can use the same ll size modifier for %x, thus:#include int

Initialize 2D array

Initialize 2D array

I am trying to initialize a 2D array, in which the type of each element is char.So far, I can only initialize this array in the follow way. public class ticTacToe {private char[][] table;public ticTacToe(){ table[0][0] = '1'; table[0

What's the difference between Html.Label, Html.LabelFor and Html.LabelForModel

What's the difference between Html.Label, Html.LabelFor and Html.LabelForModel

What's the difference between @Html.Label(), @Html.LabelFor() and @Html.LabelForModel() methods? 1:Html.Label gives you a label for an input whose name matches the specified input text (more specifically, for the model property matching

rotation and scaling using multi touch in android

rotation and scaling using multi touch in android

i want to rotate and scale the image on multi touch event,i am able to drag, scale the image but i can't understand the rotation of image.i am facing problem so please help me asap.my code is there public class Touch extends Activity im

How to write SMS application in blackberry?

How to write SMS application in blackberry?

Can any one help me to write application to send and recieve sms in blackberry.If u can provide me some code snippet . 1:To send an sms:import net.rim.device.api.io.*;import net.rim.device.api.system.*;import javax.microedition.io.*;impo

How to configure partials and layouts for Handlebars in Sails.js?

How to configure partials and layouts for Handlebars in Sails.js?

I run Sails 0.9.7 and have installed Handlebars which is supported by Consolidate.js and therefore is supported by SailsI can serve pages from .handlebars files, it works just fine.I can't figure where, in Sails workflow, and in a Sails way

What is the Difference between inheritance and delegation in java [duplicate]

What is the Difference between inheritance and delegation in java [duplicate]

Possible Duplicate: Prefer composition over inheritance? What is the difference between inheritance and delegation in java?How to use the following example in my project? Please can you guide me with delegation. I know about inheritance b

Packaging a Jython program in an executable jar

Packaging a Jython program in an executable jar

I am trying to package a jython program into an executable jar which the user can simply double-click to run without installing jython ahead of time. Ultimately, I would like to include an additional library which I wrote with the jar, but