Posts by viana • 27,141 points
761 posts
-
18
votes1
answer2673
viewsQ: What makes Python a multiparadigma programming language?
Here on this Wikipedia page cites some examples of multi-language such as C++, Groovy, Oz, Ruby, Scala, Swift, Groovy and even Python. Particularly I did not find so objective the explanation. What…
-
6
votes2
answers2487
viewsQ: What is a recursive function?
I’ve always heard that recursion is an intelligent idea that plays a central role in functional programming and computer science in general. From what I understand, briefly, there is recursion…
-
0
votes1
answer227
views -
4
votes1
answer7629
viewsQ: What is the difference between simulator and emulator?
I am currently developing hybrid applications and supposedly, I say supposedly, I am "simulating" my applications in browser and sometimes in a virtual machine, being for Android the AVD (Android…
terminologyasked viana 27,141 -
2
votes1
answer1105
viewsA: Find the app by searching the play store
Google Play search is a key tool for users find important and popular apps for Android devices. Ensure your app and details are detailed and optimized is an important factor to be discovered by…
-
24
votes2
answers3245
viewsQ: What are genetic algorithms?
I was reading a little bit about algorithms and suddenly quoted the darwinism, evolutionary theory that explains the evolution process of the species, referencing genetic algorithms. There arose the…
-
5
votes2
answers6502
viewsQ: Extensions . pyc . pyd . Pyo in Python
Since there are certain extensions .pyc, .pyd, .pyo besides the .py in Python, what are the main differences between them? What each one represents?…
-
1
votes1
answer123
viewsQ: How to popular an Sqlite database through a . sql file?
I have a file .sql and need to run all rows, insert all records that are in it, into a table within the Sqlite. Contents of the archive mydb.sql: CREATE TABLE tblVeiculo (VeiculoId INT, Codigo…
-
2
votes1
answer345
viewsQ: How to join records from a table distributed in multiple . sqlite files?
I have several files with extension .sqlite, containing every 1 at least 1000 records thus totaling about 4,000 records. See how they are distributed: vihicles1.sqlite vihicles2.sqlite…
-
0
votes1
answer37
viewsA: limit publications Parse
Da para fazer dos dois lados, tanto no Android como no seu Server.If you have a relatively small collection of keys to save, which is an option for this situation, use the Apis Sharedpreferences.…
-
1
votes1
answer71
viewsA: Error showing list with Arrayadapter
Use the method setImageDrawable() passing as parameter the getResource().getDrawable(). See how it should look: Resources resources = context.getResources();…
-
3
votes4
answers806
viewsA: Organizing positions of a vector
One way to do this is to use the method arraycopy after checking which sum is larger. To use the method you need to specify some parameters, as indicated in the documentation: public static void…
-
11
votes2
answers6306
viewsQ: What is salt when it comes to password encryption?
Searching on cryptography, in some cases is used salt, as some people probably know. In English translation I know it is salt, but within the scope of software development I did not understand very…
-
3
votes2
answers1162
viewsA: How to get back from a Fragment to an Activity?
A simple way to do this is to use the addToBackStack(). See how it should be: FragmentManager fragmentManager = getSupportFragmentManager();…
-
5
votes2
answers611
viewsA: How to delete a particular data from a listview?
The logic is very simple. Just check that the element you are inserting already exists in your list using the method contains(). If it does not exist, you enter, otherwise you remove. See the…
-
0
votes1
answer56
viewsA: How to change Padding or margin of homeasupindicator
Starting with API 15, the positioning of these elements are encoded according to the capabilities of the layout. An alternative would be to use a custom toolbar to create your own navigation and…
-
1
votes1
answer3076
viewsQ: How to get the local IP address using PHP?
I have an application in which I want, related test, to get the IP address location of my PC. I did a brief search and saw that it is possible to rescue it using the following code: $ip =…
-
2
votes1
answer81
viewsA: Problem with Recycleradpter Popupmenu
The error occurs because you are not instantiating your mContext. You declare it but it remains null. An example of how it is: mContext = null; //como você não instanciou ele está nulo PopupMenu…
-
1
votes1
answer74
viewsQ: Equivalent to setOnItemLongClickListener in Ionic 2
I created a function in which when the user gives a click simple in item, shows a Toast, an alert, on the screen with the name of this item: Function in my file .ts: itemSelected(item: string) {…
-
0
votes1
answer51
viewsA: Query for Search Field
You can use the operator LIKE. Your query would look this way: "SELECT * FROM veiculos WHERE nome LIKE '%$veiculo'%"; See more details in the documentation.…
-
1
votes1
answer1016
viewsA: Problem running android app on Delphi
The mistake says that his AndroidManifest.xml is badly formatted. According to your code, the following is located on line 39: <%services%> This tag apparently, it escapes the syntax of .xml.…
-
8
votes1
answer175
viewsA: Alertdialog Android "comment" Popupmenu
It is possible to create a popup with a list of options using the public class PopupMenu added to Android from the level 11. The PopupMenu appear below the clicked item if there is space on the…
-
0
votes1
answer100
viewsA: Error while running Gradle
Delete the folder .gradle, then give a CLEAR and a RUN in the project again. In reference to this answer soen.…
-
0
votes2
answers959
viewsA: How do I take the content of a text that is on the link (URL) and upload it to Textview?
I’m not sure if it’s possible to do this with a text file directly from Google Drive, because actually when you click on the comment link referring to your .txt, it opens not only a text, but a text…
-
2
votes2
answers951
viewsA: When clicking an option from a list, hide options from another select
See an idea of what it would be like to solve this problem: $('#tamanho').on('change', function() { var classe = this.value; var options = $('#modelo option').remove(); options.each(function() { var…
-
9
votes1
answer3033
viewsA: Date in Portuguese (en-br)
Use the %B for the month format and as a method parameter date_default_timezone_set() use America/Sao_Paulo. See a simple example: setlocale(LC_TIME, 'portuguese');…
-
2
votes1
answer483
viewsA: Row and Column Loop in PHP
You can do using a condition with %module. It would be something like. if($item%5==0){ // insira o item + <br/> <-- onde br representa a quebra de linha else // insira o item normalmente…
-
2
votes2
answers189
viewsA: What is class to draw circle on Android?
There is the OvalShape, see at documentation. Example: OvalShape circle = new OvalShape(); circle.resize(50f * mDensity, 50f * mDensity); Imagery: See some application examples on Codota for…
-
1
votes1
answer2582
viewsA: Listing data from a table with PHP
It’s very simple to make a simple listing using PHP + Mysql. If you are a beginner, I advise you to first do everything on a page, then you can go organizing according to the pattern you want. See…
-
7
votes2
answers1395
viewsA: What is the difference between ~0.0.1 and 0.0.1 in package.json version control?
Briefly the use of til (~) offers bug fixes and circumflex( ) offers a new functionality compatible with previous versions. See this image you find on Semantic Versioning Cheatsheet: See a demo in…
-
1
votes1
answer274
viewsA: Collapsingtoolbarlayout change and leave transparent
You can add the contentScrim at the CollapsingToolbarLayout and make the bottom of the toolbar transparent, but with opacity, or if you prefer with a solid color. Since you didn’t put any code, it…
-
0
votes1
answer407
viewsQ: How to remove ion-Toolbar lift?
The following code below 'builds' a toolbar at the top of the application/page. Basically a ion-toolbar within a header that is fixed positioned. I intend to remove the elevation from it but am not…
-
14
votes2
answers429
viewsA: What is CSS Aural?
The CSS that speaks. Despite obsolete, Aural style sheets aim at a combination of speech synthesis and sound effects so that the user can hear the information rather than read it. [...]where is it…
-
5
votes2
answers1846
viewsQ: How to create a static method in a public class?
I would like to create a static method in a public class with a ToastController so that I can access this method in several classes. I tried to do this way below but it didn’t work: export class…
-
1
votes1
answer734
viewsA: NFC emulator for android
To NFC - Near Field Communication - is a technology that allows the exchange of information between devices without the need for cables or wires, only a physical approximation is necessary. If your…
-
7
votes2
answers810
viewsQ: What is embedded programming?
Reading a book about programming practices, at a certain point an excerpt about embedded programming. It doesn’t go into detail, but it talks a little bit about programming in microcontrollers and…
terminologyasked viana 27,141 -
15
votes2
answers1617
viewsQ: What is LINQ technology?
Today reading some contest questions, appeared one in which it was LINQ technology. Without delving too much into the research I noticed a number of quotes as: LINQ to SQL LINQ to XML (C#) LINQ to…
-
1
votes2
answers2553
viewsA: Error saving Sqlite Data (in such table)
From what you understand you try to create 2 tables with the name pedido, so see below the error occurrence below: Sqliteexception: table pedido already exists (code 1): while compiling: CREATE…
-
0
votes1
answer275
viewsA: Open clicked Listview item in a new Activity
To solve this problem you need to create a condition to recognize the item that was clicked. See below how it would be: listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {…
-
26
votes2
answers19823
viewsQ: What is the difference between htm, html, dhtml and ghtml?
Sailing in our "deepweb", I noticed some variations of the URL extension in the browser on some simple pages. For example on the globe with., which for some cases is .ghtml. For some time I imagined…
-
3
votes3
answers876
viewsA: How to repeat a minute-to-minute notification
There are several ways to do this, but you can use the ScheduledExecutorService in a Service. See how it would look: public class MyService extends Service { // definição do loop de 60 em 60…
-
1
votes1
answer34
viewsA: Error when trying to include a mapfragment in an Activity
In XML is SupportMapFragment and in your class is MapFragment. In place of: MapFragment mapFragment = (MapFragment) getFragmentManager() .findFragmentById(R.id.map); Use: SupportMapFragment…
-
2
votes2
answers1806
viewsA: Put icon in a site shortcut on Android
If the image you will insert is of the type .ico, you must define the type the image/x-icon. See below: <link rel="SHORTCUT ICON" href="images/favicon.ico" type="image/x-icon" /> For other…
-
0
votes3
answers99
viewsA: Custom Listview with Picasso
In your Activity you are declaring Adapter with 2 parameters: CustomAdapter adapter = new CustomAdapter(getApplicationContext(), names) Your constructor has 3 parameters: public…
-
0
votes2
answers29
viewsA: Inflateexception
Or you can use the SupportMapFragment. Behold: <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent">…
-
3
votes2
answers832
viewsA: Press the button of a screen that is a Fragment and go to another Fragment. How do you do?
Within the method onClick from your button, you can do this using the method replace() of FragmentTransaction. Behold: final FragmentTransaction ft = getFragmentManager().beginTransaction();…
-
5
votes1
answer3311
viewsQ: What is and how does ascending and descending parsing work?
According to some research I did, Parsing in computing, known as Parsing in English, it is the process of analyzing an input sequence (read from a computer file or keyboard, for example) to…
-
1
votes1
answer252
viewsA: recover item position in listview
Use the method setOnItemClickListener(). Behold: listaCategoria.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> adapter, View v,…
-
1
votes3
answers180
views -
2
votes1
answer145
viewsA: How do I display the Floatingactionbutton?
Use the class in your layout CoordinatorLayout(public class), so that you can use anchorage "bottom|end" in his FloatingActionButton. The CoordinatorLayout provides an additional layer of control…