Posts by Harry • 3,805 points
339 posts
-
0
votes1
answer201
viewsQ: Doubt with Responsive bootstrap layout
I have a layout that I would like to leave in the following template. To make it responsive I’m not able to add the column (1) higher. As it is now http://comajudacoletiva.com.br/estudo/ <div…
-
1
votes1
answer920
viewsQ: Save an HTML - possibly dangerous value Request.Form
I have a Textareafor that receives an HTML content, when trying to record I have an error, I added in web.config the pages validateRequest="false" I’ve tested the common text Insert and it works,…
-
-1
votes2
answers663
viewsQ: Insert an html into a table using sql server
How could an Insert in a table of an HTML code? Example: insert into TB_CONTEUDO (CONT_TITULO, CONT_HTML, CONT_COCA_FK_ID, CONT_META_TAG) values('Teste','',17,'') CONT_HTML = html one-page…
sql-serverasked Harry 3,805 -
0
votes0
answers132
viewsQ: Background follow responsive image
I wonder how a background image could be aligned with another image on it This picture that is a ball, I would like it to be in the background, When the screen is in a lower resolution, it is not…
-
1
votes4
answers2106
viewsQ: Value treatment null c#
I have a method that generates me an execption, how to treat this?: I thank you public string CarregaProdutosDermaClube(string codigoproduto) { //consulta os dados var tbuscar = new…
-
5
votes2
answers146
viewsQ: Declaration of `var as object field
How could I declare a variable var public so that it could take the return of the data. How would the statement of these variables without completion: var tbuscar = ?; var retorno = ?; public bool…
-
2
votes1
answer112
viewsQ: Doubt with List C#
After consulting the data, keeping them in memory and using "Contains" to locate a product, what would be the best way to do this? thanks I have my DAL: public class BuscaProdutosDermaDAL { private…
-
0
votes1
answer108
viewsQ: Add javascript to webforms page
I have a method page to insert a javascript in a page. public void ControleEtiquetaDermaClub(bool visualiza) { if (visualiza == true) { String jscript = ""; jscript = " $(document).ready(function()…
-
0
votes1
answer77
viewsA: Swift error - cannot invoke initializer for type int with an argument list of type ()?
After reviewing the code, I solved the problem: func tableView(_ tableView: UITableView, cellForRowAtIndexPath indexPath: IndexPath) -> UITableViewCell { let cell =…
-
0
votes1
answer77
viewsQ: Swift error - cannot invoke initializer for type int with an argument list of type ()?
I’m doing a course of Swift 2 plus the version I’m using is the 3, so I’m searching the codes when I have some error to make the fix, some more I haven’t found. I’d appreciate it if someone could…
-
0
votes1
answer136
viewsQ: Doubt with creation of For on Swift 3
I’m following an iOS course and in the course shows the for in this way: for var i = 1; i <= 10; i++ { } But I have an error message, has it changed? How could this be done in the new way? error:…
-
0
votes1
answer69
viewsA: The oauth_consumer_key parameter is missing
After creating a new project and importing npm worked, I believe there was some conflict because I had installed a wrong npm
-
0
votes1
answer69
viewsQ: The oauth_consumer_key parameter is missing
did the site installation of wordpress I have my api working locally. I’m in the wrong: polyfills.js:3 GET…
-
1
votes2
answers1124
viewsA: I’m not able to leave the images in the same size using bootstrap
See if you have any css in "id= "Cao1" Plus I checked this:=2048x2048 at the end of the image, this sets the size of it. <div class="col-md-3"> <h2>Sub heading</h2> <img id=…
-
0
votes1
answer148
viewsQ: Doubt with API access - using Angular - typescript
I set up a website to study a store Woocommerce, activated the api and generated the keys. At the root of the added site on . htaccess, is that in the correct location?: # Permite acesso ao pacote…
-
1
votes1
answer530
viewsQ: Standard structure of a SQL Server database
I have a model structure, I wonder if it is suitable to a good standard. USE [teste] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author:…
-
1
votes0
answers83
viewsQ: Force html change using Javascript
I have a system that needs to change some fields using JS, the problem is that the type is not changing because the system automatically generates css : Current code: <div…
javascriptasked Harry 3,805 -
0
votes1
answer356
viewsQ: Javascript using mobile browser does not run
I have a javascript that makes formatting form fields, it works much more on mobile does not work. I appreciate the help <script> function formatar(mascara, documento) { var i =…
-
-1
votes2
answers367
viewsA: Run javascript counting click to show option on screen?
I already have the answer: <script> $(document).ready(function(){ //esconde o campo na abertura da página document.getElementById('extraum').style.display = 'none';…
-
1
votes2
answers367
viewsQ: Run javascript counting click to show option on screen?
I have a code that shows fields on the screen according to the click, after the first click it will increment a variable 'Qtdclick', occurs that I did not want to show all fields, I only want when…
-
1
votes1
answer246
viewsQ: How to run a javascript referencing a button ID?
I need to run a javascript, plus I would like to do this using the ID of the button that clicked, Example: $(Document). ready(Function(){ $("p").click(function(){ alert("estou usando o P."); });…
-
1
votes3
answers868
viewsQ: Run javascript only when accessing a mobile phone’s website
I noticed that the bootstraps menu does not close after selecting an option when using a mobile phone, so I want to run only if I am on a mobile phone, I am doing this way, would be correct? Thanks…
-
1
votes2
answers354
viewsQ: Navbar collapsing after selection?
When using the navbar bootstrap on a mobile phone it does not return to normal after clicking on option menu. In the following example the navigation bar is replaced by a button in the upper right…
-
3
votes2
answers950
viewsA: Calculate Value of SQL columns
I believe that’s it: select p.ST_FRETE, SUM(i.NR_QTDE * i.VL_UNITARIO * i.NR_TAXACONVERSAO) as valortotal from BMV_PEDIDOITEM i inner join BMV_PEDIDO p on p.ID_PEDIDO = i.ID_PEDIDO --where…
-
2
votes2
answers2740
viewsA: Adding up POSTGRESQL values
I believe that one way to do this would be to have the number of the month in the table of histories, more as it does not have, so it would have to be by date of beginning and end: select case mes…
postgresqlanswered Harry 3,805 -
1
votes0
answers89
viewsQ: Doubt with SSL/TSL and Asp.net mvc
I made an application for testing and in the project I changed the field SSL Enabled to True. The application has two URL’s, one for HTTPS and the other for HTTP. Ex: https://localhost:44338/…
-
1
votes0
answers143
viewsQ: Doubt monitoring Tomcat with Java Visualvm
Inside my jdk Bin folder I downloaded the "jvisualvm.exe", it is not in the machine environment variables, more after that I configured Tomcat 8: -Dcom.sun.management.jmxremote.port=8086…
-
0
votes1
answer53
viewsQ: Adjust CSS on browser-independent page
I have a function on one page (Asp.net) that calls another as a popup: Btnfinalizar.Onclientclick = "javascript:Exibirpopupmobile('/Shoppingcart/Formulario.aspx', 900,580); Return false;"; Using…
-
1
votes0
answers851
viewsQ: Date comparison on Laravel?
I have a list of records and in this table I have a field data_limite: $planos = $this->plano->whereIn('id',$planos_id) ->orderBy('created_at','desc') ->get(); print($planos); I’m…
-
0
votes2
answers1230
viewsQ: HTML inside a Stringbuilder
I have an HTML where I’m formatting it inside a StringBuilder, where there are "quotes" I am passing a bar, but it is not opening the correct HTML. public string CorpoPaginaHtml() { StringBuilder…
-
1
votes2
answers15714
viewsA: mysql error 1215 cannot add Foreign key Constraint
John, To establish a Constraint between two tables, the fields MUST BE OF THE SAME TYPE AND SIZE. You need to check if in the member table there is the "membro_id".
-
1
votes0
answers17
viewsQ: Doubt with Decompiling VB.NET project
A class compiled in J# or Vb.net after is in a DLL, there is some program that can decompile by passing a code that is in Vb.net to C# or J# to c#?
-
0
votes0
answers77
viewsQ: Problem with Ionic versions
Ionic does not respect the standard design structure according to the installed versions, I have version 2.0.0-beta.30, Node = 6.2.1 and npm 3.9.3, when creating a project it generates the project…
-
2
votes2
answers306
viewsQ: Any ASP.NET MVC solution for SQL injection?
I have in the application a code that validates the data entry, adjusting according to what is necessary, this would be considered a good or a bad option? public static string ValidaDados(string…
-
0
votes3
answers243
viewsQ: List error with null reference in Java
Calling any method in any null reference will always result in an exception. How could I fix this? public class frmStatusAprovacaoGeral implements AdapterInterface{ @Override public void…
-
1
votes2
answers771
viewsQ: How to remove a grid column using jquery
I have a grid where I have to leave a hidden column, I’m doing this way more is not doing the way I would like because I have no way to predict how many lines will have in this column. I have a…
-
0
votes1
answer549
viewsQ: Query with date and time in sql server
I have a field in the "char" type bank, I am returning the dates this way: select CONVERT(VARCHAR(20),HORA_FECHAMENTO) as HORA_FECHAMENTO, CONVERT(VARCHAR(20), DATEADD(hour, +0, getdate()), 120) as…
-
1
votes1
answer41
viewsQ: Doubt with sql on Laravel?
Today I have a query that is returning me duplicate data, I made the change of sql more needed to change it. As I can leave in the same structure of select(DB::raw? The current code looks like this:…
-
4
votes1
answer2184
viewsQ: Convert a 'System.Collections.Generic.List' object to 'System.Data.Dataset'?
Cannot convert an object of type 'System.Collections.Generic.List in type 'System.Data.Dataset'? After making a report query, I am storing the data in a list and showing the data on the screen, the…
-
1
votes3
answers75
viewsQ: Doubt with registration grouping
In my example, I have a query that return 3 products and the same were purchased in different orders but I do not need this order number. So I did it this way: SELECT c.prod_pk_id, '61068276007702'…
-
1
votes1
answer99
viewsQ: Doubt with Enablecors Asp.net web.api
When is the release of an address made using the Enablecors can be used the Route or is it necessary to change something? is correct this way? [HttpGet] [Route("consulta/BuscaTipoPagamento")]…
-
-1
votes2
answers524
viewsQ: How to remove the decimal separator from a result?
In the sql query I have a total order value multiplied by 1000: Total value: 195.41 Value Viewed: 195410.00 How could I remove the separator? SELECT CAST(CONVERT(varchar, CAST(195410.00 AS money),…
-
0
votes1
answer62
viewsQ: Is it necessary to enable Cross-Origin Requests for ASP.NET Web API?
I made a test application, where I point to a web api that’s online, the address of this api works and return the data if it’s posted to the browser URL, it does a GET. In the test application I…
-
0
votes2
answers4550
viewsQ: Conversion from VARCHAR to SMALLDATETIME
SELECT DISTINCT p.codInterno, CASE WHEN f.idFabricante IS NULL THEN 99999999999999 ELSE f.idFabricante END AS fabri, '0', p.descResumida, p.descProduto, p.descProduto, p.codElemento, GETDATE(),…
sql-serverasked Harry 3,805 -
0
votes1
answer174
viewsQ: Query with sql query using time interval
I have a Job in sql server that runs twice a day, 06:00 and 18:00, it has an sql query where I take the date of the process and compare with the date of the day. It turns out that if you have a new…
sql-serverasked Harry 3,805 -
0
votes3
answers737
viewsQ: Field comparison problem with date and time
I have a query where I noticed that one of the fields used in the comparison brings date and time, being compared with the current date of the day without time, this can cause problems in the return…
sql-serverasked Harry 3,805 -
7
votes4
answers4635
viewsA: To what extent is it not advisable to use an ORM?
Proponents of the ORM will say that this does not apply to all projects: not everyone needs to run complex joins; and that the ORM is an 80/20 solution, where 80% of users need only 20% of SQL…
-
0
votes0
answers24
viewsQ: Error: Platform not recognized as a core Cordova pltatfomr
I have the whole environment configured for Ionic, Environment variables: ANDROID_HOME = C: Program Files (x86) Android-sdk No path got : %ANDROID_HOME% tools and %ANDROID_HOME% Platform-tools…
-
1
votes0
answers81
viewsQ: Offline map on Android
I’m making an application in which using Google map and can be without internet access. Without internet access Google’s map system does not work. Questions: 1 I know you can cache some information…
-
0
votes1
answer760
viewsQ: Doubt about the version of the Laravel:
When I installed the Laravel I used the command: "Composer global require Laravel/installer" being carried out the installation of the latest version that is working normal. I want to create a…