132,726 Archived Topics
Remove Filter ![]() | |
[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 … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
What do you think is the best, I've heard that wxwidgets isn't really the best one? Give ideas please, thanks in advance! | |
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 | |
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++ | |
Can anybody please explain me this expression? CONVERT(datetime, CONVERT(varchar, GETDATE(), 1) thanks. Software Development | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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 … | |
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 | |
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 | |
Code snippet for removing duplicates in a text file using vectors in c++ Software Development c++ | |
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.. | |
Guys i need help in histogram report.. My histogram report didn't show the data in the database. Software Development vb.net | |
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 | |
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 | |
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 | |
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 | |
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# | |
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++ | |
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++ | |
[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 | |
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 | |
Does anyone the code to convert a JPEG colour image into a gray scale image??... | |
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++ | |
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++ |
The End.