43,549 Solved Topics
Remove Filter ![]() | |
Hello everyone. I'm trying to work with this kind of file: http://www.mediafire.com/?da0ad07pzfogdl0 (you may use Notepad++ to open it) I think it's a binary data file but I'm not sure. Anyways what I need to do it's to edit some of the text part inside it. Example: http://img403.imageshack.us/img403/8017/94022290.jpg I'd like … Software Development vb.net | |
Hello, I am trying to implement a version of the cubic spline based on the artilce here: [Click Here](http://en.wikipedia.org/w/index.php?title=Spline_%28mathematics%29&oldid=288288033#Algorithm_for_computing_natural_cubic_splines) and while implementing it I find errors that my indices are out or range such as: ` h[i]=(n[i+1]-n[i]) IndexError: list index out of range ` Here's a part of the code: … Software Development python | |
I have an image consisting of lot of different frames. There are a lot of transparent pixels in the frames. I have to split the image into individual frames and iterate over the pixel data in an input image/buffer and copy out rectangular regions containing non-transparent pixel data into individual … | |
A while ago I created a PHP application that looks at xml files. I have now been tasked with converting this to Python or Django or Turbo gears(anything as long as it's Python something). I am new at Python and while I have played with Django a bit I have … Software Development php python python-django | |
Hello, I have two problems. First, I am trying to have a set background image that displays with two jbuttons on the bottom. My error is that when the back ground image is displayed it hides the buttons (until you mouse over them). Second, I want the buttons on the … Software Development display java java-swing | |
[QUOTE=mb01a;1655781]Let me think about that .. How about - [code] dim sql as string sql = "select tablename.* from tablename limit 5" ' other things you'll need are defined elsewhere in your program [/code] Now, you'll need to add the code that connects to mysql, then open the recordset and … Software Development display listview visual-basic | |
hey everyone.i have a project that requires the use of a barcode scanner then apply it to a vb6 application i dont know how to do this. the barcode scanner will read the barcode from the id of an employee. then after reading it, all the details of that employee … Software Development visual-basic | |
This is my first time to try using STL maps. The code looks correct as far as I can tell, but when I try to compile a test file that does nothing but include the header for the class and declare a variable of that class, I am getting compiler … Software Development c++ | |
I need to fill an array according to the order of number in a string of text a user provides(a telephone number). For example if the number 555-5142 is dialed, the first 3 numbers are five, so char firstLetter, secondLetter, and thirdLetter would be filled with 'J','K,'L'. I've looked at … Software Development | |
![]() | I have pretty much failed my class (4 weeks behind in an 8 week class that is currenlty at the beginning of week 8), but I am wanting to learn C++ for myself anyhow. I have visited http://www.cplusplus.com/doc/tutorial/ and gone through the tutorial, but cannot understand this assignment. I have … Software Development c++ linked-list |
I am in the process of creating a jackpot game. At the moment I am stuck trying to cycle through the different pictures and stop on a random picture for 5 different slots. So far I have this for animating: private void animatePictures() { Thread timer = new Thread() { … Software Development java | |
I'm trying to print the selection of my picturebox as the background of the image. I can get the image to show, but it's not the height and width of the background. Any help would be appreciated. Thank you. ' Fig. 15.24: CheckWriter.vb ' Printing a paycheck. Imports System.Drawing.Printing Imports … | |
![]() | How can I turn radio button in another class which I cannot change but I need to turn it on from another class? How can I pass action event to it? Thanks Software Development java ![]() |
Hello, I have been reading an article on comparing data, and have been given this code: for(i = 0; i < matrix1W; i++) { for(j = 0; j < matrix2H; j++) { diffSum += abs(matrix2->pData[(row+j)*backW+(col+i)] - marix1->pData[j*matrix2+i]); } } Now it works when using arrays, but, I'm using vectors, is … Software Development c++ | |
hi i write this code in perl i dont know why that not work... sub Again { $dirtoget= $_[0]; if(opendir(DH, $dirtoget)) { @thefiles = readdir(DH); closedir(DH); if(@thefiles) { foreach $f (@thefiles) { next if ($f eq "." or $f eq ".."); print "$f\n"; if(-d "$dirtoget/$f") { Again("$_[0]/$f"); } } } … Software Development perl | |
import java.sql.*; import java.util.ArrayList; import java.util.Iterator; /** * * @author Animesh Pandey */ public class dbConnect{ jaccardIndex ji; public float calcJaccard(String s1, String s2) throws Exception { ji = new jaccardIndex(); float sim = ji.Jaccard(s1, s2); System.out.println("calcJaccard"); return sim; } @SuppressWarnings("static-access") public int getLength(String s) throws Exception { ji = … Software Development java | |
I wrote this program... Just gave a try!! i got a problem with searching a string in file.. the **"checkp"** used in the login function, returns a value **"1"**, whereas it must return a value **"0"** Hence my program fails... what i felt is, the file i'm opening, **"web_reg.txt"**, in … Software Development c | |
![]() | Hi All, I have to split a text into words using both spaces and punctuation as delimiters. Punctuation includes characters like .,!?:;'"- I am using the split function as it follows: [CODE]wordsArray = strLine.split("[.,!?:;'\"-]+\\s*");[/CODE] However, this only splits my text by spaces and ignores other characters I've set as delimiters. … Software Development java |
![]() | I have problem with this part of the code private char encryptChar(char c, int shift) { if (Character.isLetter(c)) return (char) ('A' + (c - 'A' + shift) % 26); else return c; } private String encryptMessage(String msg, int shift) { String result = ""; for (int i = 0; i … Software Development client-server encryption java ![]() |
iam trying to store all the data in to a struct so i can change it later. //this data is in file abc 1 11 22 def 2 33 ghi 0 22 11 33 asd 2 i was planing on making a array of structs. so 1st line will have … Software Development c linked-list | |
I again have a C code that i need in c++ #include <stdio.h> void hexDump (char *desc, void *addr, int len) { int i; unsigned char buff[999]; unsigned char *pc = addr; // Output description if given. if (desc != NULL) printf ("%s:\n", desc); // Process every byte in the … Software Development c++ | |
trying to copy pointer in array. lets say *pointer has the value "COMPUTER". and i want to store in array[o]; note: i want to use strcat to do this and i do not want to do some thing like "array[0]" char test[10]; char *point; //has the value "COMPUTER" for(int i … Software Development c | |
My code gives this error: relocation truncated to fit: R_386_16 against `.data' section .text section .data text_string db 'This is my cool new OS!', 0 global _start global print_string _start: mov ax, 07C0h ; Set up 4K stack space after this bootloader add ax, 288 ; (4096 + 512) / … Software Development assembly | |
JLabel[] x=new JLabel[10]; int i=0; for(component comps : a.getComponent_list()) { x[i]=comps.getType().getImg(); x[i].setBounds(comps.getPosition().x, comps.getPosition().y, comps.getType().getWidth(), comps.getType().getHeight()); System.out.println("Coming Here,"+comps.getId()+","+comps.getPosition().x); this.add(x[i]); i++; } repaint(); I want to have all the labels in their position. after this function. but only the last added label is shown. What can I do? Software Development java | |
I'm trying to write a program that uses vector to store the grades for the number of students entered.But i seem to be getting some problems with my code. I am able to enter the number of students, but when it asks for the grades, the program exits. I hope … Software Development c++ | |
Actually im creatg a website as a project so how to create database ,and connect asp page to C# code, hw to change template plzz help | |
Hello to all we want to lock or password to a folder in vb6 please tell me anybody thanks Software Development visual-basic | |
i wanted to display a pattern like this 4444 333 22 1 i used the following code import java.util.*; public class PatternExp { public static void main (String args[]) { Scanner src=new Scanner(System.in); System.out.println("Enter the number of lines needed"); int n=src.nextInt(); for (int i=n; i>0; i--) { for(int j=n; j>0; … | |
`Public Class login Dim cnn As New OleDb.OleDbConnection Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click Dim cmd As New OleDb.OleDbCommand If Not cnn.State = ConnectionState.Open Then cnn.Open() End If cmd.Connection = cnn If cmd.CommandText = "SELECT UName FROM Account WHERE UName =" & Me.UsernameTextBox.Text Then … Software Development open-source vb.net | |
I have a project on image processing. I have a picturebox with an image loaded in it via a openfiledialog box. I was trying to zoom an image in the picturebox by certain pecentage i.e **50%, 100% 150%** and **200%** . All this is done when a user clicks on … Software Development image | |
Hello everyone. I'm trying to write a phone number word generator. I have the basic form setup and a dialing pad. The dialing pad dials just like a phone, except it only has keys 2-9. I'm trying to print out all the possibilities a phone number could produce using streamwriter. … Software Development | |
I've got a game, and I'm trying to do it right. I've got a spritesheet (which is really just a class that loads images for easy access. It seems to work, but then my tile system starts, and it fails in an interesting way - it loads only the foreground, … | |
I have created an application which requires double value processing, I want to add trackbar so that user can select any double value he wants. But I m unable to set min and max value as double for trackbar. Help me. Software Development | |
Hello everybody, I am trying to teach my stl and after writing some basic programs I have hit a road block. I have an iterator which I am trying to pass to a function template Here is my function template template <class T> void display(typename vector<T>::iterator start, typename vector<T>::iterator end){ … | |
Hi, it is jinxed. I don't find another solution. The code which doesn't work is very simple. While watching it with a breakpoint, IT WORKS! Otherwise it doesn't. I don't know why and it's driving me crazy. There are two comboboxes. The choosen item is the title of the x/y-axis … Software Development | |
I have a class that has a text area. the code is as follows package view; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTextArea; import javax.swing.ScrollPaneConstants; public class LabelStatus extends JPanel { /** * */ private static final long serialVersionUID = 1L; … Software Development apache java java-swing | |
i have tried to write this hexdump code for dumping the contents of a tex file. #include <iostream> #include <fstream> #include <string.h> using namespace std; int main() { string line; string finline; char infile[100]; char ofile[100]; char chars[750]; cout<<"Enter input file: "; cin.ignore(); cin.getline(infile, 99); cout<<"Enter output file: "; cin.getline(ofile, … Software Development c++ | |
Its not a new question, i already searched many forums and found many answers but the builders i found arent able to compete with builder of vb.net and c#.net, so i thought to take some decision from some experience people , please give me some of your suggestions. I already … | |
well i have two questions: 1-hey i was wondering is there a library or namespace in c# for creating databases? like anydbm with python?or anyway to do it? 2-witch faster? getting data from huge database or getting it from like a huge database devided to multi database i mean witch … | |
Inside the infile.txt, I'm suppose to convert into outfile.txt. Unforunately, I'm unable to get the correct aglinment for outfile. As you can see, France and Vietnam have an extra "\t". char ch; switch (n) { case 'F': stud.type = n; infile >> stud.st.fs.country; infile.get(ch); infile.getline(stud.st.fs.name, MAX); break; case 'S': stud.type … Software Development c++ | |
I'm working on a method that will save checkstates to a SQL server and something occured to me and I thought I would ask if there is a simpler way of doing this. If I have a single parameter, for example an initial checkstate, and an if...else statement is supposed … Software Development | |
i have this c++ code and i wondered how ot would be in c #include <vector> // for vector #include <sstream> // for stringstream #include <iostream> #include <string> using namespace std; int main() { stringstream ss; string input, temp; vector<string> comand; cout << ">: "; getline(cin, input); ss << input; … | |
i'm trying to read data from .csv file and it give me grabage so i will be pleased if someone help me thanks import java.io.*; public class ReadFile { public void File2 () throws FileNotFoundException, IOException{ FileInputStream fstream = new FileInputStream("C:/myfile.csv"); DataInputStream in = new DataInputStream(fstream); BufferedReader br = new … Software Development java ![]() | |
So if I have 3 stored procedures that act on a single table (or multiple tables for that matter), is it acceptable to combine them since they are related on some level and then using a switch or if statement to determine which "procedure" to actually run? As a simplistic … Software Development | |
I have a checklistbox that I have been working on and I need to commit the changes made to those checkstates to a sql table, removing rows where the checkbox is not checked and adding rows where the checkbox is checked (assuming the checkstate actually changed). Instead of doing a … Software Development sql | |
[CODE]#include <iostream> using namespace std; int main() { char exit; cout << "Exit? Y / N " << endl; cin >> exit; if ( exit == 'Y' || exit == 'y' ) { } if ( exit == 'N' || exit == 'n' ) system("PAUSE>nul"); else { } } [/CODE] … Software Development c++ | |
sorry but i still cant understand what is different betweeen Thread and Process in c# what to use? | |
having a problem with a program im working on with inheritance. suppose to output the area, perimeter, and area i think i have it all set up correctly but its not out putting correctly here is the the superclass that inherites to the client form. public class CIRCLE extends CLIENT … Software Development java | |
Hey guys.... Just wondered if anyone can help me, I'm busy writing an application with a login form using SQL Server, if the user logs into the specific for i want a lable saying logged in as : .... But how do you code that part? Hope you understand thanks Software Development | |
What event trigers when we open file with our exe/program? How to do coding for that? Software Development vb.net |
The End.