Tuesday, June 30, 2015

Hadoop Tuts Using Python. and Some HASKELL TUT

https://www.youtube.com/watch?v=SGIraL7mxqU&list=PLQwEegbFUjHGycPCbjXSFPK-AetxuH0MB&index=4

https://www.youtube.com/watch?v=SoSlCBjJiUA

http://stickystatic.com/build-a-gaming-computer

https://developer.yahoo.com/hadoop/tutorial/module1.html#intro


http://www.michael-noll.com/tutorials/writing-an-hadoop-mapreduce-program-in-python/

HASKELL

http://learnyouahaskell.com/starting-out


Monday, June 29, 2015

Natural Language and Data Science... Also Immunity Debugger

http://datasciencemasters.org/

http://www.wired.com/2014/09/exercism/

http://stackoverflow.com/questions/11892128/tutorials-for-natural-language-processing


https://class.coursera.org/nlp/lecture

http://sgros-students.blogspot.com/

Too many....

I think I uploaded too much for one day.

I also may just stop and just work on the future stuff..

SQL
JAVA
JAVA SCRIPT
PYTHON
MOBILE/ANDROID
WEB PORTAL

Put together all the sources as a great library. Put code together to make something new


Some random
  1. Japanese Emoticon Masterpost
    • Angry: (*≧m≦*) (,,#゚Д゚) ヽ(o`皿′o)ノ ヽ(≧Д≦)ノ (>д<) (;≧皿≦) [○・`Д´・○] ヽ(#`Д´)ノ Σ(-`Д´-ノ;)ノ (/゚Д゚)/ (¬д¬。) ヽ(#`Д´)ノ (¬、¬) (;¬_¬) (;¬_¬) (;¬д¬) (≧σ≦) o(-`д´- 。) ヽ(●-`Д´-)ノ (* ̄m ̄) (´Д`) (; ̄Д ̄) (¬_¬)ノ (#`д´)ノ (」゜ロ゜)」 Σ(▼□▼メ) (━┳━ _ ━┳━) (┳◇┳) {{|└(>o< )┘|}} \(@O@)/ (≧▼≦;) \(〇O〇)/ s(・`ヘ´・;)ゞ (▼へ▼メ) \(`O´θ/ θ\(;¬_¬) ヽ(`⌒´メ)ノ 凸(-0-メ) 凸(`△´+) 凸(`0´)凸 凸(`⌒´メ)凸 \(`0´)/ -`д´- (>人<) щ(ಠ益ಠщ) (ノಠ益ಠ)ノ щ(ಥДಥщ) o(≧o≦)o (⋋▂⋌) (◣_◢) ᕙ(⇀‸↼‶)ᕗ ᕦ(ò_óˇ)ᕤ ( ಠ ಠ ) (¬▂¬) (¬_¬) ಥ⌣ಥ ಠ_ಠ
    • Apologizing: m(_ _)m m(._.)m m(._.)m (ノ´д`) (シ_ _)シ o;(_ _)o; <(。_。)> m(_ _;;m m(¬0¬)m
    • Bear: ( ̄(エ) ̄) (。・ω・。) (●`・(エ)・´●) (*ノ・ω・) 川´・ω・`川 ( (ミ´ω`ミ)) ヾ(T(エ)Tヽ) \(・`(ェ)・)/ ⊂(ο・㉨・ο)⊃ (^(エ)^) (^(I)^) ( ̄(エ) ̄)ノ ⊂( ̄(工) ̄)⊃ ⊂(^(工)^)⊃ ⊂(・(ェ)・)⊃ (* ̄(エ) ̄*) ヾ(´(エ)`ノ゙ (/(エ)\) ⊂( ̄(エ) ̄)⊃ “(`(エ)´)ノ (`(エ)´)ノ (ó㉨ò) (♥ó㉨ò)ノ♡ (/-(エ)-\) (´(エ)`) ヽ( ̄(エ) ̄)ノ (/ ̄(エ) ̄)/ ⊂(◎(工)◎)⊃ (● ̄(エ) ̄●) 《/( ̄(エ) ̄)ゞ》 (✪㉨✪) Ψ( ̄(エ) ̄)Ψ ┏((= ̄(エ) ̄=))┛ ・㉨・
    • Cat: (=^・ェ・^=) (=^‥^=) (=^・^=) V(=^・ω・^=)v (=`ω´=) o(^・x・^)o \(=^‥^)/’` ( =①ω①=) d(=^・ω・^=)b (=TェT=) (=;ェ;=) ヽ(=^・ω・^=)丿 (=^・ω・^)y= (^-人-^) ヽ(^‥^=ゞ) (^・ω・^ ) (=^-ω-^=) b(=^‥^=)o (.=^・ェ・^=) (=´∇`=) ヾ(=゚・゚=)ノ ~(=^‥^)ノ ~(=^‥^)/ (=xェx=) (=;ェ;=) (=`ェ´=) (^・o・^)ノ” (^._.^)ノ └(=^‥^=)┐ =’①。①’= o;(*ΦωΦ*)>
    • Confused: ´・_・`) (◎_◎;) (`_´)ゞ (◎-◎;) (・_・ヾ ( ̄(エ) ̄)ゞ (-_-)ゞ゛ (‘◇’)? ヽ(゜Q。)ノ? (´`;) ? 【・ヘ・?】 【・_・?】 ( ・◇・) (゜-゜) ( ?´_ゝ`) o(´^`)o (´−`) ンー (•ิ_•ิ)? 「(°ヘ°) (。ヘ°) ヽ(゜Q。)ノ? (´`;) ? 〈(゜。゜) (゜。゜) く(^_・)ゝ (^~^;)ゞ ٩(๏̯͡๏)۶ ٩(̾●̮̮̃̾•̃̾)۶ (⊙_◎) ಠ_ರೃ
    • Dancing: ヘ(^_^ヘ) (ノ^_^)ノ o(^^o) (o^^)o (ノ´_ゝ`)ノ ヾ(^ ^ゞ (ノ‥)ノ ( ノ^ω^)ノ゚ ヾ(*´∇`)ノ ヾ(・ω・*)ノ (*ノ´□`)ノ 。(⌒∇⌒。) (。⌒∇⌒)。 〜( ̄▽ ̄〜) (〜 ̄▽ ̄)〜 〜(^∇^〜) (〜^∇^)〜 〜( ̄△ ̄〜) (〜 ̄△ ̄)〜 ┗(`ー´)┓ ┏(`ー´)┛ ┗(^0^)┓ ┏(^0^)┛ (ノ ̄ー ̄)ノ ヘ( ̄ー ̄ヘ) ヘ( ̄ω ̄ヘ) (ノ ̄ω ̄)ノ ヘ(^o^ヘ) (ノ^o^)ノ ヾ(-_- )ゞ ヾ(@^∇^@)ノ (ノ≧∀≦)ノ \(^ω^\) (ノ゚▽゚)ノ ヽ(゚ー゚*ヽ) ヽ(*゚ー゚*)ノ (ノ*゚ー゚)ノ ヽ(*´Д`*)ノ (o´・_・)っ ヾ(*д*)ノ゛ ヽ(°◇° )ノ ヽ( °◇°)ノ (ノ°ο°)ノ (ノ・o・)ノ ヾ(^^ゞ) ヾ(゚∀゚ゞ) ヽ(´ー`)ノ ヾ(*⌒ヮ⌒*)ゞ 〈( ^.^)ノ ┌(★o☆)┘ └(★o★)┐ ♪(┌・。・)┌
    • Dead: (x_x;) (*_*) (×_×;) (×_×# (#+_+) (+_+) ヾ(×× ) ツ (Ω_Ω) へ(>_<へ) (*0*;) (u_u) (✖╭╮✖) (º_º) ٩(×̯×)۶ (ñ_ñ) (o_-)
    • Surrender: \(--)/ \(-___________-;)/ /(;-_-) ~(o;_o;。)\ ((-_-)) (ー△ー;) (◎ー◎;) (/ _ ; ) (o_ _)o ヘ( ̄  ̄;ヘ) (;*´Д`)ノ (ノ_ _)ノ ヘ(_ _ヘ) (ノ ̄д ̄)ノ (;-_-)ノ o(-_-;*) ヘ(;´Д`ヘ) (;-_-)/ (oT-T)尸 ヘ(´o`)ヘ (一。一;;) (ノ#-_-)ノ (~~~) y-(~。~;) ( -。-)
    • Dog: o・ェ・oU ∪・ω・∪ U。・ェ・。U ▽・ω・▽ ▽・w・▽ U^皿^U v・。・V UTェTU (^・(I)・^) U・♀・U o(U・ω・)⊃ (^・x・^) (U・x・U) ▼o・ェ・o▼ U^ェ^U U ̄ー ̄U ┌U・ェ・U┘ └@(・ェ・)@┐ ヾ(●ω●)ノ (〓 ̄(∵エ∵) ̄〓)
    • Drinking: o口(・∀・ ) (。・・)_且 且_(゚◇゚;)ノ゙ ~旦_(^O^ ) ( ゜Д゜)⊃旦 ( ´・ω・`)_且~ ( ^-^)_旦”" (*^◇^)_旦 (*`▽´)_旦~~ ~(=^‥^)_旦~ (^-^)_日 ~~旦_(・o・;) ( -_-)旦~ (#´ー´)旦 且_(・_・ )
    • Evil: (・`ω´・) ψ(`∇´)ψ (`ー´) (。・`ω´・。) o(`ω´*)o | `Д´| (`ε´) (σ-`д・´) (`Д´*) (=`〜´=) (メ`ロ´)/ Ψ(`▽´)Ψ ^(#`∀´)_Ψ (*-`ω´- )人 (ц`ω´ц*) (`∀´)Ψ ψ(*`ー´)ψ Ψ(`◇´)Ψ “ψ(`∇´)ψ
    • Friends: ヽ(∀゜ )人( ゜∀)ノ (*・∀・)/\(・∀・*) \(^∀^)メ(^∀^)ノ \(★´−`)人(´▽`★)/ ( ^^)人(^^ ) (〃⌒▽⌒)八(〃⌒▽⌒〃)八(⌒▽⌒〃) ☆-(ノ゚Д゚)八(゚Д゚ )ノ ( 。・_・。)人(。・_・。 ) ヽ(*^ー^)人(^ー^*)ノ ━(○´エ`)(´エ`●)━ (◎`・ω・´)人(´・ω・`*) 。*:★(´・ω・人・ω・`)。:゜★。 (*´∀`*人*´∀`*) (^▽^)/\(^▽^) (*^ω^)人(^ω^*) ヽ(○´∀)乂(*´∀`*)乂(∀`●) \(^∀^)メ(^∀^)ノ ヽ(´Д`)人(´Д`)人(´Д`)ノ〜♪ (((*°▽°*)八(*°▽°*)))♪ ♡(*´∀`*)人(*´∀`*)♡ (〃 ̄д ̄)八(  ̄д ̄ )八( ̄д ̄〃) ヽ(^▽^)人(^▽^)人(^▽^)ノ (((@°▽°@)八(@°▽°@))) (・_・”)/\(・_・”) (○`ε´○)/\(○`ε´○) ヘ( ^o^)ノ\(^_^ ) (/^-^(^ ^*)/ ( 。・_・。)人(。・_・。 ) (・_・)〆\(T_T) (^^)-(^^)-(^^)-(^^)-(^^) ヽ(´Д`)人(´Д`)人(´Д`)ノ ヾ( ̄ー ̄)X(^∇^)ゞ ♪ヽ( ⌒o⌒)人(⌒-⌒ )v ♪ (*^o^)人(^o^*) \( ^o)( ^ 0 ^ )(o^ )/ ヽ( ^^)人(^^ )ノ (・_・”)/\(・_・”) └(^o^ )X( ^o^)┘ (^○^)オ(^▽^)ハ(^0^)ツ~ ( ⌒o⌒)人(⌒-⌒ )v (°◇°人°◇°)
    • Greetings/Goodbyes: ヾ(^∇^) (^-^*)/ ( ゚▽゚)/ ( ^_^)/ (^o^)/ (^ _ ^)/ ( ´ ▽ ` )ノ (ノ´∀`*)ノ ヾ(´・ω・`) ☆ミ(o*・ω・)ノ \(^▽^*) (*^▽^)/ ( ̄▽ ̄)ノ ヾ(-_-;) ヾ( ‘ – ‘*) ヾ(@⌒ー⌒@)ノ ~ヾ ^∇^ ~ヾ(^∇^) \( ̄O ̄) (。・ω・)ノ゙ (*^・ェ・)ノ ( ̄∠  ̄ )ノ (* ̄O ̄)ノ ヾ(。´・_●・`。)☆ (/・0・) (ノ^∇^) (,, ・∀・)ノ゛ (。・д・)ノ゙ \(°o°;) (。´∀`)ノ (o´ω`o)ノ ( ・ω・)ノ (。^_・)ノ ( ・_・)ノ \(-o- ) (。-ω-)ノ \(-_- ) \( ・_・) ヾ(´¬`)ノ ヾ(☆▽☆) (^ Q ^)/゛ ~(^◇^)/ ヘ(‘◇’、)/ ヘ(°◇、°)ノ ヘ(°¬°)ノ ヘ(゜Д、゜)ノ ( ゜ρ゜)ノ ー( ´ ▽ ` )ノ ヽ(๏∀๏ )ノ
    • Happy: (●´∀`●) (`・ω・´)” ヽ(;▽;)ノ ヽ(;▽;)ノ (*´・v・) (((o(*゚▽゚*)o))) ☆*:.。. o(≧▽≦)o .。.:*☆ (⌒▽⌒)☆ ⊂((・▽・))⊃ (≧∇≦)/ (´∇ノ`*)ノ (・◇・) ( ´ ▽ ` )ノ (^_^) ( ̄ー ̄) (*^▽^*) (^▽^) (’-’*) ∩( ・ω・)∩ (*≧▽≦) \(^ ^)/ O(≧∇≦)O ( ´∀`) (^~^) \(@ ̄∇ ̄@)/ (☆^O^☆) (★^O^★) (☆^ー^☆) (´ω`★) \(T∇T)/ ヽ(*≧ω≦)ノ *(*´∀`*)☆ O(≧▽≦)O ヽ(*⌒∇⌒*)ノ d=(´▽`)=b \(*T▽T*)/ ヽ(‘ ∇‘ )ノ (*^ワ^*) ヽ(^Д^)ノ (´∀`) (°◇°;) (゜▽゜;) (/^▽^)/ (ノ´ー`)ノ ヽ(´ー`)ノ ( ^∇^) \( `.∀´)/ (●⌒∇⌒●) o(≧∇≦o) ヽ(`◇´)/ ヽ(*・ω・)ノ (^ω^) 。◕‿◕。 ⊙ω⊙ ⊙△⊙ ⊙▽⊙ o (◡‿◡✿) (◕‿◕✿) (∩_∩) 。◕‿◕。 (•ิ_•ิ) (/•ิ_•ิ)/ (ΦωΦ) (*^^*) (-^〇^-) (ノ*゜▽゜*) ヾ(´▽`;)ゝ (゜▼゜*) ( ̄个 ̄) \(^▽^@)ノ (“⌒∇⌒”) へ(゜∇、°)へ (-^〇^-) (>y<) ヽ(^。^)丿 (ヘ。ヘ) (^v^) ヾ(@^▽^@)ノ ヾ(@°▽°@)ノ ヾ(@^▽^@)ノ ヾ(@^∇^@)ノ o((*^▽^*))o ヾ(@゜∇゜@)ノ ヾ(@゜▽゜@)ノ (@´_`@) ヾ(@† ▽ †@)ノ (ノ>▽<。)ノ \(@;◇;@)/ \(☆o◎)/ (((\(@v@)/))) (°◇°;) (゜▽゜;) (o;TωT)o ヽ(;^o^ヽ) (⌒▽⌒ゞ “ヽ(´▽`)ノ” (((o(*゚▽゚*)o))) ヾ(@⌒ー⌒@)ノ Ψ(´▽`)Ψ (v^_^)v (ી(΄◞ิ౪◟ิ‵))♥ (ღ˘⌣˘ღ) ლ(╹◡╹ლ) (◑‿◐) ლ(́◉◞౪◟◉‵ლ) (*~▽~) (∩▂∩) (¬‿¬) (n˘v˘•)¬
    • Hiding: |・ω・`) ヘ(・_| |−・;) |ω・) |_・)
    • In Love: (´∀`)♥ (‘∀’●)♥ (*´▽`*♥ (*°∀°)=3 (´ω`♥%♥ ヽ(愛´∀`愛)ノ ♡ (●´∀`)ノ♡ ♡^▽^♡ (。-_-。 )人( 。-_-。) (●♡∀♡) (_´ω`) (´ ▽`).。o♡ (o⌒.⌒o) (人´∀`*) (〃・・〃) ♥(ノ´∀`) (ღ˘⌣˘ღ) (。’▽’。)♡ (●´□`)♡ (。♥‿♥。) (✿ ♥‿♥) ♥╣[-_-]╠♥
    • Kissing: (´ε` )♡ ~(^з^)-☆ |°з°| (_ε_) (‘ε’) |( ̄3 ̄)| ( ̄ε ̄@) (*^3^) (´ε`*) (○´3`)ノ (☆´3`) (* ̄з ̄) (づ ̄ ³ ̄)づ (○゜ε^○) (TεT) (-ε- ) (@ーεー@) (*^3^)/~☆ ლ(|||⌒εー|||)ლ (╯3╰) (ΘεΘ;)
    • Laughing: (・∀・) ( ´∀`) (⌒▽⌒) (^v^) (*≧▽≦)ノシ)) (●´艸`) (*´艸`*) (。 >艸<) (*≧艸≦) (*・艸・)
    • Whatever: ヽ(´ー`)┌ ┗┐ヽ(′Д、`*)ノ┌┛ ヽ( ´¬`)ノ ┗┃・ ■ ・┃┛ ヾ(´A`)ノ゚ ヽ(・_・;)ノ ヽ(  ̄д ̄;)ノ \(〇_o)/ ヽ(。_°)ノ \(;´□`)/ ヾ(*´ー`)ノ ヽ(‘ー`)ノ ヽ(ー_ー )ノ ヽ(´~`;) ┐(‘~`;)┌ ヽ(*ω。)ノ (;´・`)> (^~^) ╮(─▽─)╭ ¯\_(ツ)_/¯ ٩(-̮̮̃-̃)۶ ٩(-̮̮̃•̃)۶
    • Monkey: @(o・ェ・)@ └@(・ェ・)@┐ @(。・o・)@ @(o・ェ・o)@ @(/o・ェ・o)@/ @(*^ェ^)@
    • Mustache: (´┏o┓`) ミ(´┏ω┓`)/ (´┏・┓`) ( ̄┏Д┓ ̄°*) ( ̄┏Д┓ ̄ ) (  ̄┏_┓ ̄) (ノ≧┏Д┓≦)ノ ( ̄┏∞┓ ̄)
    • Pain: ☆⌒(>。≪) ☆ ̄(>。☆) ~(>_<~) ヘ(>_<ヘ) (。_+)\ (xLx)ヾ /(*ι*)ヾ (ノ>ノ) /(x~x)\ ◎☆(♯××)┘ ヘ(。□°)ヘ
    • Pig: ( ´(00)`) ヾ(;゚(OO)゚)ノ ヽ(*’(OO)’)ノ ( ̄(oo) ̄)ノ (○`(●●)´○)ノ (*’(OO)’*) ( ´(00)`) (;゚(OO)゚) (*´(00)`)’ ヽ(*’(OO)’)ノ゚ q( ̄(oo) ̄)p 。゚(゚´(00)`゚)゚。 ( ̄(∞) ̄) ( ̄(▽▽) ̄) (=`(∞)´=)
    • Sad/Crying: ( ; ; ) (T_T) ( TДT) (ToT) (T▽T) (‘A`) (;_・)(T_T) ((T.T; ) (; T.T)) (;へ:) (ノД`)・゜・。 ・(/Д`)・ (´_`。) (´Д`。) (´A`。) (´∩`。) 。:゚(。ノω\。)゚・。 (┳Д┳) (´;д;`) (*´;ェ;`*) 。・゚゚・(>д<)・゚゚・。 (。┰ω┰。) (゜´Д`゜) (iДi) (´;ω;`) 。゚(゚ノД`゚)゚。 ヽ(´□`。)ノ (゚´Д`゚)゚ {{p´Д`q}} ヽ(●゚´Д`゚●)ノ゚ ( p_q) .・゜゜・(/。\)・゜゜・. (个_个) ((´д`)) ( ≧Д≦) 。゜(`Д´)゜。 (。┰ω┰。) p(´⌒`。q) (/□\*)・゜ ((o(;△;)o)) (; ̄д ̄) (ㄒoㄒ) ⊙︿⊙ o(╥﹏╥)o o(;△;)o (;*△*;) (´╥﹏╥ (´°̥̥̥̥̥̥̥̥ω°̥̥̥̥̥̥̥̥`) (∩︵∩) (╯︵╰,) (╥_╥) (╯︵╰,)
    • Scared: (ノдヽ) ヽ(゚Д゚)ノ (/。\) (/_\) (/.\)
    • Surprised: ( ꒪Д꒪)ノ (((( ;°Д°)))) ((((;゜Д゜))) (゜◇゜) ( ̄□ ̄;) ∑(O_O;) \(>o<)ノ ━Σ(゚Д゚|||)━ Σ(゜ロ゜;) Σ(゜゜) (*゚ロ゚) (」゜ロ゜)」 щ(゜ロ゜щ) (ノ゚0゚)ノ~ ⊙▂⊙ ⊙0⊙ w(°o°)w L(・o・)」 (○o○) (・□・;) ((((;゜Д゜)))
    • Embarrassed: (^_^;) (^^ゞ (^^;) (#^.^#) (‘-’*) (*^^*) (@´_`@) (⌒_⌒;) (#`ε´#ゞ (*/∇\*) (〃 ̄ω ̄〃ゞ (*´ェ`*) (*´∀`*) (*´_ゝ`) (*´∀`*) (/ω\) (*ノ▽ノ) (*ノωノ) (/。\) (。-_-。) (#/。\#) (╯_╰) (╯ಊ╰)
    • Singing: ヾ(´□`* )ノ (^O^☆♪ \(^o^)/ (´▽`)ノ♪ “ヽ(´▽`)ノ” ヽ(´▽`;)/♪ ヽ(´・`)ノ ヽ(○´∀`)ノ♪ ヾ(´ρ`)〃 ヾ(´〇`)ノ (´△`)♪ (ノ´▽`)ノ♪
    • Sleeping: Σ( ̄。 ̄ノ)ノ (-ェ-)。o (;´ρ`) (*´ο`*) ε-(´・`) \(o ̄∇ ̄o)/ \(´O`)/ [(--)]zzz (´~`) ヾ(。 ̄□ ̄)ツ ヾ( ̄0 ̄; )ノ ヾ(。 ̄□ ̄)ツ ヾ( ̄□ ̄;)ノ (。-ω-)zzz (-_-) zzz (∪。∪)。。。zzz (´〜`*) zzz ∑( ̄□ ̄) (o´Д`) ()´д`() (;≧皿≦) (´□`川) (⇀‸↼‶)ᕗ (ι´Д`)ノ (ᴗ˳ᴗ) _ノ乙(、ン、)_
    • Smug: ー( ̄~ ̄)ξ ((( ̄へ ̄井) (`へ´*)ノ ( ̄^ ̄) ( ̄へ ̄) ( ̄~ ̄;) ( ̄ェ ̄;) (-、-) ( ;`ヘ´) o(´^`)o ( ̄ω ̄;) (`^´)ノ <( ̄︶ ̄)>
    • Winking: (^_-) (-o⌒) (^_−) (^_-) (^_−)o(^_-) (^_・) ๏[-ิ_•ิ]๏ (○゜ε^○) (^_-)≡★ ☆~(ゝ。∂) \(^0^)/ (・ェ-)
    • Worried: (ーー;) ( ;´Д`) (; ̄ェ ̄) ヽ( ̄д ̄;)ノ ( ̄◇ ̄;) ヽ( ̄д ̄;)ノ (−_−;) (~_~;) ((*゜Д゜)ゞ” (・_-。 ) ⊙﹏⊙ ミ●ミ (-’๏_๏’-) (⊙…⊙ ) ( ´△`) (;° ロ°) ヽ(゜ロ゜;)ノ (°o°* +;(●´・д・`●);+
    • Etc: ☆彡 ★彡 ☆彡 ★彡 ☆.。.:*・°☆.。.:*・°☆.。.:*・°☆.。.:*・°☆ `*:;,.★ ~☆・:.,;*
    • Forever Alone: 、ヽ`ヽ`、ヽ``、ヽ`、ヽ`ヽ`、、ヽ`ヽ`、ヽ``、ヽ`、ヽ`ヽ`、、ヽ`ヽ`、ヽ``、ヽ`、ヽ`ヽ`、、ヽ`ヽ`、ヽマッテェ(ノ;Д;)ノ `、、ヽ`☂ヽ`、ヽ``、ヽ`、ヽ`ヽ`、、ヽ`ヽ`、ヽ``、ヽ`、ヽ`ヽ`、、ヽ`ヽ`、ヽ``、ヽ`、ヽ`ヽ`、、ヽ、ヽ`ヽ`、ヽ``

my{} JAVA date incriment decrement

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javaapplication1;
import java.util.Calendar;
import java.util.Scanner;
import java.io.Console;

/**
 *
 * @author class
 */
public class JavaApplication1 {

    /**
     * @param args the command line arguments
     */
    
    public static void main(String[] args) {

      // create a calendar
      Calendar cal = Calendar.getInstance();

      // print current time
      System.out.println("Current year is :" + cal.getTime());

      // set the year,month and day to something else

     cal.add(Calendar.DAY_OF_MONTH, -5);

      // print the result
      System.out.println("-5 days prior :" + cal.getTime());
   }
}
    

/*
 * 
 * Scanner reader = new Scanner(System.in);
System.out.println("Enter the first number");
//get user input for a
a=reader.nextInt();
 * 
 * 
 * Console console = System.console();
String input = console.readLine("Enter input:");
 */

my{} heartheateapp JAVA


/* HeartRates.java */

import java.util.*;
public class HeartRates {

private String firstName;
private String lastName;
private int month; //month of date of birth
private int day; //day of DOB
private int year; //year of DOB

//constructor
public HeartRates(String firstName,String lastName, int month, int day, int year){
this.firstName = firstName;
this.lastName = lastName;
this.month = month;
this.day = day;
this.year = year;
}

//setter methods
public void setFirstName(String value){
firstName = value;
}
public void setLastName(String value){
lastName = value;
}
public void setMonth(int value){
month = value;
}
public void setDay(int value){
day =value;
}
public void setYear(int value){
year =value;
}

//getter methods
public String getFirstName(){
return firstName;
}
public String getLastName(){
return lastName;
}
public int getMonth(){
return month;
}
public int getDay(){
return day;
}
public int getYear(){
return year;
}

//returns age of the person in years
public int getAge(){
Calendar cd = Calendar.getInstance();
return (cd.get(Calendar.YEAR)) - year;
}

//return maximum heart rate
public int maximumHeartRate(){
return 220 - getAge();
}

//displays the target herat rate range
public void targetHeartRate(){
System.out.print("Target Heart Rate Range: "+ maximumHeartRate() * 0.5 + " to "+ maximumHeartRate() * 0.85);
}
}

Extra source links

http://www.letu.edu/people/stevearmstrong/cosc2103/lectures/CodeSamplesCh10/CodeSamplesCh10.htm

http://pastie.org/pastes/3818265/text - this is C#

http://cs.fit.edu/~mmahoney/cis5100/examples/

my{} JAVA array app source

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javaapplication1;

/**
 *
 * @author Class
 */
import javax.swing.JOptionPane;
public class JavaApplication1 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
    
        int max = -999; 
 
    int[] myArray = {5, 8, 2, 10, 9, 4}; 
    
    
    JOptionPane.showMessageDialog(null, "Here are the list of numbers"  );
    for (int i = 0; i < myArray.length; i++) {
  

    JOptionPane.showMessageDialog(null, myArray[i], "Member of the Array" , JOptionPane.CLOSED_OPTION);}
    JOptionPane.showMessageDialog(null,"In the array, the larget value is " 
                        + getLargest(myArray, max) + "."); 

 }
public static int getLargest(int[] myArray, int max) 
{     
    int i = 0, j = 0, tempmax = 0; 
    if (myArray.length == 1) 
    { 
        return myArray[0] > max ? myArray[0] : max; 
    } 
    else if (max < myArray[i]) 
    { 
        max = myArray[i]; 
        int[] tempArray = new int[myArray.length-1]; 
        for (i = 1; i < myArray.length; i++) 
        { 
            tempArray[j] = myArray[i]; 
            j++; 
        } 
        tempmax = getLargest(tempArray, max); 
        return tempmax; 
    } 
    else
    { 
        int[] tempArray = new int[myArray.length-1]; 
        for (i = 1; i < myArray.length; i++) 
        { 
            tempArray[j] = myArray[i]; 
            j++; 
        } 
        tempmax = getLargest(tempArray, max); 
        return tempmax; 
    } 


}

Java Algorithms

http://www.programminglogic.com/fast-exponentiation-algorithms/

my{} JAVA stacknumberpop app

Write a java program that permits a user to enter a maximum of 10 intergers ointo a stack object, then have your program sort the stack contents into increasing order, (A-z) thus if the contents of the stack initially 4521 into 1245


package javaapplication2;
import java.util.Stack;
/**
 *
 * @author Class
 */
public class JavaApplication2 {

    /**
     * @param args the command line arguments
     */
 public static void main(String args[])
        {
                // Create a new, empty stack
                Stack mynum = new Stack();
                System.out.println ("normal order is : 1, 2, 3, 4,");
                // Let's add some items to it
                for (int i = 1; i <= 4; i++)
                {
                        mynum.push ( new Integer(i) );
                }

                // Last in first out means reverse order
                while ( !mynum.empty() )
                {
                        System.out.print ( mynum.pop() );
                        System.out.print ( ',' );
                }

                // empty
                System.out.println (" reverse order empty last first then to least");
        }

}

Java, .Net and C# and JDBC

http://www.dotnetperls.com/var - c#

http://www.daniweb.com/software-development/java/threads/316496/how-to-determine-the-sum-of-the-squares-of-two-numbers-using-a-recursive-method



http://www.vogella.com/tutorials/JavaAlgorithmsQuicksort/article.html

https://cs.wmich.edu/~llilien/teaching/2010spr/cs1120/_downloads/Lect.15c2--QuickSort%28modif%29.txt


http://www.java2s.com/Code/Java/Database-SQL-JDBC/CatalogDatabase-SQL-JDBC.htm

SEND TEXT MASSAGE USING JAVA

http://www.ipipi.com/help/send_text_message_using_java.htm

  • AT&T – cellnumber@txt.att.net
  • Verizon – cellnumber@vtext.com
  • T-Mobile – cellnumber@tmomail.net
  • Sprint PCS cellnumber@messaging.sprintpcs.com
  • Virgin Mobile – cellnumber@vmobl.com
  • US Cellular – cellnumber@email.uscc.net
  • Nextel cellnumber@messaging.nextel.com
  • Boost cellnumber@myboostmobile.com
  • Alltel – cellnumber@message.alltel.com


  • Example code to send text messages written in Java. 
    Must Download
    1.  mail.jar from JavaMail athttp://java.sun.com/products/javamail/downloads/index.html 
    2. activation.jar athttp://java.sun.com/products/javabeans/jaf/downloads/index.html
    and set classpath to the location where the files are stored. This code is provided as sample only.
    import java.io.*;
    import java.net.InetAddress;
    import java.util.Properties;
    import java.util.Date;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    public class SMTPSend {
        public SMTPSend() {
        }

        public void msgsend() {
            String username = "YoureIPIPIUsername";
            String password = "YourPassword";
            String smtphost = "ipipi.com";
            String compression = "Compression Option goes here - find out more";
            String from = "YoureIPIPIUsername@ipipi.com";
            String to = "DestinationPhoneNumber@sms.ipipi.com";
            String body = "Your Message";
            Transport tr = null;
            try {
             Properties props = System.getProperties();
             props.put("mail.smtp.auth", "true");

             // Get a Session object
             Session mailSession = Session.getDefaultInstance(props, null);

             // construct the message
             Message msg = new MimeMessage(mailSession);

             //Set message attributes
             msg.setFrom(new InternetAddress(from));
             InternetAddress[] address = {new InternetAddress(to)};
             msg.setRecipients(Message.RecipientType.TO, address);
             msg.setSubject(compression);
             msg.setText(body);
             msg.setSentDate(new Date());

             tr = mailSession.getTransport("smtp");
             tr.connect(smtphost, username, password);
             msg.saveChanges();
             tr.sendMessage(msg, msg.getAllRecipients());
             tr.close();
             } catch (Exception e) {
                 e.printStackTrace();
             }
        }

          public static void main(String[] argv) {
              SMTPSend smtpSend = new SMTPSend();
              smtpSend.msgsend();
          }

  • More Java Source and Tut Links







    java review test college exam


     (Assume all variable are properly declared and all programs are complete).  
      (You are not allowed to use computer to run the programs.)      

    1.      Circle the correct answers?             
                                                                        

    a). __________ enable programmers to specify, with a single method declaration, a set of related methods.

    a. Overloaded methods.
    b. Overriden methods.
    c. Generic methods.


    b). All generic method declarations have a type parameter section delimited by __________.

    a. curly brackets ({ and }).
    b. angle brackets (< and >).
    c. square brackets ([ and ] ).





     c). A recursive method _______________________.
    a. is a method containing a loop.
    b. calls itself.
    c. is part of the java.recursion package.







    d).  When formulating a recursive solution, what should you consider?
    a. base cases and general case
    b. base cases only
    c. general case only








     2. What does the following statements display?                               

    public class MysteryClass
    {
       public static int mystery( int[] array2, int size )
       {
          if ( size == 1 )
             return array2[ 0 ];
          else
             return array2[ size - 1 ] + mystery( array2, size - 1 );
       } // end method mystery

       public static void main( String[] args )
       {
          int[] array = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };

          int result = mystery( array, array.length );
          System.out.printf( "Result is: %d\n", result );
       } // end method main
    } // end class MysteryClass
                                   


    //answer for #2

    M(a,10) = a[9] + M (a,9) 45+10 = 55
    M(a,9) = a[8] + M (a,8)36+9 45
    M(a,8) = a[7] + M (a,7)28+8
    M(a,7) = a[6] + M (a,6) 21+7
    M(a,6) = a[4] + M (a,4)15+6
    M(a,5) = a[4] + M (a,4)10+5
    M(a,4) = a[3] + M (a,3)6+4
    M(a,3) = a[2] + M (a,2) 3+3
    M(a,2) = a[1] + M (a,1) 2+1
    M(a,1) = a[0] + M (a,0)


     Result is : 55


















      3.  Show the output of the following program:       

    public class RangeSum
    {

       public static void main(String[] args)
       {
          int[] numbers = {1, 2, 3, 4, 5, 6, 7, 8, 9};
         
          System.out.print("The sum of elements 2 through " +
                           "5 is "+ rangeSum(numbers, 2, 5));
       }
      

       public static int rangeSum(int[] array, int start, int end)
       {
          if (start > end)
             return 0;
          else
             return array[start] + rangeSum(array, start + 1, end);
                    
       }
    }    
      
    //answer for #3


    Rangesum (2,5) = array[start] + rangesum (a, start +1, end)
    Rs(2,5) array[2]  + rs (a, 2+1, 5)
    Rs(2,5) 3+ rs (3,5) 15+3 = 18
    Rs(3,5) 4 + rs(4,5) 11+4
    Rs(4,5) 5 + rs(5,5) 6+5
    Rs(5,5) 6 + rs(6,5)


    The sum of elements 2 through 5 is 18

















    4. Show the output of following program:

    //  MaximumTest.java
    // Generic method maximum returns the largest of three objects.

    public class MaximumTest
    {
       public static void main( String[] args )
       {
          System.out.printf( "Maximum of %d, %d and %d is %d\n\n", 3, 4, 5,
             maximum( 3, 4, 5 ) );
          System.out.printf( "Maximum of %.1f, %.1f and %.1f is %.1f\n\n",
             6.6, 8.8, 7.7, maximum( 6.6, 8.8, 7.7 ) );
          System.out.printf( "Maximum of %s, %s and %s is %s\n", "pear",
             "apple", "orange", maximum( "pear", "apple", "orange" ) );
       } // end main

       // determines the largest of three Comparable objects
       public static < T extends Comparable< T > > T maximum( T x, T y, T z )
       {
          T max = x; // assume x is initially the largest

          if ( y.compareTo( max ) > 0 )
             max = y; // y is the largest so far

          if ( z.compareTo( max ) > 0 )
             max = z; // z is the largest

          return max; // returns the largest object
       } // end method maximum
    } // end class MaximumTest



    //answer #4
    Maximum of 3, 4 and 5 is 5
     
    Maximum of 6.6, 8.8 and 7.7 is 8.8
     
    Maximum of pear, apple and orange is pear


         









    5. Show the output of running the class Test in the following code:

    import java.util.ArrayList; // Needed for ArrayList class

    public class ArrayListDemo3
    {
       public static void main(String[] args)
       {
          // Create an ArrayList to hold some names.
          ArrayList nameList = new ArrayList();
         
          // Add some names to the ArrayList.
          nameList.add("James");
          nameList.add("Catherine");
          nameList.add("Bill");
         
          // Display the items in nameList and their indices.
          for (int index = 0; index < nameList.size(); index++)
          {
             System.out.println("Index: " + index + " Name: " +
                                nameList.get(index));
          }
         
          // Now remove the item at index 1.
          nameList.remove(1);
         
          System.out.println("The item at index 1 is removed. " +
                             "Here are the items now.");
                            
          // Display the items in nameList and their indices.
          for (int index = 0; index < nameList.size(); index++)
          {
             System.out.println("Index: " + index + " Name: " +
                                nameList.get(index));
          }
       }
    }

    //answer #5
    Index: 0 Name: James
    Index: 1 Name: Catherine
    Index: 2 Name: Bill
    The item at index 1 is removed. Here are the items now.
    Index: 0 Name: James
    Index: 1 Name: Bill















    6. What is the output of running class C?

    import java.util.ArrayList; // Needed for ArrayList class


    public class ArrayListDemo1
    {
       public static void main(String[] args)
       {
          // Create an ArrayList to hold some names.
          ArrayList nameList = new ArrayList();
         
          // Add some names to the ArrayList.
          nameList.add("James");
          nameList.add("Catherine");
          nameList.add("Bill");
         
          // Display the size of the ArrayList.
          System.out.println("The ArrayList has " +
                             nameList.size() +
                             " objects stored in it.");

          // Now display the items in nameList.
          for (int index = 0; index < nameList.size(); index++)
             System.out.println(nameList.get(index));
       }
    }


    // Answer # 6

    The ArrayList has 3 objects stored in it.
    James
    Catherine
    Bill




















    7. What is the output of running the class C.

    public class C {
      public static void main(String[] args) {
        Object[] o = {new A(), new B()};
        System.out.print(o[0]);
        System.out.print(o[1]);  
      }
    }

    class A extends B {
      public String toString() {
        return "A";
      }
    }

    class B {
      public String toString() {
        return "B";
      } 
    }

    a. AB
    b. BA
    c. AA
    d. BB
    e. None of above
















    8. What is the output of running class C?

    class A {
      public A() {
        System.out.println(
          "The default constructor of A is invoked");
      }
    }

    class B extends A {
      public B(String s) {
        System.out.println(s);
      }
    }

    public class C {
      public static void main(String[] args) {
        B b = new B("The constructor of B is invoked");
      }
    }
    a.         none
    b.         "The constructor of B is invoked"
    c.         "The default constructor of A is invoked" "The constructor of B is invoked"
    d.         "The default constructor of A is invoked"






























    9. Analyze the following code:

    public class Test1 {
      public Object max(Object o1, Object o2) {
        if ((Comparable)o1.compareTo(o2) >= 0) {
          return o1;
        }
        else {
          return o2;
        }
      }
    }

    a.         The program has a syntax error because Test1 does not have a main method.
    b.         The program has a syntax error because o1 is an Object instance and it does not have the compareTo method.
    c.         The program would compile if ((Comparable)o1.compareTo(o2) >= 0)
    is replaced by ((ComparableTo(o1).compareTo(o2) >= 0).
    d.         b and d are both correct.

    10.a). Complete the code:
    public class Test {
      public static void main(String[] args) {
        int i = 4; int j = 5;

        // Fill in the code to invoke the sum method and display the sum of i and j.


    }
    Sysem.out.println(sum(I,j));
    }

    Public static int sum ( int I, int j )
    Return (I,j)

    }




      }

      public static int sum(int i, int j) {
        // Fill in the code here to return the sum of i and j.
        
      }
    }

    b). Complete the code:
    public class Test {
      public static void main(String[] args) {
        int i = 4; int j = 5;

        // Fill in the code to invoke the printSum method to display the sum of i and j.

    10 b

    Public static void main (string [] args){

    Int I = 4 j = 5

    printSum(i.j)

    }

    Public static void printSum(int I, int j)
    {
    System.out.println(i+j)



      }

      public static void printSum(int i, int j) {
        // Fill in the code here to display the sum of i and j.
        
      }
    }




    10 a


    }
    Sysem.out.println(sum(I,j));
    }

    Public static int sum ( int I, int j )
    Return (I,j)

    }



    10 b

    Public static void main (string [] args){

    Int I = 4 j = 5

    printSum(i.j)

    }

    Public static void printSum(int I, int j)
    {
    System.out.println(i+j)