199,114 Archived Topics
Remove Filter ![]() | |
Hi, I am trying to read a value which is in a class (in a public void) in anothe class and I couldn't do that, so please can someone reply me and tell me how to do that using these code. public class CDB { public static String main(String[] args) … | |
how to multiply two integers when one of the integers is user-input ? | |
I'm a college student about to graduate, and I would love to get a job in programming. Unfortunately, I chose Information Technology as my major instead of Computer Science which focuses more on programming. I've been watching video tutorials series on thenewboston.com. The first was about 90 videos on basic … | |
Hello everyone! Guys I really need your help. I'm still a noob and a student. So I made a table for electoral officials and also I made a link where user can see the information of the certain candidates in mouseover box. But I'm still trying to figure out how … | |
Im very new to PHP and im wondering how I can create a button to delete a post on my blog system. My system is as follows; **Blog Page** <?php include ("includes/includes.php"); $blogPosts = GetBlogPosts(); foreach ($blogPosts as $post) { echo "<div class='post'>"; echo "<h2>" . $post->title . "</h2>"; echo … ![]() | |
Hi, I'm a beginner at python and I'm trying to extract specific columns from a text file, and then use those columns to make a line plot. The files contains the following few lines of data: # Raw SIFs at Crack Propagation Step: 0 # Vertex, X, Y, Z, K_I, … | |
i having the string array,, String[] strrr=null; String[] aa ; aa=strrr[3].split("\\!"); if i debug this it shows source not found but i want to return from the string if the strrr[3] value having null or 0 ,how to do it,, use above three line of code to check it,exactly what … | |
i am learning oops concept now i am very confused in oops .Anybody tell me a simple examples for oops concepts | |
Hey Guys, Got a question on storing a value from protcted method to a public variable then using that public variable(with value from protcted method) in another protcted method.. My explaination, so I'll show my code. I'm new to coding so pls be easy on me.. You help is appreciate … | |
I'm fairly new to visual basic. I was trying to make a program that generates code for you, based on whatever the user inputs. But whenever I click generate, I get this error "Invalid CastException was unhandled. Conversion from string "//Generated using MAYAN. Minecr" to type 'Double' is not valid." … | |
here my username is know as callsign there is a problem somewhere that i cant find and i present the code: $callsign = mysql_real_escape_string($_POST["CallSign"]); $result = mysql_query("SELECT * FROM users WHERE CallSign = '$callsign'"); $row = mysql_fetch_array($result); echo $row['CallSign'] . "<br>"; $sql = "SELECT COUNT(*) FROM users WHERE CallSign = … | |
I kinda want to code in binary just for the fun of it. But I have no idea how to compile my code. Anyone know how? | |
I am currently working on an app to convert documents (specifically Open Document Text, at least for now) to epub format. The problem I'm running into right now is this, I am using etree ElementTree to parse the xml files extracted from the .odt file, right now I'm working on … | |
let say i have an expression like the one below, I guess it goes from left to right? if(exp1 && (exp2 && exp3 || exp4) || exp5) | |
my code is messing up. help: if (mysql_query("CREATE DATABASE $dbname",$con)) { echo "Database Created<br>"; $dbase = $_POST["CallSign"]."char"; mysql_select_db($dbase, $con); $sql = "SELECT * FROM $dbase"; $result = mysql_query($sql); if ($result) { echo "CallSign Accepted<br>"; mysql_select_db("my_db", $con); $sql="INSERT INTO users ( CallSign, Email, FirstName, MiddleName, LastName, Gender, BirthMonth, BirthDay, BirthYear, Location, … | |
Hi guys, I have a apps that I need your input inorder to improve efficiency, the apps can read a text file (A) and also another text file (B) then spit lines in both files, it can further compare to see if there is any common line using a unique … | |
Hello All, This may be the wrong place for this and if so I apologize in advance. I have been tasked with organizing a drive full of marketing assets on a mac server. It is currently in use so we have made a duplicate share so that any changes will … | |
HI. I have a situation where we need to pull data from multiple data sources into one dataset. Once we have the data in one dataset we would like to somehow manage to execute some sort of [complex] select query on the data in order to generate a new DataTable … | |
How do I push new values to the following javascript array? json = {"cool":"34.33","alsocool":"45454"} I tried json.push("coolness":"34.33"); but it didnt work | |
I am trying to push to the javascript array after looping 200 times through the member array to push every member that matches the department selected description into the javascript array., However it fails <? $i = 0 ; while( $i < 200) { if ($members[$i]['department'] == $depttts){ break; echo … ![]() | |
Hello everyone! :) Could you please help me? I am still a noob and I'm having a hard time about displaying selected values from mysql database into popup window? This is my code where user can see the table of the electoral officials: -----CUT----- <div id="page"> <div id="blanket" style="display:none;"></div> <div … ![]() | |
The difference between using refrences(&var), and pointers(*var) is that using refrences is more efficent because you do not have to derefernce the object. Am I right, and if I am why use pointers then? Take this code for example: #include<iostream> //function prototype void rFunc(int &rNum); void pFunc(int *rNum); //main method … | |
I've hook a game that uses OpenGL and I'm trying to draw text on the window but when drawn, it has a background that I do not want. Currently i'm using: void glPrint(HDC DC, COLORREF Colour, int X, int Y, const char* format, ...) { if (format == NULL) return; … | |
So im trying to make a password login and im getting errors. i got past my Unable to jump to row 0 error with this: **mysql_num_rows($result) >= 1** but now it wont jump to the row when the password is correct ether :/ here is the code; whats wrong with … | |
Ok, i'm trying to create vertex normals for each vertex. I'm fairly sure i've got the math right, I'm just having trouble finding out to which faces a point belongs... The points are store in: `vector <texTri> texvert` texTri contains, x, y, z, nx, ny, nz, u, v; I identify … | |
![]() | I've been writing a project in C# using VS2010 .Net 4.0 on my project and am trying to do NUnit testing (version 2.6) which I haven't done before. I added the nunit.framework reference to my project and created a test class: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace … |
Is this considered 2 loops? I was confused about it because it shared an end point so I assumed that it counted it 2 loops. Am I wrong? http://i.imgur.com/wvM3C.png | |
I thought that setting up the PATH variable was a must if we wanted to use java or javac commands on linux (preferably in the bashrc file), but I am able to use these commands anywhere without setting up the PATH variable.. Similarly, without specifying '.' in the CLASSPATH variable … | |
I'm writing a program that searches for particular sequences of bytes in a USB stick. The problem is that I don't know how to search effectively. ReadFile() allows me to buffer 512 bytes each time. If my sequence is fully present in that block, then there is no problem. But … | |
I am writing a program with java and i am having trouble displaying my .txt in my JTextArea. it shows it as 1 appended line and i want it to display the way it is set out in my text file. Here is my code: import java.awt.*; import java.awt.event.*; import … | |
#include <iostream> #include<string> using namespace std; int main() { string admin_pwd="testing"; string encrypted ; string unencrypted; char key[5] = "abcd"; for (int x=0; x < admin_pwd.size(); x++){ encrypted += admin_pwd[x] ^ key[x/100%30]; } cout << "Encrypted = " << encrypted<<endl; for (int x = 0; x < admin_pwd.size(); x++){ unencrypted … | |
How do you make Python delete a string or a number (in this case, .0) from a file? Example: #Error Fixing if '.0' in open('ship.$','r'): #Delete the '.0' | |
Hi, I have taken checkboxes in datagridview....i want to insert the values of field checked into the databse......anybody can help?????????? | |
How to get the correct and current date and time in vb.net even a user change the computer's system clock? Let's say the correct and current date and time is 7/20/2012 11:00 AM then I change the clock to 7/19/2012 11:00 AM. How to retrieve the original date(7/20/2012) in vb.net? … | |
Hi there I am currently creating a game, where you drop items in certain areas, at the moment i want the player to drop only a max of 6 bombs, but one at a time. Currently my programignores the list count max of 6 and just keeps drawing until i … | |
Im pretty new to coding in C++ and Im a student at devry unversity. I have to sort this class by credit hours in ascending order and Im having some trouble. If anyone could help it would be greatly appreciated. #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace … | |
So... I'm looking into learning Assembly. I downloaded the FASM assembler and I want to know how useful is assembly? I want the opinion from Cpp programmers because assembly programmers always tell me it's the best language -__- Also quick question: How do I know which register to put stuff … | |
Hello,I cant access my two table date together in one search option.like table name: name_search & skill_search.here is the code.please check it and if possible solve it. <?php $connect=mysql_connect('localhost','root',''); $mysql_db=mysql_select_db('my_database',$connect) or die(mysql_error()); if (isset($_POST['search_name']) && isset($_POST['search_skill'])) { $search_name= $_POST['search_name']; $search_skill= $_POST['search_skill']; if(!empty($search_name) && !empty($search_skill)){ if(strlen($search_name,$search_skill)>=4){ $query = "SELECT name FROM … ![]() | |
Hi, I am using `$_SERVER['REQUEST_URI'] ;` to get the complete URL address, but in that i want to take only the half, example in `$_SERVER['REQUEST_URI'] ;` i get http://www.mystore.website.com/index.php?fkdsjklfjdskldfd=id... but i want to take only till http://www.mystore.website.com, how can i do it? In PHP is there any function called LastIndex … ![]() | |
Hello all, Correct me if I mis-post or should have posted this somewhere else. This is my first thread here so bear with me. I have had a lot of luck just browsing other issues to get my problems solved in the past, but this time I am stumped. More … | |
I have a class with a required file: require_once 'includes/constants.php'; That required file contains the following: <?php // Define constants here define("DB_SERVER", "localhost"); define('DB_USER', 'xxxxxxxxxx'); define('DB_PASSWORD', 'xxxxxxxxxx'); define("DB_NAME", "customerInfo"); define("ERROR_FILE", "c:\wamp\www\customerinfo\Errors.txt"); The class has a constructor: function __construct() { $dbServer = DB_SERVER; $dbName = DB_NAME; $dbUser = DB_USER; $dbPWD = … | |
Hi all, This *is* a Java question, despite the set up looking long! I am writing a program that involves constructing and using the inverse of a large correlation matrix many times. Suppose you have a data matrix X with d columns representing d variables and n rows representing the … | |
Here is the code for extract RGb values from a single image.... and now i need to read set of images from a folder , can anyone pls give me idea for that since im very new to java ,,thanks in advance :) [code] import java.io.*; import java.awt.*; import javax.imageio.ImageIO; … | |
am new in java and am rtying to code a program for lotto punters which generate as many numbers of 6 as the user request | |
Hi guys i first thank you for helps. and i have a script i use that for application authentication In fact the users must use your user name and password to use that App then after authentication of they user and pass passed they allow to use that application. and … | |
I am trying to write a python script to open file, read each line, and replace the 18th position of each line with a a user specified character (sysargv[3]) IF AND ONLY IF that 18th position is another user specified character (sysargv[2]). It should then save it as a file … | |
HI EVERY ONE how i can insert a confirm dialog box behind delete record button so that it will prompt like this ARE YOU SURE YOU WANT TO DELETE? YES OR NO ? if yes button is pressed then it will delete other wise dont .? thanks in advance | |
Alright please bear with me for few posts, I am trying to design a scoreboard application using HTML. The data for scoreboard (including headings and rows and columns) are stored on a server at a remote location. I am trying to develop an ASP.NET script to fetch that XML and … | |
Hi, i get an NullPointerException in this line:if (let==currentLink.aLetter) in search method. This is node class public class Letter { char aLetter; int points; Letter next; public Letter(char aLetter,int points) { this.aLetter=aLetter; this.points=points; } public Letter() { } public String printLink() { // System.out.print("{" + aLetter + ", " + … |
The End.