199,114 Archived Topics
Remove Filter ![]() | |
I am trying to pass values for Array through PHP but i cant get to make work! Some one please help here is the code i tried [CODE]<?php $masterkeylist11 = file_get_contents('http://domain.com.com/full/forbidden/finalkeys.txt'); $myvar = array($masterkeylist11); echo $myvar[3]; ?> [/CODE] The in file contents of finalkeys.txt [CODE]googlecom,yahoocom,bingcom,rediffcom,ebaycom,googleus,googleca,[/CODE] Some one please tell me … ![]() | |
Hi, first of all, sorry for my english, but I´m having a problem and I can´t resolve it. This is part of my jsp code: [CODE]<% if( session.getAttribute("usuario") == null ) response.sendRedirect("index.jsp"); ArrayList pacientes = new ArrayList(); String mensaje=""; String dni="", nombre="", apellido="", email="", sexo="", telefono="", fechanacimiento="", obrasocial="", codigo=""; String … | |
what is FPE? how do i correct this in my program....tried everything...:sad: [code]#include<iostream> using namespace std; int factorial(int a) {int f=1; for(int i=1;i<a+1;i++) { f*=i; } return f; } int main() { int factorial(int); int n;cin>>n;int x=n/2,y=n%2,d,e,f,sum=0; for(int i=0;i<n;i++) { d=factorial(x+y);f=factorial(y); if(x==0) { e=1; } else { e=factorial(x); } if(y==0) … | |
btw this is a part of a battleship code i want to know what the integers a,b,c,d,e,f... do I know this has something to do with placing ships randomly but it is a little complexed for me. I'd appreciate it if someone took their time to explain it [CODE]int placeship( … | |
i) My Table contains no of columns and a jcheckbox i the last column. ii) I am using a combobox to select certain value. iii) based on the value of combo box the jbutton loads the data into the table. iv) when i [B]reload[/B] the data into the table, the … | |
![]() | Hi, I have been trying to change the highlight color when the mouse gets on it of the stripmenu...how do I do that? Thanks in advance. |
I am using IIS 7.5 and ASP MVC3 . I have used a third party forum in my site (with username passwords). when user tries to access the forum for the 1st time it gives 302 error and shows the redirect link without redirecting to the forum. After the first … | |
[CODE]#include <iostream> #include <windows.h> #include <conio.h> using namespace std; int selectHero(); void Str(); void Agi(); void Int(); void Kunkka(); int Item1(); int Item2(); int ChooseI(); void NormalAtk(); void AInormalAtk(); void Choice(); void Attack(); void Skill(); void Defend(); int Run(); void AIchoice(); void AIattack(); void AIskill(); void AIdefend(); int AIrun(); void … | |
Hii Respected Forum members can anyone solve my problem what i want content restriction based on user role and sidebar category based on user Role i have three type of user role Beginner,Intermediate and Advance... Beginner Role: Can Read only seff Blog Intermediate: can Read self and Beginner Blog Advance … | |
I want to figure out how this loop sequence how would the computer execute this loop by going through all the steps in the picture attached. | |
Here is a sort of description to my yet-unimplemented AI agent to play tic-tac-toe. It doesn't have to win, it just has to work, and my description of it has to be good. Tell me what you think: [code] /* "RATION_AL" The goal of my agent is to implement an … | |
[CODE]char *ReadFile(string& filepath) { string buffer=""; char temp_char; ifstream file; file.open(filepath); while(!(file.eof())) { file.get(temp_char); buffer+=temp_char; } size=buffer.length(); char *result1=new char[size]; for(int i=0;i<buffer.length();i++) { result1[i]=buffer[i]; } file.close(); return result1; }[/CODE] code looks pretty normal right? but when I run it with the rest of the program this happens... [url]http://imageshack.us/photo/my-images/267/chararray0001.jpg/[/url] [url]http://imageshack.us/photo/my-images/28/chararray0002.jpg/[/url] [url]http://imageshack.us/photo/my-images/11/chararray0003.jpg/[/url] … | |
Hi everybody, Actually I'm trying to do small form that has a textbox for BARCODE which when I scan an item it will add on my listview but I recieved this error that I don't know what went wrong in my code "System.NullReferenceException: Object reference not set to an instance … | |
Hey all, I've finally embarked on my journey of Mobile app development in java and I've ran into a stop sign already, lol. So I am working with the latest stable release of NetBeans, totally new to it, And I am working with a macbook (leopard 10.5.8) yeah I've had … | |
[CODE]public class Grades{ public int scoreTotal; public int numScores; double average; static String file = "randomNumbers.txt"; int lowest; int x; int temp; public static void main(String[] args) throws FileNotFoundException{ int scoreTotal = 0; int numScores = 0; double average = 0; int lowest = -1; int temp = 0; Scanner … | |
Hi a have 4 tables [ICODE]Table A ID | Data 1 --------------- 1 | A 2 | W [/ICODE] [ICODE]Table B ID | Data 2 ----------------- 1 | B 1 | C 2 | X [/ICODE] [ICODE]Table C ID | Data 3 ---------------- 1 | D 1 | E 1 … | |
I was just wandering if there was a way to put information in to a string but increment a section of the text when putting it in the string. To put it simply: [CODE]string="to be put in string[this is to be incremented]";[/CODE] I was wandering if there is a way … | |
"Draw a grid of 20 streets horizontally and 20 streets vertically. Represent the simulated drunkard by a dot, placed in the middle of the grid to start. For 100 times, have the simulated drunkard randomly pick a direction, move one block in the chosen direction, and draw the dot. Use … | |
I think it's just ging to be something stupid that I've missed since the program itself runs, though doesn't solve the decrypted text. I've included the text from the decrypted file below the code and any help would be great. [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Frequency_Analysis … | |
hi m using php n mysql m trying to merge two tables of same database and then print them but somehow it is not working it gives me the error my code is [CODE]<?php session_start(); print_r($_POST); $con=mysql_connect("localhost","root",""); mysql_select_db("pras2",$con); $date= $_POST['date']; $shift_num=$_POST['num']; $query="SELECT shift_id FROM shift WHERE shift_no='$shift_num' AND date='$date'"; $result=mysql_query($query); … | |
Hi there guys, I seem to be having a problem with my java code. Scenario; I have an array, this is generated according to the user; entering 200; will give him 200 numbers. These numbers are supposed to be semi sorted. To achieve this i created a random array, then … ![]() | |
Hey, i want to enter a number by user. [CODE]printf("Enter a number: "); scanf("%d",&number);[/CODE] but,user enter text.i mean: [B]Enter a number:[/B] One Now,i want to convert this text to number. [I]I hope,i tell my problem.Sorry my bad english.[/I] | |
Hi i'm a newbie in pl/sql and i need some help from the experts. I'm a vb programmer. Just want to ask you how do you do this in pl/sql? If I log in on my account my username should appear in a textbox. From this LoginForm I have 2 … ![]() | |
The program is supposed to compute the values of [URL="http://mathworld.wolfram.com/GammaFunction.html"]Euler's Gamma Function[/URL] using an infinite product (formula #15 in the link), and it does so decently for low values, but the error gets too big for bigger values. Using both Mathematica and Maxima for reference this is what I get … | |
please disregard this as i have figured out what was going on. i will delete this as soon as i know how. | |
Ola' daniweb, long time no see. I've been absent for a while, mostly due to not having any problems to ask about, but also because I got one of those annoying 'job' things ^_^. Anyhow, I'm not terribly familiar with C# (being from c++ land), however I've got to use … | |
Hi daniwebbers, I am a newbie learning java and keep getting a "cannot find symbol" error when I try to compile my program. I've tried searching but I don't really know what search terms I should be using in this case. Can anyone see the problem? [CODE]import javax.swing.*; import java.awt.event.*; … | |
Hello, I'm creating a Matrix, that the user can manually define the rows and columns.. (This will be defined in a class) But, I'm having trouble resizing the vector to what is set in main.. Here is the code: Matrix.h [code] #ifndef _Matrix_h #define _Matrix_h #include <vector> using namespace std; … | |
[CODE]#include <graphics.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> #include<dos.h> #include<math.h> union REGS in,out; void hide_mouse(); void show_mouse(); void detect_mouse(); void detect(int*,int*,int*); void main(void) { int gdriver = DETECT, gmode, errorcode; int xmax, ymax; initgraph(&gdriver, &gmode, ""); errorcode = graphresult(); if (errorcode != grOk) { printf("Graphics error: %s\n", grapherrormsg(errorcode)); printf("Press any … | |
I need to make the last 5 bits of the unsigned int become zero(1111_1111 to 1110_0000) There are two solution [code] unsigned int number = 0xFFFF; unsigned int temp_one = number & (~0x1F); unsigned int temp_two = number >> 5 << 5; [/code] which one is faster? I write a … | |
I want to decrypt the bootmgr file on my system.. I want to use the unprotect() method... I need to know that is it possible to do it with unprotect(), being the administrator of the machine.. And what should be given as the entropy value? Should the entropy value be … | |
How to set case sensitivity in ms access database? I need it for password column. | |
Hi there)) I know that one of the ways to pass variables values into thread -is to create a special structure which includes all needed parameters/ But what about getting values from thread? Is it any way to get value after modification from the thread ? I know only one … | |
Using VWD Express 2008, GoDaddy Hosting, SQL Server, ASP.Net VB I am very new to ASP.Net and have been working on a site and at one point, everything worked properly on local server. However, I have uploaded the site to GoDaddy hosting and the log-in function of the site does … | |
Hello I have a sequence that looks like this: 60211401dc070000 which is a string (it was build through a series of concatenations and conversions) How can i just tell him that it is actually a hex ?? without modifying it's value... Thanks! Have a nice day | |
[CODE]//So I'm writing this program that converts change into smaller denominations. //For example .97 would be 3 quarters, 2 dimes, 0 nickels, with 2 remaining. //The program compiles and runs but it's not the completely correct output. Can //anyone help. //Converts change into small denominations. #include "stdafx.h" #include<iostream> #include<conio.h> using … | |
Hi! I have this code in my program [CODE]sqlstat= "select bookNum from booktitle" sqlstat2="select bookNum, bookName from booklist where bookNum not in " & sqlstat & "and bookAuthor like '" ListBook.SelectedItem & "'"[/CODE] but it has "Incorrect syntax near the keyword 'and'" error... please help me with this... response is … | |
I m trying to pass a 10.10 value to double and it takes 10.1 instead of this? Any solution. | |
There is a threaded bst class program. I want to have a delete function for this class. every time I tried to write, not work. how can I have a delete func as simple as other funcs. I googled a lot but all codes are written with structs not with … | |
I'm curious about something. If I have a listbox that is databound and a filter is applied to that listbox based on the value in a combobox, what would be the best way to handle the null reference exception thrown when the form loads or the filter changes and everything … | |
please help me!!! im restarting the mysql server from putty: Empty pid file /var/lib/mysql/mysqld.pid for /usr/sbin/mysqld when i checked mysql status, unused running unused running what's the problem?? im using putty in configuring mysql server thanks in advance. | |
I have a DLL file written in C++, using Microsoft Visual Studio 2008. The socket class coding is an adaptation of [url]http://www.adp-gmbh.ch/win/misc/sockets.html[/url] and the whole thing works when compiled as a 32 bit DLL, but the Internet connectivity does not work when I compile it as a 64 bit DLL. … | |
Hey Guys, I'm looking for the best way to model my noSql Database to allow for user notifications and activity stream. what would the flow to something like this be? I don't want to annoy the user with 1000 notifications if they don't need that. Activities and Notifications will include, … | |
I cannot figure out why this will not execute. For somereason it does not like my inner join I believe but it works perfectly in management studio. Any ideas? [CODE] Dim column_1 As String Dim column_2 As String Dim column_3 As String Dim TotalCol As String Dim D As String … | |
[B]Parallel Resistance[/B] i am trying to input and calculate this for any given number of resistors and any value of the resistors. the formula is [B]1/R= 1/R1+1/R2+1/R3.........+!/Rn[/B] Could someone tell me how to input this into C++ could u explain a little on how to do this aswell. Thank you … | |
Hi, I want to convert Single Column values to Row. Table Original Content: Code Amount Expenditure 10027 5000.00 LOCAL CONVEYANCE 10027 320.00 LOCAL CONVEYANCE 10116 1589.00 TRAVEL EXPENSES 10095 350.00 LOCAL CONVEYANCE 10095 1215.00 TRAVEL EXPENSES Expected Output : Code LC TE 10027 5000.00 NULL 10027 320.00 NULL 10116 NULL … | |
I am creating a website that will display the web in an inline frame. I want to be able to drag links from the frame to a text element that acts as an address bar also located in the page. When the items are dragged and dropped into the address … | |
Hi, suppose I have a file named [B]first.txt[/B] from which I want to read. Suppose the text file looks like this: [quote] I like you. I feel your soul. [/quote] Now if I use this: [code] open cool, "< first.txt"; print <cool>; [/code] the entire file content is printed, but … | |
Hey Peeps! Im not too familiar with jQuery, Ive been wanting to make a tooltip for a "search result grid", each trigger should have a unique comment in the tooltip. so say for instance i have a php call like so: [CODE] <?php $query = mysql_query("SELECT * FROM `Cars` ORDER … | |
Hi list, Three functions use the following items vector. Where/how should i put the vector to make this possible ? Any reference to related sources will be appreciated. [CODE] vector< vector<int> > items ( 6, vector<int> ( 6 ) ); [/CODE] P.S I tried to make it static but it … |
The End.