Posts by Jasar Orion • 2,233 points
129 posts
-
0
votes0
answers119
viewsQ: Problems using the camera on mobile or tablet
Good afternoon. I made a code that takes photo using webcam or camera phone on desktop and android works and on iphone the screen gets black. follows my Cod html <div class="demo-container">…
-
-4
votes2
answers43
viewsQ: Element selector: Select above the tenth element
I have a list of Ids that are filled randomly on the screen. How do I select from the tenth element repeated up with jquery ? <div class='img'><img src='imagem.jpg'></div> <div…
jqueryasked Jasar Orion 2,233 -
0
votes1
answer25
viewsQ: Arrays comparison or best method to add new elements
I have a webservice in json that returns me the last people who passed in a certain location. That said I did the following: I only ask for the api always the information of the last person to pass…
-
2
votes0
answers41
viewsQ: Query in mysql grouping by days with Count returning value 0 if there is no day
Good morning I’m doing a db query as follows: SELECT IFNULL(COUNT(*), 0) as numero, DAY(cdr.calldate) as dia, MONTH(cdr.calldate) as mes, YEAR(cdr.calldate) as ano FROM cdr LEFT JOIN peers on…
mysqlasked Jasar Orion 2,233 -
0
votes1
answer290
viewsA: Photo gallery ordered in Python
Thanks to Anderson’s help the working Cod was as follows: def index(): images = [] for root, dirs, files in os.walk('.'): files.sort(key=os.path.getmtime) for filename in [os.path.join(root, name)…
-
0
votes1
answer290
viewsQ: Photo gallery ordered in Python
Good morning I’m developing an image gallery listing them from a directory. What I have to do is separate these images or sort in order of creation. I have a script that generates the images as…
-
2
votes1
answer76
viewsQ: Problems with Curl using Face++
I’m using a Face++ API for visual face recognition. I set up a code in PHP that sends a face.jpg to their API according to the rules in the documentation, but this Curl is either not sending the…
-
0
votes1
answer550
viewsA: Error Dashboard PHP Page - Cache Limiter Session start
Solving the problem of "headers already sent" m error that a very beginner programmer ends up coming across there is the famous "Warning: Cannot Modify header information - headers already sent…
-
4
votes1
answer4120
viewsA: Compare PHP date and time
it’s quite simple actually $data_transacao= strtotime($dados['transacao']->data_expira); $hoje= strtotime(date("Y-m-d H:i:s")); if($data_transacao<= $hoje) { echo "Ainda está dentro do prazo";…
phpanswered Jasar Orion 2,233 -
0
votes1
answer126
viewsA: display content from another page using fancybox
try this here ^^ js scripts <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script> <script…
-
1
votes1
answer33
viewsA: Preload of Photos
you can do by css .loading { background: transparent url('http://thinkfuture.com/wp-content/uploads/2013/10/loading_spinner.gif') center no-repeat; } <img class="loading"…
-
1
votes2
answers997
viewsA: Extract data from a . serialize
you can receive your data this way: $dados = unserialize($_GET['dados']); dai cara information passed by form ira as an array to see how your form is passing the instructions do the following…
-
1
votes1
answer213
viewsQ: Save custom variable in SNEP CDR Database
I have a server snep and by dial-plan I made a request at URA where the customer who called needs to enter his wallet. I made the validations if the wallet exists in the client’s bank by direct odbc…
-
-1
votes1
answer118
viewsQ: Get information from a JS-generated page with PHP
I have this page that’s on a server where I don’t have access. https://genuncoin.com/crypto/ Open it in the browser and you will see that its jquery generates a number. I’m trying to get the number…
phpasked Jasar Orion 2,233 -
1
votes0
answers831
viewsQ: Session in php is lost after changing page
I’m having serious problems need to deploy a php script that I made on a centos server that I installed. Apparently everything ok. Until the time to login. it logs but goes back to login screen and…
-
0
votes2
answers44
viewsA: Query in mysql does not work
got it this way SELECT f.nome, SUM(hv.total) as totalvendido, count(hv.id) as qtdvendas, sum(hv.total) as totalvendido, sum(iv.valor_venda - iv.valor_compra) as lucrototal, ROUND(sum(iv.valor_venda…
mysqlanswered Jasar Orion 2,233 -
0
votes2
answers44
viewsQ: Query in mysql does not work
I need to present a report and my query is this: SELECT f.nome, count(hv.id) as qtdvendas, sum(hv.total) as totalvendido, sum(iv.valor_venda - iv.valor_compra) as lucrototal,…
mysqlasked Jasar Orion 2,233 -
0
votes1
answer29
viewsA: Query problems in mysql
solved transforming this query into 4 querys being 3 subs select u.nome, u.id as id_user, (select comissao from comissao where id_usuario=u.id and mes='".dias($dia,'mes-anotoanomes')."') as…
-
0
votes1
answer29
viewsQ: Query problems in mysql
Good afternoon. I have a query in my db that has to bring the user name data and his id of the users table and the commission table brings the commission , prize, month, and a month field consisting…
-
-1
votes2
answers3036
viewsA: Display saved image in BLOB
vc has can print directly on image encoding in Base64 echo base64_decode($data); echo '<img src="data:image/gif;base64,' . $data . '" />'; where $data he image that came straight from db…
-
1
votes1
answer152
viewsQ: Query in Mysql when there are two ids
I have a table in Mysql that records link information from a PABX IP. It always stores the connection with a uniqueid own. But I noticed that time in IVR is also stored in the same table with the…
-
0
votes1
answer238
viewsA: How to use "mock" to perform function only after a while
Look at it this way. $(document).ready(function() { $(window).scroll(function() { if ($(window).scrollTop() + $(window).height() == $(document).height()) { var posicaoAtual = $(window).scrollTop();…
-
0
votes1
answer928
viewsQ: How to generate a long life token for posting information on facebook
I’m trying to generate a token for posting information on facebook on my page with php the script even makes the post but the token I can get has only one hour to live. How do I create a token that…
-
1
votes1
answer157
viewsQ: Php Mailer embed image does not work
I’m trying to send an image in the body of the email with php Mailer follows my Cod: $mail->AddEmbeddedImage("img/header.jpg", "img1","header.jpg", "base64", "image/jpg"); and the html of the msg…
phpmailerasked Jasar Orion 2,233 -
0
votes0
answers46
viewsQ: Problem with mysql function mysqli_insert_id()
I have the following query: $ad="INSERT INTO comanda_aberta set numero='$a', data_abertura=NOW(), data_fechamento=NULL"; mysqli_query($con,$ad); $idcomandalast = mysqli_insert_id($con); when I print…
mysqlasked Jasar Orion 2,233 -
0
votes0
answers187
viewsQ: Mysql query with grouping by day and time range
Good afternoon. I’m putting together a page with reports based on the amount of sales a bar has made. only if there is a problem. I need to generate a sales report per day until then I managed by…
-
1
votes0
answers62
viewsQ: Check if email has been uploaded with image embed or otherwise
I’m sending an email notification with phpmailer. These notifications are very important because they are firewall reports and I need to know when the person who should receive them read this…
-
0
votes1
answer1268
viewsQ: Take visitor user data with php
I am setting up a support system and need to get some customer data when it opens the service these data are: IP Operating system in this format ( Windows 10 64x e.g.) Browser used ( Google Chrome…
phpasked Jasar Orion 2,233 -
2
votes2
answers280
viewsQ: How to block directory files recursively?
I am trying to block all files from a particular directory except for .js , .jpg , .css , .gif , .png. I have this code, but it’s not working the way I want it to: <Files ~…
-
0
votes1
answer4347
viewsQ: How to open a page in the same tab with Javascript?
I have this script ajax that refreshes the screen and calls the notifyMe() and the notification is displayed. But I noticed that clicking opens the page in another tab. I want when clicked on the…
javascriptasked Jasar Orion 2,233 -
0
votes0
answers64
viewsQ: Doubt with mysql query bring results even if you have nothing
I have the following query inside a javascript that generates a graphic: <script> $(".sparkline_one").sparkline([<?php $sql="select count(id) as total, DAY(dia_criacao) AS DAY,…
-
1
votes1
answer75
viewsQ: Reward points opencart 2.0.3.1
I have a store in opencart 2.0.3.1 I am selling products and every 5 real spent customer earns 1 points. When the customer will use these points and he chooses to withdraw in the store the product…
-
0
votes1
answer395
viewsQ: Problem with cookies in php
I’m trying to generate a system that records a person’s email into a cookie so that they can add a list of a website’s properties to the database and when they upload the site via their email pulls…
-
0
votes1
answer123
viewsQ: User friendly URL does not work the way I need it
I have the following htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^imprensa/?$ imprensa.php [NC,L] RewriteRule ^imprensa/([a-z0-9\-]+)/?$ ler-impresso.php?p=$1 [NC]…
-
2
votes1
answer1070
viewsQ: Using IBM’s Watson with php and Curl
Good morning, I’m trying to use the IBM chatbot service Watson. As a test I created my support workflow for a simple pizza order. At the beginning of the call he welcomes you and asks what pizza I…
-
3
votes1
answer1661
viewsQ: How do I make an http request with php with authentication and waiting for a file to respond?
I am using a Text to Speech service and would like to use it in a php that I’m riding. The problem is that I never did what the api asks and I don’t even know where to start. this type of…
-
0
votes1
answer116
viewsQ: Convert perl script to php
I have a perl script working right and a script in php tbm working right. the only difference between the 2 is that my perl file has a command that makes a Return to the other script that calls it ,…
-
3
votes0
answers93
viewsQ: Natural Language or Chatbot
Good afternoon, I started this question more as a discussion than doubt of the language itself. I need to make a chatbot or use some service that offers this. I was studying natural language but I…
-
0
votes1
answer2517
viewsQ: throw new Exception in PHP
Good afternoon, I’m having trouble with a script switch($engine) { case "asterisk": if(method_exists($core_conf, "addRtpAdditional")) { $core_conf->addRtpAdditional('general', array("icesupport"…
phpasked Jasar Orion 2,233 -
0
votes1
answer78
viewsA: WHMCS error when using easy billet
I managed to solve the parameter localAPI requires an admin user then changing to $cliente = localAPI('getclientsdetails',$dados,'adm'); where Adm is my administrative whmcs user the problem has…
-
0
votes1
answer78
viewsQ: WHMCS error when using easy billet
I am using the easy boleto module for whmcs it is returning the following error array(2) { ["result"]=> string(5) "error" ["message"]=> string(51) "Admin User var is required if no admin is…
-
0
votes0
answers36
viewsQ: Limit creation of Extensions in Elastix 4
good afternoon. I have a lastix 4 running as Pabx but need to perform a modification on it. When you arrive in 10 extensions the addition form has to be replaced for a custom message. I have read…
phpasked Jasar Orion 2,233 -
0
votes0
answers45
viewsQ: Browser tabs control with javascript
Good evening. on my website I have a list of links that open with a target='_new' What I’m trying to do in javascript or jquery is that when any of these links are clicked it will open the other…
-
0
votes1
answer977
viewsQ: Upload validated files by php
I have a script simple of upload of files by PHP. This upload moves the files, which should be images, to a folder. I can only accept images jpg, png egif`. I just realized that there are images…
-
0
votes0
answers48
viewsQ: Problems with Google Api Login
Good evening I’m using the google login on my site. made with java script more php and normal function. my problem is in my application which is a webview as you can not open another tab it opens in…
-
1
votes1
answer80
viewsQ: Reading array with php
good afternoon, I have this array coming from variables $form Array ( [nome] => 765hygfy [data_nascimento] => ftyftyf [email] => [email protected] [sexo] => Feminino [rg] => ytfytfyt…
-
7
votes1
answer1682
viewsQ: Input type file does not work in webview
I have an HTML page that has a form of upload imaging in Chrome on pc or any browser works but in my app that has a WebView that opens this page then click on Choose file he does nothing. It is…
-
1
votes1
answer517
viewsQ: Problems with displaying my site on facebook
Good evening I have the tags on my website for sharing on facebook <meta name='og:title' content='Desapego Games - Troca, Compra e Venda de Games'/> <meta name='og:url'…
-
3
votes1
answer577
viewsQ: Query in Mysql does not order correctly
I have a game table called game, a table of gaming platforms called plataformas and a table that makes the N-to-N relationship between the two calls game_plataforma. I have a query that has to fetch…
-
3
votes1
answer1895
viewsQ: Javascript that displays how many months weeks days hours minutes seconds in x hours
I’m trying to put together a script that turns a number x of hours into weeks weeks hours minutes seconds only that there is a problem all scripts I found return by ex c vc has 1 week it returns 1…
javascriptasked Jasar Orion 2,233