132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for FALL3N

hello all, I have a program, and in it, it eventually specifies 'aFolder' to be os.walk(path/to/folder) how do I obtain inifo such as the name or the path of the folder, is it then the temporary current working directory?

Software Development python
Member Avatar for snippsat
0
114
Member Avatar for sharma89bunty

sir i have a problem in the c program. [CODE]switch(ch) { case 1: t=a+b;break; case 2: t=a-b;break; case 3: t=a*b;break; case 4: t=a/b;break; default:printf("invalid no:"); }[/CODE] when i execute the program and the any choice the comipler skip to the default statement. is it any problem in the syntax. sir …

Software Development c
Member Avatar for venkata suresh
0
204
Member Avatar for nered

Well the title really says it all. I am using Netbeans IDE for most of my work when working whit JComponents archive but i know how to make a java frame and add things to it without using Netbeans. Anyways. I decided to write a small program for a community …

Software Development ide java java-netbeans
Member Avatar for JamesCherrill
0
107
Member Avatar for winkler

Hi Some background: I'm trying to create a Server/Client Sync scenario for my application using Sync Services for ADO.NET specifically the LocalCache custom tool which sets the whole thing up for me. My server DB has 5 Tables, all of which are being synchronized to the client application, which now …

Software Development client-server dataset sql vb.net
Member Avatar for winkler
0
158
Member Avatar for desert564

the following code is to print the nearest twin primes to a number.for eg if the input is 20...the output should be 17 and 19 logic to my code is that it checks for twin primes within the range of a given number and then adds the twin primes.....the twin …

Software Development java
Member Avatar for harinath_2007
0
1K
Member Avatar for M.Jama

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; using Business; Guys, I want to populate the DataGridview with a dataset I have created but I am having problem and I would be thankful if …

Software Development assembly c# dataset sql visual-studio
Member Avatar for M.Jama
0
214
Member Avatar for scrivomcdivo

Hey folks. Just a quick message to see if fellow coders have any recommendations for software you may use when planning programs / projects? I currently use MS OneNote but I'm just wondering what others use? Thanks

Software Development web-design
Member Avatar for CsharpChico
0
115
Member Avatar for CsharpChico

A Simple method to create a short url using google

Software Development google
0
174
Member Avatar for Vinod Supnekar

Hey hi , i want to read input frm user fm command prompt(Cmd)!!And aslo print it on Cmd. Now if i use [CODE] #include <stdio.h> main() { int c; while ((c=getchar()!=EOF)//get the sinle char putchar(c);//prnt it on cmd } [/CODE] But i dnt knw how to enter EOF as i …

Software Development c
Member Avatar for Ancient Dragon
0
446
Member Avatar for dotancohen

I just read in K&R that a function, even if not defined as void, need not return a value. To test I wrote a quick power function and I'm getting reproducible yet unexpected behaviour: [code]✈demios:cliC$ cat power.c #include <stdio.h> int power(int x, int y); int main() { printf("%d\n", power(2,5)); return …

Software Development c
Member Avatar for vegaseat
0
200
Member Avatar for StephNicolaou

Hi All, As shown below, I have already managed to disable all menu items from the QAT. However I would also like the menu option to be completely removed! [code] <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"> <commands> <command idMso="ApplicationOptionsDialog" enabled="false"/> <command idMso="FileExit" enabled="false"/> <command idMso="Help" enabled = "false"/> </commands> <ribbon startFromScratch="true"> <officeMenu> <button idMso="FileCompactAndRepairDatabase" …

Software Development microsoft-access microsoft-office xml
0
145
Member Avatar for jml101

Hello All, New to Python, I keep getting an indentation error after the if (yescheck == todcheck): line. Any suggestions? As far as my python knowledge goes, I've got it correctly aligned, but clearly not. Could some of you try running this, see if it goes? [code=python] import os yesfile …

Software Development python
Member Avatar for vegaseat
0
722
Member Avatar for FALL3N

Either nobody in the world from the myriad of forums and discussion boards I have been to knows how to do this, (which seems unlikely, as this does not seem a complicated procedure) or none of those people know how to answer a question concisely and in a straightforward way. …

Software Development java
Member Avatar for hfx642
0
371
Member Avatar for ssdeep

i am doing a project in which i simulate symmetric encryption in routers.so hav to store secret keys for mac encryption in a symmetric matrix.how do i do it?????????should i convert them to strings and then store strings in a matrix??????? URGENT HELP NEEDED!!!!!!!!!

Software Development encryption java
Member Avatar for NormR1
0
197
Member Avatar for phalaris_trip

I was trying to revise my linked list and implement it in C to check if there is a difference in performance... just as a sort of weird hobby.. In the absence of templates I'm trying to figure out how to pass a type as a parameter for this purpose. …

Software Development c linked-list
Member Avatar for MonsieurPointer
0
4K
Member Avatar for ddanbe

I find C# very well suited for doing math and all sorts of calculations, so here is an example. Just start a Console application and fill in the code. Have fun! The code also shows a use of delegates and some Console functions. If you don't know what the Newton-Raphson …

Software Development c# mathematics programming-construct
0
3K
Member Avatar for dre-logics

I use Visual Basic 2008 I use bound Datagridview I use mysql database If i run this code, everything on the screen ( in the datagridview) [COLOR="Green"]neatly Updated[/COLOR]. But when I look at records in the table [COLOR="Green"]"stock"[/COLOR] always the first row (0) of the DataGridView [COLOR="red"]not updated [/COLOR]in the …

Software Development vb.net visual-basic
Member Avatar for vishalrane
0
262
Member Avatar for y2kshane
Member Avatar for Fa3hed
0
157
Member Avatar for kapil.goyal

how i can check any text string in a doc file.the searchinh should be fast as i have to do other code if it found the string

Software Development vb.net
Member Avatar for vishalrane
0
482
Member Avatar for ankit.pandey3

Hi friends I have a chat program. Client.jar is uploaded to my website and Server.jar is executed on my system. Any visistor just have to click link and my Client.jar is downloaded in his system and chatting start properly. But problem arises when visitor don't have JRE installed in his …

Software Development client-server java
Member Avatar for Majestics
0
113
Member Avatar for Majestics

I want to provide report facility in my software.... I have seen jasper reports , crystal reports and many other.... In all of them i like crystal reports because they are easy to make.... can anybody tell me how to connect crystal reports with java app.... I dont have any …

Software Development java
0
73
Member Avatar for symeramon

Hi there all, First of all, I need to say that I'm so happy to join you... Second, I have a problem... First I created a form page with a constructor that fills the listbox in it... As you can imagine all stuff begins after filling it... However, a friend …

Software Development
Member Avatar for symeramon
0
203
Member Avatar for leo88

Hi, look into codes below: [CODE] Sub Main() Dim tmr As New Timers.Timer tmr.Interval = TimeSpan.FromMinutes(5).TotalMilliseconds tmr.Start() 'Do function End Sub [/CODE] As my program above, i set the time interval to every 5 minute which it will do the function. However, after 5 minites it does not affect any …

Software Development vb.net
Member Avatar for leo88
0
1K
Member Avatar for arunkumar267

#include<iostream> using namespace std; class polynomial { private: struct p { int degree; float coefficient; p *link; }*head; public: polynomial() { head=NULL; } void getdegree(); void getpolynomial(int d); void display(); void addition(polynomial p1,polynomial p2); }; void polynomial::getdegree() { int degree1; cout<<"\n Enter the highest degree of your polynomial:"; cin>>degree1; getpolynomial(degree1); …

Software Development c++ linked-list mathematics
Member Avatar for arunkumar267
0
283
Member Avatar for ztdep

[CODE] void findFacesInMesh() { multimap<indexPair, int> mapface; multimap<indexPair, int> ::iterator it, it2,it3; pair<multimap<indexPair, int> ::iterator,multimap<indexPair, int> ::iterator> rangeit; int ip1, ip2; for(int k=0; k!=cells.size(); k++) { for(int i=0; i< ( cells[k].getNbPoints() ); i++) { if(i== (cells[k].getNbPoints()-1) ){ ip1=cells[k].getListPointsIndex(i) ; ip2=cells[k].getListPointsIndex(0);} else {ip1=cells[k].getListPointsIndex(i); ip2=cells[k].getListPointsIndex(i+1); } mapface.insert( multimap<indexPair, int> ::value_type( indexPair(ip1,ip2), k) …

Software Development c++
Member Avatar for ztdep
0
129
Member Avatar for jaskiratj

hello everyone i try to explain my problem by this following example i have a gridview binded to a table with columns as(name,rollno,status, and last column of the gridview contains a checkbox) now the problem is i want when i check the checkbox of a particular row...then the status column …

Software Development asp.net
Member Avatar for shiva07
0
78
Member Avatar for Kirielson

Hello, I'm trying to run an object on Python with ROS. When I run the code with a variable inside the object: [CODE]class lk(old_image): ....then some code def main(args): rospy.init_node('lk', anonymous=True) old_image = lk(old_image) try: rospy.spin() except KeyboardInterrupt: print "Shutting down" #cv.DestroyAllWindows() [/CODE] [ICODE]Traceback (most recent call last): File "/home/aadejare/ros/omnisensor/nodes/lk.py", …

Software Development python
Member Avatar for griswolf
0
342
Member Avatar for syeda amna

hi I have create a table with 11 fields with field1 is primary key and auto incremented. In java i use prepared statement.The code is working well without auto increment that is i add this value from my program. when i change field1 auto incremented and use prepared statement for …

Software Development java
Member Avatar for ceyesuma
0
160
Member Avatar for Arjun_Sarankulu

I am installing the application on user end And when i run the exe Its gives the following exception [B].Net Framework Initialisation Error[/B] To run this application you must first install one of the folloeing version of the .net framework But i have install few application previously and it was …

Software Development
Member Avatar for Arjun_Sarankulu
0
82
Member Avatar for bhagawatshinde

Hi , I am new in core java. i have develop an application. in that i am used the combobox in combobox i am displaying roll no. of students from sqldatabase. now when i want to find rollno when keypress on combobox. ie. if i have enter 2 then display …

Software Development java
Member Avatar for bhagawatshinde
0
80
Member Avatar for 2blew2b

my program does allow it to build with no errors but when the answer is right or wrong, it doesn't actually draw the appropriate string. I coded it in a way that I feel like would make it work but after clicking on the check answer button, nothing happens. Any …

Software Development java java-swing
Member Avatar for pbl
0
152
Member Avatar for Jessurider

see this is the code that is written in c# in visual studio 2005........In visual studio w can connect sql(not mysql) with c# and can even see the sql table visually......... can we do that similarly in java in netbeans7.0..... how can i connect sql with java.......do i need to …

Member Avatar for pbl
0
281
Member Avatar for Tweekler

Hey, so I need to calculate and display the mode (most frequently occuring number) from a vector of ints. I already have the vector, and it can have any number of elements in it. So now i need to figure out a way to loop through my vector to figure …

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

I'm trying to understand how one might go about building a program with a spreadsheet widget and being able to save the data in that spreadsheet? (Just Conceptually). The basic aim here is to input data on a regular basis using a C++ GUI of some kind and having that …

Software Development c++ gui
Member Avatar for raptr_dflo
0
231
Member Avatar for sadsdw

Hello everyone, I have a std::map that includes individual ID and a struct that contains father and mother information, read from a file "ped.txt". This file has the format: ID - FATHER - MOTHER. Some fathers or mothers don't have IDs as individuals. The code bellow is an example to …

Software Development c++
Member Avatar for sadsdw
0
779
Member Avatar for allialli

hey. i would really appreciate some help on an assignment i've been struggling with. i am supposed to: Write a calculator program. Each time the program starts, reset the current value to zero. The user will then enter an arithmetic operator (either +, -, * or /) and then a …

Software Development c++
Member Avatar for Zulkaif dilawar
0
15K
Member Avatar for Xcelled194

I am replacing an AutoHotkey script with a VB.net application. Part of the script involves sending keystrokes to an active application. VB uses SendInput and does send the keystrokes, but the application doesn't "get" them, but when AutoHotkey sends the same key to the same application, it works. I have …

Software Development vb.net
Member Avatar for paulobuchsbaum
0
832
Member Avatar for vomhaus

I need to read a .txt file into a list and then pass one element of the list to a method and return to the main loop, run through the loop again and pass in the next element... Thanks [code] File file = new File("pathToFile.txt"); List<String> contents = FileUtils.readLines(file); do …

Software Development java
Member Avatar for NormR1
0
163
Member Avatar for Dante2002

Hello all, I have put together an inventory program and having problems getting it to compile and run. I am at my wits end, with it. I'm not sure what it is that I'm missing. Any help would be greatly appreciated. Thanks in advance. [CODE] #include <iostream> #include <string> #include …

Software Development c c# c++
Member Avatar for fibbo
0
214
Member Avatar for evaldaskowka

Hello i want to get my computer time using c++ i googled, but i couldnt find anything that suits me... Time code should be able to use this function: if(hours == 10) { do something... } Can you help me? Thank you.

Software Development c c# c++
Member Avatar for Ancient Dragon
0
220
Member Avatar for hszforu

I started learning python3 some 3-4 days ago.My ultimate aim to learn this language is to design web apps(eg apps to automate account creations for seo etc.) For this i guess i will have to use django or turbogears for this, but now i came to know that django or …

Software Development python python-django seo web-design
Member Avatar for hszforu
0
194
Member Avatar for learningcpp

Hi Guys, What is the scope of the exception variables when I catch them by reference. [CODE] try{ throw AnExceptionObect("Exception message"); } catch(AnExceptionObect &exp){ logger << exp.what(); //logger is a dummy object throw; //what will happend now? is it going to be throwen by value? and what if I catch …

Software Development c++
Member Avatar for learningcpp
0
202
Member Avatar for vedro-compota

hi athlets!)) please tell me - how it's possible to copy object in c#? (get it not by reference) does anybody know a good article to understand this process? on msdn I've found only [URL="http://msdn.microsoft.com/en-us/library/system.icloneable.clone.aspx"]this[/URL] , but it's not clear.. thanks in advance!

Software Development
Member Avatar for vedro-compota
0
239
Member Avatar for tgreer

Since it's been about three years since I had to write any XSLT, I'd like some assistance with the code below. [CODE]<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output method="text"/> <xsl:template match="/"> <xsl:for-each select="/WatchConfig/ProcessList/Process/Node"> <xsl:if test="Plugin = 'PWScript'"> <xsl:text> </xsl:text> <xsl:value-of select="Config" disable-output-escaping="yes" /> <xsl:text> ************************************************************************ </xsl:text> </xsl:if> </xsl:for-each> </xsl:template> </xsl:stylesheet>[/CODE] …

Software Development xml
0
177
Member Avatar for mitrious

Here's my problem. I'm trying to write info to a bin file, consider the following piece of code: [CODE]FILE *fp = fopen("banco\\banco.bin", "ab"); char buffer[22]; sprintf(buffer, "55555555 111111 11111"); fwrite(buffer, sizeof(char), 22, fp); fclose(fp);[/CODE] when I run this it writes to the file that line twice when I print it …

Software Development c
Member Avatar for mitrious
0
148
Member Avatar for TrustyTony

There was little buggy version of Python base conversion around, so here quick hack for my own program, including test with random numbers to verify it.

Software Development python
Member Avatar for TrustyTony
0
933
Member Avatar for xpartmgr

OK, so as C++ is new to me I am confused. Generally I would pass an object using the "ref" keyword and I'd have no issues retaining the information that was changed in my object when I got back to the main. Well C++ is different. I have a class …

Software Development c++
Member Avatar for mrnutty
0
128
Member Avatar for jmurph333

I am currently working on a game that takes place in the console. I need to know how to combine [CODE]Console.WriteLine()[/CODE] and [CODE]Console.ReadLine()[/CODE] into 1 line so that the blinking underscore appears on the same line. Is there any way to do this? Any help is appreciated.

Software Development c c# c++
Member Avatar for jmurph333
0
233
Member Avatar for johanngomes

Hi people, i am in trouble with python quotes, see this: [CODE]string = "qwerty"[/CODE] when i do a print string it returns: [CODE]'qwerty'[/CODE] how do i replace this singles quotes to double quotes when the value of the variable is returned? there is a way? thanks in advance! ;)

Software Development python
Member Avatar for Schol-R-LEA
0
688
Member Avatar for dawsonz

Hello I currently have a Datagridview which takes data from an XML file. I want to display the array of numbers. Here is the code for my GridView: <asp:GridView ID="rd" runat="Server" OnRowEditing="Editdata" OnPageIndexChanging="pageddata" OnRowDeleting="Deletedata" OnRowUpdating="Updatedata" OnRowCancelingEdit="Canceldata" AllowPaging="True" AutoGenerateColumns="False" PageSize="30" CellPadding="4" ForeColor="#333333" GridLines="None"> <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /> <RowStyle BackColor="#EFF3FB" /> …

Software Development dataset
Member Avatar for dawsonz
0
204

The End.