Most voted questions
150,413 questions
Sort by count of
-
7
votes1
answer579
viewsPass arguments to Makefile
I have a folder with a series of Latex files: arquivo_001.tex arquivo_002.tex arquivo_003.tex arquivo_004.tex My idea is to write a Makefile that allows me to do something like make 004 and he…
-
7
votes1
answer404
viewsCode First Mapping with Data Annotations
I am creating a project using mapping through DataAnnotations with Code First (similar to the Hibernate), without the use of FluentAPI. It turns out that in implementing this process, some…
-
7
votes2
answers5374
viewsHow and when to use exceptions in PHP?
In PHP, most native functions return a boolean false, whole 0 or NULL if some type of inconsistency is found in the value passed to it. Example: $exemplo1 = explode("","tente me explodir"); // false…
-
7
votes1
answer1390
viewsWhen should I use Data URI?
Date URI is that feature that allows me to place small images inline in CSS or HTML to reduce the number of requests. It is an alternative to CSS Sprite. I did some tests here and I really liked the…
-
7
votes1
answer5827
viewsMounting map style site bomnegocio.com
Well, I’d like to know how to create a site-style map bomnegocio.com. I don’t know if on that map there is a single image or several grouped images. Could someone give me a light on how to do that…
-
7
votes3
answers1618
viewsHow to intercept exceptions when working with the Entity Framework?
I want to handle errors returned by Entity Framework. In this example I am forcing the insertion of a duplicate record (Name already existing in the database and the table column is configured as a…
-
7
votes6
answers19214
viewsProblem to publish project - Github
I’m trying to publish a project on Github, but every time I give a git push message appears: error: src refspec source does not match any. error: failed to push some refs to…
-
7
votes2
answers1074
viewsIs it efficient to check file modifications by Hash?
Setting I need to implement a file change check between 2 points in my application. *¹ Point 1 - Server - I have a folder where are some product images; Point 2 - Mobile Device - I have a catalog…
-
7
votes2
answers11326
viewsCreate HTML table using PHP
Can I create a table to separate this code? Because it’s the only way to align the data I have if($exibe['Nome1'] != NULL) { echo '<p><b>Nome: </b>'.$exibe["Nome1"].'…
-
7
votes1
answer326
viewsC#. Net blocking or non-blocking?
Do the System.Net.Sockets library, using asynchronous operations such as Beginreceive(), Beginread() and Beginsend() work in blocking or non-blocking ways? If I have 100 connections, it will be 100…
-
7
votes1
answer950
viewsIntercept AJAX requests
I have the following doubt, as I can do to "intercept" AJAX requests before that they be made? For example, in some forums while constantly browsing requests are being made without our knowledge,…
-
7
votes1
answer183
viewsLambda with different contexts
Is there any way to join two or more tables using Lambda and two different contexts?
-
7
votes1
answer191
viewsWhat is the difference between Feature Detection and Feature inference
I wanted to know the main difference between the two forms Feature Detection and Feature inference.
javascriptasked 10 years, 4 months ago filipelinhares 2,417 -
7
votes4
answers2652
viewsDo an update with lambda
I have a query in lambda that returns me a list of data. I wonder how I do to update this table of BD using lambda? Let’s say, I have a table called T_PDV and in it a flag field, where LIDO = 1 and…
-
7
votes2
answers3113
viewsHow to pick a random string from a list of strings?
Code: nomes = new string[5]; nomes[0] = "José"; nomes[1] = "Carlos"; nomes[2] = "João"; nomes[3] = "Miriam"; nomes[4] = "Estela"; I put an array, but it doesn’t have to be with an array, it can be…
-
7
votes1
answer10316
viewsHow to fix Entityvalidationerrors
Hi, I need a help. After compiling my project I am getting an error: Validation failed for one or more entities. See 'Entityvalidationerrors' Property for more Details. I have already found that…
-
7
votes4
answers24368
viewsClose Mozilla, IE, Chrome tab
I am trying to close a tab of my site, I have tried to use the following commands: window.open('','_self',''); window.close(); window.close() self.close() var win = window.open("","_self");…
-
7
votes2
answers1336
viewsJavafx application does not run on some computers after exported to jar
I developed a Javafx application, created an Ant script through build.fxbuild and ran a jar. The generated jar runs Ok on the computer on my service and on another developer’s computer, however it…
-
7
votes1
answer41918
viewsTraverse string and replace a specific PHP character
I wanted to replace, in a string, all character occurrences & by a e (or remove it). The character may be in the middle of a word or appear several times in the same string. Example: Original…
-
7
votes2
answers1181
viewsWhy don’t browsers implement HTTP’s PUT and DELETE protocols?
For some reason the Internet browsers (Chrome, Firefox, IE, ...) decided to only implement the GET and POST methods of the HTTP protocol. Other methods such as PUT and DELETE were left out. Why? My…
-
7
votes2
answers22549
viewsHow to include Bootstrap Glyphicon inside the "<input></input>" tag?
With the following code: <a href="#" class="btn btn-primary"> <span class="glyphicon glyphicon-pencil"></span> Editar </a> I can create buttons like these: But I can’t seem…
-
7
votes1
answer1759
viewsCenter div parent when children have dynamic width
I have several div’s with the following css: float:left; width: 25%; min-width: 300px; max-width: 400px; That is, as I insert a div, it fills the available space from the left side of the parent div…
cssasked 10 years, 5 months ago Filipe Moraes 8,737 -
7
votes2
answers4442
viewsHow to delete a specific Listview item?
I would like to ask a question: I have one ListView, in which his Adapter is clarified in the same Activity and the content of Adapter (as strings) are in another class, in another package. How do I…
-
7
votes3
answers15042
viewsWhat is the difference between BOM and BOM encoding files?
A long time ago I faced problems with formatting files between ISO-*, UTF-8, ANSII and others, I started researching ways to solve these problems, I found several different ways, both using tools…
character-encodingasked 10 years, 5 months ago Erlon Charles 5,352 -
7
votes5
answers145
viewsStrange behavior in a possible way to comment
I have two functions /########### CARREGAR - LANÇAMENTO ###########/ var carregar_parametros=function(){ alert('asd'); } /########### CADASTRAR - LANÇAMENTO ###########/ var…
javascriptasked 10 years, 5 months ago Silvio Andorinha 8,394 -
7
votes2
answers338
viewsJSON performance to power an entire website
Adapting a Drupal theme to pure HTML with a tight schedule as expected, the code came out a little more complicated than I’d like. In this way, I had the opportunity to explore JSON and some of its…
-
7
votes1
answer4965
viewsTransactionscope does not transact
I’m trying to use the TransactionScope in C#, I am performing the tests with local bank, but every time I try to execute some method it returns me this Exception: Partner transaction manager…
-
7
votes3
answers1538
viewsDisplay from 1 to 1000 in C++ without using a semicolon
Make a program in C++ that displays on the screen the numbers from 1 until 1000, counting with these two, but without using the semicolon. I already made a sketch here but I have to choose between…
-
7
votes3
answers7634
viewsError importing CSV into phpMyAdmin
I need to import a file .csv for phpMyAdmin, but the special characters do not appear, nor the text that follows them. What may be the problem?…
-
7
votes1
answer790
viewsClosest vs Parents
I was reading the jQuery documentation and I realized the similarity between the methods closest and parents. He cites the differences between the methods, stating that "they are subtle but…
-
7
votes1
answer1281
viewsGood Practice when modularizing an application with EF and multi-bank
Let’s say I want to model an application on .NET using the EntityFramework as ORM and use one of its advantages, to be "generic" for several RDBMS. So, for example, I want my application to agree to…
-
7
votes3
answers10821
viewsHow to delete folders, subfolders and files?
Using my example below, I can delete a folder and the files contained in it: $uploaddir = "../img/uploads/".$destino_sa."/"; $dir_contents = scandir($uploaddir); if(is_dir($uploaddir)) {…
phpasked 10 years, 5 months ago Marcelo Barros 345 -
7
votes1
answer7707
viewsVersion configuration options in Debug and Release mode in Delphi
In projects in Delphi, we have the options Debug and Release in Build Configurations. I know the way Debug is used to debug the application and generates a larger executable by adding reference…
-
7
votes1
answer1317
viewsJava encryption with AES, how does it work?
I have found several examples by Google, but none that explains how a java encryption works with AES... How it works? In an example of the net, the guy quotes that he has to use a key, but it…
-
7
votes2
answers6973
viewsMany Relationship for Many Entity Framework 6
Good morning, I have the following classes: Consul_ca_student: public class CONSUL_CA_Aluno { public int Id { get; set; } public string Nome { get; set; } public int Cpf { get; set; } public string…
-
7
votes3
answers11852
viewsHow to separate a String according to a separator in C#?
I have a string in this format: string valores = "Numero1#Numero2#Numero3#Numero4#"; How do I tell it in an array of integers to get it: int Numero[1] = Numero1; int Numero[2] = Numero2; int…
-
7
votes2
answers1386
viewsMail function and its limits
I am developing a tool to send bulk emails to a list of 20,000 emails, and the script is this: <?php $path = "listas/lista1.txt"; $ponteiro = fopen ("$path", "r"); $conteudo = fread ($ponteiro,…
-
7
votes2
answers2674
viewsReceive indefinite amount of parameters in C#
The method Main(string[] args) receives an array of indefinite amount parameters. But I know this doesn’t work in a common method. How to create a method that takes as many parameters as needed?…
-
7
votes2
answers1076
viewsHow to put a @ inside {} in MVC
While doing a MVC5 page with Razor, I went to put the following code {--conteúdo da @ RenderBody() etc, etc } Generated an error because the @ is inside keys ERROR: Server Error in '/' Application.…
-
7
votes1
answer8430
viewsMake git go through proxy
I’m setting up my work environment here at the service. It is windows 7 and has a proxy with user and password. I want to download a project from my repository on Github and need to go through the…
-
7
votes1
answer15634
viewsOpen Facebook app by a web link on Android
I have a mobile site that the user can only access by logging in with Facebook. O SDK Facebook para Web (Javascript) works well, but the user always has to log in, because he is not always logged in…
-
7
votes2
answers9249
viewsControlling extra inputs and outputs in Arduino Uno and Mega 2560 via software
During the development of an Arduino project, I needed more digital terminals (inputs and outputs) in addition to those indicated on the board. You can control, via software, more extra digital…
arduinoasked 10 years, 6 months ago carlosrafaelgn 4,769 -
7
votes3
answers176
viewsLogin system
I made a website on which I have implemented this file that belongs to login but does not work for me <script type="text/javascript"> function loginsuccessufully(){…
-
7
votes3
answers24936
viewsLast position of an Array
In PHP, what is the fastest and easiest way to get the last position of an Array? I got it by doing $array[ count($array) - 1 ], and it works, but there’s some way simpler and less ugly?…
-
7
votes2
answers3607
viewsWhat is the difference between using GDS32.dll and fbclient.dll and using . fdb and . GDB in Firebird?
Speaking of SGDB Firebird, when using the library GDS32.dll, other than compatibility with banks created by Interbase, there are other differences when using the fbclient.dll? There is a difference…
firebirdasked 10 years, 6 months ago user3628 -
7
votes1
answer334
viewsSqlserver English Error Messages - (Localdb) v11.0
I’m developing an app with Entity Framework 6 using the approach Code-First. I want to configure Sqlserver (Localdb) v11.0 to display error messages in English without using SQL Server Management…
-
7
votes3
answers9362
viewsHow to get the value without a mask from a Maskedtextbox?
I’m wearing a MaskedTextBox for formatting documents. It is working perfectly, but how do I get the value typed in the field without the mask being present?
-
7
votes1
answer2472
viewsProblem in converting number (Numberformat)
I’m having the following difficulty, picking up a value through my form: Double salario = Double.parseDouble(request.getParameter("salario")); Since the value typed by the user will be something…
javaasked 10 years, 6 months ago Lucas Olivier 73 -
7
votes3
answers7833
viewsCount elements in a Java Arraylist
I have a Arraylist calling for tracklist within the class Album, that contains a number of songs. I need to go through and return how many songs are within the album through a class I named…
javaasked 10 years, 6 months ago user3000135 127 -
7
votes4
answers33008
viewsHow to create a raise image effect by hovering the mouse over
I’m new here and I’m basic in CSS. I would like to know how to create an effect that, when you pass the mouse over the image, it raises a little.