Most voted questions
150,413 questions
Sort by count of
-
7
votes4
answers5703
viewsSchedule process execution in C#
I have an application that will run 24h/day the 7 days/week, IE, It will always be running. I need that at a specific time, every day a method of this application is called.
-
7
votes2
answers400
viewsuse regex in php explode function
I’m doing a query on my DB, and we can do an identical query on this: "hello world" "pacific ocean" What happens is that I can search for several strings at the same time: Expected result: String1:…
-
7
votes1
answer12506
viewsGenerate ssh key in git
I could use a little help! These days I was in college, committing some projects in my repository on Github through the Git, and going up some files in the repository, when I went up the last one…
-
7
votes1
answer330
viewsIs it recommended to use C# 6 in Visual Studio 2013?
In the Visual Studio 2015 I see that it is possible to define the version of C#: Source: http://www.codeproject.com/Tips/865579/How-to-change-targeted-Csharp-version-in-Visual-St But in the Visual…
c# visual-studio visual-studio-2013 ide .net-compiler-platformasked 9 years, 2 months ago rubStackOverflow 7,372 -
7
votes1
answer120
viewsDoubt with Servlet
Hello, I have a question with Servlet’s. Picture the picture: raiz / / formulario.jsp / Servlet / retornos / retorno.jsp The form sends to Servlet the data by post or get! After this submission,…
-
7
votes3
answers13058
viewsHow to do a range with letters of the alphabet in python?
In PHP, when we want to make a array alphabet letters, we can use the function range. Example in PHP: $letras = range('a', 'z'); Upshot: Array ( [0] => a [1] => b [2] => c [3] => d [4]…
-
7
votes2
answers5604
viewsHow do I repeat a string in Python?
The question is simple: How do I repeat a string in Python? I’m used to PHP. When I want to repeat a string in PHP, I do so: var $str = 'StackOverflow'; str_repeat($str, 5); // Imprime:…
-
7
votes6
answers8471
viewsDo not open keyboard automatically when on screen with Edittext
I have a screen with a EditText ai whenever I enter it already opens the keyboard. I wanted you to only open the keyboard when I clicked on it. I tried that but the keyboard is not opening at all:…
androidasked 9 years, 2 months ago Ilgner de Oliveira 1,098 -
7
votes2
answers1636
viewsWhy do we have to use ? > <?php when we use Eval in the content of a php script?
I took a look at the source code of Laravel 3 and saw the following code: eval('?>'.$__contents); On other occasions, I’ve seen something like: $content = file_get_contents('file.php');…
-
7
votes1
answer711
viewsHow does the class constructor statement in Qt work?
I work with C and a little bit of Assembly, in Atmel AVR microcontrollers. I’m trying to understand how the framework Qt extends C++. I created a new project with Qt Creator (Widgets), and generated…
-
7
votes1
answer1641
viewsSet up domain on Amazon with Route 53
I started using AWS recently in the free version and bought a domain in Go Daddy, after I moved up my instance I tried to configure the domain with this tutorial I basically allotted an IP with…
-
7
votes2
answers1801
viewslist.foreach vs foreach
I have a list of several string, there’s a difference between going through the list values: In this way: ListaString.ForEach(delegate(string str) { Console.WriteLine(str); }); Or this:…
-
7
votes2
answers666
viewsCheck file extension in template - Django
I have a Django application where in the template I need to validate a file extension coming from filefield. <div class="row"> <p class="anexos"> {% trans 'Anexos' %} </p> #if .jpg…
-
7
votes1
answer423
viewsTable does not appear in return Json
I’m trying to show a table on my return insert but I am not succeeding, the insertion operation is correct as well as the confirmation message, but the table is not displayed, I have it: function…
-
7
votes1
answer161
viewsEdgejs and Entity Framework
Next, I am learning Nodejs and I am delighted with the same, however I found my first stone on the way, access to relational database using some ORM (precisely to access Postgresql). Initially I…
-
7
votes2
answers1573
viewsHow to access next and previous record with C# using Entity Framework
I am developing a Windows Form application, with Entity Framework 6 + Mysql. As is common in systems, I have in each form navigation buttons (First Record, Previous Record, Next Record, Last Record)…
-
7
votes3
answers242
viewsPHP error - Empty() function
I have the following mistake: Fatal error: Can't use method return value in write context in /home/username/public_html/Administrar/application/controllers/holerites.php on line 29 Follow the…
-
7
votes1
answer236
viewsWhat is the usefulness of the ! operator in Java?
In a if(!aplicaDescontoDe(valor)); in which the method aplicaDescontDe is a boolean, how it works not understood? In that Example: public boolean aplicaDescontoDe(double porcentagem) {…
-
7
votes2
answers855
viewsWhat is the use of declaring variables through braces?
In PHP, variables usually have a pattern to follow in their declaration. According to the manual: Variables in PHP are represented by a dollar sign ($) followed by variable name. Variable names in…
-
7
votes3
answers219
viewsWhat is the whole argument in Exit() for?
In PHP, when we want to close a script, we usually use the function exit(). When we use strings, it terminates the execution of script and print that string. Example: exit('Stack Overflow'); //…
phpasked 9 years, 2 months ago Wallace Maxters 102,340 -
7
votes6
answers47809
viewsHow to search for a particular object within an array?
I need to know if determined Array has a objeto with a certain value in its index. I tried to use indexOf, but I was unsuccessful. arr = []; arr.push({id: 1, nome: 'Wallace'}); arr.indexOf({id: 1});…
-
7
votes1
answer1641
viewsMysql Workbench with autocomplete with all database columns when using table alias
I realized that after I installed a new version of Mysql Workbench the autocomplete brings columns from all tables, this when I use alias for table, when I repeat the table name the autocomplete…
-
7
votes2
answers7532
viewsNFC-e (consumer invoice) integration API with PHP
Does anyone know of any Consumer Invoice integration manual for using PHP? I am developing a system that contains sales control, and would need to issue an NFC-e, but I can find nowhere any…
-
7
votes2
answers772
viewsDjango and Template
Good night! Guys, I’ve been in trouble for four days and unfortunately I haven’t been able to fix it yet! I’m working with tamplates in Django, but I’m having problems, because nothing appears in…
-
7
votes1
answer239
viewsWhat is the difference between method annotation and attribute annotation
Guys, I started learning and using the hibernate recently, and while searching for answers to my questions regarding the annotations I have come across following occasions: 1st) The attribute has…
-
7
votes2
answers310
viewsDiv effect to show two, half-to-half images
I need to do an effect like this example: What I noticed by debugging is that there are two images one div inside the other: <div class="box-image-differ" style="width: 620px; height: 366px;">…
-
7
votes2
answers111
viewsAccess to specific memory points
How do I access an exact address in memory on Windows? unsigned char * mem = {??};
-
7
votes1
answer424
viewsvector moving mean of a matrix in R
I’m doing the following operation with a matrix in the R: > m <- matrix(1:9, ncol = 3, nrow = 3) > m [,1] [,2] [,3] [1,] 1 4 7 [2,] 2 5 8 [3,] 3 6 9 > m2 <- m > for(i in…
-
7
votes1
answer16066
viewsWhy do some domains use www2 and www3 in the prefix?
Why some domains use www2 and www3 in the prefix? For example: www2.exemplo.com www3.exemplo.com I noticed that some websites like the government use, but I don’t know the exact reason.…
-
7
votes1
answer386
viewsMy calendar only displays the first scheduled appointment of each day
I’ve set up a calendar with a PHP + Mysql calendar , it’s already 80% of the development. But, I have a problem, like if I register for an event for the day 20/07, this appointment is displayed…
-
7
votes2
answers975
viewsDatabase connection error
I’m having a problem connecting to Mysql database with PHP I’m using WAMP created a database in my Phpmyadmin made my connection via PHP but this error appears when I click to send in my form: These…
-
7
votes1
answer1514
viewsIs it possible to create graphical interfaces for Python applications?
And what about using them on a computer that doesn’t have a Python interpreter? If the answer is yes, what software is capable of doing this?
-
7
votes1
answer578
viewsZoom with fingers on app
I saw that there is zoombutton and zoomcontrols in Android Studio but I analyzed none zoom with fingers. How can I zoom in with my fingers on an Android app?
androidasked 9 years, 3 months ago Tiago Coelho 739 -
7
votes4
answers4570
viewsHow to avoid multiple access with the same login and password
I would like to know how I can complement the code below so that if the user is logged in there is no other person to access the restricted area with the same login and password when the user who…
-
7
votes2
answers249
viewsComparison with Postgresql database using C#
I created a Login application, made the connection to the database, I can get the user and password registered in my database. But what I want, is, if the user tries more than three times to enter…
-
7
votes1
answer308
viewsDeploy with GIT x Deploy with Gulp
I still can’t figure out which is the best deploy on a site. I explain how I’m doing: GIT I started a local repository I hosted my repository on some service like Github/Bitbucket I hacked into the…
-
7
votes2
answers2282
viewsHow to put side menus on Ionic?
I’m developing an application on ionic I’m not getting the side menus left the first page of the application and a login I’m not getting the side menus on the page home.html which is for this page…
ionicasked 9 years, 3 months ago César Sousa 2,025 -
7
votes2
answers145
viewsCAST: difference between "(String) Arg" and "String.class.cast(Arg)"
I wonder if there’s a difference between: String a = (String) arg; and the cast class: String a = String.class.cast(arg); I once heard that using the cast static class is more performatic, this is…
-
7
votes1
answer401
viewsHow to create a function in the J language?
How to create a function in the J language? All the examples I found online show only how to describe functions through a Fork: media =: +/ % # media 1 2 3 4 2.5 The code above (+/ % #) is the same…
-
7
votes1
answer76391
viewsINNER JOIN with 3 tables
I have 3 tables Tb_contratocotista: Tb_contract: Tb_stakeholder: I would like to relate the values of the table Tb_contract with Tb_stakeholder, but the way I got it only returns the result of…
-
7
votes1
answer2555
viewsStream() and parallelStreams()
I saw that the performance using Amble and streams is much better than using repeat loops, so I try to use as much as possible. My question is when should I wear Streams or Parallelstreams? How does…
-
7
votes1
answer23359
viewsValidate email in Javascript
Good afternoon, I have a question in an exercise that I have to solve and I wanted to ask you to help me: As I do a function in Javascript that takes as argument a string and checks if an email is…
javascriptasked 9 years, 3 months ago CSAnimor 731 -
7
votes1
answer492
viewsUnderstanding the pythonic way of dealing with properties
I am on time trying to understand how this issue of python properties works. But the problem is that in all the tutorials net out only find the damn example with only one attribute. I’m looking for…
python python-3.x getters-setters property decorator-patternasked 9 years, 3 months ago Devel Silva 73 -
7
votes1
answer301
viewsAre there HTML text editing tags "preferred" by google search robots?
I decided to rewrite some 300 files that I will use in a project, because they were originally written directly on google Docs, and when saved as HTML and try to include with requireor include,…
-
7
votes1
answer266
viewsProblems with IF in javascript
I’m a beginner in Asp.Net MVC, and I’m developing an application that manages Courses and in my screen of enrollment I’m trying to do a validation javascript what case the pupil is already enrolled…
-
7
votes2
answers1375
viewsWhat’s the difference between On heap and Off Heap in Java - JVM Memory
I would like an explanation determining the characteristics of On heap and Off heap Memory in Java. We know that Thread Stacks, the code of our application and the Buffers NIO are all allocated Off…
-
7
votes2
answers1209
viewsCan Enum values only be integer?
Studying C#, I came across a situation, I want to receive a value (string) by the console. And then compare it to the value of a Enum. For example: [Serializable] public enum Command { Exit =…
-
7
votes1
answer251
viewsCustomizing CSRF Protection error messages in Codeigniter
In the CodeIgniter, if I give a Reload F5 on a form page, the error is returned The action you have requested is not allowed. A protection against CSRF. How do I customize the HTML of that error…
-
7
votes1
answer922
viewsRedeem dictionary key with maximum sum of respective value
I have the following dictionary: dic = {'bsx_8612': [23, 567, 632], 'asd_6375': [654, 12, 962], 'asd_2498': [56, 12, 574], 'bsx_9344': [96, 1022, 324]} I want to redeem the key whose value has the…
-
7
votes3
answers13303
viewsStar voting with radio input, javascript/css
I am creating a registration form, in it I will insert a voting system, I wanted to do that when clicking on some star, the previous ones will change color too. (Follows the code I created) <div…