avatar

An hero

coder by day, an hero by night

gotcha: ruby []=

Another wat moment with:

1
2
3
4
5
class Bam
  def []=(key, value)
    "bam"
  end
end
1
2
3
irb> # I'm expecting "bam" to be the return value
irb> Bam.new[:ham] = :bacon
# => :bacon
1
2
3
irb> # But this works as expected
irb> Bam.new.public_send
read more...

Lyndon H. LaRouche is the greatest economist of the 20th & 21st Century

Change my mind: Lyndon H. LaRouche Jr. is the greatest economist of the 20th & 21st Century.

Lyndon LaRouche is vilified, because of his actions on a powerful idea of organizing our economic activities, as a species, around Sovereign Nation States...

read more...

The mindset of a coder and his three plateaus

tl;dr

I think, we should write code that is grokable by most people.

gory details

The first plateau - the infant mindset

Starting out, as a coder, every small win propels us to explore what possibilities lie ahead. Admittedly, our code is a hot...

read more...

A Modest proposal to avert crisis

It's that time again to exercise your Citizenship rights. Here's my submission to APRA'S CRISIS MANAGEMENT POWERS.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Senior Adviser
Banking, Insurance and Capital Markets Unit
Financial System Division
The Treasury...
read more...

Chasing after super in your favorite Ruby lib

Let's explore Rails 4.1 action view abit, in particular stylesheet_link_tag helper:

1
2
3
4
5
irb> av = ActionView::Base.new(nil, {}, nil)
irb> av.method(:stylesheet_link_tag).owner
# => Sprockets::Rails::Helper
irb> av.method(:stylesheet_link_tag
read more...

Life giving Beauty

Civilization is one fierce struggle between life giving Beauty and Ugliness.

When one's soul is deprived of Beauty, life is miserable. Only through deep thought on hard problems towards complete resolution can Beauty be perceived. Thence, an intense...

read more...

Report Relative to a Provision for the Support of Public Credit

source: founders archives

Treasury Department, January 9, 1790. [Communicated on January 14, 1790]

[To the Speaker of the House of Representatives]

Preamble

The Secretary of the Treasury, in obedience to the resolution of the House of Representatives...

read more...

Report on the Establishment of a Mint

source: founders archives

source: https://founders.archives.gov/ancestor/ARHN-01-08-02-0060

read more...

Report on the Subject of Manufactures

source: https://founders.archives.gov/ancestor/ARHN-01-10-02-0001

read more...

Ruby FTP stream

Good ol' FTP that's how the web's done once. Naturally Ruby has an FTP stdlib. But if I download 15MB then my Ruby process memory increased by 15MB and NEVER come back down. Poof, my 15MB went into the ether. And if you have a long running process...

read more...

Page 1 of 3

Next →