Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer1144
viewsHow do I change the color of the bar status icons in Material Design
I need to change icon colors equal to app of Google Agenda, as shown in the image below: I saw that in Material Design you have the options colorPrimaryDark but you don’t have to change the color of…
-
4
votes1
answer7792
viewsPDF Generator with Laravel Framework?
I need to do the snappy generate reports from BD. But for that I needed examples of using the snappy, in the documentation of github there’s an example, but that example didn’t help me. I needed an…
-
4
votes1
answer2500
viewsHow to take the maximum/minimum value of an integer in the C language
Talk people! Is there a function in the C language that takes the maximum/minimum value of an integer?
-
4
votes4
answers135
viewsRemove items an array containing only 1 character
I have a following array: $arr = array('estrela', 'não', 'é', 'up','.','Evitem', 'estrelar', 'abobrinha', 'coisa', 'fugaz', 'de', 'interesse', 'praticamente', 'individual', 'conversa mole','.','Só',…
-
4
votes1
answer1998
viewsProduct modeling with various suppliers and different prices
In a stock control scenario where 1 product can be supplied by 1 or more suppliers and 1 supplier can contain 1 or more products, what to do on the following occasion: Product "X" has 2 items in…
-
4
votes3
answers292
viewsRemove only numeric elements from an array
I have a array in this way: $arr = array('prolongar-se', 'durante, 4, 'a', 7, 'dias', 'dependendo', 'da', 'dose', 'administrada', 'e', 'do', 'pH', 'da', 'água', 'sendo', 7.5, 'ml',…
-
4
votes7
answers185
viewsCapture year outside the regex
I am working with a text file using the sublime I want to replace some strings where: I have several strings like this: EMISSAO="2016-04-18 00:00:00" I need a regex that captures where the year is…
-
4
votes3
answers1167
viewsEpplus row and column last cell - C#
I want to select a range from the first to the last cell filled in the row or column. In VBA the code is as below using Range(Selection, Selection.End(xlDown)).Select Range(Selection,…
-
4
votes5
answers16658
viewsinput only numbers with jquery
I have a function that validates typed characters and does not let the user use special characters but this same function does not work for numbers, someone knows some function in jquery to validate…
-
4
votes0
answers58
viewsIsn’t the value of an unassigned int variable in C++ 0 (zero)?
I’m having my first serious contact with C++. I wanted to see what would happen if I added up a value int of a variable assigned with another without assigning, and see what happened: #include…
-
4
votes1
answer105
viewsLock optimistic; why not fire exception?
I tried to simulate an optimistic Lock situation where one tries to update the same record twice, but the excesses are not triggered. I find it interesting is that even after changing the value of…
-
4
votes2
answers787
viewsHow do I check if there is a directory, if there is a request to report a new directory? I am using innosetup to create an installer
I need to check the folder C: SISAUTO, C: BASESISAUTO. If folders exist, create a new one for example C: SISAUTO2, C: BASESISAUTO2 Follows code. ; Script generated by the Inno Setup Script Wizard. ;…
-
4
votes2
answers2185
viewsHow popular select from another select using python and Django?
Good evening, everyone! I’m new to the forum and started doing a little project with python and Django, where I am trying to fill a select according to the option selected in another. However, as a…
-
4
votes1
answer3755
viewsFunction pointer in a C++ class
I’m having trouble putting a pointer to a function in a class: int Menu::validaescolha(){ cout << 1232; return 1; } int Menu::inicial(){ int (Menu::*funcs)() = &Menu::validaescolha;…
c++asked 7 years, 8 months ago Rafael Bernardo 136 -
4
votes1
answer1123
viewsWhat is the function called to drag the window to the corners of the screen?
How is called the function of clicking and dragging the title bar of the window to the corners of the screen, and they auto adjust? Example: when you drag the window in the right corner of the…
-
4
votes0
answers197
viewsc# outlook Sendeventhandler opening object only once
In my application I use Outlook Sendeventhandler to capture the click on the "Send" button of the email in outlook and open a screen to register observation regarding the email that was sent. I have…
-
4
votes4
answers388
viewsRegex to capture infinite groups in a URL by separating them by the bar
I wonder how I could do a regex to capture several groups as shown in the string below: /Controller/Action/Param1/Param2/Param3/... I want to capture "Controller", "Action", "Param1", "Param2",…
-
4
votes1
answer771
viewsPicasso cache of images
I’m testing the library Picasso in the android in two situations: 1 - When loading an image, in a url publish (without sending headers authentication), the image is loaded into the ImageView, and…
-
4
votes1
answer7629
viewsWhat is the difference between simulator and emulator?
I am currently developing hybrid applications and supposedly, I say supposedly, I am "simulating" my applications in browser and sometimes in a virtual machine, being for Android the AVD (Android…
terminologyasked 7 years, 8 months ago viana 27,141 -
4
votes1
answer215
viewsError when trying to extract table from a site by R, how to resolve?
I’m using this code, I want to import the country table to the R: library(XML) url <- "http://en.wikipedia.org/wiki/List_of_countries_by_population" country_data <- readHTMLTable(url, which=2)…
-
4
votes1
answer250
viewsHow do I upload a file larger than 10MB without having access to php.ini?
Here’s what it is: My free file hosting gives me access to see information from the php.ini file, but I can’t modify it, I’ve tried creating a php.ini folder in the php.ini folder htdocs but it…
-
4
votes2
answers576
viewsWhat is Initialization Vector?
When I used a PHP function, called openssl_encrypt, that encrypts data, I came across the term iv, that is Initialization Vector. I’d like to understand a little bit about that; I saw it in a…
-
4
votes2
answers2249
viewsShould we use SVG or PNG icons for websites?
Is it better to use icons in SVG or PNG formatting for websites? Why?
-
4
votes1
answer1323
viewsWhat is Delayedexpansion and why is it not enabled by default?
Usually when creating a batch that uses any code block, such as loops for or if, we ended up going through this problem and then we discovered the need to set EnableDelayedExpansion. Codes like this…
-
4
votes2
answers118
viewsWhy does comparing different objects return true?
First code: Integer i1 = 1234; Integer i2 = 1234; System.out.println(i1 == i2); //false System.out.println(i1.equals(i2)); //true Even though it seems that primitive types are being used, they are…
-
4
votes3
answers122
viewsWhy does the code print 0 instead of 5?
Why does this code print 0 instead of 5? class B { private int b; public int getB() { return b; } public void setB(int b) { b=b; } } class A { public static void main (String[] args) { B b = new…
-
4
votes1
answer962
viewsMagnific-Popup with Bootstrap Modal Image Display Problem
I am facing the problem of displaying image inside the modal bootstrap. Use this plugin : Magnific-Popup Follows the code: HTML: <!-- Button trigger modal --> <button type="button"…
-
4
votes2
answers207
viewsHow to use If Else correctly
I have the following checkboxes: <input type="checkbox" class="check" id="livros" value="livros"/> <input type="checkbox" class="check" id="folhas" value="folhas"/> <input…
-
4
votes1
answer684
viewsWhat would be Iteration?
In a question I asked, I questioned what it was and what would be the function of ListIterator, then came the term iteration, what would that be? Link to question…
-
4
votes3
answers34005
viewsIs there an iOS emulator to test an application developed in Xamarin?
There is nothing like testing on the actual device, but in some cases emulators are extremely necessary. For Android I use Genymotion, but at the moment I need some iOS emulator that so I can test…
-
4
votes1
answer312
viewsHow to avoid multiple function calls in the view?
Using Angular, in my controller I have a function that calculates the amount of filtered items. Thus: $scope.totalConferenciasRestantes = function () { return…
-
4
votes2
answers1073
viewsHow to run a python file as an admin?
I’m trying to run a python file, but it asks to be run as admin as q do this?
-
4
votes1
answer2505
viewsHow to comment / document a table?
I saw in a Postgresql database that each table and each table field has a comment explaining what each one is for. Following model below: I want to know if in Mysql it is possible to do something…
mysqlasked 7 years, 8 months ago Italo Rodrigo 4,344 -
4
votes1
answer75
viewsStoryboard Segue
I’m creating a small example of an iOS app using Visual Studio 2015 on Windows 10. But every time I open the Main.storyboard by the designer and I click on one of the UIStoryboarSegue the property…
-
4
votes1
answer607
viewsFormat @Html.Label - MVC
On my page I have one: @Html.ActionLink(linkText: "Bem Vindo(a) " + User.Identity.GetUserName() + "!", actionName: "Index", controllerName: "RelatorioTagModels1") Which generates, the "Welcome" page…
-
4
votes2
answers1511
viewsCipher de Vigenere
private static void algoritmo(String input, String chave, Boolean b) { Console.WriteLine("Digite a mensagem: "); input = Console.ReadLine(); Console.WriteLine("Digite a chave: "); chave =…
-
4
votes2
answers924
viewsIs it possible to insert a select into a td when double-clicking?
Hello I have a dynamic table that works very well, but as the field is an input people can type anything, but wanted to limit this edition using the options of the options, the table I use the…
-
4
votes4
answers2635
viewsHow to Delete File or Folder in C Language
How to delete a file or folder by code in c language, I’ve tried using the method remove(pt); but it didn’t work, I tried using dos commands and it didn’t work either.
-
4
votes1
answer234
viewsUse of assert instead of if
I was reading a book about data structures implemented in C++ and here the author presents the following code snippet: T& operator[](int i) { assert(i >= 0 && i < length); return…
-
4
votes1
answer505
viewsWhat is an "output_buffer"?
Reading is reply, I had this doubt. What is a output_buffer ?
-
4
votes1
answer2032
viewsWhat are the ways to create html file using php?
I wanted to know the possibilities I have of creating a arquivo.html using the php. In case I wanted to make a button when clicked generate it for me. For example, I have a page on php and on it…
-
4
votes2
answers2451
viewsChange storage location in Laravel 5.4
The current storage location of the Laravel is /Laravel/Storage/app/public. How do I change to /Laravel/public. I tried to edit filesystems.php but was unsuccessful: Controller store function:…
-
4
votes3
answers1079
viewsProblem checking all checkboxes
How do I check input’s checkbox? You’re just unchecking. Follow the codes for assistance: HTML <div class="col-md-11"> <div style="text-align: right;" class="checkbox">…
-
4
votes3
answers10837
viewsReplace is not a Function
I created a script to insert a div in my store cart, but it is giving error in the replace function. Would anyone know why ? var $JQuery = jQuery.noConflict(); $JQuery(function(){ var…
-
4
votes2
answers1858
viewsFiredac multithread (Simultaneous connections - REST server) DELPHI
Good morning Personal, I’d like to request some help from you, in case anyone can help I’m super grateful. Doubt would be reasonably simple, how to work with Multi Thread in Firedac? In other…
-
4
votes2
answers133
viewsDirect (and beautiful) solution to fix base using dplyr
I have the following basis of defaulters: df <- data.frame( lead_15 = c(1,0,0,0,0,1,0,0,1,0,0,0,0,0,1), lead_30 = c(0,0,0,1,0,0,1,1,0,1,0,0,0,1,0), lead_60 = c(0,1,0,0,1,0,0,0,0,0,1,1,0,0,0),…
-
4
votes1
answer2162
viewsSelect(combobox) Dynamic
I need to use one select dynamic on my page, in which when selecting the state(UF), it shows me in the next select only the cities of this UF. Likewise the neighborhoods. All this information is…
-
4
votes2
answers89
viewsDoes a large image hinder the performance of the application?
My banner has an image of 11mb while local is all ok but would like to know if when upload this application will leave the same heavy. Thank you in advance.
-
4
votes2
answers1028
viewsHow to perform an Insert or update of a JSON object
JSON object $postdata: { "0": { "codigo": "1", "descricao": "Bobina", "preco": "10.0000" }, "1": { "codigo": "2", "descricao": "Capa", "preco": "20.0000" } } Using Mysql, how to perform insert if…
-
4
votes1
answer1193
viewsHow to use a font-awesome icon with Angular Material button?
In the Documentation of Material Angular there are examples of using icons on buttons, through an SVG icon. Example: <md-button class="md-icon-button md-primary" aria-label="Settings">…