64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for IcyFire

I need to write a program (using Dev-C++) which can count the number of hyperlinks of a given web page. The main objective is to practice socket programming and try to use HTTP protocol. I am not sure exactly how to go about doing this. Can anyone help me figure …

Member Avatar for IcyFire
0
271
Member Avatar for adishardis

Hi, I have a json_encoded array that comes out like this `{"y":33,"customTooltip":"BOK"},{"y":61,"customTooltip":"DRFlytt"},`... I need it to come out without the quotes surrounding the y and the customTooltip and singlequotes around the last value like this `{y:33,customTooltip:'BOK'},{y:61,customTooltip:'DR'},` Is this possible or should I find another approach? I derive the array like …

Member Avatar for adishardis
0
136
Member Avatar for shahai.ali

hi i made a search but couldn't find a satisfied answer. any ways let me ask the question. as there are many freinds on facebook, twitter at social sites. and many other at gmail, yahoo and hotmail etc. now what i want is how to invite all the friends or …

Member Avatar for AndreRet
0
291
Member Avatar for DEAD TERMINATOR

On my site, I have navigation buttons that navigate through results of a search. Basically, what I want to do is to disable certain buttons at certain times (i.e you can't click the next button if you are on the last result). I'm looking for a way to do this. …

Member Avatar for diafol
0
259
Member Avatar for crownedzero

I'm just curious about the use of frames/panels etc. What's are your general practices and why? Single main JFrame with multiple internal then toggling visibility of panels within? Just starting with swing and rather curious how other people implement them.

Member Avatar for jalpesh_007
0
138
Member Avatar for davkam

tickets consist of four colours: green, blue , red, and white. each ticket has an associated price: green cost €5, blue cost€10, red cost€20, white cost€30. write an enumerated class Ticket that has a toString method that pretty prints it and a getCost method that returns its cost.

Member Avatar for jalpesh_007
-1
210
Member Avatar for jalpesh_007

Dear all, I have following code and i want to write elements of array in single string(merge with ,) , in between all the values. like a[0] = "hi" a[1] = "hello" a[2] = 1 a[0] = "get" a[1] = "post" a[2] = 2 a[3] = 45 then i want …

Member Avatar for jalpesh_007
0
304
Member Avatar for HLA91

Hi all I am a noob to C++ and I was getting some source code off the web and this is the second time it has happened, when I compile (Blood Shed Dev) I get a message in the compiler "permission denied" "Id returned 1 exit status" Can anybody help …

Member Avatar for graceville
0
3K
Member Avatar for James19142

Im having this weird runtime error whenever I attempt to copy a specific member of an array block. I get this from the output: ASSERT failure in QHash: "Iterating beyond end()", file tools/qhash.cpp, line 293 Invalid parameter passed to C runtime function. Invalid parameter passed to C runtime function. I …

Member Avatar for James19142
0
910
Member Avatar for LastMitch

Hi, I'm trying to preventing consecutive duplicate pages. For example when I refreshed a page it show a word from each page and when I refresh again it should show a different word from a different page not staying on one page. This is my pages: Page1 = Mozart Page2 …

Member Avatar for LastMitch
7
437
Member Avatar for LD Company

Hello programmers! I am making File Browser software and I want to display icons of my files in listview. Here is the code: ImageList1.Images.Clear() Dim di As New IO.DirectoryInfo(LocationA.Text) Dim aryFi As IO.FileInfo() = di.GetFiles("*") Dim fi As IO.FileInfo For Each fi In aryFi For Each files In System.IO.Directory.GetFiles(LocationA.Text) Dim …

Member Avatar for john.knapp
0
4K
Member Avatar for TeaAnyOne

12347 10000 secretary James Harrison 12348 20000 secretary Jade Powell 12341 40000 consultant Adam Johnson Hi, lets just say that the text above is a text file. How would I go about searching and printing the rows with 'secretary' only? Or any other value? When the user is asked to …

Member Avatar for TeaAnyOne
0
180
Member Avatar for slasel

can someone please help me I am facing a problem; I want to draw an image in the canvas depending on the value of the IntVar called position however I get an error; Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in __call__ return self.func(*args) …

Member Avatar for vegaseat
0
286
Member Avatar for voidyman

[CODE] #!opt/local/bin/perl5 use strict; use Spreadsheet::ParseExcel; use XLSX.pm; my $oExcel = new Spreadsheet::ParseExcel; die "You must provide a filename to $0 to be parsed as an Excel file" unless @ARGV; my $oBook = $oExcel->Parse($ARGV[0]); my($iR, $iC, $oWkS, $oWkC); print "FILE :", $oBook->{File} , "\n"; print "COUNT :", $oBook->{SheetCount} , "\n"; …

Member Avatar for 2teez
0
394
Member Avatar for apanimesh061

I sent a C++ code snippet from textarea to another page using php. Evenything got printed but the as the header file was <iostream>, it did not get printed. Any piece of text that is enclosed by <> is not printed. What should I do ? Please help!

Member Avatar for deceptikon
0
104
Member Avatar for bobys

Hello, I would like to know if there is any wway to change the Title of an input box( Left Upper Corner). Lets say we have the input box: x= input("blah blah blah") if we run that the title of the input box would be like "Python input" or something, …

Member Avatar for bobys
0
331
Member Avatar for FakeTales

I have a client , middleware and server . The concept is a client sends a number this passes through the middleware to the server. The server checks the number against the number generated on the server side , if the client guesses the number correctly a message is then …

0
101
Member Avatar for riahc3

Hello First off the server is running Windows 7 32bits. I have the following code: <?php $fp = fopen(getcwd()."/test.txt", "w"); fwrite($fp, "hello"); chmod(getcwd()."/test.txt", 0777); unlink(getcwd()."/test.txt"); fclose($fp); ?> It creates the file perfectly but afterwards I cannot delete it. Giving me this error: Warning: unlink(C:\test.txt) [function.unlink]: Permission denied in C:\writeanddel.php on …

Member Avatar for Ezzaral
0
1K
Member Avatar for rookanga

I have two forms with one listbox on each form. How can I show what I have in the listbox on form1 on form2. I have a button on form1 to go to form2 [CODE]Private Sub btnform2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnform2.Click Form2.Show() Dim sTemp As …

Member Avatar for imatepda2k
0
2K
Member Avatar for acerious

OK, my code is very long. But this one is a little tricky so just bare with me here guys. What my program does is generate a text file with random numbers, for eg: 123 1234 12345 123456 And the program takes in that file and puts the random data …

Member Avatar for acerious
0
313
Member Avatar for coder91

I have a page that allows a user to enter a reference then select the app that they want. The reference is stored as session and is used on other pages to show the user their recording against that reference. On this particular page (after they have chosen the app) …

Member Avatar for coder91
0
138
Member Avatar for serkan sendur

hi guys, it took me some time to find out how to export listview to excel, so i wanted to share it with you. i would like to post this thread as code snippet but in that section there is no attachment button that i can attach project to. i …

Member Avatar for erickaurazo
0
7K
Member Avatar for shahai.ali

i have following form in html: <form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file"><br> <input type="submit" name="submit" value="Submit"> </form> and my upload_file.php is in the following: echo "Upload: " . $_FILES["file"]["name"] . "<br>"; echo "Type: " . $_FILES["file"]["type"] . "<br>"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . …

Member Avatar for shahai.ali
0
2K
Member Avatar for istrika

Hi all, I'm having some trouble inserting records into my MySQL db because of how I've set up my foreign keys. The problem is, I don't know how to fix it to make it do what I need it to. Here is my schema: http://imgur.com/t5bVt Here is my php code …

Member Avatar for istrika
0
1K
Member Avatar for coder91

I have a page that allows the user to select various options from drop down lists. Below this is a gridview recording the details that have been submitted previously. So when the user hits submit their data is stored in a database and the gridview is rebinded to display this …

Member Avatar for coder91
0
164
Member Avatar for kikiey

can anybody help me how to make a LAN connection for messenger such as yahoo in a big connection like in hostel? i use microsoft visual basic 6 and microsoft access as a database. pls help me :(

Member Avatar for AndreRet
0
290
Member Avatar for amishraa

The idea is to check whether if phone number already exists(data table). If the number exists, then it will create a new row under another table(output table) with the customer ID for that customer. Table data is where pre-loaded phone numbers are stored. Table input is the table where feed …

Member Avatar for john.knapp
0
173
Member Avatar for hwoarang69

let say i create session in login page. here session is on id and username. $_SESSION["id"] = $id; $_SESSION["username"] = $username_p; now to see who loged in i can do this $user_name_s = $_SESSION['username']; //has the name of who is loged in now how do i do this with cookies? …

Member Avatar for LastMitch
0
108
Member Avatar for Djmann1013

Hi, I have no knowledge of preg_match(). I was wondering on how to detect if the text I send to the function, and only allow the text like this: sample1127 Like that, with no underscores or anything. Just text and numbers. I would be happy if you helped...

Member Avatar for Djmann1013
0
212
Member Avatar for Djmann1013

I have this code right here: if(isset($_SESSION['username'])) { header("location: home.php"); exit(); } This code works, but I want it to redirect to home.php with out having to visit a different page and then the page this code is on to trigger the code. I don't know how to do that. …

Member Avatar for Djmann1013
0
1K
Member Avatar for mohamedasif18

Hi Guyz, Am facing an issue that $_GET[] not working in my Mod_Rewrite, My Odd URL is : http://groupon.ig-demo.com/index.php?id=12&dealname=Oil%20Treatment My Friendly URL is : http://groupon.ig-demo.com/id/12/Oil%20Treatment.htm And My HTACCESS is : Options +FollowSymlinks DirectoryIndex index.php RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] RewriteRule ^id/([^/]*)/([^/]*)\.htm$ …

Member Avatar for diafol
0
297
Member Avatar for galhajaj

hi :) i am new in C#, i am trying to make a little chess program and i need help in the chess board making. i make a new class "Square" that inherit from PictureBox (Square:PictureBox) and i made an array of 8x8 of Square in the Form1.cs and i …

Member Avatar for thousandbanks
0
1K
Member Avatar for FALL3N

I could probably/def read a text file with javascript by embedding some ruby in there but I want to know how to do it with javascript. My code follows: [CODE] <HTML> <HEAD> <TITLE>"Text File"</TITLE> <SCRIPT LANGUAGE = JAVASCRIPT> function handleFile() { var myFile = document.getElementById('txtF') var fileContents = System.IO.File.ReadAllLines(myFile); document.form1.textfield.value=fileContents; …

Member Avatar for L0st
0
18K
Member Avatar for MissAuditore

*Hi, I am trying to plot a 3D surface plot. I have a list of x,y,z values. They are all of different dimensions. y1 y2 y3 y4... x1 z11 z12 z13 z14 x2 z21 z22 z23 .... x3 ................. x4 x5 . . . etc..* import csv from mpl_toolkits.mplot3d import …

Member Avatar for dashing.adamhughes
0
272
Member Avatar for rodrigo.l.salazar.14

Hello I need to read 50 intergers from a text file and put them into an array. and output or show the user the numbers. for example: 23 73 58 49 34..... I need them to go into my array. I tried this code but it just outputs -850993. Heres …

Member Avatar for rodrigo.l.salazar.14
0
161
Member Avatar for theguitarist

I read [here](http://www.google.co.in/url?sa=t&rct=j&q=can%20have%20any%20(odd)%20b%20tree&source=web&cd=1&ved=0CDAQFjAA&url=http%3A%2F%2Fwww.cs.uga.edu%2F~eileen%2F2720%2FNotes%2FBtrees.ppt&ei=PcK3UPy4IcbYrQe7-oC4Cw&usg=AFQjCNFC0kjGfN16J-I0S5o3HEjBUxmpKg&cad=rja) that an m-way B-Tree can have m only odd. Is that really true? I've used 2,4 trees that allow a maximum of 4 child linkages for each node (and a minimum of 2). Isn't this a 4-way B-Tree?

Member Avatar for theguitarist
0
771
Member Avatar for cheelo007

Ok, I may be missing something very easy but when I submit and query the database the session doesn't set for some reason and I'm sent back to admin.php per instruction of my index.php file. Could someone please give this a look over, maybe it's a very simple fix, but …

Member Avatar for cheelo007
0
383
Member Avatar for arishy

From the script below, the commented part of the script is to prevent the script from hanging. The script as is , is working once I uncomment the openning of the file to retieve the body of the email, the script hang. use Email::Send; use Email::Send::Gmail; use Email::Simple::Creator; # open …

Member Avatar for arishy
0
331
Member Avatar for arcticM

i added the draggable functionality to one of my divs using the jquery-ui draggable like in their example here http://jqueryui.com/draggable/ so if the draggable div has text inside it `<div id="draggable" class="ui-widget-content"> Drag me around</div>` how can i enable the option of being able to select the "drag me around" …

Member Avatar for AleMonteiro
1
248
Member Avatar for kindofsudden

Being somewhat new to VB.NET, I built a data solution by using wizards and drag-and-drop on forms. My data is in an Access DB and I opened up those tables with Server Explorer and dragged them into my dataset. I connected the tables to datagridviews. Worked like a charm. Then …

Member Avatar for john.knapp
0
416
Member Avatar for shahai.ali

hi i am working in php. and my assigned task is to upload a file and save it into the directory. i have install wamp into D-drive but it not working and dont get the path. i was trying the following: <?php echo "Upload: " . $_FILES["file"]["name"] . "<br>"; echo …

Member Avatar for hakeemtunde
0
273
Member Avatar for jean1234

Hi, I am new to windows forms. I used the 2 lines of code below to launch a c++ code from a windows forms GUI and it worked: Dim lngReturn As Long lngReturn = Shell("c:\MyProgams\cfile.exe", vbNormalFocus) I hope someone can help with the issue below: My interface includes some text …

Member Avatar for AndreRet
0
312
Member Avatar for adam.adamski.96155

Hello :) I'm working with a database of postcodes. I have an existsing query that returns the postcodes within a certain radius: `select *, acos(cos(51.496502411798 * (PI()/180)) *cos(-0.13982862499836 * (PI()/180)) *cos(lat * (PI()/180)) *cos(lng * (PI()/180))+cos(51.496502411798 * (PI()/180)) *sin(-0.13982862499836 * (PI()/180)) *cos(lat * (PI()/180)) *sin(lng * (PI()/180))+sin(51.496502411798 * (PI()/180)) *sin(lat …

Member Avatar for pritaeas
0
140
Member Avatar for sachins1986

how to get null field value from access in vb6 in my 2 record field the value is empty but i'm not able to get that empty field in vb6 ... .... set rs = new adodb.recordset rs.open ("select * from table1 where id = '2'") text1.text = rs!name please …

Member Avatar for AndreRet
0
2K
Member Avatar for hakeemtunde

Hello guys, i've being searching for how is it possible to get value of a form element i.e selection tag that was injected by jquery be access on submitting the form. All the form element value where posted except for the selection element that was injected with jquery. how can …

Member Avatar for hakeemtunde
0
101
Member Avatar for coder91

I have an increment and decrement button to all users to record against 4 different options (how many times this option has been done) So they choose the options from a drop down menu and then the panel appears that the two buttons are sitting within. It starts with the …

Member Avatar for coder91
0
133
Member Avatar for Bile

-->>Hi,I am getting tired of recreating the menus in every form I design my be due to lack of information... -->>Thus I was wondering if there is a way that I write codes in may be a module so that I may be using it... -->>by just calling it in …

Member Avatar for AndreRet
0
227
Member Avatar for ponkhiraj

Hello, In my program, I have added a SplitContainer with Fill on Form. Where Panel1 keeps all Button and Panel2 keeps other objects, I'm trying to code on SplitContainer_MouseMove event. But it does not work when i'm Panel1, If i move mouse pointer to panel2 and go again in panel1 …

Member Avatar for ponkhiraj
0
596
Member Avatar for marifard

Hi, It is possible to make a software with a database such as MS access and make it available for everyone without need of a server or without a need to install the database software and/or make the database from scratch? Thanks Mario

Member Avatar for Momerath
0
188
Member Avatar for aldred

<?php include 'include/AnonymousHeader.php'; $CON = @mysqli_connect('localhost', 'root', '', 'allyouneed') OR die('Could not connect to MySQL: ' . mysqli_connect_error()); ?> <table width="700"> <tr> <td> <h1>Sales Registration</h1> </td> </tr> <?php if (!(empty($_SESSION['LoginStatus']))) { $SQL1 = "SELECT * FROM sales"; $STM1 = @mysqli_query($CON, $SQL1); $ROW = 0; $SalesID = ""; if ($STM1) { …

Member Avatar for LastMitch
0
612

The End.