All Questions

5
answers

How to center a div with position: fixed?

I wonder if it's possible to center a div with position:fixed ? Currently I tried to centralize it using margin:0 auto but it did not work ... unfortunately as the width of my div fixed will be dynamic I can not use left and...
asked on 22.09.2014 / 23:15
2
answers

Why should descriptor instances in Python be class attributes?

I'm studying descritores in Python and I found that they should be implemented as atributos de classe for example: class Descriptor: def __init__(self, obj): self.obj = obj def __get__(self, instance, owner=None...
asked on 23.10.2018 / 20:48
4
answers

How to call a "Stored Procedure"?

How to call a procedure in ASP.NET C #? Here's my simple procedure: CREATE PROCEDURE GetAdmin ( @email VARCHAR(50), @password VARCHAR (50) ) AS BEGIN SET NOCOUNT ON; SELECT * FROM Admin WHERE Email = @...
asked on 13.02.2014 / 18:44
2
answers

What's the difference between "Issues" and "Pull Requests"?

In a GitHub repository, what's the difference between the "Issues" and "Pull Requests" section?     
asked on 22.11.2018 / 23:58
2
answers

Infinite loop when walking recursively through DOM nodes

I have div with contenteditable=true in my document and want to highlight certain parts of the text as the user types (add spans). For this I first need to extract the text typed by the user in the form of a simple string, without...
asked on 10.01.2014 / 14:38
3
answers

Best way (s) to use Dependency injection in Laravel

What is the best way to use Injection of dependence in laravel? The one I was using was this: public function __construct(Cliente $clientes, Telefone $telefones){ $this->clientes = $clientes; $this->telefones = $telefones; } F...
asked on 30.01.2014 / 13:41
3
answers

How to make a file available for inline dowload in html?

I wanted to create a link to a dowload in my HTML, but I did not want to save this content in a separate file, but in the html itself. In images you can do something like this <img alt="Embedded Image" src="data:image/png;base64,iVBORw0K...
asked on 05.02.2014 / 13:02
2
answers

Submit form with href="" instead of input="submit"

I was given a layout of a form: <form method="post" action="" id="mail_form"> <div id="newsletter"> <input type="text" name="email_newsletter" /> <div class="newslink"> <input type="hidden" n...
asked on 01.04.2014 / 14:02
2
answers

How to count lines of code in a .NET solution?

What are all (free or not) solutions for counting lines of code in a .NET solution? Use two Visual Studios: 2012 and 2013.     
asked on 13.03.2014 / 20:04
2
answers

How do I do an action after three dynamic elements are populated with jQuery / javascript?

I have three select that are created after the user clicks a button, ie they are dynamic: <select id="cbExercicio"><option value="0"></option></select> <select id="cbEquipe"><option value="0"></option>...
asked on 27.01.2014 / 16:08