Most voted questions
150,413 questions
Sort by count of
-
8
votes3
answers224
viewsUse of using versus full name
I’ve been following many projects open source and I realized that there’s a really big alternation between using using (Imports in VB.NET) and use direct reference to the namespace. Example: void…
-
8
votes1
answer1009
viewsFunctional Programming and Referential Transparency
Referential transparency assures me that given the same input values for a function, it will always give me the same return value. As I would have to do in the case of a function that accesses the…
javascript functional-programming haskell erlang f#asked 9 years, 3 months ago Henri Cavalcante 384 -
8
votes3
answers1459
viewsHow to get only the second class with Jquery?
<td> <input type="radio" value="5" name="Form1a1" class="abobrinha Form1comentarioA" /> </td> I have 2 classes inside in my radio input, in jQuery I would like to select only the…
-
8
votes1
answer124
viewsHow can I allow another application to start mine?
I’ve searched a lot, but I don’t know how to be in the list of applications that can open a certain type of file, for example, a photo. What I want is as if Whatsapp (or any other application) put…
-
8
votes1
answer113
viewsMaintain background in Drawingview
I’m needing an application to draw on a specific background, the code is working all right, but when I’m going to delete/correct a wrong line, it erases the background and the background should be…
-
8
votes2
answers121
viewsDeclaration of an interface with Where
I’m studying a lot Pattern design, because I think they solve a lot of things and it is very opportune to study them. I took this statement on the Macoratti website and I confess, I could not…
-
8
votes3
answers241
viewsBest way to keep data that depends on a condition
Hypothetically I have a table publicação that has, by default, attributes autores (derives from a relationship table),titulo, edição, editora and ano. However, depending on the type of publication…
-
8
votes3
answers24407
viewsWhat is the performance difference between BIGINT and INT in Mysql?
There is some negative impact on the performance of Mysql, where the Primary Key is the type BIGINT(20), instead of INT(11)?
-
8
votes2
answers1730
viewsTime-out expiring faster than expected - ASP.NET
I am with an application that is working ok, however, when I spend a little time without interacting with the page the user authentication drops and the system returns to the login screen. i am…
-
8
votes2
answers663
viewsHow to make 3 nested Selectonemenu?
I’m creating a page that has to be 3 SelectOneMenu of the first faces. In the first I will carry a center (of the university), the second will carry an edict and the third would carry the…
-
8
votes2
answers17280
viewsHow to crop an image - HTML
I need to make an image inside a div be with a width of 600px and a time of 300px without distorting the image. I have a notion about css3 and Html5 and am working on the layout of a blog on the…
-
8
votes1
answer211
viewsQT + Opencv on Mac Os 10.10.3 with error: Symbol(s) not found for Architecture x86_64
I recently installed Qt Creator and Opencv. I was able to easily compile QT and Opencv separately. But I can’t compile both together. My file .pro is like this:…
-
8
votes1
answer347
viewsHow to create an html log with log4net
I have a project that already uses log4net, but I would like to show this log in HTML. I searched several sites and nobody implemented this solution. Does anyone have any idea how to do that?…
-
8
votes2
answers903
viewsHow to force the download of an AWS Bucket S3 object with PHP?
I know how to upload an object to the AWS S3 Bucket this way: try { $oClientAws->putObject(array( 'Bucket' => 'bucket_test', 'Key' => 'fileName.jpg', 'Body' =>…
-
8
votes8
answers2805
viewsHow to know which is the last element on a list?
I am doing a dynamic sql query, in which I use lists, my problem is, how to know which last element of this list Follow the code made so far: List<string> campos = new List<string>();…
-
8
votes2
answers1716
viewsWhat is the difference between Idisposable implementations?
I confess that I still don’t understand everything about how to manipulate the destruction of an object in the C# and now, as I’m testing Visual Studio 2015 Preview, when implementing a database…
-
8
votes2
answers601
viewsWhat is Ufon and what is it for?
Recently when I was viewing the source code of an old Wordpress theme, I came across a code Avascript that contained the following: Cufon.replace('#navigation > ul > li > a', { textShadow:…
-
8
votes1
answer29561
viewsInsert Whatsapp Share Button into HTML pages
How to insert a Share Button into Whatsapp in HTML projects?
-
8
votes2
answers1180
viewsIs it possible to link a C# form to a VB.NET project?
I have two different projects, one with only one form in C#, I can embed the form in my project in VB.NET ?
-
8
votes4
answers10409
viewsHow do you display "Press ENTER to continue" in Python 3.4?
I wanted to know how to do the " Press ENTER to continue", or the "Press any key to continue" in Python 3.4, without having to create a single variable to store ENTER.
-
8
votes1
answer521
viewsC++ with C#, is it possible?
I have a C++ project using visuals on it using wxWidgets. I was hoping to transfer the look of the project to C#. It is possible to have the programming of the functions in C++, but the programming…
-
8
votes3
answers117
viewsArchitectural problem where access to construction methods should be controlled
I have a class for tree that will have the addition of trunks, branches, leaves and fruits. I need the class to give access to certain methods only after others and that the previous ones cannot be…
-
8
votes3
answers1704
viewsWhat is the use of Func<T, Tresult>
I was researching some things and came across the Func<T, TResult>, and I didn’t quite understand his usefulness. For example: //Método public string Nome(string nome) { return "Meu nome é " +…
-
8
votes3
answers3422
viewsDifference between Getter Setter and Property in Delphi
There are some ways to encapsulate the attributes, among them, the one that I found most interesting was the one that uses the methods Getter and Setters to access the attributes (similar to what is…
-
8
votes2
answers590
viewsCheckboxes from Codeigniter database
I have a database with a table called tblapoio, with 4 fields (id, descricao, valor, tag) Needed to make a form with a list of checkboxes with these values that exist in the table. I am using…
-
8
votes1
answer104
viewsWhat is the Emptyiterator class for?
In the documentation of PHP, has a class called EmptyIterator When I look at the method documentation EmptyIterator::rewind(), there is written: No Operation, Nothing to do. (No operation, nothing…
-
8
votes3
answers2208
viewsCreate database on server via mysql-Workbench (.mwb) template via command line
I am trying to assemble a bat to create the database in the mysql server from an EER (.mwb) mysql-Workbench model, that is, in the command line, is it possible to perform this process? Someone could…
mysql relational-model batch mysql-workbench command-lineasked 9 years, 4 months ago Artur_Indio 1,093 -
8
votes3
answers1685
viewsHow to handle large volumes of data in a database?
I have a process that I need to implement on my system that, at a given time, will check a relatively large number of data and, if not found, should save in the Mysql database. This should be…
-
8
votes1
answer3496
views -
8
votes3
answers11171
viewsHow to return the ID of a record right after it is inserted?
I am making a Java application in conjunction with a Mysql database and would like to know what would be the best command to return an auto database increment ID right after the record is inserted.…
-
8
votes3
answers7816
viewsSeparate contents from one column in other columns
I have a file in table form. I need to separate the contents of a specific column in other columns, the data are separated by ;. Well I managed to do this, but the problem is that the content will…
rasked 9 years, 5 months ago Joyce Maia 387 -
8
votes2
answers129
viewsWhat is the difference between $var = Function() and Function var()?
I’d like to know, what’s the difference between: <?php $var = function() { return 5; } $var(); and... <?php function var() { return 5; } var(); What would be the difference between them? When…
phpasked 9 years, 5 months ago João Paulo Vieira da Silva 1,933 -
8
votes2
answers964
viewsProblems with importing libraries
I started developing for Android in my work and I was asked to start exchanging some simple things from an existing project, which works and has even been released (the version I’m trying to test).…
-
8
votes3
answers466
viewsBest practice to check if the module is being used
My question which perhaps - I hope not - can be considered as of opinion, is conceptual and even simple. In most applications, we work with features that when used by multiple users at the same time…
-
8
votes3
answers5579
viewsSimple National Optional Consultation (by CNPJ)
I’m trying to implement a query of Simples Nacional, the operation is similar to the consultation by CNPJ of the recipe. Details I’ve understood so far: After loading the page, runs a ajax (filing…
-
8
votes1
answer197
viewsText snake animation with SVG
I’m trying to reproduce the same effect that someone did here -> http://bit.ly/1FCtQSQ , this frame is animated by scroll, therefore it is necessary to descend a little until a text with an…
-
8
votes2
answers406
viewsObject declaration in Javascript
function List(){ this.listSize = 0; this.pos = 0; this.dataStore = []; }; I can consider this code snippet as creating a List object?
-
8
votes1
answer5423
viewsHow do I program for Avrs in C/C++? And using Arduino?
I’d like to know: How to start microcontroller programming ATMEL AVR in C/C++? What software can I use to compile my program? What software can I use to upload my program? Where I find the official…
-
8
votes2
answers571
viewsHow to transmit data securely?
I’m developing two embedded systems, a supervisor and an agent. The supervisor is a card capable of making connections to the Internet through GPRS. It receives requests from a user, through a web…
-
8
votes1
answer1935
viewsDiv that can be dragged
I would like to allow users to move some things from my site. Of type, the user could drag the menu to another place to better position the reading.
-
8
votes2
answers325
viewsHow to use random in C++?
I would like an example of the use of random in C++, because I need to use it but I don’t know how it works.
-
8
votes3
answers311
viewsHow to use a different logo if the pattern does not exist?
I would like to know if there is a solution to the following problem, if there is a logo_enterprise image to consider it and apply it to css, if there is no logo_default, that way I could control…
-
8
votes3
answers779
viewsPassage of parameter C#
I have the following code in js function consultaSolicitacao() { id = getVar("id"); serviceURL = "/Solicitacao/ConsultaSolicitacao"; $.get(serviceURL, null, function (data) { var aux = data.length;…
-
8
votes4
answers34013
viewsHow to make a loading screen before opening the site
Hello, my website takes VERY MUCH to start, a lot to load and I would like to know how to make a Loading screen(as in MEGA) while the main website loads.…
-
8
votes3
answers143
viewsDoubt with PHP and Apache
I formatted my machine and was advised to use Linux, and I did so. But in my localhost, the files .php are not read/recognized, only files .html. I installed, reinstalled and did everything I saw on…
-
8
votes4
answers827
viewsAnother option to use @ in PHP?
I don’t feel very comfortable having to use the @ before some variables and sessions when making conditions, to avoid error of Unexpected Index which happens when the variable or session was not…
-
8
votes1
answer204
viewsAndroid Audio Player
I created a music player it is working 100% only that when it comes to the end of a song it does not pass to the next one of the list. Does anyone know a solution to my problem ? (Note: the songs…
androidasked 9 years, 5 months ago Itallo Freire 215 -
8
votes2
answers1580
viewsSecurity in login system
Hello, I made a torrent file download and upload system, and on this site has a login system with a database, and I would like you to explain a little bit about security in PHP and mysql and what I…
-
8
votes1
answer1017
viewsMemory usage PHP images
I have an image upload and to treat the images I’ve used (Imageworkshop and Imagine), however the problem is not the libraries, it is the absurd amount of memory that is used in some situations.…
-
8
votes1
answer3540
viewsChange Actionbar menu icon
I want to change the menu icon for ActionBar, those 3 points that have as default option "Settings". I’ve tried for the Style creating a custom theme and there putting the new icon but it did not…