43,549 Solved Topics
Remove Filter ![]() | |
Hi all, I am able to pull data from a CSV file into a string array using the following code. public static string[,] ReadCSV(string filename) { //Read Text string whole_file = System.IO.File.ReadAllText(filename); //Split into Lines whole_file = whole_file.Replace('\n', '\r'); string[] lines = whole_file.Split(new char[] { '\r' }, StringSplitOptions.RemoveEmptyEntries); //Calucluate Rows … Software Development | |
i keep getting this error: WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'F:/Term/cmdrun/new.log' how can i make the logging module stop loggin to new.log so it can be moved and renamed? Software Development python | |
Hi EveryOne, I have a following controls in my vb.net form: txtID txtName btnAddNew btnSave This form will be storing a values to the SQL Database (SQL Server 2005). In the txtID textbox the auto id should be generated when ever user clicks on btnAddNew. The ID should be generated … | |
Hello! I'm new to VB and I'm having trouble finding the correct formula for the Average Discount :'( Option Explicit Dim mcurExtendedPrice As Currency Dim mcurFifteenDiscount As Currency Dim mcurDiscountedPrice As Currency Dim mcurTotalDiscountGiven As Currency Dim mcurBookCount As Currency 'Declare module-level variables Private Sub cmdCompute_Click() Dim intQuantity As Integer … Software Development vb.net visual-basic | |
So I'm working with time.h for this (copied from msdn): int main( void ) { struct tm newtime; char am_pm[] = "AM"; __time64_t long_time; char timebuf[26]; errno_t err; // Get time as 64-bit integer. _time64( &long_time ); // Convert to local time. err = _localtime64_s( &newtime, &long_time ); if (err) … Software Development c++ | |
Hello I have a VB.NET project (using Visual Studio 2015 Pro) currently found on my PC, and would like to make it shared across my LAN with others so that they can pull a copy on their own PC and work on it, and push their changes to the project, … Software Development asp.net vb.net visual-basic visual-studio | |
hi , I have two different versions of python on my ubuntu machine : 2.7 and 3.4 . my question is how to tell sys.executable to use python 3.4 ? this is what I get when I run the code : `>>> import sys >>> print sys.executable /usr/bin/python which is … | |
Hi. I am familiar with the following C graphics libraries: Cairo, SDL, SDL2, and OpenGL. The problem I have found with these is that they either require shared libraries (Cairo/SDL/SDL2) or are difficult to make cross-platform (OpenGL). I am wondering if there are any graphics libraries for C that do … | |
Hi there, I'm still fairly new to programming. Would someone be able to explain exactly how different windows should be used in MS Visual Studio? It seems that variable sharing between different windows is problematic. So does that mean that if you are trying to do multiple things on one … Software Development c c# c++ microsoft programming-construct visual-studio | |
Hi guys why am I getting the error identifier expected at the package statement ? Here is my code. package com.example.abstract; public abstract class Car{ private double price; private String color; private String year; private String model; abstract double accelerate(); abstract double horsePower(); public void setPrice(double price){ this.price = price; … Software Development java | |
so what I'm doing is building my own python IDE using PyQt. nothing can do what I need it to without a loss of something else, let alone properly. so I'm using a QPainter and getting the best results yet. however I'm having a problem trying to build indent guides … | |
I made a little app using access db in my computer, and also make an exe file of that. The db location is on c drive. Now i took only the exe file & and the db to another computer. I put the db in c drive there too. but … Software Development visual-basic | |
Hi guys , Assume the following is my program, is there a way to see how the memory is being allocated by the java program ? How do I use jconsole to find out where in main memory that Integer i = 10 is being saved? public class IntegerCmp{ public … Software Development java | |
Hi all I have a table with a Masked column. How can I INSERT or UPDATE data into the masked column at run Time with out Loading the column into a textbox. The column is as Folows ID Process 1 StartY CompleatY 2 Start_ Compleat_ Thanks in advance. Software Development vb.net | |
I load some data into a datagridview, I use a loop to do that. When I need to load new data I get rid of old data like so... foreach (DataGridViewRow row in dataGridView1.Rows) { dataGridView1.Rows.Remove(row); ; } Now I try to add new rows, because new data might different … Software Development vb.net | |
I have a class which is using IEnumerable and I now need to implement IDisposable class Class1 : IEnumerable<Class12> { ;stuff } How can I do that? My first thought was class Class1 : IEnumerable<Class12> : IDisposable { ;stuff } Which I obviously cannot do. (edit) Sorry, I believe it's … Software Development | |
Hi, I'm trying to create cascading comboboxes, and my code isn't working. I've looked at other threads and I don't know why it isn't working properly. The first combo box displays System Names and the second combobox should populate the all Locations of that specific system chosen. When I run … Software Development dataset vb.net visual-basic | |
Hi All, Good Day I need some clarification , When serializing the inner class alone(implements Serializable only for inner class) I am getting java.io.NotSerializableException: SerializeinnerClass. At the same time when I am serializing static inner class I am not getting that exception. can any one explain me. Thanks in advance … Software Development java | |
![]() | I am in the process of making a small game-engine for educational purposes, and I have come accross a very fustrating error. When debugging the program with the c++ gdb debugger an error occurs on the `glGenVertexArrays(0, &m_vertexArrayObject);` - line 21 in the implementation of the `addVertices` method, line in … Software Development c++ ![]() |
Write a program that displays the same string in four different colors,using a loop. Call the SetTextColor procedure.Any color may be chosen, but you may find it easiest to change the forground color. Include irvine32.inc .data Str BYTE “This is the string”, 0 Color BYTE red,yellow,blue,cyan .code Main PROC Mov … Software Development assembly | |
Hi there, well, i have homework of packet sniffing software i'm not suppose to write the code,but i need to make a report of an existing code and explain it in details. I found the following code somewhere(the code should be of a packet sniffer) ,but i couldn't run it.I … Software Development c++ | |
I have this string, it looks like this 1.2.3.4 sometext 9.8.7.6 othertext 5.6.7.8 moretext sometext has a space before new line and moretext has a tab at the end (and maybe a new line) I need to remove white space only at end of each line but excluding new line … Software Development regex | |
- - - - - - - - - * - - - - - - - - * * - - - - - - - * * * - - - - - - * * * * - - - - - * * * * * … Software Development java | |
Hi everyone. Ive finally figured out how to get my JOptionPane always on top no matter what but i cant figure out how to get the results of what button the user has clicked? and how to disable the x on the top left corner? This is what I have. … Software Development java | |
I am trying to work on a code for extra credit in my Programming class. The question asks for the user to input a text file, and display all the words in that file(including duplicates) in ascending order. After writing the code several different times over the course of four … Software Development display file-system java | |
Hi, I'm trying to compute a moving average of length 20. I've got a vector of structs that's read into my function and I'm using an iterator to read through as follows: int length = a; int count = 0; double sum = 0; while (itr!= priceinput.end()) { sum += … Software Development c++ microsoft-access | |
I have no idea how to create a Gui from another Gui using python. What I have so far is simply a basic Gui which you select one of the options from a dropdown menu and create another Gui. Here's what I have so far... import sys from tkinter import … | |
Hello, I was hoping to get some input from anyone in the Java section. My professor gave us a practice problem about two weeks ago and I have been running into an out of bounds error. The program seemed simple enough, take in two arrays of binary numbers from a … Software Development java | |
Hello, I have a question about ascending order sorting using the Comparabe interface: When I add the keys of my Hash Map to a TreeSet object and implement the compareTo as below, I get descending order of sorting of names: public int compareTo (Accounts a) { return a.name.compareTo(this.name); } // … Software Development java | |
where we set FileCaching in weblogic server off Software Development client-server java | |
/* Am not able to understand the operation happening in function showbits(), please help*/ #include <stdio.h> void showbits (unsigned char); int main() { unsigned char num=225,j,k; printf(\nDecimal %d is same as binary", num); showbits (num); for(j=0; j<=4; j++) { k=num<<j; printf (\n%d left shift %d gives", num, j); showbits(k); } … Software Development c | |
basically, I have some code defined to be executed in a restricted namespace: code = ''' def func(): print 'success' ''' NS = {} NS.update(__builtins__) exec code in NS try: f = NS['func'] print f # should print a function object f() except KeyError: print 'failure' as you can guess... … | |
Hello, I am having a problem with a C cursor screen that I am developing. The screen compiles without a problem, but when I try to run the screen, it does not come up, and no error message is shown on the screen. Also, there is no file created with … | |
#include <stdio.h> int main(){ int k=0; char q1[0],q2[0],q3[0],q4[0],q5[0],q6[0],q7[0],q8[0],q9[0],q10[0],q11[0]; char a[0]={"b"},b[0]={"a"},c[0]={"d"},d[0]={"c"},e[0]={"d"},f[0]={"c"},g[0]={"b"},h[0]={"d"},i[0]={"c"},j[0]={"a"}; printf(" MCQS TEST PAPER \n \n \n Total ten question each of 1 Marks \n \n \n1.What is your country name? \na)India \n b)Pakistan \nc)Srilanka \nd)America \nEnter your correct option : "); scanf("%s" , &q1); printf("\n \n2. What is your … Software Development c | |
I am attempting to use generics that will sort an ArrayList in ascending order as extra practice for my upcoming mid-term exam. I am given the main method body, and the method header for the sorting method, and am asked to write the method body for the sort method. However, … Software Development java | |
I am new to perl. In a string How do I replace a backward slash with a forward slash? when I call the following perl api $FindBin::Bin; I get the path as follows $myPath = c:/perl/test I would like to covert this to c:\perl\test I did try the following and … | |
Good Day, I wanted to ask that is it possible to develop a system which does image comparison or recognition, whereby you input or upload an image and then the system tries to match this image with the ones in the database until it finds an image which resemble the … Software Development image | |
if i want to read some integer what command i must use how to do i read and save value in multi dimensional array?? urgently needed:-| Software Development c# | |
I am a beginner programmer and have been learning about how to use Java since February 2015 of this year. However, I just started learning how to write code in the Python Language, a few weeks ago and find it to be much easier to work with. My goal here … | |
My Question was Write a program to collect and store all the cards to assist the users in finding all the cards in a given symbol. This cards game consist of N number of cards. Get N number of cards details from the user and store the values in Card … Software Development java | |
Hi there,i have joined newly to this site....I am a learner as off now.i am developing a [COLOR="Green"][B]windows application [/B][/COLOR]using c#.net.. I have two types of users [COLOR="Red"]Admin[/COLOR] and [COLOR="Red"]Normal [/COLOR]users. I am having one login screen.i want the application to identify the two types of users when they enter … | |
Hello, Thank you for your time! I have a Hashmap that has keys of of type Account (custom class) and the values are strings. The Account class has the following private variables: 1) name (String type) 2) account number (String type) 3) balance (type double). Following are the files: public … Software Development java | |
![]() | Hi guys, I'm really stuck on this. I am not completely familiar with getters and setters so I am having great trouble with this. Firstly, I am using a windows form application and I have initialised a list within the 'Form1' class. I want to be able to use that … Software Development microsoft-access |
cmd.CommandText = "UPDATE tbl_System SET S_Name='" & TextBox2.Text & "', S_Function='" & RichTextBox1.Text & "', S_Failure='" & RichTextBox2.Text & "' WHERE EquipTag='" & Tbl_SystemDataGridView.CurrentRow.Cells(0).Value & "' i think this is correct format for update query but i still get error for this Software Development sql vb.net visual-studio | |
public class adding { public static void main(string[] args); int a=1; int b=2; sum c=a+b; system.out.println c(sum c); } help cant find symbol - method string Software Development java | |
Hi all, i need help to build up a cellular automata program. So, there is 4 state of cells, 0 = space, 1 = ".", 2 = "+", 3 = "#" This state is continuous from 0 - 3, after 3, it will be back to 0. For example, an … | |
public class adding public class adding { public static void main(string[] args){ { int a=1; int b=2; sum c=a+b; system.out.println c;(sum c)-> } } help illegal start of expressions Software Development java | |
Hello, this is a very strange problem. I had first put this discussion in the Linux and Unix thread, since I believe it is actually a problem with how the data is entered via but the vi editor, but I closed those out and will put it in the C … | |
Ok so this is my base pig latin code and I need it to detect and change the capital letters into lower case as well as move the end punctuation to the end of the pig latinized word. For example if I type "Hello!" it gives me "ello!Hay" when I … Software Development |
The End.