Skip to content

Instantly share code, notes, and snippets.

@djquan
djquan / cloudSettings
Last active May 19, 2020 14:41
vscode
{"lastUpload":"2020-05-19T14:40:59.925Z","extensionVersion":"v3.4.3"}

Cassandra Day 2015 (Deep Dive Track)

The Synergy Between Cassandra and Datastax Enterprise

  • This talk was really an info session for Datstax Enterprise - Why this event was free.
  • academy.datastax.com for free online classes
  • It can be difficult to go from the open source datastax to the enterprise edition.
  • Hadoop Integration - Doesn't see as much of this with the growing popularity of Spark
  • Spark Integration - Leverages Cassandra: location aware, it knows partition keys
  • QA: Why only use Oracle Java? Performance issues with OpenJDK.
  • When looking for advice/solutions, ensure the advice is from the last 6 months - 1 year. (i.e, don't use Hector for anything)
@djquan
djquan / benchmark.rb
Created March 14, 2015 04:30
Cassandra Prepared Statements
require 'cassandra'
require 'benchmark/ips'
cluster = Cassandra.cluster(hosts: ["192.168.59.103"])
session = cluster.connect
session.execute("CREATE KEYSPACE benchmark WITH REPLICATION = { 'class': 'SimpleStrategy', 'replication_factor': 2 }")
session.execute("USE benchmark")
session.execute("CREATE table reads (test_one text PRIMARY KEY, test_two text)")
@djquan
djquan / keybase.md
Created November 30, 2014 03:54
keybase.md

Keybase proof

I hereby claim:

  • I am djquan on github.
  • I am dquan (https://keybase.io/dquan) on keybase.
  • I have a public key whose fingerprint is 93DC 76E4 BEE3 0091 9AF2 4818 F0A9 9AD8 2CC6 0846

To claim this, I am signing this object:

def render
print " "
(0..7).each { |column_num| print " #{column_num} " }
puts ""
board.each_with_index do |row, row_num|
print row_num
row.each_with_index do |piece, col_num|
if invalid_board_moves.include?([row_num, col_num])
print (piece ? piece.render : " ").colorize(background: :white)
else