199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 { … | |
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 … ![]() | |
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? | |
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.. | |
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> "; ?> | |
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 … | |
#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 … | |
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 | |
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 … | |
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 … | |
- 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. | |
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"}); }) }) ; | |
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) | |
<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(); … | |
<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 … | |
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( … | |
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 … | |
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, … | |
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() … | |
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 … | |
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 … ![]() | |
| |
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 … | |
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?  Here is the picture. You see their are a column name AM in my first Listview and in the second their … | |
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 - … | |
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 … | |
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; } … | |
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; … | |
how to include c++ dll in a windows application created in c#? | |
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 … | |
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 … | |
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 … ![]() | |
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)) { .... … | |
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 … | |
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 … | |
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 '*' … | |
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 … | |
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 … | |
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 == … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Hello, How to add multiple data in mySQL 5.1 using vb.net 2008? Do it needs an array? | |
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]); } … | |
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 … | |
How to call a C++ function which is compiled with C++ compiler in C code? |
The End.