Most voted questions
150,413 questions
Sort by count of
-
4
votes3
answers8495
viewsSimulate click when opening the page
There is way, when someone enters a website, a Javascript event "simulate" a click? In other words, Javascript click on the site automatically as soon as the person enters. In case I have an…
javascriptasked 9 years, 1 month ago Gonçalo 2,525 -
4
votes2
answers83
viewsPersistence using Fluent API
How do I persist an address without having to pass on all customer information? Below is my address client mapping: HasMany(f => f.EnderecoList) .WithMany(e => e.ClienteList) .Map(me => {…
-
4
votes1
answer562
viewsEnable php error page
I’ve seen several attempts to enable error pages in apache/php but none worked here. have file .htaccess and in it I have the following lines: ErrorDocument 400 /index.php ErrorDocument 401 /401.php…
-
4
votes1
answer694
viewsDouble-hand encryption with fixed LENGTH
Does anyone know any way to encrypt any data, two-Handle, so I can decrypt it? I loved the MD5 and the way it fixes the length of the hash, the problem is that there is no way to decrypt…
-
4
votes1
answer6989
viewsDouble chained list in C
Edited code I’m having trouble removing function #include<stdio.h> #include<stdlib.h> #define MAX_NOME 50 typedef struct pessoa{ char nome[MAX_NOME]; int idade; }Pessoa; struct celula{…
casked 9 years, 1 month ago Matheus Francisco 650 -
4
votes3
answers1435
viewsHow to convert an Object into an Array? (c#)
I have the following class: public string Nome; public int Cpf; public string getNome() { return Nome; } public void setNome(string nome) { this.Nome = nome; } public int getCpf() { return Cpf; }…
c#asked 9 years, 1 month ago Hebert Lima 987 -
4
votes1
answer10312
viewsHow to copy to clipboard in Javascript?
Which code to copy to clipboard works best in all browsers?
-
4
votes1
answer939
viewsStar Rating - javascript
I’m creating a star rating system for an application of mine. After a little work I managed to get a code on the net and modified it for my purposes. In it, there is a 'full' class that fills the…
-
4
votes1
answer339
viewsWhen using each data type of mysqli_stmt_bind_param
According to the documentação: i - corresponding variable has type integer d - corresponding variable has type double s - corresponding variable has type string b - corresponding variable is a blob…
-
4
votes2
answers468
viewsCheckbook batch sum, total value and validation
Write a C program to validate a batch of checks. The program should initially request the sum of the batch and the number of checks. Next you should read the value of each check by calculating the…
-
4
votes0
answers425
viewsI cannot reproduce the government data of PNAD 2013 from microdata
The government announced last year the result of PNAD 2013, it appears that there 85.3% of the houses had piped water. I downloaded the microdata from PNAD and with R tried to reproduce the analysis…
-
4
votes1
answer2274
viewsChained list without head in c
I wonder how I create a function to remove at the top of the list headless. #include <stdio.h> #include <string.h> #include <stdlib.h> #define MAX_NOME 50 typedef struct pessoa{…
-
4
votes3
answers466
viewsHow to detect if an element is accompanied by text with jQuery?
I have a certain div.box that will be repeated several times, and some of them have a link (a.link) with a specific class. Example: <div class="box" data-id="1"> Primeiro texto </div>…
jqueryasked 9 years, 1 month ago Wallace Maxters 102,340 -
4
votes3
answers2889
viewsRunning my Angularjs application on some server
I have a front-end application consuming an Rails api, but I’m new to this idea of separating the front-end from the back-end, my api runs on localhost:3000, and my front is simply a folder that I…
-
4
votes1
answer270
viewsCardinality in class diagram
When I diagram classes or MER, the cardinality should be defined. As an example: A doctor consults from 0 to n patients; a patient is consulted by 0 or 1 doctor. Why the 0?
-
4
votes2
answers884
viewsWhat to write in an Exception Class (Exception)?
I was looking at that question at Stackoverflow en How can I write custom Exceptions? and the most well-voted (and accepted) response was: public class MyNewException extends RuntimeException {…
exceptionasked 9 years, 1 month ago KaduAmaral 11,472 -
4
votes1
answer348
viewsHow to clone values of an object
How can we make an object equal to the "values" of an object? Whereas my object has other objects, and lists of other objects.
javaasked 9 years, 1 month ago David Schrammel 2,310 -
4
votes3
answers7988
viewsHow to put an animated GIF in an APP on Android?
Well, I have been with this problem for some time, I tried to solve using answers from Stackoverflow gringo but I was not successful. I need to put an animated GIF image in my Activity but Imageview…
-
4
votes2
answers1004
viewsHow to put » and « in :before?
I need to put one » » and a « « in the attribute :before of a given, element. How do I do this in CSS? ul.breadcumb > li:after{ content: '»'; /** Isso aqui não funciona…
-
4
votes1
answer1835
viewsphp registration form NO database
I am learning php and need to create a form using only html, jquery, ajax and php without using database. The data must appear in a table below the form I was instructed to do using Session,…
-
4
votes3
answers847
viewsFactorial is not being calculated
Make a program to read an array A of type vector with 15 elements. Construct an array B of the same type, each element of matrix B being the factorial of the corresponding element of matrix A .…
-
4
votes1
answer386
viewsHow to Encrypt Images with Java RC5 Algorithm
I am trying to use the RC5 algorithm with the Cipher class of Java, but it is returning an error, someone can help me? import java.io.*; import java.security.*; import javax.crypto.*; public class…
-
4
votes2
answers475
viewsInclude extremes in BETWEEN and List missing values in SQL query
Next. Imagine I have in the bank in the paid months field the following releases: 2015-03, 2015-04, 2015-7, 2015-9. If we set a period for example: from 2015-02 to today (2015-9). Which months are…
-
4
votes1
answer71
viewsSelect brings different results
I’m having a problem at a SELECT: SELECT * FROM documento WHERE idAdministrador = '1' AND modulo = 'funcionario' OR modulo = 'atestado' I need you, if module is working or attested, to do the…
sqlasked 9 years, 1 month ago Sr. André Baill 6,946 -
4
votes1
answer726
viewsLabel auto fit with Swift text size?
I have a label inside a scrollView, and this label gets an N text, some are small and some are big so the idea was to put in scrollView, but the problem is that I can’t adjust the label to increase…
-
4
votes1
answer835
viewsInternationalize web app with jQuery i18n plugin
I’m trying to use this jQuery plugin to internationalize my web app. Specifically, I want to use the data API in the fields that should be translated but the alert returns "one" and not "one" and…
-
4
votes1
answer1311
viewsHow to create a simple interpreter?
I always wanted to create a language (something simple) for myself but I have no idea how. The question is: How to create a simple interpreter ?
-
4
votes1
answer235
viewsUpdating collections with Entity framework
It is possible to update the Collection of an entity with one-to-many through his navigation property? public class Foo { public virtual IList<Bar> Bars {get; set;} public int FooID { get;…
-
4
votes1
answer74733
viewsProblems with: Uncaught Referenceerror: $ is not defined
There is a doubt in this forum here, but it doesn’t solve my problem. I have includes, including include jquery in the first line because link found this: Because, JS interpreter search for $ before…
-
4
votes1
answer190
viewsGit repository replication on local machine and Github
There is a way to replicate a particular repository between Github and a local machine the team uses? In case of failure of Github servers the team uses the local server and as soon as Github…
-
4
votes1
answer193
viewsUpdate XLS spreadsheet without overwriting data using R
I need to add new information to the xls spreadsheet, but this already has information that was previously inserted. I need that data to be on the same sheet. There is the possibility to update a…
-
4
votes1
answer727
viewsFundamental principles REST
In this Article by Infoq, the author highlights the five fundamental principles of REST: Give all things an identifier Link things (resources/identifier) Use standardized methods Features with…
-
4
votes1
answer1985
viewsHow to insert a water mark in png
Following this example, I would like to be able to use a png in place of the tracks made on the canvas: https://github.com/baivong/Celebrate-Pride-Canvas I’m using this code as a study, because it’s…
-
4
votes1
answer1940
viewsMaven: Generate JAR with Dependencies / Directory recources
I’m very lay with Maven and the fact that there is a lot of material on the Internet I ended up getting lost as I perform the operation below: I need to generate the JAR Runnable of my project with…
-
4
votes1
answer135
viewserror in mysql_result()
I am again looking for help to understand an error given in a call to mysql_result(), which I cannot solve this error: Warning: mysql_result() expects Parameter 1 to be Resource, Object Given in C:…
-
4
votes1
answer156
viewsHow to get Timezone?
I have the following code: var minhaData = TimeZoneInfo.ConvertTimeBySystemTimeZoneId(DateTime.UtcNow, meuTimeZone); Case meuTimeZone = "E. South America Standard Time"; then the value returned to…
-
4
votes3
answers1050
viewsIncreasing the size of a Textview, according to the amount of data entered in it
I am developing an app, for technical course work, and I have the following situation: I’m displaying data inside a Textview. Only there comes a time when the size is not enough. Observe the images.…
-
4
votes2
answers1405
viewsSUM in SELECT with LEFT JOIN being multiplied
I have 3 tables in MYSQL. Bill: id nome 1 caio 2 zé 3 marcelo Followers (the account id, that is, the user has 2 followers): idqual 1 1 2 2 2 3 Products (the account id, that is, the user caio has 3…
-
4
votes2
answers87
viewsHow to install plugins in separate accounts?
Have: an FTP server with Cpanel running over WHMCS three Mysql databases linked to different users three Wordpress accounts associated with the above mentioned databases How to install a plugin…
wordpressasked 9 years, 1 month ago Tiago Morais Morgado 150 -
4
votes2
answers81
viewsObtain the Summary of the results from the use of the LOESS
I wonder how I can get the points that are generated by my curve. I’m having trouble getting the results of my last code statement. In addition, I got the upper and lower points of the curve, but I…
-
4
votes1
answer4227
viewsRemoving part of a string - C#
How can I remove my last characters from a string before reaching a certain character? For example: string url = "www.google.com/test"; I needed to remove the test word until I reached the "/"…
-
4
votes2
answers10606
viewsWays to instantiate an object and declare constructors
In C++ there are several ways to create a constructor and instantiate an object. But there are so many ways I’m confused by the difference of each. Assuming I have the following class: using…
-
4
votes2
answers586
viewsError trying to use isset in Javascript
I don’t know what’s wrong with this Javascript code: if( (isset(n1)) && (isset(n2)) ){ document.getElementById('resultado').innerHTML = n1 + n2; } I think I’m mixing PHP with JS. How can I…
-
4
votes1
answer391
viewsJquery + Angular form do not pass an input value
I’m doing a post with Angular. It works normal when I manually type the values in the form, but it gets a value via jQuery $("#id_veiculo").val(valores02.id); and this value appears correctly, but…
-
4
votes2
answers3435
viewsCompile multiple java files in the same folder
I made a very simple Java program, using the notepad and compiling by CMD. The problem is that even though the files are in the same folder, the class that has the method main() does not compile.…
-
4
votes1
answer185
viewsSet using matrix in c#
I have the following matrix: a d k m s j e r t c f p I put such a matrix in an array as follows: char[,] matriz = new char[3,4]; matriz[0,0] = 'a'; matriz[0,1] = 'd'; matriz[0,2] = 'k'; matriz[0,3]…
-
4
votes1
answer890
viewsPass data in php constructor to class
I have a question of how to send the data to create a goal, I read in some tutorials that was just put this way in PHP4: $elo1=new Elo(1300); $elo1->fc_Elo(); However the way I saw in some places…
-
4
votes3
answers633
viewsLoop variable declaration error
I made the following command: for(int i = 1 ; i <= 3 ; i++) {etc } Then it made the following mistake when I went to compile: game.c:11:2: error: "for" loop initial declarations are only allowed…
-
4
votes1
answer1159
viewsImport sqlite database already populated
I’m making an app requires only queries in a database. Since this is a very large amount of data, I think it would be counterproductive to feed this database using a insertOrThrow for each item of a…
-
4
votes1
answer931
viewsLayout Template and Routes
I’m working on a system that uses MVC as follows, View -> HTML,CSS Model -> PHP Controller -> JS Basically all system actions work by going through the following order: User triggers some…