199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sofien.fkih

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) …

Member Avatar for JamesCherrill
0
397
Member Avatar for dppd
Member Avatar for bo0ga

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 …

Member Avatar for richardboss78
0
180
Member Avatar for aianne

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 …

Member Avatar for aianne
0
1K
Member Avatar for BleepyE

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 …

Member Avatar for diafol
0
137
Member Avatar for ceck30s

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, …

Member Avatar for Gribouillis
0
772
Member Avatar for shivcena24

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 …

Member Avatar for Majestics
0
163
Member Avatar for sri.

i am learning oops concept now i am very confused in oops .Anybody tell me a simple examples for oops concepts

Member Avatar for rajengg
0
129
Member Avatar for hubber92

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 …

Member Avatar for hubber92
0
158
Member Avatar for rahul pareek
Member Avatar for BadVinegar

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." …

Member Avatar for BadVinegar
0
236
Member Avatar for da(code)da

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 = …

Member Avatar for phorce
0
269
Member Avatar for valestrom

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?

Member Avatar for ModernC++
0
2K
Member Avatar for KoRnKloWn

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 …

Member Avatar for KoRnKloWn
0
274
Member Avatar for wildplace

let say i have an expression like the one below, I guess it goes from left to right? if(exp1 && (exp2 && exp3 || exp4) || exp5)

Member Avatar for wildplace
0
115
Member Avatar for da(code)da

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, …

Member Avatar for da(code)da
0
186
Member Avatar for ibpet11

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 …

Member Avatar for Reverend Jim
0
3K
Member Avatar for 24x24

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 …

Member Avatar for L7Sqr
0
189
Member Avatar for crazyvonzipper

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 …

Member Avatar for Michael27
0
264
Member Avatar for smoothe19

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

Member Avatar for Airshow
0
228
Member Avatar for smoothe19

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 …

Member Avatar for diafol
0
188
Member Avatar for aianne

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 …

Member Avatar for diafol
0
4K
Member Avatar for godzab

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 …

Member Avatar for deceptikon
0
98
Member Avatar for triumphost

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; …

Member Avatar for triumphost
0
382
Member Avatar for da(code)da

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 …

Member Avatar for da(code)da
0
268
Member Avatar for DeeperShade

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 …

Member Avatar for DeeperShade
0
360
Member Avatar for loserspearl

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 …

0
137
Member Avatar for NoUserNameHere

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

Member Avatar for odubanjo.ismail
0
67
Member Avatar for daudiam

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 …

Member Avatar for odubanjo.ismail
0
185
Member Avatar for BlitzX

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 …

Member Avatar for BlitzX
0
123
Member Avatar for SakuraAssassin

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 …

Member Avatar for SakuraAssassin
0
127
Member Avatar for silvercats

#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 …

Member Avatar for WaltP
0
2K
Member Avatar for 3e0jUn

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'

Member Avatar for snippsat
0
485
Member Avatar for lakshmi dorai

Hi, I have taken checkboxes in datagridview....i want to insert the values of field checked into the databse......anybody can help??????????

Member Avatar for Mitja Bonca
0
111
Member Avatar for marky101

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? …

Member Avatar for gusano79
0
162
Member Avatar for LateNightCoder

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 …

Member Avatar for Cronicle8
0
104
Member Avatar for nstruzik

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 …

Member Avatar for Ancient Dragon
0
222
Member Avatar for triumphost

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 …

Member Avatar for DeanMSands3
0
167
Member Avatar for rjony321

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 …

Member Avatar for diafol
0
129
Member Avatar for my3h

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 …

Member Avatar for diafol
0
163
Member Avatar for cscheck

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 …

Member Avatar for cscheck
0
2K
Member Avatar for spowel4

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 = …

Member Avatar for spowel4
0
191
Member Avatar for DannyW

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 …

Member Avatar for DannyW
0
726
Member Avatar for venus87

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; …

Member Avatar for 9894443485
0
8K
Member Avatar for xostman

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

Member Avatar for stultuske
0
233
Member Avatar for raminr63

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 …

Member Avatar for pritaeas
0
294
Member Avatar for pn1925

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 …

Member Avatar for pn1925
0
148
Member Avatar for chunkbar

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

Member Avatar for chunkbar
0
328
Member Avatar for emclondon

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 …

Member Avatar for emclondon
0
150
Member Avatar for coroll

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 + ", " + …

Member Avatar for JamesCherrill
0
124

The End.