Most voted questions
150,413 questions
Sort by count of
-
5
votes2
answers3054
viewsHow to use special characters in strings?
What are the characters for ~ and @ in the string of path in ASP.NET. Example: StreamReader srFile = new StreamReader(@"\\server\pasta\arquivo.html");…
-
5
votes2
answers549
viewsImport events in Google JSON format
I want to import events from a non-public server-side Google Calendar (PHP) in JSON format. Since I only want to receive information and do not need to edit/create events I assume there is a way…
-
5
votes3
answers208
viewsComposition: use @class or #import?
I recently had a problem with Unknow type name 'Class', 'cause I was doing import in the header of 2 classes. I discovered that this is a classic error of headers importing headers. I was directed…
-
5
votes9
answers2644
viewsBest practice for creating if
Which of the two code options has better performance? I’m going to show you a very simple example, usually there’s more code inside the if. To) string mensagem = "OI"; if(exibirAdeus) mensagem =…
-
5
votes1
answer1387
viewsDisplay a message when Listview is empty
I have a Listadapter that extends a Basedapter that works perfectly. When it is empty I wanted a message to appear any. Where to implement this validation?
-
5
votes1
answer254
viewsWhat is a client-side Prepared statement?
I am starting to develop a page using PHP and, as I am still knowing the language, I decided to search which module to use to make the connection to a Mysql database. From of that answer, found that…
-
5
votes2
answers704
viewsComponent pe:Masterdetail does not work on dynamic pages
I’m developing a web app that aims to work like Facebook. During the navigation the page is not reloaded, loading via AJAX only the central content. I’m using Primefaces 4.0 and Primefaces Extension…
-
5
votes2
answers147
viewsIs there in the framework . Net, any delayed reading class?
I wonder if in . Net there is some class that allows me to tell her how to read a data, but that DO NOT read immediately... only later when requested, this class reads and stores the value, in case…
-
5
votes1
answer164
viewsFacebookoperationcanceledexception error in Facebook SDK Friend Smash example game
I followed the tutorial from Facebook SDK to implement the game Friend Smash. In Activity Home has a button to view the Scores. However, when clicking it shows a connection error on the screen:…
-
5
votes2
answers483
viewsHow to show the files that need to be commited?
How to show files that need to be "commited"? Or, there’s some program, for Linux-based distro, that behaves like the Eclipse Git module, that shows me the files that need to be added and "commits"?…
gitasked 10 years, 9 months ago Luiz Picolo 649 -
5
votes4
answers359
viewsDifficulty storing object property in Javascript
I’m having a hard time (which is probably pretty silly) storing a value in a Javascript object property. I’ve done something similar recently using this.propriedade = valor within the "constructor"…
javascriptasked 10 years, 9 months ago Luiz Vieira 34,160 -
5
votes3
answers2323
viewsHow to know if you are resize in width or height?
Is there any way to see if the resize() window is occurring in width or is occurring in height?
-
5
votes3
answers63205
viewsImage with 100% width
I have the following CSS statements applied to an element: .minhaClass { float:left; width:100%; height:560px; background:url(../imagens/corpo/imagen.jpg) repeat-x top center; } This will happen on…
-
5
votes1
answer174
viewsHow to export inside the subGrid?
Information: I’m using the jqGrid(4.54), and also implemented the SubGrid, after opening the SubGrid, it is necessary to export the contents of the open table. Question: There is a way to implement…
-
5
votes2
answers4564
viewsInternal search form
I have an internal search form on the site. <form method="get" id="searchform" action="/search/"> <div> <input type="text" value="Pesquisar..." name="q" id="s"…
htmlasked 10 years, 9 months ago Ennio Sousa 686 -
5
votes2
answers1093
viewsHow to compile a *.c file with Clang to signal problems?
In GCC I typed in the terminal: gcc -wall -o nomedoarquivo.c nomedoexecutavel or if you only had 1 file . c [OBS.: typed "a" to make it easier in the]: gcc -wall -o *.c a The restriction I used, if…
-
5
votes1
answer162
viewsHow to use github live code for development, testing and demos?
How can I use Github code in real time in a demo or in development? When I try to use code in jsFiddle or jsBin I get the error: Refused to execute script from…
-
5
votes6
answers636
viewsHow do you turn the average to red?
How do I make the average result turn red if the value is less than 20? Follows the code: <?php function media($p1,$p2,$p3) { $resultado = ($p1 + $p2 + $p3)/3; return $resultado; }…
-
5
votes2
answers252
viewsSlideshow with images from Urls
I was developing a slideshow loading images from Urls I found a library developed by a Russian, the Universal Image Loader, however this slideshow will be used in the application in the version of…
-
5
votes7
answers7710
viewsHow to send email automatically?
How to send emails automatically using PHP? I have a form that receives several dates and when it was 10 days before the deadline, send a message to several people with the warning. I’ve been told…
-
5
votes4
answers2060
viewsHow to create a PDF stream in PHP?
Is there any alternative to implement a stream of Pdfs files that are on the server? I would like the browser to download the pdf as it is viewed. Same as the preview of google books…
-
5
votes4
answers556
viewsWhat is the fastest, most memory-saving type?
I am making a game of navinha in C, and therefore need to put in a vector a large amount of projectiles. These projectiles have at least one position and speed to make calculations, and I’m trying…
-
5
votes4
answers4278
viewsMysql performance with Innodb in large data mass table
I currently have a table with about 6 million records that in turn perform a large amount of I/O operations, so in the design of the project I chose to use the Innodb instead of Myisam in Mysql,…
-
5
votes2
answers2102
viewsHow to compare Date class to System.currentTimeMillis() in Java?
How to compare if a Date object, for example "2014-01-29 00:00:00" is larger than the date of the current system, for example System.currentTimeMillis() in Java? I would like to do something like…
-
5
votes1
answer243
viewsGet an image of the body of an email, write to the database or in memory and show it in a new Viewer
I’m trying to build an E-mail viewer. To do so, I access my IMAP server and get email using the DLL ComponentSoft.Net.Mail. After getting the message, I intend to present it in my viewer. However, I…
-
5
votes2
answers6149
viewsHow to put two backgrounds on the same page?
I am creating an HTML page with CSS, and would like to know how to put two backgrounds in the same HTML page via CSS. I have this image: I want to put this image on top, only it’s not high enough to…
cssasked 10 years, 9 months ago Marco Antonio 95 -
5
votes1
answer235
viewsFolder Structure for Backbone without Requirejs
The goal Assemble a sufficient and intelligent folder structure for an application Rails 4 + Backbone. The problem How am I in the Rails 4 and I yet I can’t handle the Asset Pipeline of him + the…
-
5
votes1
answer717
viewsCapture errors and PHP Exceptions
Setting I know I can configure the logs so that the errors and exceptions are recorded, this is nice, but sometimes it is too boring to read these files. Question How to capture the mistakes and…
-
5
votes2
answers353
viewsRemove matrix input by its value
To remove an input from an array, we can use the function unset(): <?php $arr = array(1, 2); unset($arr[0]); var_dump($arr); /* Resultado: array(1) { [1]=> int(2) } */ ?> Question How…
-
5
votes3
answers3831
viewsCheck if number is integer in Access
How to check if a number is integer in Access VBA? I tried to If Int(Me.Numero) Then Msgbox "É inteiro" End If But it didn’t work. I wanted if I typed 8.5 it returned "It’s not whole". The field is…
-
5
votes3
answers1058
viewsCreateelement() method in PHP
In javascript, I can do: var span = document.createElement('span'); span.innerHTML = 'foo'; span.className = 'bar'; Is there something similar for you to create a ElementNode in PHP, at least with…
-
5
votes4
answers264
viewsWhy does Cakephp set _method to PUT instead of POST?
I recently upgraded my Cakephp project to version 2.4.5. Since then, some of my forms have been with the input hidden _method set to PUT automatically. The only way around this is by setting the…
-
5
votes2
answers126
viewsRuby application that keeps reloading source files
How can I design my application so that whenever I modify and save a file . Rb the application will behave "the new way"? I am making an application that reads the command, executes, prints the…
-
5
votes1
answer170
viewsRead files in a directory sorted by creation date
I have the following code to include all PHP files I find in a directory: if (is_dir(CONF_REL_PATH_BANANAS)) { foreach (glob(CONF_REL_PATH_BANANAS.'/*.php') as $file) { require_once($file); } } When…
-
5
votes1
answer736
viewsJcombobox does not allow item change
I have a JComboBox which allows selecting only the first item clicked, in case I want to change selection it does not allow. In the jPanel There are two other combos that are identical with the one…
-
5
votes1
answer550
viewsHow do I validate an email field on Dart?
I created a simple project in Dart whose intention is to validate an e-mail field when a button is clicked, showing an error message. However, the function Regexp.hasMath is always returning false.…
-
5
votes1
answer355
viewsDoubt with relationship One to Many
I have two tables, produtos and categorias. In my view of produtos i want to show the category name of that product, not its code. Model de Categoria Category.php namespace…
-
5
votes1
answer114
viewsHow to select partially distinct lines?
I have a table whose column reference contains constructed values as follows:: Reference / Color / Size / Gender Examples: JOHN/WHITE/52/MALE JOHN/WHITE/51/FEMALE JOHN/BLACK/52/MALE…
-
5
votes4
answers1135
viewsJavascript error in Wordpress admin after upgrade to version 3.8
I recently updated an installation of Wordpress 3.0 for 3.8 and the features of drag and drop stopped working. I noticed two Javascript errors on the page in the file load-scripts.php indicating a…
-
5
votes3
answers1977
viewsHow to delete a file marked with the "Read only" attribute?
I am trying to delete a file that is marked with the attribute "Read only": Whenever the file is marked with the said attribute, I get the following exception: System.Unauthorizedaccessexception was…
-
5
votes1
answer430
viewsHow to determine the final distance of an element from the footer?
In the case in question would be a sidebar, which from a certain height of scrolling from the top, receives position:Fixed, but as the scroll continues it is hidden behind the footer of the site.…
-
5
votes3
answers2236
viewsIs there any way to make a standard browser tooltip appear without putting the text in the title tag and without tooltip plug-in?
I am asking this because the application is almost ready and used a plug-in that uses the tag title. This plugin causes clicking on the element to open a popup (in this case a confirmation box),…
-
5
votes4
answers640
viewsInstallable PHP application architecture
I am trying to improve my PHP applications. In this goal I would like to create an installer for a web application, a website for example. I already know linux packages like rpm and deb, that’s not…
-
5
votes2
answers399
viewsHow to show value of an attribute in content: of a pseudo-element?
I want to show the value of an attribute as text. <div title="12:56pm"> <span data-measureme="1"> <span>hi</span> </span> </div> Example that doesn’t work in…
-
5
votes2
answers879
viewsHow can I prevent a user from submitting the same form multiple times?
I have a form on a page, sometimes users can double-click the button to submit the form... The form is a @using (Ajax.BeginForm(...)) { } How can I prevent that from happening?…
-
5
votes4
answers18077
viewsHow to organize auto-increment numbering of a column Id of a table in Mysql?
I would like after each insert or delete from my table to use an SQL script to rearrange the Ids. It’s kind of like this now: Id Nome 1 João 3 José 5 Ricardo I want to leave it like this: Id Nome 1…
-
5
votes1
answer839
viewsWPF - The Selecteditem property, from Combobox, is not working properly
Note: This question was the translation adapted from the original question, so all the Updates of the original question are together in this text, sorry for that, but the time is short and I can’t…
-
5
votes2
answers256
viewsProblems with Zend layout
I have a view that is formed by a layout different from the pattern in my project, Seto it this way: public function init() { //Colocando o layout default…
-
5
votes2
answers4407
viewsIn SQL Server how to convert string uppercase part lowercase based on tab: ?
I need to make a script to convert all user records into a table in this format (single field): INFORMATICA\desenvolvedor ADMINISTRACAO\contador That is, before the uppercase bar and after the…
-
5
votes1
answer2169
viewsProblems with slowness Delphi and Firedac
I have an application developed in Delphi XE and a month ago I changed the whole persistence structure that used to use ADO for Firedac. In the compatibility of the new persistence component I used…