All Questions

0
answers

Get child element width in Angular directive

Next I have a table fed by a simple routine. I need to make the scroll to tbody fixed. So far so good. Could make N forms. To try to make the responsive table I'm using a directive to calculate and set the value of each th after the data is r...
asked on 25.11.2015 / 19:25
1
answer

How to link models (with association), forms and grids in ExtJS 4?

I'm using ExtJS 4.2 in a project and I'm having problems involving model associations and how to link them to forms and grids. I'll illustrate with an example. I have 3 classes and 1 json, as below: User Ext.define('Usuario', { ext...
asked on 17.12.2013 / 18:41
2
answers

How to get form data via "POST"?

Is there any way I can receive data coming from an external form using method="post" on my jsf page? I can already do this when data travels via GET . <f:metadata> <f:viewParam name="dados" value="#{testeMB.dadoExt...
asked on 08.01.2014 / 13:56
2
answers

Is it wrong for me to use a static method to retune a collection of objects?

First of all, I know that I should not go out doing classes with several static methods but in this case I bring here, I do not understand why it can be considered bad practice. Let's say I have an MVC structure, in my model, I have all of th...
asked on 15.08.2017 / 02:13
3
answers

What is the "question mark" in the C # type declaration? [duplicate]

I saw this code written in C # on the internet: namespace Test { [MicroEntitySetup(TableName = "Users")] public class User : MicroEntity<User> { [Key] public int id { get; set; } public string Name {...
asked on 28.04.2016 / 20:26
2
answers

Xpath with Python

I have the following XML (simplified): <produto refid="cat01" idprod="tv01"> <marca>xxx</marca> <modelo>xxxx</modelo> <genero>xxx</genero> </produto> <v:utilizador iduser="U00000"...
asked on 28.02.2015 / 13:00
1
answer

Algorithm of Prim and Kruskal

Both algorithms serve to generate a Minimum Generating Tree from a graph. No Prim Generate a single tree Throughout the algorithm, the set X is always a tree No Kruskal Generate a forest before generating a Minimum Generati...
asked on 27.06.2017 / 18:51
2
answers

Should I take any action on Heartbleed?

As a developer, do I have to take any action on Heartbleed ? Being a problem in OpenSSL, I believe it is more of the scope of webmasters, server administrators, etc. But I'm not sure if it's just that (updating OpenSSL and swapping all the cert...
asked on 10.04.2014 / 02:03
1
answer

How to freeze frozen thread?

Studying about JS: Javascript - Thread, Asynchronous, Ticks Asynchronous programming does it work in JavaScript?    There is only one thread to run your code, so you should avoid this code from blocking the thread as much as possibl...
asked on 27.11.2015 / 00:48
3
answers

Catch only the values before the "=" character using regular expression?

I have a file containing the following content: Maringa=123123 Marialva=789789 Mandaguacu=123456 Cidadex=A341a2 How do I get only the characters before = , using regular expression? I tried it like this: .*= But the String c...
asked on 13.12.2013 / 17:46