Posts by wribeiro • 301 points
29 posts
-
0
votes1
answer303
viewsQ: Black background python image
I’m using pdf2image to export the pdf pages and join in just one jpg, one page at the bottom of the other forming a "gut", but my whole file gets black bg. #!/usr/bin/env python # coding: UTF-8…
-
0
votes2
answers231
views -
1
votes1
answer1079
viewsA: Popular runtime Clientdataset to run an SQL query ? Delphi
I decided to change the Cdsestoque, from Tclientdataset to Tsqlquery, and the code was like this: procedure PopulaCDSBlocoH(pDataFim: TDate); var SQL, DataEstoque: String; cdsTemp: TClientDataSet;…
-
1
votes1
answer1079
viewsQ: Popular runtime Clientdataset to run an SQL query ? Delphi
I need to configure the CDS to save the result of the query, but without dragging the components, since in this case I am not using any form, but returns error 'Invalid Field Type' in the fields…
-
0
votes1
answer49
viewsQ: Problem with calculating the total value Javascript
I’m having trouble recalculating the value of the OTHERS field with the TOTAL value. I need to add the value placed in the other field the first time, if I change the precise value recalculate and…
javascriptasked wribeiro 301 -
0
votes1
answer196
viewsQ: Update array value with IONIC Storage
I am using Storage to store my order data as per the image below: I need to check if the request (numped) exists before saving, if it exists update its data, if not I add new request. However my…
-
0
votes1
answer336
viewsQ: Dynamically change session expiration time - Code Igniter 3
Like me Seto a config.php file configuration item before he was loaded? I need to change the item $config['sess_expiration'], according to the user. I tried it this way: Php user. public function…
-
0
votes1
answer108
viewsQ: App wiping data from main page, while switching to secondary pages (IONIC 3)
I have the page 'Orders' as main, where it has button to select the customer, and select the products. When I click 'select client' method selectClient(), send to page 'select-client', where is a…
-
1
votes0
answers17
viewsQ: Mysql grouping problem inside a Trigger
I have the following Rigger code, where it makes a select on the main tables (DADF311, DADF313.. ) to insert the result ready in the secondary table (DADF514): DELIMITER $$ CREATE TRIGGER ta_dadf311…
-
1
votes1
answer43
viewsQ: Remove shadow when hovering the mouse in the Highcharts chart column
I’m not being able to identify why this "shadow" is appearing, the risk when I hover over the graph, this happens to all the others that are 3D. Follow code and image of what is happening: function…
-
0
votes2
answers559
viewsQ: Grouping an array’s value in PHP
I have the following array: Array ( [0] => stdClass Object ( [anomes] => 201601 [codreg] => 41 [nomreg] => PR [codcin] => 1 [nomcin] => OUTROS [valven] => 6835.7000 [qtdven]…
-
0
votes1
answer82
viewsQ: Pass Mysql result to Highcharts
I have the following array, and I need to convert it for Highcharts to interpret and generate the chart, as I can iterate my array, since it returns the duplicate region but with different sale…
-
0
votes1
answer106
viewsQ: 3D Highcharts column chart with Amcharts appearance
How can I customize the highcharts so that it doesn’t rotate the chart in yes, like Amcharts? The attempts I made were changing the settings alpha: 15, beta: 15, depth: 50, viewDistance: 25 and the…
-
2
votes2
answers269
views -
1
votes0
answers61
viewsQ: Turn database output to JSON in Amcharts default
I’m using the Code Igniter framework. I have the following model: public function getVendasVendedor() { $query = $this->db->query("SELECT * FROM vendas_vendedor"); return $query->result();…
-
2
votes1
answer67
viewsQ: What is the best way to update multiple tables using a Trigger?
I have a Trigger for After Insert notes After delete notes After update notes And I need to update several tables like, sales, sales_seller. I tested using a cursor for each table, at first it…
-
0
votes1
answer131
viewsQ: How to create a Mysql Trigger with more than one cursor
I’m trying to update two tables using the same Rigger, but it only updates the sales table, but no errors occur. Follows code: DELIMITER $$ CREATE TRIGGER depoisInsertNotas AFTER INSERT ON notas FOR…
-
0
votes1
answer18
viewsQ: Problem when returning a query
Why when I run the query below, it returns records: SELECT COUNT(DISTINCT(dadf332.numped)) AS qtdped, DATE_FORMAT(dadf331.datlan, '%d/%m/%Y') AS datavenda FROM dadf331, dadf332 WHERE dadf331.numped…
-
1
votes1
answer298
viewsQ: How to return the sequence of the week in the reported period?
Good morning, I need to return the sequence of the week of the month (of the reported period) in two fields, initial and final date. In PHP and MySQL. Currently returns the week number in the year,…
-
2
votes0
answers73
viewsQ: How to feed highcharts with myqsl data?
Guys I’m trying to create a chart using Mysql and Highcharts, but I’m having difficulties, I need to replace the Morris by the bar chart highcharts, follow php code ; function…
-
0
votes2
answers835
viewsQ: check if value exists in the array, if it does not exist save the data that does not exist in another array
$array = array( 'b_E_'.$cnpjClie.'_'.date('Ymd').'_A.'.$ext, 'b_M_'.$cnpjClie.'_'.date('Ymd').'_A.'.$ext, 'b_M_'.$cnpjClie.'_'.date('Ymd').'_B.'.$ext, 'b_M_'.$cnpjClie.'_'.date('Ymd').'_C.'.$ext,…
-
1
votes1
answer5104
viewsQ: Fatal error: Uncaught Error: Call to a Member Function query() on null in
My class code Users <?php class Usuarios { function listar() { require_once 'controller/conexao.php'; $sql = "SELECT * FROM usuarios"; $usuarios = $mysqli->query($sql); while ($linhas =…
-
1
votes1
answer114
viewsQ: How do I leave user messages on different sides of the chat?
I am developing a chat using PHP, Mysql and jQuery. My question is how can I make the users' message stay one to each side to differentiate? Follow the PHP code: echo " <div class=\"row…
-
1
votes1
answer154
viewsQ: Problem to open file
When I search a file . txt to import me returns the warnings Warning: fopen(.txt Clients): failed to open stream: No such file or directory in…
-
1
votes1
answer944
viewsQ: Show Alert on select
I have the following code $query = mysql_query("SELECT id, nome, situacao FROM clientes ORDER BY nome") or print mysql_error() <select class="js-example-basic-single form-control" id="cliente"…
-
4
votes2
answers787
viewsQ: How do I check if there is a directory, if there is a request to report a new directory? I am using innosetup to create an installer
I need to check the folder C: SISAUTO, C: BASESISAUTO. If folders exist, create a new one for example C: SISAUTO2, C: BASESISAUTO2 Follows code. ; Script generated by the Inno Setup Script Wizard. ;…
-
0
votes1
answer72
viewsQ: How to get the first 5 xml records?
<?php $xml = simplexml_load_file('http://g1.globo.com/dynamo/economia/rss2.xml') or die("erro carregar arquivo"); foreach ($xml->channel->item as $noticia) { …
-
-1
votes1
answer245
viewsQ: Icon of misaligned input
I have a password type input with span where the bootstrap icon is this misaligned, only Password type, text works normally <div class="panel-body"> <form class="form-signin" method="POST"…
-
-1
votes1
answer8459
viewsQ: Sublime Text does not appear menu bar on Ubuntu 16.04
I’m having trouble with the sublime text suddenly without realizing, the menu bar disappeared someone’s been through it?…