132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Tcll

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
Member Avatar for Tcll
0
308
Member Avatar for angela.hach.1

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
Member Avatar for Assembly Guy
0
195
Member Avatar for Max_3

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: " …

Software Development c++ ios
Member Avatar for Ancient Dragon
0
100
Member Avatar for Ceejayyy

Create a program that will input a number in kilowatt and display its equivalent masures in watts. PLEASE ANSWER. :)

Software Development c++
Member Avatar for Ancient Dragon
0
140
Member Avatar for james.lu.75491856

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
Member Avatar for james.lu.75491856
0
166
Member Avatar for Galbatorix

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
Member Avatar for Galbatorix
0
181
Member Avatar for giancan

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 ... …

Software Development dataset python
Member Avatar for Gribouillis
0
237
Member Avatar for kingarthur

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
Member Avatar for JamesCherrill
0
665
Member Avatar for crizied

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
Member Avatar for JamesCherrill
0
186
Member Avatar for Huang xiao

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
Member Avatar for Huang xiao
0
101
Member Avatar for kedxu

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
Member Avatar for JamesCherrill
0
318
Member Avatar for chase.lewis.3114

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++
Member Avatar for vijayan121
0
198
Member Avatar for somjit{}

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
Member Avatar for somjit{}
0
189
Member Avatar for james.lu.75491856

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.

Software Development html-css python
Member Avatar for chriswelborn
0
319
Member Avatar for khgcvjnhgvb

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 …

Software Development algorithm c++
Member Avatar for rubberman
0
437
Member Avatar for singh.software

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
Member Avatar for singh.software
0
338
Member Avatar for guente

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
Member Avatar for guente
0
981
Member Avatar for raashil.gilchrist

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
Member Avatar for raashil.gilchrist
0
676
Member Avatar for NajwaMY

while (rs.next()) { System.out.println("Name: "+rs.getString(1)+"\n"); System.out.println("Age: "+rs.getInt(2)+"\n"); System.out.println("Address: "+rs.getString(3)+"\n"); } I just don't understand what is the meaning og getString(1)

Software Development java sql
Member Avatar for 1stDAN
0
207
Member Avatar for pratik65

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")

Software Development html-css image vb.net
Member Avatar for abhi159
0
24K
Member Avatar for bombay1982

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
Member Avatar for 1stDAN
0
172
Member Avatar for josh2006k

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
Member Avatar for josh2006k
0
258
Member Avatar for Dili1234

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
Member Avatar for Dili1234
0
217
Member Avatar for dante adonai

how to do the forum in v.b.net..?

Software Development vb.net
Member Avatar for Reverend Jim
0
196
Member Avatar for bejfake

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
Member Avatar for [Prototype]
0
339
Member Avatar for jemartalaban_1

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
Member Avatar for Klahr_R
0
2K
Member Avatar for nerden

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 …

Member Avatar for nerden
0
2K
Member Avatar for Kenney_1

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
Member Avatar for jalpesh_007
0
199
Member Avatar for cool_zephyr

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.

Software Development java java-jsp
Member Avatar for ~s.o.s~
0
233
Member Avatar for kazekagerandy

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
Member Avatar for kazekagerandy
0
337
Member Avatar for fuhanspujisaputra

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
Member Avatar for fuhanspujisaputra
0
172
Member Avatar for fuhanspujisaputra

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
Member Avatar for fuhanspujisaputra
0
215
Member Avatar for ScienceNerd

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 …

Software Development c++ puzzle
Member Avatar for casey.cole.12576
0
2K
Member Avatar for ricardo.scheufele

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
Member Avatar for tinstaafl
0
865
Member Avatar for mleonard

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
Member Avatar for Reverend Jim
0
214
Member Avatar for movarth

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++
Member Avatar for Ancient Dragon
0
124
Member Avatar for Tobyjug2222

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 …

Member Avatar for Tobyjug2222
0
1K
Member Avatar for hemanshurpatel

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
Member Avatar for hemanshurpatel
0
678
Member Avatar for Divinedar

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
Member Avatar for Divinedar
0
178
Member Avatar for murali2489

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 …

Software Development java sql
Member Avatar for murali2489
0
392
Member Avatar for Neyney1975

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
Member Avatar for Neyney1975
0
2K
Member Avatar for ganges

is it possible to add and remove elements in ArrayList dynamically while run time from command prompt

Software Development java
Member Avatar for somjit{}
0
123
Member Avatar for ZER09

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
Member Avatar for ZER09
0
632
Member Avatar for Pheyishayor

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
Member Avatar for DM Galaxy
0
109
Member Avatar for techyworld

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 …

Software Development apache java
Member Avatar for techyworld
0
351
Member Avatar for de Source

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
Member Avatar for cmdc08
0
1K
Member Avatar for guente

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
Member Avatar for Reverend Jim
0
257
Member Avatar for GeekPlease

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
Member Avatar for Rahul47
0
260
Member Avatar for Jahliah

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
Member Avatar for Ketsuekiame
0
272
Member Avatar for carl3399

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
Member Avatar for DM Galaxy
0
180

The End.