Posts by Marcius Leandro • 462 points
46 posts
-
2
votes0
answers286
viewsQ: Vue.js Update data from my table
I have a table that is filled in at the moment my screen loads, in this table I have listed all my corrections, I have a delete action for this correction, it deletes right because when I update the…
-
1
votes1
answer201
viewsQ: Laravel - To have a unique function of creation of the entity
After seeing a lot on the internet, I understood that I should not call a function of one controller in another and that the solution but elegant is to create a service, but I did not understand how…
-
0
votes1
answer202
viewsQ: How to add instagram thumbnail
I’m customizing a theme from Tray, in it I have in the footer a thumbnail of facebook, which is added with the following code: <div class="fb-page" data-href="https://www.facebook.com/{{…
-
2
votes1
answer143
viewsQ: Make a SELECT multiple tables and save to a spreadsheet
I’m trying to make a SELECT with multiple tables, where I have a product with your information, and I have another table structure to be able to add an extra field and its information. What I tried…
-
1
votes1
answer209
viewsQ: How to rollback a specific table
I have a backup of my entire base of all tables from the following command: mysqldump --default-character-set=latin1 -u root -p[senha] [base] > Z:Backup I wanted to do something like: mysqldump…
mysqlasked Marcius Leandro 462 -
0
votes0
answers25
viewsQ: Debug - Find the route of my http Rest - Grails
I have a call POST http Rest, where I get a file my parameters and mount it to log in, I believe it is talking because the route I am mounting this wrong, It is missing some bar, or capital letters…
-
0
votes0
answers151
viewsQ: Add login to android project
Guys sorry if this is too trivial, but I’m starting to study android, I have an example project that you add note and edit them, this project is already working with this mainActivity: public class…
-
0
votes0
answers53
viewsQ: Run run-app is returning error
I have a 3 year project behind me, and I need to update it to generate one. War and put it running on top of Tomcat, but when I run the grails run-app command is returning me the following error: |…
grailsasked Marcius Leandro 462 -
2
votes1
answer69
viewsQ: Error: "Could not find Bookmarkcolumns symbol"
I have a project 3 years ago and I need to make it come back to life, however it is full of complications with updates, I came across an impace that Browser Bookmark Changes was removed. Does anyone…
androidasked Marcius Leandro 462 -
1
votes2
answers367
viewsA: Update android project
I managed to resolve updating line to classpath 'com.android.tools.build:gradle:2.3.2'
-
0
votes2
answers367
viewsQ: Update android project
I have in my hand a project 3 years ago and I need to put it to run, so when I opened the project in android studio already gave the default error Gradle, I changed the line classpath…
-
0
votes1
answer739
viewsQ: Configure arrival route in pfsense
Guys, I’m trying to get my app up in the air, but I have no idea which way to go. It is a server developed in grails, already managed the . War and it runs on top of tomcat7, when access locally and…
-
0
votes0
answers141
viewsQ: Error while compiling my project
Someone can help me to correct these errors, I found several places citing this error, but nothing works, I’m already a week trying to fix it:…
-
1
votes1
answer143
viewsQ: Error while trying to access admin session in wordpress
My site is working normally, but when I go to the admin session starts to appear this error, until the 29th was working normally, I stayed these days without entering. The error shown below: Fatal…
wordpressasked Marcius Leandro 462 -
0
votes1
answer6739
viewsQ: Create database in mysql
I am trying to create the second precedure in mysql, but when I enter the first line of the declare the following error: ERROR 1064 (42000) CREATE PROCEDURE finaliza_expedicao (IN expedicao_id INT)…
mysqlasked Marcius Leandro 462 -
0
votes1
answer783
viewsQ: Display dialog box when right-clicking
I have a form with multiple fields and I want to put the option of the user to insert a comment in the field value. Example: <form> <input type='text' id='campo'> <input type='hidden'…
-
1
votes0
answers357
viewsQ: Add button to insert shorcodes in Wordpress page construction menu
I’m studying how to do things for Wordpress, I managed to make a plugin that creates a form with multiple screens and options fields and buttons. So far the options I pass in shortcodes it is…
-
1
votes0
answers180
viewsQ: Generate PDF accents with Pdflib + PHP
I made the following code to pass a sequence and generates my lines in pdf with Pdflib: função text_block ( $ p , $ text , $ xcrd , $ ycrd ) { $ FONT_SIZE = 24 ; // tamanho da fonte, usada para…
-
0
votes0
answers347
viewsQ: Place a balloon on top of input[type=range]
I am generating a form from a php, it generates an html equal to this: <div class="mf_slider"> <div class="mf_slider_label">Você tem cabelos brancos?</div> <div…
-
3
votes1
answer78
viewsQ: Link click function is not called
I’ve had a similar problem, and that’s because the function is built before the button is created. Now I made little tertinho after I give an append on my page call a function on click. That’s my…
-
0
votes2
answers114
viewsQ: Form with multiple windows
I’m trying to make a form with multiple windows, but I don’t understand what’s going wrong. Code for testing What I want to do is that by clicking the buttons it hides and shows the next form.…
-
0
votes1
answer450
viewsQ: Install wordpress plugin on local machine
I am making a site in wordpress, the problem is that as I am new I am testing everything in my local machine, for this I configured apache and installed wordpress. in the file /etc/hosts configured…
-
0
votes2
answers78
viewsA: Because stop["value"] is returning nothing
The problem is that my friend was forgetting to pass Header on his call, he should pass a content-type=aplication/json. I found that there is a way for me to define by default that all my calls are…
-
1
votes1
answer255
viewsA: Select Distinct in Doctrine and Symfony
$select = Doctrine_Query::create() ->from('tbimagens s') ->select('DISTINCT s.id_album') ->addSelect('s.imagens_data, s.publicar') ->getSqlQuery(); face tries to see if you are not…
-
1
votes1
answer74
viewsA: Select ruby complex on Rails
I was able to do this by moving Scope to my user model, and I did select it as follows: scope :sponsors, -> (user, yell_user) do find_by_sql("SELECT users.id, users.name, users.avatar FROM users…
-
0
votes1
answer74
viewsQ: Select ruby complex on Rails
I have a model that describes the friendship between my users: #CreateFriendship.rb class CreateFriendships < ActiveRecord::Migration def change create_table :friendships do |t| t.integer…
-
0
votes1
answer137
viewsA: Just create the relationship too much for many in Ruby
To do this I had to create a model for my Join table: model category_yell.Rb class CategoriesYell < ActiveRecord::Base belongs_to :category belongs_to :yell end and my create method was as…
-
1
votes1
answer137
viewsQ: Just create the relationship too much for many in Ruby
I have a very long-standing relationship with Yell and Category entities: model Yell.Rb class Yell < ActiveRecord::Base belongs_to :user, inverse_of: :yells has_and_belongs_to_many :categories…
-
1
votes2
answers78
viewsQ: Because stop["value"] is returning nothing
I’m creating a project in Ruby on Rails, where I create a shout with the following route in Postman: POST:http://localhost:3000/api/yells { "user_id":"1", "title":"caneca", "desciption":"beber",…
-
0
votes0
answers251
viewsQ: Parse a page
I am trying to get the information from a page through the url. I am developing in symfony and using simple_html_dom or Crowler. But I’m nowhere near doing what I need to do. The page I’m accessing…
-
0
votes1
answer112
viewsA: I created my entity in symfony - Crud
In the Symfony version < 2 8 a new Typeabstract was passed in the createForm parameter now passes Typeabstract:class.
-
0
votes1
answer129
viewsA: Problem creating Ruby on Rails
Then I found out. This happens when the migration class name is different from the file name. For example my creation file was: 20160114164439_create_users.rb and my class was class AddDeviseToUsers…
-
0
votes1
answer129
viewsQ: Problem creating Ruby on Rails
I am trying to put an entity I already had in my project as Sign in to login and etc, I used the following commands add in Gemfile the line gem 'devise' in the terminal executed: rails generate…
-
0
votes3
answers228
viewsA: Using Services to vailidar + ruby on Rails
Good I managed to do after reading several articles and question to many people. Well had some mistake in the way was quite wrong what I was doing. So to make the service call, I would have two ways…
-
1
votes3
answers228
viewsQ: Using Services to vailidar + ruby on Rails
I’m trying to create a service that will check if a Sario exists class UserService def create_user(user_username, user_email) if User.find(user_username) false end if User.find(user_email) false end…
-
1
votes1
answer34
viewsQ: How to Lock Project Version on Symfony
I have a version 2.6 on symfony and would like to lock my project in it so as not to risk an update and start giving bugs. Someone knows the command to do this?
symfony-2asked Marcius Leandro 462 -
0
votes1
answer112
viewsQ: I created my entity in symfony - Crud
I used the command: php bin/console generate:doctrine:crud it generated all pages and controllers in my project, but when I enter the route to create a user of the following error: Expected argument…
-
0
votes1
answer113
viewsQ: Start a project on Symfony2 with Apirest
I am new to symfony2 and I have a whole web project already working that I developed to learn and have a differential when it comes to looking for an internship, but now I would like to start…
-
0
votes0
answers137
viewsQ: Applying style to the infowindow of the googlemaps marketer
I have the following method that applies a style to infowindow google.maps.event.addListener(infowindow, 'domready', function () { // Referência ao DIV que agrupa o fundo da infowindow var iwOuter =…
-
0
votes1
answer60
viewsQ: Responsive slider range on the phone, solving with mousedown and jquery mouseup
I have a slider jquery-ui, it does not have a good behavior in mobile, so I added some buttons plus and Less: <div class="price"> <div class="small-3 large-3 column" style="margin-top:…
-
4
votes1
answer322
viewsQ: problem with the behavior of google.maps.Latlngbounds
I have and following code that checks my maker and arrow the Bouns var bounds = new google.maps.LatLngBounds(); $.each(markers_temp, function (key, value) { markers[key] = value;…
-
7
votes5
answers106
viewsQ: link is not called
I have a code jQuery that generates a div it works smoothly, in it I have the following excerpt div += "<p>Coloque o seu <a class='text-orange' id='link_new_ad'>veículo a…
jqueryasked Marcius Leandro 462 -
0
votes2
answers361
viewsA: Error masking Javascript
You must be forgetting to add the library call <script type="text/javascript" src="js/jquery.mask.min.js"/></script> Then just do something like this <label…
javascriptanswered Marcius Leandro 462 -
2
votes1
answer28
viewsQ: Remake SASS loaders for CSS
Someone can help me I have this code using SASS but as I was developing in Synfony I had I am not using SASS, for a number of reasons. The code is this: insert link description here Mine can help me…
cssasked Marcius Leandro 462 -
-2
votes3
answers381
viewsA: Chrome [v44] - Bug in tables inside a div with overflow
Take a look at that link and see if it helps you: http://leomiranda.com/desenvolvimento/10-controlando-quebras-de-linhas-pelo-css your <td> are by default with the initial, but this does not…
-
1
votes2
answers2895
viewsA: Recover Google Maps Address by informing Long and Lat
Another idea: function cityByLatLng(latitude, longitude) { var geocoder = new google.maps.Geocoder(); var latlng = new google.maps.LatLng(latitude, longitude); geocoder.geocode({'location': latlng},…