Posts by Mikhael Araujo • 333 points
31 posts
-
1
votes2
answers68
viewsA: Sending email in HTML format via an Ajax JS request to an API that uses Curl in PHP
Problem solved!! I put all the html code that corresponds to the body of the message in: \"content\": [ { \"type\": \"text/html\", \"value\": HTML AQUI } ] But I put it as a string, no spaces. guy:…
-
0
votes2
answers68
viewsQ: Sending email in HTML format via an Ajax JS request to an API that uses Curl in PHP
Good afternoon to all! I am structuring a contact form for a website and am using an API from sendgrid, available via rapidapi (https://rapidprod-sendgrid-v1.p.rapidapi.com/mail/send). With this, we…
-
1
votes0
answers89
viewsQ: rake:db setup error (failed to connect to postgresql) in the Ubuntu subsystem for Windows
Hello! I am using the Ubuntu subsystem (18.04) in windows com ruby on Rails (ruby version 2.5.1 and Rails 5.2.2) and with Postgresql in version 10. I surrounded a rake db:setup at the root of my…
-
1
votes0
answers79
viewsQ: Firebase Crashlytics: How to debug non-fatal errors?
Hello! Good afternoon, sir. I have an application for Android (developed in Android Studio) that uses lib Mpandroid Chart (a lib for Charts). Like any chart that we want to compile, we first need to…
-
1
votes1
answer132
viewsQ: bringing the <p> tag in front of a div
I have the following code: $("[data-ripple]").hover(function(e) { var $self = $(this.parentNode); var $color = $(this).data("ripple"); var $divServicos = document.getElementById("div-servicos");…
-
0
votes1
answer117
viewsQ: background-color with animation and pulse
Hello! Good afternoon, sir. I’m trying to have the following effect: by hovering over an "a" tag, the background-color of the parent div in which this "a" tag is daughter, can change in transition…
-
1
votes2
answers37
viewsQ: hasFocus() verification in <a> tag
Hello, good afternoon :) I have the following HTML code: <section class="sectionQuemSomos"> <a class="iconQuemSomos" id="QuemSomos"> <img class="img-fluid" style="height: 80px"…
-
0
votes0
answers107
viewsQ: pseudo-class :not and :Focus in CSS
I have the following class in CSS: .iconQuemSomos { cursor: pointer; margin: 0 15px; transition: all 0.3s ease; } .iconQuemSomos:focus { opacity: 1; position: absolute; -webkit-transform:…
-
-1
votes1
answer105
viewsQ: Failed to read a file. php (lib Phpmailer)
Hello! I have the following form: <form role="form" method="post" action="send_email.php" id="formContato"> <div class="left"> <fieldset class="mail"><input…
-
1
votes1
answer331
viewsQ: Problem in Django’s send_email function
Good afternoon! I have the following code in views.py: def email(request): if request.method=='POST': form = ContactForm(request.POST) form.email = request.POST.get('email', '') form.subject =…
-
1
votes1
answer95
viewsQ: problems with Float Action Buttom (speedDial) - Android
Hello! I found a lib of a float action with speed dial and I’m trying to implement it in my Android project, but I’m not able to interact with the Float Button... follows the code of the fragment…
-
0
votes0
answers150
viewsQ: Firebase authentication check problem (Number phone)
Hello! I am trying to build a firebase record with phone number. I did the procedures I found in:…
-
0
votes1
answer45
viewsQ: Problem with Firebasepp call
I have a fragment that performs user registration and login using Firebase. However, I’m having trouble with the initializeApp(Context) method. Follows the code: @Override public View…
-
0
votes2
answers261
viewsQ: Problem with animation in Android Studio
I created a Float Buttom to start an animation, but when I click on it, the animation does not occur. I have already done the debug to check the method that starts the animation and it occurs…
-
0
votes1
answer291
viewsQ: Asynctask onPreExecute method problem - Android Studio
I have this Activity that displays the user score of my application. However, when this Activity is called, what should occur is a ProgressDialog being displayed with the message "Buscando Pizza"…
-
1
votes1
answer720
viewsQ: How to make a search field with form_tag in Rails?
Hello! Good afternoon, sir. I am a student of information systems and I am doing a small project where I need to place a form to search for the objects of the model Product that exist in the…
-
0
votes0
answers411
viewsQ: How to redirect after login - Rails
Routes: Rails.application.routes.draw do get 'home/inicio' root 'login#new' scope "/login" do get "/acesso", to: "login#create" post "/acessorecebendo", to: "login#create" get "/sair",…
-
0
votes1
answer207
viewsQ: Changing label and color of pie chart entries - Android
I have the following code: public class Pontuacaouseractivity extends Appcompatactivity { PieChart graficoUser; int pontosCor, pontosNumero, pontosObjeto; FirebaseUser user; FirebaseAuth auth;…
-
0
votes2
answers47
viewsA: Null return of an object in the controller - RAILS
I added this line: products = Product.all soon after setting the gerarlog function and it worked. no more '-'
-
1
votes2
answers47
viewsQ: Null return of an object in the controller - RAILS
Hello! I have the following code snippet from a controller called Productoscontroller: def index @produtos = Produto.all end def gerarlog @produtos.each do |produto| File.open('produtosBD.yml', 'a')…
-
0
votes1
answer61
viewsA: JS is not being loaded on a RAILS route
I found out why: https://stackoverflow.com/questions/17600093/rails-javascript-not-loading-after-clicking-through-link-to-helper (need to research more before posting doubt :\ )…
-
0
votes1
answer61
viewsQ: JS is not being loaded on a RAILS route
Hello! I have the following code snippet from my project’s home page: <li class="next" style="display: inline-block; margin: auto"> <a href="/produtos">→</a> </li>…
-
1
votes1
answer1100
viewsQ: Column-specific selection in an HTML table in JS
Hi! I’m an IT student and I’m learning about Rails. I have the following HTML table of a view: <p id="notice"><%= notice %></p> <h1>Produtos</h1> <table class="table…
-
0
votes1
answer24
viewsA: Null return of a JS object in Rails
I discovered the reason... was what I suspected: JS was being loaded before the HTML rendering, hence the ID of the table I was using as a parameter to assign it to a variable, did not "exist" at…
-
0
votes1
answer24
viewsQ: Null return of a JS object in Rails
I have the following code: <p id="notice"><%= notice %></p> <h1>Produtos</h1> <table class="table table-hover custom" id="tabelaProduto"> <thead> <tr>…
-
1
votes1
answer75
viewsQ: Coffeescript on Rails - select items from a table
Hello! I have the following code generated by Scaffold: <p id="notice"><%= notice %></p> <h1>Produtos</h1> <table class="table table-striped" id="tabelaProdutos">…
-
1
votes1
answer1550
viewsQ: CSS not being loaded in Php code
I have the following code: <?php include ("head.php");?> <title>módulo EAD</title> <body> <div class="container"> <header> <div class="page-header">…
-
3
votes1
answer487
viewsQ: Fragment is not overriding the marked layout
I’m working on a college project and I’m having a hard time replacing a given layout by a fragment. What is happening is that, the fragment is not replacing the layout of Activity but yes, mixing…
-
4
votes1
answer1892
viewsQ: How to call one function inside another in Java for Android?
Every letter the user types in EditText, invokes the function TextWatcher that leads to a Text-to-speech. So if it writes 'c', the app returns a line saying 'c'. if it then enters 'a', returns 'a'.…
-
-1
votes1
answer1886
viewsQ: How to import projects and modules from Android Studio via Git
Hello! Good afternoon. I am a bachelor’s student in information systems and am practicing development for Android. My teacher provided a Git link containing a "pack" of each subject covered in his…
-
2
votes1
answer108
viewsQ: Problem to select a specific object within a hash
Hello! Good morning. I have the following situation: In my Ruby code, there is a flower class(attributes: code(generated by a function with auto increment), name, value and category(this at ributo…