199,114 Archived Topics
Remove Filter ![]() | |
Hi, I have a Jtable created in swing of which one column contains check boxes. What i want is a few check boxes on specific rows.And now in the entire column Any help! :) Also i donot know the row number at which i want the check boxes.That needs to … | |
I've been rewriting a copy of the original Pokemon battle system in java. hered my current code: [CODE] private void opTurn(){ //Todo: opponents random attack does random damage, //misses, or causes a status effect //p.pause(005); wait(1) Action.setText("Tiffayoniton attacked!"); curPl -= 10; plCur.setText("" + curPl); } private void A1MouseClicked(java.awt.event.MouseEvent evt) { … | |
I have the program working but with using ActionListener and ActionPerformed. Instructor wants it changed since it is not the clicking the button that triggers the application but entering in '-1' as a grade. I am lost on trying to change it as nothing seems to work for me so … | |
is it possible to order a query by another query by mysql_num_rows? if so, can someone please tell me thanks $query2 = doquery("SELECT id FROM table_name2 WHERE id='$thisid'"); $idcount = mysql_num_rows($query2); I tried this: $query = doquery("SELECT * FROM table_name ORDER by mysql_num_rows($query2)"); AND $query = doquery("SELECT * FROM table_name … | |
I'm having an odd issue here. Basically, I have an AJAX response that is returning HTML that I'm using via innerHTML. The following is a portion of the AJAX response: [CODE]<img id='img_display' width='583px' style='margin-top:62px;' src='../galleries/gallery/img.png' alt='' />~<table ....[/CODE] The following is a small portion of my AJAX code: [CODE]var response … | |
hi everyone. i have a problem with my c++ program that i am making for my assignment. This is an ISBN asignment and basically The ISBNPrefix module simply reads the ISBN prefix table. This module contains all of the functions that are needed to access the table. Store the function … | |
I am reading in from a text file and storing the data into different string variables which are in my struct. Currently I use an asterisk to separate the info in the text file, and have a garbage string variable that I pass the asterisk into in my struct. I … | |
Hi, im trying to populate each datagrid with an individual record from a table by using a loop - ideally id like something like this below [code] using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.IO; using System.Data; using System.Data.SqlClient; public partial class Default2 : … | |
Hi, I'm having trouble with reductions and classifying the following language: L ={ <M> ∀w∈Σ* Tm(|w|) = c } That is, L is a language of turing machine encodings such that for any input w the runtime of the machine is a constant c. The goal is to classify the … | |
Hi, im learning ASP.net and SQL Server and im verrrry new! i have followed an excellent tutorial (and besides some authentication issues with SQL Server it has gone swimmingly) :) ([url]http://www.aspsnippets.com/Articles/Display-images-from-SQL-Server-Database-in-ASP.Net-GridView-control.aspx[/url]) however im struggling to understand exactly what i have done in this tutorial (obviously following a tutorial is easy … | |
I am pretty new to asp.net and I am trying to make a simple form with a few textboxes and dropdown lists. I am using Visual Web Developer 2008 express. The customer enters their information in the web form and hits the submit button. When the submit button is hit, … | |
ways to do random variables in array but not repeat , how i can do that? | |
Note that I posted this thread earlier, I'm reposting because the issue has evolved some and I have a clearer idea of what the problem is. I'm trying to resolve a segmentation fault that occurs in the traversal of a string array. My code is doing the following: - open … | |
[CODE] public boolean randomFlower() { Grid<Actor> gr = getGrid(); ArrayList<Location> loc = new ArrayList<Location>(); loc = gr.getOccupiedLocations(); int row = (int)(Math.random() * 19); int col = (int)(Math.random() * 19); Location new1 = new Location(row, col); boolean existent = false; // if i is less than size of occupied locations for … | |
can anyone tell me how can i represent a global function & a ( struct ) in a UML diagram???? | |
HI everyone,,,i am a beginner in c++ & i have an a assignment that i cant even start & i need in advice that i can get so plzzzzzzz help,,, the assignment is about a game [B][U]The Predator‐Prey game [/U][/B]is a simple board game where a set of predators and … | |
Hi, I have been trying to use multiple sorts on a long xml file using XSLT 2.0, which each one of the xml elements look like: [CODE]<song> <title>(I Just) Died In Your Arms Tonight</title> <category>Rock</category> <album>80 Popular Hits</album> <artist>Cutting Crew</artist> <date added="02-03-2009"/> </song>[/CODE] This is my XSL snippet, and I … | |
Hi All, I am trying to pass the value from drop down menu generated from the database and I am trying to pass the value from the first drop down selection to the next the value in red is the variable. I have tried the $category_id=$nt['category_id']; $category_id=$_GET['category_id']; but this does … | |
I have a string that includes numbers and letters and I want to be able to seperate the string into parts. An example of the string looks like this FAP834E. I want to seperate it so that the first letter is seperate (F), the second and third are together (AP), … | |
I have a question about functions and pointers to functions.... Why does a C program treat a function call to a function and a function call to a function pointer the same? [CODE] #include <stdio.h> #include <stdlib.h> typedef void (*funcptr)(void); void myfunc(void) { fputs("Hello, World!\n", stdout); } int main(int argc, … | |
Hey guys. I am currently just a 11th grade student but since I'm done the whole curriculum for my Computers class already, I recently just started making extra stuff for fun. One of things I'm doing is Making a graphical/visual sorting applet. Something like : [url]http://www.cs.ubc.ca/~harrison/Java/sorting-demo.html[/url] I have my code … | |
hi can any one please tell me how can i increase sql packet size in xampp server? i am getting an error like "Mysql packet size is 1MB and it is lower than the size of the file GeoIPCountryWhois.csv which is 9MB. " Thanks | |
Hi all, i need a 26 rows by 8 colums check boxes table. i get the number of rows from a data base so i prefere to create the check boxes at run time. the thing is it takes something like 10 seconds on my powerful computer to draw them … | |
Hi, Can anyone point me towards a working example of a plug-in architecture for C#/.Net 2? I am developing a simple task manager and I want the individual task types to have their own, separately compiled processors. These will conform to a common interface / API defined by the task … | |
I want to save Text box values in VB and retrieve.If you having any sample code please help me | |
i'm reading a an excel file with xlrd. When i'm running the code a warning pops up: 'WARNING *** format u'"*"' produces constant result ' I think that u'"*"' stands for unicode, is that correct? But what does 'produces constant result' mean and what implications can it have? Thanks | |
| |
I am having an issue with my multimap insert. I have looked high and low for a possible solution to this problem. What I am trying to do is make an dynamic hierarchy data structure that has a root element then child elements under it holding values. I thought using … | |
Hi i use this code for hide form but when i run project form is shown !!! where is probleam ??? thanks [CODE] private void Form1_Load(object sender, EventArgs e) { this.Visible = false; }[/CODE] | |
Hi all, i had written a query [CODE]$sql3="select userid from projectassign where projectassign='$projectassign'"; mysql_error(); $result3=mysql_query($sql3); $num1=mysql_num_rows($result3); $i=0; while ($i < $num1) { $userid=mysql_result($result3,$i,"userid"); echo $userid; $i++; }[/CODE] so now i am getting some userid's. Now there are some checkboxes present in a table of users.Based on the query, userid's obtained … | |
I have a directory listing with many subdirectories having many files. I want to recursively search for the oldest 5 files starting from the base directory and not 5 from each subdirectory. I am writing a shell script which sorts them using ls -lRtur|egrep "txt|jpg" > /tmp/file1 Now from this … | |
What's Up? So, In my first python script, If a button is pressed, Then it defines a variable called var, With the content of "0" and then sends it over the net to another python script, And here's the problem. When it comes to receiving the content of var. [code]var … | |
After searching for how to use inline assembly with Dev-C++ i fig'd i would share my code This takes 2 const chars and swaps them thru inline AT&T assembly The variable booga starts as booga booga and ends up as JMC31337 [CODE] #include <iostream> #include <stdio.h> #include <stdlib.h> using namespace … | |
i do need some help related to combox: 1) m making my project and in that have used combox for selecting various options and had inserted the item , suppose i had entered MBA, BCA, MCA, B.E. in the begging i have used database to enter marks per semester(i.e. upto … | |
Hi guys , what i am trying to do is when i select a row in datagrid i see the selected row in a text box,now when i try to edit that row in text box that row in the datagrid gets unselected.how can i keep that row selected. Thanks | |
Hello Guys... I'm a novice in both php/mysql. I'm creating an application and have many problems with it.I need help with some of the areas. First my application is a multiple forms based. The first page is that an admin logs into it by authenticating with mysql (This part I've … | |
Dear experts, I have a TabContainer, and one of its tab panels has a user control with a wide GridView in it. Because of some reason, the GridView goes way beyond the size of the tab panel and the tab container. How can I make the form and the tab … | |
hi guys i need help with date time picker.What i am trying to do is to select data from table according to teh date selected by the user .My code looks like this but it doesnt work, it doesnt pull anything, can anyone help me with where am i going … | |
Hey all, Ill try to keep this short. I am trying to issue a command to another computer using ssh (ex ssh user@host 'csh /home/usr/SCRIPTS/tp.csh) and am getting some annoying error messages. when I run the tp.csh program on the host machine, it runs fine, when I issue the above … | |
Hello, i need to do a program which takes an input sequence of characters from the alphabet {A,B,C} and compresses it by replacing each subsequence of a particular character by a single occurrence of the character, and the length of the substring. e.g. Input : AAAAABBBBBBBCCBBBAABBCCCCCS Output: A5B7C2B3A2B2C5 i dont … | |
Hey. I would like to save a txt file from the listbox into a folder that the user chooses. I've got the writing to work, but so far it only saves the file to the debug folder (since I haven't specified another folder) This is what I have so far: … | |
i need a detail explanation about left shift and right shift operators in c..its very hard to understand it..especially when i am using shifting on hex and oct values...seems to quite confusing me...i got the output..but i dunno how it comes...please clear my doubts.. thank you | |
Ok I have a program that has some web controls. When the user logs into the web system it loads in WebBrowser4 and their worklist comes up. I want to code the web control so if they click any link in the control it will load those links in a … | |
My English is very poor...there must be a lot of mistake in my expressions. but It would be very kind if you can answer my question... 3Q. In c compiler ( vs 2010 express c++), I tried the code as follow, 0 error 0 waring. In C++, it is the … | |
I am trying to fiqure out this problem for a long time. I am teaching myself C++ from C++ for Dummies and I cant figure this out. Fill in a 2 dimension 3x3 array with odd numbers. The display shows the array as it is being filled. Use random integers … | |
I am using Lucene Highlighter 2.4.1 for my application. I use the highlighter to get the best matching fragments, and display them. I make a call to a function String[] getFragmentsWithHighlightedTerms(Analyzer analyzer, Query query, String fieldName, String fieldContents, int fragmentsNumber, int fragmentSize). For example : [code=java] String text = doc.get("MetaData"); … | |
hi guys, i am planning to undertake a massive project which would be something to do with wii remote as i am aware the wii remote communicate with the console or computer via blue-tooth. i was wondering what sort of data wii remote sends back to the computer or a … | |
Im building something that awkwardly resembles Facebook, to use as an intranet... and as such, the system allows you to organise meetings. In my attempt to make this thing useful, I thought it would be cool to email everyone thats invited to the meeting an 'Outlook meeting Request', which I … | |
I tried using the example at [URL="http://www.w3schools.com/php/php_includes.asp"]http://www.w3schools.com/php/php_includes.asp[/URL] [CODE=menu.php]<a href="/default.php">Home</a> <a href="/tutorials.php">Tutorials</a> <a href="/references.php">References</a> <a href="/examples.php">Examples</a> <a href="/about.php">About Us</a> <a href="/contact.php">Contact Us</a> [/CODE] [CODE]<html> <body> <div class="leftmenu"> <?php include("menu.php"); ?> </div> <h1>Welcome to my home page.</h1> <p>Some text.</p> </body> </html> [/CODE] I tried this: [CODE] <div id="topbar"> <form method="post" action="parser.php"> <p>URL: … | |
Hi all i am tracing ip addresses of all the site visitor using $_SERVER['REMOTE_ADDR']; and its working fine, But i want to exclude all ip starting from 172.122.*.* . i want to put "if" condition but don't know how to track these first two figure. can anyone please tell me … |
The End.