2,025 Topics

Member Avatar for
Member Avatar for happygeek

According to a [SecureList posting](https://securelist.com/blog/69462/darwin-nuke/) dated April 10th, researchers Anton Ivanov, Andrey Khudyakov, Maxim Zhuravlev and Andrey Rubin discovered a vulnerability in the Darwin kernel back in December 2014. Why is this of interest? Well, the Darwin kernel is an open source part of both the Apple operating systems. The …

Member Avatar for ChaoticCoder
0
479
Member Avatar for tgreiner

OK, so I've asked a question like this before and I thought I understood the answer (solved) but I am having problems again and I still do not understand why. I am compiling with MinGW. Here's the code: string filename="D:/__GNU analyze/test/bin/Debug/_ClusterFormat/Test2.6d .txt"; fstream file, file2; string cluster="frame"; string line; Matrix …

Member Avatar for tinstaafl
0
142
Member Avatar for Bharat_2

I want to calculate user steps(like pedometer).I know that with iPhone 5s, 6 and 6+ we can use `CMStepcount` or `CMPedometer` or class(which use M7 chip of devices) but iPhone 5 and lower versions does not support M7 chip, so we can't use `CoreMotion`. By searching all over internet i …

Member Avatar for rubberman
0
339
Member Avatar for birchy

I've had two users request that we add a space between their first and last names as displayed in a table. Problem is: there is a space. Common denominator is they are using an iOS device, using Safari, I think. One was able to provide a screen shot. I tried …

Member Avatar for birchy
0
1K
Member Avatar for loldafuq

Create a program that contains the following functions: -create two dynamic stacks with integer data contained in an external file. -Sort items in stacks by the selection sort method -Record outputs in an external file. Main function main ()-menu selection functions and check the status of the data I dont …

Member Avatar for loldafuq
0
434
Member Avatar for rehmaknatiq

I am developing a ios app with a chat feature. I have a Back end .net server. how can i achieve this goal ?

Member Avatar for DaveAmour
0
72
Member Avatar for patelsachin444

Hi, I have created dynamic dropdown list called technologies from table "technology". I have used it on another form called 'add_project'. In this form, there are 2 fields project name and technology which is dynamic dropdown list. I am getting all the values in dropdown.Now I want to save those …

Member Avatar for rpv_sen
0
7K
Member Avatar for EYALSE

I have windows 7. I know C# and web services (HTML, CSS, JS, ASPX). I want to develop mobile apps with my skills for iOS (the most important option) and android. I'm looking for a studio platform that I could develop there with my skills, something that I can build …

Member Avatar for Ron_2
0
219
Member Avatar for Shane-dev

Can anyone help me? I have created a dictionary with the contents of a plist(data.plist) file but now I cannot figure out how to search and display the contents. I have searched online for days and cannot get a resolution. Most tutorials show a pre-defined array being used but if …

Member Avatar for Shane-dev
0
221
Member Avatar for Centorpe

I've managed (over a very long time) to write a program in VB using Visual Studio 2008. This program is now published to my website and works well. Probably because people shy away from downloading and running .exe files or due to lack of my understanding of search engines, I …

Member Avatar for AleMonteiro
0
1K
Member Avatar for Shane-dev

Can anyone help me? I have created a dictionary with the contents of a plist(data.plist) file but now I cannot figure out how to search and display the contents. I have searched online for days and cannot get a resolution. Most tutorials show a pre-defined array being used but if …

Member Avatar for Shane-dev
0
395
Member Avatar for fakesoul

I have to market an iOS app and get 20,000 downloads through advertising. The app costs about $2. Is there anyone who has done a similar task before. I would like to know what platform should I consider using to get to the milestone.

Member Avatar for stultuske
0
524
Member Avatar for iamthwee

So a lot of threads begin by some noob coming along and asking is c++ or c or java going to die and almost certainly, the answer, all have stood the test of time and this is simply panic nonsense spread by the spin doctors. http://www.infoworld.com/article/2613404/java/how-to-kill-java-dead--dead--dead.html But then it got …

Member Avatar for iamthwee
0
494
Member Avatar for Abners

I have been using windows since 2000 but now i want to switch to ios because windows operating system get corrupt instantly.please suggest me to choose one ?

Member Avatar for techtrendsit
0
322
Member Avatar for Doogledude123

Alright, I've never done this before so this may not be the way to go about it, but here goes. I'm creating an Application that connects to a Server which executes SQL Queries. I am coding the Application as a prototype in Java currently and extending it later possibly with …

Member Avatar for Slavi
0
294
Member Avatar for latrodectuss.imvu

How can I delete the old entries from the .txt file and replace them with the new ones? Like : I have a text file that has "123" in it, when I try to change the txt file it just adds the new text, I add "abc" to it and …

Member Avatar for latrodectuss.imvu
0
389
Member Avatar for Method_dev

I am currently writing an iOS application which fills Dynamic cells with data retrieved from a PLIST file. I have searched and searched but cannot comprehend/find a way to make my data searchable. I would like my plist to be searchable and provide the correct information. Any assistance would be …

Member Avatar for Method_dev
0
358
Member Avatar for happygeek

Is Apple really 'closing the gap' on Android as far as smartphone market share is concerned, or is there more to the battle of the mobile handsets than the latest set of headline figures suggest? [ATTACH=RIGHT]23604[/ATTACH]Certainly if you take the research, and associated press releases surrounding it, from Nielsen regarding …

Member Avatar for NicholaPhillip
0
699
Member Avatar for Swalih

I'm trying to write 2 dimensional array of int type to a binary type file. int array[3][3]={Some data}; ofstream f; f.open("nameoffile.dat",ios::binary||ios::out); for(i=0;i<=3;i++) { for(j=0;j<=3;j++) { f.write((char *)&array[i][j],sizeof(array)); } } f.close(); Above code is not complete. I only wrote a part of the code where I need help. Is this code …

Member Avatar for Swalih
0
3K
Member Avatar for chukka32

I trying to build a web app using html5 which has a user profile page and I am having an issue with input type="file" when testing it on an Android browser. When selected it gives me the option to open camera or gallery, when an file is selected, it populates …

Member Avatar for chukka32
0
304
Member Avatar for Muhammad_75

welcome everybody, i am able read my file by asking the filename from user but i am facing a little problem,When i type a name of file which doesnot exist,compiler also shows it with some zeroes, this is my program, please help me,having problem in case 2... #include <fstream> #include …

Member Avatar for mike_2000_17
0
241
Member Avatar for man.chester.581

i want to start developing ios apps on my lap (windos) i dont have mac so how can i start

Member Avatar for JamesCherrill
0
257
Member Avatar for Narue

When you want to remove extraneous characters from an input stream in C++, it's usually because you mixed formatted and unformatted input methods. The formatted method would leave a newline in the stream and the unformatted method would consume it and terminate successfully, but fail completely to do what you …

Member Avatar for Smn
18
13K
Member Avatar for Praveen_13

I have this code which works fine but I cant comprehend the meaning of cin.get(ch) in the for loop. I tested the program after removing it and the first input comes fine but as soon as loop runs for the second time, program does not wait for the user to …

Member Avatar for NathanOliver
0
153
Member Avatar for giao.can

I have a table like code html belows I want to store value of check box and corresponding text value into 2 array in PHP For example if i check box ID_1, ID_2 the values of these check box are stored in $array_box ( 74, 75) and values of corresponding …

Member Avatar for Mashetty
0
5K
Member Avatar for nuller

and my code to write into a file is ofstream file; file.open("CustomerFile.txt",ios::app); file.write((char *) & customer,sizeof Customer); file.close(); file.open("AccountFile.txt",ios::app); file.write((char *)& account,sizeof Account); file.close(); can someone figure out my mistakes. Thanks in advance

Member Avatar for NathanOliver
0
85
Member Avatar for jalpesh_007

As i am learning ios, please suggest some video or material on how can i create tabbed app. i want to create app for technical institute, where i am studying now. Thanks

Member Avatar for Kelly Burby
0
103
Member Avatar for nuller

fstream file; file.open("PasswordGenFile.dat",ios::out); In writing into a .dat file what does the following line mean? file.write((char *) this, sizeof(PasswordGenerator)); And how can i convert this bit of code if i want to write it into a .txt file?

Member Avatar for Duoas
0
497
Member Avatar for kks21199

Hello, I am using turbo c++ 4.0. I know its outdated but i have to use turbo c++ for this project. Here is my current code, #include<iostream.h> #include <stdlib.h> #include <fstream.h> class item { private: char name[]; int code[]; float price[]; int z; fstream datfile; public: void add(void); void delete_(void); …

Member Avatar for kks21199
0
2K
Member Avatar for Fil_1

I've been having a hard time for quite a while now trying to read files. These files include English text, pictures music and so on. After hurting in the jungles of Africa or the internet I found something that worked. `string str((istreambuf_iterator<char>(fileIn)), istreambuf_iterator<char>());` This made it possible to do all …

Member Avatar for NathanOliver
0
936
Member Avatar for silent lover

dear all daniweb users, i start using xamarin to create ios software. in mainstoryboard, i navigate passcodevc view controller to songlistvc view controller. i use scandit barcode scanner script in passcodevc.cs . after barcode scanner script, i want navigate from passcodevc view controller to songlistvc view controller. i use this …

Member Avatar for Michael_31
1
357
Member Avatar for mdsumon7864
Member Avatar for techforus
-1
211
Member Avatar for senait.kifle.127

I am running into problems reading in a csv file. I have an inventory.csv file with three columns and around 10,000 rows. The last column is supposed to be ignored. The csv format looks like this Shelf number; item name; item number. (So here item number shall be ignored). After …

Member Avatar for Moschops
0
2K
Member Avatar for happygeek

You might be forgiven for thinking that the iPhone is the most secure of the smartphone choices, especially if you've opted for a 5S or above with that fingerprint reader for secure ID and iOS 8 as the most robust of operating systems. Forgiven, but wrong; despite the claims from …

Member Avatar for happygeek
1
493
Member Avatar for castajiz_2

I believe everyone heard the news from November the 11th-"Opening up Visual Studio and .NET to Every Developer, Any Application: .NET Server Core open source and cross platform, Visual Studio Community 2013 and preview of Visual Studio 2015 and .NET 2015". Maybe some people will disagree but I think that …

Member Avatar for ryantroop
0
293
Member Avatar for nufftalon

I am not sure what I am doing wrong but can't seem to recieve test email for this php form the form is at the bottom of this code snippet <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>MIAPP</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/> <!-- FAVICON --> <link rel="shortcut …

Member Avatar for nufftalon
0
327
Member Avatar for Gurjit_1

The code below is giving me the SIGSEGV error, segmentation fault at line number 66(found using debugger).According to me everything is fine but still don't know what is done wrong by me. Please someone help me out to sort the problem #include <iostream> #include <string> #include <fstream> #include <cstdlib> #include …

Member Avatar for Gurjit_1
0
2K
Member Avatar for happygeek

Although based in New York, DaniWeb is very much a global community. I'm from England, for example, and our moderator Diafol (who will be well known to anyone who has ever browsed the [PHP forum]( https://www.daniweb.com/web-development/php/17)) is a Welshman through and through. I mention this as last week I went …

1
399
Member Avatar for castajiz_2

I would like my app to go to another page when i slide it horizontaly. I don't know the appropriate name of such an action and therefore am not able to find any refference on google. Can anyone point out the keyword that I missing and give some links for …

Member Avatar for castajiz_2
0
239
Member Avatar for hui

I am creating a program that stores information of hospital patients in a sequential text file.. I want to the program to be able to search for a patient using the patient name already in the text file.. The program is giving me no errors whatsoever so please look into …

Member Avatar for JessiE_03
0
180
Member Avatar for lewashby

In the program below I'm a little confused with these two lines -> `fbin.seekp(n * recsize);` & `fbin.write(reinterpret_cast<char*>(&age), sizeof(int));` In the first one, why would we start writing to the file at position n * recsize instead of position 0? I would think that we would start writing at 0 …

Member Avatar for deceptikon
0
132
Member Avatar for FireNet

File I/O With C++ Fstream **Intro** File handling is as simple as writing in a book, much easier to modify and find. It's so simple people get confused with it :-). Welcome to the world of file handling. We will use the c++ fstream classes to do our file handling. …

Member Avatar for Swalih
5
12K
Member Avatar for teamcodez

I developed a 3d cube consist of 6 layer side by side to form a cube type structure. I am getting the layer info on click using touch event. -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { if ([touches count] == 1) { for (UITouch *touch in touches) { CALayer *layer = [(CALayer …

Member Avatar for hericles
0
214
Member Avatar for Vincent_5

Im building a banking system. in my create_account it asks for account address and phone number as well as other questions. When I go to my Show account info (balance inquiry) I notice its not getting the right address as well as phone number. its showing "garbage". Im not sure …

Member Avatar for tinstaafl
0
385
Member Avatar for Jinxx

I have written a code that asks the user a name (ex.candy) and a number then it stores it in a stuff.txt file like so: " candy 20 candy 40 decorations 70 costumes 40 candy 60 " When reading from that stuff.txt file, how can I add the running total …

Member Avatar for tinstaafl
0
810
Member Avatar for francototti

#include <conio.h> #include <stdio.h> #include <string.h> #include <fstream.h> #include <iostream.h> #include <stdlib.h> #include <iomanip.h> class Movie{ public: char name[40]; char dir[40]; char writer[40]; char release[6]; char genre[40]; char cast[80]; char budget[10]; char grossing[10]; char country[30]; char lang[30]; char rating[5]; }; int compare(char *, char *); void input(char *); void list(char …

Member Avatar for abdul04
0
189
Member Avatar for surferbloggy

Hi i've done an app and tested even on iphone 4s/5/ 6 in xcode 6 and it works on simulator if i test on a iphone 4s device ios 7.1 and 8 the scrolling doesnt't work on any pages and there is a static page that seems covered and i …

0
133
Member Avatar for jBat

I'm not understanding why i'm able to read from the file but i can't write to it. The fstream is open in both modes. Once the program finishes i haven't changed the content of the file. Thank you in advance. #include <fstream> #include <string> #include <iostream> int main() { std::string …

Member Avatar for jBat
0
823
Member Avatar for prahesh

text_data = {apple \n grapes \n straberry}; FILE *fp; int i; char ch; std::string DataVal; std::ifstream in("D:\\test\\file.txt", std::ios::in | std::ios::binary); if(NULL != in) { cout<<"File Open Success"<<endl; in.seekg(0, std::ios::end); DataVal.resize(in.tellg()); in.seekg(0, std::ios::beg); in.read(&DataVal[0], DataVal.size()); in.close(); } else { cout<<"File Open Failure"<<endl; return 0; } * Here I am able to …

Member Avatar for prahesh
0
461
Member Avatar for nickwebha

I am using PhoneGap Build to build an iOS v7.1+ application and using [weinre][1] to debug. I am using the media-capture plugin and file API to capture a video in an attempt get its base64 representation. I can get the video recorder to open, take a video, and return the …

0
85

The End.