199,124 Archived Topics
Remove Filter ![]() | |
Hello, I am new to python and try to learn more about it. How can I copy or move all the sub-folders (folderA, folderB, folderC,...) from folder1 to folder2 (folder2 is already existed)? I tried this [Click Here](http://www.daniweb.com/software-development/python/threads/176391/how-to-move-files-to-another-directory-in-python) for files and it worked. How can I use something similar to … | |
I am having a table with nvarchar feild in which values are entered like 1 4 8 25 I want a sql query to find the missing sequence of number in the above series... Thanks in advance... | |
Who can help me with the following For Each Con As Control In GroupBox1.Controls If Con.GetType Is GetType(Button) Then Con.BackColor = SystemColors.Control Con.UseVisualStyleBackColor = True End If Next Can someone help me to fix it with Con.UseVisualStyleBackColor = True or do i have to do the for all buttons separate … Programming vb.net | |
private void EnterAcNotextBox_TextChanged(object sender, EventArgs e) { int id; if (!int.TryParse(AcNotextBox.Text, out id)) { return; } string connString = ConfigurationManager.ConnectionStrings["dbx"].ConnectionString; string cmdString = "SELECT '#' FROM tblBasicInfo, tblAccData WHERE ID =" + Convert.ToInt32(AcNotextBox.Text); //string query = "SELECT * FROM tblAccData WHERE ID =" + Convert.ToInt32(AcNotextBox.Text); using (OleDbConnection conn = new … Programming c# | |
i am using vb asp.net **error**: there is already an open DataReader associated with this Command which must be closed first. working on this issue for couple weeks now and i have no idea how to fix this. any help will be helpful i am using 2 reader on page … | |
Hello friends, I'm trying to remove all tags from a Wikipedia entry, leaving a simple text file. I have downloaded an HTML file from Wikipedia and hunted through my program. But the tags are not removed properly. Instead, only nonsense comes out of it. Where is my thinker? Java: import … | |
Hello. As from the topic title, i am trying to work a multithread GUI where the progress bar indicates the running process completion (like we always see when we are installing/uninstalling/downloading). I've read a couple of written tutorials and some other forums discussions regarding the progress bar and multithreading. I've … | |
Hello, Can someone help me in developing my coding skills. I wrote code factorial. I see different logic at different places but no where I found the one that I wrote. Please tell me if there is anything worng in the below javascript code.var btn = document.querySelector('button'); btn.onclick = function(){ … | |
Hi Thank you in advance for the replies I will be getting.. Much appreciated. Basically I am running the following mysql query using PDO UPDATE users SET password = AES_ENCRYPT(:password,:supersalt) Now the issue is.. on one computer I am getting ¶z8Ibﶘé®òŒdY in the password field but on another its blank. … | |
Looking for conceptual help... I am writing a program in C++ to handle socket connections, eventually to be a websocket server. However, the rest of my stack uses PHP for serving up page. Is there a way to use PHP as an intermediary between the client (JS) and the application … | |
I want to read content from a web page and store it in a string array using the programming language Gambas (a BASIC language used on Linux). Eventually I could program it in C/C++ and call the routine from Gambas. The URL is on the form: https://www.webpage.com/test#task | |
Hi All, I have a PHP code which do some changes to the POST variables it receives and redirect the page to some other page. This PHP code was initially designed to work without Ajax. So there wasn't any problem with the redirect function and it perfectly handles the POSt … | |
The Code was made in notepad++ and made intoa .batch file. I want to add more questions but find it difficult. can some help @echo off title game :menu echo 1) start echo 2) intro echo 3) exit set /p menu= if %menu% == 1 goto game if %menu% == … | |
Hi, Good day, Hope someone can help me on this. I want to display data from my Ms. Access Database. I already display values from my Combo Box from my DB1. DB1 - IDNO / PRODUCTCODE / PRODUCTNAME DB2 - IDNO / PRODUCTCODE / PRODUCTDESCRIPTION / EXPIRYDATE ComboBox - Displays … | |
Anyone know of a way to obtain an MD5 checksum of a file (through HTTP) before downloading it through HTTP? | |
import tkinter root = tkinter.Tk() root.geometry("200x200") buttons=[i for i in range(10)] def getNext(): #If specific button is pressed, output "YES" for num in buttons: btn=tkinter.Button(root, text=num,command=getNext) btn.pack(side=tkinter.TOP) | |
hi... this is my index page... include("config.php"); session_start(); if($_SERVER["REQUEST_METHOD"] == "POST") { // username and password sent from form $myusername=addslashes($_POST['username']); $mypassword=addslashes($_POST['password']); $myusername = stripslashes($myusername); $mypassword = stripslashes($mypassword); $sql="SELECT id FROM admin WHERE username='$myusername' and passcode='$mypassword'"; $result=mysql_query($sql); $row=mysql_fetch_array($result); $active=$row['active']; $count=mysql_num_rows($result); // If result matched $myusername and $mypassword, table row must be … | |
I have written a formal Deadlock prevention code but I'm having trouble implementing this algorithm. Any help is appreciated. I have represented the algorithm below, **Formal algorithm description** Data structures at a process i: (It is the initial value in the parentheses.) • OUTi: set of integer, the set of … | |
from tkinter import* import tkinter import sqlite3 import sys conn = sqlite3.connect('REVISION CARD.db') c=conn.cursor() def load(): root=Tk() root.title("REVION CARDS") root.geometry("700x400+100+100") w1=Label(root, text="Question") w1.pack() e=Entry(root,width=40) e.pack() w2=Label(root,text="Answer") w2.pack() e1=Entry(root,width=40) e1.pack() toolbar=Frame(root) navbar=Frame(root) N=Button(toolbar, text="next",width=9,command=getNext) N.pack(side=RIGHT, padx=200, pady=5) B=Button(toolbar, text="previous", width=9) B.pack(padx=100, pady=5) toolbar.pack(side=TOP, fill=X) count=IntVar() c.execute("SELECT * FROM topic") list1 = … | |
I've been trying to archive my xamarin.android project for publishing but I keep getting this error: Error MSB4018: The "LinkAssemblies" task failed I've searched this error and tried the suggestions that I came across and none of them worked. One weird thing I noticed though is that when I set … | |
i just want to write a code for simple fare calculator using conditional statements in JAVA. whose out should be: Enter the distance covered: 22.6 First 5 KM : 50 Rs. Next 15 KM @12 Rs: 180 Rs. Next 2.6 KM @14 Rs. :36.4 Rs. | |
Hey folks. I currently have a large JSON file made up of entries similar to the below. The file contains information relating to photographs:- [CODE]{ "SourceFile": "C:/Users/Me/Desktop/Photos/5294030805_9497032cd7_o.jpg", "ExifToolVersion": 8.63, "FileName": "5294030805_9497032cd7_o.jpg", "Directory": "C:/Users/Me/Desktop/Photos", "FileSize": "1094 kB", "FileModifyDate": "2011:09:09 22:40:39+01:00", "FilePermissions": "rw-rw-rw-", "FileType": "JPEG", "MIMEType": "image/jpeg", "JFIFVersion": 1.01, "ExifByteOrder": "Big-endian (Motorola, … | |
I'm trying to write a program in C# that downloads a file from my DropBox account but I keep getting an error with `var task = Task.Run((Func<Task>)Download("", "largetest.mpk", folderName));` The error: Cannot convert type 'System.Threading.Tasks.Task' to 'System.Func<System.Threading.Tasks.Task> I've been trying to figure it out for multiple hours and haven't had … | |
Hi, I got this error. Please help. Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in $result_1= mysqli_query($link, "SELECT $criteria FROM table ORDER BY '".$crieria."' ASC); $array1 = array(); while($row = mysqli_fetch_array($result_1)){ array_push($array1, "$row[0]->$criteria", "$row[5]->$criteria" , "$row[10]->$criteria"); } | |
I am new to PHP and MySQL and I will really need some assistance. Whenever I fill in all the information and submit my form, It successfully adds all information to the database. But the only issue is at the level of the images. When I upload two or more … | |
Let me give you the context. We are a small company 5 persons , two owners and we do have a variety of interests. But to be honest the money flow comes from eshops , there we developed our own platform in PHP in a way that could be in … | |
my code is this: Me.Validate() Me.CFTINVENTORYBindingSource.EndEdit() Me.TableAdapterManager.UpdateAll(CFTDataSet) At first I can insert data into the cells and save it... but when i try to edit the same cell with data already saved in it I get this error... sqlcelexception was unhandled There was an error parsing the query. [ Token … | |
Well, I've been learning Java and I managed to create an FTP client that uploads and downloads files from a server. Oddly, the thing I can't figure out is how to do an FTP delete. Can anyone help me on that? I don't want to use an API or someone … | |
Hey everyone, I have a JSON array that pulls data, its an immense amount of data that i use. It is a multilevel array eg: dateTime: 2018-12-04T10:30:45:222z comments:"" +Driver[0] [0] fname: John lname: Doe driverCode: DOEJ [1] fname: Mary lname: Smith driverCode: SMIMA more info etc I am trying to … | |
Hello, Happy new year guys.. I am trying to find a way to Upload and Display multiple images for one product on an ecommerce website that I am working on! At the moment I can only upload one image for each product. My current code is bellow: **This is upload.php** … | |
Hi, Please help in the below task using perl script compare file1 and file2 and print the updated line in file2, should print new line added in file2 and print missing line from file2 | |
I want to define a function like this: n_H = 0.9 # constant . x = np.array([16.7, 16.5, 16.1, 15, 13.5,14.2, 14.9, 13.7])# example to test D = np.array([0, 1, 4, 7, 16, 31, 64, 127]) Sec_nucli = [] x = [] D = [] Sec_nucli[i]= n_H *D[i]* x[i] where … | |
I Have three form Home.aspx and Login.aspx Details.aspx on home.aspx i have two iframe in iframe one i open login.aspx in Login.aspx i have a button btnChangePage now i want to assign src property of second iframe dynamically ( src="details.aspx" ) on btnChangePage_Click Please if u have any suggetions please … | |
This is the first program for a class that I am taking. I am having trouble creating the classes. We were only taught briefly on the subject and then told to complete this project. I guess my first question is how should I set my class "deck" and "card" up? … | |
I am trying to use the getParent method of the File library. Here is the code I am working with, but I am getting a null string: public class MyCode { public static void main (String[] args) { File f = new File(""); String name = f.getParent(); System.out.println(name); } } … | |
Hi. Sorry if the question is confusing or weird but I am trying to find a specific number of bytes after finding a different set of bytes. Hopefully with code and my explaination of code, i'll get my question across. import base64 find_bytes = bytearray(base64.b16decode('46726F4B6E6F')) with open("readfile.raw", "rb") as f: … | |
Hi DW. I am able to purchase from my online store but I don't seem to be able to get the pass through data which whould be sent to my notify_url. Payfast is my payment gateway and now it does call my notify_url because two files are created after I … | |
How to be a certified google partner? How much does the exam cost and how to take the exam? Thanks in advance. | |
I am developing a new android app, and I've run into a bit of a snag. While everything else works, I want to have it so that when you click on the screen, it exits the program, same as if you click the back button. How do I get around … Programming android android-development java os-x | |
I have a code that pulls a JSON response, and I need to compare times from now() and a previous when the timestamp was created. I am able to pull the info and have it display. However, when i try and get the comparison to work it just sits there … | |
how to create a check vote box poll with php scripts and html ??? plx someone help me!! | |
Hi all - also new to PHP/SQL and have a different question on a similar question posted - I need to create a page in php that allows the user to select a date range to and from. Howver, the date stored in the database is unix such as 1494548767 … | |
Hi! I have encountered a small issue when attempting to create getters and setters in C#. I've been following along a course in unity and tried to replicate what the tutor had written in his C# scripts. As far as I can tell, everything is spot on and I can't … | |
i want to update row after union conection code conect Dim cmd As OleDbCommand = New OleDbCommand("SELECT tb1_type ,tb1_price FROM tb1 UNION SELECT tb2_supp,tb2_debt FROM tb2 UNION SELECT tb3_name,tb3_price FROM tb3", con) con.Open() DataAdapter1 = New OleDbDataAdapter(cmd) Dim builder As OleDbCommandBuilder = New OleDbCommandBuilder(DataAdapter1) DataSet1 = New DataSet() DataAdapter1.Fill(DataSet1, "tb1,tb2,tb3") … | |
I created an animated sprite. How do i stop it from colliding with itself, so it can go across the screen? using UnityEngine; using System.Collections.Generic; public class Walking : MonoBehaviour { public float maxSpeed = 10f; bool facingRight = true; Animator anim; bool grounded = false; public Transform groundCheck; float … Programming | |
I have an assignment and don't have any clue what software to use to solve it. It asked to make algorithm as I have to sort students GPA and the highest rank will get a scholarship. | |
hello i want to create two arrays i have the index for them and the size and have the dot product of a and b and create a third array that is c[i]=a[i]*b[i] however i tried to do it but the output doesn't come the correct :( import java.util.Scanner; public … Programming java | |
Is it possible to know which connection sent data wiht recv()? Current setup is - Main Thread spins and waits - Thread 1 - do stuff unimportant to socket - Thread 2 - accept() -> keep linked list of accetpted sockets - Thread 3 - recv() -> can I know … | |
I am supposed to write a program that takes a person's whole name and returns the name's numerical value. The numerical value is found by the values of the letters in the name (with a=1, b=2...z=26). This is what I have so far: def main (): name = input("What is … |
The End.