Most voted questions
150,413 questions
Sort by count of
-
6
votes1
answer3389
viewsHow to upload Dynamic Images to JSF?
What is the best strategy for uploading and using JSF images? I don’t want to use the field blob in the database, then how do I resolve the problem of the images storage folder, since the file . War…
-
6
votes2
answers2482
viewsI can’t define margin-top/bottom/right for block element, why?
I have an element <p> within a <div>, thus: HTML <div> <p>texto</p> </div> CSS div { width: 30px; height:30px; background-color: green; } p { width: 30px;…
-
6
votes1
answer322
viewsProblem creating "Zend_session"
I’m trying to create a session on Zend as follows: if (isset($_POST['login'])) { Zend_Session::start(); $session = new Zend_Session_Namespace(); $login = explode('-', $_POST['login']); $codigo =…
-
6
votes2
answers809
viewsHow to load a view into a layout?
I’m trying to carry a view within a layout, follows my controller down below: class IndexController extends BaseController { protected $layout = 'admin.layouts.default'; public function index() {…
-
6
votes1
answer4013
viewsProblems with the Phonegap
I discovered this Phonegap not long ago, but today I got the urge to meet him. Well, as I said on the site, I needed to download Nodejs and execute a command on the CMD for it to install Phonegap.…
apache-cordovaasked 11 years, 1 month ago aleDsz 325 -
6
votes1
answer2022
viewsHow to pass values of an Ajax request to Google Chart?
I started messing with Google Chart today, and I can make the chart by putting the values in hand outside the requisicao ajax. Only that my application needs this data coming from a database and I’m…
-
6
votes2
answers1434
viewsWhat are the best practices for working with Legacy Database in Django?
I have a legacy database and would like to know what good practices for table names, or tips on how to use inflections (like in Rails) for Django in the latest version.
-
6
votes1
answer236
viewsBinding Facebook SDK 3.6 for Android
In my project with Xamarin, I need to use the Binding from Facebook SDK for Android version 3.6. However, I could only find the Binding of version 3.0, outdated. Does anyone know where I can find…
-
6
votes2
answers606
viewsCompetitive when using time table
I am using a vba code that transfers some data to an auxiliary table, handles and back to the original table. How do I solve the competition problem? That is, I didn’t want two users to use at the…
-
6
votes1
answer1212
viewsIs it possible to create a Rigger that invokes a web service?
I am working on the integration of two databases. It is a system that needs the status of employees in HR. For performance reasons, I can not point out all queries that depend on employees for the…
-
6
votes1
answer678
viewsRead SMS history log on iPhone using Xamarin
I need to read the SMS history log sent/received on iPhone, and your time spent on each shipment. I don’t know how to do it and I couldn’t find any material in Portuguese about it. Can anyone help…
-
6
votes1
answer74
viewsConflicts with the Confideuser class
In my model User, left my protected $table = 'usuarios' and in auth.php the same thing, but when calling the method save() of the Eloquent, he recognizes the table 'users' and not 'users' as I…
-
6
votes2
answers2962
views.htaccess with subfolder other than root
I was working with this structure and with this htaccess: structure config/ logs/ www/ app/ bootstrap/ public/ packages/ .htaccess index.php ... vendor/ .htaccess ... htaccess <IfModule…
-
6
votes2
answers3727
viewsConfigure Jenkins to build each commit?
I have Jenkins installed correctly and building every 30 minutes, but I’d like to build every commit in the svn repository. I tried to configure the option: Check the SCM periodically, but I was…
-
6
votes2
answers967
viewsHow to create a test with Rspec to verify user feedback?
That one describe below is the default that Rspec creates. I have a hard time working with TDD (Test Driven Development) and it is difficult to understand the whole procedure. For example, I need to…
-
6
votes4
answers3090
viewsRegex for Cifras site as Cifraclub
I need a Regex that works well, and in JS, to take only the chords of a cipher like this: http://www.cifraclub.com.br/gui-rebustini/sou-um-altar/ The problem is I never messed with Regex. Any idea?…
-
6
votes2
answers288
viewsHow does Laravel 4 cache queries work?
I’m trying to cache my query, but I don’t know how to recover the data later. Another question: when the number of rows in the database increases, it automatically caches the query, or every time I…
-
6
votes1
answer130
viewsgetcontext reading error when inheriting the createjs. Sprite class
I started developing a HTML5 game using the library Easeljs. When creating a class called Bot, which will contain the code of the robot used in the game, got the following error: Uncaught TypeError:…
-
6
votes6
answers1001
viewsError installing Composer in Laravel 4 Project
I’m starting out in the Laravel world and I’m having a problem spinning the composer install in the project. Running the command shows the following error: D:\htdocs\cpi2>composer install Loading…
-
6
votes3
answers490
viewsScroll bar not hidden in Internet Explorer
I’m creating a site where I use various elements div page size, and links in the top menu that directs to these div, making a page scrolling effect every click. My problem is that in Internet…
-
6
votes2
answers1129
viewsHow to check for errors in an XML
I’m using the function simplexml_load_string to load a dynamic XML, but if there are formatting errors in this XML it only returns me false and I don’t know where the bug is, is it possible for me…
-
6
votes1
answer576
viewsHow to detect the error cause: 'The requested URL returned error: 503'?
I’m working on developing a web-site where I get back and forth the following error that I can see through the Firebug: The requested URL returned error: 503 Is there any way to find out the origin…
-
6
votes3
answers427
viewsHow can I include the 'Submit' button in the 'POST' matrix generated by 'serialize'?
On the forms, I have the button like submit that when clicked will be intercepted by jQuery in order to make validations to the content of the form before sending it to PHP process via Ajax. Form…
-
6
votes2
answers2183
viewsHow to set the cursor position in an editable element?
I have the following structure: <pre id="editor" contenteditable="true"> “Always pass on what you have learned.” - Yoda > {|} -- X </pre> I want when someone clicks on a button I put…
-
6
votes1
answer394
viewsEfficient data structure for high color concurrent problem
As part of a test I was asked to develop an application to manage high Scores in environments with high competition. This application should not persist on disk or use libraries and frameworks…
-
6
votes1
answer681
viewsLetter after a number, what is this called?
What’s the name of it? double d1 = 0d; decimal d2 = 0L; float d3 = 0f; And where can I find a reference of the characters I can use? If I want to make one cast of 0 for short, there is some letter…
-
6
votes1
answer3199
viewsWhat does <T> mean in . NET?
I’m working on a project and I saw a lot of code like this public class ExemploCollection<T> { ... } And I don’t understand what this <T> means. What’s the name of it, what am I looking…
-
6
votes2
answers230
viewsHow to avoid animation of elements that will not fit in the width of the screen?
I created an animation in jQuery for a customer’s Christmas card. However, on 1024x768 or 800x600 resolution screens, elements appear in strange places: The code below hides the balls at startup,…
-
6
votes4
answers3358
viewsHow to create an element and after a few defined seconds remove it?
I need to create a label warning like this: <p id="lblAviso">Salvo com sucesso</p> And remove it after 3 seconds. How to do this with jquery? Needs some plugin?…
-
6
votes1
answer517
viewsIs there a safe way to check the loading of frames in an HTML page?
Some time ago I built a tool with HTML and Javascript to help debug a family of web applications. Basically, the tool consists of a static HTML page and a collection of scripts that load a given…
-
6
votes2
answers173
viewsHow to force the version of a Maven plugin?
I have such a Maven project, that at the time of running the build, an A plugin runs. This A plugin depends on a B plugin that is pulled, which in turn depends on a C plugin. It turns out that this…
mavenasked 11 years, 2 months ago Victor Stafusa 63,338 -
6
votes6
answers5183
viewsHow to reverse the position of a div(and its content and attributes) with another div?
I wish to do this with jQuery, which is the most elegant way to do it? Assuming the following scenario, how would it look if I wanted to switch from position to div2 to div3? (I will not post my…
-
6
votes1
answer806
viewsHow to get values from a column of multiple tables displayed on a web page?
On a web page, there are one or more tables with information that I need to get in the form of a list. Specifically, I need to get a list of the values of the 2nd column of a table of the web page I…
-
6
votes2
answers228
viewsWhat is the most efficient way to implement Groupby in Javascript?
I’m trying to implement a GroupBy with these parameters function GroupBy(keySelector, elementSelector, comparer) { // keySelector = function(e) { return e.ID } // elementSelector = function(e) {…
-
6
votes1
answer7768
viewsWhen to use a Unique constraints vs unique indices on Oracle?
Is there any kind of good practice and/or recommendation when creating unique vs indices constraints on the Oracle? When I should wear one and when I should wear the other? Is there a situation…
-
6
votes2
answers3548
views -
6
votes3
answers946
viewsRun function for each class you find
I’m creating a mural of images inside thumbnails adjusting them automatically, where I use the calculation below: if($('.thumb img').width()<$('.thumb img').height()){//portrait $('.thumb…
-
6
votes2
answers750
viewsStretched image in Internet Explorer
On a page I’m developing, a web page where I have an image that fits itself according to the field space. to do this, I used the property max-width:100% that is advised on the web to make this kind…
-
6
votes1
answer197
viewsDisplay a dynamically loaded text/photo pad with QML for Android
I’m writing an app using the newly released Qt 5.2 QML for Android. On one of the screens I need to display an article that is loaded from a server and may change after the launch of the…
-
6
votes2
answers2592
viewsHow to optimize an image for web?
On my website someone uploads an image (e.g., 800x600). I would like to save this image in a folder but reducing the disk size as much as possible without losing much quality. How can I do that?…
-
6
votes2
answers10814
viewsHow to set password for Postgresql administration?
I installed Postgresql on my Ubuntu using "apt-get". I’ve been using "sudo" to perform operations (actually following a tutorial), but now I want to manage DBMS with a client that asks me the…
-
6
votes2
answers1505
viewsHow to insert an image into a CSS file?
I use a program here in the company that in its Web module it has its logo inserted directly in CSS something like: #logo img{ max-width:100%; background-image: 'data|base64=acSs....'; } How do I…
-
6
votes4
answers10238
viewsProblem using paragraphs in JSON file
I’m creating a web application that uses JSON files to save site content. In these files are saved small fragments of text containing paragraphs. When I try to separate the paragraph using a \n\ or…
-
6
votes6
answers2089
viewsHow to change the bottom lines of a table alternately? With support for older browsers
My table is created with a PHP loop. I do this by PHP even adding a condition or has some better shape? if ($nomSenha == 'xxxxxxxx') { echo '<table class="pesquisaClientes">'; echo…
-
6
votes1
answer1452
viewsHow do I copy an image to the clipboard (Clipboard)?
I’m using this command to capture the screen. chrome.tabs.captureVisibleTab(null, {}, function (image) { // image = base64;string }); And now I would like to copy the captured image to clipboard…
javascript google-chrome google-chrome-extension clipboardasked 11 years, 2 months ago BrunoLM 5,198 -
6
votes1
answer115
viewsIs it possible to send messages from one Webworker to another Webworker?
I have a page where I intend to use a set of Webworkers to perform tasks in the background. Each Webworker has a specific function, but potentially useful to others. It is simple to receive/send…
-
5
votes3
answers204
viewsHow to serialize and deserialize objects containing Bigint values in Javascript?
Let’s adopt any example code that contains a type value Bigint: const params = { largeNum: 54740991n } If I try to serialize you with JSON.stringify an error is returned: const params = { largeNum:…
-
5
votes1
answer35
viewsComparing captured keyboard strings to Rust
I’m trying to learn Rust and naturally I’m starting with "The Book". At the end of chapter 3 has 3 simple logic exercises, and one of them is the classic converter from Fahrenheit to Celcius. I…
-
5
votes3
answers126
viewsWhy does type "any" exist in Typescript?
I’m studying Typescript and I got to the part about the guy any. What I understand is that the any is used when the type of the value that the variable will have. But if that’s the case, the two…
-
5
votes1
answer110
viewsInsert image with kableExtra function::spec_image( )
library(tidyverse) library(kableExtra) Suppose the following dataset: games <- tibble(logo = "", nome = c("Joao", "Pedro", "Geovanna"), medalha = c("Gold", "Silver","Bronze")) I want to add…