Most voted questions
150,413 questions
Sort by count of
-
4
votes2
answers1422
viewsUpdate the information on the page when making a change in the BD
Let’s say I have button value="+1" on my page, and every time I click on that button is updated in the database, the page refreshes and displayed a message of success or error. This update process…
-
4
votes1
answer1552
viewsCreate database via existing command line and overwrite
I have a Function (Delphi) that creates processes and executes BAT files that make, for example, backup a Mysql BD, like this: "C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqldump.exe" -u root…
-
4
votes2
answers3369
viewsHow to do Multiple Linear Regression?
-- Rephrased question -- I have the following code mdl = LinearModel.fit(X_train,y_train); pred = predict(mdl,X_test); in which X_train is a matrix [m x n] with m examples and n Features (past time…
-
4
votes2
answers106
viewsHow to not automatically sort IN(Mysql)
Run this SQL command: SELECT * FROM produtos WHERE id IN (144,140,134,133,128,129,141,143,149,150,147,146,126,142,125,99,100,92,91,90,108,109,123,124,122,121,110,89) ORDER BY none But the…
-
4
votes1
answer177
viewsHow to disable default value in Kendo dropdownlist?
I have a Kendo grid and I’m creating a template for editing the data presented on the grid, but I’m having problems with the code below... This is part of the code of my template: <script…
-
4
votes2
answers258
viewsGlobal Exception Handling with Web API 2
I’m willing to use the Global Error Handling with Webapi 2. I created a new project, within it I created the following class: Errologteste.Cs using System; using System.Collections.Generic; using…
-
4
votes1
answer870
viewsWhat is Array.Getlength for?
To know the size of a vector, I can only use the nomedovetor.Length, right? I saw an example in a structure for, where they wore GetLength(0) or GetLength(1) to capture the dimensions of a array row…
-
4
votes3
answers18584
viewsHow to use gets() in C++?
How to use gets() in the C++, when asked to type it and store it in a type variable char?
-
4
votes2
answers729
viewsPOO tables in Lua!
I wonder why it is not returning a table in the code I made: TP = {} function TP:new(pos, newpos, effect) return setmetatable({pos = pos, newpos = newpos, effect = effect}, { __index = self }) end…
-
4
votes1
answer2448
viewsChanging Routes with Asp.Net MVC
I’m trying to change a route in my project, the control is like this: public class TagController : Controller { // GET: Tag private MYEntities db = new MYEntities (); [Route("tags")]…
-
4
votes1
answer1376
viewsDividing integers in MS Excel (exact division)
I have a problem in Excel that I thought would be easy to solve, but to breaking my head is the following: I have an order grid, for example, 2,010 pairs, and the production control and the…
excelasked 9 years, 5 months ago Denis L. Murara 645 -
4
votes2
answers10294
viewsEnable/Disable button according to field validation
I am performing date validation for two fields <input type="text"> with the jQueryFormValidator: $.validate({ modules : 'date' }); <script…
-
4
votes1
answer368
viewsAlternative to http_response_code in versions below php5.4
It is possible to get HTTP status in versions prior to PHP 5.4 (http_status_code only supported in PHP5.4+)? I am creating a system of customized error pages, it will not be a system for a specific…
-
4
votes3
answers673
viewsFunctions with Textbox and Buttons type parameters
I have a program that at some point works with the visibility of an object. I’m creating a function and I don’t know how to reference objects. private void Visible(object x, object y, object z,…
c#asked 9 years, 5 months ago Yuri Ancelmo 353 -
4
votes2
answers191
viewsServe libraries with CDN or Own Server?
Aiming performance is more performative to use a CDN (providing the library’s full and primary version) or distributing versions of Custom Libraries (e.g.: jQuery UI that provides only the effect…
-
4
votes1
answer119
viewsHow do MVC application authentication with Linux?
I have a project in ASP.Net MVC and I’m putting the authentication manually. Everything is going well, but I used as a reference a ready-made project that uses the Entityframework, but I want to use…
-
4
votes1
answer15857
viewsCreate primary key in a table that already exists in sqlserver
I imported a file txt with six million lines for a Sqlserver table. Now I want to create a primary key in it, the problem is that no column guarantees integrity, so I want to create another column…
sql-serverasked 9 years, 5 months ago Ricardo 5,680 -
4
votes1
answer686
viewsTurn Stream into PDF to send with attachment in email
I am making a page to send email, and I need to turn a specific page into pdf to be attached to the email. The page I already managed to turn into Stream, now how can I do to turn it into pdf and…
-
4
votes1
answer996
viewsPHP hashtag system
I’m developing a hashtag system in PHP, and my question is this:: There’s how I make one SELECT publications based on the content? For example, the content saved in the database is: Hi, are you all…
-
4
votes2
answers2901
viewsCan iOS apps made in Phonegap be compiled in Windows?
Phonegap Builder serves to compile the apps for you, but in iOS gives error when compiling. What do I need to build on iOS using Phonegap Builder? What kind of key does it take to build it? I found…
-
4
votes2
answers962
viewsWhat is the difference between Encoding, Encryption and Hashing?
I’d like to understand the difference between Encoding, Encryption and Hashing and also examples of when using one or the other.
-
4
votes1
answer1135
viewsDelphi XE8 and Firemonkey: Integration between webbrowser javascript and the system
I’m using the component TWebBrowser Delphi to create a system that interacts with the site. So far so good! I can run the site Avascripts correctly, the problem is when I need to take an answer from…
-
4
votes2
answers2072
viewsHow to do that when submitting a form within an iframe, the page that has iframe is redirected?
I’m creating a page that works like this: The person accesses a registration page, and within that page there is a iframe with the registration form. When a person clicks inside the iframe in…
-
4
votes1
answer262
viewsTimeline effect
I wonder if there is a plugin for the same effect as that site here: http://www.popupdesign.com.br/servicos/ In the part of how it works, it has a kind of vertical ruler.…
-
4
votes1
answer396
viewsHow to prevent Adsense links from opening in new tab
Is there any method to prevent my site from opening links in a new tab and making them open in it? And the other way around? Thank you. Edit: I use Google Adsense. Some ads open in the same tab,…
-
4
votes1
answer1239
viewsIs there a Java function equivalent to var_dump()?
Does anyone know if there is a Java function equivalent to var_dump()?
-
4
votes3
answers1334
viewsSQL query in PHP and date format
I have a PHP function that interacts with my SQL Server. It looks like this: public function buscaRelatorioHospedagem($nome,$de,$ate){ // TODO Essa função pode ser aproveitada pra aba nova $de--;…
-
4
votes2
answers2564
viewsSearch for file in directory
I have a directory on the network with thousands of TXT files generated by another software hired in the company. The file is named with the following logic: (cpf do cliente)(data da insercao)(hora…
-
4
votes2
answers330
viewsShould I wear rebase?
I’m working on a redesign of our web application, in a separate branch, say new_interface. Meanwhile, other developers remain in the branch master, mainly solving bugs. While some files may differ…
-
4
votes1
answer288
viewsC# to Javascript Converter: ((object)Sender). attribute
I’m developing a C# to Javascript converter and I’m in a jam when the code has a line of code like this: ((CONTROLE)sender).Atributo Exemplo:((ImageButton)sender).ImageUrl What is the corresponding…
-
4
votes1
answer3345
viewsHow to write the percentage symbol on a string in Java?
How to make the string accept the percentage symbol '%' ?
-
4
votes3
answers78
viewsStep in a for cycle
I want to put inside a array, values between -20 and 30, the part of a size that is 10. My problem is that I can put the values, but the size of the array is 11 values. max=30; min=-20; step=10;…
javascriptasked 9 years, 5 months ago akm 3,387 -
4
votes1
answer192
viewsProblem creating SLUG in codeIgniter
Look, I’m developing the portal for my record label, and I’m having a really boring problem. I am logging the news, names of Albums, names of artists and so on. When I register in the BD I play in a…
-
4
votes1
answer526
viewsSearch in a form and bring the return to the form you called
in my college project I am doing the product registration ta all right my problem is to load the supplier in the product registration. I created a form frmCartiroProduct and a form…
c#asked 9 years, 5 months ago Denilson Carlos 201 -
4
votes2
answers2774
viewsMysql - make each row increment 1
I want to make an appointment sql and I want each row to have a column indicating the number of the ex row: linha nome 1 joao 2 maria 3 tiago . . . . . . n joares But this "row" column I don’t have…
-
4
votes1
answer800
viewsHow to apply chmod 777 with php in main folder and several subfolders at the same time
I wonder how I can apply with a single code in php chmod 777 in a folder and subfolders at once in case I have a folder called images and inside it has 4 subfolders need to perform chmod 777 in them…
-
4
votes1
answer98
viewsMVC 5 template or other: initial user form, information, database
Templates that come in VS2013 or any other version, when starting a project, it mounts a menu with: Home, About, Contact, Register and Login. Question: How does it store information from the default…
-
4
votes1
answer127
viewsHelp with logic
I have a method that reads several tags from a file . xml and returns a list filled by the data read. Problem: Each xml file has several batches and within the batch has several tabs, for example, I…
-
4
votes1
answer4562
viewsHow to exit a method before ending in c#
What should I do to stop the execution of a method before it ends, get out and continue the execution? public void MEUMETODO() { ... PARA E SAIR AQUI(); ... }…
-
4
votes1
answer351
viewsDifference between Cope declaration
Is there any difference in that Cope statement mentioned in the angular documentation: myApp.controller('DoubleController', ['$scope', function($scope) { $scope.double = function(value) { return…
-
4
votes2
answers320
viewsSQL Server - Doubt update and relation between tables
I have two tables, one call coletor, and another call material, have a proc calling for cadMat, that was to register material in the bank and by Cpf (parameter of proc) put as the name of the…
-
4
votes1
answer454
viewsReturn Partialview with validations for a Modal ASP MVC 4
I have an Index screen, where is the table of registered people, on the same screen I have a new button that calls a Modal(boostrap) this way: <a href="@Url.Action("Add", "Pessoa", new { area =…
-
4
votes2
answers1591
viewsWhat happens when I convert String to an array of bytes?
I have: String msg = "Texto a ser encriptado"; byte array[] = msg.getBytes(); What happens when I convert the string to an array of bytes? I’m concerned about an application I’m developing. I need…
-
4
votes4
answers1394
viewsHow to concatenate two byte arrays in Java?
I have: byte mensagem[]; byte nonce[]; How do I concatenate the array nonce at the end of the array mensagem and store in a third array?…
-
4
votes2
answers2923
viewsComparing contents of a Column
I’m a beginner in R and needed help comparing column content. First I sorted my table according to a specific column. For this I used the following function: x = fread ("x.txt",sep=";") x_ordenado =…
-
4
votes1
answer93
viewsOnselectionchanged MVC
Late, How can I call the Onselecionchanged event from a DDL using MVC? I have the following DDL: @Html.DropDownListFor(model => model.Type, ViewBag.Type as SelectList, "-- Select --", new { id =…
-
4
votes1
answer329
viewsHTML printing - PHP
Next... I have an HTML structure formed by TABS, the style of these link: http://www.codecovers.eu/materialadmin/ui/tabs#second1 But when printing with Ctrl+p just call the TAB that is Active. How…
-
4
votes1
answer738
viewsPass List to a sub report and call it in main report
Guys I have a method that generates a pdf report in a certain directory, now arose the need to use a sub report, but I’m having difficulty understanding how to pass a List as the data source for…
-
4
votes1
answer8087
viewsHow to make an image rotate
need to make an image rotate infinitely with only HTML and CSS it is possible if yes how it can be done.
-
4
votes1
answer1334
viewsHow to read all bytes of a file
I have a question in Readbytes(int) My code is like this: BinaryReader r = new BinaryReader (File.OpenRead(ARQUIVO)); byte[] arraybyte = r.ReadBytes(100000); That one 100000 which I put is because I…