Settings > Search "privacy" > content settings > Manage exceptions
add your site by regex, e.g., learn.com, add [*.]learn.com
Settings > Search "privacy" > content settings > Manage exceptions
add your site by regex, e.g., learn.com, add [*.]learn.com
online install svn | |
Help -> Install New Software | |
change tab to spaces | |
https://alextheedom.wordpress.com/code-and-stuff/how-do-i-change-eclipse-to-use-spaces-instead-of-tabs/ | |
change tab to 2 | |
Window -> Preferences -> Java -> Code Style -> Formatter | |
Set author |
#!/usr/bin/env python | |
from __future__ import with_statement | |
import os | |
import re | |
import shutil | |
import subprocess | |
import sys | |
import tempfile | |
sudo apt-get remove scala-library scala | |
sudo wget www.scala-lang.org/files/archive/scala-2.10.4.deb | |
sudo dpkg -i scala-2.10.4.deb | |
sudo apt-get update | |
sudo apt-get install scala | |
wget http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.4/sbt.deb | |
sudo dpkg -i sbt.deb | |
sudo apt-get update | |
sudo apt-get install sbt |
import mesosphere.mesos.util.FrameworkInfo | |
import org.apache.mesos.MesosSchedulerDriver | |
/** | |
* @author Tobi Knaup | |
*/ | |
object Main extends App { |
{ | |
"text": "RT @PostGradProblem: In preparation for the NFL lockout, I will be spending twice as much time analyzing my fantasy baseball team during ...", | |
"truncated": true, | |
"in_reply_to_user_id": null, | |
"in_reply_to_status_id": null, | |
"favorited": false, | |
"source": "<a href=\"http://twitter.com/\" rel=\"nofollow\">Twitter for iPhone</a>", | |
"in_reply_to_screen_name": null, | |
"in_reply_to_status_id_str": null, | |
"id_str": "54691802283900928", |
#!/bin/sh | |
# http://blog.brunobraga.net/eclipse-42-in-ubuntu-1204/ | |
ECLIPSE=/usr/lib/eclipse/eclipse | |
inject_update_site(){ | |
if [ ! -e "$1" ] ; then | |
echo "W: Cannot find $1" 2>&1 | |
return 1 | |
fi |
.--.
`. \
\ \
. \
: .
| .
| :
| |
..._ ___ | |
`."".`''''""--..___ | |
def dotProduct(vector: Array[Int], matrix: Array[Array[Int]]): Array[Int] = { | |
// ignore dimensionality checks for simplicity of example | |
(0 to (matrix(0).size - 1)).toArray.map( colIdx => { | |
val colVec: Array[Int] = matrix.map( rowVec => rowVec(colIdx) ) | |
val elemWiseProd: Array[Int] = (vector zip colVec).map( entryTuple => entryTuple._1 * entryTuple._2 ) | |
elemWiseProd.sum | |
} ) | |
} | |