Posts by wagnermps • 163 points
10 posts
-
4
votes3
answers259
viewsQ: Filter a select, without duplicate SQL queries being returned
The problem is to return a SELECT with only those schedules that are no longer accepted by the user. I’m trying to use the schedule table that has already been accepted, which has both the user ID…
-
1
votes0
answers66
viewsQ: Error on Function get() on null server
The server log reported the following error: Notice: Undefined variable: app in C: xxxx api v1 routers Schedule.php on line 28 Fatal error: Call to a Member Function get() on null in…
-
1
votes1
answer488
viewsA: Slim error Badrouteexception
The solution to the problem was to reorder the routes, apparently my error was due to the order of the routes in the example file: $app->post('/plans{id}', function(Request $request, Response…
-
3
votes1
answer488
viewsQ: Slim error Badrouteexception
Checking the logs on the server found the following error: Slim Application Error: Type: FastRoute\BadRouteException Message: Static route "/client/schedules" is shadowed by previously defined…
-
2
votes1
answer90
viewsQ: Doubt Python, as a list is iterated in a repeat
Hello, the following algorithm relates people and friendship relationships between them. My doubt however refers to the block is indicated in the code. def not_the_same(user, other_user): return…
-
3
votes1
answer553
viewsQ: Doubt regarding the ||= ruby operator
Hello I’m still starting in Ruby, and I have a question regarding the following code Main.Rb web_design = Livro.new "Ruby", "X", "9428", 56.40, :web_design android_dev = Livro.new "Java", "Y",…
-
1
votes1
answer52
viewsQ: When using puts exits only the address, and not the expected message
Hello, I’m starting with the ruby language and I find the following problem that is at the time of printing message through to_s: main class require File.expand_path("lib/Livro") biblioteca = []…
-
0
votes1
answer76
viewsQ: PHP Fatal error: Call to a Member Function initBD() on a non-object
Hello I have the following php code function updateRecord($email, $score){ $sql = "UPDATE record set record = $score where email = '$email' "; $banco-> initBD()->exec($sql); //O Log indica o…
-
0
votes1
answer149
viewsQ: Use of while in a Thread on Android(runOnUiThread)
Hello, guys I’m having the following problem I need to manage an animation. Which changes over time, and for this I made the following code: public void HandleAnimator(){ new Thread(new Runnable() {…
-
0
votes0
answers46
viewsQ: How to customize Showcaseview?
Hello, I’m having some difficulties to use the following library https://github.com/JesusM/ShowcaseViewLibrary already searched in guides, videos including the proposed documentation. But I can not…