2,720 Recommended Topics
Remove Filter | |
I have an array in python that has letters as strings and a comma as a string also. I have managed to find code that finds all the letters that come before that comma letter, there are other comma letters and i would like to iterate to list every letter … Programming python | |
I am starting an online business with an American lady. I don't know anything other than her phone number. So want to verify her records. | |
Hey guys, here's the question I'm asked. **a.** *Define an enumeration type, triangleType, that has the values **scalene, isosceles, euilateral, and noTriangle**.* **b.** *Write a function, triangleShape, that takes as parameters three numbers, each of which represents the length of a side of the triangle. The function should return the … | |
Hi, I have a small script that I wrote in jQuery and I would like to convert it to vanilla javascript so I can ditch jQuery for pages that use this script. jQuery(document).ready(function($) { $(document).on('click', '.wpstp_button_follow', function(e) { e.preventDefault(); $.ajax({ type: 'POST', url: ajaxurl+"?action=wpstp_follow", data: $('#wpstp_form').serialize(), dataType: "text", success: function(response) … | |
| For example: Http:localhost:8080/api/customer/{id} If I post in postman instead of Id a parameter it will work fine , But in html I’m asking the user for an input and than I want to pass the input in the path instead of the Id Is it possible ? Only spring boot … |
Hey i'm trying to change the image without the id. We can't change html so i can't use an id. I have this: <figure> <img src="images/start.png" alt="start"> <figcaption>Nog geen thema gekozen</figcaption> </figure> And in my script: document.querySelector('src') = "images/mode.png"; I don't know how to select it and change it. | |
Would you mind if I troubled you for some help? I’m working on an NDA’ed project and we’ve been asked to try and address a problem which is currently causing some pain. Imagine there was a merger between two blue-chip communications/media companies, and Company A was offering discounted deals to … | |
Good day! I am new in vb.net and I want to detect if there is a duplicate of the record that a user will try to add. If the user adds an existing username from the database then it will show an error that the username has already been used. … | |
Hi, I'm facing a problem: I've to make an undo/redo using Command's design pattern. I've succed to make one, but when I want to use my undo/redo btn in an other view, it gives me an NullPointerException. Does anyone can help me? Here's the code of the 2 view's First … | |
I have two different files, fileA contains employee data (ID and townCode) while file B contains field office data (OfficeID, Town, TownCode, officeCapacity) and a town can contain more than one office. i want to distribute these employees to the offices in the town against their names evenly What I … | |
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <time.h> #include <string.h> #define WORDS 10 #define WORDLEN 40 #define CHANCE 6 bool srand_called = false; int xrand(int x){ if (!srand_called) { srand(time(NULL) << 10); srand_called = true; } return rand() % x; } char* decode(char* code){ int x = ((strlen(code) - 3) … | |
Please can anybody help me? I'm a beginner . I need to write a c++ program that does the following : 1. Ask the user to enter two text file , the the first one contains a list of words in one column Regardless of their number , second one … Programming c++ | |
#include <stdio.h> int main() ( float height, weight, bmi printf("Enter height in meter\n"); scanf("%f", &height); printf("Enter weight in kg\n"); scanf("%f", &weight); bmi = weight / (height * height); printf("Your BMI is %f\n", bmi); if(bmi < 15) ( printf("Your BMI category is: Starvation\n"); ) else if(bmi >= 15.1 && bmi <= … | |
#include<stdio.h> main() { int A[9]={6,3,1,5,7,4,2,8,9}; int Temp, I, J, K; printf("sebelum \n"); for(I=0; I<=9-1; I++) { printf(" %d ", A[I]); } for(K=0; K <= 9; K++) { J = K; for (I=K+1; I<=9-1; I++) { if (A[I] < A[J]) J = I; } Temp = A[J]; A[J] = A[K]; A[K] … Programming c c++ java javascript php | |
package student; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); StudentA stud1 = new StudentA(); System.out.print("Please Enter Student Name:"); stud1.Name = scan.next(); System.out.print("Please Enter Student ID:"); stud1.StudentID = scan.next(); System.out.print("Please Enter Course:"); stud1.Course = scan.next(); System.out.print("Please Enter Student Section:"); stud1.Section = … | |
I have a site that I follow frequently The problem is that it refreshes the page every five minutes And I never want this. Here, an addition to the Firefox browser named "stop auto reload" When you put the name of this site, it prevents it from updating every five … Programming java javascript | |
I'm using the code below to get a random number of items from an array, but I'd like to just get 3-5 random numbers from the provide range to display. Right now, it either shows 1, all, or any amount in between. I'm also good with completely changing up my … | |
ScanningI'm looking forward to implement a typical "nav" section for the articles in my website. Something like this: **Folder > SubFolder > SubSubFolder** To this end, I think that the best way is to create a database of two tables. The **first** one is called "*Category*": id - title - … | |
Hi, I have a form in React with few select/input components. Form doesnt get populated when user enters value in them. Thats the case when I want for input "Username" -> when user starts writing here some username, then React - in Reducer -> filters array of whole users in … | |
I have my resoruces stored in mysql DB: eg : > |IPaddress | Status| |10.x.x.x| yes| |10.1.x.x| yes| I am trying to get the available resource and after that will update DB with status No. > query = ("SELECT IPaddress from TABLE where status='yes'") cursor = mydb.cursor() cursor.execute(query) result=cursor.fetchall() query1 … | |
$ array = array ('Main', 'Photo Gallery', 120, 'Rustam', 'Services', 'Lesson 12', 'Link'); This array also contains menu items for the web page. Describe the required menu items in HTML lists. | |
Hi DW. Anyone knows how I can get the device name the browser is running on? I mean something like on the attached image with Javascript? ![FireFox_SendTo.PNG](https://static.daniweb.com/attachments/4/6cbee440f2043da722eba44bed14568b.PNG) | |
Hello everyone, I am writting a code where result is not coming correct because I am not able to join 2 lines to make a single line. Please help me e.g my input file is: AATTCCGGTTT CCTTAACCCCC I want my code to first join them together as AATTCCGGTTTCCTTAACCCCC and then … | |
I have some crystal reports that i would like to use PHP in order to execute the reports and then either view the reports in the browser as is or to generate PDF files. Does anybody know how to do this and what is required to be installed on the … | |
Basically this scheme uses variable offsets, but it generates the bytes on the fly. They aren't truly random, but there aren't any obvious patterns and the output passes all the NIST tests. Since a simple password can be used to do the de/encryption it is much easier to hand off … Programming c# encryption java | |
hi all iam working as software developer i wish to create my blog website using asp.net and C# so any one have idea so please help me in this Please thak you in advance | |
Hi - I am working with a windows OS created wordpress plugin unit testing code written as below <?php class Test_WP_Simple_Plugin extends WP_UnitTestCase { public function test_constants () { $this->assertSame( 'wp-simple-plugin', WPSP_NAME ); //Error line $url = str_replace( 'tests/phpunit/tests/', '', trailingslashit( plugin_dir_url( __FILE__ ) ) ); $this->assertSame( $url, WPSP_URL ); … | |
Well, there was a thread about a frequency function and a bell curve in Excel. [url]http://www.daniweb.com/forums/thread295203.html[/url] So here it is how about to do the NORMDIST function in Excel in C#. | |
I browsed google and found nothing so thought i would put my efforts up here. hope this all helps. this function will allow you to return the number of days between two dates minus saturdays and sundays. (including the start date) |
The End.