This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/tdunning/MiA/blob/mahout-0.7/src/main/java/mia/clustering/ch07/SimpleKMeansClustering.java#L24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create our table | |
create 'impressions', { NAME => 'event', COMPRESSION => 'LZO' } | |
# see what's inside it | |
describe 'impressions' | |
# add some data | |
put 'impressions', '20130512', 'event:type', 'click' | |
put 'impressions', '20130512', 'event:ad', '1234' | |
put 'impressions', '20130512', 'event:campaign', '9283372' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function drawVisualization() { | |
// Create and populate the data table. | |
// sum total distinct rows and then take each group % of share of total distinct | |
var data = google.visualization.arrayToDataTable([ | |
['Year', 'Group A', 'Group B', 'Group C', 'Group D'], | |
['Group A', 100, 100, 100, 100], | |
['Group B', 100, 100, 100, 100], | |
]); | |
// Create and draw the visualization. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://askubuntu.com/questions/183132/automated-installation-using-preseeding-from-url-failed-from-within-virtualbox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install ruby http://rubyinstaller.org/downloads/ | |
http://rubyforge.org/frs/download.php/76798/rubyinstaller-1.9.3-p392.exe | |
# download and configure devkit for windows @http://rubyinstaller.org/downloads/ | |
https://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe | |
cd <DEVKIT_INSTALL_DIR> | |
ruby dk.rb init | |
ruby dk.rb review | |
ruby dk.rb install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://developer.eclipsesource.com/restfuse/ - JUnit Test Suite for REST Services |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<configuration> | |
<system.web> | |
<compilation debug="true" targetFramework="4.0" /> | |
</system.web> | |
<system.serviceModel> | |
<services> | |
<service name="Service.HelloWorldService" behaviorConfiguration="wsdl"> | |
<endpoint address="soap" binding="basicHttpBinding" contract="Service.IHelloWorldService" /> | |
<endpoint address="xml" binding="webHttpBinding" behaviorConfiguration="restBehavior" contract="Service.IHelloWorldServicee" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# | |
# Starts a Hadoop Master | |
# | |
# chkconfig: 2345 90 10 | |
# description: Hadoop master | |
. /etc/rc.d/init.d/functions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://10.192.25.122:50070/dfshealth.jsp | |
http://10.192.25.122:50030/jobtracker.jsp | |
http://10.192.25.122:50060/tasktracker.jsp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name "*" -type f -exec dos2unix {} \; |