199,132 Archived Topics
Remove Filter ![]() | |
Okay so lately I have been messing around with encryption. I thought I might give making my own simple encryption program a shot. So I am trying to make it. I am compiling my code in DEV C++ and when it runs, after I enter the message, nothing happens. It … | |
Less than a year after launching its high performance computing strategy, Microsoft finds its [URL= http://www.microsoft.com/hpc/] HPC Server 2008[/URL] near the top of the heap. The Windows Server 2008 derivative placed 23rd on a list of the 500 top-performing supercomputers in the world, as measured by the [URL= http://www.ncsa.uiuc.edu/] National … | |
Hi.....This is as part of my project.I am using Visual C#.I have a checkedlistbox and a listbox.Whenever I select an item in the checkedlistbox,it gets added into the listbox.Whenever I deselect that item,it gets removed from the listbox.The problem that I am having is if I double click an item … | |
[code=syntax] <div tal:define="number python: 1"> <tal:block repeat="item s_items"> <div tal:define="number python: number + 1"> <div tal:content="python: number">none</div> </div> </tal:block> </div> [/code] Hi, always show 2. but I would like to show 2 3 4 5 ... How to do? Thanks | |
help me to set value in drop down .I want to fetch two ids 1.$row[0]. 2.$row[3] from a view and selected is not set. [CODE]<td colspan='2'><b>Select a Publication and Year</b><br> <select name="publication_name" id="publication_name" onchange="show_year(this.value);"> <?php $get_publn_name=mysql_query("SELECT anPublicationId,sPublicationName,sPublicationShortName,anYearId,nPublicationYear FROM view_publication_year order by nPublicationYear"); ?> <option value=0>-- Select Publication --</option> <?php while($row=mysql_fetch_row($get_publn_name)) … | |
Hello, everyone. I'm at the moment doing a homework assignment involving static methods and arrays. It consists of the following instructions. I'm to create a class known as ArrayStatisticsMethods and in this class, there are definitions to four different "public static" methods which will be described. I'm provided the use … | |
[COLOR="grey"]Hi all, I've been trying to solve this problem for like 3 hours, but couldn't solve it, so any help would be appreciated.[/COLOR] I want to perform 2 actions on 1 form and on 1 submit. address1 - i only have to send datas address2 - i have to send … | |
Hi, I'm currently doing a program to search for text in powerpoint files using interop in vb.net 2005. When a user does a search, it will open the powerpoint (.ppt) file and do the search. This is working fine. What I want to achieve next is if the powerpoint file … | |
[CODE=AJAX] function update(value1) { doAjax("behind_scan.php" , "id="+value1); } function doAjax(url , str ) { xmlhttp=GetXmlHttpObject(); if (xmlhttp==null) { alert ("Browser does not support HTTP Request"); return; } url=url+"?"+str; xmlhttp.onreadystatechange=stateChanged; xmlhttp.open("GET",url,true); xmlhttp.send(null); } function stateChanged() { if (xmlhttp.readyState==4) { //document.getElementById("txtHint").innerHTML=xmlhttp.responseText; //alert(xmlhttp.responseText) document.forms.myform.scanner.value = ""; document.forms.myform.scanner.focus(); } } function GetXmlHttpObject() { if … | |
Hi all, bellow i m writing the code snippet which gives the error as Microsoft JScript runtime error: Object doesn't support this property or method, what to do.I m trying for jqgrid in asp.net with MVC without creating Helper. [code] <script type="text/javascript"> jQuery(document).ready(function() { jQuery("#list").jqGrid({ url:'/jqGrid/GridData/', datatype: 'json', mtype: 'GET', … | |
hi,i thought i'd fixed this prb,but i have'nt.i have a edit form with a drop down.i want the drop down to show the value that is saved in the databse along with the other values.ie,when i click the edit form,the value in the drop down that is visible should be … | |
hello all, i am using script functions for tooltip. [code=JavaScript]function showTip(js_element) { var str_selectedElement=""; var str_tipElement=document.getElementById(js_element); var str_comboElement=document.all('cmd_combo'); for(var i=0;i<str_comboElement.length;i++) { if(str_comboElement[i].selected) { str_selectedElement=str_comboElement[i].text; break; } } str_tipElement.innerHTML=str_selectedElement; }[/code] This function is giving me tooltip on clicking/selecting items from dropdown list.i want tooltip according to my mouse movement over the … | |
Hey there guys, first post here :). The problem I have is regarding 2D arrays ofcourse. So I have a .dat file that is 1000x1000 in size, I then need to find what the [B]int[/B] is given a specific x,y co-ordinate. I scarcely know arrays and have no idea on … | |
When writing programs with class declarations you need to write a header file with the .h extension. In Microsoft Visual Studio 2008 where do you enter this bit of code? I know how to start a .cpp file but don't know where to put the extension so I can call … | |
in this program i have to use listners, and radio buttons and buttons....right now i am doing the first part of the program where when the user selects the radio button for circle two circles appear on the screen..... [code] import javax.swing.JFrame; public class shapes { public static void main(String[] … | |
Hell everyone, I have a problem with joomla urls which i am trying to make user friendly. so far with mod rewrite i have managed to come up with a url like this; [url]http://www.edulinksuganda.com/component/option,com_artband/task,details/id,59184/Itemid,75/idd,19/[/url]. but i want it to be something like: [url]http://www.edulinksuganda.com/componentname/schools/schoolname[/url]. Please help me rectify this problem. i … | |
What is the most effective method to make an animation on the Form? Now I'm doing the following: I paint the rectangle in order to clear the old picture, and I draw the new picture after that. It was working properly in C++ Builder. But it's working very slowly in … | |
Hi, I am using cmake to build a visual studio 2008 solution file. When I do all build it works fine, but when I try to run a certain target inside that solution its giving me errors like: fatal error: 'limits.h' file not found 'stdio.h' file not found 'reloc2.h' file … | |
here is a c++ code .. It compiles fine and looks fine but it messes up the output. [CODE=C++] #include<iostream> #include<string> using namespace std; int main() { string s; cin>>s; for(int i=0;i<s.length();i++) { if (isalpha (s[i])) if (s[i] == 'a'||'A'||'e'||'E'||'i'||'I'||'o'||'O'||'u'||'U') cout<<s[i]<<" is a vowel"<<endl; else cout<<s[i]<<" is a consonant"<<endl; if … | |
Hello, I am trying to convert this C code to C++. The original code is further down this page. From the changes that I have made till now, the code should work but i keep on getting errors. I am using gcc in ubuntu to compile it. Thanks in advance … | |
i have following code done, now after i menu item is chosen i want to be redirected to preform the actual conversion, Can some give example of how do that thanks. | |
I have to create a bst in which i have to add string values in the nodes..I have to display the no of nodes inserted each time..When I insert small string like..FA or B...i am getting the correct value in count[count is the variable which I have taken to count … | |
Hi all, I use gridview to display the data in Item table. The edit and delete button works fine in the gridview initially. When I search for particular records and display in the grid the edit and delete button does not work. [CODE] <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource2" AutoGenerateDeleteButton="True" AutoGenerateEditButton="True" … | |
I'm taking an intro course to C++ and we're covering stack overload and how the library and linker come into play with programming. I have a simple .cpp file called dataType.cpp. The code is as follows [CODE=C] int A; int rtn; int main() { rtn = dataType(A); cout << rtn … | |
hi, im making a vb.net app to make a backup of a mysql database on a remote server. i could do it easily with just one select and then a loop for all the inserts but the thing is, single inserts for lots of rows are really slow and here … | |
![]() | Good day, I am attempting to write a Python script that has a given hexadecimal value, and a given list of strings. The script randomly samples the list and pulls out 3, 4-string lists. The strings are joined, converted to integers, converted to hexadecimal values, added together and the sum … ![]() |
hello everyone i m inserting data from text file into database. .......but the data into the text file is not inserted into database only blank record display in the database.......... my text file is like this: james flower 22 may be i m not giving space delimiter correct... plz help … | |
Hi Guys , I m developing one website for my LAN and working on Linux. I m getting Following Errors after loading or refreshing my page:: [B][Tue Feb 23 16:58:51 2010] [error] [client 192.168.2.147] PHP Notice: Undefined index: parent_url in /var/www/html/pastebin/layout.php on line 320, referer: [url]http://pastebin.geodesic.net/2[/url] [Tue Feb 23 16:58:51 … | |
I dont understand what im doing wrong! [CODE]public partial class Delete : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void btnSubmit_Click(object sender, ImageClickEventArgs e) { SqlConnection conn = new SqlConnection(WebConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString); SqlCommand comm = new SqlCommand("Delete into [Staff] (Staff_Number, Login_Password, Phone_Num) VALUES (@Staff_Number, @Login_Password, @Phone_Num)", conn); comm.Parameters.Remove("@Staff_Number", … | |
Hi , I want to create user defined data types in MS SQL 2008, So when I start MS SQL Server Management Studio -> Database here 'Adventure Work' is not appearing. ( I am referring this -http://www.mssqltips.com/tip.asp?tip=1628) how to enable that?:?: or is their any another way to declare user … | |
Hi all,I am trying for validation using regular expression for Indian mobile number. Simply i have tried for"^[8,9]{1}[0-9]{9}$" and some others also but it is not working. I want regular expression for: 10 digit mobile number starts with 8 or 9 | |
Hello Everyone, I would like to ask about AJAX. I am a new web developer with quite good knowledge of html, ASP and basic of ASP.NET. But i don't have any knowledge about ajax .i saw many ajax driven websites Can i please know what would be a normal word … | |
Hi, So I am currently working on a homework assignment for my data structures class, basically C++, and I am having some troubles converting a working c++ program to use a template. [code] #include <iostream> using namespace std; /* -------------------------------------------------------------------------- */ /* */ /* SECTION: DECLARATIONS */ /* */ /* … | |
Hey, I have a problem that I'm not sure if its from running on windows or not. Lets say I have the following MakeFile for compiling and creating the executable of 'target.c': [CODE] FLAGS = -Wall -g all : target target : target.o gcc ${FLAGS} -o $@ $^ target.o : … | |
Hey guys! Would some kind soul please be able to tell me how i can add some form of text field (for user input) which can be positioned anywhere easily with X and Y values and has no border (or the border is removable).. I've seen it many many many … | |
I am trying to make a TCP chat program, but instead of having people enter in the ip of the computer they wish to talk to everytime, i would like the program to be able to listen on all ip addresses, so that it will provide for a better user … | |
My JSP web page has many checkboxes. What is web page source code look like when clicking one checkbox will submit only one checkbox value (not the whole form) immediately? i.e. toggling one checkbox will send the info that only that checkbox is toggled. This does not work because clicking … | |
Well, i cant figure how print to the spaces before the *, this is how it is suppose to look: * *** ***** ******* EDIT: dunno how to get it to work but it should be a pascal triangle and this is what i get * *** ***** ******* heres … | |
hi, i m asha bhatt. plz look at this my code i have declare this first :- [code] CheckBox chkList1; protected void Page_Load(object sender, EventArgs e) { } protected void NextQuestionButton_Click(object sender, EventArgs e) { createcheckbox(); } public void createcheckbox() { Response.Write("asha"); chkList1 = new CheckBox(); chkList1.Text = "strCheckboxText"; chkList1.ID … | |
Hi all. Ok, i got such php script: [CODE] <?php header('Location: http://localhost/current/'); ?> [/CODE] Now i am sending GET request to this script with my C app and receiving following header: [CODE] HTTP/1.1 302 Found Date: Sat, 20 Feb 2010 18:50:17 GMT Server: Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4.5 with Suhosin-Patch X-Powered-By: PHP/5.2.6-2ubuntu4.5 … | |
[CODE] int main() { hash_tree htree; htree.root.is_leaf = 1; htree.root.candidate_set.len = 0; item_set s; s.len = 1; s.items[0] = 0; add_item_set_to_hash_tree(&htree, s); s.items[0] = 1; add_item_set_to_hash_tree(&htree, s); s.items[0] = 2; add_item_set_to_hash_tree(&htree, s); s.items[0] = 3; add_item_set_to_hash_tree(&htree, s); s.items[0] = 4; add_item_set_to_hash_tree(&htree, s); s.items[0] = 5; add_item_set_to_hash_tree(&htree, s); printf("seg fault 1\n"); … | |
Hi, I was wondering if any knows how to specify the patch for the database when making a vb.net program executable. The data base which is access is in the debug folder of the program. Any Ideas Thanks James | |
hi, I'm working on an admin page for a department in my school. I have a database of reservations for rooms in which each event has a distinct ID called "confID" Each event or confID often has multiple dates (dateOf). I need to list out the reservations for the admin … | |
I'm getting the following error and I don't know how to fix it: Error 1 error LNK2001: unresolved external symbol "public: static int HotDogStand::DogCounter" (?DogCounter@HotDogStand@@2HA) CartTesting.obj CartTesting I'm trying to use the HotDogStand::JustSold() function to increment the DogCounter variable by 1, or none (depending on user entry). I think my … | |
I have a program where my JFrame contains a tabbed pane with 3 tabs, I am wanting to make it so that when tab1/jpanel1 is doubled clicked it displays the contents of the JPanel on the second monitor. In my case the second monitor will be a large plasma screen … | |
I'm trying to see if there is a better way to go about getting the number of carts that the user inputs, instead of mandating that they have exactly three. My assignment calls for the following: "You operate several hot dog stands distributed throughout town. Define a class named HotDogStand … | |
i have the following function which works, its encrypts a text file, well its suppose to shift the letters of a text file by whatever the user wants, lets say the text file says "zoo" if the user wants to shift the letters by 1 to the right the output … | |
I have a task that sounds simple enough... but I don't code in Python; my background is in network design. So, here we go, I have to write a script that scans text files on a network share to parse for anything in the the text log that begins with … | |
Hi All, I'm stuck on my C++ assignment. I have no idea how to finish it...I think I'm missing something in my code such as how to double the size of the argument array and copy it, then initialize the unused elements of the second array with 0. thanks in … | |
Hi there, I'm working on a simple java program that allows a user to input numbers via console, throws an exception when a string is entered, and tallys up and prints the integers when the user simply hits enter with no input. i.e. Please enter a value: 5 Please enter … |
The End.