Posts by Lucas Lima • 6,714 points
107 posts
-
3
votes2
answers2590
viewsQ: How to force a page to open always horizontally?
My page features bugs when viewed vertically, plus it is best viewed horizontally. Is it possible to force a page to always open horizontally on mobile devices? And stay fixed horizontal.…
-
3
votes1
answer203
viewsQ: How to treat screen orientation in QML?
I usually develop focused to vertical orientation, but when I turn the device screen to horizontal, the elements are resized in an unwanted way, leaving some smaller than they really should be. For…
-
4
votes4
answers1804
viewsA: Should I check dates with Datetime or regex?
It is best to use Datetime::createFromFormat() itself. It is designed for this and treats conditions that your regular expression does not address. I can’t tell you which is the fastest (vote on…
-
11
votes3
answers89
viewsA: Equations in module
If I understood your question correctly, it would be something like this: function getAbsDiff(A, B) { return Math.abs(A - B); }
-
8
votes3
answers784
viewsQ: Set the threads priority in C++11
In the program I’m developing I have two Std::threads that are always active throughout the life of the program. However, I consider that the role of one of them is of minor importance and would…
-
6
votes2
answers324
viewsA: How to make an object jump only once. in the LÖVE framework?
You should check if the ball is on the ground before applying force. This will prevent the ball from flying endlessly, as is happening. For this, you can check if the y velocity of the ball is zero…
-
2
votes1
answer1677
viewsQ: How to autorun a script during Linux inialization?
I am developing a program that should run automatically soon after the startup of Linux. To be more specific I am developing for Debian and to run on Beaglebone Black. I need to run some shell…