Posts by Luiz Santos • 3,162 points
113 posts
-
2
votes1
answer1015
viewsA: IDE for development in Vuejs
Some editors of vueJS: Atom408 with language-vue730 Sublime Text 3203 with Vue-syntax-highlight432 I came or Neovim213 with vim-vue214 Personal Use I particularly use the Sublime, I find it very…
vue.jsanswered Luiz Santos 3,162 -
0
votes1
answer433
viewsA: Api Google maps
From what I understand you want to create a map that shows the nearby localities, it would be something like this: function initAutocomplete() { var map = new…
-
2
votes1
answer118
viewsQ: In which reality is Kony Framework the best choice?
Today the market is looking for more and more frameworks for hybrid mobile application development. One framework I had heard about was Kony, because it was chosen by Itau (Recently Switched). I…
-
4
votes2
answers677
viewsA: Is it mandatory to open and close connection when entering data?
You should not leave connections open. You must: 1) Open connections as late as possible 2) Close connections as quickly as possible The connection itself is returned to the connection pool.…
-
2
votes1
answer37
viewsA: How to join texts in a textbox by dragging them?
This can be solved using html and javascript. Your html would look like this: function allowDrop(ev) { ev.preventDefault(); } function drag(ev) { ev.dataTransfer.setData("Text",ev.target.id); }…
-
1
votes1
answer406
viewsA: Access website on SMARTTV
There is a list of tv’s that Html5 is supported: LG Webos 2016 Webos Samsung Smart TV 2015 Tizen Panasonic Viera 2015 Firefox OS Googletv Chrome 11 Check if your tv is in the supported ones, and…
-
0
votes4
answers1005
viewsA: Convert Int to bool
Then the comparison should be made with two equal (==), so your code will look like this: if (usr.Excluido == 0) { ModelState.AddModelError("", "Usuário bloqueado."); return View(model); } Example:…
-
7
votes1
answer195
viewsA: What is WAMP (Web Application Messaging Protocol)?
Wamp WAMP is a byproduct of Websocket registered in IANA, specified to offer routed RPC and Pubsub. Its design goal is to provide an open standard for real-time messaging between application…
-
4
votes1
answer1004
viewsA: How to simulate load in a database?
These types of tests you want to perform call stress testing. Stress Test Tools In the case of sql server, there is a tool called sqlquerystress, that can help you take this test. With it it is…
-
0
votes2
answers176
viewsA: Use Google Oauth2 without going through the google login page
It is not possible. Google makes great efforts to make sure that only humans can provide passwords, not apps that act on behalf of users. They also want to guarantee the science of the user of the…
-
1
votes2
answers8176
viewsA: CPF Mask and Date of Birth Asp.net MVC
Using masks is always a good way because it facilitates the filling out of the form and assists the user in the correct filling out of the data. Usually masks are applied via Avascripts, because the…
-
6
votes1
answer1307
viewsA: What is the advantage of front-end frameworks like React?
A front end framework brings together various features and facilitates much of your work. Using a framework you will find many facilities like: Reuse of code More Speed in Development Easier to find…
-
2
votes1
answer45
viewsA: How to migrate Posgresql Script to Mysql Script?
I advise you to use Mysql Workbench, because it has an excellent migration tool, as mentioned on the product site itself: Mysql Workbench 5.2.41 introduced the new Migration Assistant module. This…
-
2
votes1
answer52
viewsA: Creating C# method, where do the parameters contain?
This query allows the field to receive a null value. For example when we declare something like this: int i; By default it will receive the value zero, already when we declare: int? i; It takes the…
-
0
votes1
answer47
viewsA: Convert "-12.0000"(string) to -12.0000(double). Is it possible?
You will have to pass the culture not to lose the 0, will be like this: double longitude = double.Parse(text, CultureInfo.InvariantCulture); It is advisable to always use double for latitude and…
c#answered Luiz Santos 3,162 -
3
votes4
answers7926
viewsA: How to Block Right Mouse Button and Block User from Viewing Source Code
Emphasizing that all two are bad practices, follow the answers: About Lock command to see Source Code It is not possible to prevent the user from entering the code (view-source:) running on the…
javascriptanswered Luiz Santos 3,162 -
4
votes1
answer6846
viewsA: Create a textarea with text editing options
The easiest way to create this type of text area is by using a library, I would advise using jquery JQUERY jQuery is a "lightweight" Javascript library, easy to use in the sense of "write less, do…
-
1
votes1
answer2196
viewsA: How to call a "Stored Procedure" oracle c#
Your trial has an output variable (out), which must be declared in your c# call as well. Consuming an output variable ora_cmd.Parameters.Add("Lc_Exito", OracleDbType.Int32).Direction =…
-
2
votes1
answer105
viewsA: Return code from data entered just after INSERT
You can do this in the insert itself: insert into TABELA default values returning VALOR_QUE_DESEJO_RETORNAR So your Index will return the value you entered in the cited field. Source:…
-
2
votes2
answers5586
viewsA: Sort list alphabetically with Javascript
I managed to make it simple: var convidados = new Array(); function OrdenarInvertido() { var conv = document.getElementById("convidado"); conv.value = ''; convidados = convidados.sort(); convidados…
-
0
votes1
answer108
viewsA: Add javascript to webforms page
The script is running before the creation of the div. The creation of the div must be before the inclusion of the script.
-
0
votes1
answer74
viewsA: Doubt - Insert SQL Server 2012 table
You will need to create a Rigger, in the body of Rigger you will work the entered values doing the validation: Basic Example of Trigger CREATE TRIGGER TGR_VENDAS_AI ON VENDAS FOR INSERT AS BEGIN…
-
1
votes2
answers106
viewsA: Comparison of dates - PHP
You can compare the timestamp of the dates so: if (strtotime($numerical." ".$day." of ".date("F")) < time()) { // Mais velho } else { // Mais novo } Before converting the date to str breaking the…
phpanswered Luiz Santos 3,162 -
0
votes2
answers502
viewsA: Add previous line in mysql
I imagine you will have to check the value you want to add 1 and save in a variable, making a select to take the value. Lock tables TABELA write; $VALORSALVO = SELECT VALORATUAL FROM TABELA ; Taking…
-
7
votes1
answer610
viewsA: What is the difference between REPLACE INTO or ON DUPLICATE KEY UPDATE
The Replace performs two actions, first it performs deletion after insertion, this may cause some problems like: If you have a foreign key restriction pointing to that line - Replace will fail. If…
-
1
votes1
answer78
viewsA: Pick up commits with keywords
According to the documentation of git --grep at a command --or Documentation: https://git-scm.com/docs/git-grep The use would be like this: git log --all --grep 'fix' --or 'SEGUNDASTRING' --follow…
-
1
votes2
answers78
viewsA: What is the correct way to send a form to a controller via AJAX?
Try to use in the view the following command: @using (Ajax.BeginForm("ACTION", "CONTROLLER", new AjaxOptions { HttpMethod = "POST", OnBegin = "$.fn.ExibirLoading();", OnSuccess =…
-
1
votes1
answer235
viewsA: Generate Ionic Site Publish
So first I’d like to say that it’s something I don’t recommend being done, because it’s against the idea of what Ionic allows. If you are not using any Cordova plug-in, then no problem, just move…
-
1
votes1
answer793
viewsQ: Return Oracle Timestamp
I want to convert a date to a number, a timestamp. Within a select I need to return beyond the date her timestamp. Example of consultation: Select sysdate, TIMESTAMP_DE_SYSDATE from dual Timestamp…
-
2
votes3
answers4125
viewsA: Download images with Javascript
Javascript for downloading an image is as follows: var a = $("<a>") .attr("href", "http:///the_gamer/the_gamer035-01.jpg") .attr("download", "img.png") .appendTo("body"); a[0].click();…
javascriptanswered Luiz Santos 3,162 -
1
votes1
answer314
viewsA: How to Leave an HTML Code Running on Any Computer by Pen Drive
Solving Problem You have to use relative path, today you must be using on your link path similar to this: <script src="c:/usuário/João/desktop"></script> Where you put all the file path,…
-
0
votes1
answer889
viewsA: How to make the menu work in bootstrap responsive mode
From what I understand you need a bootstrap menu, so I made the following example: http://jsfiddle.net/jaketaylor/84mqazgq/ The code is this: <div class="navbar navbar-inverse navbar-fixed-top"…
htmlanswered Luiz Santos 3,162 -
0
votes2
answers6341
viewsA: How to get last Quence on Oracle?
If you want to return right after insertion you can do so: insert into SIG_PROJETOAGRUPAMENTOSERVICO (idagrupamentoservico, descricao) values (sq_Sig_Projagrupamentoserv.nextval, :nomeAgrupamento)…
-
7
votes2
answers745
viewsA: Problem with str_replace php
You can use regular expression. b requires searching for the full word. $text = preg_replace('/\bbananaGrande\b/', 'NEW', $text); If the text contains UTF-8 you will have to do so:: $text =…
phpanswered Luiz Santos 3,162 -
0
votes1
answer663
viewsA: Auto play in video iframe
I tested several ways to do, via html is not possible in R7. So I started for js which is also not possible, I tested the following code: https://jsfiddle.net/92jcg94v/ But it returns the following…
-
2
votes2
answers13323
viewsA: How to add foreign key with Constraint and alter table in Oracle?
The command is very simple, I believe your problem may be in parenthesis, test like this: ALTER TABLE OS ADD CONSTRAINT cliente_cod_cliente_fk FOREIGN KEY (cod_cliente) REFERENCES…
-
2
votes1
answer27
viewsA: Search for similar metrics from the Youtube API
To compare the channels you will need to analyze the channel data, and to get the data you will need two api keys. The comparison will have to be manual, you can compare by tags of videos, but it is…
-
2
votes3
answers259
viewsA: Filter a select, without duplicate SQL queries being returned
You must perform a Join, the Join joins the results of two tables in one query, it uses a field to perform this join. Example of desired junction Select Entregadores.NAME, Agendamento.TITULO,…
-
10
votes2
answers21372
viewsA: What is a database database?
What is Stored Procedure, translated Stored Procedure, is an SQL command library for use next to the database. It stores repetitive tasks and accepts input parameters so that the task is performed…
-
3
votes1
answer971
viewsA: Stored Procedure com if
Imagine that the resolution is something along these lines: DELIMITER $$ CREATE PROCEDURE AumentarSalario(IN quantidade INT, codigoFuncionario INT) BEGIN IF quantidade = 1 THEN <update que…
-
1
votes2
answers722
viewsA: Simple ajax to reload a DIV every 30 seconds
You are using the function setTimeout which is a function that puts a maximum exception time for a given function, so I understand you want your function to be executed more than once, in which case…
-
0
votes1
answer149
viewsA: Hide Ion-tabs Ionic 1
Use ng-if <ion-footer-bar class="bar-stable" ng-if="!hidebars">
-
3
votes1
answer96
viewsA: How to view equations on Android?
You can use the library jqmath it allows you to use formulas on android Open the following website jqMath and download the Javascript library. Once you have downloaded the library, copy and Paste…
androidanswered Luiz Santos 3,162 -
2
votes2
answers697
viewsA: How to simulate a CTRL + V with javascript
The command document.execCommand('Paste') cannot be executed in normal pages only in background pages, which are extension pages. Case doubts about backgorund pages:…
-
0
votes1
answer49
viewsA: Wrong update on Trigger on Oracle
The solution would be something like this: CREATE OR REPLACE TRIGGER TRG_ATUALIZA_DTDISPONIBILIZAC BEFORE INSERT ON TB_DJE_PREPUBLICACAO FOR EACH ROW WHEN (NEW.DT_DISPONIBILIZACAO IS NULL) BEGIN IF…
-
1
votes2
answers301
viewsA: Consuming web service wsdl . net framework 2.0
Whereas you are accessing a third-party service url. 307 code means the service believes the url has been directed to another url. You can read more on: http://www.checkupdown.com/status/E307.html…
-
0
votes1
answer114
viewsA: Expansive video via Hover effect
Try increasing the size of the div when you receive Hover, but you’ll need to use a little javascript. Example: http://jsfiddle.net/tdsNF/1/…
-
2
votes2
answers4640
viewsA: LEFT JOIN WITH GROUP BY
the Problem is that you are giving Grup by the value of the table that is selected by left Join. To hit just invert: SELECT postagem.id AS idPostagem, COUNT(curtida.id) AS curtidasTotais FROM…
-
1
votes1
answer985
viewsA: How to make a "select like" to a subquery result
You can make a Join: SELECT t.* FROM tabela2 t INNER JOIN (SELECT codigo FROM tabela1 GROUP BY codigo) E ON t.codigo LIKE '%' || E.codigo|| '%'…
-
0
votes1
answer49
viewsA: Filter query
You can enter the filtered values in another list. var suaListaAux = suaLista.Where(a => a.AtributoASerComparado == variavel ).ToList(); Being: suaLista = List to be filtered suaListaAux = List…