Most voted questions
150,413 questions
Sort by count of
-
6
votes2
answers970
viewsInput radio that looks checkbox?
I need to do a quiz, and the alternatives are radio inputs, but it looks like custom checkbox. What’s the best way to do that? .tabs-below > .nav-tabs, .tabs-right > .nav-tabs, .tabs-left >…
-
6
votes1
answer268
viewsWhat size of a large sizeable query?
What size of a query considerable great? For, I need to make a function to send query for the server but I cannot exceed the limit not to crash the server: public function sqlExecute($sql_code) { if…
-
6
votes2
answers5494
viewsForeach inside of foreach
I need to run a foreach within another foreach in PHP. But it gives me the following error: Parse error: syntax error, Unexpected T_FOREACH referring to the line where the second foreach occurs.…
-
6
votes2
answers110
viewsindex starting from right
Problem I wish when I did "asdhusaidhi asdhasuidhu".indexOf('s') he would return to me 17 concerning the latter s of the string, for example, it start searching from the right.. but instead, he…
javascriptasked 9 years, 11 months ago Silvio Andorinha 8,394 -
6
votes1
answer3700
viewsHow to make a POST request in Python?
I’d like to know how to make a request POST in this URL, and then arrive on that page. Where I have to spend the year at div of the tax body without signature.…
-
6
votes1
answer180
viewsSelect database record for variable
The code below aims to select a database record and save it in a variable for later use of the data: #!/bin/bash dbName='basedados' dbUser='utilizador' dbPass='password' row=$(echo "select file_id,…
-
6
votes3
answers3224
viewsHow big is the line break?
Hi, I was wondering if there is a default size for line breaking in HTML (<br>), whether it depends on the size of the font being used and how to change it.
-
6
votes2
answers4961
viewsCalculate how long it takes to execute a function
I have to create a function in JavaScript that takes all id’s from one table and makes a draw with id’s from the same table so that the same id does not fall with itself, and there is a possibility…
-
6
votes1
answer474
viewsHow to make a query that returns data from the last 7 days without considering Sunday
I need some condition in SQL SERVER return the result of the list of elements taking into account the last 7 days of creation of the same. But he cannot consider Sunday as a valid day in the…
-
6
votes2
answers4323
viewsFormat number for only 2 digits
I have a script that returns: 4.499999999999 But I wanted it to return only 4.4 or round to 4.5, just do not want it to stay more than 1 digit after the comma, how to do?
-
6
votes1
answer805
viewsPHP - Concurrent user control?
I have a finished and working system, done in full ASP. I am rewriting version 2.0 of it, and as I will review it 100%, I decided to try my luck with PHP. A problem arose in user control: I need to…
phpasked 9 years, 11 months ago Dirty Old Man 1,064 -
6
votes2
answers125
viewsUse of ';' before starting a function
It has become frequent for me to find codes on github that start like this: ;(function(window){ 'use strict'; })(); Just never understood the following. What is the purpose of using the ';' before…
-
6
votes1
answer3336
viewsSet county boundaries in Googlemaps
I’m trying to create thematic maps using the api google maps. Reading the documentation realized that for coloring regions I need set all Lat Long coordinates from the perimeter I want. Someone who…
-
6
votes1
answer623
viewsIs there any way to do an PSA unit test?
I am in need of a help to do ASP unit testing for a software quality project. It is possible to do this? Remembering that it is classic ASP.
-
6
votes2
answers494
viewsDirecting all root traffic to sub folder results in "403 Forbidden" error if you do not have "index.php"
The code below works perfectly to direct all website traffic transparently into the folder www: Options -Indexes +SymLinksIfOwnerMatch RewriteEngine on RewriteBase / # Verificar o destino…
-
6
votes2
answers2673
viewsHow big is a memory address?
What size of a memory address? I think a memory address has 32 bits, but I’m seeing it in a Debugger one int, where he separated 4 addresses for him. So, an address is equal to 32 bits? Because…
-
6
votes2
answers5569
viewsHow to read a digital certificate file with php
I have a system where it does digital certificate storage, I need some information in addition to the file itself, one such information is the expiration date of the certificate. The question is,…
-
6
votes1
answer186
viewsHow to verify sender using RSA algorithm
I had a doubt in the passing of my researches that I could not solve. Let’s see a form of end-to-end that uses RSA, Alice needs an hour to send her public key to Bob and vice versa to communicate,…
-
6
votes2
answers7305
viewsHow to compress images in PHP?
On my website, people can post messages and along with these messages an image (which is saved in a folder). I wonder if there is any class or any means using PHP to compress these images without…
-
6
votes1
answer1253
viewsThread Control in Java
I have a multi thread Java system that uses the class ThreadGroup which is deprecated. With my current implementation I can’t "kill" a thread in lock either. How to implement efficient code for…
-
6
votes3
answers8025
viewsDifference between decimal and Numeric
The two types of data, DECIMAL and NUMERIC, are/can be used to store exact values. For example: Is there any difference between Salario DECIMAL(5,2) and Salario NUMERIC(5,2) in Mysql? Is there any…
-
6
votes1
answer12243
viewsHow to use the Row class in bootstrap?
I have two questions: 1st - In bootstrap it is mandatory to use the "Row" class to wrap the columns? 2nd - I can have more than 12 columns within the same class "Row"? Example: <div…
twitter-bootstrapasked 9 years, 11 months ago Carlos Pereira 1,190 -
6
votes1
answer166
viewsAdd property in relation to N-N
How to add properties (columns) in an N-N relation using EF? For example, I have the class Produto: public class Produto { [Key] public int ProdutoID { get; set; } public string Descricao { get;…
-
6
votes3
answers520
viewsIs Microsoft Azure recommended to host game site?
I want to acquire a plan from Microsoft Azure but have doubts. I am a game developer so I was wondering if it is recommended to host the site and host the server files on a Windows machine. If it is…
-
6
votes1
answer384
viewsHow to read/translate the Yield keyword?
I’m studying about the keyword Yield in C#, and I have this question: how to read this word in Portuguese (structured?). Would something like "return the current value of the enumerator"? Wouldn’t…
-
6
votes2
answers19743
viewsWarning: mysqli_fetch_assoc() expects Parameter 1 to be mysqli_result, Boolean Given in
I’m having a simple problem when it comes time to take a dice from a table.. The mistake is Warning: mysqli_fetch_assoc() expects Parameter 1 to be mysqli_result, Boolean Given in Code: $sql =…
-
6
votes1
answer167
viewsProblem with links in the ckeditor
When I add one link of the kind www.google.com?var=1&var=2&var=3 in the Ckeditor it automatically inserts & leaving the link as follows: www.google.com?var=1&var=2&var=3…
-
6
votes3
answers5927
viewsGroup values from an array in PHP
I have a grid form that returns the following values within an Array: array (size=3) 0 => array (size=5) 'pei_seq' => int 0 'prg_cod_barra' => string '7899619704729' (length=13)…
-
6
votes2
answers772
viewsHow to implement a chat in an Android app with backend Webapi
I’m developing an Android application that consumes services from a Webapi project. In one part of this application it will be necessary to develop chat between two or more people. Against this…
-
6
votes1
answer830
viewsERROR: This application is failed to start because it could not find or load the Qt Platform plugin "windows"
I am in error when running a program that was created with Qt , it generates the photo error! This error is generated when running exe, all the dlls indicated in the Walker dependency are in the exe…
-
6
votes1
answer237
viewsRecursive function for integer number input
I have this code but it doesn’t work very well, I mean, if it’s whole at first numOfValues is correct, but if it is not gets the type None, for what remains in memory is the first input (which is…
-
6
votes3
answers3850
viewsElements with Css cut corners
I need to make elements with cut corners, like these squares. How can I do ?
-
6
votes2
answers3494
viewsASP NET MVC Include Url Parameter on all pages
I have an ASP NET MVC application that is multi-client and multi-user, IE, it is prepared to be used by multiple customers and each client can have multiple users. Initially the login form has the…
-
6
votes3
answers436
viewsWhy is array_shift considered a slow function?
According to the Manual, array_shift removes the first element of the array. I have seen many criticisms on the Internet about the performance of this function, because it reorder the whole index of…
-
6
votes1
answer10284
viewsHow to remove a remote branch in Git?
To delete a local Git branch, just use the command git branch -d <branch>, but how to get this same branch removed on the remote server?
gitasked 9 years, 12 months ago Fábio Perez 1,662 -
6
votes2
answers4720
viewshow to pick up an object from an array through id with Angularjs
I pass the id of the object coming from an ng-repeat through the $stateParams more later I would need to take the object of the array referring to the id coming from the URL to display the…
angularjsasked 9 years, 12 months ago Matheus Monteiro 151 -
6
votes3
answers27524
viewsPlace button side by side
Hello wanted to have a back button and another to go to analysis, when I go to see the site they always appear on one the bottom and the other on top. My code is: <a…
-
6
votes1
answer139
viewsHow to convert a Javascript array to a PHP array?
The system gives me a Javascript matrix to work on the page. I can get this array with PHP, but I don’t know how to convert Javascript to PHP and work using PHP. This is an example of the Javascript…
-
6
votes1
answer25024
viewsHow to put autocomplete in Sublime Text 3?
I use Sublime Text 3 to program only autocomplete is not working for me. I have already installed plugin Sublime Intelcode but it still doesn’t work. Suggestions don’t appear when I write the code.…
sublime-textasked 9 years, 12 months ago César Sousa 2,025 -
6
votes1
answer3098
viewsHow to customize Auto_increment numbering in Mysql?
I have a column Contrato in my Mysql database, it is like Auto_Increment, by numbering the contracts as 1, 2, 3... But I needed, if possible, to organize these numbers in the actual format of…
-
6
votes2
answers256
viewsOptimization of custom search tool
Guys, I’m creating a search page that gets, via POST, the information on a form containing several checkbox. See below that there are several sequences of results and is marked in orange one of them…
-
6
votes3
answers10752
viewsHow to debug a website on mobile devices?
I’m developing a website that, although it looks good on the desktop, is getting deformed when accessed via mobile devices. Specifically, some problems occur when using the browser Android standard,…
-
6
votes2
answers599
views -
6
votes3
answers242
viewsShow list of 6 in 6 items
I have a menu listing with the following HTML: .menu ul { height: 115px; width: 960x; } .menu li { font: 900 22px/22px"open sans"; color: #16232e; width: 160px; text-align: center; text-transform:…
jqueryasked 10 years ago Felipe Viero Goulart 3,693 -
6
votes2
answers433
viewsWhat is the difference between the union of an array via soma operator and the array_merge function?
To join two arrays in a new array in PHP, we can do through the function array_merge or through the sum operator (+). In this case we have two examples: $a = ['stack' => 'overflow']; $b =…
-
6
votes2
answers533
viewsMysql BD random record preventing consecutive equal records
I have a database where I want to pick up a random record. I can do this perfectly with: $query = "SELECT * FROM `mytable` ORDER BY RAND() The problem is that the database contains the entry order…
-
6
votes3
answers1954
viewsProblems adding item to array with Angularjs
I’m putting together a shopping cart with dynamic options with Angularjs. The problem is here: { "14": [ { "id": 3, "forma": "Alface", "preco": 1 }, { "3": 1 } ], "15": [ { "id": 3, "forma":…
-
6
votes1
answer1981
viewsProblems configuring Composer with XAMPP in Windows environment
Installing Composer in windows has given me some work. I have some doubts: The Composer installer on Windows asks to inform the location of php.exe, and settle in there. After that I ran the…
-
6
votes1
answer293
viewsSelect button with one click and only open with two clicks
I have a webform Imagebutton that represents directories on a grid using Peater. How to make with 1 click just select the button, and only open with two clicks? <asp:Repeater ID="rtInlineBlock"…
-
6
votes1
answer2411
viewsBlock keyboard and mouse or prevent user from leaving window in C#
I’m developing a lock screen style of lan-house where the user does not leave the screen without the server’s permission, I would like to know if it has to prevent the user from using keyboard and…
c#asked 10 years ago Pedro Soares 1,136