Posts by Thiago Porto • 292 points
25 posts
-
-1
votes1
answer180
viewsQ: Group information with Vue
Hello! I’m studying And at the same time trying to apply what I’m learning in a project. A difficulty has arisen. I have a list of checkboxes with the brands of the vehicles, when I click will load…
vue.jsasked Thiago Porto 292 -
1
votes3
answers1776
viewsQ: Get user logged in to Django globally
All my models has relationship with the User, and for default all of mine query_set will be made based on the user logged in to the system. How would you get the user logged in to any area of the…
-
0
votes1
answer321
viewsQ: Get the user logged in to the form
Hello! I need to get the user who is logged in to my application, because in the form I have modelChoice fields, and the query need to bring per logged in user, as shown below: Note: Working with…
djangoasked Thiago Porto 292 -
0
votes1
answer59
viewsA: Error updating form with Imagefield
def clean_image(self): picture = self.cleaned_data.get("image") try: if picture: w, h = get_image_dimensions(picture) if not picture.content_type in "image/png, image/jpg, image/jpeg": raise…
djangoanswered Thiago Porto 292 -
0
votes1
answer59
viewsQ: Error updating form with Imagefield
When registering a new record with upload saved normally, but updating shows the following error: I gave a print on var picture and when registering a new image shows.png, but when updating it…
djangoasked Thiago Porto 292 -
1
votes0
answers77
viewsQ: Adjust text in recyclerview
Good night! I’m having trouble adjusting the text of a textview within a list, as the image shows, the end of the text is overwriting the button. How to fix? Picture how it’s getting. <?xml…
-
0
votes1
answer1133
viewsQ: Run routines in background
I have a routine to run when opening my system once a day, I put a panel with a message for the client to see that it is being processed, but is now taking a long time to run. My idea is to put in…
delphiasked Thiago Porto 292 -
3
votes1
answer614
viewsQ: Error running db:Seed command
I am studying Laravel in version 5.2 and when running the command php Artisan db:Seed returns the following error: [Invalidargumentexception] Unable to locate Factory with name [default] [Codepub…
-
0
votes1
answer164
viewsQ: Recyclerview grouped together
I’m trying to make a grouped recyclerview but I’m having enough trouble. A while ago I saw a lib that would serve me but I don’t remember where I saw. I made a drawing to explain my doubt better, I…
androidasked Thiago Porto 292 -
1
votes1
answer140
viewsQ: Highlight selected line in Recyclerview
How to highlight the selected line (clicked) in recyclerview? Listview was automatic. Thanks in advance.
android-studioasked Thiago Porto 292 -
1
votes1
answer86
viewsQ: Error importing lib material dialogs in android studio
That’s the lib I’m trying to import: material dialogs How is my Radle: Error:…
android-studioasked Thiago Porto 292 -
1
votes1
answer58
viewsA: Error sending email with Mandrill
I put it that way and it worked. @contact = Contact.new @contact.name = params[:name] @contact.email = params[:email] @contact.subject = params[:subject] @contact.message = params[:message] if…
ruby-on-railsanswered Thiago Porto 292 -
0
votes1
answer62
viewsQ: Performance with external images
Hello! On my site there is an area of posts and each post contains your image. The original image is 660px x x 400px size, save this size on an image host to be able to grab the metag URL to present…
htmlasked Thiago Porto 292 -
0
votes1
answer58
viewsQ: Error sending email with Mandrill
Modelo contact.Rb: class Contact include ActiveModel::Validations include ActiveModel::Conversion extend ActiveModel::Naming attr_accessor :name, :email, :message, :subject validates_presence_of…
ruby-on-railsasked Thiago Porto 292 -
0
votes1
answer92
viewsQ: Resize images with Gem Refile
Is it possible to resize, I looked in the documentation and I saw nothing about it? Put in several sizes. In carrierwave has this option
ruby-on-railsasked Thiago Porto 292 -
0
votes1
answer1477
viewsA: Is there a Framework for JAVA Desktop programming?
Yes. There is Swing that netbeans uses itself and is already installed with it, but tmb can be used in eclipse. There are others I don’t remember. One possibility is tmb working with Java FX which…
javaanswered Thiago Porto 292 -
3
votes2
answers1396
viewsQ: How to organize css and js?
I bought a free template and am applying on my main blog page. I created an admin for this blog and I’m wondering if my Assets organization is correct. Follow the structure: app/Assets/Avascripts:…
ruby-on-railsasked Thiago Porto 292 -
0
votes1
answer146
viewsQ: Error using Refile + AWS SDK
gem "mini_magick" gem "refile", require: ["refile/rails", "refile/image_processing"] gem "aws-sdk" My config/initializers/refile.Rb file require "refile/backend/s3" aws = { access_key_id:…
ruby-on-railsasked Thiago Porto 292 -
1
votes1
answer661
viewsQ: Best way to recover the sqlite date
In sql that runs at the time of inserting a new record the field data_cad is current_datetime. What is the best way to show in Activity the date in the dd/MM/yyyy hh:mm:ss format? Thanks in advance.…
androidasked Thiago Porto 292 -
0
votes1
answer207
viewsQ: Set the size of a field in migration
How do I set the size of a string-like field in a Migration? Ex: class CreateRooms < ActiveRecord::Migration def change create_table :rooms do |t| t.string :title t.string :location t.text…
ruby-on-railsasked Thiago Porto 292 -
1
votes1
answer1438
viewsQ: Using onclick and onitemclick methods on Actionbaractivity
I’m building my app in android studio, I created a normal acitivity that has actionbar support, in this acitivity I load a list of users but I can not fire these events, how to solve this? My list…
androidasked Thiago Porto 292 -
3
votes2
answers4535
viewsQ: How to apply internationalization in an Android app?
How to apply internationalization to an Android app? On the app’s play store publishing page, is there a tab on translations, just enough? How to apply? Or is there another way? I’m in doubt because…
androidasked Thiago Porto 292 -
0
votes1
answer952
viewsQ: How to use zipalign in Andriod Studio?
I work with android studio on the mac, and at the moment I use the zipalign app that comes with the ide using terminal command. Every time the app shows this image message, you can automatically set…
androidasked Thiago Porto 292 -
2
votes1
answer2731
viewsQ: Back button closes app
I have a main Activity (Mainactivity), which contains a list and a Navigationdrawer, when I click the register option is called this screen: startActivity(new Intent(MainActivity.this,…
androidasked Thiago Porto 292 -
1
votes1
answer182
viewsQ: Add admob to a Drawer navigation layout
I want to put the advertisement in the footer of Activity, but it is at the top by superimposing a list: <FrameLayout android:id="@+id/container" android:layout_width="match_parent"…
androidasked Thiago Porto 292