Most voted questions
150,413 questions
Sort by count of
-
5
votes1
answer521
viewsShow ads admob interstitial (full page) after game over
I’ve already imported all the Admob files into my project and it’s all working, but I’d like to know how to get interstitial ads to show up when the WinPanel and the LosePanel stay active. Here is…
-
5
votes1
answer399
viewsIs it a good idea to insert SVG inline files?
I’ve been going through some websites and the ones that use SVG logos usually put them in a file separately. This brings the practicality of when you change the file, on all pages it changes, but…
-
5
votes2
answers1093
viewsDelete data from cascading table
I have some relationships on my tables and I’m willing to delete inversely. on my system the user will have the option to delete a category, here comes my question as I will do this because it…
-
5
votes1
answer1562
viewsHow to make a wrong user input not bug the program?
Example, I declared the menu option as int, then the ear bug goes in there and type in a letter or a special character and this will make the program crash. The question is: is there any way to…
-
5
votes2
answers303
viewsLogic ports in SQL
Is there a command that represents the logic gate XNOR or NOR in SQL? Something that for example denies XOR output
-
5
votes3
answers11223
viewsWhat is the MINUS command for and how it works on oracle
I’ve never seen this command before and I haven’t found it here either, I don’t know if it has another name and from the Oracle documentation I couldn’t understand exactly how it works. I just want…
-
5
votes1
answer225
viewsCannot assign "'Maria'": "Student.name_mae" must be a "Student" instance. When I try to access a student subclass field
I have a system with multiple users, I decided to make inheritance of Django’s default user, I have two users: student and teacher, which has several characteristics in common, so I created a base…
-
5
votes1
answer2239
viewsLoad table with json using Datatables
I am using jquery Datatables plugin version 1.10.7. I am trying to load a table following the following structure: JSON { "d:" [ { "IdNotificacao":null, "Contrato":{ "id":631, "serie":2210618,…
jsonasked 9 years, 4 months ago Diego Moreno 491 -
5
votes3
answers167
viewsWhat is the meaning of this definition of values?
<script type="text/javascript"> perfBar.init({ budget: { // the key is the metric id 'loadTime': { max: 200 }, 'redirectCount': { max: 1 }, 'globalJS': { min: 2, max: 5 } } }); </script>…
javascriptasked 9 years, 4 months ago Erick Lemos 698 -
5
votes2
answers490
viewsDoubts about the use of delegates
I still have not been able to fully absorb the use of the delegates, at what point I really should use a delegate and why of their construction. Then I ask the following question to the community.…
-
5
votes1
answer6281
viewsRemove Part String Javascript Informing the End
I have the following javascript function: var opts = document.getElementById('id_endereco'); //localiza select var str = opts.options[opts.selectedIndex].innerText; //Pega text do option I need to…
javascriptasked 9 years, 4 months ago sNniffer 1,009 -
5
votes1
answer1807
viewsShow textfield or textarea java
I can’t show words in textfield (or textarea) in my code, several hours in this and I still can’t. I got a link to the code. The most important lines are these, but if you want to test the whole…
-
5
votes1
answer1173
viewsRedirect to another page only if the user is authenticated
I have a login screen where I authenticate a user, but when I put one action to switch page regardless of whether the user was authenticated or not the page opens. My question is to know where I…
-
5
votes1
answer201
viewsGoing back to the top of the screen when writing in the field
I have the following error: I have a list and a field, every time I edit any text Edit from the list, it loses focus and goes to the top of the screen, notice the gif that at each letter of the word…
-
5
votes1
answer841
viewsAdd Migration and update at runtime Entityframework
I am developing an application and the need arose to add Migration and run the update at runtime. I already have the whole part that loads the modules: public class ClientContext : DbContext {…
-
5
votes1
answer73
viewsFade Radial js or canvas
Hello, I wonder if there is some transition I can do in radial or style of dissolving paint (as if it were running paint)? For this purpose become cooler to open the site. Fiddle:…
-
5
votes2
answers2528
viewsSearch for tree depth
I’d like to develop an algorithm that searches for depth in a binary tree, but I’m not getting it. When we make the tree we assign to each node the cost (cost to transition from one node to the…
-
5
votes1
answer28619
viewsIcons in different sizes with Bootstrap
Hi, I’m studying the Bootstrap building a website Opencart where the layout has standard icons. I made an HTML module for information with 3 icons using Bootstrap, but they follow the site size…
-
5
votes2
answers10495
viewsHow to get the number of processors and cores from the terminal?
How to check the number of processors (Cpus) and cores by the Linux terminal?
-
5
votes3
answers4457
viewsCalling Java application via PHP
I created a Java application here in my company but they want to call this application in Java via a site made in PHP. I wonder if it is possible to make a PHP code that calls a Java application, no…
-
5
votes1
answer3205
viewsSearch field in the <select> form
Good night, I would like to know how to in the list of a select enable "search" within the field? <select class="input-xxlarge" onchange="clienteChange()" style="width: 409px !important;"…
-
5
votes4
answers545
viewsFile Subdomain, Site Optimization
Well, I heard that for more downloads in parallel the indication is to put them in a subdomain, and even a fact that cookies not go in the request would also make faster. Anyway, truth or myth, how…
-
5
votes2
answers1258
viewsWhat is and how does an Enterprise Application Bus(ESB) work?
Some companies that work with containers Java EE say use Application Buses, never worked with such feature and would like to know two things about them: what is? how they work?…
-
5
votes3
answers22753
viewsError in select using mysqli_query
I made a php to list the rooms, but I’m having difficulty to list them, if anyone can help me, I would appreciate <?php $link = mysqli_connect("localhost","root","","hotel"); $result =…
-
5
votes1
answer723
viewsProblem loading image in HTML (Performance)
While the entire DOM parser process is blocked, this prevents the rendering of the rest of the page. And this if applied to each page script tag. A way that I found to "circumvent" this problem was…
-
5
votes2
answers543
viewsHow to organize the return of data in a List<T>?
I have a wcf that returns me some information, I would like to bring them organized, how could I do it? I’d like to return data like this: At the moment it’s like this: I’m doing like this: public…
-
5
votes1
answer67
viewsHow to get the value of a property using variable as name?
How to make him search the property ABC instead of A? Taking this code into account: A = 'ABC'; alert(LANG.A);
-
5
votes1
answer12530
viewsHow to compare two dates in Javascript or jQuery
I’m trying to compare two dates from fields text, turning them into objects Date, as follows (the first function is to format the field input with XX/XX/XXXX): function formatar(mascara, documento){…
-
5
votes2
answers305
viewsOnly constructors without parameters and initializers are supported in LINQ to Entities - Asp.Net MVC
I’m developing an application that manages courses. The student, when entering the registration screen and clicking on the "registration" button, is associated to a course, that is, is enrolled. So…
-
5
votes1
answer134
viewsIs there a difference beyond the syntax between Self-invoking-Functions?
I learned three ways to write Self Invoking Functions, Immediately-Invoked Function Expression (IIFE), and I was left with a doubt whether beyond the syntax there is any difference between them.…
-
5
votes1
answer406
viewsHow to map a TIME-like column in Entity Framework 6?
I am using this mapping to a SQL Server DATETIME field: Property(X => X.DatNascimento).HasColumnName("DAT_NASCIMENTO").HasColumnType("datetime"); But I have another field that is only TIME that I…
-
5
votes4
answers12786
viewsHow to create a java class?
I would like to know how to create a class in the java, how to use this class in the main program and how is the variable created in this class.
-
5
votes2
answers899
viewsGraphs: the longest path
Well, as a college job, I have to create an algorithm that, given a certain file with x is able to verify which is the largest sequence of numbers which, on the basis of 6, comply with the following…
-
5
votes3
answers1079
viewsHow to format numbers in Lua?
I would like to know how to format the variable: local n = 100000000 So you can come back like this: 100.000.000 Separated by dots, someone knows how to do?…
-
5
votes1
answer460
viewsHow do I communicate Javascript data in JSF?
I am developing an application that performs digital signature. In it, I upload a file PDF that has the address stored in a variable JavaScript. In the background, there is an application in JSF,…
-
5
votes1
answer643
viewsHow to connect to the Azure Database?
Well friends, I have a database on Azure, but I can’t connect to it. The error is that my IP is not authorized to perform such connection, what I did was add a new rule to the firewall of the…
-
5
votes1
answer411
viewsWhat is the Scala Collection equivalent to Concurrenthashmap?
Hello, how can I implement a Concurrenthashmap in Scala?
-
5
votes1
answer697
viewsWhat are the packages?
I’m starting with Phonegap and creating a project has the following structure: phonegap create helloWorld com.dominio.pasta HelloWorld But I never understood about this package. Is it a reverse URL?…
-
5
votes1
answer122
viewsComparison of two matrices with different sizes
I have two matrices with these dimensions and would like to remove the common lines between the two matrices and form another matrix without these elements. How R could do that? a = matrix(1:30,…
-
5
votes1
answer21697
viewsCommands to upload files to github
I’m trying to upload files to Github. I already created the directory and in Github created the account. I cannot establish a connection to Github when I enter the folder containing the file I want…
-
5
votes1
answer1433
viewsCheck server uptime with Node.js
I am making several HTTP requests at a certain time and wish to check only the return status. There are paths that require login to the application but as it is a very basic script and is not…
-
5
votes1
answer3306
viewsHow to create a new library in C++
I would like to know how to create a new library in C++. if one can give an example, it can be a widespread example.
-
5
votes2
answers12739
viewsUpload Only from Images
How to upload images only(.png and .jpeg)? Do not allow the choice of another file type. I’m using as per below: <input type="file" name="arquivos" class="btn btn-success" multiple/> At the…
html5asked 9 years, 5 months ago Janderson Thomaz 497 -
5
votes1
answer203
viewsSWT using DATETIME problem in saving compatible SQL format
The problem is this: I have a personal finance program that will register some important data, among them the registration date and the due date. Program interfaces are made in Eclipse at SWT, and…
-
5
votes2
answers804
viewsHow do you calculate (easily) total and subtotal in Django?
I’m wearing Django 1.7.8 I have the models.py class SaleDetail(models.Model): quantity = models.PositiveSmallIntegerField(_('quantidade')) price_sale = models.DecimalField( def get_subtotal(self):…
djangoasked 9 years, 5 months ago Regis Santos 1,574 -
5
votes1
answer1029
viewsAllow access to a PHP page only 1 user at a time
I’m creating a call answering system, and to avoid confusion when it comes to answering a request, I need to restrict the PHP page that contains the call data to 1 access at a time for each user of…
-
5
votes2
answers998
viewsRegular expression, taking values from HTML
I have an HTML that I need to remove values from a set of <li>. This is the HTML part: <ul id="minhas-tags"> <li><em>Tagged: </em></li> <li><a…
-
5
votes4
answers10243
viewsHow to align <li> items from a <ul> list below?
The idea is to create a chat similar to skype, Whatsapp, etc... Where messages start to appear from bottom to top until they reach ul height so the scroll bar appears. ul { list-style: none;…
-
5
votes2
answers103
viewsDoubt in inheritance
I have a question about inheritance. I have the following code: public class CovariantTest { public A getObject(){ return new A(); } public static void main(String[] args){ CovariantTest c1 = new…
-
5
votes3
answers3594
viewsWhat is the difference between display:inline-block and float:left
When testing with alignment of div, both have the same purpose But what would be your difference?