Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer220
viewsWhy does Python allow you to overwrite the value of False and True?
I’m studying Python and in these studies I came across something curious. > False = True #Imprime: True > print(False) #Imprime: True > False = bool(0) > print(False) #Imprime: False I…
pythonasked 9 years, 2 months ago Wallace Maxters 102,340 -
4
votes1
answer156
viewsRegular Expression, picking numbers between two predefined texts
I need to withdraw números of a string. To string follows a pattern: http://www.meudominio.com/1789519-texto The number will always be between / and - I’ve already reached the following formula:…
-
4
votes1
answer2873
viewsHow to set today’s date as default value in a texbox as date input type?
I have a research page for a sales report and I use a textbox that generates a input type "date", and whenever the page loads the value of the field is "dd/mm/yyyy". I would like that whenever the…
-
4
votes1
answer9504
viewsCreating tabs the right way on Android currently
I’m trying to implement in the app I’m creating Tabs, like this: But always when I try to implement I face classes and methods deprecated, as an example, TabListener, ActionBarActivity and now I’m…
-
4
votes1
answer854
viewsmysql + PHP - use or not use mysqli_close()
I just noticed I’m not using the function mysqli_close() indicated on the website of PHP.NET I monitor the connections through Workbench client conections and there are open connections, my doubt is…
-
4
votes1
answer80
viewsComparison of Array() Results
I have an Array() of results, I need to buy if the city of array 0 is equal to the city of array 1, if the city of array 1 is equal to the city of array 2... and so on. My SQL print_r resulted in…
phpasked 9 years, 2 months ago Sr. André Baill 6,946 -
4
votes1
answer809
viewsCommunication between pages via Javascript
I am developing a web app, where each page has an option to filter, for example, one for brands, then the models of these brands, after, the cars and then the years of the car chosen. I would like…
-
4
votes1
answer342
viewsFloat 2 side-by-side with triangular tip
This is a tough one, and I’ll explain why, I have two Ivs like in the print below, the site is responsive, they should float side by side, but these Ivs have triangular tips, and they should scale…
-
4
votes2
answers449
viewsPutting Forward and Return Control on Slide Show
I would like to know how I can change the Slide Show script below so that it works with two action controls called Next and Previous and I need the Slide only change the text if the user click one…
-
4
votes1
answer351
viewsHow to create a simplified jsFiddle version
jsFiddle uses json to save CSS/HTML, Javascript/Jquery? Probably this json is saved in a bank. The series 4fh0xdpc would be the ID in the bank. http://jsfiddle.net/4fh0xdpc/ Each update generates a…
-
4
votes3
answers314
viewsHow to destroy a jQuery.fn whenever called?
I built a plugin using jQuery.fn.algumaCoisa = function(options, callback){};, But when I call several times on the same element, it multiplies the behavior instead of overlapping. Has some way of…
-
4
votes1
answer191
viewsJavascript - How to improve this code?
As there is the Code Review Stack Exchange in Portuguese and Stack Overflow PT covers this topic I ask for help in a code that I am working on: suggestions and criticism regarding a chat script that…
-
4
votes1
answer566
viewsHow to create a circle of progress?
I’m looking to make progress in a circle like this: In Java, I could only find something about JProgressBar.…
-
4
votes2
answers1581
viewsFolder browsing in PHP
I have a few folders in my project and I need to go through them all keeping the name of the mother, daughter, and her files folder... The parent folder is "Manual", inside it I have other folders…
-
4
votes1
answer310
viewsHow to go through all the controls of a WPF window?
Is there any way I can go through all the controls of a window and disable them? For example, do a foreach that disables one by one of the controls. Something like below, only for WPF, and not…
-
4
votes1
answer169
viewshow to use foreach
Hi, I’m here to enlist the help of friends. I have this code below to list all products and be registered, but I’m not able to list them on the same page using foreach. Could your friends give me a…
-
4
votes2
answers123
viewsSome errors on Android
I’m trying to start programming on Android. I created the project and came this code: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…
-
4
votes1
answer1055
viewsHow to show the bank’s value in a star rating?
I was able to do the star rating system, but I wanted the vote to be shown on the screen or stored on the star, so it would be filled according to the votes. Someone could help me, here’s my code:…
-
4
votes1
answer651
viewsHow to copy the path of a selected file in Window Explorer?
How to copy the full path containing the file name to the Clipboard using the "shortcut" CTRL-C? For example: Inside windows explorer select a file (teste.py) using the CTRL-C and then the CTRL-V in…
-
4
votes2
answers535
viewsHow to access Action in another Controller via Ajax?
I have an Aspnet MVC project structured as follows: Projeto L Areas L Area1 L Controllers L MeuControllerArea1Controller.cs Views Area2 L Controllers L MeuControllerArea2Controller.cs Views L…
-
4
votes3
answers2089
viewsCalculate on which days of the week the days of the month fall
I created a javascript function that assembles a calendar. I need this calendar to assemble according to the number and days of the week of the given month. Ex(August 1 fell on a Tuesday). I also…
javascriptasked 9 years, 2 months ago Raphael Gumm 253 -
4
votes2
answers541
viewsHow do I check if my application is open on mobile or web?
I need to do a.css style for mobile and another for web .
-
4
votes1
answer460
viewsRelationship between 3 entities
I have the following tables: +----------+ +----------------------+ +------------+ | Produtos | | ProdutosVsCategorias | | Categorias | +----------+ +----------------------+ +------------+ - ID - ID…
-
4
votes3
answers129
viewsPerforming dual function not named in the declaration act of the same
I am "joking" with Javascript and came across a question. I understand that when my HTML page is loaded, if I want to already execute a function without having to declare it, I just have to define…
javascriptasked 9 years, 2 months ago LeandroLuk 4,989 -
4
votes1
answer264
viewsDoubt onkeyup javascript
When I type in input any word, the typed text goes to uppercase. In Mozilla Firefox and Internet Explorer I can turn back the indicator that keeps blinking to type a letter and I can edit it…
-
4
votes2
answers6465
viewsHow to return a list as JSON using Spring MVC (@Restcontroller)?
I want to return a list in JSON format using Spring, but I am not succeeding. At pom.xml I added this dependency: <dependency> <groupId>org.codehaus.jackson</groupId>…
-
4
votes2
answers2228
viewsUpdate in array in Mongodb
{ "_id" : "55dcb404478e7227203d3a65", "Nome" : "Grupo Familia", "Pessoas" : [ { "PessoaId" : "55dcb425478e72207833e970", "Nome" : "Carlos", "Habilidades" : [ { "HabilidadeId" :…
-
4
votes6
answers650
viewsHow to extract a variable from within a function
Suppose I use the following function in .js... And inside it there are some variables. $(document).on("load", function(){ var Variavel1= "um"; var Variavel2= "dois"; var Variavel3= "tres"; var…
-
4
votes1
answer438
viewswindow.open() not working properly in Firefox and Chrome
I am using the following Javascript to hide the address bar in popup: oncomplete="window.open('lista_persist.xhtml', 'newwindow',…
javascriptasked 9 years, 2 months ago Edson Cezar 457 -
4
votes2
answers220
viewsDeclare Set<double> - JAVA
I wanted to know how to declare a generic type set that is not a class. Example: Set<double>. All the examples I’ve seen set is from a class. I’m starting to see sets now. I need to make a Set…
javaasked 9 years, 2 months ago MarlonJhow 645 -
4
votes2
answers2439
viewsHow to use the value of options?
Inside the "options.html" file I know exactly how to make a tagging work to enable some set of javascript like... <label> <input type="checkbox" id="test"> Habilitar </label> That…
-
4
votes1
answer116
views'System.Stackoverflowexception' When running Migration with Dbmigrator
I have my Migration that has a number close to 6500 records like this: db.MinhaLista.AddOrUpdate(x => x.Codigo, (new MeuModel { Codigo = "ABC1234", Nome = "Teste "})); However while running my…
-
4
votes2
answers954
viewsCss change in iOS only
I need to make a css change on iOS only, I used if (navigator.userAgent.match(/(iPod|iPhone|iPad)/)) {} But it didn’t work. The code I need to change is this. .sdn-music-player>.yt-wrap>iframe…
-
4
votes2
answers257
viewsEvent click is lost on the next page in the pagination
I have developed a simple pagination page for my studies and am having a problem with the click event when I go to the next page. On the first page the event works but when I go to the next the…
-
4
votes1
answer203
viewsOrdering structures, why is the representation made in matrix?
Studying methods of sorting, I realized that even the method receiving a vector, its graphical representation of the functioning and explanation of the method in many materials is using a matrix. As…
-
4
votes1
answer10348
viewsHow to create a txt file?
In Java I use the PrintWriter and works perfectly, but on Android I’m getting a lot, it doesn’t work at all. Can someone help me with this? It’s a simple thing, but I’m stuck. I needed to create a…
androidasked 9 years, 2 months ago daniel12345smith 2,120 -
4
votes2
answers132
viewscheck if several fields are created in the database
It was added in a table plus 7 columns, only before you need to check if this column is in the database otherwise the column creation script should not be executed. Is there a way in a single…
-
4
votes2
answers460
viewsHow to replace Eval() with another expression
Reading some comments and especially the comments of Mr Tobymosque, I try today to avoid the use of Eval(). Well, now comes the following. In simple expressions, how do I replace it? See below a…
javascriptasked 9 years, 2 months ago pnet 14,727 -
4
votes4
answers2257
viewsCheck if user is logged in
I would like to know how to block access when the user is not logged in to the system, however, the only page that can be accessed is the Login and when he tries to access any other page redirect to…
-
4
votes3
answers1823
viewsHow to implement spinner loanding in Angularjs?
I’m trying to implement spinner loanding in my project in Engineering, it’s been a while! the spinner should run whenever a request is executed. What library do I use?
-
4
votes1
answer369
viewsTag <video> controlling by javascript
How do I so that when I click on the video it starts uploading, because I’m not getting if anyone can help thank you. Here’s the code snippet from the video: <div class="video"> <video…
-
4
votes4
answers7995
viewsAccentuation is unreadable on the page
My page (Header of a table and a modal popup), in accented letters or characters of the Portuguese language, are coming illegible. At the head of the page I have that statement: <head>…
-
4
votes1
answer297
viewsSend commands to a Batch with user input
Context: I have a Batch I can’t change, its function is to list some files in a specific directory, and after it lists the files it is waiting for some user command. Problem: I would like to…
-
4
votes2
answers114
viewsInsert Mysql PDO
Well, I need to do an insert and I use PHP OO, but how do I do this? According to my code is registering, but is not working perfect. I’m doing something wrong ? Do not give any error message, just…
-
4
votes2
answers6065
viewsCounting lines reached PDO
I’m doing a query and need to count the number of returned lines, I’m not usually used to doing this in PDO, follow my code below. $sqlCODCEL = $conn->prepare("SELECT * FROM tbl_CELULAS WHERE…
-
4
votes1
answer1254
viewsIDE/Text editors for Node.js
What are the best options of IDE or Text Editors for development in Nodejs? My need is to develop large projects with Javascript / Node.js, follows below some of the options I found. If possible…
-
4
votes1
answer854
viewsHow to download from Delphi via FTP servers with authentication?
I have some files on an FTP server at Hostinger, and these files were left there as links from FTP servers never change. As they are very important to make updates in my application, Delphi should…
-
4
votes2
answers7055
viewsWhat is the purpose of the sizeof command?
What is the purpose of the command sizeof in c language? I know I can use it to allocate memory and create vectors dynamically as follows vetInt = malloc(sizeof(int) * tamanho);. Other than that…
-
4
votes1
answer5794
viewsUsing mysqli to count records
I need to do a log count. I wore: mysql_num_rows($consulta); How do I do the same thing using mysqli? Because I’m doing it this way: $tabela_usuarios = "SELECT * FROM owner WHERE…
-
4
votes2
answers335
viewsLibrary that reads text and turns into audio
I am looking for some way to implement in my system an automatic reading with audio. It would work like this: The user would ask a question (typing) and the little robot would bring the result and…