132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for parijat24

[CODE]hi there is an interesting problem , as i have almost 500 file in directory ~/work/whole_proteome/analysis_xenopus_takifugu_tetradon/split_result/filtered_domain/big_cluster_fasta_format/, now i want to run a perl script which is present in ~/work/whole_proteome/analysis_xenopus_takifugu_tetradon/split_result/filtered_domain/ORTHOMCLV1.4/ the problem is using os.system(command as it does not take the command properly) [/CODE] [CODE]from sys import * import os import …

Software Development perl python
Member Avatar for richieking
0
182
Member Avatar for sirlink99

I am wondering if I could write this code to a file and then print it at a starting location (like an image). [CODE] g.setColor(Color.white); g.fill3DRect(en1X + 0 * enZ, en1Y - 25 * enZ, 5 * enZ, 5 * enZ, true); g.fill3DRect(en1X + 5 * enZ, en1Y - 30 …

Software Development java
Member Avatar for mKorbel
0
201
Member Avatar for HelloMe

Hello guys... I have a strange problem on my calculation for a First in First Out Algorithm. The problem is, when i have to calculate 4 processes and above, the waiting time on my processes are wrong, but when i have to calculate only up to 3 processes it is …

Software Development algorithm java java-swing
Member Avatar for HelloMe
0
105
Member Avatar for arezz09

i hve create crystal report in vb.net 1 accessdatabase with password..using oledb connection when i wont to print data using crystal report, it will ask a password cz i have set database with password.. do i set password in crystal report or anywhere cz i dont know, so nexttime i …

Software Development vb.net
Member Avatar for debasisdas
0
113
Member Avatar for rjdelight

Hi all, I'm trying to get the information from a text file to show up in the JTextArea I have in a GUI. I'm using the GUI editor in NetBeans, because I'm a Java newb. I've been reading a lot of things on the web and can't seem to figure …

Software Development gui java java-netbeans java-swing
Member Avatar for sirlink99
0
3K
Member Avatar for Nevillelajru

i have 4 listboxes that are filled with product information. forexample one has the brand and the other the id. when i click on one item in the id the same index of the brand is also clicked. i have a problem regarding the scroll bars. i need to know …

Software Development
Member Avatar for Nevillelajru
0
165
Member Avatar for Buffalo101

Hello, This is an extension of this thread: [url]http://www.daniweb.com/software-development/c/threads/357681/1525001#post1525001[/url] My purpose is to create a class that handles a network message. Irrelevant, anyway. CMyMessage: [code=C] #include "stdafx.h" #pragma once #include <conio.h> #include <stdio.h> #include <iostream> #pragma once using namespace std; typedef unsigned char byte; class CMyMessage { protected: byte type; …

Software Development c++
Member Avatar for Buffalo101
0
688
Member Avatar for coding101

Anyone have an idea how see if a 32 bit integer has an even or odd number of 1 bits using ONLY bitwise operations? ! ~ & ^ | + << >> thnx.

Software Development c
Member Avatar for Narue
0
91
Member Avatar for gedas

hey, i have created a project in netbeans that contains an applet, later i use that projects jar file in web project and i embed the applet in the html file. the annoying thing is that once i change something in my applet project the and i run the web …

Software Development java
Member Avatar for gedas
0
78
Member Avatar for vineeth vs

pls any one tell me why the loop is not ending?? (program for quick sort)[CODE][/CODE] [CODE]#include<stdio.h> int partition(int a[],int l,int r); void quicksort(int a[],int low,int high); int loc,temp,pivot,a[50],low,high,left,right; int main() { int n,i; printf("\nEnter the no: of elements : " ); scanf("%d",&n); printf("\nEnter the numbers : "); for(i=0;i<n;i++) { printf(" …

Software Development c programming-construct
Member Avatar for Narue
0
253
Member Avatar for kandyhyatt

I'm new to java and seriously needing some help..I'm having problems deciding accessor and mutator methods.. and how to create an ArrayList. Write a program that uses an ArrayList of parameter type Contact to store a database of contacts. The Contact class should store the contact's first and last name, …

Software Development java programming-construct
Member Avatar for kandyhyatt
0
237
Member Avatar for rockerjhr

this is what i have so fa r globals.h [CODE] #ifndef _globals #define _globals #define NEXT(L) ( (L) -> next ) #define DATA(T) ( (T) -> datapointer ) #define LEFT(T) ( (T) -> left ) #define RIGHT(T) ( (T) -> right ) typedef enum { OK, ERROR } status ; …

Software Development c
Member Avatar for abhimanipal
0
188
Member Avatar for Silvershaft

What do you think is the best, I've heard that wxwidgets isn't really the best one? Give ideas please, thanks in advance!

Software Development c++ gui
Member Avatar for Stefano Mtangoo
0
468
Member Avatar for blacknred

Hi, I have this cvs file comprising of hex values. But my objective is to have them all converted to normal base 10 Dec format. myfile.csv [QUOTE]0x0000004d,0x00005275,0x37106800,0x000008a2,0x000009a2 0x0000004d,0x00005275,0x370d4e00,0x000008a2,0x000009a2 0x0000004d,0x00005275,0x37106800,0x000008a2,0x000009a2 0x0000004d,0x00005275,0x370d4e00,0x000008a2,0x000009a2[/QUOTE] I tried [CODE]for line in open('myfile.csv'): for word in line: word = int(word,16)[/CODE] word = int(word,16) ValueError: invalid literal for …

Software Development python
Member Avatar for e-papa
0
182
Member Avatar for trips_shubh

Hi, I am new to C++ and trying to use map in C++. I have a sample program as shown below- #include <iostream> #include <map> using namespace std; int main() { map<char*, char*> m; int i; char name[64]; char val[64]; // put pairs into map for(i=0; i<26; i++) { sprintf(name, …

Software Development c++
Member Avatar for trips_shubh
0
5K
Member Avatar for stefilina

Can anybody please explain me this expression? CONVERT(datetime, CONVERT(varchar, GETDATE(), 1) thanks.

Software Development
Member Avatar for abelLazm
0
130
Member Avatar for jlivvers

Hi I have a c# console app that calls some access 2007 queries. One of these queries throws an error "Undefined function 'MonthName' in expression". I understand that some functions that are available in VBA cant be called from c# and if i comment out the 'monthname' function the call …

Software Development c# microsoft-access
Member Avatar for jlivvers
0
260
Member Avatar for mduncan8

I want to make collapsible groups in an excel document(in excel, on to the Data tab, Outline section, Group button) using XSLT. Is this possible? If so, does anyone have an example or link of how this is done? Thanks in advance.

Software Development xml
Member Avatar for sapien
0
507
Member Avatar for samp4ever

I need to add a text line in a specified point of a windows form. In this form I draw something and I would like to describe the draw exactly where it is pointed. Is there a way to add a tooltip in a specified point of a Form? For …

Software Development
Member Avatar for ddanbe
0
177
Member Avatar for nemzmiyaw

Good Day I want to create a security log in that start up when the computer is turn on. Im having problem on multi user once the user ID is logged in it also logged in in another computer, i dont know how to add this codes can some one …

Software Development vb.net
Member Avatar for nemzmiyaw
0
162
Member Avatar for zyberb

Hello, im trying to make a program that reads from a file and sums up only the numbers.the numbers ar aranged like this in the file: 100er34 67 yyy 7 5 63 6 1 My problem is that the program sums up wrong,it sums some numbers twice when it see …

Software Development c++
Member Avatar for Insensus
0
291
Member Avatar for pratibhamohanty

Hi, Can anyone tell me how to send emails from a vb.net(visual studio 2005) application using System.net.mail Thanks in advance,

Software Development vb.net visual-studio
Member Avatar for pratibhamohanty
0
127
Member Avatar for MadRedCzech

I am just learning c++ and, I am trying to create a function out of the lines that are surrounded by stars. I am at my wits end! Does anyone have a suggestion or reference that might help me figure this out. Here is my code: [CODE]int a, b, c, …

Software Development c++
Member Avatar for WaltP
0
150
Member Avatar for deean

Hello, I have a problem. I would like to search certain word from xml. For example: I would like to search "black". And in XML file there is value "black board". But it does not appear. Does anyone know how to solve it? I mean when I type "black", the …

Software Development xml
Member Avatar for m.asfak
0
134
Member Avatar for shapam

how can i open .java extension file in jdk software.. i used edit keyword to open the .java file but jdk is not allowing me to open the .java file.. please any one fix this problem...

Software Development java
Member Avatar for stultuske
0
97
Member Avatar for gingerfish

i have this 2d array: String[][] testData= { {"s", "y", "r"}, {"s", "n", "r"}, {"w", "y", "r"}, {"s", "n", "r"} }; how can i count the occurrence of a particular element in the column of an array? for example i want to know how many "s" are in first column …

Software Development java
Member Avatar for gingerfish
0
3K
Member Avatar for nemzmiyaw

Good Day I want to create a security log in that start up when the computer is turn on. Im having problem on multi user once the user ID is logged in it also logged in in another computer, i dont know how to add this codes can some one …

Software Development vb.net
Member Avatar for nemzmiyaw
0
118
Member Avatar for Tinee

Hi, I'm trying to find the resultant of a given data using fstream. I made the program and everything and I believe its all correct however, when I try to run it, I'm getting a linker error saying "undefined reference to Resultant(const double...)" which I can't figure out how to …

Software Development c++
Member Avatar for Tinee
0
107
Member Avatar for joseph.roy9

i hav developed a java swing desktop application in eclipse & ubuntu;From where should i get the jar file of my appication or how to create jar file of my application??? thanks in advance...........

Software Development java java-swing ubuntu
Member Avatar for JamesCherrill
0
213
Member Avatar for rhuffman8

I just started looking at iterators in my C++ class and don't think I fully understand enough about them to actually create one. I need to add an iterator to this doubly linked list program: [CODE]#ifndef CSLIST_H #define CSLIST_H #include <iostream> #include <cstdlib> using namespace std; template <class T> struct …

Software Development c++ linked-list programming-construct
Member Avatar for rhuffman8
0
279
Member Avatar for fradiavolo

Edit : Broken from this thread. [url]http://www.daniweb.com/software-development/cpp/threads/35587/175186#post175186[/url] Hello. I got the same problem. But i need to read the string table from a file. I must use a 3d table? The table in the file must look like this: [CODE] A B C D E A QX FN LB YE …

Software Development c++
Member Avatar for Greywolf333
0
162
Member Avatar for blacknred

Hi, I'm trying to 'grep' the string which comprises of all non-zero values [B]0x0000000a[/B] in this case. [CODE]>>> match = re.search('0x0000000[1-9,a-z]', "My values are value=0x00000000 0x00000000 0x0000000a 0x00000000 0x00000000 0x00000000")[/CODE] This works but in this case, but not over any string as in if example is: [QUOTE]"My values are value=0x00000000 …

Software Development puzzle python regex
Member Avatar for blacknred
0
86
Member Avatar for arsheena.alam

Hi, I am creating the dll of my website by building the website. Now the problem is I am not getting the XML documentation file in the debug folder of the bin folder. There is no debug folder inside the bin folder!! I am unable to see comments in my …

Software Development xml
Member Avatar for arsheena.alam
0
191
Member Avatar for sirlink99

Is there a way to diplay a web page like google in an application in a JLabel for example. Kind of like the new minecraft launcher where it shows the update in a window about the login area. Thanks for any help.

Software Development java
Member Avatar for mKorbel
0
78
Member Avatar for Shruti4444

Code snippet for removing duplicates in a text file using vectors in c++

Software Development c++
Member Avatar for mike_2000_17
0
2K
Member Avatar for arezz09

1. i hve create school system...so when register new student i want to upload their picture in folder,not database...when upload, all student picture will be in same folder like student picture.. 2. i'm using listview to view all student information,so i want picture display in listview column..

Software Development image listview vb.net
Member Avatar for codeorder
0
163
Member Avatar for Jake.20

Guys i need help in histogram report.. My histogram report didn't show the data in the database.

Software Development vb.net
Member Avatar for sandeepparekh9
0
73
Member Avatar for bhagawatshinde

i have a RichTextBox in my application and there may be many and many lines, i dont want to use any Scrollbar in RichTextBox. i want RTB to change its height and width itself according to the lines in RTB. im also using Pictures in the RichTextBox. Can anybody help …

Software Development vb.net
Member Avatar for bhagawatshinde
0
117
Member Avatar for wilko1995

Hi all, i need help with this code. [CODE]<html> <head> <SCRIPT LANGUAGE="VBScript"> <!-- Sub button_OnClick Dim TheForm Dim y Set TheForm = Document.form1 If IsNumeric(TheForm.inputbox.Value) Then If TheForm.inputbox.Value >= 1 Then y = TheForm.inputbox.Value * 1.3 Alert("Your $AUD is $" & y) End If Else Alert("Please enter a numeric value.") …

Software Development vbscript visual-basic
Member Avatar for WaltP
0
104
Member Avatar for keiteqq

if a word begins with a vowel (a-e-i-o-u), then "ay" is added to the end of the word (so "idle" -> "idleay", and "often" -> "oftenay"); on the other hand, if a word begins with a consonant, then the first letter is removed, and is placed at the end of …

Software Development java java-swing
Member Avatar for keiteqq
0
500
Member Avatar for james6754

I have a form, now if I were to make a new class and make the form inherit that class. That class changes to a form? Can anyone explain why. This is probably a really silly question but I cannot find an explanation for it! Thanks James

Software Development
Member Avatar for abelLazm
0
99
Member Avatar for leo88

hi, i have a question about string. [code] string a = "1 2 2 4 5"; string b = "2 5"; if (a.Substring(b)) // or need use contains? { Console.WriteLine("yes"); } else Console.WriteLine("No"); } [/code] I want to check that if "2 5" is in a, then it will print …

Software Development c#
Member Avatar for leo88
0
338
Member Avatar for Lokril

If a is greater than b then if a is greater than 300 multiply a by 7. Otherwise— in case a is not greater than b—multiply a by 10. Use only two if and one else. Make sure your else is paired with the correct if. You may have to …

Software Development c++
Member Avatar for Lokril
0
117
Member Avatar for Gus Garza

Hello all. After going through a deep search on these forums and google as a whole, I have not been able to find a correct piece of advice or input on how I should aproach Guassian Elimination in C++. Ive been assigned to make a program that can perform Guassian …

Software Development c++
Member Avatar for Gus Garza
0
104
Member Avatar for Slyvr

[CODE]PointerInfo a = MouseInfo.getPointerInfo(); Point b = a.getLocation(); int x = (int) b.getX(); int y = (int) b.getY(); System.out.print("Y: "+y); System.out.print("X: "+x+"\n");[/CODE] Right now I'm using this, but it gives me the coordinates relative to the entire monitor. Since you can move the program frame anywhere on the monitor, this …

Software Development java
Member Avatar for Slyvr
0
4K
Member Avatar for msqueen082

I solved my problem with the issue of Julian date, but i have another small issue.. I have to use dates in calculation ... like a client types a appointment datat in textbox and in another textbox it shows that the date has to be between two days. [B](appointment written …

Software Development vb.net
Member Avatar for msqueen082
0
187
Member Avatar for magravis

So basically, as of now I have a word and numbers that i am trying to space out for output (the code is in a text file) it's like "HEY10001101" when it's supposed to look like "HEY 10001101". i have the "HEY" stored as an "string command" and the number …

Software Development c++
Member Avatar for magravis
0
110
Member Avatar for yo123

Does anyone the code to convert a JPEG colour image into a gray scale image??...

Software Development image java
Member Avatar for valiandra
0
565
Member Avatar for ichigo_cool

I'm trying to make a small text-game that revolves around armies. I have a unit class [CODE] class Unit { protected: string m_name; short m_health; unsigned short m_damage, m_block, m_experience; public: Unit() { } }; [/CODE] This was a rough outline - I'd later add methods that I'd want the …

Software Development c++
Member Avatar for L7Sqr
0
94
Member Avatar for altXerror

i have a header file which contains a random number generator here is the code: [CODE]#include <cstdlib> #include <time.h> #ifndef RANDOM_H struct rand_var{ int x,y; }Rand_var; static int rand_gen() { srand ((unsigned)time(NULL)); extern int random; random = rand() % (Rand_var.x-Rand_var.y+1) + Rand_var.x; } #endif /* random.h */[/CODE] you will probably …

Software Development c++
Member Avatar for altXerror
0
152

The End.