All Questions

2
answers

Dice launch simulator in Python

I am trying to create a function that every time it is called, generate a list of 100 random launches of a die using the random library. import random def dice(): dado = [] for i in range(100): dado.append(random.choice(range(...
asked on 04.09.2017 / 06:38
1
answer

Datepicker on Bootstrap

I am using a code that I found here to make a Datepicker (I need two, I want to distinguish by dates some queries) . I'm quite new to web development, this is my second major project, so it's probably a simple thing, but I'm eating my head....
asked on 04.09.2017 / 19:55
2
answers

how to select a day in a datepicker using AngularJS

Good, I am doing a project with AngularJS 1.6 and I would like to save in a variable of the Scope on a specific day and that when it is visible, the day is marked in the calendar without having to do anything. I assumed that using the scope vari...
asked on 05.09.2017 / 14:38
1
answer

How to zoom a JPanel and its components?

I am creating a tag editor in java and I want to make the user zoom in the work area ( JPanel ) as well as the components that are inside. Here my code: Graphics2D g2 = (Graphics2D) PPanel1.getGraphics(); int w = PPanel1.getWidth(); i...
asked on 05.09.2017 / 14:21
1
answer

Function export to Excel with PHP parameters

I want to adapt this function that I use to export the complete DB to Excel to a function that by passing a parameter (paq) I returned an excel with the matches of the DB. My HTML of the button. <button onclick="Export()" class="btn btn-...
asked on 27.07.2017 / 18:04
2
answers

Line break of a second android textview

I have two textview on the same line, the two textview do not have static content, the problem comes when the second textview is loaded with the data, it takes the second line but not from the left completely. I hope you can help me. The...
asked on 01.08.2017 / 19:15
4
answers

get value out of click event with jquery

How can I get the document variable out of clcik? obtenerDocu: function() { $('#documentos-table tr').click(function(e) { e.preventDefault(); documento = $(this).closest("tr").find('td:eq(0)').text(); }); re...
asked on 11.09.2017 / 12:04
1
answer

How to put in resize mode a PictureBox created dynamically in C #?

Good morning. I am creating an application in C # under VisualStudio 2013. In it when the user clicks on an option in the context menu of the right mouse button on a Panel, I add a PictureBox to the Panel. So far everything is perfect b...
asked on 31.07.2017 / 17:46
1
answer

Two applications on the same server and the connections to BD are crossed

I have two applications on a single server, APP1 and APP2, each one with its own database, from one moment to another I enter APP2 and I see the information of the APP1 Database, they have different app_key, I put a different driver cache, chang...
asked on 04.09.2017 / 14:29
1
answer

How to separate the text from another

If I create a text in the following way: function urlify(text) { var urlRegex =/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%? =~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig; return text.replace(urlRegex, function(url) {...
asked on 27.07.2017 / 23:25