Category Archives: Uncategorized

Unix monitoring and audit

https://cisofy.com/lynis/ Lynis is an open source security auditing tool. Used by system administrators, security professionals, and auditors, to evaluate the security defenses of their Linux and Unix-based systems. It runs on the host itself, so it performs more extensive security scans than vulnerability scanners. It is also the client in our Lynis Enterprise offering. https://www.tecmint.com/linux-server-health-monitoring-script/  

Read more

A Simple Guide To Tomcat Logging

https://www.mulesoft.com/tcat/tomcat-logging Some additional info: http://mrhaki.blogspot.ru/2011/02/configure-log4j-on-tomcat.html An Overview of Tomcat Logging As of Tomcat 5.5, Apache’s Java Commons Logging (JCL) technology is used throughout Tomcat.  JCL is a lightweight API for Java applications that allows hierarchical logging to be supported across all log levels, independent of logging implementation.  This means that rather being limited to a […]

Read more

Default log4j initialization procedure

  The default initialization algorithm is invoked when the LogManager class is loaded into memory. This class is guaranteed to be loaded before any logger can be used. The exact initialization algorithm is defined as follows: If the log4j.defaultInitOverride system property is set to any other value then “false”, the default initialization procedure (this procedure) […]

Read more

Docker container networking modes

https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach Note on docker container networking modes Docker offers different networking modes when running containers. Depending on the mode you choose you would connect to your MySQL database running on the docker host differently. docker run –net=”bridge” (default) Docker creates a bridge named docker0 by default. Both the docker host and the docker containers have an IP address on […]

Read more

Стратегии загрузки коллекций в JPA

https://dou.ua/lenta/articles/jpa-fetch-types/ Стратегии загрузки коллекций в JPA Понимание стратегий загрузки коллекций в JPA и Hibernate является ключевым для производительности приложения, использующего ORM. Отношениям один-ко-многим или многие-ко-многим между таблицами реляционной базы данных в объектном виде соответствуют свойства сущности типа List или Set, размеченные аннотациями @OneToMany или @ManyToMany. При работе с сущностями, которые содержат коллекции других сущностей, возникает проблема известная как «N+1 selects». Первый запрос выберет только корневые сущности, а каждая […]

Read more

Http Message Converters with the Spring Framework

http://www.baeldung.com/spring-httpmessageconverter-rest 1. Overview This article describes how to Configure HttpMessageConverter in Spring. Simply put, message converters are used to marshall and unmarshall Java Objects to and from JSON, XML, etc – over HTTP. 2. The Basics 2.1. Enable Web MVC The Web Application needs to be configured with Spring MVC support – one convenient and very customizable way to do […]

Read more

Connecting services and hosts in Icinga2

To minimize overall configuration text it might be convenient to list all host services in the same block where the host is defined. The “apply for ” construct allows to di such thing. For example:   object Host “myhost.com” { import “generic-host-template” address = “myhost.com” vars.ipmi_address = “myhost-mgmt.com” vars.ipmi_config = “/usr/local/etc/freeipmi/ipmi_myhost.cfg” vars.service.https[“Myhost web”] = {port=8443} […]

Read more

Various unsorted links

http://www.machinelearning.ru http://www.jsfmatrix.net/ An article about GC in JVM, short and precise: http://habrahabr.ru/blogs/java/112676/ The same but more details: http://www.oracle.com/technetwork/java/gc-tuning-5-138395.html Set of ‘nutshell’ documents on Oracle and Solaris http://datadisk.co.uk/html_docs/ Reading and listening for programmers – from Хакер 01/2013 taop.rpod.ru – подкаст The art of programming pauldotcom.com – Security Weekly, Paul Asadoorian informit.com/podcasts/index.aspx securabit.com rsiky.biz – by Patrick Gray www.esetnod32.ru/company/viruslab/podcast Translations and […]

Read more

Difference between Fault, Failure and Error

Difference between Fault, Failure and Error Fault : An incorrect step, process, or data definition in a computer program which causes the program to perform in an unintended or unanticipated manner. It is an inherent weakness of the design or implementation which might result in a failure. A fault might be present and latent in the systems […]

Read more

Java и /dev/random

The Sun/Oracle-based JVM is attempting to generate a pseudo-random number to be used as a seed for an SSL server socket. To generate the pseudo-random number, the JVM is reading from the /dev/random device to obtain some random information for the seed. The problem is that reads from the /dev/random device will block if the […]

Read more

GPG – some commands

Nice description is here: http://www.somacon.com/p107.php Particular problem: when an imported key is used to encrypt some file gpg asks if we trust to the key: It is NOT certain that the key belongs to the person named in the user ID.  If you *really* know what you are doing, you may answer the next question with […]

Read more

Phil Bernstein

Phil Bernstein http://research.microsoft.com/en-us/people/philbe/ Wrote a couple of books: – Principles of Transaction Processing (2nd edition), coauthored with Eric Newcomer, was published in June 2009 by Morgan-Kauffman Publishers, a division of Elsevier. – Concurrency Control and Recovery in Database Systems, coauthored with Vassos Hadzilacos and Nathan Goodman

Read more

Аузан 2005 часть 2

2004 год: Регенерация вертикального социального контракта Я утверждаю, что в течение последнего года у нас идет интенсивная регенерация привычного для России гоббсовского договора. Я могу говорить о фактах. Ведь что есть главный признак такого рода контракта? Главный признак такого рода контракта есть то, что власть имеет возможность забрать права и перераспределить их. Забыли о “Юганскнефтегазе”, […]

Read more