132,726 Archived Topics
Remove Filter ![]() | |
Just to note, this thread may never be marked solved until my main project evolves. anyways... To put it simply, this language is a common-interface language meant for conversion between all languages. This means that this language has to support all features between all languages in the most simplest of … Software Development python | |
Floyd-Warshall(G) n=|V[G]| for (int i=1;i<=numNodes;i++) if connection weightmatrix[i][j]=weight; else weightmatrix[i][j] = infinite; if i=j weightmatrix [i][j]=0; for (int k=1; k<=numNodes; k++) for (int i=1; i<=numnodes; i++) for (int j=1; j<=numnodes; j++) a=weightmatrix[i][k]+weightmatrix[k][j]; if(a<weightmatrix[i][j]){ weightmatrix[i][j]=a;} return weightmatrix, matrixintnode; Software Development assembly | |
Im trying to figure out how to read a file that is entered into the command line. I tried using #include <iostream> #include <fstream> #include <cstdlib> #include <string> int main(int argc, char *argv[]) { std::string a; int b, c, d; std::cout << "please enter the name of the file: " … | |
class stdout(object): def __init__(self,realout,prefix): self.file = realout self.at_start_of_line = True self.prefix=prefix def write(self, text): if len(text): if self.at_start_of_line: text = self.prefix + text self.file.write(text) self.at_start_of_line = (text[-1] == '\n') sys.stdout=stdout(sys.stdout,"OUT ["+f+"]> ") File "C:\Users\James\Desktop\run.py", line 13, in write self.file.write(text) File "C:\Users\James\Desktop\run.py", line 10, in write if self.at_start_of_line: AttributeError: 'stdout' object … Software Development python | |
I have a class which connects to the db(sql server). I have a login class which authenticates the user away from the frmLogin form. Each time i click login, i get an error Executereader requires an open connection. I tried reversing the order of some variables but to no success. … Software Development open-source | |
Dear friends, I have a set of values as follows (filename is string; values are floating; notimportant... is self-explaining): filenameA, value1_1, value2_1, value3, value4, notimportant filenameA, value1_2, value2_2, value3, value4, notimportant filenameA, value1_3, value2_3, value3, value4, notimportant filenameA, value1_5, value2_5, value3, value4, notimportant filenameA, value1_7, value2_7, value3, value4, notimportant ... … | |
Hi there, this is my first post, so pls be polite ;) since a few days i am programming java (for school). but i dont get it.. i tried to fill the 4x4 matrix with random generated numbers (1-16) and wrote a method, that they could only be used once. … Software Development java | |
Hi, I am making a program that has a JSplitPane and its background is transparent so I add two panels with a JScrollPane on the JSplitPane.. when I add the contents in the panel it doesn't appear. This is the code that I was using: import java.awt.BorderLayout; import java.awt.Color; import … Software Development java java-swing | |
Hi, I need some help, I am still newbie in this OOP,I already created the employee class in console app,but what i want is to use my employee class in windows forms,how can i use this employee class in windows forms application ?...I tried searching in google but i have … Software Development oop | |
This is for anyone who might find it helpful. This template... * uses double-buffering, which can help game-makers fix that glitchy screen problem * can be exported as a runnable jar file. If you're like me and had trouble making your Applet executable, this is a possible fix. * Additionally … Software Development java java-swing | |
I'm working an SSE / AVX library and have almost all the basics working, but now I'm trying to get the accuracy / speed a bit better on certain functions. Essentially I'm using a minimax polynomial that when using infinite precision should give me ~2E-9 error, plenty for floats for … Software Development c++ | |
writting this : N = args[1].split("\\s+").length; with commandline argument like : `echo "A B C D E F G H I" | java Subset 3` , will this consume similar memory as would have been the case if i parsed the `"A B C D E F G H I"` … Software Development java | |
def GenContent(address,what): return urllib.urlopen("http://www.yelp.com/search?find_desc="+what+"&#find_loc="+address).read() I am using python to do this. It works prefectly in my browser. | |
Hi Guys, I was wondering if someone could help me with this small program, i am kinda new to programming and well i have been given this assignment on collision detection for airplanes. i have done some coding implementing the algorithm and well i have specified the coordinates or points … | |
Hi there I need serious help with my software. Im making a system for an election. I need to make a login which reads and identifies text from the text file and if it is the correct user name and password then it opens another form. I have to make … Software Development vb.net | |
I have two forms "Sales" and "PurCh". The datagridview in the Sales form is being populated by a stored procedure that is carried out when the form loads and it works perfectly. But the datagridview from the "PurCh" form has refused to populate when the form loads. I initially thought … Software Development microsoft-access open-source vb.net | |
I'm creating a shooting game and I don't want to allow unlimited bullets to be shot on the screen, so how can I limit the amount of bullets fired. heres the code # Sample Python/Pygame Programs # Simpson College Computer Science # http://programarcadegames.com/ # http://simpson.edu/computer-science/ import pygame, sys, random from … Software Development python | |
im trying to put an image in the background of my form so that it cptures full screen n i donno how to dp that. my code is follows: Me.BackgroundImage = System.Drawing.Image.FromFile("school.jpg") | |
Why compiler gives me error when I call object MyObject ? public class ThisIsClass { public static void main(String[] args) { MyObject loan = new MyObject(); //error should be ThisIsClass loan = new ThisIsClass(); System.out.println(loan.toString()); } } It works fine when I change name of my class to MyObject or … Software Development java ![]() | |
I am trying to build a code that outputs user input a certain way. I need to take user input to store 10 statistics for 3 players over 2 games, and then have the code ask the user which player they would like to see. Instead of showing the stats … Software Development mathematics | |
When tried to update the data I got this error "incorrect syntax near '4' Unclosed quotation mark after the character string" Can someone fixed this error Public Sub Save() Dim indate As Date = DateTimePicker1.Value.Date If String.IsNullOrEmpty(TextBox1.Text) Or String.IsNullOrEmpty(TextBox2.Text) Then 'Show your message here MsgBox("Please fill all Data") Else 'Show … Software Development vb.net | |
Hi, I'm creating remote desktop application in qt 4.8. I have to implement some way to browse remote computer directory structure and possibility to download files on local machine. I'm wondering how can achieve this... Software Development c++ microsoft-access qt | |
hi, can vb6 detect if the unit is connected to a router or have a connection to the net or LAN ? example: if the user is disconnected to the LAN, a msgbox will appear that the unit is not connected, if connected nothing to worry about :) same as … Software Development visual-basic | |
In the new versions of server 2008+ MS have added an "Application and Services" folder to Event Viewer, I dont seem to be able to programaticaly access any logs in here, My Code: Dim strValue As String Dim objLogs() As EventLog Dim Logname As String = "Microsoft-Windows-Backup" Dim objEntry As … Software Development microsoft-access microsoft-windows vb.net | |
I'm a beginner to learn java, do you have any books to recommend for java learning? You can also give me some useful suggestions. I have learned C++ previously, will this be helpful to learn java? Here is my blog, <URL SNIPPED> , any comments are welcomed. Software Development java | |
I'm trying to deploy an app into tomcat..but after uploading the war file..it the tomcat manager always shows permgen error could anyone help me why is this error occuring..my tomcat server has around 128MB runtime memory and the war file is only around 25MB?? thank you. | |
hello! im working on a reservation system and im lacking in knowledge about how to use controls properly. the application aims to show reservations made in a month. to visualize everything, the application must look like this: http://www.planet-source-code.com/Upload_PSC/ScreenShots/PIC200661517432753.JPG all ive found from the internet are downloadable, customized components. my question … Software Development vb.net | |
Hai everyone, i want to minus the data from the database with the value that i give when i run the program, everything is works, but i keep stuck at the `newVal` i already did like this, but the `newVal` keep appear 0 (because i declared `decimal newVal = 0`, … Software Development | |
i have a problem here. Here is my case: I want to update the Quantity value from program based on the value given from program and minus it to the database. For example: i have 100 in Quantity in the database, once i run the program and update the Quantity … Software Development microsoft-access | |
I'm trying to solve a cryptarithmetic puzzle TOO + TOO + TOO + TOO = GOOD using a program. My solution to this, is to use a nested loop for each unique letter (in this case T, O, G, D). The loops would systematically assign the digits from 0-9 to … | |
Hi, I´m not posting any code - nothing extraordinary - because it is huge and I think a more general reply would be more helpfull for this kind of situation. I have an object binded to the "Text" property of a textbox and its default-constructor value is "9" . When … Software Development vb.net | |
I'm having trouble understanding how to update a PDF file in a FileTable using SqlFileStream and am hoping someone here can help. I think I just need an overview of how this is accomplished. In my forms application I'm retrieving the PDF with READ access and displaying it in a … Software Development file-stream pdf vb.net | |
I was just wondering what kind of behavior is expected when hooks are set, I can modify my code to test it (which isn't really necessary), but I was hoping it's normal for when hooks are set for input to be buffered for a few seconds and then display. If … Software Development c++ | |
Hi there, Recently I've started using a client called Tribot which allows me to automate playing a game. The Client has been crashing (for example I was running 8 clients simultaniously last night) and one by one, they crashed over time and produced there error logs in the start-up directory … Software Development api java java-jsp microsoft-office oop windows-api | |
Hi, I need to fetch mail body from the local stored mailbox file. I'm using fetchmail and procmail to download emails from IMAP server and filterout unwanted one. From the list of emails, I want to process one by one and get their body and store it. the format of … Software Development file-system shell-scripting | |
I have several worksheets that list the following data on each sheet but different project number: A B C D E F G Date Hours Project Description Task/Account Comments Employee Hours Total Aug-19 4.00 P09998 BID&PROPOSAL PRE-PREPOS P09998 Mexico iDirect; James 34.00 Aug-20 4.00 P09998 BID&PROPOSAL PRE-PREPOS P09998 Staff Meeting, … Software Development visual-basic | |
Hi All, I have a Jtable with six columns. I am displaying the contents of my database into my Jtable. Its working fine. But I am facing trouble updating the changes done in Jtable cells to appropriate database cell. In the below code when I tried to edit the First … | |
Hello Everyone, I'm extremely new to programming in Visual Basic and I have a programming exercise which I need help with. I have a textbox and a label on a form. The objective of the program is for the label to update with any text typed into the textbox as … Software Development vb.net visual-basic | |
function setDefaultValue(str){ var arrayValue = new Array(); var rowString = str.split(NextRowSepConst()); for (var i = 0; i < rowString.length - 1; i++) { var valueSplit = rowString[i].split(ValueSepConst()); for (var ii = 0; ii < valueSplit.length - 1; ii++) { var a = valueSplit[ii]; arrayValue[i][ii] = valueSplit[ii]; }; }; globalHasDefaultValue = … Software Development java | |
urgent please i have a form with 3 sub procedures,i need to call on each of the sub seperately when i click a button in another form Software Development visual-basic | |
hi am building a web application using maven,eclipse,tomcat. after resolving my dependency, am getting this error. anyone can help how to solve this? cvc-complex-type.2.4.a: Invalid content was found starting with element 'http:basicAuthSupplier'.One of '{"http://cxf.apache.org/transports/http/configuration":client, "http://cxf.apache.org/transports/http/configuration":authorization, "http://cxf.apache.org/transports/http/configuration":proxyAuthorization,"http://cxf.apache.org/transports/http/configuration":tlsClientParameters, "http://cxf.apache.org/transports/http/configuration":authSupplier, "http://cxf.apache.org/transports/http/configuration":trustDecider}' is expected. jaxws-web-context.xml here the code where am getting this error: <http:conduit … | |
hi, i am making a search button which searches a particular row from a database i've been all through this and able to get record in a text box or a message box [CODE]txtbox1.Text = dr1["First_Name"].ToString(); txtbox2.Text = dr1["Last_Name"].ToString(); txtbox3.Text = dr1["Job_Title"].ToString();[/CODE] but i am stuck how to get that … Software Development | |
Please im having a syntax error in my code. Please Help When i click on the add button it give me syntax error in query expression "order Id" blah bla Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click Dim cmd As New OleDb.OleDbCommand If con.State = … Software Development vb.net | |
Good day folks, I just wanna ask what event should I used to detect when a form is closed unexpectedly. I want to update the Log In status of a user in my database from 'Logged In' to 'Log Out' whenever a form closes the form unexpectedly or not. Example, … Software Development vb.net ![]() | |
Hi guys I want to convert the following string to datetime format but not sure how to go from here Any help is appreciated. Thanks! 2013063018 to 30/06/2013 18:00 string date = strFields[0]; //string format = "ddMMyyyHH"; DateTime dt = DateTime.ParseExact(date, "dd/mm/yyyy hh:ss", CultureInfo.InvariantCulture); Software Development | |
Hello, I would like to make a program which stores its settings in a file, which it then reads out back. I've already tried a code, but it crashed "No Premissions to Write" I tried on my Desktop, C:/ and on mine external HDD I tried this code:`My.Computer.FileSystem.WriteAllText("C:\TestFolder1\test.txt", "This is … Software Development vb.net |
The End.