Posts by Rene Freak • 938 points
72 posts
-
0
votes0
answers856
viewsQ: Ubuntu: Restrict user FTP/SFTP access to an existing folder
Consider the following situation on an UBUNTU-mounted web server: /var/www/site 1 <-- apenas root /var/www/site 2 <-- designer 1, root /var/www/site 3 <-- designer 2, root /var/www/site 4…
-
0
votes1
answer30
viewsA: How to remove titles (at runtime) and decrease the size of Floatingactionbutton?
Do you have any special reason to use a library that the author himself says is extremely limited? I don’t know if this will work library, but using FAB from material library design, you control the…
androidanswered Rene Freak 938 -
2
votes2
answers192
viewsA: Why do you need to close the script tag?
Just look at the definition of the tag to understand. Your example uses src to load an external script, but if you put the code between the tags, it also works. See the reference here This is an…
-
0
votes1
answer1014
viewsA: Featured Post - Wordpress
To make the posts or pages featured on the home page, enter the edit page and mark the star. You don’t need any plugin or special field. On this same page you determine the order of articles/posts.…
-
1
votes1
answer111
viewsA: Myviewholder with error
The error has nothing strange. Alias, is very enlightening. It says that at line 43 of the layout, when trying to compare a null value, it finds an error. So it points to the location and describes…
-
1
votes2
answers488
viewsA: Delay in loading Recyclerview
It is normal yes. and not even need to be so many records. Much of this time is the feature assembly in the device’s memory. The options are: Improve query. Why load 16,000 records at once? Use…
-
0
votes1
answer219
viewsA: Error translating strings previously marked as untranslatable
To start, click on Build>Clean project and try to compile again. Sometimes just clean the project data to resolve some stops in AS. Since you have not shown the folder structure and no code, let…
-
0
votes1
answer580
viewsA: How do I use window.open and window.close together
When you open the window, the focus goes to it and the method close-up() is ignored. Put this code in the window that was opened (daughter): window.opener.close(); This will close the window that…
javascriptanswered Rene Freak 938 -
1
votes1
answer192
viewsA: Google maps' getMap() problem - android
Android evolves very fast and a lot of code gets in the way. This is the problem of following very old tutorials. It may even be that the rest of the article/video is still relevant, but the code is…
-
0
votes3
answers803
viewsA: How to add a Searchview to an Android Fragment?
According to the documentation missed Return true; in the method onCreateOptionsMenu(): public boolean onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.campo_pesquisa,…
-
2
votes2
answers84
viewsA: Doubt about data-based front end modeling
The two approaches are valid. The choice depends on some factors: Similarity - how much the canvas of each post is similar or not. This way, it can make sense to even mix the two approaches. For…
front-endanswered Rene Freak 938 -
6
votes2
answers314
viewsA: Is there any difference between clip and overflow property?
This statement is true? It’s not. These properties even have a relationship with each other, but they control different things. What would those differences be? clip: allows specifying a rectangular…
-
1
votes1
answer129
viewsA: Problem with tablayout and sqlite
It may be that even though they appear to be different, the selects bring the same result. And therefore are equal. But also, in query 2, there are some errors. This excerpt: if…
-
0
votes1
answer938
viewsA: Overwrite one image over the other with href="#image"
In this case, the easiest way is to use an external library such as jQuery. The following link shows you the jQuery page specific for creating tabs: https://jqueryui.com/tabs/ <!doctype html>…
-
3
votes3
answers46491
viewsA: Path to access html folders ,css,php etc
../ can be read as a folder above. Consider this structure: dominio.com/html dominio.com/images Imagine a folder page /html need to access an image of the folder /image. if you know the domain, will…
-
1
votes1
answer247
viewsA: Css in inputs using Affordance principles
I think it is necessary to balance the concepts of affordance, responsiveness, economy (avoid unnecessary code) and scalability (in maintaining and expanding code). You must prioritize things and if…
-
0
votes2
answers534
viewsA: Is it possible to change the value of an annotation at runtime?
I don’t think so. Annotations are transformed into instructions at compile time and values become constant. You can even hack it to present the value you want, but that doesn’t change the annotation…
-
1
votes1
answer76
viewsA: Android Development
Theoretically, vc can develop for android using Notepad only. Eclipse is one of the most used Ides for JAVA and until AS appeared was one of the most used also for Android. If you have no option,…
-
0
votes1
answer30
viewsA: Size of elements on a responsive page
In the tags you indicate that your doubt is related to Bootstrap 3. So you need to understand the concept of grid Examples to solve your question. Other concepts are margin and padding, but the grid…
-
0
votes2
answers1631
viewsA: Form making empty INSERT in Database
The PHP validation of a form, should be done on the server and will not work because you put it on the client side. On the client side, you must use javascript to validate. Whereas client-side…
-
0
votes3
answers1031
viewsA: As returns only the file name without the path
To get the file name from the full path: $this_page = basename($_SERVER['REQUEST_URI']); // caminho e nome do arquivo if (strpos($this_page, "?") !== false) $this_page = reset(explode("?",…
phpanswered Rene Freak 938 -
2
votes1
answer39
viewsA: Do search engines prioritize file names or "alt" attributes in images?
The search engine indexing algorithm gives one weight for each item and another weight for the combination of items. It would be better to have both. The objective file name and the most complete…
-
0
votes2
answers72
viewsA: How to decode a code that modifies vowels
Use the method public String replace(char oldChar, char newChar) import java.io.*; public class Test { public static void main(String args[]) { String Str = new String("2n1v5rs0 5 t2d0 0 q25 5x1st5…
-
1
votes2
answers48
viewsA: How to show only the completed data of a query to the database
I entered a condition in your code. You may need to match the condition according to the contents of the table or the fields you want to skip, but this is the model: <?php $consulta =…
-
1
votes1
answer1487
viewsA: How I can access the command terminal android
Have you tried installing a terminal app? For example: https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=pt…
androidanswered Rene Freak 938 -
2
votes2
answers102
viewsA: Doubt with Try Catch
The try catch can be seen as a protection against 'crash' to handle exception errors in a secure way. The program tries to execute what is in the block try and if you find an exception error, jump…
c#answered Rene Freak 938 -
0
votes1
answer95
viewsA: Mail() php function, request data
Try the following code instead of attaching.php Compare the two and you will see that I put the html next to php, so that after sending the message it shows a page with the sent data or the error…
-
0
votes1
answer128
viewsA: Types of products in wordpress
This article explains in a simple way, some types of product grouping in Woocommerce. And, for each type, it presents a plugin. Agrupar productos en Woocommerce This other talks about variable…
-
2
votes2
answers363
viewsA: if-Else command is not working
This line if (y>9999 && y<1000) printf("Ano inválido"); says: If Y is greater than 9999 and less than 1000 print "Invalid year" This condition is always false. That is, the else ALWAYS…
-
2
votes1
answer5335
viewsA: I need to create header and footer fixed for all pages
This code fixes the header and footer. CSS: footer { width: 100%; position: fixed; bottom: 0; right: 0; background: black; color: white; height: 40px; display: flex; } header { width: 100%;…
-
0
votes2
answers1248
viewsA: Footer go to the bottom of the page
Try this code: footer { width: 100%; position: fixed; bottom: 0; right: 0; background: rgb(45,45,47); height: 40px; display: flex; } #footercontainer { width: 1000px; display: flex; flex-direction:…
-
0
votes2
answers108
viewsA: Web link in Textview without showing url, type "Click here"
With the ramaral tip, the code went like this: public void show() { PackageInfo versionInfo = getPackageInfo(); String EULA_PREFIX = "eula_"; final String eulaKey = EULA_PREFIX +…
-
1
votes2
answers108
viewsQ: Web link in Textview without showing url, type "Click here"
The goal is to create a dialog with some links to websites. The following code already does this, but the URL appear explicitly (www....) and I would like it to be 'hidden' behind words like 'click…
-
-1
votes1
answer651
viewsA: How to offer free and paid Android app on Google Play?
I had imagined that the two versions would go up to the same APP on the Console and Play would take care of exchanging one version for the other, when the user made the purchase. After reading the…
-
1
votes1
answer78
viewsQ: Why does this FAB disappear, but not reappear?
I’m trying to animate a FAB so that when the scroll occurs up, hides the FAB and when it rolls down, it reappears. I am following the example of these tutorials that are very similar: FAB: Codepath…
-
1
votes1
answer651
viewsQ: How to offer free and paid Android app on Google Play?
It’s my first app and I couldn’t find the answer anywhere. The app is ready for distribution on Google Play. It has two versions: free (with ads) and paid (no ads). I created the app in the…
-
0
votes1
answer105
viewsA: How to use Data Binding with distinct layouts on Android?
Apparently, the errors were even Android Studio. The solution for the IDE to be able to 'see' views of both layouts (default and land) was done in three steps: 1) File > Invalidate Cache /…
-
0
votes1
answer105
viewsQ: How to use Data Binding with distinct layouts on Android?
I’m making a app Android that displays a list of addresses and a map with these addresses. Vertically, the two fragments appear on tabs inside a viewPager. /res/layout/activity_main.xml <layout…
-
0
votes1
answer42
viewsA: How to (Re)use Googleapiclient in recyclerview and Adapter
As there was no answer -- I even won a medal for it -- and solved the problem of app, here’s my conclusion. It is not possible to reuse connections with the GoogleApiClient. Each class must make its…
-
0
votes1
answer58
viewsA: How to deal with Location services in fragments
The solution was to create a class extending Application in order to use as a singleton. public class Here extends Application { private static Here sInstance; public LatLng myLocation; public…
-
1
votes1
answer43
viewsA: Googleapiclient inside recycleViewAdapter?
After a lot of research, even in SOEN I found the answer in the documentation. As there was no attempt to reply and not even a comment, I think I will report what I found because it worked and you…
-
0
votes1
answer42
viewsQ: How to (Re)use Googleapiclient in recyclerview and Adapter
I’m using Google Places API for Android for suggestion of addresses in input fields. This API uses Googleapiclient to operate. The app has a fragment composed of a recyclerview and a FAB. On…
-
0
votes1
answer43
viewsQ: Googleapiclient inside recycleViewAdapter?
The app has a fragment with a recyclerview and a FAB. By clicking on FAB, opens a dialog where the user informs addresses, among other information. Address input fields are of the…
-
4
votes3
answers180
viewsQ: How to use repeated methods?
I have some methods that I use in various points of the applications and I end up having to copy in each class. For example: String getStringOrEmpty(EditText editText) { String mString =…
-
0
votes2
answers138
viewsA: Googleapiclient in Fragments
It turns out that everything was wrong, since the question. The problem is not because the form that receives the suggestions of GoogleApiClient is in a fragment, but yes, because it is in a…
-
0
votes1
answer58
viewsQ: How to deal with Location services in fragments
I’m creating an app (Android) with two fragments, one with a list of addresses and the other with a map pointing to these addresses. Vertically, they are sliding tab and horizontal, they are side by…
-
0
votes2
answers138
viewsQ: Googleapiclient in Fragments
The app in question, has a main activity and two fragments. There are two information panels, one contains the address list and the other displays a map showing the addresses of the list. The list…
-
0
votes3
answers2541
viewsA: Taking String values from Arraylist<Object>
I do something similar in my app and this can help you. I have a dbHelper class, where all methods of database manipulation are defined. This is the method that reads the database and returns a list…
-
0
votes6
answers422
viewsA: How to "call" this correctly?
I went through the same difficulties The reserved word this is used when the method references the object itself. For example, mainActivity. AS does not accept when referencing another object. For…
-
0
votes3
answers707
viewsA: Formatting dates for display and storage
With the help of colleagues and some modifications to the code, I achieved the desired effect. This method returns a string formatted as a system date, from a string in yyyy-MM-dd format. Enter…