All Questions

1
answer

How to force login after running the application?

My scenario is as follows: After authentication with Active Directory, the logged-in user is saved in a Session [HttpPost] public ActionResult Login(LoginModel model, string returnUrl) { if (!this.ModelState.IsValid) return View...
asked on 21.10.2014 / 21:14
1
answer

How to capture a MySQL query from a given table in real time?

I want to capture queries that are sent to MySQL from a particular application, is it possible?     
asked on 22.10.2014 / 19:03
1
answer

Dynamize Ajax Autocomplete Jquery with json data

I want to make dynamic suggestions with this API . < br> How to streamline the suggestion file by listing data from the mysql database?    Download DEMO:    link The file countries.js is what contains the suggestion dictiona...
asked on 10.11.2014 / 21:17
1
answer

Offline database in Phonegap app

I'm creating an app with Phonegap and need to consume / manipulate information from an existing SQLite database inside my WWW directory but in 3 days searching for tutorials I just found ways to create the database on time and then insert...
asked on 07.11.2014 / 15:32
2
answers

Managing Dependencies with Maven in an Offline Environment

I do not know if what I'm going to ask is simple, or complex, but it turns out that I started using Maven a couple of weeks ago in college, in a somewhat complex Java EE discipline project. I installed Maven, everything right on my notebook and...
asked on 12.11.2014 / 02:53
1
answer

How to do livereload using Grunt for .less files?

A SOLUÇÃO ESTÁ NA TERCEIRA PARTE JUNTO COM OS ARQUIVOS. I can do it for .htlm and .css files but not .less. Here the complete Gruntfile. Below is an excerpt from the part that I think is of interest: watch: { all: {...
asked on 26.10.2014 / 01:36
1
answer

How to change the font color of a JTextArea?

Throughout the internet I just found people wanting to know how to style part of the text and being "redirected" to JTextPane , so there are no answers to my question out there. So there goes: I have a JTextArea in a JFrame...
asked on 17.10.2014 / 15:52
1
answer

Copy (clone) an SVG element

I want to "clone" an SVG rect in JavaScript when I click a button. I tried this code, but it did not work. <svg id="svg"> <rect id="rect" x="5" y="25" width="50" height="50" stroke="#0E0E0E" style="fill:red; stroke-width:1" />...
asked on 20.10.2014 / 02:19
2
answers

Change date format in PHP

I'm trying to change the date format as follows: public function getDate() { $date=$this->date; return $date->DATE_FORMAT($date,'%b %d %Y %h:%i %p'); } But I can not get the date in AM and PM format. solution: publi...
asked on 07.11.2014 / 14:55
2
answers

How to maintain the page of a site in the same place that it was before updating?

I have a page in html and php and put a form at the bottom of the page. When I click the "submit" button the page refreshes and goes up. This way the user has to scroll all the time until he reaches down again to see if the data has been r...
asked on 28.10.2014 / 16:15