Most voted questions
150,413 questions
Sort by count of
-
6
votes2
answers174
viewsHow in ASP.NET 5 is this property defined?
In ASP.NET 5 in the method Configure class Startup we can receive in the parameters a reference to an object whose class implements IHostingEnvironment. One of the properties of this class is…
-
6
votes1
answer223
viewsComparison of PHP schedules
date_default_timezone_set ( "America/Sao_Paulo" ); $dtz = new DateTimeZone('America/Sao_Paulo'); $dt = new DateTime('now', $dtz); $offset = $dtz->getOffset( $dt ) / 3600; $por_do_sol =…
-
6
votes2
answers2437
viewsHow to properly save an image URL in Mysql database?
I am testing the targeting of images with the URL. However, during the tests, the URL was returned with changes as can be seen below: URL inserted in the database:…
-
6
votes3
answers1383
viewsLegacy of screens - Android
Wanted to create a screen(Activity) base for the android app I’m developing, so that all other screens inherited from this base. Thus, the screen would have an area reserved for the top of the page,…
-
6
votes4
answers361
viewsDecrease span field value with preg_replace
I am trying to change all the values of the fields it contains span class. Example the site is like this: <div id="isOffered"> <a class="price addBetButton footballBetButton"…
-
6
votes1
answer385
viewsProblem with long Polling
Well I did one here script to fetch information from real-time posts the database but it works if I add it directly in Mysql works well but the page when I go to insert a text does not work with…
-
6
votes1
answer246
viewsProgress bar for slide jcarousel
// Carousel $(function(){ $(".peq-carousel").jCarouselLite({ bntNext: '.next', bntPrev: '.prev', visible: 7, auto: 3000, speed: 800, vertical: true }); }); // Barra Progresso function startbar(){…
-
6
votes1
answer291
viewsHow to build a Web2py query by quantifying the difference between days
I’m using Web2py (Python), query using the DAL I wonder if it’s possible to pick up the difference in days, something close to that Example #!/usr/bin/env python # -*- coding: utf-8 -*- resultado =…
-
6
votes2
answers1271
viewsDoes the memory consumption of a variable increase each time it is used?
I have been trying to understand more about the memory consumption of the created variables. And I even did some tests here on my computer with variables! I then created some variables and used it…
-
6
votes2
answers278
viewsImage Cutting
I wanted to upload images with Dynamic Crop. I’ve looked at tutorials and etc, and I can’t do. For example, I wanted to load an image by input and then open a modal with Crop Dynamic, like Facebook,…
-
6
votes2
answers1261
viewsIs there any way to detect that an attribute has been changed in HTML?
I wonder if there is a way to check by javascript whether an attribute of an element has been changed or not. For example: If I have one input, I place in it the attribute required, and someone goes…
-
6
votes1
answer732
viewsDifference between scheduleAtFixedRate and Schedule in the Scheduledexecutorservice class
What’s the difference between scheduleAtFixedRate and schedule? I am developing an Android app that I want to be 50 minutes late before starting an action and repeat that action in the next 50…
-
6
votes1
answer345
viewsForce Javascript to cancel field registration with required (HTML 5)?
I have a registration field that are required to be completed via HTML5. However, by clicking the unsubscribe button, HTML5 does not let Javascript return to the previous page! = ( Requires me to…
-
6
votes2
answers378
viewsForm data does not send to email
I made a short form to send e-mail. But when I do the sending test nothing arrives in the destination email. As I do not have much experience in this part I could not identify the error, since when…
-
6
votes3
answers1799
viewsWhat a difference between Dropdownlistfor and Dropdownlist
What a difference between Dropdownlistfor and Dropdownlist? And when and which to use?
-
6
votes3
answers301
viewsWhat is the advantage of using include de array vs configuration file?
I have observed some codes where the programmer does the following: /** Arquivo A.php */ return array('databaseName' => 'bancoTeste', 'port' => 5208); /** Arquivo B.php */ $configs =…
-
6
votes3
answers11729
viewsInsert line break in field text into database
I have a table with a field type text, the field stores a string imported via archive .csv, the same was inserted without line break and I’m trying to insert it, I was able to identify that the line…
-
6
votes2
answers618
viewsSending model along with uploading files
I have a web API built with ASP.NET Webapi, I have a model that references a file URI (for example representing a photo in a photo gallery, or a product in a catalog) and I need to send the data to…
-
6
votes1
answer263
viewsInsert into an array between certain values
I have two values in time format, 20:03:02 and 20:03:35, who are in a array in Lua. hora_array={"20:03:02", "20:03:35"} The difference between the two values is 33 seconds (20:03:02 - 20:03:35 =…
-
6
votes2
answers8986
viewsFunction to mark/deselect checkbox, jquery
How can I check/uncheck checkbox in jQuery by clicking a button and at the same time giving an Alert reporting whether it has been checked or unchecked..
-
6
votes2
answers4369
viewsFunction that returns screen resolution
I need a Java function that returns the resolution of my Android device.
-
6
votes2
answers13289
viewsHow to indent code in Android Studio?
How do I indent my XML and JAVA code in Android Studio? I would also like to know how to increase the source of the code.
android-studioasked 10 years ago Everton Luis 1,499 -
6
votes1
answer1021
viewsJava Graphics Drawing Tool
I wonder if you have any tools with Ireport that I can use to make a graphic similar to this image. I’ve used Jfreechart, but I couldn’t make it look like this! The bar values have to be at the…
javaasked 10 years ago Renato Romão 191 -
6
votes4
answers1483
viewsRelease link after completing form
I’m a beginner in Javascript/jQuery and I’m wondering how to release a link right after all inputs are filled, otherwise it stays locked: Follows HTML: <form id="formulario">…
-
6
votes2
answers4285
viewsJust read the first character of a string
if ($myrow['Noticia'] !== '<' && $myrow['Noticia'] !== 'Nao') { echo "Noticia mal colocada!"; } I have this code and I’d like you to just check the first character of the column Noticias…
phpasked 10 years ago thecreator 475 -
6
votes2
answers145
viewsIs it necessary to use metatags on administration pages?
It is necessary to have the meta-tags "Description", "Keywords" on site administration pages, as these will not be indexed?
-
6
votes2
answers233
viewsIs there any way to handle all Exceptions of the software?
I’m creating a DLL for use in various projects of mine. I created a method that captures Source, Message and other variables that I defined, assembles an email and sends them to myself. (a kind of…
-
6
votes1
answer592
viewsSlim Framework PHP Routes
Hello folks I’m having trouble using the Slim framework... when I try to access via get the root "/" I can normal, but when I try to access other methods like "/hello" it simply n goes, error " Not…
-
6
votes2
answers262
viewsInsert data into database according to number of checkboxes
I have a form where I have fields with chekboxes and I want to know if it is possible to do so many inserts as selected fields. That is if the user selects 4 checkboxes do 4 inserts, is possible? If…
-
6
votes1
answer315
viewsHow to adjust navigation arrows
I need to adjust navigation arrows of a page I have, but all the changes I make I can’t get it right, I need to initially make them bigger and set the size as 36px for 34px, the size was correct,…
cssasked 10 years ago adventistapr 5,498 -
6
votes2
answers215
viewsWhat are Git mod sets really?
I’m starting now to use Git and one thing I heard in the course I’m looking at is this: what Git actually stores is not the different versions of the files, but rather sets of modifications. That…
-
6
votes2
answers598
viewsCreate HTML Blocks in Wordpress and call them in the Post or Page
We have a real estate website where we use ACF (Advanced Custom Fields) to better manage real estate pages. One of the fields is the Price Chart. A price list of a condominium serves for several…
-
6
votes2
answers433
viewsHow to deploy using Grunt?
I want to deploy via FTP using Grunt, I saw some tutorials but I don’t know how to configure the Gruntfile.js nor the task I should use to deploy and also if I need other resources to deploy, such…
-
6
votes1
answer115
viewsRunning an app under development on a real device impairs its performance?
I’m worried about running my app in development on my device. Could someone tell me if this undermines performance, leaves a lot of junk, leaves doors open and vulnerable on it?
-
6
votes1
answer3433
viewsSlideshow with Mysql BLOB Images
I am mounting an image manager and I need to display these images on a TV, through the browser by a slideshow. I can assemble a slide show setting each image address, but I have several images in…
-
6
votes4
answers15217
viewsView PHP date and time
I am trying to display the exact time with PHP in the following format. Date: YYYY-MM-DD Time: 00:00:00:000 <?php setlocale( LC_ALL, 'pt_BR', 'pt_BR.iso-8859-1', 'pt_BR.utf-8', 'portuguese' );…
-
6
votes3
answers6396
viewsHow to display an image on the screen
I’m doubtful to display an image on the screen on android. example. to call a sound use the following code: Button button1; MediaPlyer mp; button1 = (Button)findViewById(R.id.button1);…
-
6
votes4
answers53244
viewsDifferent ways to count record numbers in Mysql
There’s a difference in performance if you do: //seleciona todos os itens da tabela $cmd = "SELECT * FROM produtos"; $produtos = mysql_query($cmd); //conta o total de itens $total =…
-
6
votes1
answer834
viewsProblem with clickable area of links in a diagonal layout
I have the following problem: I have a ul and in each li there is a link with display block and defined height and width. I called the three links from #a1, #a2 and #a3 (in fact, the styles are…
-
6
votes3
answers13619
viewsHow to split a string into an array in Javascript?
There is an elegant way to split a string into an array based on the example: var x = "FAT* FAT32*"; And result in something like this: x[0] = "FAT*"; x[1] = "FAT32*";…
-
6
votes2
answers202
viewsdata.frame hierarchy for nested list in R
I got the following data.frame d: x <- data.frame(a=letters[1:3], b=letters[4:6], c=letters[7:9], stringsAsFactors=F) d <- tidyr::expand(x) d Source: local data frame [27 x 3] a b c 1 a d g 2…
rasked 10 years, 1 month ago Julio Trecenti 987 -
6
votes3
answers325
viewsPrevent the system from locking during a batch e-mail
I am developing a system that sends mail in batches to customers, but if the user who is operating the system click on any part of the window during the process, it appears that the system is not…
-
6
votes3
answers326
viewsbitbucket - doubt about workflow, branchs and merge
My team and I started working with git for version control (later I know), and used bitbucket as a remote repository (because it allows free private repository). Well, I have some questions for the…
-
6
votes1
answer91
viewsCode considered only at compile time can contain Undefined Behaviour?
When designing a function that adds up two values of any distinct classes, I can write the following in a generic way: template <typename T, typename U> decltype((*(T*)0) + (*(U*)0)) add(T t,…
c++asked 10 years, 1 month ago Guilherme Bernal 20,024 -
6
votes4
answers4566
viewsHow do I update my data in the table using the Entityframework?
var contactado = ContactadoRepositorio.ObterListaContactadoPorCodigo(procedimentoVM.CodContactadoPessoa); //obtenho o contactado pelo id obtido; foreach (var c in contactado) { var contactadoPessoa…
-
6
votes2
answers357
viewsBase62 coding
I wonder where I can get some PHP implementation, similar to MIME Base64 PHP but only with A-Z, a-z and 0-9 characters. The Base64 from PHP is quite versatile, but I need an algorithm that doesn’t…
-
6
votes3
answers229
viewsForeach returning unconverted array
I’m using this little code to capture words with minimum 2 characters, but it returns me: Notice: Array to string Conversion in echo $word; preg_match_all("/[a-z0-9\-]{2,}/i", "oi voce tem problema…
phpasked 10 years, 1 month ago Vinícius Lara 3,750 -
6
votes3
answers6367
viewsHow to disable Developer Tools options in Chrome
Supposedly Facebook uses a code similar to the one on the link http://snapbuilder.com/code_snippets/snippet.php?sid=174&printable=1 to disable and put a warning to your users. Since the above…
-
6
votes3
answers719
viewsAdapt JS Code to IE8 and IE9
How can I make this code below work on IE8 and IE9, because it only works on 10 $("#input_file").change( function(event) { var tmppath = URL.createObjectURL(event.target.files[0]);…
-
6
votes3
answers1870
viewsSearch book details with Google Books API in PHP
I’m using the Google Books API to get the details of a book: And to get the details of a book, by searching for the name, I’m using the following example provided by them, of this case the file…