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
-module(hello). | |
-export([start/0]). | |
start() -> | |
io:format("Hello, World!"). |
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
[ec2-user@ip-10-146-3-18 ~/svn/couchdb]$ svn status | |
? configure.org | |
M src/couchdb/priv/couch_js/utf8.h | |
M etc/default/couchdb | |
[ec2-user@ip-10-146-3-18 ~/svn/couchdb]$ svn diff | |
Index: src/couchdb/priv/couch_js/utf8.h | |
=================================================================== | |
--- src/couchdb/priv/couch_js/utf8.h (revision 1180567) | |
+++ src/couchdb/priv/couch_js/utf8.h (working copy) | |
@@ -16,4 +16,5 @@ |
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
<!-- AddThis Button BEGIN --> | |
<div class="addthis_toolbox addthis_default_style "> | |
<a class="addthis_button_preferred_1"></a> | |
<a class="addthis_button_preferred_2"></a> | |
<a class="addthis_button_preferred_3"></a> | |
<a class="addthis_button_preferred_4"></a> | |
<a class="addthis_button_compact"></a> | |
<a class="addthis_counter addthis_bubble_style"></a> | |
</div> | |
<script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4ee8b1387ccde9fa"></script> |
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
String v_date_str="Sun Mar 06 11:28:16 IST 2011"; DateFormat formatter; formatter = new SimpleDateFormat("EEE MMM d HH:mm:ss zzz yyyy"); Date date_temp=null; String d_temp=null; SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MMM-yyyy"); try { date_temp = (Date) formatter.parse(v_date_str); d_temp = dateFormat.format(date_temp); System.out.println("val : "+d_temp); } catch (ParseException ex) {// |
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
/usr/bin/hadoop namenode -format | |
11/12/31 06:28:39 INFO namenode.NameNode: STARTUP_MSG: | |
/************************************************************ | |
STARTUP_MSG: Starting NameNode | |
STARTUP_MSG: host = ip-10-146-3-18.ap-northeast-1.compute.internal/10.146.3.18 | |
STARTUP_MSG: args = [-format] | |
STARTUP_MSG: version = 0.20.2-cdh3u2 | |
STARTUP_MSG: build = file:///tmp/topdir/BUILD/hadoop-0.20.2-cdh3u2 -r 95a824e4005b2a94fe1c11f1ef9db4c672ba43cb; compiled by 'root' on Thu Oct 13 21:51:41 PDT 2011 | |
************************************************************/ | |
11/12/31 06:28:39 INFO util.GSet: VM type = 32-bit |
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
[hduser@ip-10-146-3-18 ~]$ /usr/lib/hadoop/bin/start-all.sh | |
starting namenode, logging to /usr/lib/hadoop/logs/hadoop-hduser-namenode-ip-10-146-3-18.out | |
localhost: starting datanode, logging to /usr/lib/hadoop/logs/hadoop-hduser-datanode-ip-10-146-3-18.out | |
localhost: starting secondarynamenode, logging to /usr/lib/hadoop/logs/hadoop-hduser-secondarynamenode-ip-10-146-3-18.out | |
jobtracker running as process 2089. Stop it first. | |
localhost: starting tasktracker, logging to /usr/lib/hadoop/logs/hadoop-hduser-tasktracker-ip-10-146-3-18.out | |
[hduser@ip-10-146-3-18 ~]$ jps | |
3540 Jps | |
3300 DataNode | |
3391 SecondaryNameNode |
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
[git@ip-10-156-19-53 proc]$ cat meminfo | |
MemTotal: 1718724 kB | |
MemFree: 1010872 kB | |
Buffers: 51996 kB | |
Cached: 369476 kB | |
SwapCached: 0 kB | |
Active: 381572 kB | |
Inactive: 308052 kB | |
Active(anon): 268156 kB | |
Inactive(anon): 52 kB |
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://search.npmjs.org/#/now |
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
$ ab -n 100 -c 100 http://127.0.0.1:8000/ | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking 127.0.0.1 (be patient)...Send request failed! | |
Send request failed! | |
..done | |
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
$ nc localhost 8000 | |
hello | |
world |
OlderNewer