Apr. 18th, 2013

juan_gandhi: (VP)
А интересно, как в русском дискурсе тележный мастер любит поучать конструкторов реактивных лайнеров.

2.10

Apr. 18th, 2013 03:46 pm
juan_gandhi: (VP)
  def jsGetTable(selector: String) = s"try { return extractTable(${selector.js}) } catch (err) { return [err.toString()] }"


What's going on here.

the method jsGetTable takes a CSS selector (it's a string); then a .js method (that's "pimp my library" pattern) replaces all apostrophes with quote chars and wraps the result in apostrophes; this value replaces the ${...} chunks, via Scala 2.10 String Interpolation.

The result is a piece of JavaScript that I pass to the browsers, it executes it and returns me the result (which may be an error string, or an array of arrays produced by extractTable function.
juan_gandhi: (VP)
У нас тут один блядский идиот из горсовета вот что задумал: Proposed Meatless Monday Resolution Community Meeting

Я им там отписал всё, что я думаю про Единый Рыбный Политдень, про пятилетку в четыре года, про пятилетке качества рабочую гарантию, про верной дорогой идёте товарищи, и присоветовал валить нахуй в свою Северную Корею если им так нравится указывать другим что им положено жрать.

Update. Уже пошли предложения отозвать депутата. Я надеюсь, что это прокатит. Конечно, Аш будет вертеться как... э... как свиная отбивная на барбекью... но слово сказано; в следующий раз если его будут выдвигать, я понапечатаю плакатов с этим призывом к гражданам поменьше жрать побольше начальства слушаться.

javka

Apr. 18th, 2013 05:17 pm
juan_gandhi: (VP)
java(61199,0xac87ca28) malloc: *** mmap(size=763363328) failed (error code=12)


They say Java is better than C because you don't have to care about malloc

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

October 2025

S M T W T F S
    1 23 4
5 67891011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 7th, 2025 08:33 am
Powered by Dreamwidth Studios