132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sandz24

Hello everyone and good day!!! I'm trying to embedd an image watermark to another image for copyright protection and I plan to use DCT and embedding the watermark in the middle band coefficeint of the host image. The problem is I don't know which of the formulas to use since …

Software Development c++ image
Member Avatar for raptr_dflo
0
932
Member Avatar for mistersalty

Hello again, I'm still working on my game, and now I'm running into a situation where I am using 4 radiobuttons in a groupbox for the answers, as each question changes the text of the radiobutton changes and along with it the correct answer. I want to be able to …

Software Development vb.net
Member Avatar for mistersalty
0
880
Member Avatar for NyQii

Hey guys.... really need your help? I'm working in VB C# 2010.... I have a windows form application where i want the texts from multiple texboxes to be added to the dataGridView as one row... can someone please tell me where to start? Thanks

Software Development
Member Avatar for Behseini
0
258
Member Avatar for PatSharbaugh

Earlier today, a colleague of mine came to me with a question. He was writing Unit Tests for a serialization utility and needed to compare the generated xml with the hand written xml file which was the expected result. By eye inspection, the xml seemed to be the same, but …

Software Development xml
Member Avatar for PatSharbaugh
0
2K
Member Avatar for VeyRonX

Hi, This is the line: Class ourClass = new Class.forName("com.app.something"); And this is the the error: cannot find symbol class forName My IDE is Intellij Idea. This is a particular case, but i want to know what causes this type of error, what should i look for.

Software Development ide java
Member Avatar for JamesCherrill
0
652
Member Avatar for eoop.org

Hi, how do i make my webbrowser look like google chrome. With that i mean how do i make the tabs look like in google chrome? Waleed Ahmed

Software Development web-browser
Member Avatar for eoop.org
0
150
Member Avatar for mrmikemike

Hi all, can someone please help me with my code: Its suppose to input a text file of values then display them and give the max and its index, and inputed values are floats. But I can seem to get the max right. Thanks #include <stdio.h> int main() { FILE …

Software Development c c# c++
Member Avatar for mrmikemike
0
165
Member Avatar for ZidaneXero

Hello Everyone So I have 2 datagridviews that compare information between them and if it does match it colors the rows in green and after its done all the white spaces colors the rows in RED, so the main thing is that i dont know how to print only the …

Software Development vb.net
0
104
Member Avatar for george8

Hi all... I hope you have good time .... I have problem in the new program and I want to your help .. I want to back up the database type from Access, but my problem I could not generate code to determine the path of the database, I noticed …

Software Development microsoft-access vb.net visual-studio
Member Avatar for Sahil89
0
291
Member Avatar for Z33shan

hello :) i'm looking for some good Combination Optimization Algorithm, which is easy to code aswell... (combination optimization algorithms like "Hungarian Algorithm", etc.) thanks :)

Software Development c++ seo
Member Avatar for Z33shan
0
148
Member Avatar for Muhammad Anas

Here is a very simple segment of code. What I want is when I click on the button "First Button" then the window become empty. What actually happens is the window just becomes unresponsive. What could be the problem and what could be a solution?? import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import …

Software Development java java-swing
Member Avatar for Muhammad Anas
0
6K
Member Avatar for J.S.AlKatheeeri

Hi! I'm new, sorry if this is in the wrong place, mods please move this if necessary. Basically, I'm trying to give a breif definition of interfaces and abstract classes, please check if these are right: An interface defines what should be done not how it should be done. The …

Software Development java
Member Avatar for JamesCherrill
0
204
Member Avatar for bizak

Hello! I've been staring at my code for a while and I really have no idea where I'm going wrong. I'm working on deleting a specific node (for example, the integer 317)....but for some reason I just keep getting a nullpointer expression. I get the error when it goes into …

Software Development data-structure java seo
Member Avatar for JamesCherrill
0
304
Member Avatar for CEOEngineerSoft

Here is a class to SQL use an access database: Class MyDB Public DBName As String Private con As New OleDbConnection(ConStr) Sub New(ByVal DBN) DBName = DBN End Sub Private Function ConStr() ConStr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & DBName & ";" End Function Private Sub ConInit() If con.State <> ConnectionState.Open Then …

Software Development microsoft-access open-source sql vb.net
Member Avatar for Sahil89
0
202
Member Avatar for SAM2012

I have queue class as below public class queue { public: queue(); ~queue(); bool Empty() const; void Enqueue(message^); void Dequeue(); void DisplayAll() const; private: gcroot<String^> bindingkey; queue(queue const& obj); ListNode* head; ListNode* tail; }; queue::queue():head(nullptr), tail(nullptr) {} queue::~queue() { while (head != nullptr) { Dequeue(); } } //bool queue::Empty() const …

Software Development c++ queue
Member Avatar for emilo35
0
174
Member Avatar for ashboi

I'm getting some errors with my code, & cant seem to find where the problems are. Basically I'm making a student class that calls out the student id & name. I hope someone can point me in the righ direction to get this code working. Thank you student.cpp: #include <iostream> …

Software Development c++
Member Avatar for ashboi
0
162
Member Avatar for chinee

i have to create a graph for my project i found an example that was working and followed it first time with graph. i wrote my code got no errors but when i run the code this is what i am getting i don't understand it can some one help …

Software Development algorithm file-system java
Member Avatar for emilo35
0
218
Member Avatar for polarbear125

I'm working on playing nim, where the person who takes the last object wins. My program is currently working, but it terminates after I only take one bunch of stones (You can take up to 3 at a time), no matter what the pile size is. Is there a way …

Software Development java
Member Avatar for NormR1
0
368
Member Avatar for luvrahul30

if(strncmp(&line[j],"MEMBERED",8)==0)

Software Development c
Member Avatar for luvrahul30
0
118
Member Avatar for empror9

hello, i'm leaning about ActionListener but i can't compile my code, i don't know why :( this is the code package javaapplication7; import java.applet.Applet; import java.awt.Button; import java.awt.Color; import java.awt.Label; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class Test extends Applet implements ActionListener{ Button b1=new Button("Red"); Button b2=new Button("Green"); Button b3=new Button("Blue"); …

Software Development java
Member Avatar for empror9
0
92
Member Avatar for gedas

Hi Guys, i need to create an application that would add or remove user accounts on a mac, also provide the users with the relevent premmisions. This has to be created in order to bulk create users or remove them so the apple provided interface would not be efficiant. Any …

Software Development apple java user-interface
Member Avatar for JamesCherrill
0
96
Member Avatar for BryantFury

i have a code to read some products from a file.(.dat). it hasthe name, model number, price and its purpose. example. = knife 103 10 cut currently it can read the first 3. The question asks i make a derived class to read the purpose. Here is my code #include …

Software Development c++
Member Avatar for ravenous
0
567
Member Avatar for pilsdumps

Hi, I've a unit test for a protected method that contains a ref parameter. The method to test looks like this: [CODE] protected void Select(ref int? intReturnValue, ModelBase modelbase) { ...some code.... //add the return value SqlParameter paramReturn = new SqlParameter("@ReturnValue", 0); paramReturn.Direction = ParameterDirection.ReturnValue; sqlComm.Parameters.Add(paramReturn); //run the proc sqlConn.Open(); …

Software Development
Member Avatar for BWPro
0
2K
Member Avatar for VicGirl

** Hai friends, need your help i have done code for similarity alphabet for example if we write A it will recognize A vs B= A A vs C = A and so on.. as i shown in the picture below. But i dont know how to change the A …

Software Development file-stream
Member Avatar for VicGirl
0
167
Member Avatar for crownedzero

I have a private ArrayList in a class and I'd like to be able to access it outside of this class, what would be the proper way to do this? Right now I've just made the ArrayList public but I would like to allow it to be private. Should I …

Software Development java
Member Avatar for NormR1
0
271
Member Avatar for irtihussain

package array1; import javax.swing.*; import java.util.Random; class pickrand{ Random rand = new Random(); public static String get(String[] array){ int rnd = rand.nextInt(array.length); return array[rnd]; } } /*********************************************************************/ public class Array1 { public static void main(String[] args) { int size = 10; String[] passcheck = new String[size]; String[] pass = {"abc345", …

Software Development java java-swing
Member Avatar for irtihussain
0
1K
Member Avatar for MCLASS80

I want to output results from a postgresql table into a csv file. I can do this however its also copying over headers and a row count. Im using \o /path then my sql query; Is there a way to get rid of the headers so i just have the …

Software Development postgresql shell-scripting
Member Avatar for Watael
0
131
Member Avatar for razamughal67

Hello everyone we use a listview box and we add some path's of the files in list and now we want to show the file icon with in file path example: listview1.item.add " D:\test.txt" listview1.item.add " D:\picture.jpg" now we want to show these files icon in my listview please tell …

Software Development listview visual-basic
Member Avatar for Jx_Man
0
2K
Member Avatar for macdunk11

I need to make an Evil Hangman game for my Java class. Can anyone help please? I really need help figuring out how to put the words into "families". Also, if you see any problems with my code or any ways that I can make the code simpler, please let …

Software Development java
Member Avatar for macdunk11
0
490
Member Avatar for Valiantangel

how do u convert the below to a 'for' loop? int x = 123456; int y =0; while (x > 0) { y *= 10; y += x % 10; x /= 10;}

Software Development c++
Member Avatar for WaltP
0
112
Member Avatar for whtewa

The hash table stores phone numbers and names, uses the names as the keys. The problem I have is when I use the terminal window to enter the names and numbers. The strange problem that occurs then is that all the names get the same phone number. But when i …

Software Development algorithm c linked-list
Member Avatar for WaltP
0
214
Member Avatar for k2k

haven't been using linux for a while. remember I used to do search and replace all the time with :s/searchString/replaceString/g now I have "pattern not found: " even though pattern I was trying to search/replace was definitly there. any idea? did i forget anything?

Software Development shell-scripting
Member Avatar for shivemg
0
145
Member Avatar for Razrak

Greetings. I did not write the below code. I got it from [Click Here](http://itknowledgeexchange.techtarget.com/itanswers/python-script-to-download-wallpapers-from-interface-lift/) Thanks for any help. When I try to check the syntax it gives me an error on the very last line of code. The error "SyntaxError:invalid syntax (line 119, offset 26):a.getWallpaperList()[/pre] #!/usr/bin/env python import urllib2 import …

Software Development python
Member Avatar for TrustyTony
0
430
Member Avatar for nagatron

Hello to all java programmers, I have a problem about method and array. The program will display the second highest value of the inputed set of numbers in the main method. The problem is that it won't accept less than four inputs which mean it is necessary to put 4 …

Software Development java
Member Avatar for nagatron
0
252
Member Avatar for king03

Guys I have some questions please help me., 1. if I make a tetris game out of c# will it be difficult to do? 2. Is it possible to finish it in less than a week ? 3. Also what should I use as a game studio? OpenGL, XNA or …

Software Development c c# c++ opengl
Member Avatar for thines01
0
225
Member Avatar for BryantFury

Hi im trying to learn polymorphism and i stumbled upon a question. Polymorphism to me means 1 with many forms. here is my code: // virtual members #include <iostream> using namespace std; class CPolygon { protected: int width, height; public: void display(); virtual string area () { return ("FIRST"); } …

Software Development c++
Member Avatar for BryantFury
0
97
Member Avatar for minimee120

Problem 1: Phone book. A phone book file is organized so that each line is an entry for one person. Each line has the following format: first, a name (one word, no spaces), then zero or more phone numbers, each preceded by a space (no spaces within a phone number). …

Software Development python
Member Avatar for Lardmeister
0
238
Member Avatar for infogirl

Hello, guys. This is the fragment of my program. I can't initialize the dynamic two-dimensional array. The compiler says to me that 'y' cannot appear in a constant - expression. But I need that both x and y to be dynamic. How can I fix that? ` float a; int …

Software Development c++
Member Avatar for mrnutty
0
152
Member Avatar for Iamateur

How to get get complete column from database to combo box ?

Software Development vb.net
Member Avatar for Begginnerdev
0
131
Member Avatar for suneye

hello, I want to make a program that enables me to read data from my 4-CH usb 2.0 DVR. any one to help me do that? thanks in advance

Software Development
Member Avatar for skatamatic
0
394
Member Avatar for Animal Mother

How do I find the number of USB ports available, and what their references are. Example there are 6 USB ports on my motherboard what code would I use to find their reference like, port 1 is called 0 and port 2 is called 1. I want a user to …

Software Development pc-peripheral vb.net
Member Avatar for Begginnerdev
0
199
Member Avatar for Iamateur

I have created a Combo box with the 3 items. And one more Combo Box with the 9 items. When one item of 1st combo box selected,the 2nd combo box should show only 3 items out of 9 items. how to do this? I tried but not getting it.

Software Development vb.net
Member Avatar for Reverend Jim
0
148
Member Avatar for pawel1

Hi there one and all. I am attempting to learn to code in python with the intention of teaching it to a class of 12 year olds later in the year!!! So far I've been going ok if a little slowly, however this one is stumping me. I am trying …

Software Development python
Member Avatar for TrustyTony
0
262
Member Avatar for bhagawatshinde

Hi guys can we update data (Edit) in view table in sql server? If Yes How ,if No Why? Thanks in advance......

Software Development
Member Avatar for thines01
0
264
Member Avatar for sonicx2218

import java.util.*; import java.io.IOException; import java.util.Scanner; import java.util.Random; public class LinkedListProgram { public static void main(String[] args) throws IOException { int i,number, ran; Scanner sc = new Scanner(System.in); LinkedList<Integer> list = new LinkedList<Integer>(); ListIterator li; String line; Random random = new Random(); int pick = random.nextInt(150); System.out.println("Enter # of nodes"); …

Software Development java linked-list mathematics
Member Avatar for sonicx2218
0
3K
Member Avatar for crownedzero

I'm using a loop to get user input and compare it; Idk why but on the first iteration of the while it works fine and displays only once. Second run thru I get two prompts, hoping someone can point out where I'm screwing up. public static void main(String[] args) { …

Software Development java
Member Avatar for NormR1
0
207
Member Avatar for devninja

I need to make a program that runs two threads. One that outputs ping and sleeps for ten second and one that outputs pong and sleeps for ten seconds. Everything works except instead of sleeping for ten seconds everytime the thread is ran its just jumps to the second thread …

Software Development java
Member Avatar for NormR1
0
609
Member Avatar for weblover

Hi, i'm new to python and I'm having a problem that I'm not able to solve. I have the following 2D array: valuearray = [['A', '21', '45'], ['A', '12', '23'], ['A', '54', '21'], ['A', '15', '54'], ['B', '23', '53'], ['B', '34', '53'], ['B', '32', '54'], ['B', '24', '13'], ['C', '31', …

Software Development python
Member Avatar for Gribouillis
0
441
Member Avatar for Baduizm

I have this Singleton class: package com.CCharles.Singleton; import java.util.ArrayList; public enum Singleton{ INSTANCE; public void createList(){ ArrayList arrayList = new ArrayList(); for(int i=1;i<101;i++) { arrayList.add("Job "+i); } for(int i=1;i<101;i++) { System.out.println(arrayList.get(3)); } System.out.println("DONE"); } public void sayHello(){ System.out.println("Hello World"); } } and I am accessing Using: package com.CCharles.Singleton; import com.CCharles.Singleton.Singleton; …

Software Development java
Member Avatar for Baduizm
0
182
Member Avatar for anuj_sharma

Hi, I have an application that is running in the system tray. It displays a popup menu when the user right clicks on it. I need to set shortcut keys for displaying the popmenu and also for the menu items. Is this achievable? If yes, then please advice.

Software Development java
Member Avatar for anuj_sharma
0
149

The End.