43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for london-G

Hello. I have a tablw which holds quite a lot of information, I would like to print the table in landscape. try { boolean complete = Table_Stud.print(JTable.PrintMode.FIT_WIDTH,header,footer); if (complete) { JOptionPane.showMessageDialog(null, "printing...."); } else { JOptionPane.showMessageDialog(null, "Cancelled!"); } } catch (PrinterException pe) { /* Printing failed, report to the user …

Software Development java
Member Avatar for mKorbel
0
780
Member Avatar for indrajeet6

Hi all, I had originally installed MS SQL Server 2008 R2 in my C: when I was developing the application. While I had the SQL DErver in my C:, everything was fine, no problems at all. Then I began getting low disc space messages, so I uninstalled it from my …

Software Development sql vb.net
Member Avatar for indrajeet6
0
179
Member Avatar for LucianAdamson

I've been through post after post after post for the last few hours trying to figure this out... im new to the XML parsing stuff so I am starting to get frustrated. Here is a sample of the XMl im trying to parse: <level id="1"> <prop n="PROPERTY" v="VALUE"/> </level> <level …

Software Development vb.net xml
Member Avatar for LucianAdamson
0
295
Member Avatar for LucianAdamson

Hello all! Hopefully there is someone out there who can help me with what I need to achieve. Goal: Loop through XML file, reading node by node searching for a node with a specific attribute with a specific value, then write to another attribute of said node found. I feel …

Software Development vb.net xml
Member Avatar for LucianAdamson
0
358
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to make grid transition in visual studio using the language visual basic. Please help...

Member Avatar for joshl_1995
0
276
Member Avatar for dinhunzvi

i have a MySQL table with the following columns: employeeID, firstName, lastName, gender, salary. whenever i insert a new record for this table i want to be able to retrieve the employeeID of that record. how should i write the commands in VB.Net

Software Development mysql vb.net
Member Avatar for Icone
0
1K
Member Avatar for babbu

hie how can i restrict the user to enter only numbers in a textbox

Software Development vb.net
Member Avatar for Reverend Jim
0
3K
Member Avatar for revathi.sampath.90

i have two textbox..TimeInTextbox that contains time in for example(8:00 am) and TimeOutTextbox that contains time out for example(5:00 pm), i want to add TimeInTextbox and TimeOutTextbox to get the total working hours but how am i suppposed to do that?

Software Development vb.net
Member Avatar for Icone
0
124
Member Avatar for Secone

I have a template in a 1-file .h file, and I need it to be adjusted and modified to work properly with only a partial amount of the items in it used. The testArray.cpp file I include is how I test if it works properly. As it is now, it …

Software Development c++ ui-ux
Member Avatar for Secone
0
186
Member Avatar for alexandra.hoops.3

I have to write a program that asks the user how many pumpkin weights they have, and the reads that many pumpkin weights, printing each weight with two decimeal points and a comment and displays data about them to four decimal places. I need to find the average weight, maximum …

Software Development python
Member Avatar for ThePythonNoob
0
589
Member Avatar for ThePythonNoob

# Advanced game of Tic Tac Toe # Author: Bob # Version: TypeError #****************************** #import modules import random import mcommandline #****************************** class Human(object): def __init__(self): self.hposition = 0 self.hmove = ["X", self.hposition] self.question = "" def makemove(self): self.hmove[1] = input("1-9: ") def question(): question = input("Yes/No: ").lower() class Board(object,Human()): def …

Software Development python
Member Avatar for ThePythonNoob
0
283
Member Avatar for OsaidAz

ok, so I have two classes: Ticket and passenger passenger class has 3 data members, and one the the ticket data members is: `private Passenger psmgr;` what I want to do is to access passenger's data member using the psmgr variable how do I do that?

Software Development java
Member Avatar for OsaidAz
0
238
Member Avatar for IcyFire

Is there a way for me to manipulate the cells of a grid layout? For example lets say i have a grid that has 5 rows and 5 columns. Is it possible for me to manipulate the cell at row 1 column 2 using the layout, sort of like the …

Software Development java
Member Avatar for IcyFire
0
219
Member Avatar for overwraith

I am working on a "for loop that finds all the drives on a system that match a given criteria and am trying to accumulate the drive letters into a list(string) which I can then pipe to a command which will do something to those drives. I do not use …

Software Development shell-scripting
Member Avatar for overwraith
0
227
Member Avatar for rahul.ch

List<? extends Integer> list = new ArrayList<Integer>(); for (Integer element : list) { System.out.println(element); List<? super Integer> list = new ArrayList<Integer>(); for (Integer element : list) { System.out.println(element); For the first three lines as Case 1 using extends it compiles fine. But for Case 2 of next three lines, it …

Software Development java
Member Avatar for rahul.ch
0
2K
Member Avatar for apayn

Hey Guys I have some code problem with my classes. Can anyone tell me what has happened? class Location(object): def location(self, index, desc, lootvalue=0, loot_type=0): self.index = index self.desc = desc self.lootvalue = lootvalue self.loot_type = loot_type self.nuetralmobspawn = nuetral_mob_spawn self.passivemobspawn = passive_mob_spawn self.hostilemobspawn = hostile_mob_spawn def __repr__(self): text = …

Software Development python
Member Avatar for Lardmeister
0
167
Member Avatar for Matigo

Hello everyone I've been searching for help for a long time and still can't find somebody to solve it for me :(, The problem is im not good at explaining it , But here is the problem I'm creating an application in visual basic 2010, and i was aiming to …

Software Development vb.net visual-basic
Member Avatar for Reverend Jim
0
467
Member Avatar for daino

I'm using a MinGW compiler. Anyone know how to fix this error. I found something on the web where the flag should have a macro such as CXX_HAS_CSTDDEF but this is for a different compiler. What should I use for MingW is this is the problem? Is this common?? In …

Software Development c++
Member Avatar for daino
0
4K
Member Avatar for Monkey101

Hello everyone, I am confuse to what my professor is asking for Part 4 of our project. --> The fourth method for you to develop must manipulate the Colors within a given box. To compute how much manipulation to do on a Pixel from its LOCATION (x,y), the function defined …

Software Development java
Member Avatar for Taywin
0
110
Member Avatar for dspjm

There is a piece of code in Linux Device Driver 3rd edition: #undef PDEBUG /* undef it, just in case */ #ifdef SCULL_DEBUG # ifdef __KERNEL__ /* This one if debugging is on, and kernel space */ # define PDEBUG(fmt, args...) printk( KERN_DEBUG "scull: " fmt, ## args) # else …

Software Development c linux-kernel
Member Avatar for dspjm
0
124
Member Avatar for joshl_1995

Hello Community, I was making my own custom window and i need help with making it in wpf, i am new to wpf so i don't know much XAML so i was wondering if you can help?, this is what i wan't. In the example i'm using the minimize button. …

Software Development asp.net microsoft vb.net visual-basic
Member Avatar for joshl_1995
0
349
Member Avatar for sobias

Hi guys, I'm trying to solve a problem recusrively. I'm asked to multiply two numbers with only using Addition,Subtraction and Comparison. After looking around the internet, it seems that the Algorithm I should use is Egyptian Algorithm . [Click Here](http://en.wikipedia.org/wiki/Ancient_Egyptian_multiplication) I would like some tips on how to solve this. …

Software Development algorithm java
Member Avatar for sobias
0
1K
Member Avatar for Rzink92

string word = "abcde"; int count = 0; for(int i = 0; i < word.length(); i++){ for(int j = 1; j < word.length(); j++){ if(word.at(i) == word.at(j)){ count++; } } } i am trying to write a program that when i am given a string i can count letter pairs …

Software Development c++
Member Avatar for Rzink92
0
240
Member Avatar for shanenin

These would seem to be equivalent but according to the interperter they are not. I have been banging my head with this for along time >>> a = '123456789' >>> a[0:9] '123456789' >>> a[0:9:1] '123456789' >>> a[::1] '123456789' >>> a[::-1] '987654321' >>> a[0:9:-1] #why is this not equivilent to a[::-1] …

Software Development python
Member Avatar for snippsat
0
124
Member Avatar for kenomote

Any idea on how to Add dates based on the number inside the data tables? for example I set the limit of Days of books for borrwing it then i set the amount of fine that will generate if the the borrowed books is not returned IE: `DateNow * Value …

Software Development vb.net
Member Avatar for kenomote
0
457
Member Avatar for Monkey101

Hello everyone, I need help with my program. The program has to randomize the array indexs. I am having a huge issue with this: import java.util.Random; //to generate random #'s public class Array { public static void printIntArray(int[] myParamVar) { int LOCATION = 0; while(LOCATION < myParamVar.length) { System.out.print("In LOCATION …

Software Development java
Member Avatar for Nutster
0
90
Member Avatar for PhilEaton

Hello! I am having trouble getting the abspath when entering only an executable file. How can I fix this to return the full abspath? I am taking user input and opening a process (application). Here is my code: file = "/" + arr[2] + ".exe" print(file) path = os.path.abspath(file) print(path) …

Software Development file-system python windows-vista-7-8
Member Avatar for PhilEaton
0
418
Member Avatar for Riteman

I think this community member will help me to clear my problem. Am not a c++ professional just a beginner. Am on the way to create a software for a browsing center. Am almost struck with the problem of creating multiple text files. To be more clear, Say, a browsing …

Software Development c++
Member Avatar for angham kh
0
4K
Member Avatar for superjacent

Hope someone can clarify. I'm self-studying and my question relates to Programming Exercise # 2, Chapter 12, C++ Primer Plus Fifth Edition (pg. 629). I completed the exercise and achieved the desired result but my query came about when I compared my version to the solution. The exercise builds upon …

Software Development c++
Member Avatar for Museful
0
256
Member Avatar for muhammad.ibraheem

Imports System.Data Imports System.Data.SqlClient Partial Class test Inherits System.Web.UI.Page Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim txtName As String = TextName.Text Dim txtcomment As String = TextComment.Text Dim txtemail As String = TextEmail.Text Dim con As SqlConnection Dim cmd As SqlCommand con.ConnectionString = "SqlData Source=(LocalDB)\v11.0;AttachDbFilename=App_Data\library.mdf; Integrated …

Software Development open-source sql vb.net
Member Avatar for muhammad.ibraheem
0
277
Member Avatar for UNDER-18 FG

Hi, I was assigned by my teacher to create a simple calculation program about movie tickets that are sold in a local movie theater. So, I created the coding, and it turned out perfect. Here it is: import java.util.Scanner; public class MovieTheater { public static void main(String[] args) { String …

Software Development java
Member Avatar for UNDER-18 FG
0
321
Member Avatar for jongiambi

Hi. Im trying to write a simple deck of cards program. I am having difficulty in expressing my integer deck into a printable form. The deck is generated as this: 00102030405060708090100110120011121314151617181911011111210212223242526272829210211212203132333435363738393103113123 The leading numbers assign to suits and the following number assign to card rank. Basically how can I convert …

Software Development c++
Member Avatar for VernonDozier
0
8K
Member Avatar for daino

I'm trying ot build a podofo library and it gets up to 65% and the below error occures. The entire code snipped is below. Not sure what this means or the faintest idea on how to fix it. Basically I've generated a makefile with CMAKE and tried to bild the …

Software Development c++
Member Avatar for daino
0
1K
Member Avatar for daino

I'm trying to build a CPP library and have set the CPP Include path as below. I Am using Windows XP with MinGW compiler. VARIABLE NAME: CPLUS_INCLUDE_PATH VARIABLE VALUE: C:\CodeBlocks\MinGW\lib\gcc\mingw32\4.4.1\include\c++ I have restarted my PC several times but I still get an error message telling me that the file it …

Software Development c++ unix
Member Avatar for daino
0
599
Member Avatar for marco.denhartog.5

Hello, I want to generate xml from this input xml: <?xml version="1.0" encoding="UTF-8"?> <document tifToPDF="no" procesDocId=""> <file name="" rendition="application/pdf" major="-1"> E:\Data\Import\ContentServer\IIC01_P9505_D121017_T023126_D0000001.pdf </file> <meta> <categories> <category name="Beschrijving"> <properties> <property name="Ketenproces"> <value>Incasso</value> </property> <property name="Bedrijfsfunctie"> <value>Productie</value> </property> <property name="Bedrijfsproces"> <value>Productie_Incasseren</value> </property> <property name="Werkproces"> <value>FA_Incasso</value> </property> <property name="Vertrouwelijkheid"> <value>vertrouwelijk</value> </property> <property name="Documentrichting"> <value>uitgaand</value> …

Software Development pdf xml
Member Avatar for marco.denhartog.5
0
160
Member Avatar for somjit{}

i dont understand the reason why im geting the errors i am with this code... errors with arraylists, also a few other errors like symbol not found etc s.. i corrected the ones i could, but the ones (5 of them in total )im still geting, i dont understand them... …

Software Development java
Member Avatar for somjit{}
0
261
Member Avatar for sick vapor

Hello, I'm fairly new to python and I've currently run into a road block in this problem. I set up this code: def average(the_list): return the average of the list def deltalist(the_list,a): return a list which is each of the element of the_list subtracted by a def squarelist(lst): return a …

Software Development python
Member Avatar for sick vapor
0
2K
Member Avatar for Kirielson

In C++ it seems like every single time you open a file, the inner contents get deleted quickly. Is there a way to open the file at the end of the last character while keeping all contents within the file? I've been looking at something with the End of file …

Software Development c++ file-system
Member Avatar for ankit1990rana
0
8K
Member Avatar for kmachstang

Hello, I have the following pseudo code that I am trying to implement in Java. My issue is the pseudo code seems to be heavily C based and my C is very rusty. Could someone help me understand the following function? uint theFunction(BYTE* header) { UINT length; header = header …

Software Development c
Member Avatar for kmachstang
0
174
Member Avatar for kmachstang

Hello. I have the following function written in pseudo code. I think the pseudo code is more C than java and my C has about 10 years of rust on it. Can anyone help me decipher it? UINT function(BYTE* header) { UINT length; header = header + 1; length = …

Software Development java
Member Avatar for kmachstang
0
117
Member Avatar for kimbokasteniv

So this is my first attempt at a GUI in swing, and so far things seem to have been going somewhat smoothly. However I am un-able to update a JList named objectsL. I imagine this is because I have already added it to a panel? So, now Im am very …

Software Development gui java java-swing video
Member Avatar for JamesCherrill
0
7K
Member Avatar for UNDER-18 FG

Hi, I had to make a java coding that will determine if a number is a prime number or not. Here's the coding I did: import.java.util.Scanner; public class PrimeNumber { public static void main(String args[]) { int n; Scanner Prime = new Scanner(System.in); System.out.println(" Please enter a number: "); n …

Software Development java
Member Avatar for Lucaci Andrew
0
309
Member Avatar for samsons17

Hi there, I have the xml file (HSBB_voice_20120925_0000000182.cdr.bc_lerr.xml) that contains data between tags that i want to extract. The sample data from the xml file that i have etracted is like below : ----------------------------------------------------------------------------------- <record record_no = "62" error_code="100">D20|000000063|56604960 071411E2 BC9D24B6 FDB63DEA|6088342010|0166662635|DEFAULT|1348579536|1348579538|3|0|IDD|Flat Rate <record record_no = "63" error_code="100">D20|000000064|7A257C4E 071411E2 BC9D24B6 …

Software Development shell-scripting xml
Member Avatar for Watael
0
189
Member Avatar for gelaisg18

hi there i just have a problem with my program i used the keycodes of vb wherein every time i enter a letter from A-Z it will display each letter together with a special character " | ". Im done with this but my problem is, the letters were displaying …

Software Development visual-basic
Member Avatar for gelaisg18
0
132
Member Avatar for spuriousgeek

Hi Everyone, Background: I have recently implemented the A* pathfinding algorithm in C# based on some pseudo code that I found. I need the algorithm to run as fast as possible and at present my code isn't quite cutting it. I understand that the heuristics used can have a big …

Software Development algorithm c# data-structure
Member Avatar for spuriousgeek
0
1K
Member Avatar for ponnu

Is it possible to send mails without using MAPI controls6 reference files

Software Development visual-basic
Member Avatar for ponnu
0
156
Member Avatar for christinetom

Hi all Can anyone tell me how I add a linker directory for a specific library to my project in Codeblocks. It would be better if it was there all the time but I think I have to go to Project>Build Options> then I have to select the 'Search Directories' …

Software Development c++
Member Avatar for christinetom
0
2K
Member Avatar for Viped

Hi, I've been studying OPENGL and 3D programming. I've made kind of 3D engine with basic movement, no collision detection yet. Now theres something really wrong in my code. When I go near rendered QL_QUADS framerate drops to 11-12 and allover my framerate is too low. Any suggestions? Core.java package …

Software Development java opengl
Member Avatar for Viped
0
251
Member Avatar for ponnu

how will you generate a csv file after entering data through forms into access db.?

Software Development visual-basic
Member Avatar for ponnu
0
165
Member Avatar for jhedonghae

i want to add dates from two datetimepicker...for example the user chooses the date 1/1/2012 in the first picker and chooses 1/3/2012 in the second picker the answer should be 3 that will be shown in a textbox.. this is the codes that i tried: Dim dt1 As Date = …

Software Development vb.net
Member Avatar for jhedonghae
0
127

The End.