199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bprosic

This code works but I don't know how to dismantle this "sausage" code. async function showAllFilters(qry, arrayParams) { // params is [] let result; try { result = await db.query(qry, arrayParams); } catch (error) { console.log("showAllFilters error: "); console.error(error); } return result; } router.get('/', function (req, res) { // localhost:5000/api/filter …

Member Avatar for maxhowells7
0
300
Member Avatar for brokehero

I am building my blog website and I want to make a page that will search info I have created in an excel spreadsheet and I want to include images for each item. Almost like an e-commerce or retail type of search but only for information but not just a …

Member Avatar for rproffitt
0
410
Member Avatar for Rzdio

Hi, I am fairly new to the community, and have recently began to code using python, however, I am stuck on something: I have written quite a length of code, and am using the 'if' command, and I am attempting to restart the code if they type 'yes'. It would …

Programming python
Member Avatar for rproffitt
0
1K
Member Avatar for Sappie

What's wrong in the following program- #include<stdio.h> main() { int n,d=2,r; printf("Enter a number to check its divisibility:"); scanf("%d",&n); for(d<n/2; d++;) { if(n%d!=0) { r=1; continue; } else { printf("%d is not a prime number.",n); break; } } if(r==1) { printf("%d is a prime number.",n); } } I want it …

Programming
Member Avatar for rproffitt
0
270
Member Avatar for Sappie

I'm trying to make a program to calculate sum of n terms of the series (x + (x^3)/3! + (x^5)/5! +...) - #include<stdio.h> #include<math.h> main() { int x,r,n,fct=1; float term,sum=0; printf("Enter the value for x:"); scanf("%d",&x); printf("Enter the number of terms to calculate sum upto:"); scanf("%d",&n); for(r=2(n-1)+1;r%2!=0;r++,n++) /*as r's value …

Programming
Member Avatar for Reverend Jim
0
279
Member Avatar for poop_2

I need help with a code for averaging grades it works on a online compiler but it doesn't work on visual studio 2019

Member Avatar for rproffitt
0
363
Member Avatar for Ingmar_1

I'm new to c# and I'm trying to write a movie database that retrieves data from IMDB. For the codecs I found MediaInfo. The included example in winforms works fine, but when I try to use the library in my console application I get the error "Unable to load MediaInfo …

Member Avatar for Ingmar_1
0
683
Member Avatar for cppcoder

Hi there everybody just needed some help sorting an object array. So the array takes in a title, link, comment, length, and rating of the video. Once the values are put into the array the user inputs whether they want to sort it by title(alphabetically), length of the video (ascending …

Programming c++ legal
0
179
Member Avatar for g89

import java.util.Scanner; import java.util.Random; class Lottery { // MISSING CODE } public class LotteryDemo { public static void main(String[] args) { int[] userPicks = new int[5]; int matching; // Create a Scanner object for keyboard input. Scanner keyboard = new Scanner(System.in); // Create a Lottery object. Lottery lotto = new …

Member Avatar for Neel_4
0
1K
Member Avatar for Himanshu_13

x=int(input("Enter a number to check whether it is a palindrome number or not here : ")) m=x k=0 for j in range (m): digit=m%10 k=k*10+digit m=m//10 if k==x: print("%d is a palindrome nukber"%(x)) else: print("%d is not a palindrome number"%(x)) print()

Programming python
Member Avatar for DGPickett
0
285
Member Avatar for Edy_3

Hi all, I have a new project with vb.net. I need to always connect with older program that run in foxpro, i need to get dbf table and convert it to mysql table. Can anyone help me ?

Member Avatar for DGPickett
0
546
Member Avatar for ebenezer_2

Please i have a textbox, a button and a listview. The listview contains a list of items let's say 20 items. When i enter 3 in the textbox and click on the button, the first three items should be removed likewise if i enter 10, then the first 10 items …

Member Avatar for Reverend Jim
0
321
Member Avatar for daviddoria

Is there a library that has a function that will take (theta,phi) and return (x,y,z)? Thanks, Dave

Member Avatar for Ratan_2
0
6K
Member Avatar for Prahlad4145
Member Avatar for moparman426

alright here is my issue i dont know how to even start this problem iam still new to vb so i need lil guidance and help in the right direction. here is the problem : Use a one-dimensional array to solve the following problem: Read in 20 numbers, each of …

Member Avatar for 180180
0
487
Member Avatar for piotr.linski

I managed to get a certain PHP variable ($length) that contains the length of a message (stored in a MYSQL-database) to get passed to a javascript variable (var = length) in order to let javascript decide whether or not to show a certain marquee on a HTML-page. Initially I have …

0
292
Member Avatar for bckelley

For this particular sub I type the customer id in a text box and then click the button, then I'm trying to get the relative information pertaining to that id. Not sure what I am doing wrong. Comes back with an error message of system.data.sqlclient.sqlexception Recursive common table expression '[customers]' …

Member Avatar for bckelley
0
4K
Member Avatar for casey.li.146

Hi All, i would need some advice from you guys from this forum to solve the reading of the CSV file that i had. for example, i have a file which consist of about 2000 records (below are the example of the records) 10/10/2013 10:25:09 AM,5.89,45,264.83,PTTTT 10/10/2013 10:25:13 AM,5.89,2000,11780.00, Some …

Member Avatar for ming_1
0
6K
Member Avatar for masterarts

I have read a lot that PHP 7 out performs the previous versions of PHP. I am thinking of moving all my websites to PHP 7 so that my sites enjoy a better loading speeds. Please tell me any hosting providers that let me switch my servers to PHP 7

Programming php web-server
Member Avatar for shlom
0
497
Member Avatar for Joe34

Hey, I'm trying to open a web page inside my newest android app. (I'm following this guide...) [url]http://developer.android.com/reference/android/webkit/WebView.html[/url] My goal with the app is to open up the web page every time it gets opened, but the web pages need to open within the activity. With the code below, it …

Member Avatar for Hasan_11
0
1K
Member Avatar for Dani

If you need your PHP script to redirect to a different website, you can send an HTTP header to do that. Remember, `header()` must be called before any actual output is sent, which includes not just HTML, but blank lines, etc.. as well.

Member Avatar for bngwebguru
0
3K
Member Avatar for Reverend Jim

Because Microsoft will be removing vbScript in the next version of Windows, I have been busy converting my utility vbScripts into Python. Part of this is a library of functions that I keep in `D:\include`. I'd like to maintain this system in Python, but the import process is rather clumsy. …

Member Avatar for bngwebguru
0
6K
Member Avatar for Suzie999

I'm reading data from SQLite database table. If the SQLiteDataReader encounters a negative double an InvalidCastException is thrown. Here is my code. public void DBToArray() { string stm = "SELECT * FROM mtable"; SQLiteCommand cmd = new SQLiteCommand(stm, sqlcon); SQLiteDataReader rdr = cmd.ExecuteReader(); while (rdr.Read()) { Console.WriteLine( rdr.GetInt32(0) + " …

Member Avatar for bngwebguru
0
1K
Member Avatar for hyperion0

Hello, I'm a beginner and I created a log-in form in VB.net using Windows Form and configuring the Settings of the project. I need help on how can I prevent the user from accessing the other parts of the program if they haven't registered yet, as well as deleting the …

Member Avatar for JamesCherrill
0
340
Member Avatar for Milla S.

Hi there PyQt is not available as tag, but this should be a simple question anyway: - drag & drop: from QListWidget to QListwidget - pushButton action: inserts chosen items from second QListWidget into QTableWidget But: when i run my code - most of the time the chosen items are …

Member Avatar for Milla S.
0
336
Member Avatar for Stevewrites

Greetings Digital Natives. I'm excited join this platform. I am a sofware developer at [Timbu](http://www.timbu.com/south-africa) Hoping to learning and connecting with you guys. I want to really upgrade my tech skills. I have stayed along in front end. I need to do little of backend and move with likeminded fellow.

0
257
Member Avatar for Violet_82

Hi guys, I wonder if this is something I could do on this forum. I've never worked with REST, so I thought that it could be a good exercise to try to develop a very small and simple Java application and try to make use of REST as well. I …

Member Avatar for JamesCherrill
0
3K
Member Avatar for Stefce

Am trying to draw three circles on the page but nothing shows up, anyone can tell me what is wrong here? <body> <canvas id="myCircle(3)" width="60" height="60"> Your browser does not support JavaScript, please update it before you continue</canvas> <script type="text/javascript"> function myCircle(myCircle) { var c = document.getElementById("myCircle"); var ctx = …

Member Avatar for anand9796
0
3K
Member Avatar for DanielKeith
Member Avatar for Rio Vaks
0
255
Member Avatar for umadas

Hi all I need help to read outlook pst file from java.My pst file is stored in local hard disk.Now i want my java program to read that pst file.Kindly provide some inputs so as to proceed to the solution for the said problem.Can i do this through javamail api? …

Member Avatar for Vladan
0
3K
Member Avatar for aruneshdutta

Hello all wanted guidance on CMS(Content Management System) to be able to work with REST API for integrating REST API as needed for performing needed tasks.Kindly guide me with same

Member Avatar for rproffitt
0
415
Member Avatar for Tcll

So I've successfully written a metaclass that gives python the functionality of private attributes in classes. Q: But what about `inst.__private`? A: >>> class A(object): __slots__ = ['__private'] def __new__(cls): inst = object.__new__(cls) inst.__private = 10 return inst def showprivate(inst): return inst.__private >>> inst = A() >>> inst.showprivate() 10 >>> …

Programming cybersecurity python
Member Avatar for Tcll
0
2K
Member Avatar for hyperion0

So, I created a program in VB.Net with Windows Form and I want the user to be able to create a new user, limited to 5 user accounts only. I also want to know if it's possible to change password and delete user accounts. Can I make it so that …

Member Avatar for rproffitt
0
488
Member Avatar for hyperion0

Hi, I'm creating a project using VB.Net Windows Form and I want to create a Log-In form that can **Add New User (Limited to 5 User Accounts), Delete User Account, and Change Password**. I want to use Microsoft Access with it. What are the codes I should use to create …

Member Avatar for hyperion0
0
591
Member Avatar for Rhemiel

This is the process I want to attain: 1. I have 4 buttons 2. Each 4 buttons have categories under it 3. When those categories is selected it shows list of datas 4. The datas are like powerpoint empty slides Can Someone give me some idea how to create relational …

Member Avatar for alan.davies
0
349
Member Avatar for eddiekudzayi

I am thinking of moving to ecommerce development. There is just so much out there so much so that I find myself at a loss as to where to start. I do front end development but I understand backend equally well. Ideally I would like to find a suitable e-commerce …

Member Avatar for EpifaniaPersons
0
685
Member Avatar for mnyirenda

I have trouble answering the following question. please help with codes for my practice sake. QUESTION: The table below shows the average rainfall and temperature during a rain season stored in a text file called Weather.txt Month Temperature Rainfall Chingola 23 27 Kitwe 24 27 Ndola 23 26 Kabwe 24 …

Programming c++
Member Avatar for mnyirenda
0
355
Member Avatar for misstj555

Hello. I am trying to write a program that solves the "quadratic equation" when given variables "A", "B" and "C" and find the number of zero's. One code is the definition, the next is the implementation and the last code it just the test file. I need help running the …

Programming c++ file-system
Member Avatar for misstj555
0
315
Member Avatar for misstj555

Hello. I have to write a code that models a bank account using "C++". It must complete the following functions: (1) Make a withdrawal and deposit (2) change account owner (3) find balance on account (4) create new account However, I can not write all my code in one file …

Programming c++
0
291
Member Avatar for Sappie

Hi, I'm learning C and I was trying to print this program using if-else statement: void main() { char* opinions; printf("What do you think of me?"); scanf("%s",&opinions); if (opinions="Ugly") { printf("Huh, I'm way more beautiful than your heart"); } else if (opinions="Blacksheep") { printf("Sometimes Blacksheeps end up shining the most!"); …

Programming c++
Member Avatar for iJimJones
0
563
Member Avatar for Walterion

Hello everyone, [Dadroit](https://viewer.dadroit.com) is a tool that threats JSON as a Data format, not a plain text. It provides you quick outline view with the help of tree representation of JSON Data from root to last nodes. You can browse and query JSON like an enterprise DBMS. * 10X faster …

Member Avatar for rproffitt
0
491
Member Avatar for Minecraft _1

Here is my code bits 16 ORG 0x7c00 VIDEO_TEXT_ADDR EQU 0xb8000 ; Hard code beginning of text video memory ATTR_WHITE_ON_BLACK EQU 0x07 ; White on black attribute CR EQU 0x0d ; Carriage return LF EQU 0x0a ; Line feed ; Include a BPB (1.44MB floppy with FAT12) to be more …

Member Avatar for Yrth
0
755
Member Avatar for Janependang

Can you help me? *********************** A baggage counter charges $o.50 mimimum fee to deppsit a bag for up to 3 hours and an additional $0.25 for each hour or part thereof over 3 hours. Assume that no bags are deposited for longer than 6 hours time. Write a program that …

Programming c++
Member Avatar for rproffitt
0
280
Member Avatar for HarrisonMJ

Hi all, I decided to start developing applications for android and I can not choose a site for this. You can tell what to choose

Member Avatar for Tony776
0
374
Member Avatar for poymode

Greetings. I am making some Point of Sales system but I have a little problem with the database design. You see, there is this list of products that will be added to a cart. What I need is when these items are added in the cart and then sold, it …

Member Avatar for safeer ahmad
0
1K
Member Avatar for Marc_5

i need to pop a bootstrap modal but from inside will need to make queries from a PHP variable that will vary depending on where the pop originated from. so i have this in my file : <a href="#" class="btn btn-md btn-success" data-toggle="modal" data-target="#editUser" id="User" data-id="UserID123"> update </a> How can …

Member Avatar for borgyborg
0
9K
Member Avatar for WebDevGuy32145

Hey guys, So I can't seem to figure out why my live server is throwing this error. This works perfectly on my local server. Can anyone help me figure out how to fix this, or lead me in the right direction as to fixing this so my login and registration …

0
249
Member Avatar for bckelley

Through Web Search I found [this link](https://www.daniweb.com/posts/jump/1740388) but I want to know is there a way to do it so the sub items in the dropdown would be colored?

0
318
Member Avatar for mnh001

Hi, I'm having trouble with a tk scale widget. So far no one at the python forum has an answer so I found this site. As long as the resolution is set to 1, the start value can be anything I want but as soon as I set the resolution …

Programming python
Member Avatar for mnh001
0
1K
Member Avatar for Neaj

The panel has controls like labels, text boxes, list view and pictures boxes. which is probably more than four pages. I have tried all my best still i cant print all the pages. i surf online for help and found this code. the code works perfect by printing all the …

Programming vb.net
0
311

The End.