132,726 Archived Topics
Remove Filter ![]() | |
Hello frends, How to get Hour value at time now? example int32 Hour=getHour(now) ???? Software Development | |
I have this code using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.OleDb; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Access_Database { public partial class Form1 : Form { private OleDbConnection myconnection; public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { string strconn = … Software Development open-source | |
Hi.. I have checkedlistbox in Form1,i am populating it using the following code [CODE]System.IO.DirectoryInfo di = new System.IO.DirectoryInfo("E:\\Testing"); System.IO.FileSystemInfo[] files = di.GetDirectories(); checkedListBox1.Items.AddRange(files);[/CODE] now i want to bulid an xml file in Form2 using the checkeditems in Form1 for which i have tried with the following code [CODE] Options opt … | |
![]() | Is it possible to create a scripting language using Python? Interactive Shell is fine, just something which comes close to a scripting language? Which allows the user to script some sort of functionality? Maybe more that just a console like this: def main(): cmd = (raw_input('#>>')) if cmd=="do_stuff": print "Ok, … Software Development python shell-scripting ![]() |
Good Afternoon, How do you write a two nested do-while loops to display the pattern: * ** *** **** ***** ****** So far I have this code, but it just displays ****** int i=0; do{ cout<<'*'; i++; }while(i<5); cout<<endl; Software Development c++ | |
My Ubuntu version is 12.04. I'm simply trying to include GL/glu.h in my program, but I get the error: `fatal error: GL/glu.h: No such file or directory` I include it like this: `#include <GL/glu.h>` I have libgl1-mesa-glx-dbg, libgl1-mesa-dev, mesa-common-dev all installed. | |
Hello all, Im getting the following error when i try to create a simple helloWorld C++ project in eclipse. Please note that i have MinGW, msys and my environment variables set up right. Im using Windows 7 and the 32bit Eclipse Juno. Error: Error 127 occurred while running autoreconf HelloWorld … Software Development c++ | |
I have downloaded vpython and try to run one of the examples included with the program. [CODE]from visual import * floor = box(length=4, height=0.5, width=4, color=color.blue) ball = sphere(pos=(0,4,0), color=color.red) ball.velocity = vector(0,-1,0) dt = 0.01 while 1: rate(100) ball.pos = ball.pos + ball.velocity*dt if ball.y < 1: ball.velocity.y = … Software Development python windows-vista | |
Hi everyone, I was wondering if anyone could help - I'm trying to split up a char* that contains a string, something like "*Stephen*10:11:00*02/07/2012*Hi there" I'm trying to split it up so it gets the position of the first * then the second, and stores whats between them in name … Software Development c++ | |
![]() | How to write a program that will find the smallest, the largest, and sum of squares values in a collection of N numbers? (using loops) Software Development c++ |
I was wondering if there is a way to open an SQL file and execute it from a c# application without prior connection to a database and also get the name of the default server that is used when SSMS is opened. at the moment i can open SSMS but … Software Development sql | |
Hi all Is VB6 a good tool for developning database apps for the XP and beyond OS ? I am especially intrested in sma; datyabases like coin collectors databases . Thanks Elico Software Development visual-basic | |
**alue** I have a Customer class and a Repair class I have a TreeMap(customerDetails) of type <String, Customer>. Each Customer object holds a HashMap(repairs) of type<String, Repair>, the String represents the ref number of the repair. The user of my system types in a ref number, the program searches to … Software Development java | |
How di I use I/O redirection to load the input into an array ? % a.out < inputfile That's what I found. I don't know if that's all you need or if there's more.. Software Development c++ | |
I have to write an application in python for image processing.I have made scripts of all the image editing options. Now I want to add GUI in it. I want a window where I can give the path of an image on which I want to perform the editing! At … | |
here are the files guys all I need is to connect my C# app to my sql in server management studio, please help and if possible, please include the step by step on how to do it. Thank you very very much! | |
Hi, Anyone suggest/Explain code optimization, time complexity of program. I came across Big O(n), Big O(...). can anyone explain what these means and how to find these for programs. -- Thanks in advance Software Development c | |
Hi, People... I have a question about reading xls files in python then parsing it to sqlDatabase. The thing is, that the xls file(pricelist) we as a company use are ordered and it's pretty easy to sort that out. The problem comes with xls files from other companies. (We are … Software Development python | |
Hi everyone I am trying to plot the data within the class XYDataset regress, vertically, right now they plot horizontally. Any help appreciated: package brainwavesanalyser; import java.awt.Color; import java.awt.Paint; import java.io.IOException; import java.util.ArrayList; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.plot.DrawingSupplier; import org.jfree.chart.plot.PlotOrientation; import org.jfree.chart.plot.XYPlot; import org.jfree.chart.renderer.xy.StandardXYItemRenderer; import org.jfree.chart.renderer.xy.XYItemRenderer; import … Software Development java | |
Hello guys, I am trying to insert watermark as text in word 2007 using c# but getting error can u pls help me out. here is my code... //THE LOGO IS ASSIGNED TO A SHAPE OBJECT SO THAT WE CAN USE ALL THE //SHAPE FORMATTING OPTIONS PRESENT FOR THE SHAPE … Software Development c# microsoft-office | |
im having a problem on my sql command. here is my command select ProductCode, ProductName, qtyinstock, critical from product where qtyinstock <= critical but it keeps on showing record that qtyinstock is not less than or equal to critical see this image http://a4.sphotos.ak.fbcdn.net/hphotos-ak-snc7/482956_437601922940311_1148836844_n.jpg Software Development vb.net | |
Guys can you please tell me that which is best (XML or HTML) actually i want to create a sitemap of my website so that's why i asking to you this confusion. please share your thoughts here... Thank You. | |
Hello all, I have this C# code where in I am writing some datato an excel sheet and then saving it using saveas. But when I run the program again for the next time it is asking me prompt whether or not replace the exisiting file. I want it to … Software Development microsoft-office | |
Hi, I am writing a game. Three card brag. The rules of the game are 1.Each player is dealt three cards. 2.The hand is then assigned a rank based on the cards recieved 3. The hand Ranks are 0,1,2,3 4. the hand ranks are then compared and the highest hand … Software Development java | |
I'm really confused with this! I have 2 classes, Club and Membership. In Membership I have the method, getMonth(), and in Club I have joinedMonth() which takes the parameter, 'month' - so a user enters a month and then I want it to return the Membership's which joined in that … Software Development java | |
Good day to everyone.. First Here is my code so far.. import java.io.*; public class Inventory { public static void main (String[]args)throws IOException{ BufferedReader bv = new BufferedReader (new InputStreamReader(System.in)); String x, z; boolean y = true; int a, b, c, d = 0; do { System.out.println("--------------------------------------------------------------"); System.out.println(" M I … Software Development java java-netbeans programming-construct | |
Hello, I am attempting to write the merge sort algorithm which will generate a vector of 20 random integers and then sort them. The problem is, it does not output the sorted list, it merely outputs a series of zero's and one's. My code is as follows, any help is … | |
I got the IndexOutOfBoundException in the following code. but I cannot find where went wrong. import java.util.ArrayList; public class sumArrayList { public static int calculateSumArrayList(ArrayList<Integer> Integers) { ArrayList<Integer> duplicate=new ArrayList<Integer>(); for (int i=1;i<=Integers.size();i++) { duplicate.set(i,Integers.get(i-1)); } return calculateSumArrayListHelper(Integers); } private static int calculateSumArrayListHelper(ArrayList<Integer> Integers) { //first: arrayList size 0 if … Software Development java | |
Hi, I have some images which I update like below: count++; if(count >= sizeOfArray) { count = 0; } for(u32 i=0; i<sizeOfArray; i++) { s_image[i].image->setVisible(false); s_image[i].reverse->setVisible(false); } I want to know, how do I reverse it. I mean, it is increasing the count and I want to decrease it. The … Software Development c++ | |
I'm out of practice on my C++ and have kind of picked up a new hobby; it turns out that I like creating electronic devices. Particularly amplifiers and sound to light kits. Stuff like that; the problem is that determining the amount of resistance a resistor on an old creation … Software Development c++ | |
So awhile back I came here asking for help trying to read in data from a webpage, more specifically the HTML. I was running into an issue where the data wasn't actually being read (as if it hadn't loaded in). I had to put the program aside for awhile as … Software Development html-css multithreading | |
If a heap is like a binary search tree shouldn't it search in O(log n)? Software Development data-structure seo | |
I've been working through an excersise in a introduction to Java book by Deitel and I have a solution to a problem. The program will compile, but I get a message that says, "Exception in thread "main" java.lang.IllegalArgumentException: adding container's parent to itself" Can Someone please help me? Here is … Software Development gui java java-swing | |
![]() | This is a program using the `urllib` module to find the (html/any client-side script) source code of any website which exists. Have fun! Software Development python |
currently I'm rewriting old euler solutions into classes so i can store them in a library. I wrote a program that digitizes a number so it can check to see if it a pallindrome, The base class digitize dynamically allocates memory for the size of a number and stores each … Software Development c++ motherboards-cpu-ram oop | |
![]() | Hi guys, I am having a problem with the following code: #Health set here def win(): import time print "You win!" print "Thanks for playing" time.sleep(10) quit() def lose(): import time print "You lose!" print "Thanks for playing" time.sleep(10) quit() from random import randint pos_damage = randint(15,472) en_health = 1000 … Software Development python ![]() |
How can I create a Modifiable Const vector but make it unable to be resized? Either that OR I want to return a pointer from a function but not allow the user to delete it. This is my example so far: class MemberRawArrayVector { private: vector<unsigned char> MemberRawArray; public: MemberRawArrayVector(int … Software Development c++ | |
Hi, I am trying to learn some basic game programming and already made simple pong game so I thought next step could be simple breakout. I already got ball and bat made by Rectangle. How about bricks, also Rectangle? If so it would be easy to break them just by … | |
Hello everyone,I need some good practise problems in java programming so that i can apply concepts in solving the problems.So any help would be much appreciated.Please refer me to any link or suggest me some book for the same and also I am new to this website so forgive if … Software Development java | |
![]() | Hi, I have made a code where I write a recipe to a file and then I can read from the file and it is output in a listbox. I need to allow the user to change the amount of people served and then the quantities change to suit the … Software Development vb.net |
hey guys i have done my codes and its working properly the only thing that's bothering me is that' when i input 52 and 'a' as my name, it wont ouput the right answer (it should be 'a' also) i hope you guys can help me thanks! public static void … Software Development java | |
This is driving me crazy. I downloaded netbeans and love it but for the last 5-6 hours i have been trying to figure out why my java programs is not showing images. When i open it with jGrasp the images and everything loads perfect. With netbeans it will not show … Software Development java java-netbeans | |
Hi, I am writing a script which will run a process in a while loop, i.e., user will execute `sh test.sh ` and the script will run a set of processes, I want to know how to kill the script which is having a infinite while loop in its contents. … Software Development shell-scripting | |
The code i used in JGrasp to show the image is not working in Netbeans The code i used in JGrasp is final ImageIcon icon1 = new ImageIcon("image/money.gif"); JOptionPane.showMessageDialog(null, " blah blah", "Text", + JOptionPane.INFORMATION_MESSAGE, icon1); And if i wanted to show an image in JOptionPane.showInputDialog would it be the … Software Development image java java-netbeans | |
You are required to write an application called Customer Billing System. This system will calculate water usage charges for a month that has been imposed by Syarikat Air Melaka Berhad. This system will categorise users into residential users and industrial users and calculate the charges based on data entered by … Software Development data-structure java ![]() | |
To Check Wether the 3 Points are Collinear or Not. Software Development c | |
Hi! I've encountered another problem, The code below is just the part of the code where the error occurs int FindStr(FILE *f, char *str) { int s_pos; //string position in the text int c_pos; //char position in the text char *string; char ccnt; //char count s_pos = -1; c_pos = … Software Development c++ | |
I want to start a collaboration with just 1 Java programmer (intermediate or pro) for building our own graphics library . I have tools for real-time collaborative code editing (a plugin for eclipse), so you don't have to worry about uploading your code on internet and then I have to … Software Development java java-swing | |
How do I make 6 labels and next to those labels there are 6 different times. And each time u click the label the time next to it goes down. I'm working in VB 2010. Software Development vb.net | |
Hello, I'm trying to convert some code from BASIC to C++.. But, I'm stuck on a particular part.. REM CREATE A MATRIX C WITH (COS(DN) , -SIN(DN)) : DIM C(NE, NS, 2) FOR N = 0 TO NE / 2 FOR E = 0 TO NE - 1 DC = … Software Development c++ |
The End.