Most voted questions
150,413 questions
Sort by count of
-
4
votes2
answers348
viewsCreating string in PHP
It is possible to create a PHP variable of type string that contains so many bytes, that is, defined by the programmer? Example in C: char string[20]; In this case, string will always have 20 bytes,…
-
4
votes1
answer394
viewswindow.open() does not load the page
I am trying to open a link in a new window/tab but when it opens it does not load. Controller: public static Result loadCreateArtigo(){ return ok(request().host()+request().path()); } Javascript:…
-
4
votes1
answer2823
viewsLogin with facebook api does not return user email
Greetings guys, I spent hours and hours researching some solution to this problem, including here on the site, but I couldn’t find anything to help me. I’m implementing a Facebook site registration…
-
4
votes1
answer156
viewsCommand for sharing same folder with multiple names
I am currently working on an improvement in the deployment process and I would like to automate one of the new steps. Through the Windows UI i can share the same folder on the network under several…
-
4
votes1
answer801
viewsHow to group items in a list with a proper condition?
I have a list with a property called tamanho which may contain two values: "M" or "I". I need this list to be random, but with a grouping condition. "M" would be half page and "I" full. That is, I…
-
4
votes1
answer137
viewsPerformance CSS (CSSOM and selectors)
Considering the assembly of CSSOM by the browser and parser (read) given right to left. I would like to play a question, because I was writing a css in a project and always have with me for…
-
4
votes1
answer1274
viewsWhat is the difference between array_walk and array_map?
In PHP, we have two functions that traverse the array and apply a function determined for each element: array_walk and array_map. Example: $meu_array = array(1, 2, 3); $callback = function ($value)…
-
4
votes1
answer94
views -
4
votes2
answers318
viewsProblems to remove Parent() items with jquery
Good morning gentlemen, I’m having a certain problem removing just one of the elements. I have a textarea that adds paragraphs, the problem is being at the time of deleting, I want btn to delete…
-
4
votes4
answers18115
viewsConvert Array to String
Why when I convert the array to a string it doesn’t convert all the keys of the right array: Code: <?php $bMsg3 = array( $at1 = 0, /* Inteiro */ $at2 = "", /* String */ $at3 = 0.0, /* Float */…
-
4
votes2
answers450
viewsError including CSS/JS in the head of a JSF page
I’m trying to include a CSS in a JSF view. However, I’m not succeeding. Below we have an excerpt from the view: <h:head> <h:outputStylesheet library="css" name="bootstrap.css" />…
-
4
votes1
answer471
viewsDesign Patterns - DTO, POCO, MODEL
What’s the difference between DTO, POCO, MODEL? Because I am developing a layered application, DAL, BLL and UI.
-
4
votes2
answers212
viewsCreating buffers in PHP
Staff need to create in PHP a buffer (string) from a data set (array) to send via socket. In this buffer i want all attributes of the set that are stored in it, obey its size. Example: Whether I…
-
4
votes1
answer395
viewsHow to avoid collision of upload file names
I’m making a website for upload of images, only, when I do the upload of two files with equal names, what there was before some of the file directory. This is the code I use for upload:…
-
4
votes2
answers79
viewsReusing string in XML
Ex.: <?xml version="1.0" encoding="utf-8"?> <resources> <string name="primeiro_nome">Bigown</string> <string name="nome_completo">{primeiro nome} Silva</string>…
-
4
votes1
answer123
viewsMethod with foreach only returns false
I have a method that will check whether the debt is equal to zero(divida == "0"). If it is he returns true, else it returns false. Code: for(String divida : dividas){ return divida == "0";…
-
4
votes1
answer3424
viewsHow to rank with PHP
Well, I have a problem, I know how to pull the ranking and all. My question is I’m gonna pull the 6 with the highest score, and I wanted the first 3 to have a different background, like: Whatever…
-
4
votes2
answers2360
viewsHow to count number of records in a table?
I have a call table noticias, where every news has a id. I also have a table called comentarios, where there is the id of the news the user commented on. How can I count the comments for that news?…
-
4
votes1
answer51
viewsPath points in xaml
I am creating an application that will make an agent walk through an area with various obstacles as shown in the figure. The agent will walk from point S to point G, passing only through the…
-
4
votes1
answer1542
viewsJava Dictionary API
Hi, I’m looking for a dictionary API in Java to create the program in the following steps: User enters with a string, in this case a word; I print on the screen the invocation of a method of this…
-
4
votes1
answer421
viewsMETABOX with state/city dropdown in Front-End using Cmb2 Plugin
I have a little problem with 2 dropdowns selectors, so far so good, because I’m using the CMB2 plugin and a METABOX selector code, and everything is ok in the Wordpress Back-End, however, when I…
-
4
votes2
answers2708
viewsError "1146 table 'phpmyadmin.pma__tracking doesn’t exist"
This error prevents me from creating new tables and accessing the already created ones: Error: 1146 table 'phpmyadmin.pma__tracking doesn’t exist How do I fix this?…
-
4
votes1
answer1152
viewsAxes of a Cartesian plane changing according to the HTML5(canvas) + JAVASCRIPT zoom
Guys, here’s the thing, I’m doing it with js + html5 and canvas a program to plot graphics: I would like to implement a zoom + and -, as in the image, and return to the original zoom by clicking…
-
4
votes1
answer13542
viewsStartar site on IIS is returning error 500
Trying to learn how to set up a site on IIS, by typing the site URL, this gives the following error: Server Error 500 - Internal server error. There is a problem with the resource that you are…
-
4
votes1
answer79
viewsWhat exactly is the "u" modifier for?
What exactly does the modifier u in the regular expressions of preg_ in PHP? It is recommended to use it whenever processing strings that have accentuated characters? $valor = 'ãẽi ouã';…
-
4
votes1
answer155
viewsIs Visual Studio 2013 compatible with SQL Server 2014?
I connected the SQL table with Visual Studio, but at the time of moving the table appeared a message saying that SQL Server was not compatible. If not, I’ll have to download another Visual Studio or…
sql-server visual-studio-2013 visual-studio sql-server-2014asked 9 years, 3 months ago Márcio Cristian 399 -
4
votes1
answer397
viewsHow to make a website homepage using Cakephp 3.0
How should a website homepage be done using the Cakephp 3.0 (3.0.3) Framework? This page has dynamic content. What this page consists of: It is a display page of major products and product…
-
4
votes1
answer238
viewsData Source - Best way to organize methods/classes pertaining to the entire table?
In my company we work with models based on the "Active Record" standard, that is, the model methods are always related to the operations of a unique database record, for example: Class User { int…
-
4
votes1
answer9015
viewsHow to create a. BAT configuration file in windows?
I am automating some processes on a Windows server, and would like to create some files. bat for this but for such would be necessary the . BAT were able to read a configuration file so I did the…
-
4
votes1
answer193
viewsEntity Framework 6 tries to insert FK
I have a small application in C#, WPF and EF6. I’m using Code First, but I’m having a hard time creating a relationship. Look at my code, of the classes I want to relate: I’m editing for the final…
-
4
votes2
answers121
viewsError when setting Background
When trying to change the background (image or color) the following error occurs. What can be? MY XML 07-22 20:29:52.223 4967-4967/? E/AndroidRuntime﹕ FATAL EXCEPTION: main…
androidasked 9 years, 3 months ago Priscilla Andrade Machado 41 -
4
votes1
answer682
viewsSend only object from the list that has changed to the controller
I own a view who lists all my customers. Each customer has 3 checkbox where the user selects them, and sends them to the controller - through the button (Submit) - the data to change. The method is…
-
4
votes2
answers8619
viewsPass parameter in View
How do I pass a parameter to a view in Mysql? Using SQL Server simply put WHERE u.nome = @nome that would solve the problem. Below is the view of the problem in SQL: CREATE VIEW `view_conta_pessoa`…
-
4
votes1
answer161
viewsJava Nullpointerexception Error
I have a class like User which has as attribute a vector of Sensors, and the class Sensors has as attribute a vector of Data. After creating five objects of type User and saving in a txt file, I…
-
4
votes3
answers8129
viewsLoading in ajax
How do I add a loading to my ajax? This loading would begin when ajax was started and finished when the result returned. my code: $.ajax({ url: url + "login/ajaxLogin", type: "POST", data:…
-
4
votes3
answers5303
viewsFirebird, Insert com Where not exists
I am trying to insert a record into the table, but this record will only be inserted if it no longer exists there, so I am trying to do so: INSERT INTO R01 (NUMERO,EXPORTADOR, IMPORTADOR,…
-
4
votes2
answers3951
viewsWhat is the difference between mouseleave and mouseout?
In jQuery, what is the difference between mouseleave and mouseout? The two events seem to do the same thing!
jqueryasked 9 years, 3 months ago Wallace Maxters 102,340 -
4
votes1
answer180
viewsJMF, Java Media Framework, is there a replacement?
A few years ago, around 10 years ago, I started a road data collection project, this project was being done in Java and used the JMF, a framework to deal with various types of media in particular…
-
4
votes1
answer526
viewsNode.js Sequelize Error Relationships
In this relationship, A Questionnaire can have MANY Questions, when I run it in return I don’t get the ID of Questionário on the table of Questão, but both are created. Why this occurs? Here’s the…
-
4
votes2
answers121
viewsSoftware Release by Customers
The system I develop has several clients who use it. But I have a problem which is this: if I release a new version of the system, I raise it to the ftp, all customers using it have access to this…
-
4
votes3
answers1923
viewsHow to fetch a file in all folders
How to create an application that does a full search in a folder or disk looking for a file who in the image I’ve tried to use Directory.GetFiles and Directory.GetDirectory But when it gets to a…
-
4
votes0
answers217
viewsBetter logic for sheet handling
Good afternoon dear friends, I have a project in hand where I have four spreadsheets, one of each "computer station management program" in which, in all of them, I have a column with the number of…
-
4
votes2
answers9672
viewsPlay alert sound after database query (PHP + MYSQL)
I need a warning sound to be played after a bank appointment... Logical example: NUM_LINHAS = TABLE ROW NUMBER SE (NUM_LINHAS > 0){ play(); } My Java function that plays sound: <audio…
-
4
votes4
answers14354
viewsLine break in bootstrap
I’m making a form, and I have the following code: <div class="row"> <div class="col-md-6"> @Html.EditorFor(model => model.Nome) </div> <div class="col-md-6">…
-
4
votes1
answer689
viewsCall C++ from Lua
I wonder if there is a way to make a moon extension with a C++ blibioteca, ie the script moon access functions in C++. Ex: add.lua file -- add two numbers function add ( x, y ) CHAMAR AQUI uma…
-
4
votes3
answers1271
viewsGet google search results with Jquery
Hello, I’m wondering how to do the following: Using Jquery, I want to get the link of 1° result of a Google search. An example: $("#bt_tempInfo").load("https://www.google.com/search?q=exemplo…
-
4
votes3
answers109
viewsIn PHP, is NULL a constant or a keyword?
In PHP, NULL is a constant or a keyword? I’ve heard it’s a constant, but it looks like the keyword behavior of PHP (that do not differentiate capital from minuscule)? Example: echo NULL; echo null;…
-
4
votes6
answers3314
viewsGet the local time in javascript with zeros?
I’m trying to get local time and minute in javascript. The first way I tried was this: date = new Date; date.getHours() + ':' + date.getMinutes() // 10:5 But for the time of 10 hours and 05 minutes,…
-
4
votes1
answer249
viewsSplit and search messages by older and newer
I have a table. In her the 4 columns ID high-increment, id_user1 would be the id of the user who sent the message, id_user2 either would be the id of the user who received and mensagem the one who…
-
4
votes2
answers2404
viewsCalculate mathematical expression in string
Hello, I would like to know how to calculate a mathematical expression, contained in a string, in Javascript. Example: calc = "(7*2+1)/2"; How could I calculate?