Most voted questions
150,413 questions
Sort by count of
-
5
votes1
answer2249
viewsHow to apply a Loading effect before loading the page?
Is there any way to use Javascript/jQuery to measure the loading of a page and display an image. GIF until it is loaded? I see examples, like Preloader CSS3, which use only CSS3, which makes me…
-
5
votes1
answer627
viewsDo one page websites appear in search engines?
One page sites are listed normally in search engines? There are several articles and it seems that One page sites are not very friendly to searchers, this is a reality? In which cases? Only in…
-
5
votes1
answer210
viewsUpdate BD table by clicking a <li> element
I’m developing a mobile application using jqMobile and Ruby. How to update a database table by clicking on an item in a list. My list is generated like this: <ul data-role="listview"…
-
5
votes1
answer549
viewsAngularjs, how to change the bracketed tags ({{ e }}) to any other character of your choice?
In the Angularjs by default comes the brackets tags ({{ and }}) for handling, wanted to change to %% and %%, how should I proceed ? Example: {{name}} for %%name%%…
angularjsasked 10 years, 5 months ago user6026 -
5
votes2
answers6164
viewsGrab information from object Sender
How does the search for information through the Nder object work and in what situations can I use it, with what types of events? This is to avoid event redundancy. Where can I explore these…
-
5
votes2
answers4323
viewsHow to update BD sqlite java android
How do I add a column in the database of my android java application without losing data from the current database? My code: public DataBaseHandler(Context context) { super(context, DATABASE_NAME,…
-
5
votes1
answer147
viewsHow ajax does to identify classes
I have the following application: function atualizarPrdutos(categoria){ $.ajax({ type: "POST", url: "teste.aspx/InsertData", data: JSON.stringify({categoria:categoria }), contentType:…
-
5
votes1
answer733
viewsHow to send and process N separate forms with ajax without refreshing the page?
How to do when you have N forms with same ID, or CLASS send the data (Submit) process and when finished processing change the color of the <'tr bgcolor="#FFFF00"'> for green '#00FF00'…
-
5
votes2
answers14389
viewsHow to filter a data frame?
I have a 5597 rows and 7 columns data frame. I would like to filter the results of that data frame so that only the lines in which the second column is written "AC" appear. I tried to use the…
-
5
votes4
answers8104
viewsHow do I make a connected Dropdownlist with a model property?
I have my class: public class Topico { public int Id { get; set; } public string Nome { get; set; } public string Observacao { get; set; } } and my Subtopic class public class SubTopico { public int…
-
5
votes1
answer51746
viewsAlign multiple Divs horizontally within a container
I have several div with float: left inside another div, which is their container, according to code: <div id="container"> <div id="box-1" class="box">1</div> <div id="box-2"…
cssasked 10 years, 5 months ago Tiago César Oliveira 2,855 -
5
votes1
answer169
viewsCommon predecessor in a graph of commits
I ran into another interesting problem during an interview. Unfortunately I’m also not sure I found a great (or good enough) algorithm. I thought to share to see if anyone knows a classic solution…
-
5
votes2
answers3228
viewsQuestion and answer with if and Else in Java
No matter what I say, both "yes" and "yes" just show the ELSE. Where am I going wrong? package saudacao; import java.util.*; public class Saudacao { public static void main(String[] args) {…
-
5
votes2
answers281
viewsYield Return inside a using
Consider the following situation: public class MeuRecursoBemCaro : IDisposable { public T FazerOperacaoBemCara(T item) { //Do operação } public void Dispose() { //Dispose logic } } public…
-
5
votes3
answers2113
viewsApplication that does not need to load full page
How can I create an MVC C# with Razor, where I have a Layout and then just update the central content and not the page as a whole. I read some places to use AJAX another to use PartialView. But what…
-
5
votes1
answer156
viewsEWMA volatility in a date.frame
I have a date.frame base_retorno_diario, of 3560 observations on 110 shares (daily returns), I want to create another data.frame from that with Volatility ewma with decay_factor = 0.97 Example of…
-
5
votes2
answers456
viewsCreation of tables with Database scripts
In my application I have to create a table for each user, tables are created the first time when the user uploads a file and with the name table_$id_user. And the only way I see to create so…
-
5
votes0
answers1438
viewsHow to center img within a div?
I am making a grid of images (which will be links to the lightbox), I want 5 images per line, but they have different sizes, so I made the following html for each image: <div class="thumb">…
-
5
votes1
answer303
viewsMultiple types of authentication
In my system I need to have two types of authentication one for common user who will register and etc.. and another for the administrator my question is how I differentiate the two authentication…
-
5
votes3
answers1785
viewsHow to deal with multiple queries?
I have a question related to good programming practices. How to deal with multiple queries on the same page in PHP. For example, the code: $qr = "SELECT historico.*, funcionarios.nome FROM historico…
-
5
votes1
answer275
viewsChange banner every page refresh
I have a list of 3 Banners. I must always show each one different Refresh of Page, even after closing the browser. I’m thinking about doing a fingerprint counter every time a Banner and shown adds +…
-
5
votes2
answers6653
viewsMysql Commands out of Sync; you can’t run this command now
I have a class Import (PHP) which is used to read XML files and insert into the BD. First I got the class builder Import that creates a new connection mysqli: ... $this->mysqli = new mysqli(…
-
5
votes2
answers8457
viewsClose PDO connection
I have worked with other languages before working with PHP and in some the framework when you opened a connection with the database was good to finish it, in PDO so I realized there is a function in…
-
5
votes1
answer633
viewsTools for mobile development
I’m looking for development tools mobile. I started looking at a call Codenameone, for example. However I would like some tips on which tool to choose. I have separated below some criteria that I…
-
5
votes1
answer7213
viewsLibraries for communication between Arduino and Android
I am a beginner Arduino programmer trying to make a connection to my mobile phone (Android) and / or my laptop using Java. I’ve done some research and so far I’ve found three examples of how this…
-
5
votes2
answers3305
viewsHow to search images in Google with Javascript?
I am developing a web page where it was of interest of the project to display some images of Google, where these would be displayed from some significant name. I was reading something related and I…
-
5
votes2
answers672
viewsEvent fires second only, after sequence of user actions
I have a form where there’s a table. At the bottom of this, there are buttons to manipulate the table rows, and only the selected ones will be affected. Steps to play problem jsfiddle to check the…
-
5
votes1
answer1220
viewsSend "@Html.Beginform" to another area controller. Asp.Net
I own a controller in a Area calling for "LoginProfessional", with the actions Index, Logon, Logoff. I make a RenderPage calling for the Index in Area root of the project, but when I click on the…
-
5
votes5
answers13518
viewsHide the keyboard
As soon as the user clicks on one of EditText from my Android app, the keyboard appears, however, it does not disappear when you finish typing and click off it. I would like to know which method…
-
5
votes3
answers1018
viewsSerialize XML for REST API with Correct Accent
I am creating a small read-only REST API service on a client system. It uses Spring MVC to fulfill the requests and the purpose of each request is to return a JSON with certain information to…
-
5
votes1
answer892
viewsHow to create Cover in a Report using iReport
I am using iReport 5.5.2 and have tried in many ways to add a cover to the report, which is necessary but unsuccessful. I tried adding the isTitleNewPage attribute to the iReport Title band, but it…
-
5
votes4
answers2291
viewsWith Delphi, how can I disable the ESC key for all apps?
I need to disable the esc for all programs using Delphi. Probably the form has to be always active and I disable the key in a way similar to the example below. My code so far: procedure…
-
5
votes3
answers394
viewsHow to fill an Object value automatically in php?
I need a method to auto-fill my VO by receiving as parameter a mysql database result set and php’s PDO class. Example of VO class Pessoa{ public $nome; public $idade; } The idea is to incorporate…
-
5
votes5
answers7269
viewsUse if inside foreach
I’m trying to change the order in which the results appear within a loop using foreach. What I need is for the numbers larger than five to appear first, followed by the rest of the numbers. So I…
-
5
votes2
answers338
viewsSort relation "Many To Many" using as base field of another table
I am making a virtual store, to know better the Laravel framework, and I came across the following situation: I have a table called products to store product-related information. I also have a table…
-
5
votes2
answers8876
viewsAccents and Special Characters in Ajax jQuery
I have a query that is made with Ajax request via jQuery. In the fields when I type a character like "ç" and send the request to the server, it is arriving with the character in another format. Ex:…
-
5
votes1
answer122
viewsIs there any advantage in avoiding type specification redundancy?
Given the following code: public override Entidades.ControleAcesso.Perfil PreencherEntidade(IDataReader dr) { return new Entidades.ControleAcesso.Perfil() { Codigo =…
c#asked 10 years, 5 months ago okevinlira 927 -
5
votes2
answers6687
viewsHow to Save Path of a Photo Taken from Camera on Phone in Path or String
I need to take the path that was saved the image and save it so that whenever I launch the app appears the image in an Imageview. my code is this public void onClickCamera(View v){ Intent…
-
5
votes2
answers586
viewsError with CSS, bar appears where it should not
I’m working on a college project where I need to make a website for a pizza place. I’m making an embryo of the site, but when I add the navigation menu, a bar appears on top of the div which should…
-
5
votes2
answers1679
viewsSearch System - Select within another
Hi, I’m running a search engine, but I’m kind of a layman when it comes to querys. The method I thought to refine the search, which in this case would be a simple search between two fields of a…
-
5
votes2
answers2780
viewsLog into the Nfe portal with Curl and PHP
I’ve done a lot of research on this and so far I haven’t been able to do anything concrete. Is this possible? I want to make a form with the key access field and captcha code to be filled in. will…
-
5
votes3
answers1664
viewsHow to create a plugin for jQuery’s $() function
I noticed that you can create plugins in various jQuery functions like AJAX, CSS (using the cssHooks), animate, create new functions, among others. But I wondered if it is possible to create a…
-
5
votes1
answer9688
views -
5
votes1
answer275
viewsMysql Transactions written in the same table
On seeing this answer I was left with this doubt: If we have 2 transactions to be treated at the same time, in the first (A) we are writing in table x, in the second (B) if we try to write in table…
-
5
votes2
answers2135
viewsHow to replicate elements dynamically?
I’m trying to create a series of repeated elements without knowing the amount of repetitions that will be needed. I have an input in which the user will report a numerical value above or equal to 1…
angularjsasked 10 years, 5 months ago user3388 -
5
votes2
answers1701
viewsSelenium problem with get!
What I desire Open a browser using Selenium, accessing a website (e.g..: http://www.google.com) driver.get("http://www.google.com"); and write a search in his text field element.sendKeys("Cheese!");…
-
5
votes5
answers2481
viewsDo not allow saving duplicate records
I am developing a system using ASP.Net MVC and Entity Framework. How do I not allow equal data to be recorded in a table? For example, don’t allow login: x to be registered more than once.…
-
5
votes2
answers6602
viewsInsert data into database using mysqli
How do I insert this data into the database mysqli: print $data->access_token."<br />"; print $data->username."<br />"; print $data->full_name."<br />"; print…
-
5
votes2
answers1007
viewsWindows Ping should return only response values
I’m doing a script and I need you to Ping or Fping in windows return only the values of time, without the ms, guy: ping 8.8.8.8 Disparando 8.8.8.8 com 32 bytes de dados: Resposta de 8.8.8.8:…
-
5
votes2
answers498
viewsView navbar only when user scrolls up on iOS
I’m using the technique of Marius Craciunoiu to display my entire navbar when the user scrolls the screen up. So, here’s my code Javascript (using jQuery): var delta, didScroll, lastScrollTop,…