43,549 Solved Topics

Remove Filter
Member Avatar for
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 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 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 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 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 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 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 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 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 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 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 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 vividiah

I created a Save button and I also have made the code for the Save button But why the error message like this: Run-time error '-2147217913(80040e07) convension failed when converting the varchar value '28/08/2013 10:11:01 to data type bit mohon bantuannya, thanks, V

Software Development visual-basic
Member Avatar for vividiah
0
789
Member Avatar for Jahliah

It's just a simple code but I don't know where I'm missing quotations or etc My error lies here: case "000\"; Any help is appreciated! Thanks! MatchCollection matches1 = Regex.Matches(strFields[3], @"\d{3}\\"); string range = matches1[0].Value; switch (range) { case "000\"; strAdType += "A"; break; case "001\": strAdType += "B"; break; …

Software Development regex
Member Avatar for Jahliah
0
179
Member Avatar for Hamza_4

I have a directory with hundreds of CSV files in it. Many of the files have synonyms for words that I no longer want. I want to replace all of the synonyms with approved words. For example some CSVs have synonyms like `vial` `jug` `canteen` `urn` etc and I want …

Software Development file-system python
Member Avatar for vegaseat
0
248
Member Avatar for Ahmed.C

Hi. I'm actually making this very basic password manager and it has 2 listboxes and when i click the Add button it adds the name on the 1st listbox and all the rest on the 2nd listbox. The problem is that when i make more items in the first listbox …

Software Development vb.net
Member Avatar for Ahmed.C
0
263
Member Avatar for martin.schmidt.9465

I made this program this morning, the problem is that when I go to run it it says: > Traceback (most recent call last): > File "C:/Python33/Test random number creator.py", line 4, in <module> > print (x)('x')(y) > TypeError: 'NoneType' object is not callable > ` Here is the program: …

Software Development python
Member Avatar for martin.schmidt.9465
0
20K
Member Avatar for dospy

the basic idea is that i have a config file where i need to take entries in different formats(the key is always a string and the value could be any type: int, float, string etc) from and the file has the following style: firstentry 1.5 secondentry 35 thirdentry somestring and …

Member Avatar for sepp2k
0
393
Member Avatar for KellzDD

I am trying to write a method that accepts the array of houses and a price, priceLimit. The method will return an array of houses for the houses whose price is less than or equal to priceLimit. I want to make a pass over the data to determine how big …

Software Development java
Member Avatar for KellzDD
0
276
Member Avatar for Reethu_1

Duplicate occurance of the same value has to be removed. If the (linked)list traversed from head contains sequence 3,2,8,8,8,5,2,3 after calling last = Node(3) head = Node(2, last) head = Node(5, head) head = Node(8, head) head = Node(8, head) head = Node(8, head) head = Node(2, head) head = …

Software Development linked-list python
Member Avatar for TrustyTony
0
811
Member Avatar for martin.schmidt.9465

I am very new to python and I just created a program: a = input('10x2= ') if a==20: print ('Correct!') if a!=20: print ('WRONG! Try again') a = input('10x2= ') if a==20: print ('Correct!') if a!=20: print ('WRONG! Try again') a = input('10x2= ') if a==20: print ('Correct!') if a!=20: …

Software Development python
Member Avatar for martin.schmidt.9465
0
163
Member Avatar for guente

I have a project I currently working on. It's a management system that has forms for Sales, purchases and deaths(poultry birds). I place a menu strip on the main form and every thing seems to be right. But when try to load the purchase form, it doesn't load. I said …

Software Development vb.net
Member Avatar for guente
0
2K
Member Avatar for lwin

Hello, I have one DateTimePicker and two textbox (txtHour and txtMinute) I want insert the value of datetimepicker (date) and textbox (hour and minute from two different textbox) to DateTime data type on my table, example: 2013-08-28 12:30:00 PM --> the value of 12 got from txtHour, the value of …

Software Development vb.net
Member Avatar for Hazuan Nazri
0
2K
Member Avatar for nitish.mohiputlall

Write a program that converts numbers to words. For example, 895 results in "eight nine five." here are my codes: #include<stdio.h> #include<stdlib.h> int main() { printf(">>This program converts numbers to words :)\n"); int value; printf("Enter value: "); scanf("%d",&value); switch(value){ case 0: { printf("zero"); break;} case 1: { printf("one"); break;} case …

Software Development c c# c++
Member Avatar for Rahul47
0
216
Member Avatar for razree

Hi all, I'm struggling with a simple little program which I would use for a test to (for example) sell footbal tickets. So I have a for on which user selects a game from combobox (combobox populates from text file) and number of tickets in a numericupdown field. On "Save" …

Software Development data-structure vb.net
Member Avatar for razree
0
181
Member Avatar for MasterHacker110

I am writing a very simple boot and kernel in asm and c++. The thing is my development system is windows and I cannot use cpu interupts on windows, or can I? I dont think that my newly created kernel will be able to understand invoke ConsoleA or an of …

Software Development api assembly windows-api
Member Avatar for Schol-R-LEA
0
204
Member Avatar for Dili1234

Dim startdate1 As String = DateTimePicker1.Value.Date Dim enddate As String = DateTimePicker2.Value.Date myConnection = New SqlConnection(connectionstring) myConnection.Open() Dim insert As SqlCommand = New SqlCommand(" INSERT INTO Client_Details (Contract_Name ,Client_Name ,VAT_No ,Cilent_Address,Start_Date,End_Date ,Contract_Value,Telephone_No) VALUES('" & TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox4.Text & "','" & TextBox5.Text & "','" & …

Software Development vb.net
Member Avatar for khair.ullah
0
159
Member Avatar for srikanth2321

Hi, I have a problem of modifying Jtree font. No matter what I do or make changes in code I'm unable to change the default font. I got the TreeCellRenderer code from some website. Any suggesion on font change would be really helpful class MyCellRenderer extends JEditorPane implements TreeCellRenderer { …

Software Development java java-swing
Member Avatar for mKorbel
0
872
Member Avatar for lionaneesh

[B][I][U]Introduction [/U][/I][/B] [COLOR="Red"]Hey everybody welcome to a tutorials on classes in PYTHON. The purpose I made this tutorial for is that when I was learning classes in python I dint found any good tutorials on Classes. Maybe I was wrong. But here's my tutorial.[/COLOR] [B][I][U]Layout[/U][/I][/B] In this tutorial i'll be …

Software Development oop python
Member Avatar for mail2sanjay
1
879
Member Avatar for Fatima_110

I'm just a beginner please help! BlueJ accepts my code - there are no compilation errors. But when i want to run the program it doesnt do what i wanted it to. It allows the user to answer the questions about the product and price but the skips to the …

Software Development java java-swing
Member Avatar for Fatima_110
0
118
Member Avatar for winky

[LIST=1] [/LIST]Hello again :), I am writing a code that will recursively write a string in reverse. The problem is in my recursiveReverse function. I feel like the idea is right, but the implementation is incorrect. My thought process was that I could start the loops at the beginning and …

Software Development c++
Member Avatar for Joshua_3
0
1K
Member Avatar for sujan.dasmahapa

I am trying to enter user name and password from command line. user name is 'example@gmail.com' and password is 'Example$319'.....When I am printing this values I can see the password is wrong. I am typing Example$319 but it is printing 'Example19'. $ and 3 are discarded.....Please help me what is …

Software Development python
Member Avatar for almostbob
0
4K
Member Avatar for Kingcoder210

Hi! I am using crystal report to make my report. But problem is that I cant use same SQL Command there in report parameter because its different. I am going to show you my code so that you can understand it. I have a report & a form where I …

Software Development vb.net
Member Avatar for sandybriones
0
2K
Member Avatar for MasterHacker110

I am trying to read user input from console using Scanner but it only reads my first input, and then on my second input it closes my program. Here is my code: import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.security.KeyPair; import java.security.KeyPairGenerator; …

Software Development algorithm java
Member Avatar for IIM
0
604
Member Avatar for kal_crazy

Is anyone familiar with the CPUSIM 3.6.9 Wombat Machine 1.1 ? I need help on how to make a loop with machine language.

Software Development assembly
Member Avatar for kal_crazy
0
181
Member Avatar for Gerryne

Hi. Our homework is to use try...catch block in our calculator applet. I don't understand why the "catch" does not work. It will always go straight to the "finally". Here's the code: import java.applet.*; import java.awt.*; import java.awt.event.*; import java.awt.Label; import javax.swing.*; public class clsCalculator extends Applet implements ActionListener { …

Software Development java java-swing programming-construct
Member Avatar for stultuske
0
435
Member Avatar for 3e0jUn

Is there any way I can execute a block of code in a loop, like so: [ some code goes here ] Where the delimiters are "[" and "]", and also allowing for nested blocks, i.e.: [the user can create another loop[]] I am creating a parser for a language …

Software Development python
Member Avatar for 3e0jUn
0
141
Member Avatar for azurekite

PROBLEM DESCRIPTION A battalion is a military unit with 300 to 1200 soldiers usually consisting of seven companies commanded either by a lieutenant colonel or a colonel. A particular training that a battalion undergoes is the training to maximize the battalion's "carrying capacity" whenever they are to carry cargoes from …

Software Development c++
Member Avatar for azurekite
0
135
Member Avatar for timmyjoshua

**Pls, somebody help me on writting a code to create word file from my c# form...**

Software Development c# microsoft
Member Avatar for saguni
-2
364
Member Avatar for andrew.mendonca.967

Write a program to read the coefficients of a series of quadratic equations from a text file and print the associated roots, or appropriate errors if there are no real roots, to another text file. The coefficients of a quadratic are the a, b and c of an expression of …

Software Development c++ file-stream
0
112
Member Avatar for vinodvinu

Hi there, I like programing very much. Fortunately or unfortunately my sujects in collage was arts, because i hate maths. Visual basic is my favourite language. I have learned it partially. But it didn't support my native language. I need some menu button text in my native language, but it …

Software Development gui tkinter visual-basic
Member Avatar for vinodvinu
0
197
Member Avatar for james.lu.75491856

def mu_cache(func,maxsize=128): "Most Used Cache decorator" cname = "__"+func.__name__+"_Cache" rname = "__"+func.__name__+"_Rankings" exec("global "+cname) exec(cname+" = {}") #here exec("global "+rname) exec(rname+" = {}") def wrap(*args,**kwargs): cache = eval(cname) rankings = eval(rname) try: res = cache[(args,kwargs)] except: res = func(*args,**kwargs) cache[(args,kwargs)] = res else: try: res = rname[(args,kwargs)] except: res=0 rname[(args,kwargs)] …

Software Development caching python
Member Avatar for sepp2k
0
349
Member Avatar for aarviii

hi i want to show my 2nd form then close the 1st form. here's that simple codes and i can't do it right. please help Private Sub btlogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btlogin.Click form2.show() me.close() End Sub

Software Development vb.net
Member Avatar for aarviii
0
139
Member Avatar for PratikM

Hi there, so I have a project idea for Java but I have no idea how to start it and was hoping that some of you could point me in the right direction. So I got this idea based on a need that my mom had in her business. I …

Software Development java
Member Avatar for somjit{}
0
183
Member Avatar for Jake_1

Hi, I was wondering how I could create a MUD (Multi-User-Dungeon) game using Python. It would be a dream come true if I could make one on my own so I was wondering if there is any reading material (pdf) that could teach me. What functions and commands would I …

Software Development pdf python
Member Avatar for james.lu.75491856
0
462

The End.