Hello I am needing some assistance with setting up a function to check if a user is logged in or not with Passport.js using the local and slack strategy. I have a localstrategy which works fine but I also want to implement a sign in with slack as well. I have added my app to slack and set the redirect URL. Everything is working fine however regardless if a user signs in or not they can still access the main page from the URL. Example I have my login page 123.456.7.891:3000/login and when a user logs in through the local …

Member Avatar
+0 forum 0

Hello, Cek this site: www.advance-web-studio.com Cek the icons banner under download now. If I use the following code: <div class="row"> <div class="icons-area text-center"> <center></center><img class="img-responsive" src="<?php base_url() ?>public/images/icons.jpg" style="margin-left: auto; margin-right: auto; height: 200px;" alt="AWS"></center> </div> </div> with the style on pc it looks good but on handphone it start being cramp. I have to delete the whole style to make it looks on cell phone, but on pc it looks too big. I wonder how to make it looks good both on handphone and pc?

Member Avatar
+0 forum 0

I have two values in my code one is from a SQL Server query echo to the screen as formattedNum10d my second value is stored in a MySQL database and echo to the screen as formattedNum10f. In a seperate column i would like to subtract foramattedNum10f from formattedNum10d and echo the result but everything i have tried does not work any help would be greatly appreciated. $sql10d="SELECT SUM (CASE WHEN FFP.SINVOICE.NUM_0 Like '%SCR%' THEN (0 - (FFP.SINVOICE.AMTATIL_0 - FFP.SINVOICE.AMTTAX_0)) ELSE (FFP.SINVOICE.AMTATIL_0-FFP.SINVOICE.AMTTAX_0) END) FROM FFP.BPCUSTOMER, FFP.SINVOICE INNER JOIN FFP.SINVOICEV ON FFP.SINVOICE.NUM_0 = FFP.SINVOICEV.NUM_0 WHERE FFP.SINVOICEV.PJT_0='' AND FFP.SINVOICE.BPR_0 = FFP.BPCUSTOMER.BPCNUM_0 AND ((FFP.SINVOICE.ACCDAT_0>='$day01')) …

Member Avatar
+0 forum 0

How to modify this script to work with all options using Google Callback function? <!DOCTYPE HTML> <html> <head> <title>gCaptcha</title> </head> <body> <form id="mycontactform1" method="post"> <script type="text/javascript"> var RecaptchaOptions = {"curl_timeout":1,"lang":"en"}; function captchaSubmit(data) { document.getElementById("mycontactform1").submit(); } function IsRecapchaValid() { var res = grecaptcha.getResponse(form); if (res == "" || res == undefined || res.length == 0) { return false; } return true; } </script> <script> var form = "mycontactform1"; var Callback = function () { var reCaptchaFields = jQuery('.myid-recaptcha'); reCaptchaFields.each(function (key) { var $this = jQuery(this); var siteKey = $this.data('sitekey'); $this.html(''); grecaptcha.render(document.getElementById($this.attr('id')), { 'sitekey': siteKey } ); } ); }; </script> <script …

Member Avatar
+0 forum 0

Gaming work area is outstanding amongst other critical requirement for a gamer. When you sits before the work area for quite a while you should be however much agreeable as could be expected. There are som numerous choice of gaming work area that you can pick. Among them I list depicted 3 best gaming work area that may be the best alternative for you. This work area have such a large number of choices and particulars that won't let you down. Bestar Hampton Corner Gaming Workstation This work area is all that you sought after and that's only the tip …

Member Avatar
+0 forum 0

My requirement is connect to Oracle database from PHP. XAMPP is already installed in my pc. PHP Version 5.5.11 My system configuration is Windows 7, 64-bit operating system. I downloaded 32-bit instantclient-basic-nt-11.2.0.4.0.zip file and then extracted and copied folder into C drive. I gave this folder path in Environment Variables. Now I downloaded 32-bit ODAC101040.exe. I had run this exe file and installed Oracle Universal Installer into E drive. Now Environment Variables path is like below E:\oracle\product\10.1.0\Client_1\bin;E:\oracle\product\10.1.0\Client_1\jre\1.4.2\bin\client;E:\oracle\product\10.1.0\Client_1\jre\1.4.2\bin;C:\instantclient; I removed semicolon in php.ini file as below extension=php_oci8.dll ; Use with Oracle 10gR2 Instant Client extension=php_oci8_11g.dll ; Use with Oracle 11gR2 Instant …

Member Avatar
+0 forum 0

I am interested in accessing public meta data within an audience on Dazah platform without an authenticated user. Does the API have an oauth/token endpoint? Thanks, Henry Villadiego Web Video Specialist

Member Avatar
+0 forum 0

6 ‚óŹ4 I have a code that displays an array from GeoTab SDK, I am able to get the array to display in the console.log, and it populates the results like normal, However, When I try to populate the data in the table, nothing shows but the headings. Here is my code, and I will generate an object array and paste the code as well. I know the data that is generated is valid data, function generateDutyStatusLogSearch1(){ api.call("Get", { "typeName": "DutyStatusLog", "search": { "statuses": ["D", "OFF", "SB", "ON"], }, }, function(dutyStatusLogs) { var uniqueDrivers = {}; var multicall = []; …

Member Avatar
+0 forum 0

import turtle import os import math import random import pygame #set up the screen wn = turtle.Screen() wn.bgcolor("black") wn.title("Space invaders") wn.bgpic("space_invaders_backgrounds.gif") pygame.init() #Register the shapes turtle.register_shape("ship.gif") turtle.register_shape("Enemy.gif") #Drawing my border border_pen = turtle.Turtle() border_pen.speed(0) border_pen.color("white") border_pen.penup() border_pen.setposition(-300,-300) border_pen.pendown() border_pen.pensize(3) for side in range(4): border_pen.fd(600) border_pen.lt(90) border_pen.hideturtle() #Set the score to 0 score = 0 #Draw the score score_pen = turtle.Turtle() score_pen.speed(0) score_pen.color("white") score_pen.penup() score_pen.setposition(-290, 280) scorestring = "Score: %s" %score score_pen.write(scorestring, False, align="left", font=("Arial", 14, "normal")) score_pen.hideturtle() #create the player turtle player = turtle.Turtle() player.color("blue") player.shape("ship.gif") player.penup() player.speed(0) player.setposition(0, -250) player.setheading(90) playerspeed = 18 #Choose a number of enemies number_of_enemies …

Member Avatar
+0 forum 0

Hello, I would like to change the background color for each rows in Timeline chart based on specific value I,ve retrieve from database. For example, if the $status = '1', the backgrouncolor should be #000000, or else #ffffff var container = document.getElementById('myChart'); var chart = new google.visualization.Timeline(container); var dataTable = new google.visualization.DataTable(); dataTable.addColumn({ type: 'string', id: 'Position' }); dataTable.addColumn({ type: 'string', id: 'Name' }); dataTable.addColumn({ type: 'date', id: 'Start' }); dataTable.addColumn({ type: 'date', id: 'End' }); dataTable.addRows([ <?php for($i=0; $i<count($arr_code); $i++) { echo $data="['TEST', 'BAR NAME', new Date($start_date[$i]), new Date($end_date[$i])],"; } ?> ]); var options = { timeline: { rowLabelStyle: …

Member Avatar
+0 forum 0

from PyQt5 import QtCore, QtGui, QtWidgets # Import the PyQt5 module we'll need import sys # We need sys so that we can pass argv to QApplication import design # This file holds our MainWindow and all design related things # it also keeps events etc that we defined in Qt Designer import os # For listing directory methods class ExampleApp(QtWidgets.QMainWindow, design.Ui_MainWindow): def __init__(self): # Explaining super is out of the scope of this article # So please google it if you're not familar with it # Simple reason why we use it here is that it allows us to …

Member Avatar
+0 forum 0

I've been studying the [XEmbed protocol specification](https://standards.freedesktop.org/xembed-spec/xembed-spec-latest.html#lifecycle), as well as [Gtk reference manual](https://developer.gnome.org/gtk3/stable/GtkSocket.html), but I'm having some difficulty. I'm using Gtk+ 3. I've created a Gtk socket, got its window ID, but that's where I'm stuck. I'm using C. If I understand this correctly, the program I'm writing that contains the socket, which I'll call app A, sends the window ID of the socket to app B, which has the menu bar widget that should be embedded into app A, and puts the widget into a plug, then app A calls XReparentWindow(), which begins the XEmbed protocol. Please correct me …

Member Avatar
+0 forum 0

Design studios are hard to find, those that fulfill all your requirements. Sometimes, they have great testimonials but their portfolio might leave something to be said. Or they have great design concepts in their portfolio, but their testimonials are far and few between. But finding the right design studio that gives you great customer service as well as work, is like finding a needle in a haystack. If you are on the lookout for a design studio that helps you climb the ladder of success in the business world, it can be quite a lot of work. However, once that …

Member Avatar
-1 forum 0

> this is php code for get value while ($row = $activeRiders->fetch(PDO::FETCH_ASSOC)){ $rider_name = $row['RiderName']; $longitude = $row['CurrentLongitude']; $latitude = $row['CurrentLatitude']; $locations[]=array( $rider_name, $latitude, $longitude ); } $markers = json_encode( $locations ); > Jquery function $(document).ready(function() { $('#map').height($('.page-container').height()); $( window ).resize(function() { $('#map').height($('.page-container').height()); }); <?php echo "var markers=$markers;\n"; ?> > Initialize Map map = new GMaps({ el: '#map', lat: 24.8615, lng: 67.0099, zoom: 12, zoomControl : true, zoomControlOpt: { style : 'SMALL', position: 'TOP_LEFT' }, circleOptions: { fillColor: '#ffff00', fillOpacity: 1, strokeWeight: 5, clickable: false, editable: true, zIndex: 1 }, panControl : false, streetViewControl : false, mapTypeControl: false, overviewMapControl: false, …

Member Avatar
+0 forum 0

Hi, I'm trying to create and save breadcrumbs from recursive function. I manage to display hierarchical tree using recursive function. but I'm I am having hard time creating breadcrumb and save them one by one to my database. here is my table cat_id parent_id title 10 0 shoes 11 0 clothes 12 10 socks 13 11 long-sleve 14 11 T-shirts ... My desire output is like this: Home > Category1 > item Home > Category1 > item Home > Category1 > item Home > Category2 > item Home > Category2 > item Any idea thanks..

Member Avatar
+0 forum 0

The End.