64,152 Solved 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?

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 …

Member Avatar for venkata suresh
0
204
Member Avatar for dhruv_arora

Hey, I started learning PHP programming. I wrote this script to update a user's password from the mySQL database, but it's isn't doing so The script is :- [CODE]<?php include("header.html"); include("nav.html"); include("sidebars.html"); ?> <div id="content"> <?php $errors=array(); if(empty($_POST['uname'])) { $errors[]="You forgot to enter your username"; } else { $uname=$_POST['uname']; } …

Member Avatar for dhruv_arora
0
138
Member Avatar for lsvife

I am new to J2ME Programming so i am stuck with the keylisteners.. I am writing a simple J2ME app in which there are 2 textfields. As soon as the user types a char in first textfield the result must be displayed in second. I want to handle the events …

Member Avatar for Hakoo
0
141
Member Avatar for cwarn23

Hi, I'm trying to add a condition to my htaccess file but it seems to only match if I use [ICODE]%{REQUEST_URI} !^/?.+$[/ICODE]. If however I add [ICODE]%{REQUEST_URI} !^/?B.+$[/ICODE] it will never match. Also the full code showing what I am trying to achieve is as follows: [CODE][B]RewriteEngine On[/B] [B]RewriteRule[/B] ^$ …

Member Avatar for kingkong111411
0
217
Member Avatar for foxwizzy

I want to update my users last log in in the database : [CODE]<input name="login" type="submit" id="login" onclick="<?php mysql_select_db($database_web, $web) or die("Error : " . mysql_error()); mysql_query("UPDATE users SET timp='NOW()' WHERE username='$user'")or die("Error : " . mysql_error());?>" value="LogIn" />[/CODE] this is my code but it doesent update the table :| …

Member Avatar for cereal
0
290
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.

Member Avatar for CsharpChico
1
163
Member Avatar for Tellalca

Hey; I am learning some javascript. I tried to write a trivial code to validate email but my code does not seem to work it should. It should turn the background color of text box green when mail contains both '@' and '.' characters and red otherwise. However what the …

Member Avatar for Airshow
0
107
Member Avatar for ElliottDuke

Hello all, I am building an online Logbook service and have come to a dead end with my script. I am trying to make it so that when members are logged in, they can add records to a database (which I have done), then it automatically assigns that members id …

Member Avatar for ElliottDuke
0
114
Member Avatar for ElliottDuke

Hello all, I have searched this forum to find the answer to my question however none of the answers seem relevant so here we go: I am building a member service however when coding the login.php script, I keep coming across this error: [QUOTE]Warning: mysql_num_rows() expects parameter 1 to be …

Member Avatar for ElliottDuke
0
282
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 …

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 …

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. …

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!!!!!!!!!

Member Avatar for NormR1
0
197
Member Avatar for joban.ali

I want to display a multiple records from the database, 1 of the field needs to be displayed in a list format. i have managed to achieve this, the problem is that the list is duplicating and incrementing into the next record. Displays like this: Record 1: a, b Record …

Member Avatar for joban.ali
0
99
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 …

Member Avatar for vishalrane
0
262
Member Avatar for Lemorlenny

Hi all, this my first post. I'm newbie in C# and ASP.NET so be patient with me, I have a problem when declare object in the try clause working in VS2010 Express: ex. [CODE] protected void Names() { string strQuery; OleDbDataReader myReader; strQuery = "SELECT TOP 1 Name FROM Names"; …

Member Avatar for Lemorlenny
0
99
Member Avatar for vizz

how to hide some content on webpage from unregistered user ? I am using PHP Login Script from about.com [URL="http://php.about.com/od/finishedphp1/ss/php_login_code.htm"]http://php.about.com/od/finishedphp1/ss/php_login_code.htm[/URL]

Member Avatar for IIM
0
101
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 …

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 …

Member Avatar for symeramon
0
203
Member Avatar for naru vaishnaw

i want to show friend request without pressing submit query button. please anyone help me .change the code without form <?php session_start(); mysql_connect("localhost", "root", ""); mysql_select_db("aa"); //START OF LOGIN if(!isset($_SESSION["logged"])) { if(isset($_POST["username"])) { $query = mysql_query("SELECT id FROM members WHERE username = '" . $_POST["username"] . "'"); if(mysql_num_rows($query) > 0) …

Member Avatar for diafol
0
126
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] #? >>> …

Member Avatar for TrustyTony
3
673
Member Avatar for jacob21

Hi, I am fetching data from the database & trying to print the data & export in to excel sheet.but don't know how to do. Please suggest.

Member Avatar for karthik_ppts
0
332
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) …

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", …

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 …

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 …

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 …

Member Avatar for NormR1
0
163
Member Avatar for Stefano Mtangoo

Friends, I'm rushing towards deadline and I think that makes me do childish mistakes. Here I have validation that requires regex and each time I input valid expression preg_match returns false. It is long now I'm trying to spot error but I cannot! I have googled and AFAICS, things seems …

Member Avatar for Stefano Mtangoo
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 …

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 …

Member Avatar for learningcpp
0
202
Member Avatar for heshanm

Hi all, The 2 tables are as follows. [B] account_details[/B] (account_number, nic, full_name, name_with_initials, phone_number, address, gender, date_of_birth) [B]account[/B] (account_number, account_type, fd_period, account_balance, account_interest) In my accounts opening form there are 9 fields. NIC, Full name, Name with initials, Phone number, Address, Gender, DOB, Account Type, FD period I want …

Member Avatar for heshanm
0
192
Member Avatar for heshanm

Hi all, I just know whether it will allow in php to store data in a sigle form into 2 tables, because i want to use these data in some other tasks. In my form there are 7 fields. They are [B]nic, full name, name with initials, phone number, address, …

Member Avatar for heshanm
0
157
Member Avatar for dyingatmidnight

Hello. I have a simply php script for my school project that checks books back into a library database. What I was trying to accomplish was when you checked in the book for it to check and see if the book has been requested and notify the librarian that there …

Member Avatar for dyingatmidnight
0
138
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 …

Member Avatar for bluehangook629
0
183
Member Avatar for Labdabeta

I am looking to make a 3D game, I have made plenty of fun ones in 2D using SDL but have yet to attempt a 3D (fps style) game. Does anybody know either a way to do 3D with SDL, or some other similar or easy to use library that …

Member Avatar for dvidunis
0
249
Member Avatar for arwenvd

Hi all. I am new user here and I found a lot of usefull info in this board. What I am curious to learn is how can I update a record in MySQL and in the same time to Insert a new record in another table. For example, I have …

Member Avatar for debasisdas
0
269
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 …

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 …

Member Avatar for bajishareef
0
144
Member Avatar for didi00

Hi, everyone. I have a button that links to another page, but it doesn't work. Here is the code: [code] <div class="pageNumbers"> <ul> <li><a href="shops1.html" class="pageNumber">1</a></li> //button 1 <li><a class="pageNumber" href="shops2.html">2</a></li> //button 2 </ul> </div> [/code] Do you know what is wrong with it?

Member Avatar for didi00
0
121
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 …

Member Avatar for mKorbel
0
289
Member Avatar for vbx_wx

I am not used to php but i need to use a script now, but it always give me a windwos error. This is my script: [code] $PHP_PATH = "c:\Program Files (x86)\PHP\\"; $PHP_PATH = addcslashes($PHP_PATH, ' '); $VR_PATH = dirname(__FILE__)."\VRClient.php"; $VR_SERVER = "http://localhost:8080/vrmobile/VRServer"; $handle = popen("C:\WINDOWS\system32\cmd /C start ".$PHP_PATH." -f …

Member Avatar for vbx_wx
0
116
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.

Member Avatar for syeda amna
0
213
Member Avatar for vizz

can anyone help me to create jquery, javascript one page template exactly or looklike below [URL="http://www.istockphoto.com/stock-flash-3103298-curtain.php?st=236fbf5"]http://www.istockphoto.com/stock-flash-3103298-curtain.php?st=236fbf5[/URL]

Member Avatar for matricol
0
94
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.

Member Avatar for sandeepparekh9
0
3K
Member Avatar for Ole Raptor

I am having an issue creating a stored procedure but I keep getting an error "Error Code : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE PROCEDURE sp_Insert_Address ( in p_UserID …

Member Avatar for Ole Raptor
0
149
Member Avatar for rotten69

Hi people, I am so interested in learning PHP as it is a powerful language in the web. I know a little bit of PHP so you can say that I've got an intro to PHP at this stage. What I am really struggling the logic of PHP. What would …

Member Avatar for rotten69
0
517
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..

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 …

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]

Member Avatar for Jsplinter
0
5K

The End.