Posts by Marcio • 117 points
18 posts
-
0
votes0
answers75
viewsQ: How do I stream a radio fm on my website?
A customer wants a system for his radio where his program will be broadcast, similar to this one. I have never done anything like this and I would like to know how I put this player on the site. I…
-
1
votes1
answer74
viewsQ: Is it usual to deal with sessions on an Android app?
My question is the following: I have a Rails server and make queries on this server using an Android app. If I were creating a web system, I would make use of session to manage my system…
-
0
votes1
answer543
viewsQ: Routes calling the same controller action
Hello, I have the following problem: I am creating a film rental system at a college job where the user can rent movies from different rental companies. The first problem I’m having with routes, is…
-
0
votes1
answer81
viewsQ: Can modifying the default Rails primary keys cause any problems?
By default, Rails generates the id field for all my tables and I would like to know if, in the future, it can generate an error if I change the name and type of the key. I ask this because I…
-
0
votes0
answers166
viewsQ: How to create a route in Rails that accepts a point url (.) ? type "[email protected]"
Good morning, I have an application where users register their information and the primary key of each user is their email. So in the method show the parameter I receive is the email. However,…
-
0
votes1
answer305
viewsQ: Questions about relationships in Rails "field must exists"
Good morning, I started studying Rails recently and whenever I will define the relationships between the entities in my database arise some doubts. The first time, I created and defined…
-
1
votes1
answer306
viewsQ: How to plot a curve to separate data?
I’m testing some things in the language and I came up with this question. I made a program that has a database that is divided into two groups (Group 1 and Group 2) and its elements are already…
-
2
votes1
answer1070
viewsQ: Number of items to replace is not a multiple of the length of the substitute
I am trying to create a method for the Minkowsky formula but it is giving this error. It happens in the line where I try to assign the value to matriz_distancia[i,j]. distancia_minkowsky <-…
-
1
votes3
answers1085
viewsQ: Calculate difference between two dates - I cannot convert the database date to Datetime
Good afternoon! I made a function to calculate the difference of days between two dates, one of these dates is the current one (I create using the new DateTime()) and the other picks up in the…
-
0
votes1
answer444
viewsQ: Add field to standard registration form of Laravel 5.3
Good afternoon, I want to add the type field to the user of a system in Laravel and am doing as follows: Migration public function up() { Schema::create('users', function (Blueprint $table) {…
-
0
votes1
answer1569
viewsQ: Pass value of select to route in Laravel
I don’t know much about web development and I’m a little lost. I need to pass the id of a movie to a route in Laravel and I’m not sure how to get this value. <select class="form-control"…
-
0
votes1
answer51
viewsQ: Commands below setAdapter being executed before getView()
I’m creating some Adapters in my app and I’ve come up with this question in a problem I’m having. I have a code like: public class ActivityCompra extends AppCompatActivity { Adapter a; @Override…
-
1
votes0
answers75
viewsQ: Error: Could not find class 'com.google.android.chimera.Activity' ... Did not call through to super.onResume()
I’m trying to integrate a scanner into my app and, at first, I did identical to what’s on github: https://github.com/KingsMentor/MobileVisionBarcodeScanner However, when I call Activityscanner the…
-
0
votes0
answers42
viewsQ: Error dependencies Gradle: all google.com.gms.Ibraries must use the Exact same version Specification (Mixing versions can lead to Runtime crashes)
I am trying to add a barcode reader to my application and am using this example as the basis: https://github.com/KingsMentor/MobileVisionBarcodeScanner The error appears whenever I arrive at step 2,…
-
1
votes2
answers555
viewsQ: Barcodedetector does not detect barcode and camera does not focus (I have already put the permissions in the manifest)
Good morning, I’m trying to integrate a barcode reader into my application but I’m not getting the camera to detect the barcode, or Qrcode or anything. I also noticed that the camera does not focus,…
-
1
votes1
answer241
viewsQ: How to modify zxing default screen
Good night, I integrated zxing to my app using this tutorial: https://android-coffee.com/tutorial-how-to-create-barcode-reader-app-in-android-studio-1-4/ It worked, but for it to work asked me to…
-
1
votes2
answers286
viewsQ: Can you get the value of an autoincrement column before it is saved in the database?
I have three tables: preco, estabelecimento and precoXestabelecimento. The id of price is autoincrement and there is a relationship N:N between the first two tables, which is represented by the…
-
1
votes0
answers4495
viewsQ: Button with rounded edge and shade using 9 patch
Good morning! I would like to put shadow on the images and buttons of my app and I am trying to use the features of the 9 patch. However it is not working very well, the png height I am using as…