Most voted questions
150,413 questions
Sort by count of
-
7
votes1
answer1432
viewsHow to get a List<string> C# and send to a JS variable?
I am developing in an Asp.net C# project and I don’t know how to get on the page a list of strings of my class. How do I get these values? Code I’ve been using. var pontos=…
-
7
votes2
answers4326
viewsProxy connection: HTTP 407 Proxy authentication Required
I created a project for ASP NET where I want to get the data of an address from the zip code by calling the url on a webservice. On my machine works normally, but on the machine I work, there is a…
-
7
votes1
answer480
viewsWhat does this expression mean *=
I wonder what the meaning of *= both in PHP and Javascript: I have a JS function and I’m converting to PHP, then appeared this *= but I have no idea what it does. On the question of function is…
-
7
votes1
answer664
viewsSOAP communication error. Lack of XML tag ending character
It took me a while to implement communication with Webservices SOAP in legacy applications written in Delphi 6. The Webservices I needed to communicate with these systems were written in Delphi…
-
7
votes3
answers31930
viewsMake an algorithm to calculate the number of days elapsed between two dates in c++
Guys I have this algorithm: Make an algorithm to calculate the number of days elapsed between two dates (also consider the occurrence of leap years), knowing that: a) each pair of dates is read on a…
-
7
votes1
answer198
viewsReduced ternary in PHP - Error or misinterpreted?
Looking at the manual we have this description: 'The Expression (Expr1) ? (expr2) : (expr3) evaluates to expr2 if Expr1 evaluates to TRUE, and expr3 if Expr1 evaluates to FALSE. Since PHP 5.3, it is…
phpasked 9 years, 6 months ago Guilherme Lautert 15,097 -
7
votes2
answers686
viewsFull Join N-N without repeating records
I have two tables with relation N-N: ITEM_ORC ITEM_COMP | OP | Item Orçado | | OP | NF | Item Comprado | +-------+------------------+ +-------+---------+------------------+ | 1 | Lápis | | 1 | 101 |…
-
7
votes4
answers342
viewsWhat is the function of the " | " operator within the catch?
I read that || (OR) is for boolean operations and | (Bitwise Operation) for bit operations. What is your function within a catch with multiple exceptions, then? I mean, I know it eliminates…
-
7
votes1
answer2924
views -
7
votes2
answers305
viewsI know the variable value, but the switch only goes to the default
After a search, I get the following result: // O resultado desta linha é I ou II ou III; echo $subsecao; // O resultado desta linha é string; echo gettype($subsecao); // Faço um switch para atribuir…
-
7
votes2
answers1019
viewsHow to take an attribute of multiple "tags" with same ID
Hello, when clicking one of the 3 options in "HTML" that is in the code below, I want the function in "JS" emits an "Alert" with the "idPost" in which it was clicked. EX: When I click on the "PHP"…
javascriptasked 9 years, 6 months ago José Luis 171 -
7
votes2
answers367
viewsMining Text with Weka
I would like to know how to create a file .arff executable to use in Weka. I remember that I am mining texts. My file is showing errors and I am unable to generate results. Below is a piece of the…
-
7
votes2
answers8611
viewsHow to justify the text in a Textview?
It is possible to justify (align) the text of a TextView? Besides justifying, I want to apply other types of formatting.
-
7
votes2
answers2472
viewsR - download CVM data via POST (package httr) method
I am trying to build a R function to download multiple documents directly from the system provided by CVM. The general instructions given by the CVM for the multiple download are described in:…
-
7
votes3
answers11278
viewsHow to force a PDF to be displayed in the browser
I have a sequence of PDF files that I can link normally, only as soon as I click on one of them it downloads, and I need the PDF to be displayed in the browser itself. I tried to use this on my link…
-
7
votes4
answers1152
viewsIs it possible to build an HTML5 app for Android with Material Design?
I wonder if it is possible to develop an html/css/js app for android using material design. If not, is there any framework that has the look?
-
7
votes2
answers1163
viewsDetect if the event was triggered by the user or via script
I need to detect if the event (click) was triggered by the user or method trigger jQuery. Analyzing the parameter event found two properties I could use for this check: when the event is triggered…
-
7
votes1
answer474
viewsHow to change an HTML 4 document to HTML 5?
I have a project already ready, done in HTML 4.01, as I can change so that it recognizes HTML 5 ? I can just change that: < !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"…
-
7
votes3
answers397
viewsCan reference arguments be harmful?
By default, arguments of a function are passed by the value (i.e., if the value of the parameter within the function is changed, it is not changed outside the function). To allow a function to…
phpasked 9 years, 6 months ago Guilherme Nascimento 98,651 -
7
votes2
answers1444
viewsHow to organize code without losing performance?
Using functions instead of putting code directly influences a program’s performance ? For example: void minhafuncao(){ printf("Funcao"); } main(){ minhafuncao(); } in place of main(){…
-
7
votes1
answer104
viewsGeneric CRUD or Sqls specifics
In a system that tends to grow in number of classes and users, what would be the best approach to work with access to the database? create a generic CRUD? or create specific methods to insert and…
-
7
votes1
answer13295
viewsSend file directly to printer via CMD
Does anyone know how I can send a txt file (with EPL commands) manually directly to printer by cmd?
-
7
votes2
answers11102
viewsHow to import an xls file to Python?
I’m starting my studies in Python and would like to import a database that is on .xls for Python. Someone could help me? NOTE: Python version 3.4.3.
-
7
votes1
answer3466
viewsHow to use include other Android Layout?
Hello I would like to know how to use the Include Other Layout and what it’s for.
-
7
votes2
answers58
viewsDetermine the direction of the roll in an element
The code below aims to detect the direction of the roll in a specific element: var control = 0, lastScrollTop = 0, element = document.getElementById('idDoElemento'); element.onscroll = function() {…
-
7
votes2
answers22499
viewsAdd attribute to an element
In Javascript we can add the attributes to a given element with at least two ways: var div = document.createElement('div'); div.id = 'meuId'; or var div = document.createElement('div');…
-
7
votes2
answers344
viewsSplit column into multiple tables
I want to save a set of information about movies in a database but I have a question, I must organize the genres in column (example below). Database: Mysql 5.6.21 Engine: innoDB or organize gender…
-
7
votes1
answer1339
viewsA Product in Multiple Categories - PHP
I would like to know how to relate a product in several categories ? For example: A shirt can be in the Categories : "Green / Blue / Yellow" and when I filtered by category the product should appear…
-
7
votes4
answers10317
viewsHow to delete files inside a folder
I want to delete all files and subfolders inside a folder, but without deleting it using PHP. How can I do that?
-
7
votes2
answers1998
viewsHow to close a Jframe using keyboard events?
I have a Jframe that I want to close when I press the Esc key... Well, I did that: public Cadastro() { addKeyListener(this); And then that: public void keyTyped(KeyEvent evt) { if(evt.getKeyCode()…
-
7
votes3
answers2007
viewsHow to obtain information from an SSL Certificate via C#?
How to obtain information (expiry date for example) from an SSL certificate via C#?
-
7
votes4
answers957
viewsIntercept Exception
I am using Demoiselle in my application, but it has not been behaving very well in one aspect. In an association between two or more entities, deleting an exception is made. With the exception…
-
7
votes2
answers6698
viewsHow to turn a "Unity Project" into an . EXE?
I’m following the Nils videos on Youtube. After creating a project on Unity, how do I make an installer/. EXE for it? To run on Android, Windows, and others.
unity3dasked 9 years, 7 months ago Pablo Marques 145 -
7
votes2
answers4496
viewsConsultations between tables with Eloquent - Laravel 5
Good, I have the following problem when using Laravel 5 in the relationship of tables: I have these 4 tables (hypothetical names to illustrate the problem): Using the Laravel 5 models I connected…
-
7
votes1
answer752
viewsWhat is the correct way to declare a javascript Function?
For some time now, I have been observing the use of two forms of function javascript, being the following: - Form 1: function soma1(val1, val2){ return val1 + val2; }; - Form 2: var soma2 =…
-
7
votes2
answers129
viewsBoxing is copying the data
Boxing is to transform value type in Reference type, right? But when we copy a Ference type into another Reference type, it just copies the address and not the value. But when I convert int for…
-
7
votes3
answers1729
viewsRegex to find occurrences of one word before the other
I need to find in the system sources situations where Taction occur after Tdxbar. This will happen in different lines, but within the same file, for example: pnlVisao: TPanel; tbToolBar: TdxBar;…
-
7
votes3
answers237
viewsjQuery influences the application’s "performance"?
I personally love and use the jQuery library. This library influences the "performance" of the application?
-
7
votes1
answer1589
viewsAutomate tasks with Laravel 5
Good morning Personal. I need to create some tasks on my system that are executed automatically (such as a Cron Job). Example: Every day the system sends an email to system customers with the value…
-
7
votes1
answer1161
viewsC# Winforms - Autocomplete (filter) combobox when typing
I have a Combobox (cmbBairro) with the names of the neighborhoods of my city, which carries the values of a List (_Listneighborhoods). When the user tries to search a neighborhood by typing, he…
-
7
votes1
answer1192
viewsArduino with Millis function - computer cycle
I’m trying to build a computer cycle with Arduino that displays displacement and speed on a 16x2 LCD display, but I’m having trouble calculating speed. The travel is working perfectly, but the speed…
arduinoasked 9 years, 7 months ago Anthoni Silva 71 -
7
votes2
answers1119
viewsManipulating XML with PHP
Could someone tell me how I do to get only the name value in the code below. index page. <?php $curl = curl_init('http://localhost/server.php'); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);…
-
7
votes1
answer11995
viewsKeep checkbox selected by default
How can I make my checkbox appear checked for everyone who enters the site once it has been checked? I am creating in the html field of Wix, free version. The code template I’m using is as follows:…
-
7
votes2
answers10715
viewsSimplest way to generate a PDF of an HTML, client-side input
I am developing a didactic material in web language, and within it, there are some exercises where the user has to answer some questions, writing a brief dissertation within a Text Area. After…
-
7
votes1
answer339
viewsWork with errors within R loop
I entered the non-linear adjustment function gnls within a loop for so that it could test a series of start values automatically. The point is that eventually some of these start values create a…
-
7
votes1
answer3635
viewsHas Marquee been discontinued in HTML5?
If yes, what the tag that I can use to enjoy its functions? How can I limit the beginning and its end, for example: When using the tag Marquee, in the transition of images or texts there is always a…
-
7
votes1
answer2355
viewsFloating banner sidebar with Jquery accompanies scroll
is the following.. i have a floating banner on my blog using the following JS $(function(){ var jElement = $('.element'); $(window).scroll(function(){ if ( $(this).scrollTop() > 2000 ){…
-
7
votes2
answers284
viewsProblem with Nth-Child
I have the following scenario: HTML: <div class='linha visivel'>Visivel</div> <div class='linha visivel'>Visivel</div> <div class='linha oculto'…
cssasked 9 years, 8 months ago Joao Paulo 11,760 -
7
votes1
answer2407
viewsHow to increase select with css proportionally
I have on a page in select that shows the stores that I have registered in my BD, I got a css that changed the layout of the same leaving it more pleasant, but I have a problem, I need this select…
cssasked 9 years, 8 months ago adventistapr 5,498 -
7
votes2
answers4809
viewsHow to leave a text centered between two horizontal lines?
I need to use text centered on the page and between two horizontal lines in all project titles, as below: The title text has magin: 0 35px, is dynamic and horizontal lines shall increase or decrease…