199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ferizhandi

hi all; i have run this code and the first read and write work correctly. but and the second one is missed. the output log is: freez@JALALI:~$ ./a salam8a okok2freez@JALALI:~$ #include <stdio.h> int main() { write(1,"salam",5); char a[2]; char b[5]; read(0,a,2); if(a[0]=='8') {write(1,"ok",2); read(0,b,5); write(1,"ok2",3); } return 0; }

Member Avatar for Schol-R-LEA
0
170
Member Avatar for ManthanB

Hey... I think there was already thread with simillar topic. but there was nothing useful to me... so i decided to create a new topic to take help from you. Well the question is really simple. I have developed a Windows service application and console application. i am looking to …

Member Avatar for ManthanB
0
272
Member Avatar for new_developer

Hi there, What is the easiest way to declare and initialize 2d dynamic array in class in C++ ?? Please tell me the easiest way, I have used 2d dynamic array in Java. Thanks !

Member Avatar for deceptikon
0
245
Member Avatar for Vusumuzi

This program is to calculate commission and this is the pseudo I wrote for it. Tell me if I'm right. 1 Declare variables 2 get sales 3 calculate if sale < 1500 Then commision= sale * 0,02 else commision= sale * 0,04 4 Dispaly commision

Member Avatar for Jx_Man
0
183
Member Avatar for Affable zaki

well here is the problem ! i am making a desktop application using vb.net and sql server for a local jeweler. i want to fetch "gold rate" to text box "txtbox_goldrate" from http://www.goldrates.pk . the other way is to use goldrate api from a webservice but that is not free …

Member Avatar for Affable zaki
0
237
Member Avatar for cgull

Hello, I need help with sliding down an element. When it is sliding down I want the parent's div height to change so it will contain the sliding element. My html: <div class="sliderBox"> <ul> <li> <div class="main"> <div class="publicationTitleOuter"> <div class="publicationTitleInner">Kouga/Uitenhage</div> </div> <p class="issueDate">8 MAY 2013</p> <div style="margin-top:10px"></div> <div style="width: …

Member Avatar for cgull
0
357
Member Avatar for CodyOebel

Ok basically what I am trying to do is this. There is a game and it has an address that changes but always contains the same value. So what I'm trying to do is enumerate from a starting address of this running process in this case 0x0120DE13 and read what …

Member Avatar for Suzie999
0
343
Member Avatar for riahc3

Hello How can a small (I imagine jQuery UI popup) popup hover over a page then disappear after x seconds?

Member Avatar for JorgeM
0
93
Member Avatar for maxpaine69

HI all, I have an page apaearing inside a control, but i needed it to acesso an label in the master page. This page is not related to the master page because it it was the master page would open with it. My questions: its there a way to acess …

Member Avatar for maxpaine69
0
131
Member Avatar for phani1092

immutable objects cannot be altered,whereas in line 3 x contains xyzabc. I want to know what exactly is happening with the string object. Thanks in advance

Member Avatar for JamesCherrill
0
329
Member Avatar for bhallarahul

Hi I want create a program in which folder(level 0) is containing number of subfolder(Level 1) and each folder(subfolder Level 1) contain file number of file and subFolder (level 2). now i want to copy folder(level 0) but from subfolder (level1) want sepecfic file and subfolder(level 2) rest want to …

Member Avatar for JamesCherrill
0
178
Member Avatar for ceelos1974

well I need some guidance to how I can do what I wan't done as I haven't gotten any idea I got the GUI made, now I have these items I wan't the player to be able to paste onto the empty space (were there are no GUI) how can …

Member Avatar for ceelos1974
0
230
Member Avatar for bhallarahul

hi I have method which accept file and want to compare with string for the above mention reason i did System.out.println(targetFolder.getAbsoluteFile().equals(listPropertyValue[1]/*which is a string */)+"\n"+targetFolder.getAbsoluteFile()+"\n"+listPropertyValue[1]); the value of listPropertyValue[1] and targetFolder.getAbsoluteFile() same value but it gives false. Please tell me where i am wrong Thnks

Member Avatar for bhallarahul
0
111
Member Avatar for siddiquedu

3 years ago, one brother solved this problem, i need this program to make some calculation. actually, i have some fractional/decimal component t (like 2.0213, 3.047) this program can only take integer. Can anybody please help me !!! #include<iostream> #include<fstream> #include<string> #include<cstdlib> #include<cmath> #include<iomanip> #include <windows.h> using namespace std; //void …

Member Avatar for siddiquedu
0
386
Member Avatar for Vusumuzi

Please see question 3. I have attached the question paper with the second attachment as my answer.

Member Avatar for chrispitt
0
145
Member Avatar for McLaren

Hello, We are sending email using these settings: $config['smtp_host'] = 'ssl://smtp.gmail.com'; $config['smtp_port'] = 465; $config['protocol'] = 'smtp'; $config['mailtype'] = 'html'; $config['smtp_user'] = 'email@gmail.com'; $config['smtp_pass'] = 'password'; $config['smtp_timeout'] = 40; Thats ok it works. For few days. Later it stops sending. THen we go to gmail acount in web interface to …

Member Avatar for McLaren
0
647
Member Avatar for erinkay528

**Here is the assignment:** Write a C++ program to calculate and display the number of primes in the first 50 “chiliads”. Your results should be exactly as presented below, under testing. Design Considerations: I think you will find your program easier to structure and write if you break it down …

Member Avatar for tinstaafl
0
329
Member Avatar for SoulofchaOs

There's a error when I run this jsp file --> **" pstmt.executeUpdate();".** **"org.apache.jasper.JasperException: An exception occurred processing JSP page /TestAdd.jsp at line 39"** My code essentially have a text box for users to enter a value, and then the value is sent to the MySQL database. Any help is appreciated …

Member Avatar for peter_budo
0
308
Member Avatar for Keaselstein

Hi guys, i am working on a Project about mobile Navigation on a lego Mindstorms Robot but i am stuck right now. I get this error:"The method MinDistanceNode() is undefined for the type ArrayList<Node>" I have four different Classes. The problem is probablyin "DijkstraAlgorithm" or in the Method "minDistanceNode" which …

Member Avatar for jalpesh_007
0
7K
Member Avatar for nur fieza

A road distance table may be used to give the distances between some towns as shown below. To simplify the programming of distance tables, we assign numbers 0, 1, . . . to the towns. Then we may get a distance table like this: Towns Number Alor Setar 0 0 …

Member Avatar for ndeniche
0
284
Member Avatar for ahudson

I have Visual Studio Express for Desktop 2012. I am trying to make an accouunt search feature. Similair to this: http://tinypic.com/r/4r2cer/5 Anyways, the Account Holder Name and Balance fields are read-only. How do I type in the Account Number and auto-populate those two fields based on the acct. number. If …

Member Avatar for mridul.ahuja
0
213
Member Avatar for andika.kurniawan.121

There are two tables "LESSON" TABLE Attributes : - id_lesson -lesson_name - semester "LECTURES" TABLE Attributes : - id_lectures - id_lesson - id_lecturer - hour - day How to display all atributes in lectures table where lessons in 2nd semester ? Note : there's id_lesson in lectures table

Member Avatar for TonyG_cyprus
0
141
Member Avatar for Cravver

I need to make that when you use a color picker the hover styling would work too. So far I've only got background and border bottom working here is the code below (uses JQuery): var customElements2 ="#search .submit_input, .reputation.positive, .members li.positive"; var customElements = ".maintitle, #community_app_menu > li.active > a, …

Member Avatar for LastMitch
0
739
Member Avatar for castajiz_2

I was wondering guys if you could explain me how RECURSION works inside a loop!? I got lost here so please anything we ll be much appreciated. public void perm(int[] list, int k, int m) { int i; if (k == m) { for (i = 0; i <= m; …

Member Avatar for ricky.subiantoputra
0
835
Member Avatar for zacharysr

so i have a problem, i'm trying to make a live chat where two members can chat without having to refresh the page, and i have got everything work up to where you start typing in the textarea, well i'm trying to check for the "enter" key to be pressed, …

Member Avatar for zacharysr
0
248
Member Avatar for Passoword!!

hello everyone! Is it possible to write a text file in notepad and then when it call to system (Probably VB6) it will add to the exif data of an image?? Anyone coull give me an idea will be appreciated. Thanks in Advanced!.. by the way, Jonel's here form phils..

Member Avatar for Passoword!!
0
353
Member Avatar for xuexue

Hi! This is my code to get the difference of two dates in Javascript. var today = new Date(); var dd = today.getDate(); var mm = today.getMonth()+1; //January is 0! var yyyy = today.getFullYear(); if (dd < 10) { dd='0'+dd } if (mm < 10) { mm='0'+mm } today = …

Member Avatar for xuexue
0
2K
Member Avatar for maharrington

Hi, I've had a look through the forum(s), however, can't seem to find a solution to my issue (and I don't understand the PHP Manual). Basically, got a website linked to a database, trying to pull data from one table and display onto the website where appropriate. I have the …

Member Avatar for minitauros
0
231
Member Avatar for mr.muin13

#include <iostream> #include <fstream> #include <windows.h> #include <iomanip> using namespace std; void printMainPage(); //customer need to register 1st Page void printUserPage(); //User(registered customer) page void Login(); bool openFileIn(fstream &, string ); //fstream in_file("Register and Login Details.txt"); fstream file("Register and Login Details.txt", ios::out | ios::in); int main() { printMainPage(); system("cls"); printUserPage(); …

Member Avatar for mr.muin13
0
264
Member Avatar for dina85

require("conn.php"); $sql = "select * from pemohon where kp_baru='$kp';"; $result = mysql_query($sql); while($row = mysql_fetch_array($result)) { if($row == TRUE) { echo $row['kp_baru']; // can display } else { echo "No KP tiada didalam pangkalan data."; // can't display } }

Member Avatar for dina85
0
157
Member Avatar for JOSheaIV

Okay so here's a good one for you guys, I have some theories but would like some help. So I have a project I just came up with while I was waking up this morning. Part of this project involves comparing 2D arrays (or Lists, if I say array assume …

Member Avatar for JOSheaIV
0
225
Member Avatar for janicemurby

hya ive created a edit profile page for members to fill in and now i need that information to go to members profile page how do i do this ive tried several tutorials in youtube but get nowhere with them i dont need the register or login got that already …

Member Avatar for minitauros
0
197
Member Avatar for rubai

I have a problem want to be solved. I have three pages. page1.php, page2.php page1.php has a form with two text field. one text field is for name and another is for number. there is a submit button and a "next" button too. using session I want show given name …

Member Avatar for diafol
0
2K
Member Avatar for Ralphael

I have a project I am working on and it involves java graphics which I am a novice at, I have uploaded the description of the project and the image of how it should look like, now i am having problems implementing the part of introducing the virus and drug …

Member Avatar for robin.litsetorp
0
244
Member Avatar for kakalahori

ok here is the login function from my class user which parent class is a Db connection file <?php require_once("DBConnection.php"); class User extends DBConnection { .... .... ... ... public function Login() { $sqlSelect = "select `UserName` from `user` where `UserName` = '$this->userName' and `Password` = '$this->password'"; $result = @mysql_query($sqlSelect, …

Member Avatar for diafol
0
216
Member Avatar for mjsmitten

I have some functions that returns nothing or some value (obvious), and also having a little trouble with the if and closing, is there a good way to do this? I want to return the value after checking if any of the strings are not empty. Actually it is a …

Member Avatar for diafol
0
168
Member Avatar for ibr123

The tiny tots tee-ball league has 12 players who have jersey numbers 0 through 11. The coach wants a program into which he can type a player’s number and the number of bases the player got in a turn at bat (a number 0 through 4). Write a program that …

Member Avatar for tinstaafl
0
136
Member Avatar for Sivaram R

models.py class Settings(models.Model): date_format = models.CharField('Date format', max_length=100) time_format = models.CharField('Time format', max_length=100) views.py for saving the date and time format in database as boolean. def date_format(request): settings = Settings.objects.get(user=request.user) settingsForm = SettingsForm(instance=settings) if request.method =='POST': settingsForm = SettingsForm(request.POST,instance=settings) if (settingsForm.is_valid()): settings=settingsForm.save() return redirect('/member/follow-up/') return render_to_response( 'incident/date_format.html', { 'about_menu': True, …

Member Avatar for ChrisPadgham
0
327
Member Avatar for Harvey_10

Hello DaniWeb, i recently began reading a book called programming in Objective-c by Kochan 5th edition, One thing i havent gotten the grasp on is Properties and WHEN to use them or if they are even usable on such a simple test program such as in a coffeeShop class for …

Member Avatar for ChrisPadgham
0
182
Member Avatar for dhani09

I'm using the following code for my paging on my script <?php $pn = 0; $result = mysql_query("SELECT * FROM tbl_product WHERE category = '$cat' ORDER BY id ASC "); $nr = mysql_num_rows($result); if (isset($_GET['pn'])) { // Get pn from URL vars if it is present $pn = $_GET['pn'];// filter …

Member Avatar for minitauros
0
124
Member Avatar for kalaithilak

whenever i open a form within a form in vb6.0 it goes back of the other form how can i solve it?

Member Avatar for mridul.ahuja
0
181
Member Avatar for Hnna

Hi, I'm a beginner in vb.net and I have a problem. At first I want to say sorry for my language, English is not my first language. Hope u onderstand my prob. So, I'm working disconected, I have a datagrid and now I want to search in this datagrid by …

Member Avatar for tinstaafl
0
478
Member Avatar for mallikaalokam

Hii guys.. Iam having problems with visual c++ i created a win32 application in visual c++..then if tried to execute a noraml turboc3 developed C++ porogram..then it is showing some errors regarding the header files... the error is... 1>cvar.cpp 1>d:\mallika\stuff\cpp\cvar.cpp(1) : fatal error C1083: Cannot open include file: 'iostream.h': No …

Member Avatar for mallikaalokam
0
181
Member Avatar for nilou.far.79

I am writing a program for a clinic now. here is my code ,the problem now is I need to write 2 functions for my program The first function : is to capture time of registration The second function: is for treated time of patient -each patient can consult DR …

Member Avatar for CodyOebel
0
230
Member Avatar for CodyOebel

I cannot get the microsoft SDK installed. This is the log file. I'm on windows 7 pro 64bit. I am running Kaspersky Internet Security 2013 if this may be an issue. Any help would be appreciated. 10:29:27 AM Sunday, May 19, 2013: ------------------------------------------------------------------------------------------------- 10:29:27 AM Sunday, May 19, 2013: [SDKSetup:Info] …

Member Avatar for CodyOebel
0
1K
Member Avatar for fheppell

I've got an upload script that generates some stuff in relation to uploads eg File foo.jpg uploaded succesfully<br /> File bar.tiff failed to upload! ... This is all part of a variable called `$message`. How could I pass this to another php script? Thanks for any help

Member Avatar for fheppell
0
200
Member Avatar for yuvjeeth

Hi I want to know how to know if user is running the program for first time? I have a .txt file which will be loaded on start, but it is the first time and there is no such file. If anybody contributes, I will be happy Thanks in advance …

Member Avatar for mridul.ahuja
0
236
Member Avatar for dina85

i want to print out my form using onClick="window.print()".. but the output is not same with display form in browser. for the information, i use CSS to positioning the layer or <div>..

Member Avatar for dina85
0
103
Member Avatar for fashxfreak

I have data in which column 'C' have cells which contain multiple values separated by (,).Now I want to get atomic values in all cells of column 'C'. i.e. that for a cell when there is more than one value; separated by (,) it should be copied in the next …

Member Avatar for fashxfreak
0
970
Member Avatar for MrXortex

G'day, I created my own simple blog with some posts in it, the posts are stored in a folder called "posts" and there in .MD format. I want to put a search engine on my blog when they search anything that looks similar to any blog.. it should show the …

Member Avatar for MrXortex
0
196

The End.