Most voted questions
150,413 questions
Sort by count of
-
8
votes1
answer1056
viewsTransfer focus from a Jtable cell right after typing time
Hello, I’m using a JTable for typing time card. I need help with this, but I’ve already done a search and nothing helped me very much. I’ve tried to do it in many ways and I couldn’t. I have several…
-
8
votes1
answer1481
viewsWhat are "generated columns" in Mysql and what would your applications be?
I downloaded the new version of Mysql Workbench and when I was creating a table I noticed a new property of the field that is called Generated Column. On the Mysql website it says that this is a new…
-
8
votes2
answers972
viewsWhy only use Return, without returning any data?
Studying the code of a framework I came across the following code snippet: if (file_exists('lib/util/' . $className . '.php')) { include 'lib/util/' . $className . '.php'; return; } What is the…
-
8
votes1
answer1445
viewsHow to Set and Get Application Version
I’m almost finished my first android app, and I made a "page" of about and manually put the version number. Da para definir a versão em algum local ? e tem como obter ela dentro do programa ?
androidasked 8 years, 5 months ago Igor Oliveira 1,110 -
8
votes1
answer10637
viewsThread Safe(TS) and Non Thread Safe(NTS) - What are they, what’s the difference?
When someone goes to download PHP, they have these 2 options: ts and nts, as well as language extensions. My doubts are as follows:: What are Thread Safe(TS) and Non Thread Safe(NTS)? There are some…
-
8
votes4
answers835
viewsAssembling updates at runtime
When riding SELECTS at runtime we always have the problem of knowing what may or may not be coming depending on the choices made by the user. When mounting the clause WHERE we come across the…
-
8
votes1
answer152
viewsLibrary for data validations in Brazilian Portuguese for Laravel
Whenever I need to use cpf or telefone in Laravel, I need to use the method Validator::extend to add these validations. Validator::extend('cpf_real', function($attr, $value) { $c =…
-
8
votes2
answers1802
views -
8
votes2
answers2267
viewsHow Viewmodel works on Asp.net mvc
I have a similar situation that question where I need to save several models at once and relate each. I would need to sort of cascade to first save one entity and then go saving the others, because…
-
8
votes1
answer557
viewsTDD and Unit Test, both are the same thing and have the same purpose?
Always when I read about TDD (Test Driven Development) it is related to Unit test, It makes me believe that TDD is the same as Unit test, and I don’t know if my definition is correct in relation to…
-
8
votes2
answers1094
viewsHow to declare a function within another function in C#?
In Delphi it is possible to declare function within the block of a given function, see this example done in Delphi: procedure TForm1.btnRunClick(Sender: TObject); begin mostrarNome('Carvalho'); end;…
-
8
votes4
answers485
viewsHow to determine the index of items in one list in another
Work with python 2.7. Whereas the following: S_names=["A", "B", "C", "D", "E", "F", "G"] S_values=[1,3,4,2,5,8,10] other=["Z","W","B","S","A","E","X","T","D","G","L","C","F"] I need to find in what…
-
8
votes2
answers635
viewsOrganize website by folders in directory
I’m venturing into my first site written in PHP and there’s one thing that bothers me, which is the way the website URL looks, for example: meusite.com/index.php?page=ucp&p=edit&id=58 The…
-
8
votes4
answers15280
viewsCan you create an array in SQL Server?
In SQL Server Management Studio 2012 you have the possibility to create an array in a trial? I did a google search and did not find, apparently it is used such a table variable to store more than…
sql-serverasked 8 years, 5 months ago HeyJoe 819 -
8
votes1
answer558
viewsIs it possible to define a connection pool for each user of an oracle database?
I searched the oracle documentation and only find ways to change this image, but nothing about creating another. Does anyone there know if it is possible what I am ordering? And how to proceed?…
-
8
votes1
answer1407
viewsDifferences between one: Linux and Windows Development Environment
I would like to know the development differences between these two Sos. I have little knowledge about Linux, only theoretical. Today, researching about creating a PHP environment, without using…
-
8
votes5
answers993
viewsWhat is the difference between referencing an attribute directly or by get/set
As an example I have a private String atributo, so I can have two ways of referencing the same, this internally in the class: this.atributo And also: this.getAtributo(); It’s correct to say it’s…
-
8
votes1
answer1205
viewsDo I need to use Try/catch throughout a process chain?
Supposing I have a call in my layer controller for a method in the business layer that leads to another method in the data access layer. Should I use the try/catch in all of them, only in any or…
-
8
votes1
answer832
viewsUse cases Concept and use cases Process
In software engineering we have the famous use cases. On a college assignment I come across the following: UCC - Concept use cases CPU - Process use cases UCR - Cases of use of Relay UCR - would be…
-
8
votes1
answer192
viewsMalicious code not identified
Guys, I have a site that was hacked (Wordpress) and on all pages . php was added the code below: <?php $ahwwxolsc = '>>…
-
8
votes1
answer501
viewsWhy Nodejs has versions 4.x, 5.x, 6.x and 0.1x.x, etc
Why Node.js exists in versions 4, 5 and 6, but also exists in versions 0.x.x. Or perhaps, what are the differences between the versions x.x and 0.x.x?
-
8
votes1
answer356
viewsWeb API and Owin Oauth - redirect to another domain (redirect_uri)
Good afternoon, I’m having a problem implementing external login on a project I’m working on. ASP.NET Web API + Owin + Oauth. Ambience: Work with two Server1 and Server2 servers. Server1: Server…
-
8
votes2
answers2357
viewsWhy is it necessary to use bind when working with ES6 and Reactjs?
Using ES5 in Reactjs development, a component can be declared as follows: var MyComponent = React.createClass({ alertSomething: function(event) { alert(event.target); }, render: function() { return…
-
8
votes1
answer2888
viewsWhat is the purpose of virtualenv and why not install globally?
I saw that the VirtualEnv provides a way to create different environments for application development in Python. And, whenever we use, it is necessary to install the dependencies of a specific…
pythonasked 8 years, 5 months ago Wallace Maxters 102,340 -
8
votes3
answers646
viewsImport eclipse project to latest Android Studio API
I imported the project from an eclipse app for Android Studio. The import went smoothly and Gradle was created. However, I realize that the visual components like Edittext, Progressbar, Appbar,…
-
8
votes2
answers1931
viewsMeta Keywords is still needed?
I’ve been reading about the meta tags, and many sites that are no longer important to Google and other search engines the use of the goal 'Keywords', causing some doubt of use in the project I’m…
-
8
votes1
answer1772
views -
8
votes1
answer594
viewsWhat is PJAX and how to detect a PJAX call in the back end?
I’ve been reading about PJAX, but it is a little confusing its operation independent of frameworks, I saw articles but all turned to YUI or plugins for jQuery, really it was not very clear its…
-
8
votes2
answers653
viewsName collision between class and namespace
It’s wrong, bad practice or I might have problems with class like namespace? Example: namespace Cielo { public class Cielo { ... } } It’s been working, in some places it gets a little strange to…
-
8
votes3
answers19310
viewsAlternatives for developing in C# on Linux?
My notebook has installed the Ubuntu 14 operating system. I have great desire to enter the development in the language Csharp. But I wonder if there is a good alternative in OS like Linux, since it…
-
8
votes1
answer1510
viewsIs there any way to test a route using PHP Unit in Laravel?
I love to create using the PHPunit to create unit tests for my libraries. Always, before doing the git commit, run it to see if any changes affected what was previously working. I wish I could also…
-
8
votes2
answers2113
viewsHow to create methods on an Enum?
I have an application in Java and am porting it to C#. I have a question regarding enum that seems to work differently from Java. After asking a question here on the site (Enumerations may contain…
-
8
votes3
answers747
viewsIs malloc typecast recommended?
I have read that it is not advisable to do the Typecast of malloc when we are allocating memory to a new pointer variable, and many websites and books teach this practice in memory allocation, it…
-
8
votes1
answer88
viewsArray.map with parseint returns unexpected result
I was seeing a comment from jbueno in chat and decided to test in the browsers IE, Firefox and Chrome, while running on the consoles this command: ['10', '10', '10'].map(parseInt); He returned this…
javascriptasked 8 years, 6 months ago Guilherme Nascimento 98,651 -
8
votes2
answers268
viewsShoot event only once
I’m doing an interface in Visual Studio 2015, how do I hold an event just once? For example: private void textBox5_Click(object sender, EventArgs e) { textBox5.ForeColor = Color.Black;…
-
8
votes2
answers2209
viewsHow to Extend/Inherit Angular2 Component?
Doubt I would like to create extensions for some components already implemented in Angular 2, without having to rewrite them almost completely, because the base component could undergo changes and I…
-
8
votes2
answers17548
viewsInput or raw_input?
Can anyone tell me the difference between input and raw_input in Python and how to use both?
pythonasked 8 years, 6 months ago Rubem Nanclarez 81 -
8
votes2
answers168
viewsWhat makes an object eligible to be allocated in the stack?
Article link: http://www.vogella.com/tutorials/JavaPerformance/article.html#Escape%20Analysis "The Programming language(Java) does not Offer the possibility to Let the Programmer decides if an…
-
8
votes2
answers670
viewsSearch within html - no database
I wanted a field <input> on my page on which, if I typed something, I would search for the word I typed inside that section. I’m not using database after all, no need for it (the data is in…
htmlasked 8 years, 6 months ago Adson Henrique 83 -
8
votes4
answers6487
viewsMaximum request size ASP.Net MVC
I am uploading Image using Jquery. I limited the image to 2mb, but sending a larger image of 2mb shows an exception saying Maximum request size exceeded. That’s what I did: function fileUpload() {…
-
8
votes4
answers256
viewsWhat’s the difference between creating a module normally and creating a module within a function?
I’ve been looking at some sample projects in Angularjs and came across several times the following code: (function () { angular.module('meuModulo', [ 'alguma.dependencia', 'outra.dependencia' ]);…
-
8
votes2
answers2706
viewsHow to use vector to store a class?
Example: class Nome {private: string nome; public: Nome(string nome); virtual void exibirNome() =0; }; class SobreNome: public Nome {private: string nome; public: SobreNome(string nome, string…
-
8
votes2
answers881
viewsHow to avoid code repetition between classes?
To report on my application I have created several classes, and each class is responsible for a report, however, there is a repetition of a lot of code by those classes that I would like to avoid,…
-
8
votes1
answer1408
viewsWebservice returns to Soapui, but does not return to PHP
I am consuming a SOAP Webservice and I am found the following problem: Webservice has two functions. In PHP, using the Soapclient class, I created the client and consumes the first function without…
-
8
votes2
answers9825
views3-point menu in all Activities with standard Navigation Drawer
I’m starting now to implement on Android. I have a little doubt, created a Blank Activity (activity_initial) and with it the Action Bar, then created a Navigation Drawer (navigation_menu) also…
-
8
votes2
answers1332
viewsConvert string to Datetime in LINQ
I have a model where all fields are string. I want to convert to DateTime and Double For that I created a new model public class CPUStats { public DateTime Data { get; set; } public Double? Disco {…
-
8
votes2
answers1023
viewsGet Screen Resolution C++
I am developing a system and would like to know if there is any function / library, anything, to get the screen resolution, if it is for example: 1280x720, 1920x1080, 1366x768, etc... Is there any…
c++asked 8 years, 7 months ago Felipe Chiarotti 153 -
8
votes6
answers20421
viewsHow to get weather and weather information?
I came across a problem I’d like to see if it can be solved similar to the post office. When you have a zip code you can rescue from a web service other data, such as the address and city of that…
-
8
votes3
answers5416
viewsPhpdoc - What is, what is its utility and how to use it?
These days I’ve been doing a lot of work on frameworks files, projects, etc...and I’m seeing a lot of things I’ve never seen, one of them is the one with Phpdoc (I got the name thanks to my IDE),…
-
8
votes1
answer1119
viewsRounding of 5 cents
In a PHP system I am developing, I need to update a column of the price table. The price field is in the format float and the administrator informs the percentage of increase. Example: Informs that…