199,114 Archived Topics
Remove Filter ![]() | |
hi, Im running debian/ubuntu linux and am trying to get a script/module that runs each time python is called from terminal. I am trying to write scripts that use Scipy,numPy,pyLab, etc and am trying to have all those packages import automatically each time python starts. I am not new to … | |
Hi, I would like to query from you people if its possible to change back color either row wise or CELL wise in List box. Also I would like to know any other ways of listing record in forms other than in List box, Flex Grid and Data grid. Regards, … | |
Ok I am having an issue with a program. I am in C++ II but my issue is I have not taken C++ I in over a year so I am at a disadvantage...we are working on a program and this is the information we were given and this is … | |
Hi, I am downloading url using urllib2, the problem I am facing is some times server goes down and then read will take indefinite time. I dont want that, I want to raise a exception after 20 secs in this case. There is solution using signal.alarm but it works only … | |
can anyone suggest any tutorials for the vc++ resource editor? or can anyone tell me how to use it? i know how to design the forms but i dont know how to use it in my code any help would be appreciated :) | |
[CODE=vb]' Private Sub department() Dim dep As String dep = Trim(Adoaddlec.Recordset.Fields("department")) If (dep = "1") Then optict.Value = True ElseIf (dep = "2") Then optassessmentprogramme.Value = True ElseIf (dep = "3") Then optdbt.Value = True ElseIf (dep = "4") Then opttvet.Value = True ElseIf (dep = "5") Then optcarrerdev.Value = … | |
Friends, when i try to compile this program i am geting this error!! ListMemoryFree.cpp: In member function 'void example::add(LinkSlcMap*)': ListMemoryFree.cpp:41: error: 'm_link' was not declared in this scope but to me it seems fine.:) plz point out my mistake!! [CODE] #include <iostream> #include <list> using namespace std; struct LinkSlcMap { … | |
Hello fellow developers I have a site project I've just acquired for a quick repair and I have problem with the url string being truncated because of the "#". What I mean by that is if I have a url string with a nave/value pair: deviceNane= AjaxText #2 only the … | |
I have a parent class and two child classes that inherit from the parent class. The parent class has a protected pointer to something, and a method to access that pointer. [code=cpp] class parent{ public: int* accessPtr(){ return ptr; } protected: int* ptr; }; class child1 : public parent{ public: … | |
Hello everyone! I have a Huffman algorithm that is going along really smoothly and I've gotten to the part where I have store the paths to nodes in an array from a tree. This is what I have so far: [code] /*************************************************************** * huffTraverse * **************************************************************** * huffTraverse() reads in … | |
Hello there. I have successfully read my emails from outlook into access. The problem is that I am trying to get the sent date field but I can not figure out the command for it. Below you will find the commands I used to find the subject, body and sender. … | |
I have a problem with my program. When i try to compile it it says i need a ; can someone try to compile it and please help me? [CODE]//This program will represent a pizza public class Pizza { private double cost; //the cost of the pizze private String crust; … | |
please can anyone give me more information on how to solve this problem i have. im writing a php code to create a form for a ms access database, i want customers to be able to select or tick various things they want in our services either from a dropdown … | |
enum Days { Sunday, Monday, Tuesday, Wednesday,Thursday, Friday, Saturday }; for( Days d = Sunday; d < Saturday; ++d ) cout << "d is: " << d << endl; C++ won't know how to increment d unless we define how that operator works for the type Days. Overload operator ++ … | |
I found this while googling for something [url]http://msdn.microsoft.com/en-us/library/ms177203(VS.80).aspx[/url] I tried it (with g++) and it seems to be a syntax error - is this like something specific to Visual Studio or something? Dave | |
Hi everybody. I am writing a program that calculates the amount of Carbon Dioxide produced in a year from waste by a few selected households and comparing how recycling can reduce the CO2 footprint. However, I believe the code is correct; I am just not getting the expected output. So, … | |
Hello Python gurus! I need to subclass the built-in type "int" and to add a method that resets the value to what it was when the class was first instantiated. here is what i want to achieve: a = my_int(4) print a ---> prints 4 (works ok) a += 5 … | |
Hi everybody Thanks again for your helps in my last thread. Now, I have some more problems. :( 50 Errors for this program. Certainly, a basic problem within the structure of class "Block". This assignment is all about "Class and objects". We can use functions, but no arrays. [code=cplusplus] #include … | |
Can someone help me with what I've done wrong with the character count function? it should be returning abcdefghijklmnopqrstuvwxyz ABVDEFGHIJKLMNOPQRSTUVWXYZ as 52 but it is coming back as 136088??? [code] #include <iostream> #include <cctype> using namespace std; const int STRINGSIZE = 100; void getString(char string[]); void reverseCase(char string[]); int numGraph(char … | |
[code=csharp] public struct MY_TYPE1 { public int A; public int B; } public class MY_TYPE2 { public int X; public int Y; public MY_TYPE1[] array2 = new MY_TYPE1[80]; } MY_TYPE2[] array1= new MY_TYPE2[800]; public void MtMethod() { [B] array1[0].array2[0].A=0;[/B] } [/code] When i try to use this code ,a null … | |
i have problem passing double pointer to my funciton first i declare: [icode]int m, n;[/icode] i read m and n from user just fine (i've checked that) then i declere: [icode]int farm[m][n];[/icode] and i have a function... [icode]void harvest(int **farm,...);[/icode] and when i call it with: [icode]harvest (farm,...);[/icode] it says … | |
guys i have come to conclusion that basically pocket internet explorer for windows mobile 5.0 and pocket pc 2003 basically dont support javascript. It is better to do everything based on simplest html tags. | |
I have a DataGrid bound to a DataTable. For various reasons, I don't want to allow users to sort the data, but I want to sort the data once by "Username" as well as resize the columns. I use DataTable.DefaultView.Sort = "Username" before binding it to DataGrid. If I then … | |
hi to everyone i am looking for a image scroll like [url]http://tools.yootheme.com/extensions/yooscroller[/url] to be used not on joomla but to any site. Anyone has an idea where to find it please.... thank you in advance | |
Hi everyone, I am trying to create a vacation planner where users can log in and save their plans. I have created a table called planner_plans and this is going to contain the main info such as title etc. but how do i make it so that when the user … | |
i need documentation for internet explorer 4 javascript support. thanks | |
I am trying to make a simple game engine that can display objects to the screen. I intend to implement a collection of Entity* where each Entity is the representation of an object, such as the image to use when drawing it on the screen, its various properties, what happens … | |
can anyone please help me? i have two decimal arrays l(15),r(15) loop has to repeat for 16 times.l(15) , r(15) is the result i have to get.i wrote function F and it is executing perfectly.but atlast r(15) and l(15) is showing as system.decimal[].if i tested with ordinary variable other than … | |
Hi Guys! I am trying to get a scroll bar to go to the lowest position possible. I am using a chat program and it bothers me that I have to scroll down to see new messages! I googled around and found lots of answers for flash, and other languages … | |
hi to all members of the forume i am the student of BCS (7th) term i want to make my final term project in C# but i have no idea, how i start my project. if anyone is willing to help me please contact me on my email [U]muhammadzeeshan09@gmail.com[/U] Thanks | |
Hello! I'd like to ask for some help. I have the following code: [CODE] private void Combobox1_SelectedIndexChanged(object sender, EventArgs e) { runstylize(lCombobox1, leftborderstyle, "left"); } public void getborderstyle(ComboBox x, string y, string z) { y = z+"-was set to:" + x.SelectedItem.ToString() ; change(); } [/CODE] My question is: why is … | |
I am trying to create a project, which will compute the yearly and monthly rate of taxes to be paid by a person earning a given gross yearly salary, knowing the rates for NI contributions, pension contributions, and income tax. The problem i am having is i dont think the … | |
Here is my code: [CODE] override protected void OnInit(EventArgs e) { InitializeComponent(); base.OnInit(e); } private void InitializeComponent() { this.cmdUpload.Click += new System.EventHandler(this.cmdUpload_Click); this.Load += new System.EventHandler(this.Page_Load); } private string strConn; OdbcConnection cnn; private void cmdUpload_Click(object sender, System.EventArgs e) { OpenDatabase(); if ((File1.PostedFile != null) && (File1.PostedFile.ContentLength > 0)) { // … | |
Hi, I have done this program that calculates the average and letter grade of 10 grades, but i would like the program to ask the user how many grades he want to enter. plz help, I have tried many ways like -- [CODE] int size = 0; Cout <<"How many … | |
I don't want to make a new thread, but I have a relevant question. I am not using directX or opengl, but I do have 2D sprites in 2D space. However the sprites might have arbitrary shapes (circle, square, random blob, wheel with hollow center, etc). I do have masks … | |
Hello there , i've got a problem , i made this program for a Football league stats sheet, but the program needs to grab the highest and the lowest value of each teams in age / weight (poids) / height(taille) i'm having a really hard time and i'd like someone … | |
Does anyone know how to add a new user created tool to the toolbox permanently? Everytime I start a knew solution, I have to go and add my customized tools back into the tool box. I would like to add the custom tools once and then they be there everytime … | |
Hi, everyone! At work, I'm having problems to run a XPath using the selectNodeList() method from Xalan. The XPath I want to execute is: //pam:message//prism:coverDate The error message I have is: The prefix 'pam' is not declared. expression = '//pam:message//prism:startingPage' Remaining tokens are: ('/' '/'). I have searched on the … | |
#!/bin/bash echo -e "10\n20\n100\n200" > file.txt number=0 cat file.txt | \ while read line do if test $line -gt 100 then number=$line echo "Inside while loop number=$number" break fi done echo "Outside while loop number=$number" The output of this script is Inside while loop number=200 Outside while loop number=0 Why … | |
Hi All, i'm executing a C program in unix, is there a way i would be able to capture abnormal termination of the C program. i observed that abnormal termintion results in the segmentation fault message being displayed. Would i be able to capture the return count in Unix to … | |
Given the following XML: [ICODE]<FlowDocument> <Run FontStyle="Italic" FontWeight="Bold">test</Run> </FlowDocument>[/ICODE] How could I get this result?: [ICODE]<body> <em><strong>test</strong></em> </body>[/ICODE] Thanks in advance! | |
OleDbConnection thisConnection = new OleDbConnection( @"Provider = Microsoft.Jet.OLEDB.4.0;Data Source=e:\DataMoney.mdb"); OleDbDataAdapter thisAdapter = new OleDbDataAdapter( "SELECT * FROM SchoolMoney", thisConnection); DataSet thisDataSet = new DataSet(); thisAdapter.Fill(thisDataSet, "SchoolMoney"); OleDbCommandBuilder thisBuilder = new OleDbCommandBuilder(thisAdapter); thisBuilder.QuotePrefix = "["; thisBuilder.QuoteSuffix = "]"; //set up keys object for defining primary key DataColumn[] keys = new DataColumn[1]; … | |
i have built a page which loads content into a div tag from a php page using javascript. the problem i am having is that the title for eachg page is not inside the div so i keep being left with the same title on each page. i have tried … | |
Hi there, i'm new to this community, but need URGENT help with two questions. i'm doing a subject on computer science, and regretfully my book is to know help in assisting me to answer the following two questions...if any one can help, it would be greatly appreciated QUESTION 1 write … | |
Hi, I have a file of approximately 4.19GB. I want to get the totall size of file using code in VC++, Here is my code [code] FILE *fptrSampleVideo = fopen(filename,"rb+"); if(fptrSampleVideo) { fseek(fptrSampleVideo,0,SEEK_END); uncompressedVideoSize = ftell(fptrSampleVideo); } [/code] If the file is of small size, ftell() return position correctly and … | |
Please can anyone tell me how to calculate time complexity of following algorithm in terms of big theta l=0 for i=1 to n do for j=1 to (n*n) do for k=1 to (n*n*n) do l=l+1 thanks in advance | |
Name: The name of this file is table_autoincrementedId Hello and Thank you in advance for any assistance. Purpose: The project is a Visual web JavaServerFaces project that is in the same folder and that imports the app library. Modeled after the tutorial at Using Java Persistence API Within a Visual … | |
I have a form with one richtext box. This rtb has different formats for each line i.e., some text is in bold letters, some center aligned. Currently I am using the PrintDialog Box to print the contents of the rtb and Print Preview DialogBox to preview the contents. The problem … | |
hi ive developed an inventory program but when i compile it keeps giving me an error message that ive tried solving but it doesnt work.the code looks like this: // Inventory.java // Program that displays the value of a product in inventory. import java.util.Scanner; // program uses class Scanner class … | |
Okay I have a finished program that does the job of what I want to to do but it seems so messy. Could you guys gimme some suggestions about how to make this code more efficient... or just neater in general. Much appreciated and thanks in advance. [CODE] import java.awt.*; … |
The End.