Most voted questions
150,413 questions
Sort by count of
-
4
votes2
answers11772
viewsJSON does not accept accentuation
Friends, I have a problem, the string that has accent not being able to catch it using JSON: $imagens = array(); $sql = mysql_query("SELECT * FROM texto_index"); while ($row =…
-
4
votes1
answer436
viewsTwo databases in an Android app
I have an Android application and this works with an internal database. Now I need this application to work with 2 internal databases. Is this possible on Android? Some example that can help?…
-
4
votes1
answer287
viewsPerformatively speaking, is it good to use Self Join?
Regarding this question: What good is a "self Join", technically speaking it’s performative to do this, or using 1N, 2N and 3N (normal shapes) is the best way? Just remembering that I never claimed…
-
4
votes2
answers950
viewsHow to make a manual system to check for new updates?
My app won’t be published on Google Play, so I need to make a system to check for new updates and download them, without relying on Google Play. And preferably free, using free services (like…
-
4
votes2
answers490
viewsHow to persist the status of a queue of requests?
I am working on a C# application that requires a row of items of the type Pedido. Basically whenever a new order is created it is queued and the application shows the orders in sequential order that…
-
4
votes1
answer264
viewspreg_replace for preg_replace_callback
How to make the function transition preg_replace to the preg_replace_callback in this case? I use arrays why in the future I can add continuation.. preg_replace( array(…
-
4
votes1
answer350
viewsWhat’s the difference between using Savechanges() only once after adding data via a foreach and using inside the foreach?
I’m entering an average of 50,000 records into the database via the Entity Framework. And I got a question regarding the following code placements: in the first (1) placement, I use a foreach…
-
4
votes3
answers1277
viewsReading in Delphi XML generated in Excel
I am generating an XML by Excel itself (file type XML Sheet 2003). The generated file has the following XML data standard: <Row> <Cell><Data…
-
4
votes2
answers2761
viewsPHP value rounding error
I have a problem, after assigning to a variable a float value as below, 4.85, after multiplying by 100, 48500 and when I print out the value of 00000000484. $variavel = 4.85; $valor = $variavel *…
-
4
votes1
answer275
viewsHow to add new properties to a user using Identity?
How can I create new properties using the Useridentity that comes by default when creating an MVC 5 application? Also, it is interesting to put information that does not belong directly to…
-
4
votes1
answer293
viewsAssembly compatibility and architectures
I have no experience with low-level Assembly language. What is required to obtain the maximum of cross Platform with that language? I mean, if I just focus on AMD64 (x86-64) I’ll get compatibility…
-
4
votes1
answer4795
viewsApache Maven scopes usage situations
The question is about the different values that can be assigned to the property <scope> of the Apache Maven dependencies, and what criteria should I establish for the use of each of them.…
-
4
votes1
answer8146
viewsHow to create a mysql Trigger to take stock?
First I will present the database structure: Order table: id cliente data status Table Items: id produto tamanho = Estoque.id quantidade pedido = Pedidos.id Stock Table id tamanho quantidade chave =…
mysqlasked 10 years, 4 months ago RodrigoBorth 4,475 -
4
votes1
answer2344
viewsChange style of Windows Forms window
How do I change the style of my window to a Ribbonform. Being that in matter of colors is already quiet. See the image: And now how I use the method CreateParams to change the title and center it…
-
4
votes1
answer12235
viewsResize <td> using bootstrap
Have how I create a table with Bootstrap and fix the size of each <td>? I would like to be able to make the cell size of a table more flexible with Bootstrap, it is possible?…
-
4
votes1
answer1941
viewsPerform mathematical calculations with values from a dynamic table
I have a form-Wizard table that as soon as I click on "add item" I call a function and it adds a row in the table to add a new item to be purchased by the customer. This table that at each click…
-
4
votes2
answers3522
viewsMultiple objects in jquery selector
For organization and performance I usually use several selectors together to perform a jquery method. For example: $("#bola, #casa, #arvore").css("background-color", "blue"); In this example it…
jqueryasked 10 years, 4 months ago Joao Paulo 11,760 -
4
votes1
answer87
viewsPHP does not update file data . txt
I am running a visualization counter for an application, which is stored in a .txt. file, however, the file is always 0. If the file does not exist, it is created, with the value 0 written. However…
-
4
votes3
answers3859
viewsCount the columns of a Mysql table using PHP
As I can count the columns of a Mysql table using PHP, someone knows some command to do this? I tried to do it this way but it didn’t work: $sql4 = mysql_query("show fields from ".$tabela) or…
-
4
votes3
answers533
viewsDifficulty with web scraping
<tr bgcolor="FFF8DC"> <td valign="top">25/06/2014 20:37</td> <td valign="top">25/06/2014</td> <td> <a href="Javascript:AbreArquivo('430489');">BROOKFIELD…
pythonasked 10 years, 4 months ago rodriguesra 41 -
4
votes2
answers435
viewsUsing BREAK within a while
Hi. I have a php function that returns N values from the database. For each returned data I must do an validity check, and if one of them does not pass the validation, it is unnecessary to validate…
-
4
votes1
answer747
viewsHow to implement a process queue in Delphi 6?
How to implement a process queue in Delphi 6 as the TThread.Queue of the newer versions? What I need is to implement a queue for recording logs with Delphi 6. In the newer versions I have the…
-
4
votes2
answers133
viewsWhen using div+selector in CSS
Whenever I am developing the front-end of some site, I put the name of the selector, for example .seletor1, .seletor2 and so on. Recently I had to change the classes of a plugin I downloaded, and I…
-
4
votes3
answers540
viewsLink resources, such as CSS, within the structure of a website
I am a beginner and I am facing problems with linking scripts, CSS and images. I have the following structure in folders of my site, just an example: - Pasta Raiz --cadastro --- cadastro.html…
-
4
votes2
answers366
viewsWhat happens to class name resolution in php 5.5?
PHP 5.5 implemented a new feature, which consists of getting the class name through the keyword class: Example: namespace testando; class Teste{} echo Teste::class; // testando\Teste; This works…
-
4
votes1
answer139
viewsHow to restrict inherited types from a hierarchy level?
Given the hypothetical model below: public abstract class Veiculo { public Motor Motor { get; set; } } public class Aviao : Veiculo { } public abstract class Motor { } public class MotorCarro :…
-
4
votes1
answer2476
viewsWhy is Pattern Open Session In View considered an anti-pattern?
I wonder why many developers and architects consider the standard Open Session In View one anti-pattern?
-
4
votes1
answer155
viewsSyntactic Reader (Extension of Visual Studio 2013)
By syntactically reading a language in a Visual Studio extension project I can already read the following: <span class="myclass"></span> It is relatively easy to manage read states…
-
4
votes2
answers1970
viewsUse PIVOT operator without aggregation
I have the FAULTS table with the following columns: CREATE TABLE [dbo].[FALTAS]( [Id] [int] IDENTITY(1,1) NOT NULL, [Matricula] [int] NOT NULL, [Dia] [date] NOT NULL, [Situacao] [varchar](50) NOT…
-
4
votes2
answers5267
viewsHow to damage a website using XSS/SQL Injection?
I’m no kind of hacker, but I know some techniques. I’m training security and I got really thoughtful about it. Every time I inject a script, it’s a alert(), nothing dangerous to the host (for…
-
4
votes2
answers8268
viewshow to have the current date with Angularjs
How to have the return of the current date via javascript, in the time-label class can use jquery or angular. The idea is to have the last update date. If anyone knows I’m grateful. You cannot enter…
-
4
votes3
answers3683
viewsUpload thumbnail only of Youtube videos
I have a page that in its layout there are 20 videos from Youtube, is a listing. As I do not want to make this page really load all these videos to not understand the performance of the site,…
-
4
votes2
answers176
viewsHow important is it to use friendly URL?
For example: meusite.com.br/posts/isto-e-um-slug-de-um-post instead of meusite.com.br/posts/295837 In the first case the URL is much more friendly, but there is a cost of time to develop and…
-
4
votes1
answer1055
viewsHow to implement a thread queue to run one after the other?
I have a static method to record logs on my system. public class Logger { public static void SaveLog(string[] lines) { System.IO.File.WriteAllLines(@"C:\...\Temp\ExceptLog.txt", lines); } } The…
-
4
votes5
answers6102
viewsHow to create a view in mysql by taking data from 3 tables and repeating the different columns in the result?
I have the tables: +----------Tabela-1--------+ id | nome | cnpj | qtd1 1 | carlos | 0563233 | 4 +--------------------------+ +----------Tabela-2--------+ id | nome | cnpj | qtd2 1 | carlos |…
-
4
votes1
answer2114
viewsHow to change the URL of an image when the resolution is below 767px
I have a website that he’s responsive to. The problem is that the header has a blue background and a white logo. When the resolution is below 767px it changes the menu. Imagery: As it is on the…
-
4
votes2
answers13199
viewsHow to force cache cleanup on my visitors' browsers
I usually update the style sheet of my site (CSS) a lot. What happens is that my visitors see no difference. Is there a script or something that forces cleaning? Example: On the next access the…
-
4
votes2
answers178
viewsHow do I get the values of a date in the "dd/MM/yyyy hh:mm" format and compare it to the system date after setting it in this same format?
I wanted to make a comparison between the date contained in the hora1 object and the system date, as I can do? import java.text.SimpleDateFormat; import java.util.Date; public class MainTarefas {…
-
4
votes2
answers1628
viewsComparing string in php
I would like to know how to compare the contents of a string in PHP. I’m looking for a word on a line, but I don’t know what position she’s in. $ch_atend if($linha == "idle") { $ch_atend =…
phpasked 10 years, 4 months ago fabricio_wm 1,090 -
4
votes2
answers6339
viewsColumn charts (Bootstrap)
I’m developing a system that needs to display column charts. The system is using Bootsrap and MVC 4 C#. Can anyone tell me if there is any framework for creating graphics?
-
4
votes1
answer143
viewsDisplay all tables in the Phpmyadmin navigation column
The Phpmyadmin (English) in these latest versions has the number of tables in the left side navigation limited, being applied a pagination to them. Not only have I noticed being something slower as…
-
4
votes1
answer543
viewsConnection provider not working in Vbscript
I have the following connection string: conn = "Provider=SQLNCLI; Server=" & conn_server &"; Database="& conn_database &"; UID="& conn_uid &"; PWD="& conn_pwd And the…
-
4
votes1
answer1685
viewsUbmit in form with jquery does not work
I have a form and inside this form I have an input file type. <form id="formulario" method="post" action="upload.php"> <input id="imagem" name="imagem" type="file" class="da-custom-file…
-
4
votes1
answer151
viewsQt String Encoding Problem
I’m having a problem encoding strings on Qt. By showing something in a QMessageBox or give a drawText in a paintEvent, my strings come out badly formatted, as if they were not in the correct…
-
4
votes1
answer640
viewsFilter certain elements of an XML
I have the following weather forecast report generated by a third-party API: http://api.openweathermap.org/data/2.5/forecast?q=qTubar%C3%A3o,br&mode=xml If you repair the structure well we have…
-
4
votes2
answers124
viewsHow to use FOR-generated number in the name of a variable?
How to use FOR generated number in a variable name ? Example: for (var i = 0; i < 5; i++) { var teste[i] = "teste é " +[i]; } Example 2: for (var b = 0; b < 5; b++) { var teste[b] = "teste"; }…
javascriptasked 10 years, 5 months ago Alan PS 2,511 -
4
votes3
answers3897
views -
4
votes4
answers3597
viewsjson returns null with special characters
Today I came across this mistake: When trying to encode an array for json, some values return null. I arrived at the solution before using the function json_encode() pass all strings to UTF-8 with…
-
4
votes2
answers396
viewsHow to optimize the color palette of a Gif?
I have a method that generates images through an array of bytes that I take from the database. The generated files are between 15 and 130 kb in gif format, they were bigger but slightly decreases…
-
4
votes2
answers272
viewsHow to create a box with two separate texts
Hello, I am a beginner of XHTML and I ask you to tell me about this code and not Html5. I want to make a header but I’m not getting it. The goal is for the first text to be higher than the first.…