132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for 2384443

well guys, i wanted to try somethng fun in java, so i made a simple form type navigation program.. i can compile this file, bt i cant run it..NOTE: i have no issues in my java software.. import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.util.regex.*; public class Nav2 extends JFrame …

Software Development java java-swing regex
Member Avatar for 2384443
0
247
Member Avatar for Suzie999

I've been working on a project using selenium 2 webdriver. Took me a while but finally got it working inside iframes of a web page. Thing is, I searched a lot and seen many examples but none that looked like what I ended up with, looks a bit weird and …

Software Development html-css
0
129
Member Avatar for mikeybware

I am trying to insert some values into a database and I have the following SQL: insertString = "INSERT INTO SocialHistory (ExamID, Occupation, SafetyYN, ComputerYN, ComputerHrs) Values('" & CurrentExamID.ToString & "', (SELECT Occupation, SafetyYN, ComputerYN, ComputerHrs FROM SocialHistory WHERE ExamID = '" & LastExamID & "'))" When I execute the …

Software Development sql vb.net
Member Avatar for mikeybware
0
231
Member Avatar for RAJboss

function generateHashLink($service_domain, $file_path, $url_signing_key ,$expiry_timestamp = NULL){ // + and / are some of represented chars of based64 encoding (8 bits) // + is 62 and / is 63 and these char should be replaced by other predefined chars $search_chars = array('+','/'); $replace_chars = array('-', '_'); if($file_path[0] != '/'){ $file_path …

Software Development java php
Member Avatar for peter_budo
0
301
Member Avatar for Doogledude123

My girlfriend, as confused as she is when I talk about programming, wants me to program her something. She's away on vacation to Australia right now. Of course, I told her I would program something for her in time for when she gets back. But the part that I'm stuck …

Software Development java
Member Avatar for kb.net
0
196
Member Avatar for elouch

Hi everyone. I got a situation here. Usually making a T-SQL(using sqlclient) on a server is very simple in vb.net if you have access to a sever. But I got this problem, where in a computer does not have access to that server but need to make a T-SQL on …

Member Avatar for kb.net
0
522
Member Avatar for kdejan87

0 down vote favorite I have a problem, what i want is when the user enters data in the textbox, it needs to compare the entered textbox value like ,,name, with value ,,name,, in dataset. If name exists, It should enter the value in textbox. If not, it should pop …

Software Development dataset vb.net
Member Avatar for kb.net
0
129
Member Avatar for kshahnazari

I have a c++ program that is writing in a txt file every second and I want to get that data that is being written by c#. so the c++ is only writing and the c# is reading. with my knowledge txt files can't be accessed from 2 diffrent programs …

Software Development
Member Avatar for Ketsuekiame
0
305
Member Avatar for Nima_1

Write a code snippet to declare and accept an integer and calculate the cube value of the integer. The integer should be passed by reference to a function cube(). The function would calculate the result of cubing the integer. The function prototype to be used is: void cube (int *p); …

Software Development c
Member Avatar for Daisy_1
0
248
Member Avatar for iConqueror

I know that with Array Lists you can hold different types. Can you acomplish the same thing with arrays for example an array containing both ints and strings?

Software Development
Member Avatar for ddanbe
0
111
Member Avatar for jess.lovejoy.7

A while back I got help on this issue I was having. This was the output that I was looking for: ![567fbeaa2b193e40e6440f3826e3592c](/attachments/small/4/567fbeaa2b193e40e6440f3826e3592c.png "align-left") **What it shows:** - Shows length of all chromosomes - Shows position of a qgrs on a chromosome [multiple qgrs on a chromosome] However, when I needed …

Software Development
Member Avatar for TrustyTony
0
225
Member Avatar for awahqn

Hi, I have a code in perl that does some mail things and I would like to translate it to perl can someone help me please? I dont know perl so i want it in python so i can edit it. here is the code: #!/usr/bin/perl -w # USAGE : …

Software Development email perl python
Member Avatar for TrustyTony
0
215
Member Avatar for Kev756

Type rounds_key 'Storage Container raundnyh keys key (255) As Byte End Type Global data_ () As Byte 'Declare global byte array Global key_ () As Byte 'Declare global byte array Global data_size_block As Long 'Declare global variable 4 bytes Global su_box () As Byte 'Declare global byte array Global …

Software Development algorithm encryption storage visual-basic
Member Avatar for Stuugie
0
245
Member Avatar for Djmann1013

I am trying to make a timer that refreshes every 5 seconds. Here is my code: using System; using System.Collections.Generic; using System.Windows.Forms; using System.Diagnostics; using System.Timers; namespace rpanel_server { public partial class MainForm : Form { public MainForm() { InitializeComponent(); Timer MyTimer = new Timer(); MyTimer.Interval = (4000); MyTimer.Tick += …

Software Development
Member Avatar for ddanbe
0
3K
Member Avatar for surfingturtle

Dear members please help me in understanding the control flow in the following code, thanks #include <iostream> class constructs #include <iostream> class constructs { char inp; public: void acceptCharacter() { cout<<"Enter a character: "; cin>>inp; if(inp>='A') //ASCII value of A = 65 if(intp<='Z') //ASCII value of Z = 90 cout<<endl<<"Uppercase"; …

Software Development c++
Member Avatar for surfingturtle
0
332
Member Avatar for rrajeswari03

How to generate PDF using flex with php.Currentely am using amfphp to do this.But it takes more time to generate.please guide me if anyone know the solution.

Software Development pdf
Member Avatar for rubberman
0
190
Member Avatar for Suzie999

Can abyone tell me what type of variable is a standard Form1? It's just a curiosity and not a real part of a project. here is the standard code visual studio starts with in my version 2010 when creating a new forms application with a couple of lines added/amended.. namespace …

Software Development visual-studio
Member Avatar for Suzie999
0
96
Member Avatar for xxwikkixx

I am trying to send some strings on my android device using bluetooth to my arduino so I am wondering if my logic is correct for my code. The part I am stuck on how to implement if all arguements are OK then it should send String temp = "t"; …

Software Development android android-development java
Member Avatar for Taywin
0
260
Member Avatar for midnite11

Does anyone know how to get the number of rows that are included in the total SelectedCells of a datagridview? This is where the user actually selects multiple cells in multiple rows - not actually selecting the rows themselves. I don't need to row indexes of the cells. What I …

Software Development vb.net
Member Avatar for midnite11
0
1K
Member Avatar for funnym3

Hi guys, I'm new here and I have a activity in my java class. my instructor want to sort all the given names after they added to the list. can you guys help me with it? thanks here's my code: import java.util.*; public class Test{ public static void main (String …

Software Development java
Member Avatar for funnym3
0
134
Member Avatar for Violet_82

Hi all, I started to look into event handlers, and there is something I would like to ask, sorry if this is a silly one. I can see that different Java components generate different events when the user interacts with them, but when it comes down to 1)which interface the …

Software Development api java oracle user-interface
Member Avatar for Violet_82
0
310
Member Avatar for anand01

Hi all, I have employee class which I have 100 variables with getters and setters. now I am passing employee object to processing method. Now I want to read all values in processing method. Should I want to use getter for all member? Is there any way to achieve this. …

Software Development java
Member Avatar for JamesCherrill
0
291
Member Avatar for iConqueror

I know that the main difference between an array and a list is that a list size changes dynamically as items are added or removed. Because of this, if we copy an array to a list does that mean that the list must have a static size of the array's …

Software Development c c# c++
Member Avatar for deceptikon
0
181
Member Avatar for reuben_1

Hi there, I would like to make a basic plugin with a /hello command that when types outputs "Hello, user!" or there minecraft user name I have done all the code, and I have a problem of which the server says: [16:02:10 ERROR]: Could not load 'plugins/GreetingsPlugin.jar' in folder 'plugins' …

Software Development java
Member Avatar for stultuske
0
94
Member Avatar for Praise92

hi, im trying to insert data using Checklist and it is only inserting one even if i selected all che checkboxes, please help.hr is my Code protected void Button1_Click(object sender, EventArgs e) { //C:\Documents and Settings\PraiseM\My Documents\Visual Studio 2008\Projects\MiniProjectAcc\MiniProjectAcc\Employee.accdb OleDbConnection conn = new OleDbConnection(); conn.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Documents and Settings\PraiseM\My …

Software Development open-source visual-studio
Member Avatar for Praise92
0
165
Member Avatar for Richa_2

interface Data { public void load(); } abstract class Info { public abstract void load(); } public class Employee extends Info implements Data { public void load (){ System.out.println ("loading"); /*do something*/ } } Why this code is correct ? Is it is not compulsory to deine the method declared …

Software Development java
Member Avatar for stultuske
0
334
Member Avatar for iConqueror

I have a console application with two classes: - **MyIntList** Which initilzes the array and handles the input and outputs. - **Program** This has the Main() method which handles the users input and sends them too the handlers in **MyIntList**. The problem I am having is that when the array …

Software Development
Member Avatar for iConqueror
0
175
Member Avatar for iConqueror

Both lists and arrays store data in one object(array or list). 1. In C# what is the difference between arrays and lists? 2. Can we store the same type in a list as an array? 3. Can an list store objects and references to other objects? 4. Where would we …

Software Development
Member Avatar for tinstaafl
0
199
Member Avatar for Suzie999

Following a tutorial [here](http://www.joecolantonio.com/2012/07/31/getting-started-using-selenium-2-0-webdriver-for-ie-in-visual-studio-c/). Code is as follows... using System; using System.Collections.Generic; using System.Linq; using System.Text; using OpenQA.Selenium; using OpenQA.Selenium.IE; using OpenQA.Selenium.Support.UI; namespace mySelenium { class Program { static void Main(string[] args) { IWebDriver driver = new InternetExplorerDriver(@"C:\Downloads\selenium"); driver.Navigate().GoToUrl("https://www.google.co.uk/"); } } } When I run the code all seems to …

Software Development visual-studio
Member Avatar for Suzie999
0
355
Member Avatar for dwel

I want to learn Java completely but how to start in basic to advance Helps needed

Software Development java
Member Avatar for Rajeev Kumar_1
0
472
Member Avatar for chdboy

This is the code void CreateGUI() { try { //myPicture = ImageIO.read(new File("Companylogo_FINAL.jpg")); myPicture = ImageIO.read(new File("Companylogo_FINAL.jpg")); //myPicture = ImageIO.read(getClass().getResource("Companylogo_FINAL.jpg")); /*java.net.URL u = getClass().getResource("/resources/Companylogo_FINAL.jpg"); System.out.println(u); myPicture = ImageIO.read(u);*/ /*try {*/ //myPicture = ImageIO.read(new File("Companylogo_FINAL.jpg")); /*} catch (IOException e) { }*/ ImageIcon img = new ImageIcon(myPicture); //frame.setIconImage(img.getImage()); } catch (IOException e1) …

Software Development java
Member Avatar for chdboy
0
485
Member Avatar for chdboy

Here is the error I'm getting Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: input == null! And here is the code try { //myPicture = ImageIO.read(new File("Companylogo_FINAL.jpg")); myPicture = ImageIO.read(getClass().getResource("/resources/Companylogo_FINAL.jpg")); ImageIcon img = new ImageIcon(myPicture); frame.setIconImage(img.getImage()); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } JLabel lbl = new …

Software Development java
Member Avatar for chdboy
0
2K
Member Avatar for johnson_2

1. I created three JLabels(one,two,three) and add a mouselistener to it. 2. For every even turns, the program will allow me to click any of the JLabels **once** and print out the JLabel I have clicked. My program is throwing me the following errors Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java …

Software Development java java-swing
Member Avatar for johnson_2
0
287
Member Avatar for moaz.amin.37

if a program throw 2 exceptions can we handled it by user defined exception.for example import java.util.*; class WrongException extends Exception{ public WrongException(String s){ super(s); } } public class UserDefinedException2{ public static void main(String s[]){ int a,b; a=b=0; Scanner ob=new Scanner(System.in); System.out.print("Enter your age = "); a=ob.nextInt(); try { if(a<=0) …

Software Development java
Member Avatar for JamesCherrill
0
256
Member Avatar for kxjakkk

I'm trying to modify this code: class Tree: def __init__(self, cargo, left=None, right=None): self.cargo = cargo self.left = left self.right = right def __str__(self): return str(self.cargo) def print_tree_inorder(tree): if tree is None: return print_tree_inorder(tree.left) print(tree.cargo, end=" ") print_tree_inorder(tree.right) So that it adds parentheses around every operator and pair of operands. …

Software Development data-structure python
Member Avatar for kxjakkk
0
475
Member Avatar for christinetom

Hi everybody. I hope nobody is working too hard. I am trying to figure out a way to use the peek() method of the stringstream class but looking more than one place forward. For example, if I use stringstream.peek() it will let me know the value one value ahead of …

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

Hi guys, I had a test the other day and missed a question out because it confused the hell out of me. I dont know if it was a badly written question or just me. Heres the program below: public static class Mailing { public static void SendTestEmail() { List<Person> …

Software Development email
Member Avatar for tinstaafl
0
284
Member Avatar for Thundermax

Hello guys, okay? I have a problem and I wonder if anyone can help me. Well, as the title of the topic says, the problem is about the C language, and more specifically on GUI. I made a C program it is working and everything is ok. But the problem …

Software Development c gui user-interface
Member Avatar for Hiroshe
0
228
Member Avatar for PM312

Is there a way to get all contacts id's from outlook 2013 or 2007 to datagridview or combobox.collection list. Thanks

Software Development vb.net
Member Avatar for PM312
0
3K
Member Avatar for reuben_1

Hi there, I would like to ask the Daniweb community what would be the best programming language to learn for me, before you answer can you please tell me the different programming languages there are, and there uses; such as c++ - game, html - web. Then I will come …

Software Development
Member Avatar for deceptikon
0
294
Member Avatar for myk45

Hello. Well, im a little confused as to what exactly the terms Data Abstraction and Data Encapsulation mean: This is what i read: [B]Data Abstraction[/B]:data abstraction is a process of representing the essential features without including implementation details. [B]Data Encapsulation:[/B]: Data encapsulation, also known as data hiding, is the mechanism …

Software Development c++
Member Avatar for naaz.kaushik.3
0
878
Member Avatar for Samarth_1

Hello, I am a bit new to vb.net. I was learning Database in vb.net . I have created a MS Access file. But when I Started my Visual Basic (vb.net 2008 Proffestional) and then I Clicked the Option Add New Data Type (In Data), nothing came. Can someone help me …

Software Development vb.net visual-basic
Member Avatar for ManojBalaji3001
0
121
Member Avatar for moaz.amin.37

Following exceptions are `Checked Exception` or `Unchecked Exception` ArrayStoreException IllegalArgumentException

Software Development java
Member Avatar for JamesCherrill
0
292
Member Avatar for Gus_19

I have a button on this tabpage which, when a user clicks, clears all of the fields. However, I have set one textbox to a read-only textbox which has a counter in it. How can I programmatically clear all of the other fields, minus this textbox. (There are other textboxes …

Software Development vb.net
Member Avatar for Gus_19
0
140
Member Avatar for Jessica_7

I'm doing a project where I want Data to be saved to a database ALWAYS. :) When Im in debug the data is saved and it is even saved while the program is running and saved after it closes. As soon as i open the program back up the data …

Software Development vb.net
Member Avatar for Reverend Jim
0
130
Member Avatar for uDevv

Hello there, is there anyone good with Regex? I have some old tool that is gathering proxies from hidemyass website, but its not working anymore. So if there is anyone who could help me out?

Software Development regex vb.net
Member Avatar for Reverend Jim
0
93
Member Avatar for Alxprog

Hi! Have anybody seen Scot Meyers' video on Universal references? In order for a reference to be "universal" two requirements should be fulfilled : 1)variable should have double ampersand after it's type : sometype&& 2) the type should be deduced . The second point is somewhat confusing to me: despite …

Software Development c c# c++
Member Avatar for mike_2000_17
0
328
Member Avatar for Daneos

Hello, I need for my game inventory function a mysql query which checks the next available free slot id. example: I have item on slot 1, 2, 3 and 5. Slot 4,6,7,8,9 ... are free.. Now I need query which would get the number 4. Something like SELECT * FROM …

Software Development c c# c++
Member Avatar for NathanOliver
0
351
Member Avatar for daniela.valkanova

> This compiles but does not show me any results? Why #include <iostream> #include <cmath> using namespace std; void dist(int x1, int x2, int y1, int y2) { double r1 , r2 , d ; r1 = sqrt((x1*x1) + (y1*y1)); r2 = sqrt((x2*x2) + (y2*y2)); d = sqrt((x2 - x1)*(x2 …

Software Development c++
Member Avatar for NathanOliver
0
1K
Member Avatar for caltech

Hi, I've had a rather ambitious project on my mind for as long as I've been at my job (almost a year) -- to pretty much rewrite their central application, which is a listing database/"portal", around and upon which their entire IT infrastructure and web and computing tasks and operations …

Software Development cms python python-django
Member Avatar for il_doc
0
306

The End.