Posts by Stéfano • 383 points
41 posts
-
0
votes3
answers500
viewsA: Android - Remove White Space Between Recyclerview Items
The problem was solved by changing the layout of the sticker_category_item_view.xml, using only wrap_content, thus: <?xml version="1.0" encoding="utf-8"?> <LinearLayout…
-
1
votes1
answer71
viewsQ: How to hide part of a view?
I have the Stickerbtn.java with the following code: public class StickerBtn extends View { private Bitmap mControllerBitmap private void init() { mControllerBitmap =…
-
1
votes3
answers500
viewsQ: Android - Remove White Space Between Recyclerview Items
I have a problem just like this here. I’m using the 'com.android.support:recyclerview-v7:28.0.0'. The XML is as follows, activity_main.xml, problem lies in the recyclerOverlay: <?xml…
-
-1
votes3
answers446
viewsA: How to let a div 'Fixed' be limited by a main div?
Just create a div fixed that appears and disappears using the display:none. This also happens in pc gamer.…
-
1
votes1
answer1293
viewsQ: Mode to translate website automatically
I have a Portuguese site written in PHP and HTML. I would like to offer this site to other countries, but without having to translate all content manually. So I would like a tool that translates the…
-
9
votes1
answer1343
viewsQ: Fullscreen Video on Android Webview
I have an application made on Android Studio using webview and runs a remote web application. The video is displayed perfectly on the webview. However, the option to fullscreen is not available in…
-
0
votes3
answers61
viewsA: How to save date in mysql table
Use the NOW() to place the current date. INSERT INTO testar (data, nome) VALUES (NOW(), 'Pedro')
-
1
votes2
answers677
viewsA: Query sql codeigniter
The consultation SQL normal in PHP would be as follows: <?php $data = date('Y-m-d'); $sqlq = " SELECT idevento, cnome, inicio, fim, descricaoEvento, user, importancia FROM eventos xxx LEFT JOIN…
-
4
votes2
answers157
viewsA: If I declare a variable in a SELECT query is it required?
Check with IF. if(!empty($nome)){ $where = "clientes.nome = :nome"; } else {$where = "";} $query = "SELECT * FROM clientes WHERE $where"; You can edit the Else to add other rules to Where.…
-
1
votes2
answers56
viewsA: How to get the contents of dynamic Ivs?
You can use class and id at the same time. The id stays fixed. var teste = $('#teste55').val(); alert(teste); In the HTML part: <div id="teste55"…
-
0
votes1
answer132
viewsA: Create a button that opens a budget form tab/popup/etc in Magento
To the open window part: Utilize jQuery Dialog to open a cool modal window. https://jqueryui.com/dialog/#modal-form Or use the Vex, which is a very beautiful dialog as well.…
-
2
votes1
answer498
viewsA: Scrolling style effect of the Instagram app
Friend, you can use the jQuery Mobile 1.4.5. You find it in this link: http://demos.jquerymobile.com/1.4.5/ First, with the way tabs: http://demos.jquerymobile.com/1.4.5/tabs/ Plus the effect slide:…
-
1
votes2
answers522
viewsA: Webview links do not work
This answer complements the question. Let’s create an app with webview in the Android 7 (API 24) to open files HTML of local shape. 1) First let’s create the two files of HTML as an example: The…
-
1
votes1
answer201
viewsA: c# with javascript catch image src using Mousedoubleclick cefsharp
Very simple, just use onclick in his HTML. function selectAvatar(el) { var imgSrc = el.src; window.alert(imgSrc); } <img onclick="selectAvatar(this)"…
-
3
votes1
answer167
viewsA: How to make a checkbox become clickable?
Utilize bootstrap and prefixfree to make things easier. For this is already something more advanced. .cbx { position: relative; top: 1px; width: 17px; height: 17px; border: 1px solid #c8ccd4;…
-
0
votes2
answers63
viewsA: Insert jquery Cycle 2 in wordpress
At first, insert in the form of HTML to see what is going wrong. Do this on header.php from your template. See: <script…
-
1
votes1
answer102
viewsA: Know Count() output in query
Yes, it is possible. See the example: $results= " SELECT p1.*, aa.moedas AS numbers FROM usuarios aa ORDER BY aa.moedas * 1 DESC DESC LIMIT 3 "; $stmt = $pdocon->prepare($results);…
-
1
votes1
answer61
viewsA: create Hide effect and news link show with classes and ajax
1) First, you will have to make the query by ajax, passing to id of the news for your noticias.class.php know what news he will return. 2) Spend a id to the noticias.class.php it’s not that simple,…
-
1
votes2
answers57
viewsA: Adapt JQUERY to HIDE and Show
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="jquery/js/jquery-1.9.1.js" type="text/javascript"></script>…
-
0
votes2
answers272
viewsA: Changing default wordpress taxonomy
1) You must change the label category, see the example: <?php function change_category_taxonomy_label() { global $wp_taxonomies; $labels = $wp_taxonomies['category']->labels;…
-
1
votes3
answers2104
viewsA: Send message after clicking Submit button
You should use a means that relates to the POST to check if the button was clicked, see the example: <form action="" method="post"> <input type="text" name="salario"><br/>…
-
0
votes2
answers758
viewsA: What does the return of the INSERT 0 1 bank mean?
The first number means that the table was created without Oids (Postgresql default configuration). The second number means the number of records added. Oids basically provide an internal, globally…
-
1
votes1
answer693
viewsA: Footer is not fixed at the bottom of the screen
You must use position:absolute; on your footer and set right:0;bottom:0;left:0; so that it stays at the bottom of the page. html { height: 100%; box-sizing: border-box; } *, *:before, *:after {…
-
1
votes1
answer622
viewsA: Jquery Mobile Error Cannot read Property 'Concat' of Undefined
There should be compatibility between jquery and jquery mobile version. This is an example of the latest version. <link rel="stylesheet"…
-
1
votes2
answers676
viewsA: Add elements to a list
This you must do with ajax and jquery friend. When the person clicks, he adds the data in the div: $(".adicionar").click(function(){ $.ajax({ type: 'POST', url: 'resultado.php', success:…
-
0
votes1
answer107
viewsA: What is the best way to translate PHP projects?
You must use the php-gettext with file support . po or . pot, similar to what is done in Wordpress. See this guide: http://www.devin.com.br/php-gettext/…
-
0
votes1
answer56
viewsA: Help with javascript field validation?
$(function(){ $('#smesp').bind('input', function(){ $(this).val(function(_, v){ return v.replace(/\s+/g, ''); }); }); $('#smesp').bind('input', function(){ $(this).val(function(_, v){ return…
-
1
votes2
answers55
viewsA: seat stress problem
You must configure the encoding in PHP, just insert this line: ini_set('default_charset', 'utf-8'); Also, at the time you make the connection to the database, example using the PDO:…
-
1
votes1
answer66
viewsA: I can’t create a paragraph! HTML
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title>Guilherme P.</title> </head> <body> <img src="imagem.png"> <h1…
-
1
votes1
answer28
viewsA: What is the best and simplest Prototyping Tool?
Depends a little on how your project will be. Look at these: https://webflow.com/ This: https://proto.io/ And this: https://mobirise.com/pt/ Yet: https://framer.com/…
prototypinganswered Stéfano 383 -
1
votes1
answer15
viewsA: Does not set display to flex when you hover over
.container{ width: 300px; height: 200px; position:relative; } .container{ width: 100%; height: 100%; object-fit: cover; } .container:hover .name{ display: flex; } .img{ filter: grayscale(100%); }…
-
2
votes1
answer1176
viewsA: Wordpress: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 2 bytes)
Your code may be in an infinite loop, causing high consumption of server resources. Another reason that causes this is a page with many pictures with wrong file path. You can try increasing the…
-
0
votes1
answer976
viewsA: How to use bootstrap push pull?
You can try: <div class="row"> <div class="col-md-3 pull-md-9">Teste</div> <div class="col-md-9 push-md-3">Exemplo</div> </div>…
-
0
votes1
answer540
viewsA: Mobile Player Problem - webview app
Both in webview and in mobile browsers, sound cannot be started automatically, it needs a user action to start playing, like pressing a button for example. So, what you have to fix in your…
-
4
votes1
answer83
viewsA: What is the best way to eliminate spaces and dots?
You can try this way: FileReader fr = new FileReader("musicasentrada.txt"); BufferedReader br = new BufferedReader(fr); FileWriter fw = new FileWriter("musicassaida.txt"); String line; while((line =…
-
3
votes3
answers871
viewsA: Validation of completed fields of a form
This can be done through the HTML itself, just add required: <input type="text" name="usrname" required> It is a simple and functional option.…
-
0
votes1
answer119
viewsA: webview app doesn’t work perfect with Youtube
If you are using Android Studio, do the following in your java file, in the webview creation part: Toast.makeText(this,"Recommended to use 3G/4G or Wifi ",Toast.LENGTH_LONG).show(); // control…
-
1
votes1
answer786
viewsA: How to get the Android device IP to be used in Socket() in java?
You will need to make a request to an external server to know the IP. Something like this: https://github.com/kost/external-ip ================ In the case of IP Wi-Fi: WifiManager wm =…
-
2
votes1
answer701
viewsA: Laravel does not carry Visual part
Press Ctrl+U and check the source code for your application. It is not finding the defined style files between <head></head>. You’re on the wrong track for some reason. In particular the…
-
0
votes3
answers498
viewsA: search email in the database and make it appear in a select with php
1) Use the PDO. 2) Connect to the database using the PDO. $db_username = 'usuario'; $db_password = 'senha'; $db_name = 'nomedobancodedados'; $db_host = '127.0.0.1'; try { $mysqli_conn = new…
-
1
votes1
answer137
viewsA: How to update a different table with data from another table in PDO
That seems simple. 1) There are 2 tables. One has user, value. In the other there is user, value and code. 2) Insert the 'code' column into the first table, so the two are equal, you can easily…