I hereby claim:
- I am pcolazurdo on github.
- I am pcolazurdo (https://keybase.io/pcolazurdo) on keybase.
- I have a public key whose fingerprint is B6A7 22E2 23BA A055 6C91 AE3E C50B A788 0AF5 7728
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import numpy as np | |
# M = Web Graph | |
# v = initial probabilityes | |
# eS = Let eS be a vector that has 1 in the components in S and 0 in other components | |
# b = teleport set prob (based on (1-Beta)eS/|S|) | |
# Suppose that our topic is represented by the teleport set S = {B,D}. Then | |
# the vector (1 − β)eS/|S| has 1/10 for its second and fourth components and 0 | |
# for the other two components. The reason is that 1 − β = 1/5, the size of S is | |
# 2, and eS has 1 in the components for B and D and 0 in the components for A | |
# and C. |
Usage: | |
To install: | |
gem install httpclient | |
To run: | |
create a sample.xml.erb file with the required SOAP body | |
if you need to fill some variables do so in the code. In this sample we're only creating two variables: | |
nonce (base64 of timestamp) | |
wsucreated (now at UTC) |
# Basic HITS Algorithm for the Stanford MMDS Course | |
import numpy as np | |
# L = [[ 0.,1.,1.,1.,0.], [1.,0.,0.,1.,0.], [0.,0.,0.,0.,1.], [0.,1.,1.,0.,0.], [0.,0.,0.,0.,0.]] | |
L = [[0,1,1,0],[1,0,0,0],[0,0,0,1],[0,0,1,0]] | |
Lt = np.transpose(L) | |
h = np.matrix([1.,1.,1.,1.]).T |
# Installing Mesos on Docker for Windows | |
Trying to make Mesos run on a Docker instance on Windows (boot2docker) I've found quite a few issues that I think it can be useful to know about | |
## Issue #1: Default docker container max size is not enough | |
Growing a container beyond the 10GB limit is not pretty well documented (at least as this writing) So I've had to make a few steps: | |
> <b>BE VERY CAREFUL: This process will delete all your existing images/containers. I haven't tryed yet modifying this with existing containers </b> | |
Starting from the Windows Console you can run: |
Imagine that you want to share a host folder named c:\Buildbox\src into the guest box on /external/src. In this case you should do something like this:
On the Windows box
boot2docker save
cd "C:\Program Files\Oracle\VirtualBox"
vboxmanage sharedfolder add boot2docker-vm --name extsrc --hostpath c:\BuildBox
REM @echo off | |
set PAUSE=YES | |
Set SourcePics=c:\temp\DCIM | |
rem set CameraDrive=I: | |
set ExifPath=C:\Program Files (x86)\bin\ | |
set StageDrive=E: | |
set StagePath=E:\home\All Users\Orig\Stage |
# General notes: | |
# As stated on Vector's page, the tool needs PCP => 3.10 so at the moment you need to install from sources. This tries to do that. | |
# Installing PCP from sources has some issues with library paths (not enough time to analyze that) so you'll need to touch LD_LIBRARY_PATH or ld.conf whatever you prefer | |
# PCPWeb (pmweb) is needed by Vector (it's not clear enough in the documentation) so you'll need to open up port 44323 - BE SURE TO FIREWALL IT! | |
# If you are sure you want to autostart the services, don't forget to touch init.d or systemd or whatever you're using for starting the services as needed. | |
# General Installations | |
sudo yum install -y git | |
sudo yum groupinstall -y "Development tools" |
# Installing MeTA for Coursera MooC - Text Mining and Analytics by ChengXiang Zhai from Illinois University | |
# this might take a while | |
sudo apt-get update | |
sudo apt-get install software-properties-common | |
# add the ppa for cmake | |
sudo add-apt-repository ppa:george-edison55/cmake-3.x | |
sudo apt-get update |
<link href="http://fullcalendar.io/js/fullcalendar-2.3.1/fullcalendar.css" rel="stylesheet" /> | |
<link href="http://fullcalendar.io/js/fullcalendar-2.3.1/fullcalendar.print.css" rel="stylesheet" media="print" /> | |
<script prog src="http://fullcalendar.io/js/fullcalendar-2.3.1/lib/moment.min.js"></script> | |
<script prog src="http://fullcalendar.io/js/fullcalendar-2.3.1/fullcalendar.min.js"></script> | |
<% elementsTitle = [] | |
elementsSnippet = [] | |
query = entity_types('Eventos').where(subject.query).requesting(50) | |
query.each do |t| | |
begin |