199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lj81

Hi all, I am new to C# and currently writing a program which attempts to capture video from two webcams at exactly the same time. I am using the EmguCv framework which is a wrapper class of the OpenCv framework used in C++. I have the program completed, with the …

Member Avatar for Momerath
0
405
Member Avatar for anku83

package JavaApplication42; import java.io.*; import java.io.IOException; import java.util.*; import java.io.BufferedReader; public class DPmodification { public static void main(String[] args) { BufferedReader br = null; int n, c, d,k, swap,i=0,j=0,no_of_selected_item=0; int numItems; int numTransactions; double minSup; String configFile = "F:\\New Folder\\configtrial.txt"; try{ FileInputStream file_in = new FileInputStream(configFile); BufferedReader data_in = new …

Member Avatar for iamthwee
0
288
Member Avatar for Sai Ravi Teja
Member Avatar for Ancient Dragon
0
127
Member Avatar for Afaf

Creat a text file that contains student number ( 9-digit number ) , year ( one of the four years: Senior denoted by SE, Junior denoted by JU, Sophomore denoted by SO or Freshman denoted by FR ) and GPA ( a floating point number greater than 0.0 ) . …

Member Avatar for iamthwee
0
233
Member Avatar for Satyam_1

Hi I have a form in vb.net that contains textbox as ID, Name, Age, Sex, Hb, BG. in database access i have 2 tables as Table1 and Table2. The Table1 contains ID,Name,Age,Sex and Hb. The Table2 contains ID,Name,Age,Sex and BG. I want to save data as ID,Name,Age,Sex, BG to table2 …

Member Avatar for cgeier
0
388
Member Avatar for amir4g

Hey, I have a lab to do, but I'm stuck on one part of it which is probably really easy but I can't figure it out. This is what I have so far, but it doesn't compile, and then I have to use polymorphism to output it. The purpose of …

Member Avatar for JamesCherrill
0
351
Member Avatar for dinhunzvi

i have two classes Session and SupplierSession. SupplierSession is supposed to inherit from Session. how do i ensure that the session_start() in the __construct() method of Session does not get called in SupplierSession. here are the class definitions. session.php <?php class Session { private $loggedIn = false; public $userID; public …

Member Avatar for urtrivedi
0
143
Member Avatar for spluskhan

There is a little bit prob with my code, My Prob: When i type name or place etc in search bar it show me the entire data stored in database, i need it show what i searching for... script for Search: <div id="wb_Form1" style="position:absolute;width:864px;height:147px;"> <form name="q" method="get" action="test-result.php" id="Form1"> <input …

Member Avatar for spluskhan
0
391
Member Avatar for iamthwee

I've been happily writing code for a bit of software that loosely is to do with project management. For that reason it has a dashboard-esque look and feel. It is highly customized and luckily because I've used MVC the views are separated from the db stuff. From day 1 I …

Member Avatar for urtrivedi
0
112
Member Avatar for vahidgholami820

i want to write a c++ code that due the structure of file space allocation,Simulates file system with 2*n array.Each column represents a sector,The first row is for storing files And second row holds the address of the next sector (Number of columns).and With each click on keyboard Create a …

Member Avatar for rubberman
0
523
Member Avatar for anish.prasad.7739

This program is for a car rental agency. Your program will have to compute the total cost of a rental. This agency has two types of cars, and the rates per day are as follows: All cars come with a basic insurance that covers damage to third Driver above 25 …

Member Avatar for rubberman
0
294
Member Avatar for inspire_all

What do you mean by a critical section? A critical section is a piece of code of a process that accesses a shared resource that must not be accessed by more than 1 thread of execn. 1.a thread is smallest seq of programmed instrns and process is made of many …

Member Avatar for rubberman
0
231
Member Avatar for COKEDUDE

I am trying to copy a string to an array of string. I have used these two examples before and they have worked so I don't understand why they won't work this time. I am getting a segmentation fault. http://stackoverflow.com/a/1088667/985898 http://stackoverflow.com/a/1095006/985898 I remembered to initialize everything. char *strings_mneumonic_table[503] = {0}; …

Member Avatar for rubberman
0
1K
Member Avatar for striqo

Hi everybody, I''m knew with VB.Net I want to insert different value into one field value. For example: Value1: this Value2: is Value3: a Value4: test I want that Value5 become a string: This is a test. There must be space between the words. How can I achieve this? Regards, …

Member Avatar for t3cho
0
154
Member Avatar for michelemalta

Hi, this program is a high-low guessing game that generates a random number and the user has 6 guesses to win their bet. When I run my code the "random number" is always the same. Any help is greatly appreciated. #include <iostream> #include <iomanip> #include <ctime> /* to access the …

Member Avatar for StuXYZ
0
390
Member Avatar for davy_yg

Hello, I've tried to set up moodle (php based) elearning, using Windows OS. Yet, I am receiving an error message. I already tried twice installing it in my windows system and receiving the same error message: -------------- The page isn't redirecting properly Firefox has detected that the server is redirecting …

Member Avatar for diafol
0
1K
Member Avatar for kristian.ssyn

Hi! I'm just new at GUI programming and I've been busy creating a GUI for my project. My image won't show up in this particular code. I've made two other classes and the images load perfectly. import javax.swing.*; import java.awt.image.*; import java.awt.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; public class Battle implements …

Member Avatar for JamesCherrill
0
269
Member Avatar for Lia_2

I got a code from a book on Fibonacci written in java. And because it's still raw, I did some editing to it (change some lined of code, add code that enables input etc). But, it doesn't work. The other three fibonacci programs (with different algorithm) work fine, but not …

Member Avatar for hannahaddad
0
307
Member Avatar for corby

Hey im trying to run background music when the user clicks the button. below is my coding. when i run the program, it says file cannot be found. any help would be appreciated [CODE]import javax.swing.*; import sun.audio.*; import java.awt.event.*; import java.io.*; public class Sound { public static void main(String[] args) …

Member Avatar for JamesCherrill
0
6K
Member Avatar for Siberian

When working with Arrays, isn't push and length identical ? If so why do I see length property used most frequently ? I personally am growing use to using push, was a little easier for me to remember. In my discoveries I find the length property used instead. What is …

Member Avatar for pritaeas
0
210
Member Avatar for yasheela

import java.lang.*; import java.util.*; class Project { public static void main(String a[]){ Hashtable<String,String>language=new Hashtable<String,String>(); Enumeration<String>names; String str1; String lang; language.put("insert","Load"); language.put( "select","Dump"); language.put("*","All"); language.put("from","as"); language.put( "where","Filter"); language.put( "Group","Group"); language.put ("Join","Join"); language.put("Order By","Order By"); language.put("Distinct","Distinct"); language.put("Count in lines","Limit"); language.put("set","set"); language.put( "Describe","Describe"); language.put( "Group By","CoGroup"); language.put("delete","Flatten"); language.put("dual","Sample"); language.put( "into","as"); language.put( "count *","count …

Member Avatar for hannahaddad
0
140
Member Avatar for dennis.ritchie

This seemingly small code which swapps 2 numbers is giving me a headache..help!! C++ + am wondering why would one need to swapp the numbers in real life? trickery? magic

Member Avatar for Kristian_2
0
231
Member Avatar for xyciana

Hi, I know the basics of perl and really need a dummies guide (simple steps) to get the following working. I came across the code below and downloaded the Twig.pm and Xpath.pm files into C:\Perl\lib (Windows machine) from CPAN and I cannot get the code to compile. Can someone give …

Member Avatar for 2teez
0
953
Member Avatar for Gl753

I'm working on a Database assigment but I'm kind of stuck. It seems to be the Double value that's causing the issue because when I use the Varchar data type I can create my table. Is there any way I can use Double without using Varchar. Any help is much …

Member Avatar for Dani
0
263
Member Avatar for Miroslav Mizner

Hi everybody! These days I've been solving the task of sending the bunch of files specified by unix filespec convention (all metacharacters allowed) to the remote host using ftp. I'm thinking of such concept/design, where the main bash script executes the following subtasks: (1) Expansion of command line arguments to …

Member Avatar for mizoslav
0
878
Member Avatar for nabilmahesaniya

hey guy i have adoubt regarding public void static i mean im not able to get when to write at that time ith public void......... so can someone help me

Member Avatar for Philippe.Lahaie
0
158
Member Avatar for kxjakkk

I'm trying to create a program that will prompt the user for a list of text files to read from, then read those text files and build a dictionary of all the unique words found. Then finally put those unique words into another file and make it alphabetical order from …

Member Avatar for kxjakkk
0
644
Member Avatar for knan

I have a dictionary [CODE]dict1={'18':['4000','1234'],'12':['7000','4821','187','1860','123','9000']}[/CODE] I want to sort the keys and values such that, the output is, [CODE]dict1={'12':['123','187','1860','4821','7000','9000'],'18':['1234','4000']}[/CODE] I tried something! but it didn work [CODE]>>> for values in dict1: ... dict1[values].sort() ... >>> dict1 {'18': ['1234', '4000'], '12': ['123', '1860', '187', '4821', '7000', '9000']}[/CODE] Full sorting happens for …

Member Avatar for grantjenks
0
815
Member Avatar for burt.munn

I need to add a nested table to my php page so that when I put it in my browser, just a table will appear with 2 columns and 3 rows. In the top left column I need the word "WIDTH", and right below that it will say "HEIGHT". The …

Member Avatar for diafol
0
969
Member Avatar for PC

My code has a raw_input in it - when I press Enter, it completely ruins the code which says that the string index is out of range. The annoying thing is that if you don't press Enter and type something in, it works perfectly fine. So my question is - …

Member Avatar for Gribouillis
0
186
Member Avatar for daniel1977

I don't think I fully understand the concept of looping. Below is what I put into eclipse and the results I get, am I doing something wrong to get the correct results if you could help thanks /* Working with a sentinel value Anderson, Franceschi */ import java.util.Scanner; public class …

Member Avatar for hannahaddad
0
252
Member Avatar for hussain_ahmed

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.Linq.Mapping; public partial class Default3 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } public void showgridview() { DataClassesDataContext dc = new DataClassesDataContext(); var q = from a in dc.GetTable<bio>() select a; GridView1.DataSource = q; …

Member Avatar for pritaeas
0
145
Member Avatar for sundog1

Hi Guys, Hope you can help. (Bit of a N00b still).. I've written an Functioning Program (Good start!) However, I was wondering if there is a way for the data that is being shown currently in the Grid view to be shown with 'Decimal Places? The Data is Being pulled …

Member Avatar for ddanbe
0
429
Member Avatar for riahc3

I want to store my databases only on RAM. I see that in MySQL server I can choose the "MEMORY" engine and the table with be stored only in the RAM. How about MS SQL Server? How can that be done there? Thank you

Member Avatar for Reverend Jim
0
426
Member Avatar for ravi_14

i made a project using visual studio and opencv ,it worked fine. however later i thought of adding GUI. i googled and found abput QT.some how i managed to include libraries and build paths,when i use **C fucntions of opencv** the program works fine but when i use ***c++ features …

Member Avatar for Ancient Dragon
0
695
Member Avatar for alagez

Hi there, I am planning to create one robot choosing center. But I do not know how to use the idea to execute in python software. my idea is, let say a customer wants to choose a robot how to use the rule below to execute in python: IF the …

Member Avatar for alagez
0
278
Member Avatar for abaddon2031

I have a python code that reads several csv files and writes teh data to a single file but every time it loops back around to the next file it prints the headers again. Is there a way to stop this I can post my code if it is nessisary.

Member Avatar for abaddon2031
0
296
Member Avatar for xfrolox

Well I'm trying to make a program that have ListBox1 which when the button1 is pressed the Listbox1 will show all the open windows of notepad, like get notepad.exe and it will show Example the name: Untitled - Notepad nothing else, i have a code right now that i found …

Member Avatar for olegb
0
2K
Member Avatar for dinhunzvi

i have the following php. the script gives me an error telling me that i have not selected a file to upload even when i have done so. if i try to access the $_FILES['minuteFile']['tmp_name'] i don't get anything but the $_FILES['minuteFile']['name'] would be having some. what could be the …

Member Avatar for dinhunzvi
0
348
Member Avatar for magikman

Hello, I am trying to write a Perl script that searches through a directory on Windows and returns the file names matching a pattern that's stored in a scalar variable. Please find my code below: use warnings; use strict; use Data::Dumper; use MIME::Lite; my @fields; my @files; my $dir="places"; sub …

Member Avatar for 2teez
0
351
Member Avatar for ameer.mhmed

method non static public class LoGIne{ public String user (String a){ String rr = txt_user.getText(); String pass = txt_pass.getText(); //ConDb(user,pass); return rr; } --------------------------------------------------- method static public static Connection ConDb(){ //String USER ="mh"; String d ,l,h; d =("ameer"); String PASS=d; LoGIne a = new LoGIne(); String USER = a.user(h); // …

Member Avatar for ViolaPAllen86
0
404
Member Avatar for mohan@nano

i have a text box in that i'll enter a value . The value should generate the tree structure using javascript .is there any pulgins for the above . please suggest me

Member Avatar for mohan@nano
0
71
Member Avatar for <HHH>

Hello every one, What i need to do is to make an array of my own class and then assign values to that array I made an array and when i try to assign value it gave me an exception Your support is highly appreciated. static void Main(string[] args) { …

Member Avatar for <HHH>
0
393
Member Avatar for mjsh

Hey, so I have an assignment for java using the hailstone sequence. My teacher wants us to print out the length of the longest sequence and the number for that. The problem I'm having is that I need to print out the actual sequence underneath the first part. Can anyone …

Member Avatar for JamesCherrill
0
824
Member Avatar for ala_2

i am trying to vendor specifc attribute from this WMI class MSStorageDriver_FailurePredictData(HDD SMART information). Here is the used code : IEnumWbemClassObject* pEnumerator = NULL; hres = pSvc->ExecQuery( L"WQL", L"SELECT * FROM MSStorageDriver_FailurePredictData", WBEM_FLAG_FORWARD_ONLY | WBEM_FLAG_RETURN_IMMEDIATELY, NULL, &pEnumerator); IWbemClassObject *pclsObj = NULL; ULONG uReturn = 0; while (pEnumerator) { HRESULT hr …

Member Avatar for ala_2
0
806
Member Avatar for ashab27

hi , this is asha bhatt. i have one radiobuttonlist and checkboxlist and i want to do the validation for these in asp.net ,the validation part i know that plz see my code [code] protected void SubmitButton_Click(object sender, EventArgs e) { bool flage = false; bool valid = false; try …

Member Avatar for rajesh0223
0
340
Member Avatar for burt.munn

I need to write a script which can display an XHTML table with a numeric value displayed in each table cell. The script should use a nested loop construct and should be able, by changing the value of two variables (for example, $intWidth and $intHeight). to adjust the size of …

Member Avatar for burt.munn
0
564
Member Avatar for afdoal

hi,,, i need question about populate table based on dropdown this my php file **kecamatan.php** <?php require 'config_db.php'; $self='kelurahan.php'; if (isset($_POST['action'])&&$_POST['action']=='edit'){ $namakelurahan = _post('namakelurahan'); if ($namakelurahan==''){ r2($self,'e','Nama kelurahan tidak boleh kosong'); } $id = _post('id'); $grp = ORM::for_table('kelurahan')->find_one($id); $grp->set('namakelurahan', $namakelurahan); $grp->save(); r2($self,'s','Perubahan data berhasil di lakukan'); } elseif (isset($_POST['action'])&&$_POST['action']=='delete'){ $trid …

0
204
Member Avatar for dukumanis

i have a problem to create a booking page. i currently develop a lend/borrow hardware system. my friend want me to include a list of items that still available and not been borrowed yet based on date chosen before user want to continue booking( ex: hotel reservation 'check availability'). i …

Member Avatar for dukumanis
0
157
Member Avatar for waseem1345

I have a very large code so I can't put it here... For example I have textBox1, I want to change its text. Can I use something like: `<textBox+"1">.Text="Changed"`? I really need it because I will have to use "foreach" loop instead which slows the performance... Thanks in advance!

Member Avatar for waseem1345
0
160

The End.