jose luis gonzalez clua

0

votes
0

answer
5

views

AbsoluteLayout with proportional height and with minimum and maximum heights

We need a banner, called bannerView in the code bellow, to shrink or expand according to the device height. However this banner height: cannot be smaller than 60 pixels cannot be bigger than 146 pixels code: Note: We need the outer AbsoluteLayout to add a gradient effect on the screen
1

votes
4

answer
150

views

How can I refactor a JAVA method that returns a nested MAP?

public Map getServiceInterval( Contract pContract, BillCycle pBillCycle) { Map returnMap = new HashMap(); List productList = getAllproducts(pContract); for (product product : productList) { Date billingDate = getBillingDate(product); createReturnMap( product, returnMap, billingDate, pBillCycle); } r...
3

votes
1

answer
878

views

Polygon area calculation using Latitude and Longitude

I am using a solution I've found in this post: Polygon area calculation using Latitude and Longitude generated from Cartesian space and a world file There is something wrong because the values I am getting are not real. For example we know a football field should have around 5,300.00 square meters,...
2

votes
2

answer
86

views

In LINQ expression how to get FirstOrDefault with better performance?

In our Xamarin Forms app this code: return database.GetAllWithChildren(x => x.ProductId == prodId, true).OrderByDescending(x => x.ReviewId).FirstOrDefault(); is having performance issues and it takes more time the more reviews exist for that product. With a product with 7 reviews it took about 17 se...
1

votes
1

answer
2.5k

views

GDB Remote Debug with CLion not working

Here is my scenario: I am able to debug using terminal with these commands: gdb myprog break myprog.c:4115 run --myarg the breakpoint works and I can step in the program I try the remote debug using CLion 16.2.2 in Fedora System: in server I run: gdbserver localhost:8080 myprog --myarg I get this: P...