Most voted questions
150,413 questions
Sort by count of
-
6
votes1
answer149
viewsWhy does OFF SET slow down SQL?
I have the following SQL, generated by Entity Framework 6. SELECT [Project1].[C1] AS [C1], [Project1].[ID] AS [ID], [Project1].[CAMPO1] AS [CAMPO1], [Project1].[CAMPO2] AS [CAMPO2],…
-
6
votes1
answer640
viewsWhat is the difference between a DLL produced with C++ and a C#
After some time searching, I did not find any results for this issue, the topics already existing in MSDN also returned nothing in relation to support of the 2 in Windows. In summary, the question…
-
6
votes1
answer1423
viewsdisplay products by listed category of the database with PHP PDO
I’m having difficulty to list products by category, I created only one page and wanted to be dynamic the display of products according to the category listed in the database, but not certain and in…
-
6
votes1
answer1501
viewsWhat makes a popup block?
I’ve noticed that some libraries, such as login with facebook, always use popups for user authentication and, almost always, this popup is not blocked. Usually when it opens with a click event there…
-
6
votes1
answer2745
viewsHow to convert a PDF file to TXT in Java?
Is there any java way to convert a PDF extension file to TXT extension?
javaasked 9 years, 3 months ago Tiago Ferezin 1,567 -
6
votes3
answers228
viewsI need an explanation about what a code I don’t understand does
I need to make a change to a code and I found this: <?=(((++$i % 2) == 1) ? 'class="colored"' : '')?> What that code does?
-
6
votes2
answers5645
viewsRemove special characters and spaces from a string?
I have a problem, in an app I’m picking up the contacts from the phone book, but I want to do a treatment on the numbers of the contacts that can come like this: (99) 9999-9999 9999-9999 9999 9999…
-
6
votes2
answers191
viewsDoes the List<T> Method. Foreach exist?
I’m trying to implement the example of this page, but VS2015 (.NET 4.5) says the method ForEach() there is no class Program { static void Main() { List<String> names = new…
-
6
votes1
answer1395
viewsSend email using Cpanel and Phpmailer account
I am trying to send an email using my Cpanel account and the phpmailler class but I am not succeeding , the code I am using is the same as the Phpmailler documentation, how should I proceed? , would…
-
6
votes3
answers3711
viewsHow to shuffle characters from a Java string randomly?
I’m developing a password generator program. In it the user can set the percentage of numbers, letters and special characters that he wants to have in his password, as well as the size of his…
-
6
votes2
answers4267
viewsAssign a value to my td inside a table with jQuery
I cannot assign a value to my td within a table, it contains id dynamic as in the example below: <table class="table table-condensed table-hover" id="tabelaDependentes"> <caption>Lista…
-
6
votes2
answers938
viewsHow to join lists in c#?
I have two classes: public class Produto { public int ProCodigo { get; set; } public string ProNome { get; set; } public int DepCodigo { get; set; } public virtual Departamento Departamento { get;…
-
6
votes0
answers906
viewsHow exactly the SHA-256 algorithm works
I did a search on the internet, but the results on how the algorithm works SHA-256 have not satisfied me, if anyone can help me I will be grateful. Vlw.
-
6
votes5
answers1057
viewsProblem with in_array()
I have a problem with the in_array function. I made a var_dump() in the array I want to search for: array(2) { ["28c8edde3d61a0411511d3b1866f0636"]=> array(8) { ["id"]=> string(32)…
-
6
votes1
answer1236
viewsWhat is Browser Link?
When I use Visual Studio (I’m using the 2013 version, I don’t know if the previous ones have) with the Browser Link enabled, there is always a GET request in the browser console (F12). What would…
visual-studio-2013asked 9 years, 3 months ago Randrade 21,612 -
6
votes3
answers4981
viewsHow to customize input file?
I need to customize a file type input, but all the examples I found seem funny and does not work with Multiple, rs You need to look like that: There is a way to do only with CSS?…
-
6
votes2
answers1457
viewsDoubt, java regular expression
I have the following regular expressions. The first one validates words and is right. The problem is the second one is to validate directory, for example…
-
6
votes2
answers930
viewsWhat does "serialVersionUID" mean?
Eclipse suggested I put this snippet of code: /** * */ private static final long serialVersionUID = 1L; I’d like to know what his purpose is... If anyone can explain it to me, I’d be grateful.…
-
6
votes1
answer523
viewsI’m not getting a Oracle file with Code First
Here’s what I’m doing: Folder Model dou Add > New Item follows pictures Then select ADO.Net Entity, give a name and ADD I select Code First and give Next Well in this step, I select , and look at…
-
6
votes3
answers504
viewsBD for distribution together with java application
Good evening guys, I have a small JAVA application in which some data is entered. I would like to distribute it with an DBMS that does not require download and installation/configuration. I have…
-
6
votes1
answer1385
viewsPrint text and image on Zebra printer
I used "Zebra Designer" to generate a "code" for the Zebra printer to interpret, but I don’t know how to add an image in the middle of that print dynamically, like... I have a tablet that the…
-
6
votes1
answer301
viewsHow to stream audio with Ionic?
I need to stream audio with Ionic, I’ve installed several plugins but streaming does not work, using http and rtsp protocol. I also tried to put a Javascript function inside the index of the app but…
-
6
votes4
answers5546
viewsSQL query to get all records from last month but until the current day
Good morning, I need to know a percent variation of last month’s job records for the task logs you did this month. For this I need to compare with the current day, for example. If today were…
-
6
votes1
answer187
viewsDownload FTP using c#
I am trying to download an FTP server. The problem is this: I need a way to partition the file I am downloading. So that it is downloaded part by part and not complete at once. Doing asynchronously…
-
6
votes1
answer3382
viewsdynamic friendly url
as I do for my url that and so: detalhe.php?cat=1 look like this detail/television mine .htaccess : RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule…
-
6
votes1
answer120
viewsnumpy.diagonal returning read-only copy even in version 1.10
I’m doing a program in Python where I need to change the values diagonally from an array. The following chunk of code should be sufficient to understand the general idea (it changes to 2 the value…
-
6
votes1
answer190
viewsDifference between "list(range(1, 10))" and "range(1, 10)"?
I asked that question here How to format all elements of a list in Python?. In one of the answers, @Ciganomorrisonmendez, put the following excerpt: list(range(1, 10)) But every time I used the…
-
6
votes1
answer395
viewsHow to view all JS code requested by an iframe?
I want to exhibit a iframe with an external page and then show in a textarea all JS code requested by iframe in question. I have two problems: the first is how to know all the requisitions that the…
-
6
votes1
answer900
viewsMore elegant ways to invert integers, arrays and strings in Python
Hail! I’ve been looking for elegant ways to do string inversion, arrays and integers in Python. What do you think of my codes below and what suggest to improve them? They work... Thank you! frase =…
-
6
votes1
answer518
viewsHow to make a program to calculate constant mathematical expressions
I have a job to build an algorithm that calculates expressions coming from a TXT file in this format. 10+20*(30)/ 25. I know this is a recursive descending analyzer, but I have no idea where to…
-
6
votes1
answer890
viewsHow to maintain multiple connections with postgresql in Node.js?
I am used Node.js in a task where I need to migrate data between two Postgresql databases. The idea is more or less the following: Connect to Bank A. Connect to Bank B. Return all records from A.…
-
6
votes1
answer130
viewsTime difference in Linq
I am using Entity Framework, and I have a condition that has not worked very well: .Where(x => ((DateTime.Now - (x.DataInicio.Value == null ? DateTime.Now : x.DataInicio.Value)).TotalMinutes)…
-
6
votes1
answer1247
viewsHow to fill a star rating?
How to fill the stars of a "star rating". The calculation is apparently working. Giving an "echo" in the variable $calc the result is displayed. Example, if the note is 3.3, it must fill 3 stars and…
-
6
votes2
answers83
viewsHow to prevent data from being posted to google search?
I have a database. Inside, a database with the data of several people. I have a scheduling system. All data of the person + day/time of scheduling is placed in it. The problem is that this data can…
-
6
votes3
answers2015
viewsHow to create a controller service?
Hello, I would like to know if it is possible with this code to create a service. Because all the videos I see they only create services for things that will be duplicated in code and so on or from…
angularjsasked 9 years, 4 months ago Larissa Mourullo 417 -
6
votes2
answers40971
viewsProblem using Switch Case in Python 3
print ("ESCOLHA A CERVEJA PELO NUMERO") print ("1-ANTARTICA R$6.00;2-SKOL R$6.50;3-BRAHMA R$8.20;4-SOL R$8.25;") cerveja = input ("5-NORTENHA R$16.80;6-PROIBIDA R$4.80;7-DEVASSA R$5.90;8-HEINEKEN…
-
6
votes1
answer1262
viewsHow to change filename for download?
I am generating a PDF file and use HTML5 to display it on the screen: $("#conteudo-pdf").append('<object data="' + meuData + '" type="application/pdf" style="width: 100%; height:…
-
6
votes1
answer360
viewsWhat are the risks of saving files to the Apache server with PHP and how to avoid them?
I’m recording an HTML file with part of a page, to be used later by HTMLDocX in the generation of a file .docx (vine this question related). To record use ob_start and ob_get_clean to put the…
-
6
votes2
answers766
viewsWhat is 1 for in regular expression, in javascript?
I was taking a look at this @Sergio response here at stackoverlow: /a/93995/4995 There was an excerpt of code like this: /^(\d)\1+$/.test(111) What exactly does the \1 in that regular expression?…
-
6
votes2
answers182
viewsHow to send and receive bitmap on restful server
Staff did a search and found very little content, I would like some tips because I never did it. How do I send and receive a bitmap to a server? Send with Json? Convert to Base64? What is the best…
-
6
votes2
answers1244
viewsHow to loop with while using array
Ola would like to know if it is possible to make a loop using while as follows I need the array values $newsmedias1 be placed in the while in order to perform the appearance of items with the IDS…
-
6
votes3
answers10606
viewsConvert object to String?
What is the best way to convert an object to a type variable int? Or there is no such conversion? Example: if (teste == JOptionPane.OK_OPTION) { int linha = tblPessoa.getSelectedRow(); // Aqui o…
-
6
votes4
answers34297
viewsTake the highest value per category by also loading the ID
The table is in the format below ID | CATEGORIA | QUANTIDADE 1 | A | 23 2 | A | 12 3 | A | 11 1 | B | 15 2 | B | 10 Wanted a query to return to me the following table ID | CATEGORIA | QUANTIDADE 1 |…
-
6
votes1
answer858
viewsWhat are controller actions?
In that reply the Gypsy says This (example) is good when you have several Actions in the Controller What are the Actions of a Controller? Note: I would like some example of code as well, defining a…
-
6
votes0
answers2043
viewsWork with two databases in Laravel
I’m creating an application that needs to connect to two different databases. A database I am creating (Mysql) and a database I received ready that I am only allowed to query (SQL Server). The…
-
6
votes2
answers1493
viewsShare the same Session on Different Domains on the same Server
You can share the same session between different domains on the same server? If possible, what to do to achieve such a feat?
-
6
votes1
answer953
viewsBootstrap side menu not configured in mobile version
I’m fighting to make a website and present it on my TCC. I separated the sections of the site (body, head, header, footer...) into isolated files to be able to move more easily. I took great care to…
-
6
votes2
answers188
viewsSQL Query Optimization in Mysql and Index
Guys I’m having a performance problem at a consultation SQL in the MySQL who is using my server a lot, I’ve done index and yet consumption does not decrease. The query I’m using is: SELECT CONCAT(…
-
6
votes1
answer161
viewsWhat is $Scope.Answer?
I’m new to Angularjs, I would like to understand what $Cope.Answer is really for, I didn’t find anything in the official documentation or on the web, I just saw it in an example I took in a…
-
6
votes4
answers127
viewsmount a regular expression
I would like a help from you to assemble an expression to check if there are more than 3 bars inside a url in javascript. example: http://exemplo.com , that he doesn’t take. http://exemplo.com/ola/,…