Monday, September 17, 2018

λ> min
min :: Ord a => a -> a -> a
λ> min 1
min 1 :: (Ord a, Num a) => a -> a
λ> min 1 1
1
λ>


Saturday, September 15, 2018

Or, a vision in a dream. A Fragment. 
In Xanadu did Kubla Khan 
A stately pleasure-dome decree: 
Where Alph, the sacred river, ran 
Through caverns measureless to man 
   Down to a sunless sea. 
So twice five miles of fertile ground 
With walls and towers were girdled round; 
And there were gardens bright with sinuous rills, 
Where blossomed many an incense-bearing tree; 
And here were forests ancient as the hills, 
Enfolding sunny spots of greenery. 

But oh! that deep romantic chasm which slanted 
Down the green hill athwart a cedarn cover! 
A savage place! as holy and enchanted 
As e’er beneath a waning moon was haunted 
By woman wailing for her demon-lover! 
And from this chasm, with ceaseless turmoil seething, 
As if this earth in fast thick pants were breathing, 
A mighty fountain momently was forced: 
Amid whose swift half-intermitted burst 
Huge fragments vaulted like rebounding hail, 
Or chaffy grain beneath the thresher’s flail: 
And mid these dancing rocks at once and ever 
It flung up momently the sacred river. 
Five miles meandering with a mazy motion 
Through wood and dale the sacred river ran, 
Then reached the caverns measureless to man, 
And sank in tumult to a lifeless ocean; 
And ’mid this tumult Kubla heard from far 
Ancestral voices prophesying war! 
   The shadow of the dome of pleasure 
   Floated midway on the waves; 
   Where was heard the mingled measure 
   From the fountain and the caves. 
It was a miracle of rare device, 
A sunny pleasure-dome with caves of ice! 

   A damsel with a dulcimer 
   In a vision once I saw: 
   It was an Abyssinian maid 
   And on her dulcimer she played, 
   Singing of Mount Abora. 
   Could I revive within me 
   Her symphony and song, 
   To such a deep delight ’twould win me, 
That with music loud and long, 
I would build that dome in air, 
That sunny dome! those caves of ice! 
And all who heard should see them there, 
And all should cry, Beware! Beware! 
His flashing eyes, his floating hair! 
Weave a circle round him thrice, 
And close your eyes with holy dread 
For he on honey-dew hath fed, 
And drunk the milk of Paradise.

Sunday, September 02, 2018

emacs and intellij

using emacs as an external editor for intellij

Saturday, August 25, 2018

wow

definitely
dont
want to host
my own
blogging platform
again

that didn’t
go well
the last time


bill bissett...

coding
and
pomes


blogo has issues
why is
writing a good blogging client
so hard?


java

doubling down on intellij
still love my eclipse
but i gotta get those
keybindings
going

Thursday, August 23, 2018

streams

IntStream
LongStream
DoubleStream


When is Navaratri in 2018?

Navaratri in 2018 will start on Tuesday, the 9th of October(9/10/2018) and will continue for 9 days until Wednesday, the 17th of October.

http://www.when-is.com/navaratri-2018.asp


I love the :lambda: sign


functional programming

java 8 streams

package net.sness;

import java.util.*;
import java.util.stream.Stream;

public class TestMax {
public static void main(String[] args) {

Collection<String> strings = Arrays.asList("one", "two", "three");

Optional<String> longest = strings.stream()
.max(Comparator.comparingInt(String::length));

System.out.println("longest=" + longest.get());

}
}

Monday, August 20, 2018

Sunday, August 19, 2018

test

testing with blogo

works very well

wonder why it was 3 stars
on
the App Store

monad tutorial in haskell

Sunday, July 22, 2018

Mostly posting on http://sness.newsblur.com/ these days

Wednesday, January 24, 2018

Apex Specialist | Superbadge

Apex Specialist | Superbadge:



This is cool, it's a set of trailhead modules that let you learn Apex, the Java-like language used by Salesforce for building apps.
Dockerfile sample : https://github.com/snessnet/test-docker



Docker has some merit

Saturday, March 11, 2017

Hip Hop is born at a birthday party in the Bronx - Aug 11, 1973 - HISTORY.com

Hip Hop is born at a birthday party in the Bronx - Aug 11, 1973 - HISTORY.com: "DJ Kool Herc’s signature innovation came from observing how the crowds would react to different parts of whatever record he happened to be playing: “I was noticing people used to wait for particular parts of the record to dance, maybe [to] do their specialty move.” Those moments tended to occur at the drum breaks—the moments in a record when the vocals and other instruments would drop out completely for a measure or two of pure rhythm. What Kool Herc decided to do was to use the two turntables in a typical DJ setup not as a way to make a smooth transition between two records, but as a way to switch back and forth repeatedly between two copies of the same record, extending the short drum break that the crowd most wanted to hear. He called his trick the Merry Go-Round. Today, it is known as the “break beat.”"


Saturday, November 28, 2015

Why can outer Java classes access inner class private members? - Stack Overflow

Why can outer Java classes access inner class private members? - Stack Overflow: "Otherwise, if the member or constructor is declared private, then access is permitted if and only if it occurs within the body of the top level class (§7.6) that encloses the declaration of the member or constructor."