132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Leo_5

How to rollback the transaction while spring controller has runtime exception... i found some snippet from google i.e, @Transactional(rollBackFor = Exception.class) I think this only applicable for service class has the exception. I need to rollback controller class has any exception. forexample @controller public class test1 { public void testing() …

Software Development java
Member Avatar for cool_zephyr
0
805
Member Avatar for PornimaKolte

How to calculate big O, omega and theta of any algorithm?

Software Development algorithm c
Member Avatar for necrovore
0
93
Member Avatar for batoolhussain

hi all .I am trying to detect the edge using canny edge detection algorithm, I convert the image to gray and remove the noise and passing the sobel filter. but when I arrive to apply Non-maximum suppression, I didn't know how do it. please help me. I use vb.net 2010.

Software Development algorithm vb.net
Member Avatar for batoolhussain
0
853
Member Avatar for akuma_reen

hi i'm having trouble in sorting the text file in inorder traversal can anyone help me out? code: #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> struct TreeNode; typedef struct TreeNode *node; typedef char ElementType; struct TreeNode{ char element; node left, right; } *root; node insert(ElementType x,node t){ …

Software Development c
Member Avatar for akuma_reen
0
118
Member Avatar for vivekH

Apply undo,redo operations on string pool. please friends help me to get its answer.

Software Development java
Member Avatar for janissantony
0
139
Member Avatar for cannon_1

Currently, I have a c++ program to call an external program, wait for it to finish, and return the string that was supposed to print on the screen by the external program; string result_now=exec("./CCLS_to_akmaxsat "+softer_filename); std::string exec(std::string command) { //cout << "\n\nEvaluating command: " << command << "\n\n" << endl; …

Software Development c++
Member Avatar for tinstaafl
0
336
Member Avatar for cambalinho

i did 1 code for give me the menu position. but i'm getting problems compare the LPSTR or LPCSTR with string :( int GetMenuPosition(HMENU menu, string caption) { int i=0; for(i=0; i<GetMenuItemCount(menu)-1;i++) { MENUITEMINFO s= {0}; s.cbSize=sizeof(MENUITEMINFO ); s.fMask=MIIM_STRING; s.cch=strlen(strCaption.c_str()); //s.dwTypeData=(LPSTR)strCaption.c_str(); GetMenuItemInfo (menu,i, true, &s); string b=static_cast<char*>(s.dwTypeData); if(b==caption) break; } …

Software Development c c# c++
Member Avatar for cambalinho
0
866
Member Avatar for polar2323

I'm pretty new to Java and I'm taking a class where I need to program an 8-Puzzle Problem in Java. I would love to be able to program it Java in Processing so that I could see the movment of the blocks. I'm generally a vidual learner.

Software Development java puzzle
Member Avatar for Taywin
0
199
Member Avatar for abdalimran

I've written the following program..but it doesn't work. Why? It shows an error: `cannot convert ‘std::string* {aka std::basic_string<char>*}’ to ‘std::string** {aka std::basic_string<char>**}’ for argument ‘1’ to ‘void print(std::string**)’|` #include <bits/stdc++.h> using namespace std; void print(string *ar[]) { for(int i=0; i<5; i++) { cout<<*ar[i]<<endl; } } int main() { string s[5]; …

Software Development c++
Member Avatar for NathanOliver
0
298
Member Avatar for MasterHacker110

I'm trying to create a very simple enigma machine cipher. But mine doesn't decrypt the data correcly. #include <iostream> #include <string> using namespace std; const char alphabet[27] = { "ABCDEFGHIJKLMNOPQRSTUVWXYZ" }; const char reflector[27] = { "WSXRFVYHNIKPQAZEDCTGBUJMOL" }; const char rotors[27] = { "QWERTYUIOPASDFGHJKLZXCVBNM" }; /* Get the position of …

Software Development c++ encryption
Member Avatar for tinstaafl
0
305
Member Avatar for redtribal23

I am trying to read a line of numbers in string datatype then parse them into double before reading the next line. I get a nullpointerexception. I am trying to read numbers 4 5 2 first, parse them to double, then do some other calculations before going to the second …

Software Development java
Member Avatar for Taywin
0
194
Member Avatar for MasterHacker110

I've been messign around with Python a little recently. Though I now want to import one of my .py files into my "main" file, but I get an `"module" object is not callable` error. How do I actually do this then. My files: KeyGenerator.py main.py Code I use to import: …

Software Development python
Member Avatar for MasterHacker110
0
343
Member Avatar for YorkshireSpud

Im personally learning how to program in python though I do know of other languages. Is Python the best to learn off?

Software Development python
Member Avatar for vegaseat
0
281
Member Avatar for cVz

Hi guys, Stupid Question.... How can i group specific rows in a cxGrid (Express Quantum Grid 6)... this event will occur onClick... any ideas ??? Delphi 7....

Software Development delphi pascal
Member Avatar for pritaeas
0
657
Member Avatar for rayhaneh

I'm new at C++ ..and I dont know what should I do whith my program ... this program's input for exg. is: 5 mary sara kimi lili olive : : and then sorting them .. but my problem is that when I submit my home work they score me "0" …

Software Development c++
Member Avatar for rayhaneh
0
227
Member Avatar for MrSchmutz

Hi.I'm 16 years old and i am studying c++ at highschool.The thing is i really think what we do at class is really...useless(and easy). I mean i don't think it will help me a lot if i want to create an application... What should i learn? Where from? What do …

Software Development c++
Member Avatar for Anton_4
0
255
Member Avatar for clife

Hi, The meaing of ^[0-9] is to exclude the characters specified in the [..], but what is the meaning of ^[0-9][0-9]*$. The expression is used to get the process information from /proc , it lists all the PIDs of all running processes with some appended text. but could not understand …

Software Development shell-scripting
Member Avatar for clife
0
663
Member Avatar for ajabbar92

I want start on driver development, but I am not getting any beginer tutorial or book, where I can some sample app. If any body have any good resource kindly share.. Thanks in advance.

Software Development c
Member Avatar for ajabbar92
0
56
Member Avatar for GoneGirl

Hi guys, After 10 days of googling and trying I finally must ask. This is not an assignment for school but its a practise one for the upcoming assignment in a few weeks. So i have the weights of 200 oranges in a csv file. With this csv file i …

Software Development file-system java java-swing user-interface
Member Avatar for GoneGirl
0
2K
Member Avatar for aluhnev

//Hi all,could someone explain the make_shared(), is it used to substitute constructor? //Here is an example void DoAddStaff(vector<Ptr>& container) { cout << "\nEnter type of employee to add ('W' for waged, 'S' for salaried): "; char c; cin >> c; cin.ignore(); if( c == 'w' || c == 'W' ) …

Software Development c++
Member Avatar for vijayan121
0
251
Member Avatar for MasterHacker110

I am working on a little project of mine. Nothing major, just messing around with encryption etc... I have problem thoug. My methods do not change the values of my data. Meaning that the pointer that I pass to hold my encrypted data, doesn't get the data assigned to its …

Software Development c encryption
Member Avatar for MasterHacker110
0
179
Member Avatar for Dragennd

Hello all, zoidmaster here. I have a question regarding work with a MS Access database. I have the code written out from a tutorial I found online for a basic database, however all it can do with the database is read, add and delete lines from it. I'm trying to …

Software Development microsoft-access sql vb.net
Member Avatar for Dragennd
0
475
Member Avatar for My_1

How do you via for loop to get the number? I know how the for work. for (int i = 0; i < 256; i++) { System.out.print (i) //That will print out 0 to 255 } how do you read by as byte while (read is not end) { // …

Software Development java
Member Avatar for JamesCherrill
0
77
Member Avatar for Lee21

[QUOTE]guys, i need help on passing multiple values in a parameter field in crystal report viewer, I already set it to allow multiple values. When the code below executed it only displays the last record and not all of the records that appeared. here's my code. hope you help me …

Software Development vb.net
Member Avatar for mankuji
0
1K
Member Avatar for N S K

hello friends i am trying to do an virus scanning file(antivirus)..i have spent more times but i cant please any one give me the sample source code i can modify it..i also tried CLAMAV but it is not used for me. thanks in advance...

Software Development java
Member Avatar for janissantony
0
115
Member Avatar for bonzo2008

I have commondialog that i can search for *.bmp,*.jpg files thats okej, now the problem is. saving the picture to the rot + filename next time I start the program I will change the picture to another file that shall be saved in rot + filename the first picture shall …

Software Development visual-basic
Member Avatar for BitBlt
0
194
Member Avatar for webwebcpp

The program, which you will write, will be a console application of C++ and will read the file.txt file while separating the hidden countries and cities when it starts to work. Sample file (This is only a sample file, your program must read much longer files) Uruguay# Montevideo The USA …

Software Development c++ operating-system
Member Avatar for Maritimo
0
167
Member Avatar for Deepesh_1

I know how to get min and max value in a vector through iterators as shown below, But how about getting a min and max value of a matrix table in vectors of vector: for example i have: `vector<vector<float> > vec;` the above vector has a matrix (my program reads …

Software Development c++
Member Avatar for Taywin
0
3K
Member Avatar for ajithoop

I'm doing a simple application of userregister from which I found on net but displays the error message HTTP status 404 not found by GlassFish server 4.1 in NetBeans using Oracle 10g

Software Development oracle
Member Avatar for vivekH
0
1K
Member Avatar for das122

> unable to process the application .cant store user data into the data base,shows only a blank page # servlet code # import java.sql.*; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @WebServlet(name = "register", urlPatterns = {"/register"}) public class Register extends HttpServlet { …

Software Development app-store oracle
Member Avatar for vivekH
0
154
Member Avatar for nataraja833

I've have a String String s = " ~ ( A || B ) && C "; A B C can take 0,1,x they follow Boolean Arithmetic w.r.t 'x' Boolean Arith is as follows 0 || x = x 1 || x = 1 x || x =1 x && …

Software Development java
Member Avatar for Taywin
0
350
Member Avatar for ddanbe

This piece of code is far from perfect, but it works! It produces a list of substrings (consisting of digits and letters) and their delimiters. If it is practicaly a sin to manipulate the index of a for loop, then I'm a sinner. If two delimiters follow each other, an …

Software Development regex
Member Avatar for xrjf
0
1K
Member Avatar for Natty_1

According to your variant write a program. That program reads a sequence of positive numbers from standard input. The sequence is terminated by number 0 and does not include that 0. For each number in sequence program should create a new thread. The thread gets some how the value of …

Software Development c++
0
78
Member Avatar for My_1

Hello, I have to subtacke index to number of file that reading in. and then find if there is having a space and counting how many space that have. But my code never excute the if statement. here is code for (int index = -128; index < 128 ; index …

Software Development java
Member Avatar for OldOne
0
123
Member Avatar for zahra123

hi i'm writting a program by lex and yacc. i want to add some invariants in some special of an input file. my expected output is the same input file while some invaraints are place through statements.how can i do it? i can transfor the input file to output in …

Software Development c
Member Avatar for zahra123
0
526
Member Avatar for Xiao_1

when i login it will come 2 form one is info and other one is register form when i login that time my info come out come a samll form say error complet the box it should not come out this..!! where go worng

Software Development visual-basic
Member Avatar for Xiao_1
0
121
Member Avatar for senait.kifle.127

Hello Guys, so I have this question today. let's say I defined a structure like this : struct List{ char *co; char *di; List* next; }; I wanted to define a function with a pointer to a list of elements of this structure as a parameter. In the body of …

Software Development c++
Member Avatar for NathanOliver
0
256
Member Avatar for altjen

Hi everyone. Im a bit new on visual basic programming language and I need your help connection visual basic with an ONLINE DATABASE. Im making a software for my school (is happening a small city competition about programming). I set everything up, just need to fix database online. anyone help …

Software Development vb.net visual-basic
Member Avatar for Santanu.Das
0
9K
Member Avatar for Trle94

Hello everyone, I'm currently trying to make my application start automatically on pc restart. Now could you help me out with this error: http://screencast.com/t/hmwYmvqg9jK Here is snippet: Dim regKey As Microsoft.Win32.RegistryKey regKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True) regKey.SetValue(Application.ProductName, Application.ExecutablePath) regKey.Close()

Software Development microsoft-windows vb.net
Member Avatar for Trle94
0
360
Member Avatar for Jeremybcent

I get the error "Syntax Error (missing operator) in query expression" sql = "SELECT Chores.ChoresID, Chores.ChoresDate, Materials.MaterialName, Advisers.AdviserInit, Advisers.AdviserSurname," _ & "Area.Area, Chores.StudentNo, Student.Forename" _ & "FROM Chores" _ & "INNER JOIN Materials on Chores.MaterialID = Materials.MaterialID" _ & "INNER JOIN Advisers on Chores.AdviserID = Advisers.AdviserID" _ & "INNER JOIN …

Software Development visual-basic
Member Avatar for Jeremybcent
0
199
Member Avatar for Maritimo

One of my students make me a question (which answer i know) but I think could be instructive to formulate the same question here so many people can learn about it. The question is: How to implement a copy assignment into a Derived class? Consider the following class A: class …

Software Development c++ oop
Member Avatar for pritaeas
0
399
Member Avatar for kruko

Hello Guys, i am new to python, for a assingment i need to create a game (binary puzzle). im having problems to start with creating the bord, i saw some examples of creating a bord game on this forum but it didnt worked out for me. i want to create …

Software Development puzzle python
Member Avatar for Gribouillis
0
537
Member Avatar for aliaune
Member Avatar for PcTechnical1

first class GUI - basically trying to use my stack calculation class to use in my first class GUI in my enter postfix expression actionPerformed area? What is the best step to add my stack calculation to evaluate an expression? import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; import java.util.LinkedList; …

Software Development gui java java-swing
Member Avatar for gusano79
0
201
Member Avatar for ujjwale

Guys, I want to build Operating System. My Operating System will look like mixture of all the other Operating System currently in use and will have new extensions for every single thing and will run all the things of other extensions! The problem is i don't even know programming. Guess …

Software Development operating-system
Member Avatar for mike_2000_17
0
152
Member Avatar for vegaseat

This snippet shows you how to animate a dice roll with the Tkinter GUI, useful for many games that require a dice to give a random number from 1 to 6. An interesting use of Tkinter's grid(), grid_forget() and after() functions.

Software Development gui python tkinter
Member Avatar for Jake_6
0
4K
Member Avatar for COKEDUDE

I was looking at these two examples and I was curious what the difference is between JCheckBox and JCheckBoxMenuItem. http://www.macs.hw.ac.uk/cs/java-swing-guidebook/?name=JMenuBar&page=3 https://docs.oracle.com/javase/tutorial/displayCode.html?code=https://docs.oracle.com/javase/tutorial/uiswing/examples/components/CheckBoxDemoProject/src/components/CheckBoxDemo.java These pictures make it look they are the same except JCheckBox is not in a menu but it is easy to add to a menu with the menu_name.add(menu_item) command. …

Software Development java java-swing oracle
Member Avatar for mKorbel
0
357
Member Avatar for Simon180

Am looking for a way to download a image from a URL using twebbrower and to save it to a folder, it would access url and then have section for file name and folder name and then it would save the file as a jpg to the folder on drive. …

Software Development image pascal
Member Avatar for Simon180
0
180
Member Avatar for ZER09

class Base { [Display(Order = 0)] public int FirstProp {get;set;} [Display(Order = 1)] publuc string SecondProp {get; set;} } class Derived : Base { [Display(Order = 2)] public string ThridProp {get;set;} } I was expecting that the properties will have an order like this | FirstProp | SecondProp | ThirdProp …

Software Development
Member Avatar for Ketsuekiame
0
235
Member Avatar for EarhawkPH

Hi! Newbie on Java. I'm doing this assignment for a cash register program. Our professor just explained what we're gonna do and stuff. Here's what i understood: 1.)Sales report (my code appears on the first diag box) Product ID Product Name Quantity Price 2 Stuff 100 3 Stuff 100 4 …

Software Development java java-swing
Member Avatar for stultuske
0
364

The End.