199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … ![]() | |
How to rectify the segmentation fault in LINUX system in C language? | |
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 ) . … ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
![]() | 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 … |
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 … | |
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 … | |
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}; … | |
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, … | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
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) … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … ![]() | |
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 - … | |
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 … | |
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; … | |
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 … | |
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 | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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); // … | |
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 | |
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) { … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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! |
The End.