43,549 Solved Topics
Remove Filter ![]() | |
Hi, I'm stuck on some tables from MS Access. I have the following: Items: itemId(PK), Naam Combo: comboId(PK), Naam Combineren (combination): ID(PK), itemId(FK), comboId(FK) I want my app to show ComboNaam with ItemsNaam in my dataGridView in the following form: [CODE]string queryString = "SELECT Combo.Naam FROM Combo ORDER BY Naam"; … Software Development | |
How do I send arguments to a function by using windows command prompt? Software Development python | |
[CODE]area = ((length ** 2) * numSides) / (4 * (math.tan(FULL_ROTATION / (2 * numSides)\ )))[/CODE] this is my thought but I can't figure it out, I always get the wrong value. I need to get my answer in degrees. but even when i use [CODE]return math.degrees(area)[/CODE] at the end … Software Development python | |
Hi all, How can i convert the excel worksheet into MS Access database, such that all the fields & data of excel becomes the fields of database, and then i could use that database for adding new item, modify and delete. I want to do this so as to avoid … Software Development | |
I want to check the input of the user. Only positive nos are allowed. I want to pass the input of the user to a function which checks that if it is i positive no. then it allows the user to continue further otherwise it gives an error and asks … Software Development python | |
I can't figure out what's wrong - I was remaking the code from an older and messier version, but now I've hit a roadblock because what I say in the actionPerformed section just doesn't happen. I suspect that it's because of the Timer, which a friend adviced me to link … Software Development java java-swing | |
Good Day All i have the Following Function [CODE] private static void OMEGA_calcActvEqv() { SqlConnection conn1 = CommonFunctions.getSQLConnectionForThread(THREAD_DATA[0].ToString()); string SQL = "SELECT MAX(D.OFFS + 1) * MAX(R.OFFS + 1) FROM TBL_ROWS R, TBL_CLMN D; SELECT MAX(OFFS + 1) FROM TBL_ROWS;"; SqlCommand cmd = new SqlCommand(SQL, conn1); SqlDataReader rdr = cmd.ExecuteReader(); … Software Development | |
Hi I'am a beginner in C#. I would like to know how to connect to a database using C#. I'am using Visual Studio 2008. Software Development c# visual-studio | |
[CODE]#include <cmath> long double NR(long double sample) { return (abs(f(sample)))<=1e-10 ? sample: NR( (sample - f(sample)/fp(sample))); } long double f(long double sample) { return 2.5*exp(-sample)-3*sin(sample); } long double fp(long double sample) { return -2.5*exp(-sample)-3*cos(sample); }[/CODE] I'm trying to write code for a Newton-Raphson algorithm. I have it in recursive form … Software Development algorithm c++ mathematics | |
Hi everyone, I'm trying to write a code that converts the number that a user inputs to either Celsius or Fahrenheit simply by pressing a button. So far I was able to compile and run the program displaying the panel, buttons, and the text field but I'm not sure how … Software Development java java-swing | |
Hi, new learner to C++. I have to write 4 functions to compute and return the diameter, circumference, etc. of a circle. I think I might be on the right track but I'm probably making this harder than it has to be. I commented most code out because I'd like … Software Development c++ | |
Hi, hope you can help, i am quite new to this. I need to know who to write data from several text boxes on a form to a sql database. I have created the sql database on a localhost using myphp admin, i have created the connection in a module … | |
Hi, I've dabbled in some programming in the past, but nothing serious. I'm trying to create an array of objects in python 2.6 (VPython). What I want to do is create a 2d grid of sphere()'s. But I want to be able to manipulate each one individually after they are … Software Development python | |
I tried installing pcapy 0.10.4 and i get an error. C:>setup.py install running install running build running build_ext building 'pcapy' extension C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nolog /0x /MD /W3 /GS- /DNDEBUG -DWIN32=1 -Ic:\devel\oss\wpdpack\Include - IC:\Python26\include -IC:\Python26\PC /Tppcapdumper.cc /Fobuild\temp.win32-2.6\Release\pcapdumper.obj pcapdumper.cc pcapdumper.cc(12) : fatal error C1083: Cannot open include … Software Development python visual-studio windows-vista | |
I have tried and tried to figure out what it is I am have wrong. I have an assignment to create a program that calculates employee's bonus. I think I pretty much have it, but I keep getting an error that I cant figure out and what the error is … Software Development c++ | |
Sorry to bother again:) but im new to Python and to OOP. I made a simple sniffer application (thanks to your help) which prints the sniffed data on the console. I want to extend it giving it a GUI using PyQt4. I also made an argument "--nogui" that the user … | |
Howdy all hope everyone is having fun with there own projects! But i have come once again to be a pain in the ^**^. I need to know an easy way of doing this -> as an example say: I would like to some how use a MultiDarray in this … Software Development | |
Hi all, UDATE: Let's not hastily rush into this. I may have found my problem. BTW, my result set is populated with all of the required data. I have a custom renderer which renders table cell values from a query. The result data is populated into a 2 dimensional array. … | |
Hi I'm trying to find a way to find the first avogadro cipher whose digital sum exceeds 100, I've come to: [code=python]#!/usr/bin/python def dig_sum(n): lst = list(str(n)) ln = len(lst) sm = 0 while(i < ln): sm += int(lst[i]) return sm def avo(i,j,k,c): k = j j = i + … Software Development mathematics python | |
Hi, When I want to get a string with getline function, it jumps from this statement without getting string . Because I get an integer number before it and the \n is pressed . To solving this problem I use cin >> ws before getting string with getline function . … Software Development c++ | |
Hi gang, I have a unique challenge that I just cannot seem to get by...I have a form with a series of listboxes that allows the user to rename items in the listbox (I probably should be using a listview control instead). When the user right-clicks and selects rename from … | |
Hello, I'm trying to compile a program related with serial communication via RS232. I've found this program at microsoft page [url]http://support.microsoft.com/?scid=kb%3Ben-us%3B39501&x=9&y=11#top[/url]. When I try to compile this same program in Dev C++ editor the following message appears: bios.h: No such file or directory. Please, help me about what can I … Software Development c | |
I am attempting to write a program that evaluates a mathematical expression after parsing it. I have the parser correct, using a string to strip it into tokens and compare it to grammar rules to validate the expression. It should be able to evaluate expressions of type (3+2)*4+-1= where negative … Software Development c++ | |
Trying to write a function but don't known how to start. trying to make a function that ask the user for the current population and displays the population after 1/2 years unitil it reaches 1 million at a rate of 8% per year. for example Year 1, population 864000 Year … Software Development python | |
[code]List result = q.list(); if (result.isEmpty()){ System.out.println("No Projects"); } else{ for(Object object : result){ Project p = (Project) object; System.out.println(p.getName()+" worked on by "+p.getEmployees().getName()); } }[/code] [Quote] error : CompanyReports.java:303: cannot find symbol symbol : method getName() location: interface java.util.List<Employee> System.out.println(p.getName()+" worked on by "+p.getEmployees().getName()); ^ 1 error[/Quote] Can anyone … Software Development java | |
I'm sure I missed something simple but I'm getting frustrated with this code simply because I'm so sure it should work. I have created a short program for exporting some XML data was use at the office into .tsv files. I have a thread dedicated to reading the xml data … Software Development xml | |
[CODE] import java.util.Scanner; public class primenumbertest { public boolean isPrime(int num){ int x; Scanner input = new Scanner(System.in); System.out.print("Enter a number to find out if it's prime or not (greater than 1): "); num = input.nextInt(); if (num == 2) return true; // check for divisible by all even number … Software Development java | |
[B]Bsplayer is a videoplayer. I want to start bsplayer with the parameter -stime-x, where x is the amount of seconds. This result in playing a movie from say 23 minutes 10 seconds with the parameter -stime=1390. The whole thing I can manage to do in [COLOR="Green"][U]DOS[/U][/COLOR] and looks like: @echo … Software Development mathematics os-x python video | |
I've been busy learning windows service these days. I have here a windows service application that monitors a folder then logs all the activities inside that folder. I want my windows service to show in the system tray, how do I integrate my windows service and the notify icon? Thanks! … Software Development | |
I have to build a media player in C# for my final project and I'm not sure where to begin. I want it to be able to play most of the video and audio formats and have basic features like a track bar, a play list, and the option to … Software Development audio visual-basic visual-studio | |
Dear everybody I really need your help!! I have made a small application in Visual Basic 2008 Express. It's a small form application with a Database connected to the project. (made from the wizard in VB express) My problem is that when I deploy my application i can't find the … Software Development vb.net visual-basic | |
Dear All, First of all, I do not know if this is the correct place or not but I am having problems about playing video by using opencv. I am trying to play an .avi video. I did exactly the same thing as tutorial but the code below does not … Software Development c++ | |
Hi, I am trying to implement a project where I need to detect something. I have the digitized form of a human cell and I need to detect regions separately in the image. This part is over. The next part is where I have to detect overlapping regions. Another part … Software Development | |
Hi, I am trying Serial Port Communication in Linux using Javacomm API and RxTx. I'm configured RxTx as per the documentation. But I received an error as follows, Exception in thread "main" java.lang.UnsatisfiedLinkError:com.sun.comm.SunrayInfo.isSessionActive()Z. Would you help me please.. | |
hiii, I m new to create reports in c#, so can any one tell me how to i create crystal reportsusing my queries?? & How to show it??? Is there any namespace for using crystal report actually my prg give a error at compile tym : the error is related … Software Development | |
Hey, I'm pretty new to programming and I'm writing a program for my class. I can't figure out why my <iomanip> isn't working.. I'll post a copy of the code (I'm aware it's bugged, as it's not returning the proper values, but the format of the output is the issue). … Software Development c++ | |
Hi, Please help in this regard. Can the modification time of a file be updated to any date of our choice? Please advise. Thanks in advance! Software Development shell-scripting | |
Does anyone know how to get the adspath attribute value to a better looking string. Active Directory returns the following: "LDAP://contoso.com/CN=Sanch01R,OU=Managers,OU=Users,OU=InfoTech,DC=contoso,DC=com"; I would like it to read: contoso.com/infotech/users/managers/sanch01r The IndexOf and Substring methods do not work consistently as we never know how many OU's would be returned, any ideas would … Software Development | |
1) I want to Close all mozilla firefox windows running , for that to happen as i know there is two ways a) to use link label b) findwindow Link Label finds the mozilla browser but with the found browser i can get the url of the browser but i … Software Development visual-basic | |
Hi, I have been trying to solve this problem without any luck. Can someone please have a look at this code as it doesn't work Thank you After clicking a button I refresh the picture box the code below is in the picbox.Paint event. Basically what I am trying to … Software Development | |
Hey guys, im having some trouble in finding what I should return with the [] operator overloading. Here is my implementation code: [CODE] template <typename L> L& List<L>::operator[](int index) throw (ListException) { if (index >= length || index < 0) { throw ("In function: operator[]: index >= length or < … Software Development c++ linked-list | |
The code not listed has an arraylist named unsorted size 1000, and another array named keys_Array, size 100. Every element from the keys_Array was picked from the unsorted, so they should always be found. Problem I'm having is that it doesn't print anything. It just reports a msg from the … | |
I have 2 buttons in my form. The first button to fill the JTable from .xls file and the second button to save the content of the table to database (MySql). I haven't figure out yet the way to save data from JTable to MySql. :confused: So, can anybody help … | |
I'm having the hardest time figuring out how my latest homework assignment is supposed to work. Basically we have to write a program that creates a list containing names. The list will then be sorted, written to an output file, and searched. We get the names from a text file … Software Development python | |
Hi Everyone. I want to use this thread for some help as i'm sure this will not be the only question as i have just over 300 lines of code from my old python 3.1 script. I'm now using 2.6.4 and it is obvious some code isn't backwards compatible. Soooo … | |
I'm trying to randomly select 100 values from an array of 1000. How do I do this? Also, after selection, how can I add these 100 values into a new array. Do I need to do something like this with a loop? [CODE]for (x = 0; x < 100; x++){ … Software Development java | |
So basically my assignment is to write a few Java methods that contain arrays in the parameters, and then test each one using a main method within the same class. However, I can't figure out how to invoke the methods... I keep getting a compiler error that states "join(char[]) in … Software Development java | |
I need help with writing a program for converting int numbers to words. For example, the number 713 would be translated into the string "seven hundred thirteen", and 8203 would be translated into "eight thousand two hundred three". The class should have a single integer member variable: - int number; … Software Development c++ | |
Hi all, Im trying to add tags to my blog post. i did it its done but i wanted more so when users click the link of tag, they will see other post tagged same. anyway here my view_tag function [CODE]def view_tag(request, tag_id): tag = Tag.objects.get(pk=tag_id) news = tag.pnews_set.all() return … Software Development python | |
Hello, I need to re size the square whenever I move the slider; how can I accomplish that? Your time and effort are appreciated. [CODE] import java.awt.*; import java.awt.geom.*; import javax.swing.*; import javax.swing.event.*; public class SquareSliderTest{ public static void main(String[] args){ EventQueue.invokeLater(new Runnable(){ public void run(){ SliderFrame frame = new … Software Development java java-swing |
The End.