Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer178
viewsHow does this regex work in js?
I found on the internet this regex in javascript that formats monetary values in R$: Number( 1450999 ) .toFixed( 2 ) .replace( '.', ',' ) .replace( /(\d)(?=(\d{3})+,)/g, "$1," ) // 1450999 ->…
-
4
votes2
answers10962
viewsLaravel 5.3 Trying to get Property of non-object
good morning! I followed what is said in this tutorial to fill values in a view: https://www.tutorialspoint.com/laravel/retrieve_records.htm And I did the same scheme on my controller: public…
-
4
votes1
answer575
viewsLaravel Auth::Atempt() always returns false
I tried to authenticate, but it always comes back false in the method Auth::attempt() of Laravel: $prontuario = Input::get('prontuario'); $senha = Input::get('senhas'); if…
-
4
votes1
answer698
views -
4
votes1
answer2786
viewsHow to format a cell from the RGB code contained in the cell itself
It is possible to change the background color of a cell from a code RGB or hexadecimal written as text in the cell itself? Let’s say I write 255,0,0 in célula A1 and when I press enter cell…
-
4
votes3
answers75
viewsHow can I exclude the penultimate number from a period?
I’m trying to leave the period from 201601 to 20161 in SQL, but I can not at all! I wonder if someone could help me? SELECT CONVERT(NUMERIC(5), CONVERT(VARCHAR(4), YEAR(Periodo_Mensal))+…
-
4
votes2
answers1726
viewsHow to create a Library-Android using Android Studio?
I have some projects in development process and have several common classes for these projects. I would like to know how to create and use a Lib of the classes so I can reuse them whenever I need…
-
4
votes1
answer151
viewsUnique contexts of authenticated users
Using the @Gypsy recommended method in this answer (It is possible to leave connectionString dynamically?), I was able to get a dynamic connection, and using the idea of mapping a context with the…
-
4
votes3
answers297
viewsGit alias for the current branch name
In my work it is very common to switch between Feature branches and Stage/develop branches several times during the day. And many of these times I need to write or use a tab to complete the branch…
gitasked 8 years ago Ricardo Moraleida 4,005 -
4
votes1
answer213
viewsWhy is this call automatically inserted into the HTML body?
In an app I’m using the Javascript libraries: jQuery, Angular, Angular Material and Moment. Totaling I have the following calls in my file: <script src="vendor/jquery/jquery-3.1.1.js"…
-
4
votes1
answer499
viewsDelete user session in ASP.NET MVC with [Authorize]
I have a web system developed in ASP.NET MVC 4. One of the features is user management. A CRUD of users. My method of login is as follows: [HttpPost] public ActionResult Login(LoginViewModel…
-
4
votes2
answers1274
viewsHow to redirect user to page after login?
I am developing a web application, using Asp.Net MVC 5 com Identity and I’m using Roles to carry out the authorisation. I’m trying to do that depending on the Role that the user has, it is directed…
-
4
votes1
answer1310
viewsHow to align the column title of a Jtable?
I have a table (Abstract table model) and would like to center column titles. I tried the following: DefaultTableCellRenderer centralizado = new DefaultTableCellRenderer();…
-
4
votes1
answer1695
viewsCalculating T-Student Probabilities in R
I have the mean and standard deviation of my distribution: mean = -0.49 ; sd=3.029041 How do I calculate the probability of y a standard deviation below the average using the T-Student with 85…
-
4
votes1
answer2845
viewsWhat is the correct way to declare a struct in C?
Also how to rename data types with structures? I have doubt about it because of a Windows Manager that I use has the following code: typedef struct exem exem; struct exem { tiposdedado variavel; };…
-
4
votes3
answers3050
viewsHow to change the color of the input using jquery Validate?
I am implementing a jquery form, and I want that when Valida runs and class error is added to the label leaving the red font, I will send a picture representing how I want. <html> <head>…
-
4
votes3
answers221
viewsRedirect page if resolution less than 767px
Searching on the internet, I found this question here at Sopt: Redirect to mobile site In the question was placed a code that redirects a page if accessed by a mobile device (mobile). I am using…
javascriptasked 8 years ago Alexandre Lopes 2,769 -
4
votes2
answers3841
viewsHow do I leave the opacity of a dark image and display the figcaption text on Hover?
Hello, I am trying to leave the image dark and appear the text when I hover over. Can anyone help me? <div class="efeito"> <figure> <a href="#" target="_blank"><img…
-
4
votes1
answer676
viewsHow to input a password (password field) in Pyqt4?
To use a field similar to input HTML in Pyqt4, I use QtGui.QLineEdit. But how do I make a field that looks like the input password, which is a specific field to enter passwords? You can define the…
-
4
votes3
answers216
viewsWhy is the behavior of the undefined variable different from the undefined property?
I’ve noticed this for a long time in Javascript. If I write a certain code where the variable is not defined in any scope, an exception is thrown: console.log(preco) Upshot: Uncaught Referenceerror:…
-
4
votes1
answer402
viewsUpdating a collection object’s values via Binding WPF, MVVM
Following MVVM model, I am not able to update the values of a variable of an object in a collection, show them on the screen or the user type and this value be passed to the variable. In my case, I…
-
4
votes1
answer107
viewsError Openwebmail when sending email to a person
I have installed Open Webmail, I have several more accounts in some accounts as soon as an email is sent to them, returns the error below, more they receive the message, someone has seen and or…
-
4
votes2
answers78
viewsDynamic/stochastic object allocation in QML
I am currently trying to do the following in QML, simultaneously: do dynamic loading of Objects previously created a separate file; by doing what is described above, select objects stochastically…
-
4
votes2
answers662
viewsAdd content at cursor position with Ckeditor 4.5
I have a textarea where certain text will be typed. This text may contain some specific fields (variable type, which will be replaced later). I need to know how to insert these "variables" in the…
-
4
votes3
answers1428
viewsError while breaking page for printing on Google Chrome
I have a page that prints tickets in 3 ways. Each ticket path is within one div with class ticket. After each route, I need to generate a page break. However, when using page-break-after: always; in…
-
4
votes2
answers1564
viewsIs it correct to use the Input tag within a Label tag?
I was taking a look at the tutorial from W3schools, where he’s teaching to use the input of the kind checkbox in Bootstrap. According to one example, I saw the following code:: <div…
-
4
votes1
answer3038
viewsHow to change the form buttons (minimize, maximize and close)
I have a project in Delphi 2010 where you would like to change the buttons icons Minimize, Maximize, Close-up that are represented in the image below: The icons I want to use were created by me, so…
-
4
votes4
answers2266
viewsHow to generate random numbers for Draw?
I need to generate numbers for a promotion, these numbers should go from 0 to 99999. How can I distribute these numbers randomly and fairly, without repeating numbers already distributed?…
-
4
votes1
answer618
viewsFill a listview with the properties of a class in Delphi
I’m doing an MVC application in Delphi, it was going well, when you arrived at the part of listing the information in a listview, I came across a small problem, as the application is divided into…
delphiasked 8 years ago Alex De Sousa 43 -
4
votes1
answer103
viewsProblems with auth::Routes
I’m having trouble with Auth::routes() use the framework Laravel in the version 5.2 my route archive is like this: Route::singularResourceParameters(); Auth::routes(); Route::group(['middleware'…
-
4
votes2
answers555
viewsIonic doesn’t recognize my css
To be clear, I’m creating an app with ionic 1.3 like learning and studying for college, and I need to use a css and js external. It is a lib calling for Icheck (Link to the icheck). I have already…
-
4
votes2
answers15005
viewsHow to place an image in an HTML button
I am creating a button on a given page and would like to put a background image. I’m trying to tag background-image:url() in CSS but not working. HTML: @model…
-
4
votes1
answer941
viewsHow to transform Array into distinct variables?
I have the following array that returns me the following values: ( [cliente] => Array ( [0] => Array ( [Code] => 1 [Name] => a ) [1] => Array ( [Code] => 2 [Name] => b ) ) )…
-
4
votes0
answers4243
views'The underlying Provider failed on Open' C# ASP.net
I have an application that has 4 layers, which are the following : Dominio, Infra, Servico, Web in the domain I have a folder called Poco with all my Classes/Tabelas , in the Layer Infra, to test…
-
4
votes1
answer230
viewsShow emoticons with independent keyboard button
I am developing an application in which I created a button that I would like you to do the same function of showing the emoticons keyboard. This image: btnMostrarEmoticons.setOnClickListener(new…
-
4
votes2
answers608
viewsHow do I know which Arraylist objects are being modified or deleted?
I own a ArrayList that this preloaded with some objects of the type of my class Person, see: ArrayList<Pessoa> listaDePessoas = new ArrayList<>(); listaDePessoas.add(new Pessoa("Joao",…
-
4
votes1
answer520
viewsHow to avoid scrolling in picture?
I avoided asking anyone for help for my own learning. But of all the difficulties that I have been facing this cannot solve and is the last stage of the project. I need to insert a mobile image in…
-
4
votes1
answer3439
viewsKnow how many times gitub project has been cloned
I have a small question to be resolved and I need to know if there is any way to identify how many times my project that is on github has been clonado.
-
4
votes2
answers417
views"Cannot read Property" after an http.get request
Hello, all right? I have the following problem. I am making a Restful request (http.get) and am writing the received object into a variable within $Scope. However, when I try to access this variable…
-
4
votes1
answer2052
viewsConvert Roman number to decimal
I’m doing an exercise where I need to convert a typed Roman number, and the program returns a decimal number. My algorithm: import java.util.Scanner; public class NumerosRomanos { public static void…
-
4
votes4
answers392
viewsRead Internal File Name
I need to read the name of the files contained within a package, for example, read the name file01.txt, as in the image below : So I can go through the package arquivos without having to name a file…
-
4
votes3
answers1870
viewsAssign value to variable in method declaration
It is possible to assign the default value of a variable within the method declaration, the same occurs in the PHP? If yes, how? Ex: I want the test function, when called, if no parameter is passed,…
javaasked 8 years ago Julyano Felipe 581 -
4
votes1
answer800
viewsDelete values from the html list of options
I have a page and I show 4 options for each of the 4 alternatives. Each option has a value from 1 to 4. I would like that each time the user selects a value, this value is deleted from the list of…
-
4
votes1
answer2333
viewsHow do I split into Assembly?
Boa Pessoal , I’m new to Assembly, I’m having trouble with division. When I compile the program on the command line, I get this error Floating point Exception. .section .data .global op1 .global op2…
assemblyasked 8 years ago Programador 135 -
4
votes1
answer116
viewsHow to pass an array in a WHERE condition
$this->db->set('al_reg', $matricula); $this->db->set('dataagendamento', $dataagendamento); $this->db->where('cod_lab', $laboratorio); $this->db->where('cod_horario',…
-
4
votes2
answers177
viewsC# - Problems reading data from an XML returned from a site
I want to take the Location of an external IP and for that I used a site where I simply put the IP I want and it returns the XML with the information. Example: freegeoip.net/xml/4.2.2.2 that is to…
-
4
votes4
answers2615
viewsDrawing with CSS
Is there any way to draw a sheet like the image below, using CSS ?…
-
4
votes2
answers480
viewsSingle vs. Double Quotes in PHP Regex
whereas I own a path which I wish to verify with preg_match if it is the desired path, what is the difference between the two operations to follow? // Single quoted string…
-
4
votes2
answers1019
viewsGenerate random number for an array
I have a foreach that fetches data from a table and makes a insert in another table. I need to count the amount of foreach, and then generate a random sequence, and feed a field of insert. Look at…
-
4
votes1
answer414
viewsIs it dangerous to leave mod_mime_magic active in Apache?
Once I was arguing with a programmer more experienced than me (the user @Bacchus) about uploading files. I was commenting on it not making sense for someone to try to upload a file with extension…