Catalan numbers en Scala
Demostració de com implementar la seqüència de números Catalans amb Scala. Vist a Rosetta code. Tweet
Demostració de com implementar la seqüència de números Catalans amb Scala. Vist a Rosetta code. Tweet
Demostració de com implementar la seqüència de números Catalans amb Python. Vist a Rosetta code. Tweet
Demostració de com implementar la seqüència de números Catalans amb Javascript. Vist a Rosetta code. Tweet
Demostració de com implementar la seqüència de números Catalans amb Java. Vist a Rosetta code. Tweet
Annotation Description @Test Denotes that a method is a test method. Unlike JUnit 4’s @Test annotation @ParameterizedTest Denotes that a method is a parameterized test. @RepeatedTest Denotes that a method is a test template for a repeated test. @TestFactory Denotes that a method is a test factory for dynamic tests. @TestTemplate Denotes that a method […]
Enllaços: Eclipse AspectJ: https://www.eclipse.org/aspectj/doc/released/progguide/starting-production.html Spring AspectJ tutorial: https://www.javatpoint.com/spring-aop-aspectj-annotation-example JCabi AspectJ: https://aspects.jcabi.com/ JCabi AspectJ tutorial: https://www.yegor256.com/2014/06/01/aop-aspectj-java-method-logging.html Maven AspectJ: https://stackoverflow.com/questions/25155905/running-jdk8-for-aspectj Tweet
Reactive té a veure com optimitzar la gestió de cues de treball. Intentant minimitzar la interdependència de threads i evitar bloquejos. Generació 0 : Quan java feia servir callbacsk de l’estil addXXXListener(…) en Swing, AWT, Android, … Generació 1: Rx.NET, REactive4Java, RxJava, IObservable / IObserver. La implementació no suportava massa càrrega quan el consumidor tardava […]
Webcams a la muntanya, amb vídeo timelapse. Molt recomanable per saber el temps que fa a la muntanya i quina evolució ha fet els últims dies Per exmple a la Vall de Núria https://www.lookr.com/es/lookout/1260608835-Queralbs#action-play-month Tweet
Solució tar + ssh: tar -cf – /path/to/backup/dir | ssh remotehost “cat – > backupfile.tar” Solució cat + ssh: cat local_script.sh | ssh -A usera@bastion ssh -A userb@privateserver “cat > remote_copy_of_local_script.sh; bash remote_copy_of_local_script.sh” Solució cat + ssh amb RSA: ssh root@example.com ‘cat >> .ssh/authorized_keys’ < .ssh/id_rsa.pub Solució tar + compress + ssh: tar czf – […]
Vist a https://blog.overops.com/the-logging-olympics-a-race-between-todays-top-5-logging-frameworks/ Conclusions: Log4j és el més ràpid escrivint constants però el més lent fent toString(). Log4j2 de Apache és el més ràpid fent toString() o amb un Throwable i és un dels frameworks més recents i amb més opcions. Logback és semblant amb log4j en quant a velocitat, però és molt pitjor escrivint […]