Most voted questions
150,413 questions
Sort by count of
-
4
votes2
answers758
viewsCheck for installed components
In my project I have a built-in browser so that the user can access a particular site he needs. The browser works, only it has as requirements the C++ 2012 library and Flash. Is there any way to…
-
4
votes1
answer278
viewsView json value in a div
How to make a value that is in JS appear in html content? app js. // BUSCA OCORRENCIAS $("#menuOcorrencia").click(function() { var operacao = "selectOcorrencias";…
-
4
votes1
answer969
viewsIs it safe to use Timthumb?
I’m making a website and I started making use of the library Timthumb.php to resize the images in the exact size I want. However came to me two questions Is it safe to use? hear that past versions…
-
4
votes1
answer113
viewsHow should the perfect backup of wordpress blog be done?
I’ve been looking on the Internet for a while how to backup the theme I am developing in wordpress and database. I use the xampp and the banco de dados in the phpMyAdmin. I found several tutorials,…
-
4
votes3
answers768
viewsError installing PHP - "The program can’t start because MSVCR110.dll is Missing"
I want to learn PHP, but I can’t even install it. I’m using this tutorial, but when I give the command php --version prompt, error message appears: The program can’t start because MSVCR110.dll is…
phpasked 8 years, 10 months ago Caio Cesar Nascimento Moreira 91 -
4
votes1
answer3335
viewsHow to change the title of wordpress blog directly in php?
I’m in the final stages of developing my blog on wordpress and a few months ago, when I started developing I put a título, but after many researches I decided to change it, because I found another…
-
4
votes2
answers1986
viewsJAVA - Draw Polygons (triangles, pentagons)
I was wondering if anyone could help me, I’m doing a project where I have to draw various figures, between them triangles and pentagons, I’ve already got the rectangles working, rectangles: import…
-
4
votes2
answers989
viewsHow to install Sqlite to be part of a C#project?
I am creating a desktop application in C# of registration that will use database. Which database to use? I was advised to use the Sqlite, but I’m not quite sure how to use it. Which version of…
-
4
votes1
answer9332
viewsHow to Do Ascending and Descending Listing in PHP Records
My table is as follows Through PHP, I am listing the MYSQL database records within a WHILE LOOP. I would like to know how to do so that when clicking on ID, or DATA, the data is displayed in an…
-
4
votes0
answers248
viewsHow to find the cause of discarded and error packets
My net’s a little slow today. Taking a look at the interfaces I saw that the eth1 which is the internal network there is a lot of error and scartes. ifconfig eth1 eth1 Link encap:Ethernet Endereço…
-
4
votes1
answer1860
viewsKnow which button was clicked
Friends, I have 4 buttons like <input tupe="button">, each has a different class because they are formatted in different ways. Both buttons have the same action, with different values only. I…
-
4
votes2
answers1031
viewsWhat’s the difference between bindValue and an array executed directly in $Pdo->execute()
Currently I use a schedule like this <?php $array = array('nome'=>'Alisson', 'idade'=>20); $query = $conn->prepare("INSERT INTO table (nome,idade) VALUES (:nome, :idade)");…
-
4
votes2
answers417
viewsUse of the GREP Function
Hello, I have a . csv file with the zip code in the middle of the address, in square brackets. In some cases there is no zip code, but there is always the set[], possibly empty, for example: RUA…
-
4
votes5
answers1294
viewschange the title of a Window confirm()
I wonder if somehow I could change the title of a window confirm(), because I’m developing an app using phonegap and when called this window it presents me the title with the name of my html file, I…
-
4
votes3
answers273
viewsIncorrectly applied width media queries on mobile devices
I’m trying to use media queries on a website thinking about mobile devices, but I’m facing a problem: although the rules specify what to do when the width is small - and the same apply correctly…
-
4
votes2
answers1244
viewsUpload image Php Bootstrap File Input (Undefined offset)
I’m using the Plugin Bootstrap File Input And it’s returning to me 'Notice: Undefined offset:' Codes <input id="file-upload" name="files[]" type="file" multiple> Form already has the…
-
4
votes1
answer668
viewsCalculation of hotel nights in MVC application
I recently started programming in MVC and I am full of doubts. I’m developing a hotel reservation system and after spending 3 days trying to calculate the total cost of a reservation unsuccessfully,…
-
4
votes2
answers758
viewsPHP Mysql avoid database registration in uppercase letters
Good morning, I have a database, where users insert various news. I’ve talked to all of them, not to put capital letters in the inclusion, because it makes the project aesthetically ugly. Is there a…
-
4
votes1
answer247
viewsClass aggregation and attribute ratio
Aggregation only occurs when a class A, which aggregates a class B, has an attribute of the type B? There can be aggregation without necessarily having an attribute of the type of the other? For…
-
4
votes1
answer984
viewsWhat is Mersenne Twister?
PHP has a function called rand. There is also a function called mt_rand. I was studying about these functions and realized that, in previous versions, it was necessary to use such a "random number…
random-numbersasked 8 years, 10 months ago Wallace Maxters 102,340 -
4
votes1
answer7125
viewshow to use mysqli_fetch_array
would like to know how I use this command mysql in my code because I’m trying and nothing I can’t make it work. code: $sql = mysqli_query($mysqli, "SELECT * FROM produtos LIMIT $inicio,…
-
4
votes3
answers252
viewsUse of preg_replace invalidates password with SHA1
Was using preg_replace, to avoid SQL Injection: $senha = preg_replace('/[^[:alpha:]_]/', '',$_POST['senha']); When comparing the $senha received by POST with the bank password (using SHA1) they are…
-
4
votes2
answers237
viewsError entering data into database
I’m following the lessons of php, and in the video the guy uses the command mysql, but I know he’s old and insecure and I used the mysqli, however the code does not present error, but does not save…
-
4
votes2
answers634
viewsHow to paint cell according to the value of a select?
I am in need of a help to format a <td> according to the outcome of select PHP. I thought about using jQuery but I don’t know much about it. <tr class=""> <td class=""><?php…
-
4
votes2
answers438
viewsList years in Jcombobox dynamically from certain rule
I have an application that lists records in a JTable, and each record has a registration date using Date. On this list, I put one filter per year via JCombobox, where the initial year is what the…
-
4
votes1
answer329
viewsHow to install the Tidhttp component in Lazarus?
I noticed that the Lazarus does not come by default with the component TIdHTTP, unlike Delphi, but I imagine it’s possible to urge the component somehow. How to install?…
-
4
votes1
answer1360
viewsMVC representation in UML class diagram
I’m building the class diagram of my project and I got a question at a certain point. In the project I create an instance of my Controller class in main and pass the reference (I know that in Java…
-
4
votes1
answer99
viewsDoubts with Arrays in C#
Good night, you guys. I am a beginner in programming and have two questions: When a double array is maintained in C#, each position of the array starts-without as null or zero? Is there a method…
-
4
votes1
answer3720
viewsClear screen prompt Mysql
Does anyone know how to clean the prompt screen MySQL? After a certain time the screen gets full and I want to clean up. I do this at Windows prompt, but Mysql could not. I’ve tried to: \! cls, CLS,…
-
4
votes1
answer1003
viewsError: [Errno 2] No such file or directory
Good afternoon, I’m trying to emulate an IBM 3270 using the py3270 lib, but I’m making a mistake by staging the Emulator class of this lib. Anyone have any idea what it might be? from py3270 import…
pythonasked 8 years, 10 months ago Rafael Galleani 41 -
4
votes1
answer2059
viewsWhat is the best way to capture keyboard shortcuts?
Currently I use the keypress approach to capture the Alt pressed and the key that the user wants, however using the Pressed alt can cause compatibility problems in some browsers. For example,…
-
4
votes1
answer200
viewsProblem with dynamic PDO UPDATE
I’m creating a CRUD dynamic in Pdo, where I receive several parameters within an array, and within that array there may be several other arrays. The problem is appears when I am mounting SQL. I…
-
4
votes4
answers4957
viewsCall static class method by static variable
In the PHP documentation, found that code in relation to the target resolution operator :: <?php class OutraClasse extends MinhaClasse { public static $meu_estatico = 'variável estática'; public…
-
4
votes1
answer620
viewsMount a local package manager (Nuget)
Due to a huge problem that happens here in the company, such as package dependencies, so the company decided to create a NuGet private, which runs locally. The purpose of this is when anyone…
-
4
votes2
answers960
viewsWhat is the purpose of the 'Let' statement in a LINQ query?
I have the following LINQ query: var source = from em in query select new { Id = em.UniqueID, Data = em.Data == DateTime.MinValue ? "" : em.Data.Value.ToString("dd/MM/yy HH:mm") }; The estate Data…
-
4
votes1
answer80
viewsShowmessage presents the message 2 times
I have the following code below: for i := 1 to form1.variavel do with form1 do if TEdit(FindComponent('edt_variavel'+IntToStr(i))).Text = '' then begin showmessage ('Preencha os campos em branco')…
delphiasked 8 years, 10 months ago Guilherme Lima 3,129 -
4
votes1
answer3687
viewsHow to align text in the center of a card?
I’m looking for a way to align the text of the card component in Ionic. How to do this ? <div class="card"> <div class="item item-image"> <img ng-src={{imagem}} id="smallimage">…
ionicasked 8 years, 10 months ago FernandoPaiva 1,562 -
4
votes1
answer122
viewsTurning a datatable into an array with jquery
I have as output a string with the following format. [["link"],["<iframe id='player' type='text/html' width='452' height='272'…
-
4
votes0
answers56
viewsError 404 with Silex
Talk guys, I’m developing a system for Web, I don’t really know how to handle web programming, but come on: So all my controllers, index, htaccess, td right, so much so that the project is working…
-
4
votes2
answers1276
viewsHow to lock an executable file and prevent it from opening on Windows?
I would like to create a particular program where I can block programs from running on Windows, I know that Windows itself provides something basic about this, but I wanted to create my program,…
-
4
votes1
answer279
viewsHow to open Jinternalframe window after login?
I am new in java for desktop and am making a program with swing, and would like to know how to make a JInternalFrame open after login is done, follow the code for analysis.…
-
4
votes3
answers16117
viewsHow to transform a string composed of numbers into an integer list?
I have a list with a string: a = ["1, 2, 3, 4"] I want to take each number inside that list, turn them into integers, and return the highest and lowest value of that list. I’ve tried this with the…
-
4
votes1
answer753
viewsHow to Classify a Triangle
I want to classify a triangle as to the sides, being that a triangle with all equal sides is designated Equilateral, with all different sides being designated Escaleno and if it has only two equal…
-
4
votes2
answers369
viewsHow to add everything in MYSQL
How do I sum everything from a table in Mysql for example.. I have the table tb_comment, then I want to add in each post(id_mark) the amount of rate it will have in total. For example the id_user 20…
-
4
votes1
answer2062
viewsExponentiation operator in C++
About a question recently asked and answered: there is some reason - historical or not - why C++ (as well as many other programming languages) does not include an operator for exponentiation? For…
-
4
votes0
answers571
viewsHow to call a function in Cakephp 3.x
I have a view add which is an open form called help desk (referring to function add, of course), and I have this function upload which is to attach file to request, which is linked with a Component,…
-
4
votes2
answers55
viewsGet information stored in an "attribute"
In the ORM I use, classes are mapped using Attributes. I need to recover the value stored in them. Ex.: [Table("CADASTRO_CLIENTE")] public class Cliente { [Property("Id")] public int Id { get; set;…
-
4
votes3
answers4648
viewsAndroid Delphi-10 build error on Windows 10
I’m having a problem to compile for android on Delphi-10, follow the error [Exec Error] The command "PATH C: Program Files Java jdk1.7.0_79 bin;C: Users Public Documents Embarcadero Studio.0 Bpl;C:…
-
4
votes1
answer2492
viewsRecursive functions in C++: examples
I am starting to learn C++ and I am currently focusing on recursive functions. I’ve seen some interesting examples, like the factorial calculation of a number, but I’d like to see other examples. I…
-
4
votes1
answer140
viewsWill users from other platforms see my website fonts?
The question is simple: I have a website, its default font is Segoe UI normal, and the Segoe UI Light, the site uses only these two. In Windows, the site appeared correctly and without problems, now…