All Questions

1
answer

How to maintain multiple connections to postgresql in Node.js?

I'm using Node.js in a task where I need to migrate data between two PostgreSQL databases. The idea is more or less as follows: Connect to Bank A. Connect to Bank B. Return all records of A. Insert all A's Registers not yet present in...
asked on 27.10.2015 / 14:05
1
answer

PHP - Make 3 INSERT on different tables with relationship between them

I would like your endorsement. I need to do 3 INSERT at once. But I also need to get the last ID of each table to do the relationship of the tables. Is this correct, to do this? if($_GET['operacao'] == 'addPrimeiroCadastro'){...
asked on 18.12.2015 / 02:59
1
answer

How to fill an ontology from Java?

I'm working with ontologies, and I have an OWL file where my ontology is already defined, classes, object properties, and so on. I use Protegé 4.1 to fill these policies by creating the instances of each class. But I'm trying to create these ins...
asked on 20.08.2015 / 17:52
3
answers

Omitting the else is a good idea in some cases, or not? [closed]

I ask myself this question every time I'm coding, because I always worry about leaving my code understandable to other programmers who will be looking at it - and myself, because maybe I will not remember what I did there. Would it be a good...
asked on 18.08.2015 / 21:49
1
answer

Delphi Error or Bug in Procedure Creation

In the creation of the Automatic Procedure, double click on the component, Delphi XE8 and delphi-10 is having a strange reaction it mixes the new Procedure with one of the existing Procedure, causing their names to be wrong and I have to correct...
asked on 14.11.2015 / 01:00
2
answers

How to make a function wait for jQuery loaded with the async tag

I have a problem to make a function wait for loading the package.js with the async tag <script id="packjs" async type="text/javascript" src="pacote.js"></script> This file contains jQuery and some plugins. The problem is that wh...
asked on 27.11.2015 / 12:36
2
answers

Problems with lazy Hibernate

Friends, all good? I have a problem that is famous: org.hibernate.LazyInitializationException: . I know this is because the session has been closed and hibernate can not connect to make the selects and so on, but then how do I get the dat...
asked on 20.05.2015 / 15:47
1
answer

Mysqli bind with an array of values

I have a code in PDO and I need to convert this code to mysqli, at this moment I have something like that: $sql = "SELECT * from tabela where nome = ? AND idade = ? AND outro = ?"; $stmt = $core->conn->prepare($sql); $bindArray = array...
asked on 04.12.2015 / 12:56
3
answers

Check if int is "null" in C #

In C # it is not possible to assign null to an integer value ( int , not int? ). However, how can I tell if an integer value ( int ) has not yet had an assigned value (being int )? int? valor; if (valor == nul...
asked on 15.08.2017 / 17:10
3
answers

Is it possible to load alternative .css links in case the primary link is not working?

It's not a problem, but a question that can solve many of my problems. Let's say I upload this CSS file to my site: <link href='http://host-1.com/style.css' rel='stylesheet' type='text/css'/> But if host-1.com is offline? Is ther...
asked on 07.01.2017 / 20:41