132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for imarc

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 …

Member Avatar for imarc
0
292
Member Avatar for Frensi

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
Member Avatar for TrustyTony
0
173
Member Avatar for moblyft

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
Member Avatar for Taywin
0
240
Member Avatar for Blank808
Member Avatar for I_m_rude

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
Member Avatar for I_m_rude
0
123
Member Avatar for sandorlev

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
Member Avatar for Gribouillis
0
255
Member Avatar for Kristjon

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 ![list1](/attachments/large/3/list1.JPG "list1") Here's my structure declaration: typedef struct author *link; struct author { char name[20]; link next; link down; …

Software Development c linked-list
Member Avatar for Kristjon
0
331
Member Avatar for Zeref

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
Member Avatar for Zeref
0
318
Member Avatar for hughesadam_87

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
Member Avatar for sneekula
0
99
Member Avatar for modesto916

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
Member Avatar for modesto916
0
2K
Member Avatar for opman234

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

Software Development html-css vb.net
Member Avatar for Maligui
0
135
Member Avatar for emokidzz

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
Member Avatar for Mike Askew
0
297
Member Avatar for blue_Student

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
Member Avatar for blue_Student
0
660
Member Avatar for shanki himanshu

#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++
Member Avatar for shanki himanshu
0
233
Member Avatar for phoenix_2000

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
Member Avatar for phoenix_2000
0
548
Member Avatar for abhinashraju

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..

Software Development gui java
Member Avatar for Taywin
0
239
Member Avatar for paulsoncole

**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++
Member Avatar for deceptikon
0
110
Member Avatar for rithish

#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
Member Avatar for deceptikon
0
285
Member Avatar for np complete

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++
Member Avatar for deceptikon
0
218
Member Avatar for kathir100
Member Avatar for NormR1
0
80
Member Avatar for code_dude

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
Member Avatar for code_dude
0
103
Member Avatar for Andyjava

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
Member Avatar for Andyjava
0
2K
Member Avatar for kenth21v

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
0
123
Member Avatar for kenth21v

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
Member Avatar for kenth21v
0
236
Member Avatar for HibaPro

how i can make the cell on my DGV linked to other DGV ???

Software Development vb.net
Member Avatar for HibaPro
0
130
Member Avatar for deepthought

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 …

Software Development ide python tkinter
Member Avatar for deepthought
0
162
Member Avatar for l_rankov

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
Member Avatar for M.Waqas Aslam
0
207
Member Avatar for Krokcy

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
Member Avatar for harinath_2007
0
551
Member Avatar for Gobble45

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
0
167
Member Avatar for napninjanx

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
0
63
Member Avatar for thabang.b.kekana

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
Member Avatar for Bile
0
135
Member Avatar for gwolf1

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
Member Avatar for gwolf1
0
170
Member Avatar for piero.costa

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 …

Software Development c ubuntu
Member Avatar for Ancient Dragon
0
403
Member Avatar for ayoub

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 …

Software Development algorithm c
Member Avatar for WaltP
0
2K
Member Avatar for sear899

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
Member Avatar for NormR1
0
216
Member Avatar for emurf59

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
Member Avatar for emurf59
0
586
Member Avatar for vishu.bhavsar

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
Member Avatar for Ezzaral
0
175
Member Avatar for rithish

#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
Member Avatar for rithish
0
162
Member Avatar for shanki himanshu

i have made a queue using STL. the queue contains strings only. how to check for a particular string if it present in queue or not?

Software Development c++ queue
Member Avatar for Ancient Dragon
0
92
Member Avatar for rithish

can we store array value like this a[-50]; a[-49]=80; a[-2]=90;

Software Development c
Member Avatar for deceptikon
0
129
Member Avatar for akkbkht

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
Member Avatar for saseless
0
690
Member Avatar for Andyjava

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
Member Avatar for Andyjava
0
755
Member Avatar for hughesadam_87

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
Member Avatar for hughesadam_87
0
116
Member Avatar for gem.gonzales.9

` #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
Member Avatar for rithish
0
141
Member Avatar for DrEinstein

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
Member Avatar for DrEinstein
0
143
Member Avatar for trishtren

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 …

Software Development java php
Member Avatar for keith.pastorek
0
1K
Member Avatar for SasseMan

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
Member Avatar for peter_budo
0
150
Member Avatar for infantheartlyje

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++
Member Avatar for Ancient Dragon
0
597
Member Avatar for triumphost

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
Member Avatar for mike_2000_17
0
186
Member Avatar for milindchawre

#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') { …

Software Development c c# c++
Member Avatar for deceptikon
0
126

The End.