All Questions

2
answers

What is the relativity of the rem unit?

I have the following style sheet: html{ font-size: 16px; margin: 40px; padding: 32px; } p{ font-size: 1.5rem; padding: 2rem; margin: 1.8rem; } I know the font of my paragraphs will be 24 pixels in size. But what abou...
asked on 14.11.2014 / 13:55
1
answer

What are the ways to store data in the browser?

I need to store information in JSON format directly in the browser, I've heard of localStorage of HTML5 but it has storage limits that I would like to extend if possible, if there are no alternatives? I would not like to use cookies .  ...
asked on 24.02.2015 / 16:51
2
answers

Is it feasible to use more than one DbContext for the same database?

I'm developing a new application in ASP.NET MVC and searching I've seen some examples of applications with more than one context. Let's say my application has several different modules, but all entities have some connection. In this...
asked on 09.03.2015 / 21:07
3
answers

Variable error within the function

I'm having problems and from what I searched the internet forums, others have the same doubt as me. I can not use PHP variables within the transaction function. How do I set a variable? For example, this does not work: $id = $_POST["id_s...
asked on 02.03.2015 / 18:13
1
answer

Is it recommended to use prototype on native objects?

I think the idea of having my own methods imported into the javascript native objects is very good. As for example: String.prototype.hello = function(){ return this.toString() + ' hello'; } 'Say '.hello() // say hello Number.prototyp...
asked on 23.02.2015 / 16:42
1
answer

How to convert a Java project in Eclipse to a Maven project?

I have a Java project in Eclipse that I want to convert to a Maven project. For the conversion, I right-click and select the "Convert to Maven Project" as indicated in the figure below. Theproblemisthataftertheprojectconversionthesourcefo...
asked on 10.03.2015 / 14:12
1
answer

Why can Traits have directly called methods when they are static?

I just asked a question about Traits and I had another question. If Traits are mechanisms that facilitate the import of methods, because of the limitations of an inheritance in PHP, why can their methods be accessed statically?...
asked on 24.02.2015 / 16:45
2
answers

How to improve clientdataset query performance with many records?

When I'm looking for all records of the many clients table, from a remote database and displaying in a DBGrid, this process takes a long time. How do I improve the performance of the clientdataset query when many records are returned?     
asked on 12.03.2015 / 13:28
1
answer

In PostgreSQL, which field to use for percentage?

In the table I am creating, I will have a column that will indicate the discount percentage, for example, "for a certain agreement I will have a 20% discount, for another agreement I will have a 50% discount", and I will need to use it in calcul...
asked on 27.02.2015 / 15:36
2
answers

Which is the best and safest method to program RFQs?

Well, folks, I'm now switching to PDO in php, I wanted your opinion to know if the method I'm programming is safe and if I'm programming PDO in the right way because I saw on the internet several ways to program Example code of how I am doin...
asked on 06.03.2015 / 20:53