43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for FALL3N

ok, I'm sure the answer to this is very simple.. there may even be some component in the os package to do this... I want to do what the code underneath seems like it would do.. I understand it does not, and when I try to run the code, I …

Software Development java python
Member Avatar for FALL3N
0
279
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 KushMishra

Hello, I don't know anything about C# and want to learn it. If anyone could please tell me the quickest way to learn C# in few days, I'll really appreciate. Thanks and Regards.

Software Development c#
Member Avatar for CsharpChico
1
163
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 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 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 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 TrustyTony

I thought to post some not quite so trivial as it looks quiz for Python, to test if your brain has Python installed OK ;) Try to figure out what interpreter answers (#? lines), then check with your Python interpreter of choice: [CODE]>>> a = list(range(10)) >>> a[1:1] #? >>> …

Software Development python
Member Avatar for TrustyTony
3
673
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 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 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 y2kshane

i want to detect if listview has been updated eg: there are listview1,listview2 and a button1 .u can send items to listview2 from listview1 .if the listview2 has an item button1 will enable if the listview2 is empty button1 will disable what is the suitable event for this?? (there is …

Software Development listview vb.net visual-basic
Member Avatar for Unhnd_Exception
-1
2K
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 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 bluehangook629

Hey guys, As you can see below I am trying to add row of data to a table called tblOut. When i execute the code, it works without a single error message but the problem is I dont see any new record when i preview my table data. Can anyone …

Software Development sql vb.net
Member Avatar for bluehangook629
0
183
Member Avatar for Netcode

Hello everyone! Please am developing a web application using vb.net with visual studio 2010 and .NET framework 4.0. its complete but i want it accessible over the network (LAN) so i have tried to host it on the local server (IIS) but i keep getting the following error message from …

Software Development vb.net visual-studio
Member Avatar for Netcode
0
106
Member Avatar for manish250

hello all i have been writing the java code and new to C programing.I am very confused in point.i have the following code [CODE]#include<stdio.h> main() { int *ptr=50; printf("%d",*ptr); return 0; } ~ ~ [/CODE] why it is giving the segmentation fault.and when i print ptr then it gives value …

Software Development c
Member Avatar for bajishareef
0
144
Member Avatar for marsangel

So I need to make a table where all the records in my ACCESS database will reflect. The table should be editable. the table should have the basic functionalities such as ADD, EDIT and DELETE. I also need to make a search where a user can type what he/she wants …

Software Development java
Member Avatar for mKorbel
0
289
Member Avatar for syeda amna

hi i am working on servlet using eclipse IDE .i have attached html form. I am unable to format drop down list. how to do it. how to align the drop down list.please help.

Software Development html-css ide java
Member Avatar for syeda amna
0
213
Member Avatar for deva.v

Hi, How to write into excel sheet using oledb connection or how to export dataset into excel sheet using oledb connection. Iam using console application in vb.net. If there are any alternate ways to write into the excel files from dataset.

Software Development dataset vb.net
Member Avatar for sandeepparekh9
0
3K
Member Avatar for somon

hi everyoen i've a matrix array with some value, i want to shaw each of them in matrix type in my form, how can i do it? can i use DataGrid view for this? and if yes ... what is method..

Software Development c++ matrix-multiplication
Member Avatar for Ancient Dragon
0
265
Member Avatar for CeeGee

This is my program, but it is giving me an error stating a Operator '*' cannot be applied to operands of type 'double[]' and 'double'. Can some one tell me how to fix this program. The Chart-A-While phone company provides service to six codes and charges the following per minute …

Software Development display
Member Avatar for ddanbe
0
706
Member Avatar for Jsplinter

How do I invoke the int operator < instead of the int* operator < ? [CODE] vector<int*> pVec; std::sort(pVec.begin(),pVec.end(), /*????*/); [/CODE]

Software Development c++
Member Avatar for Jsplinter
0
5K
Member Avatar for thecoolman5

hi, i have this code: [CODE]#include <iostream> #include <fstream> #include<cstdio> #include<cstdlib> using namespace std; int main (char argc) { for(;;) { fstream myfile; myfile.open("example.txt"); cout << "1: Write" << endl; cout << "2: Read" << endl; int n1; cin >> n1; if(n1 == 1) { string n2; getline(cin,n2); myfile << …

Software Development c++
Member Avatar for raptr_dflo
0
2K
Member Avatar for rickyfre

OK geniuses! I have to use python 2.4 and 2.5 here and my programs ideally work with both versions. This area of code was working in 2.4 and 2.5 versions until replacing my computer. Python did not get ported over so I reloaded with new downloads from the web. (both …

Software Development python
Member Avatar for rickyfre
0
399
Member Avatar for Vern247

The following code is for a standalone applet that calculates a shipping rate based on a selected shipping method. Normally, the program would read the total price of purchases from the website but for the sake of this exercise, the user will enter the price on the applet. [CODE=java]import java.awt.*; …

Software Development java
Member Avatar for Vern247
0
168
Member Avatar for vishalrane

I am getting this error when i try to connect to the server... Hot to rectify it... "This version of Microsoft SQL server Management Studio Express can only be used to connect to SQL Server 2000 and SQL Server 2005 servers. (Microsoft.SqlServer.Express.ConnectionDlg)

Software Development sql vb.net
Member Avatar for Netcode
0
114
Member Avatar for zachattack05

Still working to figure this stuff out :) My question is, is it possible to set a combination of columns with a unique constraint? For example: [CODE] ColumnA | ColumnB ----------------- Value1 | Value2 <- OK Value1 | Value1 <- OK Value2 | Value1 <- OK Value2 | Value2 <- …

Software Development sql
Member Avatar for zachattack05
0
105
Member Avatar for apanimesh061

I am trying to install SOL Server 2008 but, I have not yet been able to get Windows Powershell that is compatible with Windows Vista Ultimate ...... Please help !!

Software Development windows-vista
Member Avatar for sandeepparekh9
0
94
Member Avatar for bhagawatshinde

Hi all, I am generating a html report displaying the records. In that report their are 10 rows and 4 columns. In 4th column i am adding the button. Now i want to use button click event i.e onclick() . 1) how i call the javascript function/Javascript. 2) how can …

Software Development java javascript
Member Avatar for bhagawatshinde
0
618
Member Avatar for katharnakh

hi, why explicit cast is *not* required here? [icode]static Float f3 = new Float(5.5); //causes compile-time error b'se, by default floating-point literal type is double[/icode] but requires here, [icode]//static Short sh1 = new Short((short)12); static Short sh1 = new Short(12); //causes compile-time error b'se, by default integer literal type is …

Software Development java
Member Avatar for naveenreddygine
0
165
Member Avatar for somon

Hi everyone; I need some help Im want to write a WIndows service C# app which will check some urls and choose the one with the lowest ping (the one with high data transfer speed) stream data from that server, and alse check all other servers and write in log …

Software Development c# microsoft streaming-service
Member Avatar for jfarrugia
0
389
Member Avatar for vr2viv

Dear All, I am new to VB2010 and writing a MDI child form to open another form as dialogbox, then pass a value back to the MDI child form, the value is successfully passed back to the MDI child form but it can't be shown on a text box, my …

Software Development vb.net
Member Avatar for vishalrane
0
1K
Member Avatar for pardhu463

Hi to all... I am getting a warning, i am trying to avoid that but its not sorted out..Please suggest me to avoid that warning. my code is as follows.. [CODE] const char var[][2][5]={ {"1.95","3.70"}, {"2.40","4.60"}, {"2.70","5.70"}, {"6.60","13.40"}, . . . . }; void fun(int col,int row,char *str) { ... …

Software Development c
Member Avatar for pardhu463
0
268
Member Avatar for larrymtl

Hello guys, please could somebody help me...there is a problem with logic in my loop with pretty the same structure in methods: [B]public void isMember()[/B] and [B]public void deleteMember()[/B] Compilator ignores the scanner and directly goes to else statement and puts it in the loop 10 times... [CODE] import java.util.*; …

Software Development java
Member Avatar for larrymtl
0
245
Member Avatar for bluehangook629

Hey guys, I was wondering if there is a way to group controls together without using any containers such as panel, group box, or container. Thanks

Software Development vb.net
Member Avatar for Ezzaral
0
998
Member Avatar for babbu

Hi, I have a code that writes data to excel using setcontentype(application/vnd.ms-excel) Now I want one of the columns to be formatted to currency. I do not intend to use any additional jars(POI, etc). Is it possible to achieve the task. Thanks

Software Development java
Member Avatar for peter_budo
0
111
Member Avatar for leo1937ca

Attached is a visual representation of My Array that was used in my VB6 program the dimensions are: [CODE]Dim MyArray(5,30) Option Base 1[/CODE] I am using an ACCESS DataBase to populate the array. Using the For Next Loop I can access any position within the array such as a individual …

Software Development vb.net
Member Avatar for skatamatic
0
192
Member Avatar for campuzcrazyness

[code] #include <stdio.h> main() { int ctr, bin, quotient, deci=0, binary,octal,hexa; float rem; char mark_magic; clrscr(); do { clrscr(); quotient = 1; binary = 1; gotoxy(32,3); printf("-=< MAIN MENU >=-"); gotoxy(15,5); printf("from any Number System to Decimal System conversion"); gotoxy(5,6); printf("------------------------------------------------------------------------"); gotoxy(5,7); printf("------------------------------------------------------------------------"); gotoxy(26,9); printf("[A] Binary System"); gotoxy(26,11); printf("[B] Octal …

Software Development c
Member Avatar for campuzcrazyness
-1
553
Member Avatar for gingank

Could anyone tell me the different between this two? I try to learn the C++ and i'm a newbie on it? Any recommended books or website to learn C++? Thanks in advance...

Software Development c++
Member Avatar for yoni0505
0
193
Member Avatar for coroll

Hi!, I have a formProd and a dataGridView in it. I want to access the dataGridview of formProd from formMain. [CODE] foreach (Form form in Application.OpenForms) { formProd prd = (formProd)form; if (prd is formProd) prd.itemsGridView.DataSource = DS.Tables["product_Header"]; }[/CODE] this gives me InvalidCastException. can any one tell me how to …

Software Development
Member Avatar for coroll
0
149
Member Avatar for coroll

Hi, im new to c#.When i execute the following code i get "vshost.exe has stopped working" message. Firstly i insert some data to a table in sql server 2008.then i want to retrieve the MAX(Mem_ID). My insertion is working properly. But when im trying to retrive MAX(Mem_ID). It gives above …

Software Development
Member Avatar for coroll
0
2K
Member Avatar for debasishgang7

So guys here is my situation. There is text file.Which contains some strings.They are all comma separated. What i wanna do is just read the text file and print individually those strings which are comma separated. Suppose the text file contains: dog,cat,bird,good,bad,blah,blah,blah etc.... The python script should print dog cat …

Software Development python
Member Avatar for vegaseat
0
157
Member Avatar for ToniSoft

hi Dears, i am very very new in programming and i have a problem with inserting something into table, this is when i connect it with database iam able to read everything in database, private OleDbConnection myCon; public Form1() { InitializeComponent(); myCon = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Aidi\Desktop\AccessDBase\WindowsFormsApplication1\WindowsFormsApplication1\Students.mdb"); } i have create …

Software Development open-source
Member Avatar for ToniSoft
0
136
Member Avatar for hszforu

i am using python idle in windows7 to run my program. whenever i try to run the program i get an syntax error as unexpected indent. the code i am trying to run is as follows: [CODE]def print_lol(movies): for each in movies: if isinstance(each,list): print_lol(each) else: print(each)[/CODE]

Software Development python
Member Avatar for Gribouillis
0
928

The End.