199,114 Archived Topics
Remove Filter ![]() | |
Ok i had this in another question i asked yesterday and now im posting it in its own thread. I have a code that is supose to read files that are sent to me daily and after they are read i need to have them moved from their origional folder … | |
Hello DaniWeb Family, A few years after obtaining my Master's in Business, I decided to completely change careers and go back to school for web design and development. I've recently completed a 2-year program where I studied VB, ASP.NET, C#, Java, SQL, Server 2008, Photoshop, and Dreamweaver among other courses. … | |
Hello Im quite Confused right now. I am trying to insert a Node in between nodes and it is not being displayed. Please Help. #include <iostream> #include <conio.h> #include <cctype> using namespace std; struct Node { int DATA; Node * Next; }; Node * head = NULL; void Display(); void … | |
I'm trying to learn about ANNs. If anyone can tell me my understanding is correct that'd be fantastic. So if an ANN was to be used for an image classification task - white background with a black alphabetic character written on it. The inputs are each pixel. What I believe … ![]() | |
I am tring to perform a calculation in my query. I've been working on it for hours, so I need another pair of eyes to see what I am missing. Everything in the query is working except for the g.courseFee part. The course fee is not being added to the … | |
Hello I am new to python coding and have a couple of things that I could really use some help on. I need to move some sor files from one folder to another and to add a date and time to the facts sheet that it produces if any one … | |
Hello and Asslam o alekom! I have problem to install my VB6 Application on Windows 8.First there is erorr when i start to install my Application.Please solve this problem? | |
| |
I made 2 tables in PHP that I need side by side and they are end to end. How do I put them side by side? Thanks | |
Hi guys i'm creating a new table in sql to allow users to register with my website, this is the sql code that I'm suing does this seem ok to you? CREATE DATABASE `dyscaculia` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; USE `dyscaculia`; CREATE TABLE IF NOT EXISTS `users` ( `Firstname` … | |
interface Interface1 { public int method1(); public int method2(); } public class Salary implements Interface1 { public static void main(String args[]) { int sa[]=Integer.parseInt(arg[0]); float pf,hra,da,tax,net; public int method1() { System.out.println("salary="+sa); try{ if(sa>250000) { pf=sa*5/100; hra=sa*10/100; da=sa*8/100; tax=sa*10/100; net=sa+tax; System.out.println("Net salary of an employee"+net); } } catch(Exception e) { System.out.println("I/O … | |
i'm found this piece of code on internet about how to load multi texture in opengl es 2.0: // // Book: OpenGL(R) ES 2.0 Programming Guide // Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner // ISBN-10: 0321502795 // ISBN-13: 9780321502797 // Publisher: Addison-Wesley Professional // URLs: http://safari.informit.com/9780321563835 // http://www.opengles-book.com // … | |
Dear all, I have a challenge here of understanding the page masks as used in this code; <? $access_level_map['loader'] = 1; $access_level_map['support'] = 3; $access_level_map['admin'] = 7; $access_level_map['superadmin'] = 15; define("LOAD_PAGE_MASK",1); define("SUPPORT_PAGE_MASK",2); define("ADMIN_PAGE_MASK",4); define("SUPER_ADMIN_PAGE_MASK",8); $pageMaskMap['add_employee.php'] = SUPPORT_PAGE_MASK; $pageMaskMap['awpdc.php'] = SUPPORT_PAGE_MASK; $pageMaskMap['awpdc_blocked.php'] = SUPPORT_PAGE_MASK; $pageMaskMap['awpdc_unblocked.php'] = SUPPORT_PAGE_MASK; ?> What I know … | |
How to play mp3 files in java using eclipse? | |
Till now I was expecting that there in no block level scope in Javascript. But after reading this article I came to know that block-scoped variables are introduced in javascript. Although this article <[Everything you need to know about Javascript variable scope](http://www.coolcoder.in/2014/03/everything-you-need-to-know-about.html) > has a very good explaination about the … | |
Hi, I am writing the content of a long text file in pdf using PDFbox API in java but only half the page I am able to write please assit me with it asap here is my code: import java.io.IOException; import org.apache.pdfbox.pdmodel.PDDocument; import org.apache.pdfbox.pdmodel.PDPage; import org.apache.pdfbox.pdmodel.edit.PDPageContentStream; import org.apache.pdfbox.pdmodel.font.PDType1Font; import org.apache.pdfbox.pdmodel.font.PDFont; … | |
Hey guys, I am having some difficulties regarding a select query logic. Then I have a table with products and it has a column -> submodel with all kind of data in it.  What I want to achieve is to **STRIP** (with REGEXP?) all the strings starting with … | |
Hello, I am getting the error: "Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException:15" There is definetly something I am doing wrong but I cannot figure out what. Any help will be appreciated. The error in the output is poiinting to line 119; if(R[currentState][action] > -1){. I tried to change this but no … | |
First of all, I want you all to know that I am illiterate when it comes to computer porgramming and all of the other aspects that make a computer work and function; I will not be using the correct terminology and I ask that you answer my question in lamence … | |
Oldest question in the book. Google says: SELECT NOW()+ 0; And a bunch of other things like UNIX_TIMESTAMP() but doing a select on these, it only returns the seconds, not including the miliseconds. Basically, I need, from MySQL's side the milliseconds. How can I do this? | |
I am developing an android application using java with SQLite. The following code make the error: String selectQuery = "SELECT * FROM User"; Cursor cursor = db.rawQuery(selectQuery, null); I checked my program and I found that the cursor make unfortunatly error. Please help from where is the error come?? | |
1) write a C++ program that reads 50 integer numbers and prints the smallest three numbers. | |
I need help regarding with the computation of what the user order it seems that the options doesn't have a value to be computed please help me how to put values in every options and one more thing is i need help with the codes for the checkbox for additional … | |
Hi, I am working on a project building a scanner based on Lex and Yacc. I have added "gettimeoftheday" function to display total scanning times, now i want to find a way to print the line numbers in the terminal.plz if anyone can help me in this.Here is my yacc … | |
#include <iostream> #include <cstdlib> using namespace std; // function prototype for add int add (int x, int y); int sub (int q, int r); int mul (int s, int t); int divi (int u, int v); int main () { int a,b; char ch; loop:cout<<"ENTER CHOICE OF OPERATION: + - … | |
I was trying to find an answer for my issue over the net, but it was hard to find any relevant information. I'm in the middle of my school project and I got stuck in a dead point! I have a form which looks like this: http://i60.tinypic.com/24zjfpl.jpg I don't know … | |
Python keeps getting stuck on this line because there is no attribute "numerator" (and I'm assuming it'd say it has no attribute for denominator either). third = Rational(25, 10) print ("third: 0/1".format(third.numerator(), third.denominator())) For my Rational class, I've got def gcd(a, b): if b == 0: return a else: return … | |
I was asked to create a program to find word frequencies, word length in a text file. I am able to use map to do the frequencies part but don't know how to sort the the output accordingly to the length of the words. The example output that I should … | |
I have to take a 5 element array and use a function with pointers to make a new array that is one element bigger and shifted 1 place. I have it working so that it shifts one place but the function isn't making the array one element bigger. Any sugestions? … | |
Hi Guys I dont know what I have done wrong I'm accessing phpmyadmin through xampp on windows 7, when i changed the password on root@local host it locked me out with this #1045 - Access denied for user 'root@localhost'@'localhost' (using password: YES) what do i need to do? | |
I've got an odd question ( I think ) I have to do a header redirect to a remote server The page on the remote server is just ugly. no background no formatting, etc... The vendor that hosts it says that I can use CSS to dress it up a … ![]() | |
Hi, I have problem going through database (im using microsoft access) tables with BindingNavigator. Basicly I want to have BindingNavigator which goues through database tables (not the table rows) in DataGridView. For example if i press next button on BindingNavigator, I want to see next table in the database. I … | |
What is the most efficient way to get the number of rows from a table? I'm able to do it with the following code, but looping through a recordset of one row seems inefficient. Is there a better way to do this? <?php $con=mysqli_connect("0000000000","0000000000","0000000000","0000000000"); $sql = 'SELECT count(*) AS t … ![]() | |
If anyone is able to help, I'd like to create a single-line text on my site that says "Happy birthday to Samantha" whenever it's her birthday, or whenever it's another kid in my program's birthday. Including the capacity for multiple birthdays on the same day (comma spaced), the date, and/or … | |
Hi, I didn't know where to place this thread :) Any recommendations for an IDE app to save snippets of code within the program, I looked online, and there are many options, too hard to pick ! :) | |
Hello, I am trying to figure out the direction i would need to go in order to create the circuit in Digital Works. Right now I am stumped. I do have a working asynchronous counter that can go from 0-13. Can you help push me in the right direction? | |
I am trying to add some text in to a page by using a textarea where text is entered the text gets saved in to a database after clicking on a add button on a page. However, I am unable to achieve this after trying. I have two tables matchreportcomments … | |
Hi Guys, Can you Tell Me What is the wrong of my Code. This is my Code. I am Using DOM Extension! <?php require_once("dompdf/dompdf_config.inc.php"); $conexion = mysql_connect("localhost","root",""); mysql_select_db("evaluation",$conexion); $codeHTML=' <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Download</title> <link href="css/style.css" rel="stylesheet"> </head> … | |
Hi, I am making a game in JS where a player has to move in a grid movement and the grid contains squares of different colours. Each colour should affect the player's speed. I am learning JS so I appreciate any help. I have the following code at the moment: … | |
Hi, I need to make a game in JavaScript where a user moves an image (or anything) around a grid and if they hit a wall they lose a life and in each grid box there needs to be colours and different colours have different speed affects on the player. … | |
 Create a flowchart to calculate the accumulated points of a few students and determine the average of the grades points. ![]() | |
I am trying to toggle between the two toolbars and couldn't do it with the code below. Not sure where the problem is.... Any ideas are very welcome!!! Here is the code: `Inline Code Example Here` import wx import wx.grid import wx.html import wx.aui from time import * import cStringIO … | |
Write a program that takes two input strings S1 and S2 and finds if S2 is a substring of S1 or not. If S2 is a substring of S1, the program should print the index at S1 at which there is a match. If S2 is not a substring of … | |
Hi Guys I've now sorted the sql query and the database is now sorted, but now I want to connect the PHP and sql database Config.php file //Mysql Connect | mysql_connect("host","username","password"); //Below example to connect in localhost $a=mysql_connect("localhost","root",""); //select your database $b=mysql_select_db("database_name",$a); I take it I need to specify the … | |
Hi guys i have been making this solor system simulator in python. I have added four planets and now I am trying to make it look a little nicer. What i am have trouble with is setting the background colour to be black (to give more spacey feel). But what … | |
I wrote this code to find if string s2 is a substring of string s1. However I'm getting time limit exceeded. How can I make my algorithm better? #include<stdio.h> int main() { char s1[20], s2[20]; scanf("%s %s", s1,s2); char *p, *q, *count; p=s1; q=s2; int i=21; do{ if(*p==*q) /* the … | |
Imports DemoExcelFileHandling.DataSet1 Imports DemoExcelFileHandling.DataSet1TableAdapters Public Class ReadFromExcel Private dt As New dtMonthDataTable Private ta As New taMonth Private bs As New BindingSource Private Sub BindUI() dgvExcelData.AutoGenerateColumns = False colYear.DataPropertyName = "Year1" colMonth.DataPropertyName = "Month1" colFacility.DataPropertyName = "Facility" colProductCode.DataPropertyName = "ProductCode" colProductDesc.DataPropertyName = "ProductDesc" colUnit.DataPropertyName = "UnitOfIssue" colBegBalance.DataPropertyName = "Beginning_Balance" colQtyReceived.DataPropertyName … | |
Can i help U ? Need to get information into the Order . | |
I've developed an application in vb 2010 and my back-end is sql server 2008. What are all the softwares i need to install in the client machine ? |
The End.