Most voted questions
150,413 questions
Sort by count of
-
4
votes3
answers463
viewsAdd Array from multiple fields
I have a form with several fields containing values in currency as I can add all these values in the post output Example form <form id="form2" name="form2"…
phpasked 9 years ago Fabio Henrique 2,156 -
4
votes3
answers20769
viewsjavascript check if the attribute of an object exists
I have an object that I receive, and sometimes it comes with an attribute other times no, my problem is in sequence when I go to work with it see the example below: if( json.aviso != "" ){…
javascriptasked 9 years ago SneepS NinjA 7,691 -
4
votes2
answers197
viewsHow to detect attempted intrusion?
In order to protect against SQL injection, I need to elaborate a function in which I eliminate the possibility of someone trying to act in bad faith. The question is, mysqli brings with you some…
-
4
votes2
answers6010
viewsHow to import classes like Httpclient, Defaulthttpclient etc
I implemented these classes, but I can’t import them; the project was done in Android Studio. public class HttpConnection { public static String getSetDataWeb(WrapData wd){ HttpClient httpClient =…
androidasked 9 years ago Carlos Ximendes 267 -
4
votes1
answer622
viewsMaven with Proguard
Well someone could explain to me how I can use Proguard in the Maven build to obfuscate the web project (War) in the direct deploy for Jetty? <project…
-
4
votes1
answer55
viewsHow to create an element with levels and then add elements in one of its sublevels with jquery?
I need to create the object with the structure below and insert options. myElem = $("<div class='row'> <div class='form-group'> <label for='multiple-selected' class='col-md-offset-1…
jqueryasked 9 years ago Bruno Nascimento 489 -
4
votes2
answers303
viewsHow to use the same ZPL code on different dpi printers
Expensive, For some time I have been using Zebradesigner2 software to create ZPL labels for printing on Gc420t and I’m not having problems. Now I have to generate ZPL code for label printing using…
c#asked 9 years ago Carlos Lemos 324 -
4
votes1
answer937
viewsEntity Framework attribute list for entity mapping
For my sake Database be outside the EF convention, and as another system already developed uses it, it is out of the question to change table/column names. I would like to know the available…
-
4
votes1
answer92
viewsWhy is it possible to open serial ports (COM) on Windows using file functions?
How does this happen? There are other ways to open or just this Digo, in languages like C, PHP, Python, etc.
-
4
votes3
answers2327
viewsUpload a file with php
I’m using the following code : $uploaddir = '../vagas/'; $uploadfile = $uploaddir . basename($_FILES['img']['name']); echo '<pre>'; if (move_uploaded_file($_FILES['userfile']['tmp_name'],…
-
4
votes2
answers681
viewsAccess instantiated class attributes and methods in another class
Before the structure below: class view class controller new view() class controllerUsuario extends Controller public $usuario; as access $usuario from the "View"?…
phpasked 9 years ago Thulyo Vinicius 98 -
4
votes1
answer739
viewsHow to connect JDBC (H2 Database) in PHP?
How to connect a JDBC database (specifically H2 Database) in PHP? The database is in a single file with extension .db
-
4
votes1
answer244
viewsData Frame and Linear Regression
With this data frame I need to run some regressions. I want to make regressions with terms raised to 3 and lagged. I looked in the lm package and could not implement. I want for example to rotate…
-
4
votes2
answers7903
viewsWhat is the difference between offset(). top and position(). top in jQuery?
What’s the difference between $(el)offset().top and $(el).position().top in jQuery? I realize that some cases the results are different.
jqueryasked 9 years ago Wallace Maxters 102,340 -
4
votes1
answer2938
viewsHow to convert a string to Base64 in Python?
I am starting in Python and come from PHP. To convert a string to base 64 in PHP, I do it as follows: base64_encode('stack overflow'); //c3RhY2sgb3ZlcmZsb3c= And in the Python, how do I do that?…
pythonasked 9 years ago Wallace Maxters 102,340 -
4
votes3
answers594
viewsHow to set a column with adjustable size inside the container
<div class="container" style="background: yellow;"> <div class="row"> <div class="col-md-8 col-md-offset-2" > <div class="panel panel-primary"> <div…
twitter-bootstrapasked 9 years ago Denali 617 -
4
votes2
answers7536
viewsSelect textarea text by clicking
How can I do it, when I click on a certain button, the text of a given textarea or input be selected? I wanted answers with jQuery and jQuery solutions (pure javascript).…
-
4
votes3
answers434
viewsWhat is the maximum value for javascript number?
In PHP, we have a limit to the values of the type int, which is demonstrated by the constant PHP_INT_MAX. echo PHP_INT_MAX; // Imprime: 9223372036854775807 What about javascript? How do I find the…
javascriptasked 9 years ago Wallace Maxters 102,340 -
4
votes1
answer666
viewsGenerate random number between -99 and 99
I’m having some difficulty here in my code which is the following, I know that to generate random numbers between 0 and 9 is - x = rand() % 10. So now I wanted to generate numbers between -99 and…
-
4
votes2
answers15191
viewsHow do I know if a list is empty in Python?
I’m starting at the python and always end up appearing some doubts at the beginning. I need to know how to test if a list is empty. As I always say, I come from PHP. So I used to make these shapes:…
-
4
votes0
answers284
viewsInno-Setup: Uninstall without admin permission
Using Inno Setup, need that when a program is installed on the machine, by a user administrator, can be uninstalled by a default user. The parameter Privilegesrequired is as lowland, but the problem…
-
4
votes2
answers411
viewsWhat are the differences between find() and eq() selectors?
I am conducting some tests to understand what is the difference of the simple use of a selector eq() and find(), to be able to select the first row of a table for example. Example 1: $('table tbody…
-
4
votes1
answer330
viewsHow to filter a List<Dictionary<string, Object>?
I have a list variableMatriz that is a List>. She has 108 items. The listMatriz[0] looks like this: What I wanted was for the list variableMatrizFiltrada to come only with items from the Triz…
c#asked 9 years ago Joao Paulo 11,760 -
4
votes2
answers2678
viewscss files in Laravel 4
I’m starting with Laravel and I don’t know where to put the css files, since there is no Assets folder, as there is in Laravel 5. I need to work with version 4, because the PHP version on the server…
laravel-4asked 9 years ago Amanda Lima 3,428 -
4
votes1
answer4985
viewsModel Entity Relationship: Ternary vs Aggregation?
Supposing I have a ternary relationship: two entities among themselves are Nxn and the third entity is weak in relation to the relationship between these two. I would like to know the difference…
-
4
votes2
answers335
viewsHow to receive multiple fields from a view in the controller
I need to create a multi-field Insert at the same time! My system has several tables and relationships and I am struggling at this point. I have this registration screen: With that code: @using…
-
4
votes2
answers1624
viewsReversing Order column data.frame
I have this data frame: > head(df1) data spread 1 2006-01-01 -3.0404577 2 2006-02-01 -3.3902628 3 2006-03-01 -2.5283960 4 2006-04-01 -1.5279234 5 2006-05-01 -0.0897918 6 2006-06-01 1.0286549 >…
-
4
votes1
answer269
views -
4
votes3
answers20750
viewsHow to add option for a select by Jquery/Javascript
I’m trying to create a select which receives its options via Javascript or jQuery, the data is stored in an array. Example: for (i = 0; i <= cidades.length; i++) {…
-
4
votes1
answer419
viewsChange data from a specific position in Listview
I would like to know how I can change data from a certain Listview position. Here I upload from the database to Listview: public void carregarEmails(Cliente cliente) { ArrayList<Email>…
-
4
votes2
answers16357
viewsHow to create composite primary key in SQL?
I wonder how to create a composite primary key in a weak relationship. I mean, I create the two relationship tables and I don’t know how to "pull" the primary key to the weak table. I must pull it…
-
4
votes2
answers322
viewsRead document array of word bytes in browser
I have a routine of upload and download on a website that is working. However, I cannot do view word type files, directly in the browser, I wish to view as pdf. What I’m doing is saving the document…
-
4
votes2
answers292
viewsggplot data.frame
I have a data.frame (df): Mês SpreadMensal 1 jan2006 -3.04045769 2 fev2006 -3.39026284 3 mar2006 -2.52839603 4 abr2006 -1.52792341 5 mai2006 -0.08979180 6 jun2006 1.02865488 7 jul2006 0.54515613 8…
-
4
votes2
answers2945
viewsPopular a table with form data in Angularjs
I am learning angular.js and am having difficulties with the following code var myapp = angular.module("myapp", []) myapp.controller('controller', function reset($scope){ $scope.reset = function(){…
-
4
votes1
answer1724
viewsI have the reference, but when I run the CLR says the reference is missing
I have this include in my project: System.Web.MVC.Ajax. However when running the application I get an error Runtime, in the archive web.config. If I comment on the error line on web.config, error…
-
4
votes1
answer1947
viewsHow to extract Array from JSON into an object’s List type attribute
I am using the Flickr API to get the information from the images, which returns the following JSON:…
-
4
votes1
answer23199
viewsHow to put project in Bitbucket?
I am trying to put my project in the teacher’s repository and I will end up getting no grade for failing, and I did the following procedures; he was doing well, but when he got to the last command…
-
4
votes1
answer142
viewsIs there any way to import a project into Android Studio by fixing the dependencies automatically?
I have had frequent difficulties in importing projects into Android Studio. Whenever I make a new import, the IDE points out several dependencies that are not satisfied and I have to fix them…
-
4
votes3
answers777
viewsWhy is the result of the textbox disappearing after the click?
I’m studying Javascript for a Youtube video class I did like the video, but when I click Calculate the result appears and already disappears in less than 1 second, when in fact it should stay in the…
javascriptasked 9 years ago Luis Silva 41 -
4
votes1
answer117
viewsDoes having the layout ready facilitate development with MVC?
I’m learning to program and study dozens of things at the same time because programming is my job. What I’d like to know is about MVC. I imagined that in relation to the MVC, the V of view should…
-
4
votes1
answer1864
views -
4
votes1
answer50
viewsHow to configure predicate to return only 2 columns?
Setting: Query using Coredata for records with a city and state, and return only the columns 'name' and 'address' of the location. I am currently using the following query: // Array that will be…
-
4
votes1
answer1519
viewsNodejs route configuration using Express 4.8
I am using version v0.10.37 of Node and 4.8 of Express. I am trying to set the route to index. And the following errors appear Error: Route.get() requires callback functions but got a [Object…
-
4
votes2
answers109
viewsUnix and linux are reserved words?
Even if the variables are not declared unix and linux and even without including anything in my teste.c compiling with the GCC on Linux have: Compilation gcc teste.c -o teste Execution ./teste Exit…
-
4
votes1
answer533
views"java.lang.String cannot be cast to ..." using access control in Servlet
I have a system made for my company and together I have the new website. I can log into the system normally with the accounts registered in the database, but when I enter a filter into Servlet, I…
-
4
votes3
answers2804
viewsComparing an array element with a string
I need to create a function that receives a array and compare with a string, outside the array, returning true if, and only if, there is at least twice the occurrence of string outside the array.…
-
4
votes1
answer503
viewsProgram to filter odd numbers in a number list
I wrote a script in Haskell to find filter the odd numbers from a list and show them on the screen, but I keep getting an error when displaying the results.. impares[] =[] impares(x:xs) |(mod(x…
-
4
votes1
answer177
viewsVBA for searching photos in a folder and concatenating filenames without duplicating
In February I asked for help in a code to group photo names I have in a folder (product photos) belonging to the same product, such as can be seen in this other question. My problem has been solved,…
-
4
votes1
answer1780
views'Copy text' button in C#
I’m new to C#, and wanted to create a button that when clicked, it will copy the text described in that same button. If I didn’t make myself clear, imagine button has a text inserted in it (eg:…
-
4
votes1
answer1019
viewsHow can I make an email mask with PHP?
How do I make an email mask with PHP showing some letters, all numbers and special characters? Ex: [email protected] should look like this: stack_______2015-_____@__tmail.com…