Most voted questions
150,413 questions
Sort by count of
-
5
votes1
answer9979
viewsCreate a "accordion" menu with CSS only?
Menus in style accordion (accordion) are useful for saving space, since you only open the parts with the content you need. Example of style menu accordion. But all of these menus usually use…
-
5
votes1
answer356
viewsAbout size check
I’ve found several explanations about it, but none conclusive. Is it possible to determine the size (in bytes) of an image after it is loaded and using Javascript? Apparently the security of the…
-
5
votes1
answer1101
viewsHow to make a Listview with components next to the text on each line?
Several current Androids systems have menus like the one in the example below: Notice that anywhere I touch my finger in the blue area under "Access my location" it turns on or off the switch and…
-
5
votes2
answers7594
viewsSend objects via socket
I have a chat that exchanges messages (String) to each other. Everything is working correctly. However, now I want to start sending objects via Socket, like for example, a class that has some…
-
5
votes1
answer1392
viewsEvent problems in dynamically created elements
My intention is: A listing where it is possible to add <div> and delete the added Divs with a "button" inserted into each div. The page already comes with some divs fixed inserts which are…
-
5
votes1
answer73
viewsIs there any difference between an event with passing parameters to one without passing?
Considering: jQuery $("#seletor1").on("click", function(){ $("#seletor2").trigger("click", {dados: "informação"}); }); $("#seletor2").on("click", function(){ //faça coisas });…
-
5
votes3
answers6516
viewsWhat HTTP status code to use to indicate validation failure?
When a method in a web API detects that there has been a failure to validate the data of an entity to be added or updated, is there any HTTP code that is standard to be sent? For now I’m using code…
-
5
votes2
answers1924
viewsHow to pull content via AJAX from a site that has a menu header and a fixed audio player?
How can I create a website that uses AJAX for loading the pages ? What is the best way to do this without bugs occurring and that are really functional? I have plans to create some websites that…
-
5
votes1
answer365
viewsWhat does "introspection at runtime" mean?
Looking for information about a graphic Toolkit in Lua, I found an explanation about lgi (GTK) that presented a great advantage: "...because it was written in C and has the ability to introspect at…
-
5
votes1
answer2122
viewsCapture actions: Scroll Down and Scroll Up
Is there any way in jQuery to capture the events of "Scrolldown" and "Scrollup"? I tried this way: var lastScrollTop = 0; $(window).scroll(function(event){ var st = $(this).scrollTop(); if (st >…
-
5
votes2
answers1540
viewsJtextarea receives the append but does not display the text
I’m having trouble using a Jtextarea. I need that every time something happens on my system, information is added in real time. However, he appears nothing. I’ve tried using the setText() and the…
-
5
votes1
answer411
viewsChanging a Dropdownlist via a search
I am creating a registration screen where in a text field I provide a search and the search result will have to appear in a dropdownlist. The project is asp.net mvc4 c# and the code in the view is:…
-
5
votes1
answer5666
viewsConvert Image String to Bitmap Delphi
I have an application that sends photos, these photos are stored in the database (SQL Server) in a varchar(max) as a text. So far so good. Now I need to convert all this text into Bitmap and show…
-
5
votes2
answers84
viewsImplement this
There are several Ivs with the class .categorias and I need to display the element .nav-a only in the div category that I have the mouse on top of it at the moment. What is currently happening is…
-
5
votes2
answers201
viewsBetter/Secure way to transfer sensitive data to an android application through JSON
I am trying to develop an application for android that will work with a database in this case Mysql and I was thinking to make the communication between the database and the application through JSON…
-
5
votes1
answer587
viewsHow do I eliminate the Focus "shadow" from a <button></button>?
After clicking the button this gets a shadow effect (bluish) around the same... I leave an image for you to understand my doubt. How to remove this outer line?…
-
5
votes1
answer243
viewsJavascript-controlled page layout using REST for dynamic content
I was thinking of a different standard to develop my application via browser. As it is an ERP, I need a quick interface that does not need to download the HTML from the server at all times to print…
-
5
votes1
answer749
viewsQuery in mysql with hierarchy
I have a table called 'departments' with the following structure: CREATE TABLE `departments` ( `id` tinyint(255) NOT NULL AUTO_INCREMENT, `company_id` tinyint(255) NOT NULL, `name` varchar(255) NOT…
-
5
votes2
answers310
viewsStatic Methods in Factory Method
I’m creating a class using Factory Method and I came up with the following question:. The use of static methods in Factories? In many examples I found we have to create an instance of the class…
-
5
votes1
answer394
viewsHow are the standard library functions of different programming languages implemented?
How are standard libraries of different programming languages implemented? For example, stdlib.h, or Java.Swing, how the function is implemented System.out.prinln() for example.…
-
5
votes1
answer1682
viewsCreate Roles to Hide/Show Menu
I’m developing my first application in Asp.NET MVC and now creating the restriction and authorization part of users. I would like to do this so that the menus of my application are only accessible…
asp.net-mvcasked 10 years, 3 months ago kLucas 199 -
5
votes2
answers2122
viewswhat is tools:context in layouts files?
Good morning, everyone. In some tutorials I’ve been seeing around, the creators defined this property, 'tools:context' in the main layout manager of xmls. I looked in Ricardo Lecheta’s book, but he…
-
5
votes1
answer560
viewsWhat are Android SDK Extras?
I would like to know what is the purpose of each of the options of the "Extras" of the SDK, to see which ones need to be installed (some I know more or less, I’m not sure). Android Support…
-
5
votes1
answer3850
viewsSmooth scrolling on page
I wanted to know how to do it so that once I click on a page link in the main menu, the page will scroll smoothly to the desired page that was clicked? Example:…
-
5
votes2
answers422
viewsWhat are the possible cases of using a persistent connection?
I’ve been reading about Signalr for the last few days and basically realized that one of its main features is to maintain a persistent server connection with possible clients accessing the server.…
-
5
votes3
answers138
viewsDoes every DIV have a relative position?
I heard from a development professional that: "All div is relative even without you define position:relative" That is correct?…
-
5
votes3
answers1556
viewsFilter word in text with php
I would like to extract some words in a text with php. But they are not fixed words.. I want words that will always change but they will be next to default EX keywords: ID : 123123 Name : Elvis…
phpasked 10 years, 3 months ago Douglas Bernardino 698 -
5
votes1
answer685
viewsCatch the Average of a Relationship Table FieldMany to Many Laravel Eloquent
I have a relationship Many to Many and in the relationship table the field "value". How do I bring the media from this field using the Eloquent? Example: Tabela A a_id Relationship Table a_id c_id…
-
5
votes2
answers686
viewsiterate values in $.each nested Jquery
I’m getting a full table from my server side, looking for td with information I want and save that tr integer in a variable as below: var rowVoo; $(table).find("tr td").each(function () { if…
jqueryasked 10 years, 4 months ago Hermes Autran 899 -
5
votes1
answer186
viewsSimulate the same SQL in the Entity Framework with Linq and Lambda?
Having this data model I want to generate a SQL thus in the Entity Framework with Linq and Lambda? Support data SELECT Pessoa.PessoaId, Pessoa.Nome, Pessoa.PessoaPaiId, PessoaPai.Nome AS NomePai,…
-
5
votes3
answers1012
viewsUser Authentication with Laravel 4
I’m starting to authenticate users with Laravel 4, as a basis for this link. My doubt and the following, all route, I will have to use this way? Route::get('/', array('before' => 'auth'),…
-
5
votes3
answers591
viewsSQL sorting only after the third character
I have a field in my table in Mysql that is string type, with the following data: Coluna 01DV 03DV 04DV If you enter the value 02CA the field lays like this Coluna 01DV 02CA 03DV 04DV I need him to…
-
5
votes1
answer677
viewsHow do I create scheduled events in SQL Server, similar to Mysql’s "Event"?
In Mysql I used this syntax to create a scheduled event: CREATE EVENT 'evento_LimparPaper' ON SCHEDULE EVERY 1 MONTH STARTS '2014-06-3 00:00:01' ON COMPLETION NOT PRESERVE ENABLE COMMENT '' DO BEGIN…
-
5
votes1
answer1591
viewsWorking with Excel data in C#
I need to create an application that reads a small sequence of data available each in an Excel column. My question is whether the best way is to deal directly with SQL uploading the file and then…
-
5
votes1
answer1266
viewsHelp Tables python27
Good Morning, I’m new with Python/Tkinter and I have some projects in mind, but all of them have use of tables along with them, could anyone tell me if there is a library I could use to create these…
-
5
votes1
answer9453
viewsHow do I "link" an already purchased domain to an Amazon Ec2 site?
I own a site that is hosted on Hosttugatech, and on that same site I bought the domain for my site. However, due to problems, I transitioned from my site to Amazon ec2. Now, I need to link the site…
-
5
votes1
answer167
viewsDoubt with relational modeling
I’m setting up a land registry, where these properties belong to an address, which belongs to a neighborhood that belongs to a city. Ex tables: Imoveis: id, endereco_id, etc... Enderecos: id, nome,…
-
5
votes1
answer228
viewsBecause when I write in the div she changes position?
I write something in one of the <div> and it changes position. Because? Here this happening: http://codepen.io/anon/pen/JHIjB HTML: <div class = "wrap1"> <div>algo</div>…
-
5
votes3
answers1376
viewsHow to return most common words from a text with PHP?
I would like to know how best to return the most frequent occurrences of substrings in a string containing text. Example: $texto = "Hoje nós vamos falar de PHP. PHP é uma linguagem criada no ano de…
-
5
votes3
answers18734
viewsCalculate Difference between Dates in SQL Server, with Years, Months and Days output
What would be the SQL (SQLSERVER) that could extract the difference between two dates (the largest being the current date of the system) with output of Years, Months and Days?
-
5
votes2
answers1071
viewsHow to know the name of the Actionresult that called the view?
I wonder if it’s possible to get the name of ActionResult who called the View. I know that normally View has the same name as ActionResult, but in my case, I have a single view for two ActionResult…
-
5
votes1
answer126
viewsHow to modify the default page transition on Windows Phone 8.1?
Hello, I’m having trouble finding a solution to create customizable page transitions on Windows Phone 8.1, because when trying to use Toolkit I read in this blog (http://wp.qmatteoq.com) that there…
-
5
votes1
answer227
viewsHow to avoid duplicity with Canonical link?
I have a question about the use of Link Canonical. Canonical link is a tag element <link> which aims to decrease the amount of Urls with duplicate content. Sometimes we see some Urls with the…
-
5
votes1
answer1434
viewshtaccess for web.config
I switched my website to the platform Windows Azure and their server is IIS and my old one was Apache so the routes configured in htaccess are not working, need to know how to convert this:…
-
5
votes2
answers3778
viewsUsing JSP and JAVA
I’m starting to mess with JSP. But I’ve been using JAVA for some time. I have the index.jsp file which is my page and I have my indexJava.java which is the program itself. I would like to know how…
-
5
votes3
answers51716
viewsSQL Server - Check duplicate data in two simultaneous fields
DBMS: SQL Server 2014; Problem: I need to know which records are duplicated, so that it is checked in two simultaneous fields, that is, if the field "CPF" with the value '83971465842' and the field…
-
5
votes1
answer245
viewsPrinting reports in Firefox using Telerik Reporting
I have a problem, which apparently is bothering other developers who use the components of Telerik.... http://www.telerik.com/forums/print-button-in-firefox-starts-pdf-download And the developers…
-
5
votes1
answer10370
viewsSend email with Acentos BD Uft8
I’m having a problem emailing names from the database. Some names come with accents and when I receive the emails the names are disfigured. The database is as Utf8 - Default collation Php code:…
-
5
votes2
answers2331
viewsHow to use the nhibernate Fluent appropriately?
A problem I have encountered due to the inexperience with this type of tool is HOW to use Lazy load without interfering with the software architecture. I use the following architecture: HMI (Human…
-
5
votes2
answers404
viewscarry out independent process
I’m having trouble loading processes from a python application. Before I was using the subprocess. Popen, but it creates subprocesses of the main application, and in my case, I need to create…