Most voted questions
150,413 questions
Sort by count of
-
6
votes1
answer694
viewsDivision of the EJB Project
I have an EJB project, to implement the system the project needs to be divided into 3. The Database on a machine The User Interface on another host And the EJB(Services) in another But the whole…
-
6
votes2
answers475
viewsMalloc improperly reserving memory?
I am studying dynamic memory allocation and came across an error that apparently the compiler is not warning about. The code is very simple: int *ptr = (int *) malloc(sizeof(int)); ptr[0] = 5;…
-
6
votes1
answer1481
viewsShould I limit the size of VARCHAR columns for performance?
Normally the maximum size for VARCHAR is 255. If I create the column with a smaller size, say VARCHAR(50), I will gain performance or save disk space?
-
6
votes1
answer767
viewsHow to make a smooth animation in Progressbar?
I’m trying to implement a smooth animation in my ProgressBar, but, if I increase the duration time, the animation stops being "smooth". Example with 5 seconds: Example with 30 seconds: ProgressBar…
-
6
votes2
answers1475
viewsHow to access a value that was placed via Javascript from a site via VBA?
I’m trying to access the values that appear on the site: http://www2.bmf.com.br/pages/portal/bmfbovespa/boletim1/BoletimOnline1.asp?caminho=&pagetype=pop&Acao=BUSCA&cboMercadoria=DI1 I…
-
6
votes4
answers329
viewsWhat’s wrong with my map version for a JS array?
var kiko = [1,2,3,4,5,6]; var forEach = function(array, newArray, action){ for (var i=0; i<array.length; i++){ var newArray = []; newArray.action(array[i]); }; }; forEach(kiko, newKiko, push)…
javascriptasked 9 years, 8 months ago Kvera 313 -
6
votes1
answer2922
viewsHow to make a page load time progress bar?
How to make a progress bar that loads as the page loads? Like on this site here: http://sinalverdecaxias.com/ I saw an example in codepen.io, is kind of like this, I don’t know what this progress…
-
6
votes2
answers830
viewsConversion from date string to datetime C#
I have a method that will receive a string in the "June 15, 2001" format, for example, which is equivalent to the date to be compared, I need to pass this string to a Datetime, as I would do this…
-
6
votes3
answers4902
viewsHow to load a dropdown with a selected value
I have a method to make changes in some data. Among these data, I have a dropdownlist which contains course periods. When I select to change, I need the dropdown comes with the option checked, as it…
-
6
votes2
answers1296
viewsOpen ID Connect and Oauth 2
Last year researching a bit about authentication on API's REST I’ve heard of OAuth and saw many recommendations regarding it. I read a little on the subject, liked the same and started using it with…
-
6
votes1
answer3133
viewsHow to declare several conditions within an if
I have two ifs which take into account 3 conditions, one of which has multiple possibilities. I’m doing it like this, but it’s not working: if (($var1 == $var2) && ($var3 == 1 || 3 || 5 || 7…
-
6
votes3
answers316
viewsOpensuse 13.2 - Sublime as standard editor
I downloaded the sublimeText2 for text editing and would like to define it as the default editor instead of the gedit but I’m not getting it. Attempts Arquivo -> abrir com -> outro aplicativo…
-
6
votes0
answers220
viewsHow to use Oauth in ASP.NET 5?
In versions prior to ASP.NET 5, there was a middleware called "Oauth Authorization Server Middleware" that allowed adding an Oauth server to the pipeline and setting up token generation. The…
asp.net security-guard asp.net-web-api oauth asp.net-coreasked 9 years, 8 months ago SomeDeveloper 18,074 -
6
votes2
answers532
viewsAdvanced image optimization and compression on web servers without using external services
How to do even more optimized compression than you can achieve with tools like ImageMagick and libgd (GD) without generating WEBP image? Some services such as https://tinypng.com/ and…
image optimizing unix image-compression image-processingasked 9 years, 8 months ago Emerson Rocha 3,710 -
6
votes1
answer728
viewsAjax in different project
I have a project in Asp.Net MVC with the following method: public ActionResult ObterCursos() { List<curso> cursos = new List<curso>(); curso curso_ = new curso(); curso_.Nome =…
-
6
votes3
answers22761
viewsCompile C in Sublime Text
I’m using Windows, and need to know how to compile programs written in C in this editor. No ubuntu is easier, but in Windows 8.1 I don’t know how to do it. I’m using Sublime Text 2, because he’s my…
-
6
votes1
answer1099
viewsWhat are the advantages of using namespaces in Delphi?
From the 2009 version of Delphi (if I’m not mistaken) came the namespaces. I would like to know, in a simple example if possible that illustrates a case of advantage, what would be the advantages of…
-
6
votes2
answers241
viewsWhy does Steam api refuse Angular calls?
I am simply trying to feed my application data from the Steam Api. Let’s take this example:…
-
6
votes1
answer2529
viewsDoubts about using Stratified K-Fold in Scikit Learn
I want to perform a cross-validation using 10 folds stratified, using the language Python and the library Scikit Learn (Sklearn). Looking for some tutorials on the internet, I did some testing and…
-
6
votes2
answers672
viewsMicrosoft Azure to host website?
I have a question, I have a domain and an accommodation requested from a normal company. I have heard of Microsoft Azure that works through cloud. Could you explain to me how this works for a…
-
6
votes3
answers7489
viewsHow do I make a Delphi application run as an administrator?
I’m using Delphi XE4 and have no idea how to get an application to ask administrative permission for Windows 7 to run, I searched websites and bolgs, but I couldn’t find the answer! Help me please!…
-
6
votes1
answer357
viewsWhat is the best way to generate data from my database for some spreadsheet?
I have a database with 40,000 data (with a bang of columns), I wanted to generate a report. The problem is that in .xls it takes too long to generate the data inside the spreadsheet, there is some…
-
6
votes1
answer54
viewsRelationships Does EDMX only affect performance?
I have a question about the Entity Framework. Here at the company where I work, the tables are generated in the bank without any relationship, until the fields are created that will be foreign keys…
-
6
votes2
answers9320
viewsHow to format the date of an input[date] in the format dd/mm/yyyy'?
I have a page, built with Angularjs, that possessed a input[type=date]. Basically, what I want is to take this date and format (i.e., display to the user) using the format 'dd/MM/yyyy' (for example:…
-
6
votes1
answer308
viewsWhat is the use of indexers?
I was watching and the Csharp has indexes. Second definition on the website microsoft: Indexers allow instances of a class or structure are indexed only as vectors. Examples: internal class…
-
6
votes2
answers1911
viewsHexagon with css - blurred image
After many attempts I was able to turn an image into a CSS-only hexagon, I had many problems with SVG, js, etc. However, the image is perfect in IE (incredible as it sounds) and Chrome it distorts a…
-
6
votes1
answer162
viewsIs there any risk of submitting form with HTML?
When inserting the text: Em 19 de maio de 2015 16:48, <asdfsadf> escreveu: and send the form I generated the following error: A potentially Dangerous Request.Form value was Detected from the…
-
6
votes1
answer1356
viewsAccess html objects in code in Asp.net c#
I have a page that contains objects Asp.net and html. How do I access design html objects in . Cs with C# ?
-
6
votes1
answer21883
viewsHow to capture parameters passed by the URL using javascript?
How to capture parameters passed by URL (GET method) using javascript? it is also possible to capture parameters passed via POST method?
-
6
votes3
answers766
views -
6
votes3
answers1631
viewsHow to add Directory to the Windows Path variable during installation?
I developed an application like Console in C# with Visual Studio 2013 and wanted the installer to add the solution directory in the variable Path Windows, during installation. Is this possible? What…
-
6
votes1
answer522
viewsEntityframework 6 + Lazyloadingenabled + using()
I need a help. My problem is this: I cannot return my object items. Follow my code for analysis. Client class public partial class Cliente { public Cliente() { this.ClienteEndereco = new…
c# asp.net-mvc entity-framework-6 lazy-loading repositoryasked 9 years, 9 months ago Henrique Abreu 379 -
6
votes3
answers714
viewsCan the + symbol on a website name affect searches?
Good evening, I have a site that has in the name the symbol +, this can affect the searches in Google, it will be better to put in the name of the site ... More?
seoasked 9 years, 9 months ago Pedro Piloto 441 -
6
votes2
answers355
viewsUpdate dlls in client
I have a software that communicates with a Mysql 4.1.14 database. I installed a new server for Mysql 5.6 tests, but when I communicate with the new database, the message appears stating that the…
-
6
votes1
answer624
viewsRemove all leaves from a binary pascal tree
I’m trying to implement an algorithm that removes all leaves from a binary tree, that is, we don’t have any children. I can remove but I can’t leave the "parents" of these nodes with zero reference.…
-
6
votes1
answer3105
viewsselect with limit in Firebird
I do in mysql to fetch the 1000 last regions: select * from tabela order by id desc limit 1000; Now, how do you do it in the Firebird? doing so have the following error message: Dynamic SQL Error…
-
6
votes1
answer660
viewsHow to send Winform images to a Webapi service c# on both sides
I have two apps, a local running Winform and a remote hosted Webapi. Already send data to the served from Winform, the code is like this: JavaScriptSerializer json_serializer = new…
-
6
votes2
answers1150
viewsSort month that is in full in Postgres
I need to make a ORDER BY in a table mes which has the months in full and in Portuguese (Janeiro, Fevereiro...). It has no relation to any other column in the table. It is possible to do this?…
-
6
votes0
answers112
viewsBootstrap v2.3.2 grid does not work in IE9
I have a grid in Bootstrap v2.3.2, which I’m trying to fix to run on IE9. On the official page the grids show correctly in IE9, so I expected the same result. I saw some answers with Respond.js and…
-
6
votes1
answer424
viewsEncoding problem in project import to Android Studio
I imported a project via SVN in Android Studio. Previously the project was in Eclipse and who took care of the project ended up committing files like .classpath. From then on I started having an…
-
6
votes3
answers130
viewsHow to implement methods in Json using Serializable?
I’m making a webservice where I want to return the data in JSON, how I could implement the methods, which is the best way? GET PUT DELETE POST I did a GET method, it went like this: using System;…
-
6
votes2
answers1113
viewsHow to retrieve specific parts/values/os from a string?
I have a ArrayList where I assemble a custom list that is displayed on a ListView. What I need is to pass the value of the selected item to another screen. See below the method that will call the…
-
6
votes2
answers2295
viewsHow to find CSS images and styles that are not used on a website?
When developing large-scale websites or resuming other people’s projects where there are hundreds or thousands of lines of CSS styles, it can become complicated to review and clear code to remove…
-
6
votes3
answers1436
viewsInformation when Hovering Mouse in Photo
Does anyone know how to put a description in the photo, with a black half-transparent background? As with many blogs, one example is rihanna’s website. Something like a Timeline or a blog with…
-
6
votes3
answers233
viewsSubstitution of variables in the body of the message
I am creating a message profile system, when the system performs a certain action it picks up a certain profile and triggers the message as e-mail, however I would like in the body of the message,…
-
6
votes1
answer1276
viewsMulti Thread Socket Server - Java Server and C++ Client
I have to develop a Mini Server Socket Multi Thread (college work) in Java and need to make a Client in C, for example, can be in any language, but I chose these two. How do I send the Client values…
-
6
votes3
answers16826
viewsHow to create an array within another array with jQuery
I’m trying to create a array in jQuery using the . push() function where each element should contain another array within it. The structure I need to create is this: array( 'elemento1' => array(…
-
6
votes2
answers2609
viewsRun function only once after site loading
A friend passed me a script of a box that opens when someone enters the site, however, when updating the page it appears again. You could help me? Below the code: function timer() {…
-
6
votes3
answers9222
views -
6
votes2
answers459
viewsWhat does "Auto Packing the Repository for Optimum performance" mean?
I went to give git push in a remote repository and the following message appeared: Auto packing the repository for optimum performance. You may also run "git gc" manually. See "git help gc" for more…