132,726 Archived Topics
Remove Filter ![]() | |
Hello all! I have hit a small bump in my development of a program I am working on. Basically what I need to happen is this; for each item in the listview it executes a SQL query to input values into a database. In this case it pulls the quantity … Software Development business-entrepreneurship mysql vb.net visual-basic | |
I'm trying to make a battle function but am having some trouble. Is there a way to do this? At the moment I'm getting an error "AttributeError: 'function'object has no attribute 'att'. My guess is that this would be easier with classes, but I've not learned classes yet. So is … Software Development python | |
I have two pages one called upload-file.php, this page uploads the image into the database and my folder. My PHP page looks like this. if (move_uploaded_file($_FILES['uploadfile']['tmp_name'], $file)) { $insert=mysql_query("insert into match_item_image set item_id='".$_SESSION["session_temp"]."', image='".$name."', adid='$adid'") or die(mysql_error()); $cc=mysql_insert_id(); echo "success".$cc; My other page consist of a javascript function which displays … Software Development java javascript mysql php | |
i need some example codes.. Software Development visual-basic | |
![]() | hello, this is code to generate fibo numbers in log n time. it is giving o/p as "0", i dn't know where is error. please help. #include<stdio.h> int (*(fibo)(int m[][2],int p))[2] { int r[2][2]={0,0,0,0},d[2][2]={0,0,0,0}; int (*l)[2]; int i,j,k; if(p==1) return m; l=fibo(m,p/2); for(i=0;i<2;i++) for(j=0;j<2;j++) { r[i][j]=*((*l+i)+j); } for(i=0;i<2;i++) for(j=0;j<2;j++) for(k=0;k<2;k++) … Software Development c ![]() |
Hey guys! I'm having a hard time finding a way to set up pythonpath on a windows machine, by a script. I know how to do it manually, but I want to make a script that would add a certain directory to pythonpath and would save it. Thanks for reading, … Software Development file-system python | |
![]() | Hello guys ! Hope you're doing well. I have faced a problem in declaring linked lists inside a linked list. I made a picture because it speaks more than 1000 words  Here's my structure declaration: typedef struct author *link; struct author { char name[20]; link next; link down; … Software Development c linked-list ![]() |
Hi guys, So I'm busy writing an application that needs to update a list from the web after a certain amount of time. main.py file class Gui: def ...... def ...... def ...... def on_update_click(): update() app=Gui() Gtk.main() So when the program loads up, user will click the update button … Software Development gui multithreading python user-interface | |
Hi, I'm curious about a few conventions. If you have a function that can return a or b based on some conditionals, which do you think is the best/accepted notation? def test(val): if val > 10: return a else: return b Or def test(val): if val>10: return a return b … Software Development python | |
Hi, I'm writing a small C program to clean the radius radacct table, removing ended sessions records and inserting on a separated database. The problem is that MySQL C API doesn't have an easy way to insert the result of a query on another database/table directly, you have to build … Software Development api c data-structure mysql | |
Please help me. I have design my help content ĩ̷̊ñ a html file. I want to display it as soon as the help button is click. The html doc is ĩ̷̊ñ my bin folder, how can I call it, wen it is being click. •̸ŤђαϞĸs ĩ̷̊ñ advance | |
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.OleDb; namespace Database { public partial class Form2 : Form { public Form2() { InitializeComponent(); } int baseExp = 200,currentExp,lvl=1,str,intel,dex,armr,min=10,max=25,minimum=2,maximum=3; public void levelUp() { min += minimum; max += maximum; str = int.Parse(strength.Text); … Software Development c# microsoft microsoft-access | |
Hi. Can you help me read a two digit like "12" from an input.txt file, is it advisable to use fscanf or fgets? This is a sample of the txt file : a(1,4,3,12,15) Thanks :) Software Development c | |
#include<iostream> #include<math.h> using namespace std; int main() { long int t,n; cin>>t; while(t--) { cout<<"abc"; } return 0; } i am getting run time error for t>10000. how to solve it. range of t>1000000 Software Development c++ | |
hey people, I've been experimenting with some new (for me) java techniques, like keybindings. i've got a small app, where the bindings work fine, untill i press a JButton with actionListener. the actionListener doesn't do anything at all, but keybindings fail after i press one of them. here's my code … Software Development java java-swing | |
Hi everybody, How to do the following in java..?? created a frame and one button added to that frame and set the keyboard shortcut to that button.Now my question is how to make that keyboard shortcut will work eventhough focus is not there in that frame? anyone have any idea.. | |
**i have problem in setting an alarm program, when i write the code to set with the alarm with the system it did not goes through so what should i do to fix the problem. pls i need to fix it if you can send me the code i will … Software Development c++ | |
#include <stdio.h> #include <stdlib.h> #include<string.h> char combine(char [],int k,int n); int main() { char str[10]; int m,n; printf("enter the string: "); fgets(str,sizeof(str),stdin); m=0; n=strlen(str); printf("the combinations are....\n"); combine(str,m,n-1); return 0; } char combine(char a[],int k,int n) { int i; char temp[40],t; strcpy(temp,a); if(k==n) { printf("%s\t",a); } else{ for(i=k;i<=n;i++) { t=a[k]; … Software Development c | |
How can I make my program generate random number between two given integers ? I use `srand ( time(NULL) );` `x = rand() % i;` to generate numbers modulo i. But I can't figure out how to generate between two numbers, suppose 1 and 3. Software Development c++ | |
Hi, i'm a newbie in visual basic. my teacher asked me to create a 3 page questionaire (1 question per page) which has a timer counting down. when the time expires, it dispalys "time is out" and saves the questions in a text file. please help me. Software Development visual-basic | |
hello people. i have this application which is suppose to retrieve database tables form a paricular database being used and add them as items in2 a jcombobox.The reason is that i want to hvae the opportunity to insert a file into any table by just clicking my jcombobox and select … Software Development java | |
Hi guys ! Anyone familliar with planetsourcecode? I downloaded a simple inventory sysyem and calculator to study the codes. But I don't know how to open them using Eclipse.. Help me pls ! Thanks! Software Development java | |
Well I have a background in using Java 3yrs ago, a long time. We've used Jcreator for school. Now I want to review and study Java again but I saw too many types or kinds of JAVA and I am confused. What JAVA can you recommend? And what application should … Software Development java | |
how i can make the cell on my DGV linked to other DGV ??? Software Development vb.net | |
Hi All, I am trying to run a second script from my first script and this works ok i can send it a variable and recieve back my answer however I am using Tkinter for my forms but when i start the main my program both scripts run although i … | |
hi. I make a project and I have a qouestion. I want to send some data from one windows form to another. The first one is a form, which calculates the discount of a product. The other form has a dataGridView and I want to send the data from DiscountForm … Software Development | |
Hey! So i'd like to learn the JMF api. And to start i wanted to build an application that can capture frames/video from a webcam. Now, i started by trying to list all the devices: Vector info = CaptureDeviceManager.getDeviceList(null); if (info == null || info.size()==0) System.out.println("No Capture devices known to … Software Development api google-api http-protocol java oracle webcam | |
Hello Daniweb. Im currently working on a solution that involves querying a specific user (either by getting the user to 'login' or by detecting who the user is that is logged in to the machine) against the domains active directory structure to determine if they are a member of 1 … Software Development file-system sql vb.net windows-server | |
![]() | i want to design apps and software any kind of software for desktop computers.. like photo editing software video editing software basic software with photo effects etc Software Development |
Create a class called SecretEngine in this project. Inside, create a single Shared function called Secretify that will accept either: ï‚· a single string parameter ï‚· a string and a Boolean value parameters Secretify will return a string based on the following – if Secretify is invoked with the following … Software Development encryption visual-basic | |
I have written some code that stores values inside a array of arrays. I am releasing the memory in my release method but Valgrind still reports the following: ==640== ==640== HEAP SUMMARY: ==640== in use at exit: 6,094 bytes in 33 blocks ==640== total heap usage: 12,040 allocs, 12,007 frees, … Software Development c | |
Hi guys, I'm having a weird error that I can't understand why: My program is the following: int paralelo(int num) { int cont,pid; printf("Creating %d sons with pid\n", num); for(cont=0;cont<num;cont++) { pid=fork(); if(pid==0) { printf("I'm the son number %d e %d\n", cont, getpid()); exit(0); } } return(0); } int main(int … | |
my problem is that i have written an algorihtm to convert non deterministic finite automata to deterministic finite automata but i couldn't translate it to C program and this is the algorithm i have written qx is a state in the NFA and q0 is its start state QX is … | |
If anyone knows Java and is semifamiliar with modding it, can you interpret this error code. == MCP v4.3 == > Recompiling client... javac.exe -g -verbose -classpath "lib/;lib/*;jars/bin/minecraft.jar;jars/bin/jin put.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath src/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/minecraft\net\minec raft\isom\*.java src/minecraft\net\minecraft\src\*.java conf/patches/*.java fai led. Return code : 1 == ERRORS FOUND == src\minecraft\net\minecraft\src\ItemChain.java:6: invalid … Software Development client-server java | |
I have a project where I need to get and count distinct values in tags in an XML document. If you look at the XML, I am specifically trying to count the distinct number of WorkOrderNumbers for Tuesday. Later I will do Monday and so on. I have tried the … Software Development xml | |
Hi All, I am developing a Java Swing application where I am using MS Access database. The problem is when I want to move this project to another location or machine or workspace, I need to change the data source properties in "Administrative Tools". Is there any work-around for this … Software Development java java-swing | |
#include <stdio.h> #include <stdlib.h> int i=-1; main() { int a[30],n; printf("enter the no of terms: "); scanf("%d",&n); store(a,n); } int store(int a[],int y); { if(i==y) { return \\it should return and terminate exit(0); } i++; printf("enter the number: "); scanf("%d",&a{i]); store(a,y); i know i had made a mistake but where … Software Development c | |
Hello Everyone. I am making a tool in which I want a button to do the following job e.g; A=(1,2,3) Signature Guide B=(1,2,4) File Signature In short I am making an antivirus, every thing is done, except "clean" button. I want that the clean button should do the following job. … Software Development gui vb.net virus-malware visual-basic | |
hello. i created a java app which enables one to create a database table using the name inputted by the user.But the problem i have is that i dont know how to make the column names of the table set to the name prefered by the user i.e the user … Software Development java | |
Hi, I have several functions that I'd like to operate on both mutable and immutable containers (mostly tuples vs. objects) and I'm looking for the optimal way to test for mutability in these objects. I can think of many ways to do this. For example: try setattr: do mutable stuff … Software Development python | |
` #include<stdio.h> main() { int b,c; printf("enter c :"); scanf("%d",&c); printf("enter b :"); scanf("%d",&b); printf("%d", gem()); getch(); return 0; } int gem(int b,int c) { int a; a=b+c; return a; } ` Software Development c | |
Hi everyone, I'm new here. I have a problem and I hope someone can help me with it. Actually, my problem involves arrays but its about the Gregorian Calendar class. I am trying to output a series of concentric circles . I have created two classes with two different types … Software Development java | |
Hey, I was hoping someone can help me convert a piece of php code, im not really sure where to start pack( 'v', $test ); The pack php function above takes in an integer and converts it to an unsigned long. V - unsigned long (always 32 bit, little endian … | |
Hi! I'm having an issue with maven I can't figure out. I have two local projects, project1 and project2. Project1 has project2 as a dependecy as you would have any dependecy in maven declared. Everytime I make a change in project2 I have to install it into the local repository … Software Development java | |
Shall i create a cgi script with main function command line Argument ? If i can , How can i pass the data to this command line arguments ? And shall i pass Array of data from JavaScript to cgi-script which is created in c++. How many ways are available … Software Development c++ | |
I keep getting "None of the 6 overloads could convert all arguments". I only get this problem in visual studio though. When I compile with g++ or codeblocks, it works perfectly fine. The code I'm calling my templates with is: `MemDeSerialize(ListOfItems, SerializedData, size_t(Data[2]));` The definitions: template<typename T> void MemDeSerialize(T& Destination, … Software Development c++ visual-studio | |
#include<stdio.h> #include<conio.h> #include<stdlib.h> main() { char ch1[20],ch2[20],*temp[10]; int i,j,count,k,p,q,len1,len2; printf("Enter the string\n"); scanf("%s",ch1); printf("Enter the string to be found\n"); scanf("%s",ch2); for(i=0;ch1[i]!='\0';i++); len1=i; for(j=0;ch2[j]!='\0';j++); len2=j; k=0; count=0; for(i=0;i<len1;i++) { if(ch1[i]==ch2[0]) { temp = &ch1[i]; k++; } } for(i=0;i<k;i++) { for(p=0;p<len1;p++) { for(q=0;q<k;q++) { if(*ch1[p]==*temp[q]) { for(j=0;j<len2;j++) { if(ch2[j]==ch1[p]) p++; if(ch2[j+1]=='\0') { … |
The End.