2,720 Recommended Topics
Remove Filter | |
I'm trying to pass a filename to a function but don't know how to call the function from a click on a link. The top of my index.php is: <?php $filename = NULL; session_start(); // start of script every time. // setup a path for all of your canned php … | |
Most of us think of magic links when we hear "passwordless", but I'm trying out a different approach. What if we require our users to SEND an email for authenticating? I've been experimenting with this idea recently and actually got around to building a prototype. This system will work as … | |
Sorry for the lousy title, "InterProcess Communication" was too long Basically, I'm looking to use the native `_winapi` and `msvcrt` modules to launch an integrated python interpreter and communicate with it over pipes I can't find anything on Google or DDG, and I've been searching for days, but nobody uses … | |
| |
Hi all, I was recently having a look at the pywin32 module and found a multitude of approaches on how to find the color of a pixel given its coordinates, but was wondering if there was a way to find the coordinate of a pixel given its particular color, either … | |
Hello eveyone, I want to write a MARIE code to perform the following program excerpt: If (x < y + z) { x = x – y; z=z+1; } else y=y-1; Instactions given: - Use “ORG” instruction to start your program at address 200. - The following labels and directives … | |
Hi, Is there at all a way to sort (numerically) a multidimensional array? I have an array that is as follows `dim points(23,1) as String` The first dimension of the array has the players names in, the second dimension of it has their cumulative points, so I want to sort … | |
How to play the play list in vlc player by using vb.net code | |
<?php if(!empty($_POST['submit'])){ if(empty($_POST['user_name'])|| empty($_POST['phone_number'])|| empty($_POST['email'])|| empty($_POST['password'])|| empty($_POST['confirm_password'])) { exit("please fill in all the fields. <a href = './register.php'>return</a>"); } if($_POST['password']!==$_POST['confirm_password']) { exit("passwords must match. <a href = './register.php'>return</a>"); } /*$pattern = "^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$"; if(!pregmatch($pattern,$POST['email'])) { exit("please enter a valid email address. <a href = './register.php'>return</a>"); }*/ $regex = '/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/'; if (!preg_match($regex, … Programming php | |
hello guys I'm trying to make a code that return the name of the flight that has the most total number of passengers from a file : Alitalia Rome 180 Alitalia Pisa 82 Germanwings Munich 96 Germanwings Frankfurt 163 NorwegianAir Bergen 202 Wizzair London 184 Wizzair Frankfurt 83 Wizzair Lisbon … | |
Hello everyone, I have some problems with my program , hope you can help me to solve it. 1- I need a method for the** Clear Time** button that remove the counter to be 0. ` private void btclearActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: min=0;sec=0; lblsec.remove(lblsec); … Programming java | |
onkeypress event in javascript not showing the unicode(hindi/remingtongail) character it is only alerting 'r' on pressing a key. i am using hindi indic input 3 toolbar to type in laptop. my javascript code is function validate(){ var string=event.key; c = string.charCodeAt(1); var xyx=String.fromCharCode(c); alert(xyx); } My html text area code … | |
Dear All, How to Save Finger Print (Template/Minutiae) into database, using SecuGen Hamster Pro 20 finger print reader, i have also downloaded SDK, in there sample code there is no any function to save Finger Print (Template/Minutiae) into database using vb.net. Please guide me. the sample code is here Imports … Programming vb.net | |
Hi! I am a begineer in programming. I have started to work on the app using tkinter. I would like to add a contact form (similar to Django) to my app so a user can send me a message with queries. This message would be sent to my email address. … | |
Hi, I want someone to explain this code ( method ), and how it works.؟؟ Especially the process of moving the elevator // The elevator class draws the elevator area and simulates elevator movement class Elevator extends JPanel implements ActionListener { // Declaration of variables private Elevator_Simulation app; // Elevator … Programming java | |
good afternoon, I have been trying to use "login with facebook" on my website for 15 days. I have been using the code published by Facebook, at the link https://developers.facebook.com/docs/facebook-log... web / v2.2. My problem with this code is that I want the customer after login with his facebook (through … Programming api html-css javascript | |
Hello DaniWeb! I am interested in learning computer programming, but have no previous experience. I've been told that Python is a good place to start, so I decided to give it a whirl. If anyone can help point me toward resources geared for the absolute beginner (learning both programming concepts … | |
I want to dynamically fill key and value in an associative array using for loop in PHP $ct = 4; $str = ''; for($cunt=1; $cunt<=$ct; $cunt++) { $valu= '"value'; $cuntc = $cunt.'"'; $rw = '"$row'; $fild= "field"; $cp = $valu.$cuntc."=>".$rw."->".$fild.$cuntc; $str .= $cp . ','; } //trim the , from … | |
I want to create a friend chat where user can send, confirm and delete request and display results. Any help? | |
I am trying to get my private void transfer method and pass it into a 2D array transfer2D method, after which I am able to print it out using the print2D_1 method. I am also trying to sort the array from the highest suit to the lowest suit followed by … Programming java | |
my Controller function public function editDoctor($id) { $doctor = $this->doctorsRepository->getDoctorById($id); return view('doctor.edit', compact(['doctor'])); } This is my modal form <!-- Edit Doctor modal --> <div class="custom-modal"> <div class="modal fade" id="editDoctorPopup" role="dialog" aria-labelledby="editDoctorPopupLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="editDoctorPopupLabel">Edit Doctor</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span … | |
Sorry if there is bad formatting, but this is my first post. I am trying to use a copy constructor to copy the list in LinkedList and then show that they are the same in the copy using the display() function. My problem is that when I try to populate … Programming c++ | |
Hello friends, I have a website on which I embedded my YouTube channel, but I need my users to pay before they can watch live videos. Help me. | |
here I wrote the code var whil = n3.children('.trade_item'); var all = 0; var one = [], two = []; for(var i = 0; i < whil.size(); i++) { $('.primary:last', data).children('.tradeoffer_item_list').children('.trade_item').each(function(i){ one.push($(this).attr("data-economy-item").split('/')[2]); two.push($(this).attr("data-economy-item").split('/')[3]); }); var ad = Price("http://steamcommunity.com/economy/itemhover/730/2/" + one[i] + "?o=" + two[i]); all += ad; } $('#w').html(all); I … Programming | |
Hello, I have created a spelling corrector for a project and currently I am struggling on making it work in real-time application (on-the-fly) By this I mean, that I am reading the input of the user (anywhere on the Windows OS - not only in python shell) with the python … | |
I have Apache2, php 7.2, and mysql installed. At the top of my index.php I have the following script: <?php session_start(); // start of script every time. // setup a path for all of your canned php scripts $php_scripts = '/home/larry/web/test/php/'; // a folder above the web accessible tree // … | |
Hi, I am developing an app that monitors and corrects the user input based on some rules. I am reading the events from keyboard with the keyboard python module. I faced some problem when the user types very fast, as regards some overlays of text. By this I mean that … | |
![unknown.png](/attachments/large/4/2b1e92f91b55c8fd50f89ee45bbf4ca3.png) | |
Hello, I am writing this code to allow for a menu based banking system application. Part of the assignment was to check for input validation of the file I would like to open. In this case the user inputs their "customer id" which is stored as "custid" and then this … | |
i have made the following program but i cant find what is the error... the output is not coming correct... for example Enter A Binary Number 110011 Number of ones are 0 Number of zeroes are 1 [code] void main() { clrscr(); int r, ones=0, zeroes=0; long int n; printf("Enter … |
The End.