Posts by Fábio Jânio • 3,407 points
226 posts
-
0
votes1
answer265
viewsQ: Problem with the confirmDialog component of the primefaces
In the view of my java application I have a commandButton that should open an exclusion dialog, however, when clicking the delete button the dialog is not shown. The code is: <ui:composition…
-
4
votes2
answers2630
viewsQ: See total records in Laravel
In certain part of my application written in Laravel I have this consultation: $counts = User::select(\DB::raw('count(*) as status_count, status')) ->groupBy('status') ->get(); It returns me…
-
0
votes2
answers1092
viewsQ: Menu css separated by bar
I have the following list: <ul> <li>Inicio</li> <li>Notícias</li> <li>Download</li> <li>Contatos</li> </ul> I would like to make this a…
-
2
votes2
answers79
viewsQ: Capture the image link contained in html
I have the following code: <?php $content = ' text text text text <img src="path/to/image/1">text text text text <img src="path/to/image/2"> text text text text text text text text…
phpasked Fábio Jânio 3,407 -
-1
votes2
answers1138
viewsA: Present summary content in Laravel 5.1
I managed to do so: {{ preg_replace('/(<.*?>)|(&.*?;)/', '', \Illuminate\Support\Str::words($noticia->conteudo, 70, "...")) }} With this I can remove the html tags and special…
-
3
votes2
answers1138
viewsQ: Present summary content in Laravel 5.1
I have a controller that performs a paged query: $noticias = Noticias::orderBy('created_at', 'desc')->paginate(4); However, one of the returned columns is the content. The column in question has…
-
1
votes1
answer53
viewsQ: How to capture the value of the current attribute with jQuery?
I have the following form in html: <form>First name: <br> <input type="text" name="nome"> <br>Last name: <br> <input type="text" name="sobrenome"> </form>…
-
1
votes2
answers333
viewsQ: Difficulty defining the path where a particular txt will be created
The method below generates a txt containing certain information: public static void gravarIp(String ip) { try { File arquivo = new File("ip.txt"); FileOutputStream fos = new…
javaasked Fábio Jânio 3,407 -
5
votes2
answers135
viewsQ: While with incomprehensible format
My knowledge in java is very basic, before that I came across a question to which I have not found answer. The code snippet below is used in some of my applications: File arquivo = new…
-
1
votes2
answers1735
viewsA: How to make a button that calls an iframe
If you want another alternative using jQuery, just include the jQuery code call and include at the end of the file this code snippet: <script> $(document).ready(function () {…
-
0
votes2
answers74
viewsQ: How to recover the html displayed in a Uiwebview with Swift for IOS
When my application starts the method viewDidLoad executes a code snippet that accesses an X site, retrieves an HTML form and displays it in a Uiwebview. My problem is this, when a link is clicked I…
-
0
votes2
answers1059
viewsA: JSON API Callback
I think the code below might be what you’re looking for: $.ajax({ type: 'GET', url: "https://url-to-api/pagina", data: { sex: "M" }, dataType: "jsonp", crossDomain: true, cache: false, success:…
-
0
votes1
answer298
viewsA: htaccess help and base url php
Please try this: Options -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d [OR] RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.*)$…
-
0
votes2
answers681
viewsA: Access instantiated class attributes and methods in another class
I’m not sure what you want to do, but I believe it must be something like this: <?php class Apresentar { public function __construct(ControllerUsuario $usuario) { echo $usuario->getUsuario();…
phpanswered Fábio Jânio 3,407 -
2
votes1
answer620
viewsA: HTML manipulation with PHP/JS
A simple and functional example of how to get the html of a page as well as retrieve a certain value from within this html can be found here: http://simplehtmldom.sourceforge.net But I make my own…
-
0
votes2
answers109
viewsA: Error in SQL syntax - mysqli_real_escape_string
I believe the problem is in select, I think order by has to be after the Where clause: $sql2 = "SELECT * FROM `downloads` where `categoria`= '".$teste."' order by datacadastro DESC";…
-
2
votes1
answer70
viewsA: Problem When printing an SQL query on the PHP page
See if it helps dear friend: <?php include ("conexao.php"); $consulta = "SELECT SUM(valor) as soma, pagador from conta GROUP by pagador"; $result = mysqli_query($conexao,$consulta) or…
-
2
votes1
answer573
viewsA: PHP - Remote Xdebug using netbeans
Problem solved. In the /etc/php5/conf. d path the 20-Xdebug.ini file must be changed to Xdebug.ini and Restart apache. All right now.
-
1
votes1
answer129
viewsQ: Swift - Parse in HTML
Currently I have a project for IOS 9 where I have a Uiwebview component, I am recovering a web page and presenting within this component. But my goal is to take only the first form that is presented…
-
1
votes1
answer573
viewsQ: PHP - Remote Xdebug using netbeans
Presenting the environment: I have a virtual server running a Debian 7.2 (64bit) distribution, on this server I have installed Apache 2.2.22 and PHP 5.4.39 My host machine runs OS X 10.11, as a…
-
1
votes2
answers672
viewsQ: Remove substring with regex
I got the string: var str = "Quantidade [12]"; I need to recover the string but remove the space and the [12], IE, I need to return only the value: Amount. In case the string is var str =…
-
0
votes1
answer81
viewsQ: How to update Uitableview with two-dimensional array?
I’m not getting my upgrade UITableView with the data contained in Array: var linha: NSArray = [["Categoria": "Desenvolvimento para IOS", "Imagem": "swift.png"],["Categoria": "Programação orientada a…
-
1
votes2
answers204
viewsA: Swift - Add button show password
I got something close to what I want using the code: import UIKit class LoginViewController: UIViewController { @IBOutlet weak var usuarioOuEmail: UITextField! @IBOutlet weak var senha: UITextField!…
-
1
votes2
answers204
viewsQ: Swift - Add button show password
I have a text field, I have already been able to include an image on the right side, by clicking this I would like to reveal the password, however, I am not able to reach this result. The current…
-
0
votes2
answers67
viewsQ: Parse’s design with black stripes
I’m using the Parse.com project in version 7 of Xcode, however, the app gets a black belt at the top and another at the bottom as shown in the image: I’m using the Swift version of the project.…
-
2
votes1
answer328
viewsQ: Swift 2 - Variable with null value
I have a web page that returns the following json structure: [ { "nomeDoServico":"fdPHost", "nomeParaExibicao":"Host de Provedor da Descoberta de Função", "status":"Iniciado" }, {…
swiftasked Fábio Jânio 3,407