43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Dendari

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
Member Avatar for Dendari
0
226
Member Avatar for Kirielson

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
Member Avatar for Kirielson
0
331
Member Avatar for UnhingedToker

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 …

Software Development image java
Member Avatar for JamesCherrill
0
170
Member Avatar for 4evrmrepylrning

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
0
171
Member Avatar for jimoaks

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
Member Avatar for JamesCherrill
0
402
Member Avatar for newbie26

[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
Member Avatar for newbie26
0
355
Member Avatar for newbie26

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
Member Avatar for newbie26
0
1K
Member Avatar for bgx90

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++
Member Avatar for bgx90
0
3K
Member Avatar for kiail

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
Member Avatar for thines01
0
146
Member Avatar for Griff0527

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
Member Avatar for Lerner
0
2K
Member Avatar for Mopikope

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
Member Avatar for NormR1
0
236
Member Avatar for tallygal

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 …

Software Development image printer vb.net
Member Avatar for tallygal
0
790
Member Avatar for mehnihma

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
Member Avatar for mehnihma
0
225
Member Avatar for phorce

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++
0
303
Member Avatar for moshe12007

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
Member Avatar for moshe12007
0
127
Member Avatar for apanimesh061

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
Member Avatar for JamesCherrill
0
137
Member Avatar for Vish0203

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
Member Avatar for Vish0203
0
191
Member Avatar for michelleradu

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
Member Avatar for ~s.o.s~
0
8K
Member Avatar for mehnihma

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
Member Avatar for mehnihma
0
207
Member Avatar for hwoarang69

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
Member Avatar for hwoarang69
0
226
Member Avatar for MasterHacker110

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++
Member Avatar for BobS0327
0
1K
Member Avatar for hwoarang69

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
Member Avatar for Vish0203
0
184
Member Avatar for MasterHacker110

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
0
92
Member Avatar for soham.m17

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
Member Avatar for soham.m17
0
724
Member Avatar for ashboi

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++
Member Avatar for ashboi
0
2K
Member Avatar for Rutu3

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

Software Development asp c#
Member Avatar for Zorrro
2
359
Member Avatar for razamughal67

Hello to all we want to lock or password to a folder in vb6 please tell me anybody thanks

Software Development visual-basic
Member Avatar for razamughal67
0
441
Member Avatar for pritish.kamath

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; …

Software Development display java
Member Avatar for pritish.kamath
0
129
Member Avatar for sing1006

`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
Member Avatar for adam_k
0
143
Member Avatar for prerit

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
Member Avatar for prerit
0
8K
Member Avatar for kiail

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
Member Avatar for kiail
0
323
Member Avatar for jackmaverick1

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, …

Software Development gaming image java
Member Avatar for jackmaverick1
0
198
Member Avatar for Andy90

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
Member Avatar for d.hussain
0
320
Member Avatar for abhimanipal

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

Software Development c++ ui-ux
Member Avatar for abhimanipal
0
178
Member Avatar for Tortura

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
Member Avatar for Tortura
0
455
Member Avatar for blackmagic01021

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
Member Avatar for blackmagic01021
0
172
Member Avatar for MasterHacker110

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++
Member Avatar for MasterHacker110
0
728
Member Avatar for Majestics

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 …

Software Development gui java
Member Avatar for CrazyDieter
0
347
Member Avatar for memomk

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 …

Software Development c c# c++ ide
Member Avatar for faizan11
0
206
Member Avatar for cresenia1988

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++
Member Avatar for muze
0
134
Member Avatar for zachattack05

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
Member Avatar for zachattack05
0
176
Member Avatar for MasterHacker110

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; …

Software Development c c++
Member Avatar for MasterHacker110
0
172
Member Avatar for <HHH>

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
Member Avatar for joankim
0
351
Member Avatar for zachattack05

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
Member Avatar for zachattack05
0
138
Member Avatar for zachattack05

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
Member Avatar for zachattack05
0
208
Member Avatar for Black Magic

[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++
Member Avatar for SamuelAdams
0
378
Member Avatar for memomk

sorry but i still cant understand what is different betweeen Thread and Process in c# what to use?

Software Development c c# c++
Member Avatar for memomk
0
108
Member Avatar for Thermalnuke

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
Member Avatar for Thermalnuke
0
137
Member Avatar for NyQii

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
Member Avatar for SyncMaster170
0
160
Member Avatar for Sahil89

What event trigers when we open file with our exe/program? How to do coding for that?

Software Development vb.net
Member Avatar for Sahil89
0
95

The End.