64,152 Solved Topics
Remove Filter ![]() | |
![]() | I'm trying to import a module that checks an .ini config file for correct syntax (via regex patterns). If the syntax is wrong, I want the main code to crash (and hopefully log the error, too). I need some guidance on how I should do this. My current approach doesn't … |
[CODE] <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="AccessDataSource1" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical" Width="779px"> <RowStyle BackColor="#EEEEEE" ForeColor="Black" /> <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="AccessDataSource1" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical" Width="779px"> <RowStyle BackColor="#EEEEEE" ForeColor="Black" /> [/CODE] [CODE]Protected Sub Button4_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button4.Click Dim con1 … | |
I want to take out words that reoccur in array1 and put them in array3. (so in array 3 there would be only distinct values) the problem is.. i dont understand how the count2 value can reach so high. (over 300) but should be 20 maximum. [code=c] for(i=0; i<count;i++){ if(count2==0){ … | |
Hello Experts, I have a web application build with asp.net(c#) and SQL Server 2005. Where user can enter customer record. But my problem is that, whenever end user try to enter record from two different places at the same time, it shows an error for violation of primary key constrain. … | |
Hi guys; Am stuck on the following piece of code which is meant to delete obsolete files in a directory in an sms server. It runs well from a windows platform on which it was coded in, but can not run from a linux platforrm correctly. On the linux lastmodified … | |
Hi, I'm learning making CMS. As you can see, I cannot do everything from scratch. So I request anyone with code in his codebase that works fine on paging or knows practical code to point me. I want to page my articles once are more than let say 10 Cheers … | |
Hello All, I came across a question wherein I need to find an element in the array.However, it's given that the array has been rotated many number of times and initially the array elements were sorted in an increasing order.I just wanted to know what is meant by rotating an … | |
Hi, I was wondering if someone could help me, i have nearly complete my site and need some help creating the queries to produce my commission and pipeline. my table structure is: [CODE]CREATE TABLE `pipeline_commission` ( `ProductID` varchar(75) NOT NULL, `Pip_CommID` int(11) NOT NULL auto_increment, `PipComm_UserID` int(11) default NULL, `clients_ClientID` … | |
[COLOR="Red"][I]Hey everyone, I've finally gotten my program to build with no errors or warnings and I can run it but it doesn't give all of the correct output. The Instructor provided my class with what the correct output should be and my program gets it partly right just not all … | |
ok, so in Java you do "blahblah " + variable + " blahblah" which outputs into "blahblah 23 blahblah" but how do I do this in VB? I wanted to have a label with HPvariable + "/" + MAXHPvariable so it'll display 18/23 etc... | |
The question is simple: I have two scrolled text widgets (I'm using tkinter and python 3.x), and I want to synchronize them, that is I want both scrollbars to move at the same time when the user moves the mouse wheel. Both widgets are suppossed to contain the same text, … | |
Hi, I'm trying to do a hashing project using separate chaining. In order to do the separate chaining I believe I need to make a dynamic array of pointers to the linked lists. This is due to the fact the user can specify the hash table size at runtime. In … | |
I am attempting to design and implement a horse race game, but I keep getting lost in the while loops and if statement in the horse selection and wager prompt. Would someone please help me get passed this problem? Thanks. [CODE]print ("It's a beautiful day out here folks. A fine … | |
im trying to use c to interface with a zilog microcontroller. the problem is that i cant do much without the library <ez8.h>. ive been searching the web now for any links to download this particular library to no avail. does anyone know where i can get this library? thanks … | |
Hi, I have a very simple question: first of all, my code: [CODE=python] import os def test(): x = "Linux" y = "Windows" if os.name == "posix": print(x) if os.name == "nt": print(y) else: print("there is a problem") [/CODE] Run that code on Linux (don't know about windows) and it'll … | |
Hi, I have a minor quesion today: can somebody tell me how to change basic style options for buttons using ttk. I'd like my buttons and entry fields to have rounded corners. I know this is possible but documentation on ttk (for python) seems to be inexistent on the Web. … | |
![]() | Hi folks, just a quick form question. Whenever I have used forms in the past I have always sent the data to a seperate page to be analysed, with a 'Back' button (using history.go(-1)) to return to the form to correct any errors. When editing forms (populated from a database) … |
Hello, I am very much new to perl and to this forum also... pls help for this prob... I have 200 two colom data files like, xyz_channel_1.dat .....xyz_channel_200.dat. Coloms of each file is similer like below; First colom 'X' starts from 1 and ends at 200. and second colom 'Y' … | |
[code]package taskvip; import java.util.Random; public class Main { public static void main(String[] args) { int y =0; Random t =new Random (); fun1 e = new fun1(); for ( e.i = t.nextInt(50); e.i < 100; e.i++) { e.A[e.i]= e.k.nextInt(50); y=e.k.nextInt(); } for ( e.i = 0; e.i < 100; e.i++) … | |
I can't determine how to randomly list horses as they cross various parts of the track. Will someone please point me in the write direction? [CODE]if bet > 1: #starts the race, if bet when bet is placed print (""" Here come the horses now, folks. They're being loaded into … | |
Hi, I've tried searching around for other problems similar to mine, and I was unable to find any. I seem to not be able to "color" text in a TextCtrl widget on Windows, but I can on Linux. I have a little screenshot and some code to show this: [URL="http://i189.photobucket.com/albums/z266/Capn_Soul/WinLinuxDifference.jpg"]Screenshot[/URL] … | |
Hi, I'm trying to color some text with wxPython but I am having some trouble. I am using the SetStyle method of the TextCtrl widget. My problem is that the coloring works perfectly on Linux but does not under Windows. My script basically gives a vocabulary test, and if you … | |
[code = c] #include <stdio.h> #include <string.h> int main() { int n = 0x000000FF, i; char *p = (char *)&n; for(i = 0; i < sizeof(int); i++) printf ("value : %d\n", *(int *)(p + i)); return 0; } [/code] I'm expecting something like 255 0 0 0 OR 0 0 … | |
In the following program I have a few questions. [B]results.txt[/B] Johnny 8.65 Juan 9.12 Joseph 8.45 Stacey 7.81 Aideen 8.05 Zack 7.21 Aaron 8.31 [CODE]scores = {} result_f = open("results.txt") for line in result_f: (name, score) = line.split() scores[score] = name result_f.close() print("The toop scores were:") for each_score in sorted(scores.keys(), … | |
[CODE]line = "101;johnny 'wave-boy' Jones;USA;8.32;Fish;21" s = {} (s['id'], s['name'], s['country'], s['average'], s['board'], s['age']) = line.split(";") # above, why is "s" and the end of the key list surrounded by parenthesis? print("ID: " + s['id']) print("Name: " + s['name']) print("Country " + s['country']) print("Average " + s['average']) print("Board type: " … | |
Hi, could someone please point me in the right direction for creating an AJAX page that displays "live" data from a mysql database ? I need the page to update its self every time data changes in a mysql table. Thanks, Mark H. | |
I want to make a smarter child program. Smarter Child incase you don't know was an aim bot that was designed for kids. It was extremely abused but it had pretty good AI and comprehension of what your type. I don't really know how on this. I would probably be … | |
in my code [B]Devide [/B]method is not working it gives an error "ExceptionHandling.Program.Devide(int, int)': not all code paths return a value" When i change public int Devide method in to void,the programe is workig , plz explain me what is the wrong with my code, im new to programming , … | |
[CODE]struct piece { piece(){} piece(int spacs[][3]) { spaces = spacs; } int spaces[][3]; };[/CODE] /home/myname/Programming/C++/blokus1/game.hpp|11|error: incompatible types in assignment of ‘int (*)[3]’ to ‘int [0][3]' How can this be fixed? | |
I need to be able to check one textbox and another one on keypress. If both textbox characters are over 4 characters then a button will become enabled. So far... I have.... [code] private void txtUser_KeyPress(object sender, KeyPressEventArgs e) { if (txtUser.Text.Length >= 4 && txtUser.Text.Length < 20) { btnLogin.Enabled … | |
Hi, I wonder if anyone has tried to implement PHP with Javascript. I have the code here like this: if($name=='Mary') { echo "<script type=\"text/javascript\">window.alert(\"Hi, Your Name is " . $name . " \")</script>"; } For some reason, I don't get anything on the screen. Could I embed javascript in PHP … | |
![]() | I have a folder in witch i have a sub-folders and in each sub-folder i have text files(.txt). I want to count that text files and want to print the result on the page. Can someone code it out??? ![]() |
Hi There, I currently have a PHP/MySQL query script which displays the top 50 MySQL rows in the table, however, it displays the top 50 of all time. I would love a way for it to display the top 50 rows in the last 7 days. The table looks a … | |
![]() | [code=php] echo ("<a href=foldername/".$file.">".$file."</a>"."<br>"); [/code] and there [code=php] $file = readdir($handle); [/code] in that case $file is a folder name with space.. So I have to put double quotation after href=. But it doesnt printing that double quotation. The link I am getting is only the folder name's first thing … ![]() |
Hi all, I implemented jsTree([URL="http://www.jstree.com/"]http://www.jstree.com/[/URL]) in my script, which is displaying a tree structure for me, but i have a problem The problem is onCliking on the anchor tag it is not taking me to the url given on the href attribute, please help me to resolve this Ex : … | |
Hello, I have opened Visual studio 2008.And I clicked on View-->Other Windows-->Macro Explorer.Then I got a macro explorer window.I then clicked different options present in that window randomly .Now the code is not generating any color.And i am unable to copy the content of code.Even the solution explorer is not … | |
Is is possible to define a method which returns a delegate, without first creating a delegate type? For instance, in C or C++ I can define a function pointer type, then define a function which returns a function pointer of that type: [code=c]typedef int (*IntVoid)(); // function pointer type IntVoid … | |
This button will only appear if you move your mouse over it. See here: [url]http://mitch9654.zymichost.com/Java/index.html[/url] You hava to move the mouse around the top left my applet is this [code] /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package … | |
![]() | I have a complete list of a topics. I have to create a Index for A B C D E ... On Clicking those buttons without navigating to another page it shows only topics wich starts from that letter... How to code it in php??? ![]() |
Hello guys, pls i need a Form And PHP Code To Get Upto 15 Values Into A Normalize DB At Once Sample Attached MySQL DB Syntax [CODE]-- -- Table structure for table `litorder` -- CREATE TABLE IF NOT EXISTS `litorder` ( `order_ID` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Order identification … | |
Is there a way to get a distinct value from a table and echo it as a id for a div tag and still have the rest of the values echo too? Say I have a table with these values: category item With 3 categories each having 3 items I'd … | |
Hi guys, I am bringing a problem which I thought I had solved, but it has re-reared its ugly head. The problem is one of user input (I can hear you veterans audibly say "Aargh!"). I wish to remove serial numbers (of type string) from a set. To give you … | |
Hey guys Im having trouble printing out a string. Could someone help me out? I would like to enter a string like: "julie perez" and print out "julie perez" but my program only outputs "julie". The code that prints out only "julie" is the following: practice.c: [CODE] #include <stdio.h> #include … | |
I have to write two arrays of 10 random numbers betwwen 1 and 25 then sort those two arrays in increasing order then make a third array that has all the numbers of the first two arrays in sorted order but no duplicate numbers in the third array. Here are … | |
Hello All, I am new to SQL Server 2008.I was just wondering if there is any way to add a user as an admin in SQL Server 2008? Is it possible to do using SQL Server Management Studio? Thanks. | |
I have a very strange problem... I have the exact same data on my local server and remote server, same php code everything... Same PHP Version.. I use this code.. echo ord($str[11]) << 24; And it returns a totally different incorrect result on the remote server, but totally fine on … | |
Let's say I want to create two classes Owner and Pet [CODE]class Owner(object): def __init__(first_name, last_name, address, phone): self.first_name = first_name self.last_name = last_name self.address = address self.phone = phone class Pet(object): def __init__(name, owner) self.name = name self.owner = Owner.__init__(first_name, last_name, address, phone)[/CODE] Did I pass the class Owner … | |
[CODE]<Security> - <User> <Username>jon</Username> <Password>khan</Password> <UserFolder>aliHomeDIR</UserFolder> </User> - <User> <Username>bob</Username> <Password>khan</Password> <UserFolder>aliHomeDIR</UserFolder> </User> </Security>[/CODE] I have xml file and i want to remove specific element having username jon [CODE] foreach (XmlNode parentNode in parentNodes) { for (int i = 0; i <= parentNode.ChildNodes.Count - 1; i++) { XmlNode childNode = … | |
Trying to implement a stack using dynamic array. The Problem which i am facing is that if i a pushing 60 or 90 elements then the program is running fine but on inserting say 600 elements while printing the first two elements are showing junk value. Compiled the code using … | |
Im trying to run my java application, but after some time it automatically stops and throws OutOfMemoryException: Java heap space. Now when i try to run it using (say) (-Xmx allocates the maximum heap memory) java -Xmx2000m [AppName] then it says Error occured during initialization of VM Could not reserve … |
The End.