199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for andrewnewspotify

Basically I have a wrote a program which downloads a webpage's source but now I want to search the source for a particular link I know the link is written like this: <a href="/internet/A2/"> <b>Geographical Survey Work</b> </a> Is there anyway of using "Geographical Survey Work" as criteria to retrieve …

Member Avatar for tinstaafl
0
216
Member Avatar for singularity~

My linq query won't insert my data. What am I doing wrong? class Query { musicEntities db = new musicEntities(); public bool findArtist(string artist) { bool status = db.Artists.Any(w => w.Name.Contains(artist)); return status; } public void insertArtist(string artist) { if (findArtist(artist) == false) { Artist art = new Artist { …

Member Avatar for singularity~
0
255
Member Avatar for jemz

Hi, can i ask some help ,my problem is that how can i display in the dropdownlist using jquerry. for example that in my database i have 1 table and 2 columns with 10 records or rows. assume that i already querried all the colors in the database,but how to …

Member Avatar for stbuchok
0
104
Member Avatar for showman13

For some reason, every time I try to submit a question I get the error message that the code snippet in my post is formatted incorrectly.. I don't even have a code snippet. is it just me or is it something that happens to others?

Member Avatar for showman13
0
194
Member Avatar for missy_mi

i have and error : mysql_fetch_array() expects parameter 1 to be resource, boolean what should i do??where is the problem..??please suggest..Thank you in advance..

Member Avatar for broj1
0
180
Member Avatar for hwoarang69

getting a error at $item_id_g'. its bc of the quotes <?php echo" <button type='submit' onmousedown='func('$item_id_g');'>test</button> "; ?> i also tried this but didnt work <?php echo" <button type='submit' onmousedown="func('$item_id_g');">test</button> "; ?>

Member Avatar for broj1
0
119
Member Avatar for general2012

facing problem to copy string to a structure via function.can input the name but just cant copy it.can anyone help #include<stdio.h> #include<stdlib.h> char copy(char *);//declare prototpe; typedef struct{ char student_name[20]; int count; }student_data; student_data *p;// declare structure variable; student_data s;//declare structure variable; int main() { p=&s;//give p the address of …

Member Avatar for general2012
0
227
Member Avatar for gamnlxvi

#include <iostream> #include <stdlib.h> //For system() #include <conio.h> //For getche() #include <time.h> using namespace std; //You can modify these numbers but don't delete these constants or this starting code will not work const int MAX_HEIGHT = 20; //The height of the grid const int MAX_WIDTH = 40; //The width of …

Member Avatar for deceptikon
0
549
Member Avatar for JBD2

Hi Everybody, Sorry If i'm a bit of a noob at this. I'm wondering how to make a VB Program run in the background...If anybody knows how or has some code that would be great. Thanks for the help! JBD2

Member Avatar for Mr.M
0
4K
Member Avatar for karan.rks

hey... I'm coding a program for my school project and i have come across a very different problem!! I was using graphics.h in my program... everything is running great.. even graphics are doing well... but after some time... that is after some input... the size of the text shrinks... and …

Member Avatar for Ancient Dragon
0
371
Member Avatar for bluesky18

Hi everyone! Can please someone help and guide me on how to export image from vb6 to excel. I found some codes here but doesnt work well when i tried it. I will use an existing excel file then i will export the image probably from the picture box located …

Member Avatar for bluesky18
0
228
Member Avatar for mtr1amit

- I want to read two attached files a1.txt and a2.txt simultaneously. - I want to get output as mentioned in result.txt file. - Through my perl code I am able to read a single file. - Please help me to modify my code to get the desired output.

Member Avatar for 2teez
0
159
Member Avatar for dany12

My code is for wordpress in noconflict mode This code works only on double click not on a single click,any advice or guideness is welcomed. I want to make it work on a single click. Thank you in advance $j=jQuery.noConflict(); $j(document).ready(function() { $j("#icomenu").toggle(function(){ $j("#menu").animate({left:"0px"}); }, function(){ $j("#menu").animate({left:"-280px"}); }) }) ;

Member Avatar for dany12
0
240
Member Avatar for tnimblett

Please tell me why I am getting a "bad operand type" I'm trying to to do a comparison on a range of value. Please help me fix. if (-13683360 <= rgb <= -13683381)

Member Avatar for tnimblett
0
108
Member Avatar for AARTI SHRIVAS

<html> <head> <title>Contact form</title> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript" src="http://api.recaptcha.net/js/recaptcha_ajax.js"></script> <script type="text/javascript"> $(document).ready(function() { var RecaptchaOptions = { theme : 'custom' }; Recaptcha.create('your public key', 'recaptcha_image', RecaptchaOptions); Recaptcha.focus_response_field(); $('#submit_button').click(function() { $.ajax({ type: 'POST', url: 'coustomer_rgistration.php', data: $('form#myform').serialize(), dataType: 'json', beforeSend: function() { var resp_field = $('#recaptcha_response_field').val(); var name = $('#name').val(); …

Member Avatar for AARTI SHRIVAS
0
545
Member Avatar for varma51

<form method="post" action="#"> <table> <tr> <td></td> <td><input name=cars type=radio value=a>Volkeswagon</td> <td><input name=cars type=radio value=b>Ford</td> <td><input name=cars type=radio value=c>Honda City</td> <td><input name=cars type=radio value=d>Renault</td> </tr> <tr><td> <input type="submit" value="submit"></td></tr> </form> > Quoted Text Here so when i did page refreshing after the radiobutton selection.the radiobutton can display as unchecked. can u …

Member Avatar for gon1387
0
812
Member Avatar for Venter

hi actually iu'm fetching 5 question id from db and saved in an array. now i'm fetching questions and their respective options from database. so i'want to save the option in seesions or cookies when ever user selected. this is my code for fetching questions & ANSWERS. public function display( …

Member Avatar for broj1
0
2K
Member Avatar for jkembo

Hello everyone, I need some help, I would like to merge two cells together within a row only (e.g) in a CSV file using python. So far, I have 4 columns in the file, but now I would like to merge two cells in one, but I don't have any …

Member Avatar for jkembo
0
13K
Member Avatar for myfit

Hi everybody, I have write a program send and recieve a large file , now it can transfer a file size 1.5G but when I choose large file about 2G it fail and notify: http://i1055.photobucket.com/albums/s505/vn_photo/Untitled-27_zpscf61b7a1.jpg Here is Project: http://www.mediafire.com/?p9b2xj2970d7cqb Please read and help me, it code is short, no long, …

Member Avatar for tinstaafl
0
203
Member Avatar for Drekh

Hello I have made a little program in C#. I am writting it in notepad and compiling via command prompt. But when i start that program there is console window and I dont know how to hide it. Here is the code: [CODE]using System.Diagnostics; class Program { static void Main() …

Member Avatar for arjun.walmiki.1
0
14K
Member Avatar for lucyin.withdiamonds.5

Okay so I have about 100 pictureboxes and I want them to change colour when you click them. I don't want to write the code for every picturebox individually because that would take ages. I've come up with this code but it doesn't work despite having no errors, why? Public …

Member Avatar for TnTinMN
0
421
Member Avatar for Motifaithed

Hi Guys, I'm working on a project and modifying it's code, I'm new to php, what I want is to speed up the process of the program, before it works like this, there is a page containing all the ID of purchase request, then there is a link to another …

Member Avatar for LastMitch
0
258
Member Avatar for ImZick
Member Avatar for xXghostXx

hi all I want to write a visual C# programs that delete all files and folders in specific directory but leave the parents directory like temp file C:\Users\user\AppData\Local\Temp MSN cache C:\Users\user\AppData\Local\Microsoft\Windows Live\Contacts etc etc... but I need some help I had read the msdn library http://msdn.microsoft.com/en-us/library/fxeahc5f.aspx anyone could help me …

Member Avatar for tinstaafl
0
2K
Member Avatar for ImZick

Hi guys I'm here again asking for help Can someone can gave me an idea about how to find all data in my first listview to another? ![Two_Listview](/attachments/large/4/Two_Listview.jpg "Two_Listview") Here is the picture. You see their are a column name AM in my first Listview and in the second their …

Member Avatar for ImZick
0
292
Member Avatar for BirdaoGwra

Hi, This is prity basic question but I am a little stuck with it. I have a class with a member variable in it. There are three files, say a, b and c. in file b.cpp - class b { public: ----- ----- int i; } in file c.cpp - …

Member Avatar for BirdaoGwra
0
197
Member Avatar for chr.s

Hello, I'm trying to find a way of including a htaccess rewrite to redirect anyone visiting *http://site.com* to *http://www.site.com*. I've tried the following... RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?site.co.uk [NC] RewriteRule ^(.*)$ http://www.site.co.uk/$1 [R=301,L] ...but it broke the paths to all of my assets - adding a "www" where there shouldn't …

Member Avatar for chr.s
0
218
Member Avatar for opel123

hi :) is there a possible way where in we can combine two rows for an example i have this code: #include <iostream> #include <fstream> #include <string> using namespace std; int main() { ofstream outfile; outfile.open("1stRow.txt"); for(int i=1;i<10;i++) outfile<<i<<endl; outfile.close(); ofstream outfile2; outfile2.open("2ndRow.txt"); for(int j=2;j<11;j++) outfile2<<j<<endl; outfile2.close(); //return 0; } …

Member Avatar for opel123
0
240
Member Avatar for general2012

i am trying to assing value to a structure member using pointer and then increment and print it .so i write the following code.not working though.how to fix this or how can i do something like this.help please #include<stdio.h> #include<stdlib.h> typedef struct{ int count; }number; int main() { number *p; …

Member Avatar for general2012
0
2K
Member Avatar for opel123
Member Avatar for mumaga

Hi, I am working on the World of Zuul game. My question is about these three classes: Room, Inventory and Game. The game class uses an instance of Room called currentRoom. In Inventory Class, I want to write a method to check if a certain item is present in the …

Member Avatar for JamesCherrill
0
96
Member Avatar for pfaleite

Well i'm really in need of urgent help. I've created a program (in Visual Basic Express 2012) that seeks the computer for information using WMI, like processor, graphics card, etc. Inside the IDE of Visual Basic everything goes by the book ... but the produced EXE when i try to …

Member Avatar for pfaleite
0
269
Member Avatar for dark_storm83

I am trying to setup a custom image hosting solution for a phpbb forum. I know there are ways to host images on the forum but for my purpose I must use an external website to host the images. I already have a custom image hosting script written and functioning …

Member Avatar for diafol
0
286
Member Avatar for JokerTime

Hey all, iam new at PHP and i have a question. I do a select-query in mysql. $sql = "SELECT name, street, city, y,m,d, email FROM player WHERE `name`= '".$name."' or `city`= '".$city."' or `y`= '".$y."'"; The result i paste in a table like this. while($row = mysql_fetch_array($result)) { .... …

Member Avatar for broj1
0
204
Member Avatar for Dane2259

I have been walking through the tutorial "second ios app" on apple's developer website and I am getting a warning from the code that is implemented in the "Get the User's Input" section at the bottom of this link https://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/SecondiOSAppTutorial/CreatingAddView/CreatingAddView.html#//apple_ref/doc/uid/TP40011318-CH6-SW1 In the implementation of the done method there is the …

Member Avatar for Dane2259
0
133
Member Avatar for nitin1

Android Launch! [2012-12-14 21:55:11 - myfirstapp] adb is running normally. [2012-12-14 21:55:11 - myfirstapp] Performing com.example.myfirstapp.MainActivity activity launch [2012-12-14 21:55:11 - myfirstapp] Automatic Target Mode: launching new emulator with compatible AVD 'myfirstavd' [2012-12-14 21:55:11 - myfirstapp] Launching a new emulator with Virtual Device 'myfirstavd' [2012-12-14 21:55:16 - Emulator] Failed to …

Member Avatar for nitin1
0
151
Member Avatar for Kert

I'm learning to get used to the pointers in C and I have a question about them that I coudln't understand. Anyways, why this code gives segmentation fault? void print_arr(const char *p_array[]){ int index; for(index = 0; p_array[index] != 0; index++) printf("%s\n", *p_array[index]); } while the one without a '*' …

Member Avatar for Kert
0
309
Member Avatar for shahai.ali

hi i have following code in c# on button_click ReportDocument cryRpt = new ReportDocument(); TableLogOnInfos crtableLogoninfos = new TableLogOnInfos(); TableLogOnInfo crtableLogoninfo = new TableLogOnInfo(); ConnectionInfo crConnectionInfo = new ConnectionInfo(); Tables CrTables ; cryRpt.Load(@"c:\users\shahaiali\documents\visual studio 2010\Projects\CrystalReportTesting\CrystalReport1.rpt"); crConnectionInfo.ServerName = "ShaHaiAli-PC"; crConnectionInfo.DatabaseName = "StudentInfo"; crConnectionInfo.UserID = "user"; crConnectionInfo.Password = "pass"; CrTables = cryRpt.Database.Tables …

Member Avatar for shahai.ali
0
189
Member Avatar for angel.heaven.58367

I am trying to do a problem of solid waste collection vehicle routing using Genetic algorithm in C++. So here raises the question why should I use GA. How do I defense this question? My main logic is solid waste collection problem is a non linear problem and for solving …

Member Avatar for mike_2000_17
0
143
Member Avatar for hotblink

Hi, I'm studying for a final exam and I just wanted to ask if you could be so kind to explain how you get these answers from these questions. I'm really confused on them. Thanks! 1) What is the output of the following program? def f(x, y): if y == …

Member Avatar for Xantipius
0
142
Member Avatar for artur.sinelnikovs

Here is a sample exam. What other kinds of questions do you think I could prepare before walking in there since all resources are permitted? Write a single program which contains functions to do the following steps. Each of these steps involve reading the file above and displaying some of …

Member Avatar for deceptikon
0
262
Member Avatar for Darth Vader

Hello, I am trying to declare a 2D List Globally. I beleive I miss something out in my declaration. It seems that I can declare the list. But when I try to add 1 dimension to the list, it only accepts: "new Requests.GlobalVariables.list2()" when it should be: new Requests.GlobalVariables.list1() I …

Member Avatar for Darth Vader
0
139
Member Avatar for dp121307

I tried to use a different forum but I was completely out of my league with the responses. I am extrememly new to python. As a project, I'm supposed to ask the user to input a file name, check that the file exists, output the numbers in the file, and …

Member Avatar for vegaseat
0
20K
Member Avatar for kshahnazari

I have a recrusive program -Im new to it!- that gives all the possible ways to make a money to smaller coins for example : we want 10$ the coins are 5$ , 2$ , 1$ we can give 1 5$ , 2 2$ , 1 1$ or only 10 …

Member Avatar for Gonbe
0
146
Member Avatar for rezilient

Hello. I am working on a Perl script that shoulld iterate through ~100 links from a MySQL table and test the links one at a time. I am using rtmpdump/mplayer to test the links (which are streaming videos), and I want to e-mail out a report after testing all the …

Member Avatar for rezilient
0
318
Member Avatar for amyl

I need to include a simple contact form in either the sidebar or footer of an existing website so it appears on every page. This is not a WordPress site, I have seen there are several plugins for WordPress. I need a different solution. I am thinking a php include …

Member Avatar for amyl
0
239
Member Avatar for monching
Member Avatar for Begginnerdev
0
337
Member Avatar for general2012

I am trying to allocate memory for three string and print it to screen.but it isnt working .can anyone explain what's wrong here #include<stdio.h> #include<stdlib.h> #include<string.h> int main() { char **name; int i; name=(char **)malloc(3 * sizeof(char *)); while(i<3){ name[i]=(char *)malloc(20 * sizeof(char)); } while(i<3){ scanf("%s",name[i]); } while(i<3){ printf("%s",name[i]); } …

Member Avatar for Ancient Dragon
0
193
Member Avatar for lalitha2294

Show 10 students data ( student id, father's name, phone number, mail id) in a file and write a C program to display the student's data whose id is given by a user through the keyboard. Please help me out in solving this program. I know how to read data …

Member Avatar for lalitha2294
0
159
Member Avatar for nivedita.valluru

How to call a C++ function which is compiled with C++ compiler in C code?

Member Avatar for deceptikon
0
105

The End.