New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

A personal cloud


Post Reply New Thread Subscribe

 
Thread Tools
Yodda_Hunter

 
Member Since: Jun 08, 2013
Location: Būr said,Egypt
Posts: 158
Yodda_Hunter is on a distinguished road
Mac Specs: MacBook Pro (i5)

Yodda_Hunter is offline
Guys,am looking forward for getting something like an internationally readable data strong(like server). I created a program that creates files and receives file so i wanted it to export and import those files to be internationally readable via my program ,any suggestions? I don't have any knowledge about the servers and those stuff so i want someone of you to direct me.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,352
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
The answer to this all depends on how you want to share files and what kind of content you're sharing. If it's just text, you could make use of a database like MySQL. If it's media, you could make use of storage services to host the files that your app then consumes. What kind of data are you looking to share?

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
Yodda_Hunter

 
Member Since: Jun 08, 2013
Location: Būr said,Egypt
Posts: 158
Yodda_Hunter is on a distinguished road
Mac Specs: MacBook Pro (i5)

Yodda_Hunter is offline
Quote:
Originally Posted by vansmith View Post
The answer to this all depends on how you want to share files and what kind of content you're sharing. If it's just text, you could make use of a database like MySQL. If it's media, you could make use of storage services to host the files that your app then consumes. What kind of data are you looking to share?
actually they are text files but i want to use .txt files instead of databases as i don't know a lot about databases and at the meantime i've got no time to learn about databases.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,352
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
If you're only looking to store text files online and don't want to use databases (which is the best route to be honest), just use some sort of file storage service. Either find a service that host files or use something like sftp and scp to copy files back and forth. Or, better yet, see if there is a file hosting service (like Dropbox) that has an API for your programming language.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
Yodda_Hunter

 
Member Since: Jun 08, 2013
Location: Būr said,Egypt
Posts: 158
Yodda_Hunter is on a distinguished road
Mac Specs: MacBook Pro (i5)

Yodda_Hunter is offline
Quote:
Originally Posted by vansmith View Post
If you're only looking to store text files online and don't want to use databases (which is the best route to be honest), just use some sort of file storage service. Either find a service that host files or use something like sftp and scp to copy files back and forth. Or, better yet, see if there is a file hosting service (like Dropbox) that has an API for your programming language.
but i don't want the user to download other than my programme which connects to my personal server instead of downloading dropbox and such a stuff,maybe you meant another thing by saying you should see if there is a file hosting service (like Dropbox) that has an API for your programming language,so what's the meaning of API?
QUOTE Thanks
Yodda_Hunter

 
Member Since: Jun 08, 2013
Location: Būr said,Egypt
Posts: 158
Yodda_Hunter is on a distinguished road
Mac Specs: MacBook Pro (i5)

Yodda_Hunter is offline
Quote:
Originally Posted by vansmith View Post
If you're only looking to store text files online and don't want to use databases (which is the best route to be honest), just use some sort of file storage service. Either find a service that host files or use something like sftp and scp to copy files back and forth. Or, better yet, see if there is a file hosting service (like Dropbox) that has an API for your programming language.
I've checked for the dropbox API but am OS X developer and i don't think that they support it,
any other suggestion?
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,352
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
What language are you using to write your application?

I'm not suggesting that the files be publicly accessible or suggesting that your users download something. Dropbox has a datastore API which lets you tap into Dropbox (using your account for instance) and store content there. They have API (here) and if they don't support your language, you can use HTTP requests. They've also got their Core API for managing files (here).

You, of course, don't have to go that route. You could purchase server space somewhere and use something simple like FTP (you'd want to connect over SSL or SSH though for the sake of security).

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
Yodda_Hunter

 
Member Since: Jun 08, 2013
Location: Būr said,Egypt
Posts: 158
Yodda_Hunter is on a distinguished road
Mac Specs: MacBook Pro (i5)

Yodda_Hunter is offline
Quote:
Originally Posted by vansmith View Post
What language are you using to write your application?

I'm not suggesting that the files be publicly accessible or suggesting that your users download something. Dropbox has a datastore API which lets you tap into Dropbox (using your account for instance) and store content there. They have API (here) and if they don't support your language, you can use HTTP requests. They've also got their Core API for managing files (here).

You, of course, don't have to go that route. You could purchase server space somewhere and use something simple like FTP (you'd want to connect over SSL or SSH though for the sake of security).
Objective-C. look i can explain once again. I want every user of my program to read text files from my computer/from a server. the question is how to make the program read those files from my computer though the program works on another computer?



here's what i though of,1-i can make the program read from my computer via DropBox but in this case the user will need to sigh in with my DP account,2-i thought of using a server but unfortunately i don't know how to upload those files to a server and i don't neither know how to connect my program to this server, the problem is that i don't know how to work with databases as am a beginner and i don't have any knowledge about the networks other than i know the meaning of definitions xD. am not asking any one to do my job but i just gave up about thinking how this program will do its job
QUOTE Thanks
Raz0rEdge

 
Raz0rEdge's Avatar
 
Member Since: Jul 17, 2009
Location: MA
Posts: 7,729
Raz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant future
Mac Specs: 27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 5 & 5S, iPod Nano 7th Gen, iPad 2 16GB WiFi, iPad 3

Raz0rEdge is offline
If you want a personal cloud, then you need a personal server. First go and find a webhost that you like and get an account on which you can run any arbitrary PHP application. Any webhost will allow what you want to do for starters, so it should be cheap.

Once you have that, you will want to make your application talk to the server and communicate through XML. On the server side you can use JSON and other PHP itself to implement the server functionality of parsing the XML data.

Now as far as the text itself is concerned, you can start with local files on the server.

You, however, should transition to a database to keep the data once you get things going..

--
Regards
...Ashwin



Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,352
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Raz0rEdge offered some good advice about working with the data that is probably the easiest. If you're not too concerned about the data being secure and private, uploading arbitrary text files to a server somewhere and then using PHP to serve up the data might be easy. You could even do the whole process in PHP - pass the text as a parameter to the page, use POST variables to write the file to the server in a PHP script and write a second file that calls up the text based on what you need.

So, one PHP script gets POST variables from your application and uses this to write files to the server. The other PHP script gets called when you want data - you send parameters to that one which the PHP file uses to open the text. All of that is quite insecure (no SSL, text files open to the public) but if you're not looking for security, it's probably the best.

It might be easier to tell us what kind of application you're creating. Better solutions might exist.

Also, I moved this to the development forum - it's moved in that direction.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
Yodda_Hunter

 
Member Since: Jun 08, 2013
Location: Būr said,Egypt
Posts: 158
Yodda_Hunter is on a distinguished road
Mac Specs: MacBook Pro (i5)

Yodda_Hunter is offline
Quote:
Originally Posted by vansmith View Post
Raz0rEdge offered some good advice about working with the data that is probably the easiest. If you're not too concerned about the data being secure and private, uploading arbitrary text files to a server somewhere and then using PHP to serve up the data might be easy. You could even do the whole process in PHP - pass the text as a parameter to the page, use POST variables to write the file to the server in a PHP script and write a second file that calls up the text based on what you need.

So, one PHP script gets POST variables from your application and uses this to write files to the server. The other PHP script gets called when you want data - you send parameters to that one which the PHP file uses to open the text. All of that is quite insecure (no SSL, text files open to the public) but if you're not looking for security, it's probably the best.

It might be easier to tell us what kind of application you're creating. Better solutions might exist.

Also, I moved this to the development forum - it's moved in that direction.
Chatting app with TXT files
QUOTE Thanks
Yodda_Hunter

 
Member Since: Jun 08, 2013
Location: Būr said,Egypt
Posts: 158
Yodda_Hunter is on a distinguished road
Mac Specs: MacBook Pro (i5)

Yodda_Hunter is offline
Quote:
Originally Posted by Raz0rEdge View Post
If you want a personal cloud, then you need a personal server. First go and find a webhost that you like and get an account on which you can run any arbitrary PHP application. Any webhost will allow what you want to do for starters, so it should be cheap.

Once you have that, you will want to make your application talk to the server and communicate through XML. On the server side you can use JSON and other PHP itself to implement the server functionality of parsing the XML data.

Now as far as the text itself is concerned, you can start with local files on the server.

You, however, should transition to a database to keep the data once you get things going..
PHP apps o.O i already have created my app in objective-c
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,352
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Honestly, a database is the best solution for this problem. Indeed, a PHP interface to a SQL database would be the easiest. I've done the same - I have a mobile app that has a survey and the survey sends the data through a PHP script that inserts the responses into a database. It's the most straightforward solution to this problem.

Do you know how to make and send requests to online services?

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
Yodda_Hunter

 
Member Since: Jun 08, 2013
Location: Būr said,Egypt
Posts: 158
Yodda_Hunter is on a distinguished road
Mac Specs: MacBook Pro (i5)

Yodda_Hunter is offline
Quote:
Originally Posted by vansmith View Post
Honestly, a database is the best solution for this problem. Indeed, a PHP interface to a SQL database would be the easiest. I've done the same - I have a mobile app that has a survey and the survey sends the data through a PHP script that inserts the responses into a database. It's the most straightforward solution to this problem.

Do you know how to make and send requests to online services?
No xD look,am a beginner in programming it's been a year since i knew what's the meaning of programming so i don't know other than how to code with a normal IDE
I hope someone help me out cuz as a beginner i should grow up,right?
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,352
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
I'm not sure what's easier than what Raz0r and I have suggested. Thus, my recommendation would be to learn how to do this. MySQL isn't all that tricky if you have an interface for it (most web hosts use PHPmyadmin) and a PHP script to insert data into a SQL database is really easy. The tricky part is sending the data through Obj-C to the PHP script (I can't help you there since I use Flex).

If you're trying to make a chat client, saving the data online may not be the best solution anyway. Sending the data directly to an end user through a socket seems to be the most straightforward way of doing this.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks

Post Reply New Thread Subscribe


« Help porting Windows programs to a native OS X App? Possible for beginner? | Drag an image or Browse Finer »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
amazon cloud drive / cloud player jediracer Music, Audio, and Podcasting 9 10-20-2012 06:54 PM
The Cloud Luvntravln Switcher Hangout 3 09-23-2012 05:14 PM
wifi problem + log grandmstramrod OS X - Operating System 11 10-24-2011 11:34 AM
iWork gets SaaS-y with Documents in the Cloud OneMoreThing... Apple Rumors and Reports 0 06-06-2011 04:20 PM

All times are GMT -4. The time now is 06:45 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?