64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for otengkwaku

Hi guys i will like to know how to reprecate fseek(fp, -1) in C to python. Thus send the read head a charactor back

Member Avatar for TrustyTony
0
159
Member Avatar for new_developer

Hi there, Is there a way to check a variable if it is not initialzed by value ? I need a check for all datatypes. int num; if(!(numIsNotInitialized)) num = 12; else cout<<"num : " <<num <<endl;

Member Avatar for mike_2000_17
0
357
Member Avatar for JOSheaIV

Hey guys, maybe you could help shed some light on an issue I ran into while running a program of mine tonight. I have built countless programs around downloading webpage data and parsing it to retrieve data, but during a running of one of my programs tonight I got an …

Member Avatar for JOSheaIV
0
292
Member Avatar for arjani10

Hello!Somebody can help me please how can i autolink any word i have in my webpage autolink in php ? example array $word_list = array ( 'dogs' => 'http://dogs.com', 'dog' => 'http://dogs.com', 'cat' => 'http://cats.com', 'kitten' => 'http://cats.com', 'horse' => 'http://horses.com' ) any text dogs in my website corispond to …

Member Avatar for arjani10
0
887
Member Avatar for MasterHacker110

I am have been programming in C++ for a few years now. Now I would like to also learn assembly language. I have tried NASM, but I dont like it, it works better on linux and my main development platform is windows. I have also tried FASM, its better but …

Member Avatar for pbj.codez
0
380
Member Avatar for LeNenne

Hi I have a lstdata3 with 4 emails in it and I will that thoose shall come up in a textbox seperated with ; at the end of each. the lstdata3 list is with the checkbox enabled so I can choose wich I will use. a commandbutton is used to …

Member Avatar for LeNenne
0
127
Member Avatar for xxmp

Hello I have a site. For not i just check the size of the image and if it is bigger than a size i just do not upload it. Is there a way to reduce the size and upload it later? Thank you DiskFileUpload fu = new DiskFileUpload(); FileItem fi4=null; …

Member Avatar for xxmp
0
301
Member Avatar for jrosh

I am using StingBuilder.append("Address : {0}, {1}, {2} {3} \n", Street1, Street2, PostalCode, City); Problem is if Street1 or street2 is null String builder returns , ,code,city. I want to remove those commas(,) as well. how can i do that? Thank you in advance.

Member Avatar for gusano79
0
164
Member Avatar for Mr.M

Hi DW I'm developing an ATM service and now I want to call the dispensor to dispence the amount enetered by the user after his/her balance has been validated, you don't worry about writing the validation balance code I wrote it so now I'm stuck here anyone who can help …

0
100
Member Avatar for new_developer

Hi there, I am implementing the concept of polymorphism and write following program of shapes. #include <iostream> using namespace std; class Shape { protected: double width, height; public: void set(double w, double h) { width = w; height = h; } virtual double get() { return 0; } }; class …

Member Avatar for new_developer
0
184
Member Avatar for davidjennings

Hi All - I am trying to modify the below script. Currently on page load the page will display the click image and the message in the dialog box. What I want to do is do it the opposite and just have the click image display and on click the …

Member Avatar for davidjennings
0
336
Member Avatar for P.manidas
Member Avatar for sanyam.mishra

I got some source code on net for displaying 256 bit bmp in turbo c++ which is using some assembly codes (actually using asm---about which I don't know anything). Unfortunately during compilation it give an error saying "286/287 instructions not enabled". Help me troubleshooting this problem.

Member Avatar for sanyam.mishra
0
727
Member Avatar for aVar++

Hello, I am creating my app and whenever a page loads it instantly focuses on the edit text. How do i stop this? - Mat

Member Avatar for coolbud012
0
88
Member Avatar for dilbert_here00

Hi All, I was wondering if any one of you observed the time taken to download or upload a file over ftp using python "ftplib" is very large as compared to performing FTP get/put over windows command prompt or using perl's "Net::FTP" module. I created a simple FTP client similar …

Member Avatar for dilbert_here00
0
541
Member Avatar for PsychicTide

Hey guys, think I've just been staring at this problem too long to find out how simple it is to fix... worked with several methods of finding and saving image dimensions to MySQL (actually used this same method several times), but the MySQL width and height is not populating this …

Member Avatar for PsychicTide
0
376
Member Avatar for showman13

Good evening, I have a client that wants to be able to display a list of contacts that have requested a call back from him. On this list he wants their phone number that was submitted. This is easy stuff to here... But then he wants to click on the …

Member Avatar for diafol
0
255
Member Avatar for CoilFyzx

Hello Good day. Here is the problem I am trying to solve. I have a table as seen below. ![232465554203149acd8363d3a4a127ae](/attachments/large/3/232465554203149acd8363d3a4a127ae.jpg "232465554203149acd8363d3a4a127ae") My GOAL: Columns A through G are going to be filled with integers. (I have already created an integer model so that these cells only take integers). As the …

Member Avatar for CoilFyzx
0
452
Member Avatar for Dani

What is the difference between: isset($foo['bar']) array_key_exists('bar', $foo) Is there a performance difference? Is one way more correct than the other?

Member Avatar for cereal
0
395
Member Avatar for poopuh

I've been asked to edit the code in this post http://www.daniweb.com/software-development/java/threads/455560/java-recursion-brute-force-sim so that it "Runs the function as a thread which wouldn’t then hang the program whilst it’s waiting for the result". I've looked it up, but I'm struggling to apply it to this program, any tips?

Member Avatar for JamesCherrill
0
645
Member Avatar for Ancient Dragon

I'm using VS 2012 and coding a try/catch block in an MS Access database project, but VS says OleDbException is not defined (see line 3 in the code). Anyone know why? I got some of this code from [here](http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/c822d48c-fd90-44a1-a186-a15e16966233/), and according to MSDN OleDbException is valid in vb.net Try data_adapter.Update(CType(binding_source.DataSource, …

Member Avatar for Ancient Dragon
0
240
Member Avatar for phpDave

Hello, I trying to learn how to create a forgot password page. I used some code from another forum and having some trouble with it. I get an error for the $recs and $row variables. Any feedback on this topic would be appreciated. Thank you. <?php require_once('Connections/connadmin.php'); ?> <?php session_start(); …

Member Avatar for srilatha12
0
220
Member Avatar for sanaQ

hey people. ok.. this is what i NEED to do.. Task > 1. User will add TODO list in the textbox shown in the GUI Windows Form. > 2. User will also select the date on which the task will be done. > 3. Once entered the above information, user …

Member Avatar for ddanbe
0
868
Member Avatar for abra_ka_dabra

I am using the following code to write to the file out1.txt: try{ FileWriter fostream = new FileWriter("out1.txt"); BufferedWriter out = new BufferedWriter(fostream); out.write("jlsdfjdlsfhsdkjf"); out.close(); }catch (Exception e){ System.err.println("Error: " + e.getMessage()); } Now i want to write to multiple files in the same code (let us say 2 files). …

Member Avatar for JamesCherrill
0
6K
Member Avatar for NitsPatel

hi, for wordpress theme which portfolio plugin is best for portfolio page thanks in advance

Member Avatar for NitsPatel
0
106
Member Avatar for raajsj

Hi all, i am developing web application, so if users want to use this application,first they should be register their details,at the time i have to send Userid and password to their Email address.now i'm have a code but it is not working,i got one error from this code. **the …

Member Avatar for raajsj
0
249
Member Avatar for LeNenne

Hi I wonder how to extract just rs("Email") from this code If rs.RecordCount = 0 Then Exit Function End If rs.MoveLast rs.MoveFirst max = rs.RecordCount rs.MoveFirst LstData3.Clear For i = 1 To max LstData3.AddItem rs("Email") rs.MoveNext Next i I have 10 different person in the databas but only 3 with …

Member Avatar for Jx_Man
0
146
Member Avatar for sirlink99

Hello. I submitted [this](http://www.daniweb.com/software-development/java/threads/455615/java-decryption-problem) post a little while ago where I had problems with decrypting what I encrypted. Now my problem is that when I encrypt something and then decrypt it, the decryption works with txt files, but when I try to decrypt microsoft documents, then they will not open. …

Member Avatar for sirlink99
0
550
Member Avatar for GeekPlease

Good day folks, I searched almost all the topics related to my problem but still no luck of finding some help. So, I've decided to create a new thread, hoping that someone can shed some light to my project. I have a program which reads text files line by line …

Member Avatar for GeekPlease
0
182
Member Avatar for sonicx2218

I have a Js program where I want to hide ONLY the horizontal axis. scrolling : 'no', is the only command that seems to hide the scrollbars, but I want only the x to be hidden. Is there any x axis equivalent to this code? Thanks

Member Avatar for sonicx2218
0
240
Member Avatar for vishalonne

Is there any way to show data from access table to some particular columns. For eg. Table have following data BCode TCode1 Slot1 TCode2 Slot2 TCode3 Slot Batch1 T1 10:00 T2 12:00 Batch2 T1 08:00 T2 09:00 T3 11:30 Batch3 T1 08:00 T2 10:00 T3 11:00 I want to show …

Member Avatar for ddanbe
0
210
Member Avatar for hashim5003

I want to count the number of attempts the user tried to guess the correct guess. How would i do that? like I have thought of a number. Try to guess it Take a guess: 5 Your guess is higher than mine Take a guess: 3 Your guess is lower …

Member Avatar for hashim5003
0
4K
Member Avatar for weeraa

This is my code. $arrivDate = $_POST['arrival_date']; echo $arrivDate; //Print correctly echo date("Y/m/d", strtotime($arrivDate)) ; // every time print 1969/12/31 echo date("Y/m/d", strtotime('.$arrivDate.')) ; // every time print 1969/12/31 but if i put like this, it is print correctly echo date("Y/m/d", strtotime("05/08/2019")); // Print like this --> 2019/08/05 (This is …

Member Avatar for diafol
0
169
Member Avatar for AppleR

So basically im creating this python adventure text game. And so far its good. But i have this problem with class instances(Is that the right term?) Say for example i have this class, class monster(object): def __init__(self,health,attack): self.damage = damage self.health = health So then I create a class object(again, …

Member Avatar for AppleR
0
345
Member Avatar for kantigniter

I have to sync with two tables in the database The following is the error I get: *A database error has occurred Error Number: 1054 Unknown column 'Array' in 'field list' INSERT INTO `client` (`interior_client_name`, `Interior_client_email`, `interior_client_mobile`, `interior_house_id`) VALUES ('a', 'b', '8989898', Array) Filename: C:\xampp\htdocs\ThinkInterio\system\database\DB_driver.php Line Number: 330* These are …

Member Avatar for cereal
0
5K
Member Avatar for mrboolf

Hi all there. Firstly I apologize if this is not a specific question (please do point it out if you find this unpolite). I don't have real problems so if you're not personally interested feel free to save your time and close this thread :) Anyway, I had to write …

Member Avatar for jsdncjnsci
1
449
Member Avatar for abra_ka_dabra

running 'java -version' on my cmd prompt gives me the version of my JRE but when i run my programs as 'javac abc.java' it says 'javac' is not recognised as an internal or external command, operable program or batch file. I have set the Path variable by appending C:\Program Files\Java\jre6\bin …

Member Avatar for JamesCherrill
0
351
Member Avatar for MasterHacker110

I am getting into game programming more and more. I have been learning DirectX11 but it is hard and very low level. I am looking for a game librarie that has these spesifications: Must be in C++ (the library doesn's have to be written in C++. As long as I …

Member Avatar for gabryprof
0
220
Member Avatar for nouth

So I have a string of the English alphabet for example. But I don't know the alphabet very well but I do know that it starts with "abc" and that it ends in "xyz". I want to remove letters "b" to "x". I want to do something like `str = …

Member Avatar for nouth
0
2K
Member Avatar for gobiking

Hello, I made a program that worked perfectly on one of my pcs. When I moved it to another computer I am getting an error now stating that I need to include a pointer on my fmin and fmax functions. I'ts somewhat lengthy but I want to know if maybe …

Member Avatar for gobiking
0
347
Member Avatar for dendenny01

How can I write a program to find the sum of the series given below:- ((1)/(2))+((3)/(4))+((5)/(6))+((7)/(8))+((9)/(10))......n I have written a code but it is not giving the desired result... #include<stdio.h> #include<conio.h> void main() { int n; float sum=0,i; printf("Enter nthe term"); scanf("%d",&n); for(i=0;i<n;i++) { sum=sum+((i+1)/(i+2)); } printf("sum=%f",sum); getch(); } Please …

Member Avatar for Schol-R-LEA
0
221
Member Avatar for pwolf

I'm not sure if this is the right place to ask , but is this erd valid? Or is it unacceptable? Thank you for any help.

Member Avatar for pwolf
0
166
Member Avatar for PM312

i have below code for my custom textbox to allow numeric chatecters for entering amount. Protected Overrides Sub OnKeyPress(ByVal e As System.Windows.Forms.KeyPressEventArgs) MyBase.OnKeyPress(e) If Asc(e.KeyChar) >= 48 And Asc(e.KeyChar) <= 57 Or _ Asc(e.KeyChar) = 46 Or _ Asc(e.KeyChar) = 13 Or _ Asc(e.KeyChar) = 8 Then If Asc(e.KeyChar) = …

Member Avatar for PM312
0
185
Member Avatar for peter_budo

I have four JTextFields where user is allowed to enter only numbers. Question is how do I do this?

Member Avatar for JamesCherrill
0
9K
Member Avatar for McLaren

Hello, there is overridden collection fetch function. fetch: function() { var collection = this; $.getJSON(this.url, function(data) { // do some processing to data here collection.reset(data); }); }, I need to do processing when I get data, so thats why overrride. But the thing - is - the models change event …

Member Avatar for McLaren
0
101
Member Avatar for UK-1991

Fatal error: Call to undefined function session_is_registered() in C:\wamp\www\attendance\include\checksession.php on line 2 Call Stack 1 0.0021 180504 {main}( ) ..\admin.php:0 2 0.0026 182624 include_once( 'C:\wamp\www\attendance\include\checksession.php' ) ..\admin.php:2 ------------------------------------------------------------------------------------------------------------ Hello ..This error is comming when i enter the user id and pw. Can any one please help me out to fix …

Member Avatar for diafol
0
688
Member Avatar for cobaltfive

Hi I am back I need am working on an unfinished project and cant get it to compile past line 44 , any help with why it wont do that would be great . I just am trying to get what I currently have to compile . my assignment , …

Member Avatar for cobaltfive
0
241
Member Avatar for Jasonfran

Hello, I am making an IRC application and I was wondering how I could make a simple event that gets called like onMessage() every time a IRC message comes through so I can then do something like this in my main class: public void onMessage(String message){ System.out.println(message); //or Handle commands …

Member Avatar for JamesCherrill
0
210
Member Avatar for Aurax

Hi boards, I managed to read text file into MSHFlexgrid. Now i want to search a word in textbox and higlight it in flexgrid. Anyone know how to do this? Thank you

Member Avatar for Aurax
0
619
Member Avatar for sonicx2218

So I'm using this program that has 2 important sections of code that determine the iframe height and width. if (!images[imageIndex][2]) images[imageIndex][2] = ''; // Thanks to Leo Feyer for offering this fix WH = images[imageIndex][2].split(' '); WHL = WH.length; if (WHL>1) { mediaWidth = (WH[WHL-2].match("%")) ? (window.getWidth()*((WH[WHL-2].replace("%", ""))*0.01))+"px" : …

Member Avatar for sonicx2218
0
207

The End.