All Questions

1
answer

Multiple layouts in one activity - how to use it?

As in this section: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.addcontact); imageButton01 = (ImageButton) findViewById(R.id.imageButton1); imageButto...
asked on 14.03.2014 / 12:29
1
answer

How to plot a line chart with different colors depending on the value?

Suppose the following data: set.seed(1) y<-rnorm(101) x<-seq(from=0, to=100,by=1) I want to make a plot with a line that has a different color for negative values. To make a point graph, simply use the command below: plot(x,y,col...
asked on 19.03.2014 / 17:49
1
answer

Automatic Facebook postings

I have a system where I use cURL to log in to a site. In this site I have a button to share facebook content, I want to do this automatically. That is, stop the work of the user entering the site, and share the content. How can I do this?...
asked on 23.03.2014 / 20:48
2
answers

Absolute ordering for data returned from DB

In PHP I'm doing a query to my database using MySQL. In my database I have the fotos_album table and inside I have the name of the photo. I want to sort the table by the nome field. We imagine that the table has the following da...
asked on 18.03.2014 / 12:16
1
answer

Error with super (this) when invoking a constructor in Java

Is this allowed? public Produto(Context context) { super(context, this); } You're giving me an error:    Can not refer to 'this' nor 'super' while explicitly invoking a constructor I'm trying to make a simple MVC for when I ty...
asked on 01.04.2014 / 16:20
1
answer

Referral in the Flyweight project standard

There's one thing in the Desing Flyweight Pattern that's making me really confused. Briefly, the standard says that to save memory in a situation where you use several similar objects, you use a factory that returns references to the same object...
asked on 14.03.2014 / 05:08
1
answer

Game Table Creation

I wrote this code to organize the teams that will face in the Cup: <script> var dados = { "grupo1" : [ {"selecao" : [{"nome":"brasil"},{"resultado" : [{"a":0},{"a":4},{"a":2}]}]}, {"selecao" : [{"nome":"croacia"},{"re...
asked on 02.03.2014 / 07:48
1
answer

Consume repository of entities directly from the application layer

I have a scenario that I need to fetch a list of Active Employees with Entity Framework and display them on the screen (I need to convert to DTOs before displaying - which I do by the Application layer). For a Domain-Driven Design (DDD) scena...
asked on 13.02.2017 / 00:57
3
answers

Why does this violate the Strict Standards?

Consider the following class definitions: class SuperDate {} class SubDate extends SuperDate {} class Foo { public function setDate(SubDate $date) {} } class Bar extends Foo { public function setDate(SuperDate $date){} } $foo = new...
asked on 19.02.2014 / 20:42
1
answer

What is a shim?

When asked about "What is a Polyfill?" , I ran into comments and searches with the term Shim . What would a Shim be? What is the relationship of the term Shim with the term polyfill ? Shim is directly linked to Javascript, su...
asked on 05.04.2017 / 02:02