16 May 2020

Memoization Notes


  • Memoization... las funciones de verdad que siempre tendran el mismo output... entonces podemos guardarelas para no recalcularlas.
  • Fibonacci is a good example
  • We need to identify/create the function that can be memoization... and if we are lucky, then we can have a functional function :P that can have memoization.
  • Books on Memoization?
  • Do thinking! (correct thinking!)
  • Combinatorial optimization
  • Linear programming
  • Dynamic programming


24 April 2020

Bastion Hosts on AWS

A bastion host is a server whose purpose is to provide access to a private network from an external network, such as the Internet. Because of its exposure to potential attack, a bastion host must minimize the chances of penetration. For example, you can use a bastion host to mitigate the risk of allowing SSH connections from an external network to the Linux instances launched in a private subnet of your Amazon Virtual Private Cloud (VPC).



https://aws.amazon.com/blogs/security/how-to-record-ssh-sessions-established-through-a-bastion-host/

https://aws.amazon.com/quickstart/architecture/linux-bastion/


23 April 2020

Oracle Cloud Infrastructure Foundations Associate

Current certification as an introduction to OCI (Oracle Cloud Infrastructure).
  • Dynamic Routing Gateway (DRG, a virtual router): (for on-premises) Fast connect, and IPSec VPN (Site-2-site)
  • Internet Gateway (internet)   
  • Service Gateway (oci services)
  • NAT Gateway: only outbound
  • Peering:  Local & Remote VCN peering (diff VCN regions)






https://www.oracle.com/corporate/blog/free-certifications-oracle-oci-autonomous-033020.html



23 February 2020

Singleton Spring

Singleton Spring Beans are not like the GoF Singleton design pattern.

 Spring can have more than one if they have different id's; meanwhile, GoF only allows one instance of the class (object) in the complete classloader.

 None option can solve some thread-safe issues that may appear by the composition of other objects that are nor thread-safe, JDBC connections, HTTP session, SimpleDateFormat, etc.

Update:

From that URL:

Summary

Spring Singleton is very different from Singleton pattern. Spring guarantees to create only one bean instance for given bean id definition per container.Singleton pattern ensures that one and only one instance is created per ClassLoader.


Blog Archive

Disclaimer

Qux