Posts by Israel Zebulon • 1,758 points
92 posts
-
1
votes1
answer483
viewsQ: How do for a Docker container to resolve a HOST DNS name?
On my HOST server I put in the file /etc/hosts the input: 192.168.9.9 server_1 I need you inside a Docker container, if I call: wget server_1:1234 , it accesses port 1234 of ip 192.168.9.9 (is the…
dockerasked Israel Zebulon 1,758 -
2
votes1
answer275
viewsA: Delete record in multiple tables in Mysql
The official syntax is: DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM tbl_name [[AS] tbl_alias] [PARTITION (partition_name [, partition_name] ...)] [WHERE where_condition] [ORDER BY ...] [LIMIT…
mysqlanswered Israel Zebulon 1,758 -
3
votes3
answers220
viewsA: Select multiple tables at the same time in SQL
Can read the documentation on INNER JOIN and LEFT JOIN. A simple idea to join the tables will be something like Select * from Pacientes INNER JOIN anamnese ON anamnese.idPacientes ==…
sqlanswered Israel Zebulon 1,758 -
1
votes0
answers43
viewsQ: MACOS 10.14.1 MOJAVE
After upgrading the OS to the MOJAVE version, ssh stopped connecting to the servers. The screen gets frozen in this part: ssh user@ipServer -v Openssh_7.8p1, Libressl 2.7.3 debugging: Reading…
-
0
votes2
answers80
viewsA: Guniconr/Nginx/virtualenv inside Docker
Usando composer fica: version: '3.1' services: api: restart: always build: ./core container_name: "core" expose: - "5000" volumes: -…
-
0
votes2
answers80
viewsA: Guniconr/Nginx/virtualenv inside Docker
I decided as follows : Dockerfile FROM centos:7 # This bit is exactly as per the documentation and can be stuck # existing Dockerfiles without issue ENV container docker RUN (cd…
-
0
votes2
answers80
viewsQ: Guniconr/Nginx/virtualenv inside Docker
I’m trying to run the tutorial routine digitalocean inside a Docker machine. Using the official website as a basis gunicorn My problem happens in trying to reverse proxy inside the container. My…
-
0
votes1
answer118
viewsQ: Use javascript to fire modal ulkit css
According to the Ulkit css documentation to display a modal window we have: <button uk-toggle="target: #my-id" type="button"></button> <!-- This is the modal --> <div id="my-id"…
-
3
votes1
answer265
viewsA: Export DB table in csv format with columns separated by semicolons
Following his own documentation, just guess the flag string $delimiter = "," changing to ";" $out = fopen('php://output', 'w'); fputcsv($out, array('this','is some', 'csv "stuff", you know.'),';');…
-
1
votes2
answers54
viewsA: Angularjs and angular 2, 4,6
For your need, angulaJS would meet without problems. Even if it ends in 2018 its releases, the 1.x framework is useful and functional for simple things. If you then want to delve into new…
-
0
votes2
answers51
viewsA: "i" turn an HTML button
If you use some js framework (angular, vuejs) you could just attach the function to I. As in the example it is not clear which approach, one of them would be: <div class="btn btn-primary" >…
-
0
votes1
answer63
viewsA: Make files available according to client group using php
Sql searches to return faster data should be as objective as possible. It is better to use = 1 than < 2. In this case assuming that 0, -1 or any other value happens to arrive, the retail table…
-
0
votes2
answers215
viewsA: Problem inserting data into a table containing foreign keys
Two things you need to define before writing the database is normalization. Whether the client can hire only for his city or another. In case it is for another, your table event should point to a…
-
0
votes2
answers37
viewsA: Print radio checked in Ulkitcss
I identified where the problem happens. It wasn’t about Angularjs or jquery. In the Ulkitcss CSS file, line 1606 to 1627 are the properties: .uk-radio, .uk-checkbox { /* 1 */ display: inline-block;…
cssanswered Israel Zebulon 1,758 -
1
votes2
answers37
viewsQ: Print radio checked in Ulkitcss
I use Ulkitcss and have snippets of a form with radio input fields as below. When printing (Ctrl+p or window.print() or $windows.print) the field is not checked. The selected radio simply does not…
cssasked Israel Zebulon 1,758 -
-1
votes1
answer323
viewsQ: Obfuscate JS Code ES6
What is the most appropriate way to obfuscate code created using JS ES6 for use within electronjs?
-
1
votes0
answers29
viewsQ: Setup gitlabCe on Docker
I installed gilab container on Docker however two problems appeared: 1 - If you configure external_url the system does not restart. 2 - If you look at the path of the project SSH is…
dockerasked Israel Zebulon 1,758 -
0
votes5
answers889
viewsA: Automatically delete inputs later
Two options: $('form').submit(function(){ $(this)[0].reset(); }); Or take it field by field: document.getElementById('IdDocampo').value=''; // Limpa o campo Example: <form name="form"> First…
-
0
votes2
answers173
viewsA: Typescript variable inside function allocates information outside of it it is empty
When Voce uses LET it is limiting its value to the scope where it was declared. When Voce reuses the variable y = x[0]. id;, put this new value of y in a new scope. To solve your problem use VAR…
javascriptanswered Israel Zebulon 1,758 -
1
votes1
answer49
viewsA: Problem with tables
Best Normalize the Bank As Follows: Table Series : Idserie Nome As the spisodium is of the season, so: Time Table: Idtemporada, Idserie(FK) The episode is linked to the season, so: Table Episodios:…
-
0
votes0
answers197
viewsQ: FTP - Check for file in nodejs
I have a folder on a server, accessible via FTP. I would like to know a form in NODEJS where passing the file name, it returns me if the file exists or not. I found an implementation in DELPHI -…
-
2
votes1
answer213
viewsQ: Bulma CSS Scrolldown Navbar
On the official website of Bulma CSS you can see that when you scroll down the page the navbar menu appears at the top. The Transform: translateY property inspected in the browser appears to be used…
-
0
votes1
answer56
viewsA: I am using Pdo prepare statement appears no error and neither enters anything in the database
The syntax of Insert is wrong. She should be something for example: INSERT INTO NOME_DA_TABELA (CAMPOS_QUE_DESEJA_INSERIR_DADOS) VALUES (VALORES_DOS_CAMPOS). What was typed in the question was a…
phpanswered Israel Zebulon 1,758 -
0
votes0
answers113
viewsQ: Build Electron final size
I wonder if there is any way to generate a build of an eletron app in a size less than 80 Mbs. I tried to generate on several platforms but always stays above 121mb There are only 10 pages. However,…
electronasked Israel Zebulon 1,758 -
2
votes0
answers441
viewsQ: Cache - Angularjs
I have an Angularjs(1.x.x)/php application that every version update, some users who use Firefox in the latest version, are required to run CTRL+SHIFT+R to clear the cache and get the updated…
-
1
votes2
answers904
viewsA: How to reference the variable within HTML through Angularjs?
Buddy, when you push your variable like this: [{"id":"id","setor":"setor","foto":"foto","descr":"descr","de":"de","por":"por","mercadoria":"0","quantidade":0,"total":"5","boto":-1}] in order to…
-
1
votes1
answer373
viewsA: ERROR while retrieving data from a form through $_POST[] in PHP
To send image files you need to change the FORM: <!-- O tipo de encoding de dados, enctype, DEVE ser especificado abaixo --> <form enctype="multipart/form-data" action="__URL__"…
-
0
votes1
answer78
viewsQ: Group mysql data
Given two tables groups and processes. Where each group can have 0 or N processes. What is the best way to get this crossing. Grupo -------- id Nome bol_ativo = S Processo ------- id numero ativo =…
mysqlasked Israel Zebulon 1,758 -
0
votes1
answer241
viewsQ: Json_econde error parsing special characters coming from the database ( using mysql PDO)
In a bank table there are accented words or words with c. When using json_encode in php to send the result to the view, json breaks due to the parser error. How best to handle these characters…
-
1
votes0
answers509
viewsQ: Encrypt JS/PHP GET parameter
What is the best way to traffic data between JS and PHP vie GET method? Imagine a $http request made on Angularjs passing ex parameters: minhaurl? id=2&name="Joao" The ideal would be to encrypt…
-
2
votes1
answer96
viewsA: How does every click on the checkbox count for a number?
A very simplistic solution would be something like this: <!DOCTYPE html> <html> <body> Checkbox: <input type="checkbox" id="m1" value="1" onclick="myFunction('m1')">…
-
3
votes2
answers14245
viewsQ: CSS Hide Elements using css only
Given the following code snippet: <div class="ui stackable inverted blue container menu"> <a class="item" href="/menu"> logo </a> <a class="item" href="/menu"> <i…
-
0
votes1
answer966
viewsQ: Capture Scroll by Scroll Bar
User fills in a form and clicks to register. The system opens a modal window with the "agree" button disabled. Only by scrolling the scroll bar to the end is the button enabled to register. By the…
-
1
votes1
answer60
viewsQ: Navbar with scroll using Semanticui
I need to make a Fixed top navbar. When the user scrolls the page the navbar should remain at the top but in a smaller size, displaying only the icons and omitting the texts. I need it to be done in…
-
2
votes1
answer313
viewsQ: Select with Angularjs
In an IONIC/CORDOVA app using anglarjs I found myself with the following problem: The angular mounts the select leaving an empty option at the beginning. example: JSFIDDKE When selecting one of the…
-
2
votes1
answer212
viewsA: Creating the bank with Migration Adjustable
According to the documentation as migrations do not create the database: Migrations are like version control for your database, allowing a team to modify and share the schema of the application…
-
1
votes0
answers64
viewsQ: PDO for DOCTRINE - Haversine formula
I need to transfer the PDO query below to DOCTRINE: $query = $con->query('SELECT *, ( 6371 * acos( cos( radians('.$latitude.') ) * cos( radians( latitude ) ) * cos( radians( longitude ) -…
-
1
votes1
answer30
viewsA: Form does not insert data into the database after submission
There is a syntax error in IF. A {} is after the variable and not after if. I modified PHP to start the code and worked smoothly. <?php if (!empty($_POST['nome1'])){ $nome = $_POST['nome1'];…
-
0
votes0
answers41
viewsQ: Specify table name using namespace in createQuery in Doctrine
I need to create a database query in a table whose name is order and that cannot be changed. I made the following query: $query = $entityManager->createQuery("SELECT sum(o.orderPrice) FROM…
-
1
votes2
answers491
viewsA: Get Timezone from browser using Angularjs
I was able to solve it this way: I added the lib JSTZ <script src="js/jstz.min.js"></script> In the file the controler includes the following code: /* jstz*/ (function () { 'use strict';…
-
1
votes1
answer458
viewsQ: Configure Namespace and autoload PSR-0
I am developing a project with the following structure: The goal is to make autoload load the classes. The archive autoload.php: function autoload($className) { $className = ltrim($className, '\\');…
-
1
votes2
answers491
viewsQ: Get Timezone from browser using Angularjs
I need to get the user’s browser Timezone. As this is an application using Angularjs, I decided to use the angular-Moment However I did not succeed in getting the name of Timezone. What I need is a…
-
2
votes1
answer138
viewsQ: View Datetime Content using Doctrine
In a Webservice project using Slimframework, I decided to add Doctrine to the BD queries. I decided to follow the guidance of DOCTRINE to work with Datetime and Time Zones according to this site…
-
1
votes2
answers63
viewsA: Problems in a crud class
The problem is using the function array_count_values The system ends up stopping because there are fields that are not STRING or INTEGER. Replace the end of index.php with the following code: $db =…
-
1
votes5
answers1111
viewsA: How do I leave the page open marked in the menu?
This is processed via css. Add this css to your page and make the necessary ID and Clase adaptations. In this demo site the skin.css file is that it has the css of the page in question. The css is:…
-
-1
votes3
answers81
viewsA: Working with date and deadline checks
For performance reasons, have the database calculate the difference between dates. See mysql’s DATEDIFF() function Click here for example. Assuming the return of dates is returned in the variable…
-
1
votes1
answer51
viewsA: Ssh connection between computers
Among the options take a look at these posts: SSH Autentication Key authentication…
-
0
votes1
answer73
viewsA: Doubt codeigniter
In view events: public function create() { $data = array( 'button' => 'Create', 'action' => site_url('eventos/create_action'), 'idEvento' => set_value('idEvento'), 'nome_evento' =>…
-
6
votes2
answers8768
viewsA: Convert float or double in real $
There are some ways to do it, for example: BigDecimal valor = new BigDecimal ("12000000.12"); NumberFormat nf = NumberFormat.getCurrencyInstance(); String formatado = nf.format (valor);…
javaanswered Israel Zebulon 1,758 -
0
votes3
answers447
viewsA: Search for more than one value in the same column?
It’s possible to do something like this: SELECT * FROM nome_tabela WHERE EXTRACT(YEAR FROM data_exame) = 2015 AND EXTRACT(YEAR FROM data_exame) = 2016;
mysqlanswered Israel Zebulon 1,758