Uno scrittoio digitale …

25 luglio 2016

React communication between component

Archiviato in: web — Tag:, , , — admin @ 23:40

see

7 luglio 2016

java mysql driver

Archiviato in: code, java — Tag:, — admin @ 10:10

avoid OutOfMemory with simulated streaming:


            conn = DriverManager.getConnection(ds.getJdbcUrl(), ds.getUser(), ds.getPassword());
            stmt = conn.createStatement(java.sql.ResultSet.TYPE_FORWARD_ONLY, java.sql.ResultSet.CONCUR_READ_ONLY);
            stmt.setFetchSize(Integer.MIN_VALUE);

1 luglio 2016

Cecorator pattern with Modules

Archiviato in: rails — admin @ 08:26

class Tattoo
  def price
    300
  end
end

module ColourTattoo
  def price
    super + 150
  end
end

module BigTattoo
  def price
    super + 200
  end
end

tattoo = Tattoo.new
tattoo.extend(ColourTattoo)
tattoo.extend(BigTattoo)

Ruby on Rails Documentation

Archiviato in: Senza categoria — admin @ 08:18

For all versions of Rails

Funziona con WordPress