Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer181
viewsHow to avoid duplication of content in a table without a primary key?
In a virtual shop panel I am building the products have relations by color and size, where each product color has a size. This is a part of my database to better understand the problem:…
-
4
votes2
answers466
viewsHow to go through Arraylist with daughter class
Next, I have one ArrayList student type (which is an abstract class), and I have two daughter classes (EstudanteGraduacao and EstudantePosGraduacao), when I’ll add them to ArrayList it’s quiet, but…
-
4
votes1
answer3192
viewsContainer that adjusts to 100% window height and width
I wanted to create a container or a secção which automatically adjusts to the height and width of the screen, which even when resized to secção adapts to the size of this, followed by another type…
-
4
votes3
answers1367
viewsProblems to implement convert to selectOneMenu
Good afternoon. I’m having trouble implementing a selectOneMenu of objects in my xhtml. Keeps giving "Conversion Error". Could someone tell me the problem of the code below? Error code: Erro de…
-
4
votes1
answer277
viewsChange property structure at time of JSON serialization
I have a situation where my HTML form represents a different data structure than the existing structure on the server. To illustrate my problem, I will present a hypothetical situation, to present…
asp.net-mvcasked 9 years, 5 months ago Joaquim Magalhães 169 -
4
votes1
answer299
viewsHelp with PHP repeat structure - PARSER - simple_html_dom.php
I’m doing a parser with simple_html_dom.php where I pull all the links from a given page. I can pull the links and assign to an array, here comes the problem: this page has a maximum display limit…
-
4
votes1
answer643
viewsProblem with Decimal (4,2)
I have an MVC project, I am using Entity Framkework and in my database there is a table with a column of type decimal (4,2). The problem is: I try to insert any value, for example: 5.00 // 5,00 //…
-
4
votes1
answer4911
viewsFailed to execute Goal org.apache.Maven.plugins:Maven-Compiler-plugin:2.5.1:Compile (default-Compile)
By clicking on install in any of my three MVC parts, he makes reference to the cited error. ================================================================================ Scanning for projects...…
-
4
votes1
answer118
viewsClass creation that returns a String
Hello guys I’m beginner in Java Android and I’m having a little problem, I’m trying to create a class that returns a String. I create the file .java and paste my code but gives the following error…
-
4
votes1
answer1174
viewsHow to format Date in Gridview Asp.net C#
In Asp.net c#, How do I convert a date in gridview coming from the bank to the format dd/mm/yyyy ? Currently it turns out like 18/05/2015 00:00:00. The guy in the column is Boundfield. I’ve tried…
-
4
votes1
answer300
viewsSend and receive SMS from a GPS
I need to send a SMS for a chip do GPS and he will return me a coordinate. How do I send and receive this SMS? Examples of links and services based on HTML and JavaScript for this shipment?…
-
4
votes1
answer357
viewsHide a column from a Webgrid
Good afternoon. I have a Webgrid and would like to leave an invisible column. How could I do that? this is the grid: @{ Layout = null; WebGrid grid = new WebGrid(Model); } @grid.GetHtml(columns: new…
-
4
votes1
answer669
viewsMultiple selection in Visual Studio
I would like to expand the cursor to the next word that is selected, it is similar to the CTRL + F but make a copy of the cursor to which the selected word was found, so you can change more than one…
visual-studioasked 9 years, 5 months ago pmargreff 2,343 -
4
votes1
answer3307
viewsIs OS development restricted to beginners?
One thing I’ve always wanted to do is develop my own operating system (not necessarily as good as Linux or Windows, it would have some basic functions at prompt). I’m not a complete beginner in this…
-
4
votes2
answers1954
viewsQuestion about logical operators
I would like to know what the resolution of the following question is: In a paddock, there are several ducks and rabbits. Write a program that asks the user for total heads and total feet and…
c++asked 9 years, 5 months ago Domingos Gustavo 41 -
4
votes1
answer536
viewsDisplay student grade in C
I wanted to display the student grade when all the notes were typed, in an array of 10 positions, I tried out for, but it returns me only the last. #include <stdio.h> #include <stdlib.h>…
-
4
votes1
answer114
viewsGoing from one point to another
With the following facts, x(p1,d1,c,d,e,f), y(d1,d2,i,j,k,l), z(d2,d3,o,p,q,r), Thinking of them as points, I would like to know how I can go from x to z , making the input of P1 and D3. I have, for…
-
4
votes2
answers10851
viewsHow to return the difference in hours between two dates?
I have two dates stored in the variables $date1 and $date2 respectively. They are in format: YYYY/MM/DD HH:MM I wonder how I get the difference in hours between these two dates?…
-
4
votes1
answer67
viewsIs there any standard, convention or practice that rules the use of static file server domains?
I have the following scenario: Each client of my service (Saas) has a custom url. For this, I created a CNAME record *.dominio.com pointing to my server. Ex.: empresa1.dominio.com,…
-
4
votes2
answers12276
viewsWhat is the space limit of each database in mysql
I see that some SGBD's has a space limit set for each Database. As in the case of the Express version of SQL Server that provides 10GB for each Base. I would like to know if MySql has some limit,…
mysqlasked 9 years, 5 months ago DiegoAugusto 8,694 -
4
votes1
answer275
viewsWhy use the Ienumerable?
I have the following code in a Controller: var carro = new List<SelectListItem> { new SelectListItem {Text = "Pegeout", Value = "Pegeout"}, new SelectListItem {Text = "Chevrolet", Value =…
-
4
votes1
answer1443
viewsWhat is the difference between dump and dumps from the Pickle module in Python?
I have read the documentation of Python and also of Pickle himself, but I could not assimilate the content (lack of examples). On the Web I only found information about using "dump + load" and…
-
4
votes2
answers5046
viewsHow to validate Google reCaptcha / noCaptcha in PHP?
How to send such POST that Google asks and so make my field validated?
-
4
votes2
answers2985
viewsConsume Moodle Web Service
I am trying to consume the webservice of Moodle, following a js/Rest example I found on github, I created a test.php with the code below (changing the domainname and token) but when I call the page…
-
4
votes3
answers161
viewsWhat is the difference between these 2 PHP codes?
I am studying PHP and came across the following question: what would be the difference between the following codes: <?php class ClasseTeste { protected $db_host = 'localhost'; protected $db_user…
-
4
votes1
answer125
viewsHow to implement the 'auto complete' feature in a Jformattedtextfield?
I need that when I type in JFormattedTextField pop up text suggestions. It would be possible to do this?
-
4
votes4
answers4483
viewsExtract decimal part of a decimal
I’m having trouble formulating a good means of extracting the decimal part of a variable decimal, so far the existing implementation in the system is that: public static bool…
c#asked 9 years, 5 months ago Marciano.Andrade 1,205 -
4
votes3
answers1108
viewsWhy isn’t Vagrant synchronizing the folders?
I’m using: Windows 8 64 bits Vagrant 1.7.2 Virtual box 4.3.28 GitBash 1.9.4 para conexão SSH Box Ubuntu 14.04.02 Trusty 32 bits Box Ubuntu 14.04.02 Trusty 64 bits I am developing with Ruby on Rails,…
-
4
votes2
answers1320
viewsSave user and password without database use
I am developing an application in C# of the kind Console, and I’m looking to save some sensitive settings like user, password and IP. The problem is, how to safely store this data locally without…
-
4
votes1
answer76
viewsI can’t run code after the cycle is
I am using Selenium as Crawler on a website. I have no experience with python. Here I create a dataframe with the data of a .csv df = pd.DataFrame.from_csv( 'tabela_etickets_copa3.csv', columns =…
-
4
votes1
answer509
viewsPlay Sound (WINDOWS)
How do I play sound in a program developed in the C/C language++? Environment ()
-
4
votes0
answers66
viewsHow to put a background in a setup nsis?
I’m making a setup.exe for an application with the help of nsis and I’m compiling the same in Ubuntu. Now I wanted to customize the setup so that it appeared with background image like this: How can…
-
4
votes1
answer553
viewsWhat is the maximum limit of PHP/Mysql/Nginx in a request before giving error 504 Time-out Gateway
And if possible how can I extend this time for large queries/requests?
-
4
votes1
answer986
viewsStream -> findFirst vs findAny
The class Stream has two very similar methods, findFirstand findAny. Both return a Optional<T> with an item (or emptycase to Stream be empty). The findFirst returns the first item found. In…
java-8asked 9 years, 5 months ago Anthony Accioly 20,516 -
4
votes1
answer540
viewsRecover most viewed videos from youtube channel
There is how I recover the 5 most viewed videos from my Youtube channel to put on my website?
-
4
votes1
answer1174
viewsRazor C# list and sublist with List<String> (originally "how to check if an HTML element already exists")
I need to know if an HTML element already exists, in my loop, if it exists I use it, if it doesn’t exist I create a. How would you do it inside a @foreach (var item in Model){ ... } Following the…
-
4
votes1
answer551
viewsWhat to apply() - jquery for
I wonder what the function is for apply() in jquery. I am creating a plugin where I am using. By observation I see that it catches the this and passes as argument in function init. Then I can use…
-
4
votes1
answer2054
viewsInstall Pagseguro/PHP in Laravel
In the composer.php I’m putting it like this: "require": { "laravel/framework": "4.2.*", "pagseguro/php": "dev-master", #"pagseguro/php": "2.5.0", "cagartner/correios-consulta": "0.1.*",…
-
4
votes1
answer139
viewsHow to make a video file available for viewing in the browser as PDF?
How to make a file available for download and viewing in browser? For example, files of the type pdf and mp4. When I want to make available to download the file I simply use the following routine:…
-
4
votes1
answer95
viewsActivity has Leaked window Android
I make a connection with Mysql and it returns me a JSON that I play on a list of products. When I click on one of these items it takes the ID (I call PID in the code) of the product and sends it to…
-
4
votes2
answers340
viewsRead only last characters of a LUA string
I have a string, I just want to read the last characters after the last one ";". Example: "12/5/2015;00:00:05;90" -> Read only "90"
-
4
votes1
answer650
viewsBootstrap 3: left tabs no longer work?
Hello, this following code no longer works on Bootstrap 3? <div class="tabbable tabs-left"> <ul class="nav nav-tabs"> ... </ul> <div class="tab-content"> ... </div>…
-
4
votes1
answer1408
viewsAndroid display a screen only the first time you open the application
Is there a way to run a specific screen (such as identification) the first time the application opens? And every time I launch an update on google play, people who already have the app installed and…
androidasked 9 years, 5 months ago Diego Figueiredo 43 -
4
votes2
answers837
viewsCheck closed tab
I found on the Internet the following code: <script type="text/javascript"> var popup = null; function Abrir() { if (popup!=null && popup.closed) alert("A Janela foi fechada.n Abrindo…
javascriptasked 9 years, 6 months ago GGirotto 1,144 -
4
votes2
answers359
viewsHow to use @Delete annotation in Vraptor + AJAX?
In my Vraptor project I am trying to delete a record from a list without the page being reloaded. By the book I am following, AJAX is used so that the record removed "suma" without the whole page…
-
4
votes2
answers1001
viewsFind file on server
Good afternoon, I have a PHP file that looks for a txt to take the information and go up the SQL database, but this file is generated by the server here in the company (where my machine is already…
-
4
votes1
answer1574
viewsHow to make a query with Node.js and Mysql
Hello, I’m starting with Node.js and MySQL, and I have some problems at the moment. Well, I have a table called users, and I need to request data for verification, for example: My site has a…
-
4
votes1
answer1607
viewsHow to put into a variable only the text that was selected within a textarea?
With var texto = document.getElementById('texto').value; I get everything that’s in the tetxarea that has this id, but what if I want a partial text? For example the whole text is this: Germany…
-
4
votes2
answers1595
views -
4
votes1
answer354
viewsChange a Select mysql to a Select PDO
I have a select of sources registered in a table, and I currently use this code to list them so that the user can choose the desired source. <select name="tipo_font_end"> <?php $select =…