Most voted questions
150,413 questions
Sort by count of
-
5
votes1
answer248
viewsI can’t make the character of Nightmare disappear after he’s dead
I’m following all the steps of a tutorial on the creation of the game Nightmare, videos made by the channel "Playing with Nils", but after following all the steps, when I run the game and then I…
-
5
votes3
answers11888
viewsPHP code opens in browser
I am unable to install PHP on my machine. When I run a page in the browser, it returns the code written in . php. I installed Apache 2.2.9 and PHP 5.2.1, and made all the changes based on this…
-
5
votes2
answers669
viewsHow to handle div size without using Hover
Edited -- Despite having asked exclusively in css, I saw that in fact the final result in JS is much more professional and lean. Being so I confirmed the reply of @Renan as the one that actually…
-
5
votes2
answers675
viewsAdd PHP to ASP.NET
I am creating a website in ASP.NET and the company wants me to maintain the client area of the old site that was made in PHP. The client area consists of a login, in which after being authenticated,…
-
5
votes1
answer830
viewsKEK (Key Encryption Key) what it is and how to use it correctly
I was reading "Cryptography and Security: The official RSA guide" but I was limited to a few pages (if anyone has the PDF please share!!) and then I came across KEK and could not read more.. What it…
-
5
votes3
answers2046
viewsPost a comment and then display without refresh
Updated 5 Good morning guys, I’m trying to create a comment system like http://demo.hazzardweb.net/comments/ below we have the javascript code that sends the form and then adds the comment, it is…
-
5
votes1
answer206
viewsImage rotation does not work properly in Chrome
I’m trying to use a function in jQuery, and it works well in Firefox but in Chrome it just doesn’t start, gets stuck in the first image and doesn’t go to the others. Could someone give me a light of…
-
5
votes1
answer233
viewsSet class for a table
I’m starting now with Flask and I came across the following question: how do I define a table class using the flask_table? Follow my example code and the result: from flask_table import Table, Col…
-
5
votes3
answers396
viewsDoubt: dynamic list chained inside another, in C
I’m having a huge difficulty to be able to create a dynamically chained list within another using data structure and manipulation, because I haven’t found anything that exemplifies how to create a…
-
5
votes3
answers2021
viewsHow to connect Mariadb with python3?
Friends, is there any way to connect Python 3 with Mariadb? Also, could indicate some material in English or Portuguese? Thank you in advance!
-
5
votes1
answer392
viewsWhat’s the difference between $var and $var?
What is the difference between a $var variable and $$var in PHP? How can it be used? You can cite some examples of use?
phpasked 9 years, 6 months ago Paulo Costa 3,976 -
5
votes1
answer171
viewsHow to automate testing?
It is common each time deploy a bug occurs to go along, often noticed only months after that change. To solve this, I want to know if it’s possible to test ALL main functionalities in an automated…
-
5
votes1
answer2673
viewsHow to show multiple bookmarks in Google Map API v3?
I cannot mark several points on the map. They could check if there is something wrong with the code? var map; var idInfoBoxAberto; var infoBox = []; var marker ; var geocoder; function initialize()…
-
5
votes2
answers33357
viewsHow to get the current date in Mysql?
I intend to create an event so that every hour will see if the expiration date of the announcement is higher than the current date, in this case it will have to change a theme of this announcement…
mysqlasked 9 years, 6 months ago Pedro Piloto 441 -
5
votes2
answers169
viewsExpand Object to Bson
How can I build a parse expander Object for Bson? (Vs 2013 - C# - Mongodb)
-
5
votes0
answers714
viewsProblem loading database image with JSF
I’m having a problem loading images from the database with JSF and CDI, below is the code for a better understanding of the problem. <ui:define name="titulo">Detalhes Anuncio</ui:define>…
-
5
votes1
answer6034
viewsExplode in PHP returns Undefined offset: 1
function extrai($string) { $peca1 = explode('id="', $string); $peca2 = explode('">', $peca1[1]); return $peca2[0]; } To string that’s the one: < ul class="artigo" id="artigo1"> < li>…
phpasked 9 years, 6 months ago Alê Moraes 883 -
5
votes2
answers346
viewsAdd class Dynamically
I own a Carousel where the buttons prev and next are generated by the plugin. The problem is even trying to add a class with the traditional method $(".owl-prev").addClass("theme-color"); the same…
-
5
votes1
answer137
viewsHow to use build options in Ideone?
Yesterday in answering this question wanted to test it on Ideone, while running the code I received this error: Prog. c: In Function 'main': Prog. c:12:9: error: 'for' loop initial declarations are…
-
5
votes1
answer818
viewsWhatsapp Web uses Node.js?
I would like to know what technologies used in the development of Whatsapp Web. Ps: Question at search level.
-
5
votes4
answers1852
viewsProgrammatically generate and download links
There is a database of the National Water Agency that can be accessed by Hydroweb. To download is just access: Hydrological Data > Historical Series and include the desired rain station code.…
-
5
votes1
answer31551
viewsPass matrix as function parameter?
I’m studying Dijkstra’s algorithm and I haven’t tried using adjacency lists yet. I knew I could solve the problem with a matrix, but the fact is that I can not receive the matrix in the function. If…
-
5
votes5
answers1659
viewsDefault parameters
I’m having a problem with the parameters in a PHP function. For example: function exemplo($par1 = 1, $par2 = 2) { return $par1 . " - " . $par2; } exemplo(); // 1 - 2 exemplo(3); // 3 - 2 exemplo(3,…
-
5
votes1
answer393
viewsJPA - Registry error not found right after insertion
A question about JPA procedures, because of a mistake that happened and I’m not getting it. I’m taking care of a part of the system that feeds a card order table. It searches if the user that the…
-
5
votes1
answer4173
viewsDifference between $(window) and $(Document)
Is there any difference between using the $(window) e $(document)? Because from what I found they do the same thing.... And that initialization: $(window).on('ready load resize', function(){ It…
-
5
votes3
answers15590
viewsHow to call a JS variable for an H1 HTML
I got this little FIDDLE to exemplify my problem. HTML <ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> <li>5</li> </ul>…
-
5
votes2
answers400
viewsCompatibility, legality and possible problems with the open source license change
I made Fork of a free code software currently available under the LPG V2. Such a license has some obstacles, so I’m looking for ways to update the fruit of Fork to be more "fair". The fruit product…
licenseasked 9 years, 6 months ago Bruno César 5,450 -
5
votes1
answer255
viewsgoogle API - gcalcli - error running in a script
Carrying on my problem reported here now I can send events from shell-script directly to google calendar, I made a script to run as scheduled, follow file sms.sh down below #!/bin/bash let…
-
5
votes2
answers1016
viewsHow to create Production Application Error Report (Client)
I am looking for a way (efficient and practical) to capture globally all Exceptions not dealt with by the application (the ones that lead the application to crash or "Application stopped working!").…
-
5
votes3
answers10234
viewsborder-Radius in table does not work CSS
I’m trying to put a Radius border on my table so that the four tips of it are rounded. If I touch the tr/th/td border-Radius it will change the radius of the ballots and not only those of the table,…
-
5
votes2
answers2792
viewsPractice deploying, how to do?
Today many languages have practices of deploy that automates the whole process, concept as IC (Continuous Integration). At each commit in the repository is deploy (I believe that Jenkins or…
phpasked 9 years, 6 months ago Leandro Macedo 1,143 -
5
votes2
answers7097
viewsHow to create a trigger in Mysql?
I have the tables usuarios, usuario_voto, and classificacao_usuario. Usuarios: system users table. usuario_voto: table that stores a user’s vote on another. classificacao_usuario: table that stores…
-
5
votes3
answers586
viewsFind files containing string and rename
To locate files whose name contains a particular string, we can resort to find as follows: File example: 1429331804.H568641P9577.xxxx.example.com,S=17846:2, Command to locate by xxxx.example.com:…
-
5
votes1
answer1244
viewsUsing multiple databases
I don’t know much about databases, and I’ve never worked with large systems... I’m creating an application with Cakephp that will serve as a webservice for two distinct client types, one client is…
-
5
votes1
answer281
viewsIs it possible to use the "break" argument on a "switch" to interrupt a loop?
When I want to interrupt a loop of one for, while or foreach always use the break; within a if with the following structure: $teste = array(1,2,3,4,5); foreach($teste as $t){ if($t == 3){ echo…
-
5
votes1
answer4346
viewsHow to sort alphabetically and numerically the same list?
In my college work I must make a list of the kind of class I created and I must sort it in two different ways, one by alphabetical order and the other by average score. Also other information is…
-
5
votes1
answer880
viewsData manipulation with in-line dates for column
I have a database a little difficult to work with: The code variable is 141 different. What I wanted to do was create a data.frame that had code as a variable (header) and so had a sequence of days…
-
5
votes1
answer172
viewsRename a file with a vector value
I am using a loop to extract hundreds of data using unzip. However, I want to rename the files with the same name as the extracted file. I’m making the following code: zip_postos <-…
-
5
votes2
answers2880
viewsHow can I print only the fractional part of the number
Good evening, I would like to know how I can print the fractional part of the real number, that is, when I type 5.678, I would like to print in the second A(where this comment), only the number…
casked 9 years, 6 months ago Gabriel Vinicius 339 -
5
votes1
answer761
viewsUse PDO Prepared statements in function
I’ve been reading about prevention sql injections and saw to use Prepared statements can help with that. I have the following function in a crud class I developed: public function inserir($tabela,…
-
5
votes1
answer343
viewsHow to get a resource that is in the same class package that will use it?
I created a Java project with the following structure: src |-br.foo.settings | |- settings.json | |- Settings.java | |- ... outros pacotes ... As I am used to the JSON file format, I thought of…
javaasked 9 years, 6 months ago Renan Gomes 19,011 -
5
votes1
answer184
viewsColoring part of an SVG circle
I’m creating a circle in SVG. With a cycle for, I want to create several lines to color a certain part of the circle, without exceeding the same (for example half of the circle.) The point x1 and y1…
-
5
votes3
answers4053
viewsHow to add list values in tuples?
I have for example a list with tuples, and inside these tuples I have 2 lists, where only the second list of each tuple varies: x= [(y, [1, 2]), (y, [3,4]), (y, [5, 6])] How do I add the first…
-
5
votes2
answers3128
viewsAngularjs - accents
I’m using AngularJS and Wamp Server. In the program I am doing I have an array: ($rootScope.fruits = ["banana","maça","laranja",'época'];) That you’re giving the seats a problem. So I put in the…
-
5
votes1
answer26463
viewsUsing Javascript to change CSS property
I’m not getting it to work, I have a retractable side menu and a button in a bar in the header. I’ve set my menu to margin-left: -250px; and wanted that when I pressed the button it set to…
-
5
votes1
answer52
viewsIs it possible to implement null or Undefined methods?
If I wanted to implement a variable check whenever I would use the method .indexOf() javascript this would be possible? For example using a.indexOf(b); it is possible to detect when the a is null or…
javascriptasked 9 years, 6 months ago Joao Paulo 11,760 -
5
votes2
answers1325
viewsBrowse query records with PHP PDO
I’ve always worked with ASP connections using ADODB and navigating the regressions that the query returned to me was not a problem because there were: <% rs.movenext //anda para proxima linha do…
-
5
votes1
answer437
viewsUrllib2, exception handling
I’m a beginner in the art of programming. I’m learning to code in Python through a book, Learning to Program: The art of teaching the computer (Cesar Brod - Novatec Editora) In one of the exercises,…
-
5
votes1
answer435
viewsAccess through Javascript/Jquery an element that came through AJAX after DOM LOAD
I am developing a WEB APP with Angularjs, there is an element that is coming to the DOM after its loading (load), I am trying to write an event : $('elemento').click() But when finished rendering…
-
5
votes1
answer661
viewsHow to use Bootstrap responsive system
I would like to know how I use only the responsive design part of Bootstrap and if possible give me some tips on how to apply in HTML code.