Change Photo
Lazaro Strosin

Answers by Lazaro Strosin

What is the best Battleship AI??

I second the motion to do a lot more games per match. Doing 50 games is just flipping a coin. I needed to do 1000 games to get any reaso...

How to list all the possible binary search trees with n nodes??

A simple (naive?) approach consists in recursion. A binary tree with n nodes is a root, a binary tree with k<n nodes and another binary...

GROUP BY combined with ORDER BY?

Actually the statement is not entirely true as Dave Costa's example shows. The Oracle documentation says that an expression can be used ...

Disable price filter on category view Magento 2?

You can disable price filter by setting up "use in layered navigation" to "NO" for price attribute. Login to admin panel -> Store -&g...

How to detect hologram overlays like the ones in ID Cards??

What makes a hologram different from the normal print is that it looks different from different angles. It also looks different under diff...

Dynamic quadrant label positions with Highcharts?

To have the custom labels at the same coordinates you could use a scatter type series with enabled dataLabels, disabled mouse actions and ...

AngularJS access parent scope from child controller?

If your HTML is like below you could do something like this: <div ng-controller="ParentCtrl"> <div ng-controller="ChildCtrl"...

Setting Excel cell value based on another cell value using VBA?

I'm not sure if I understand correctly, but if you have a parameter: row = 3 you can use Range("E" & row) instead of Range("E3"). Put...

Printing 2 evenly populated lists side by side evenly?

Using str.format: nameList = ["grade 1", "grade 2222222222", "grade 3"] gradeList = ["1/1", "2/2", "100000/100000"] fmt = '{:<8}{:&lt...

When to use Hibernate/JPA/Toplink??

Short answer: It depends on the complexity you want to support. Long answer: First of all, ORM ( object relational mapping - database ma...

Disable Transaction Log?

You can't do without transaction logs in SQL Server, under any circumstances. The engine simply won't function. You CAN set your recover...

Print page numbers on pages when printing html?

As @page with pagenumbers don't work in browsers for now I was looking for alternatives. I've found an answer posted by Oliver Kohll. I'll...

How to get request referer path??

request.referer returns a string, but you can use Ruby's URI Module to wrap it and then simply ask it for its path: if URI(request.refere...