All Questions

1
answer

Problem creating a data.frame

I want to export multiple results to excel and for that I need to first leave them in the ideal format, however I am facing problems because I want them to be stacked in a single column. This is an example to show what I want done. x=c(1,2,3)...
asked on 07.11.2018 / 16:57
2
answers

How to compare Date class with System.currentTimeMillis () in Java?

How to compare if a Date object, for example "2014-01-29 00:00:00" is greater than the current system date, for example System.currentTimeMillis() in Java? I'd like to do something like the snippet below, but it did not work: if (obj...
asked on 29.01.2014 / 19:41
2
answers

How to load a view into a layout?

I'm trying to load a view into a layout , below my controller below: class IndexController extends BaseController { protected $layout = 'admin.layouts.default'; public function index() { $this->layout->$this->l...
asked on 23.01.2014 / 23:58
1
answer

How to simulate the LEAD and LAG functions? [MySQL]

I have recently been developing a query in which I had the need to compare successively the rows of the same data set , I mean, from the same column, from the same table. In this, I became aware of the MySQL LEAD () and LAG () functions. Howeve...
asked on 23.11.2018 / 18:09
1
answer

Logic error?

I have the following code: mãe(ana, eva). mãe(eva, noé). mãe(bia, raí). mãe(bia, clô). mãe(bia, ary). mãe(lia, gal). pai(ivo, eva). pai(raí, noé). pai(gil, raí). pai(gil, clô). pai(gil, ary). pai(ary, gal). avô(X, Y) :- pai(X, Z), pai(Z, Y); p...
asked on 12.08.2014 / 14:07
1
answer

What is a client-side prepared statement?

I am starting to develop a page using PHP and, as I am still learning the language, I decided to find which module to use to connect to a MySQL database. From this answer , I discovered that the mysql_* module has already been depreca...
asked on 01.02.2014 / 15:12
2
answers

How to use fadeIn () in addClass ()?

I have 10 elements with class "hide", less the first one. When I click on a button I remove the next hide and add the class "show", but when I add it I want to put a fadeIn () effect. Is it possible?     
asked on 20.02.2014 / 15:06
1
answer

Is it possible to call internal method (without visibility operator) from a class inherited from another package?

Problem I'm trying to create some extra behaviors on some native Android components. For this I am creating a class above the Android component and rewriting some situations that I want to behave differently, and I came across a s...
asked on 29.07.2014 / 20:20
1
answer

Read bank draft bar code

How can I read ITF ticket barcode (size 44) encoded in the Interleaved pattern 2 of 5. Using some library like zxing, zbar, etc.? I have already used the zxing and zbar libraries but do not recognize the ticket barcode. Now try the example...
asked on 14.09.2014 / 23:30
1
answer

How to change the window.location of a frame

I wanted to know if you can enter a target here: window.location='www.google.com'; I do not want to open a new page, otherwise I would use window.open . I want to use target="topFrame" to control a player. I'm using an old l...
asked on 17.07.2014 / 18:33