Posts

Showing posts from January 10, 2019

Niccolò Copernico

Image
.mw-parser-output .nota-disambigua{clear:both;margin-bottom:.5em;border:1px solid #CCC;padding-left:4px}.mw-parser-output .nota-disambigua i{vertical-align:middle} Disambiguazione – "Copernico" rimanda qui. Se stai cercando altri significati, vedi Copernico (disambigua) . Ritratto di Niccolò Copernico esposto presso il municipio di Toruń dal 1580 Firma di Copernico Niccolò Copernico , dal latino Nicolaus Copernicus , italianizzazione di Mikołaj Kopernik ( AFI : [miˈkɔwaj kɔˈpɛrɲik] ; Toruń, 19 febbraio 1473 – Frombork, 24 maggio 1543), è stato un astronomo e matematico polacco, ottenne la laurea in diritto canonico presso l'Università di Ferrara nel 1503 e divenne famoso per aver portato all'affermazione la teoria eliocentrica. Dopo un aspro dibattito storico-geografico circa la sua nazionalità, Copernico è unanimamente considerato oggi polacco. Fu anche ecclesiastico, giurista, governatore e medico. La sua teoria, che propone il Sole al centro del

Disable keyboard action while loading the page in angular 6

Image
0 I am trying to make loader using css in anular 6.I successfully implemented the loader. I can disable the mouse interaction with the DOM using the css property 'pointer-events';But i can't avoid the keyboard interaction with the DOM.How can i disable the Keyboard interaction with the DOM using css?Is it possible with pure css? Here is my code: pointer-events: all; z-index: 99999; border: none; margin: 0px; padding: 0px; width: 100%; height: 100%; top: 0px; left: 0px; cursor: wait; position: fixed; background-color: rgba(0, 0, 0, 0.8); user-select: none; html css angular6 share | improve this question asked Nov 21 '18 at 9:49

Complex generics need some weird castings to run

Image
0 1 Playing around with genericity, I built a simple social network model, base on persons and relations between them. All of those are stored in a container. For each container, I want to be able to add some validation to check some specific constraints. Here is the maybe overly complex model, but as said, I'm playing with genericity, so it's kind of on purpose: public interface IContainer<TPerson, TRelation> where TRelation : IRelation<TPerson> { IReadOnlyCollection<TPerson> Persons { get; } IReadOnlyCollection<TRelation> Relations { get; } } public class DefaultContainer<TPerson, TRelation> : IContainer<TPerson, TRelation> where TRelation : IRelation<TPerson> { private readonly HashSet<TPerson> _persons; private rea