發表文章

.cd

圖片
.cd Introduced 1997 TLD type Country code top-level domain Status Active Registry fr:Société Congolaise des Postes et Télécommunications Sponsor Government of the Democratic Republic of the Congo Intended use Entities connected with the   Democratic Republic of the Congo Actual use Not that popular, but used for a miscellany of sites, some related to the Congo and some about music CDs Registration restrictions None Structure Registrations permitted at second level Dispute policies UDRP Registry Website www.nic.cd .cd is the Internet country code top-level domain (ccTLD) for the Democratic Republic of Congo. It was created in 1997 as a replacement for the .zr (Zaire) ccTLD, which was phased out and eventually deleted in 2001. Except for reserved names like .com.cd, .net.cd, .org.cd and others, any person in the world can register a .cd domain for a fee. The ccTLD is popular (and thus economically valuable) owing to it being an ab...

Owlready2 dynamic class generation

圖片
0 I am trying to dynamically create a class for an owlready2 ontology. The documentation suggests the following line of code: NewClass = types.new_class("NewClassName", (SuperClass,), kwds = { "namespace" : my_ontology }) In my case this equals types.new_class("NewClassName", (onto["ParentClass"],), kwds={'namespace' : onto}) However, when I run the above code, I get the following exception: Traceback (most recent call last): (onto[object.get('owl_dataProperty_parent')],), kwds={'namespace' : onto}) File "/usr/lib/python3.6/types.py", line 62, in new_class return meta(name, bases, ns, **kwds) TypeError: __new__() got an unexpected keyword argument 'namespace I have no idea what went wrong there and after h...

Unable to close Session Factory, getting below exception while doing so

圖片
1 2 ModuleDAO data = new ModuleDAO(); data.setFirstName("asd2sedd"); data.setLastName("Lasst"); Configuration con = new Configuration().configure().addAnnotatedClass(ModuleDAO.class); ServiceRegistry registry = new StandardServiceRegistryBuilder().applySettings(con.getProperties()).build(); SessionFactory sf = con.buildSessionFactory(registry); Session session = sf.openSession(); Transaction t = session.beginTransaction(); session.save(data); t.commit(); sf.close(); Databse is Mysql & it is running on the same box with default port javax.net.ssl.SSLException MESSAGE: closing inbound before receiving peer's close_notify Exception Message: javax.net.ssl.SSLException: closing inbound before receiving peer's close_n...