Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I need to create events on a calendar server using CalDAV from within a Ruby (Rails to be precise) Application. I have looked at some different libraries and done some googling.
I looked at ri-cal ( http://ri-cal.rubyforge.org/rdoc/ ) But wasnt sure if it supported sending data toa server or if I had to do that myself,
this looked promising http://www.local-guru.net/blog/pages/rubycaldav , but it says it is alpha software, i need something stable.
What is the best way to do this? Is there any library that does this already, Do i need to form my own HTTP requests?
Any advice on the subject is appreceated
I ended up using the library at http://www.local-guru.net/blog/pages/rubycaldav
I had to adapt it work with SSL, and use the UUID library correctly, format the dates correctly and work with Full day events. Since I only needed to create and destroy Events that is all i updated. I plan to do more with in when i have time.
My updated code can be found here https://github.com/loosecannon93/ruby-caldav.
The problem I was having was supplying incorrectly formatted dates, and lack of UUIDs.
The caldavtest.rb file on GitHub is what I used to work
An additional Complication i ran into was that Zimbra ( the server ) has 2 paths, one for ICS files that are readonly /home/user#host/Calender and one for CalDAV /dav/user#host/Calendar
I hope that someone may find help with this solution.
However there is a substantial lack of cladav implementation for Ruby. There are ICS libraries that form objects, but there is only pure Net::HTTP to interact with a server. Local-guru's is the only ruby one I found that works both ways, but it is in need of some help with minor issues.
I fixed some of these but not project wide, I just had to get it working. But if someone would like to contribute I would love to help.
One of my favorite places to check for possible options is on Ruby Toolbox. This would be one of the first places I would check.
I would also check github, which yielded this result which may be your best option and just what you are looking for.
As far as answering your other questions, I would probably roll my own after taking a look at both this post and this code.
So, long answer severely shortened, yes there are libraries that already accomplish what you are looking to do, but if it were me, I would roll my own solution for something this specific.
are you hosting your calendars on google? if you are, then take a look at: https://github.com/northworld/google_calendar
We've used caldav4j as our app was deployed in JRuby. Don't know whether thats an option for you.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Hi there I was wondering how it would be possible to make a app like Facebook, or Instagram or other Social Network apps where users can login view their profiles and other peoples profiles. I was wondering if anybody would know what programming language I have to know or if I have to have servers. Any help would be greatly appreciated. Thanks in advance.
Welcome to the site!
This question is asking for a lot and not really really appropriate for this site, but how about some good starting points?
Building apps like facebook, instragram, etc are very difficult. Fortunately there are many great tools to help with this, like Ruby on Rails, Play, Django, etc.
There are many programing languages you can use to build an app like this. PHP, Ruby, Python, Java, Clojure, etc. You can even make a website in pure assembly if you want to.
Servers and database knowledge are required to get started as well.
Fear not, for we all have to start somewhere.
Here's some steps I recommend you take:
Learn how to make a website with HTML and CSS.
Learn some javascript, and understand how programming is dynamic.
Try languages like Ruby or Python, and learn about the power they bring.
Learn a web framework in the language you preferred with from suggestion 3. Rails and Django are two major frameworks used today, both have clear getting started tutorials.
Try grabbing an account at Codecademy or CodeSchool. They both have amazing step-by-step guides to help you get started with the right knowledge.
Build your app with profiles, etc.
Build a mobile app around your web-service if you'd like.
In summary, it's all about patience, determination, taking on new levels of complexity at the right time and of course, the amazing feeling when all your hard work pays off and your app works!
Good luck!
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I've never worked with or written an API before. To help me learn, I want to write a Facebook API library RubyGem.
I'm thinking I should start with learning how to write a simple API with RoR.
Do you know of any good resources or tutorials that will help me learn how to write an API with Ruby?
I think you'll first have to chose what is exactly that you want to learn, since there's quite a few parts to this.
A gem such as facebooker is used to consume the API of a web service rather than "create" or expose an API (for a web service). In order to understand a library like this and what it does, you could try to learn more about APIs in general, but also about ways to access them using Ruby.
Even though Rails and the Rails community are embracing RESTful (or actually RESTlike) APIs, there are a bunch of other forms around as well, such as SOAP. Facebook e.g. has ditched REST in favor of their graph API. Check the answers for this question, which deals with the different types, to learn more: Examples of the best SOAP/REST/RPC web APIs? And why do you like them? And what's wrong with them?
For ways to access (REST) APIs I'd suggest taking a closer look at the source code of gems such as e.g. HTTParty and rest-client as well as Ruby's standard library Net::HTTP.
What comes to API's and web services, I've heard good things about "Restful web services" but there's a whole bunch of books and about a gazillion blog posts out there on this topic. Google is your friend.
And then you'll probably want to have a look at the development of ruby gems in general. This answer might give you some pointers in this regard: Ruby : How to write a gem?
This is an endless topic and I suggest to just get started somewhere. Learn how APIs work, how to access them and then read lots and lots of source code, e.g. of Facebooker or one of the other Facebook API gems. See how they work and start writing code. Good luck!
http://8raystech.com/2009/10/06/a-real-life-restful-rails-application
[edit]
The above link is broken.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I am using indextank with heroku. Which is a better gem to use, indextank or thinkingtank? I looked at the documentation, and tutorials for both,and it seems like thinkingtank is easier to use. A related/follow up question: what are the advantages/disadvantages of each?
It depends on what you're doing. If you are writing a simple app that's not based on ActiveRecord, the indextank client lets you add and search content without storing anything within your app. An example: if you are fetching tweets, you could index them directly without having a data model on your side. It's more "low level", so to speak.
If you are using ActiveRecord or another ORM, you should take a look at Tanker, it's more actively developed than ThinkingTank:
https://github.com/kidpollo/tanker
Hope this answers your question, if not please come chat with us at http://indextank.com (chat widget on the main page) and we'll be happy to help!
As Diego said, Tanker does seem like it has much going for it. Alternatively you could use IndexTanked:
https://github.com/zencoder/index-tanked
We wrote this library to power search on zencoder.com. Documentation is non-existant so far, but is coming.
One important feature included in IndexTanked, that was a necessity for us, was fault-tolerance. IndexTanked includes configurable fallback methods for use in case of failure to index, delete from the index, or search. Additionally, it limits calls to indextank by checking if the indexed fields have changed on updates. You can even obtain which fields we're checking against so you can select the minimum viable fields to be indexed when needed.
You can drop the author, Adam, a line at adam#zencoder.com if you have an questions (perfectly reasonable with the lack of docs).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I know that http://api.rubyonrails.org/ is meant to explain methods etc in ruby on rails, but I need something that explains the explanation to me. It seems like a good resource, I'd like to understand it or perhaps it's time to give up.
I think this might be what I was after
Reading the API
I suggest you try some light reading first. Quite a few Rails tutorials exist.
As the URL indicates, this is API documentation. You use it for reference, not for learning about the language or framework. This is not specific to the Rails API, but for just about every framework out there.
I suggest you follow a few Ruby tutorials and then start on a few Rails tutorials first.
http://www.ruby-lang.org/en/ should get you started on Ruby. I won't bother linking to Rails tutorials, but http://railscasts.com/ is an excellent place to start once you get a basic Rails app up and running.
After that, the Rails API will start making a lot more sense.
http://api.rubyonrails.org is definitely not what I would call newbie friendly. Here's some places to go for more information:
railsapi.com -- Same idea but way better presentation, easier to navigate. Use this like you would msdn.com: a reference for things you already know about, but need to look up the particulars.
guides.rubyonrails.org -- This is geared much more towards new users in a tutorial format.
railscasts.com -- Short demonstrations of particular features and plugins in screencast format.
Of course if you have any specific questions about the framework you've already come to the right place.
I recommend at http://www.railsbrain.com and http://railsapi.com/doc/rails-v2.3.5/ as better ways of navigating the docs.
Another good source would be apidock.com
Contains lots of examples on how to use each rails feature.
In addition the same site also provides documentation for Ruby
This one has a lot of good examples: http://www.tutorialspoint.com/ruby-on-rails-2.1/rails-quick-guide.htm
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Is there a good code snippets application for Delphi or general purpose with IDE integration? I would like to store Code, queries, notes, etc..
Thanks
GExperts has a Code Librarian feature for code snippets amongst many other nice features and integrates with the IDE. Well worth to check out even if you don't decide to use the Code Librarian feature.
Delphi 2006 and later has Live Templates. They are a bit tricky because you've got to edit XML files to really make them work, but they are powerful when they do. See Nick's Live Templates Camtasia Presentation. Ctrl-J is the shortcut to invoke this.
Prior to that, Delphi 2005 and earlier had simple code snippets. I believe Ctrl-J also invoked them.
Another option is to use Castalia and its Code Templates feature.
Dittos to Ozmosys above.
Also check CodeSnip Database Viewer from the delphidabbler:
http://www.delphidabbler.com/software/codesnip
I use Knowledgebase from Ozmosys. It hasn't been updated in a while, but it works, and it is written in Delphi. Ozmosys
I have to endorse Ozmosys' Knowledge Base too. The reason it hasn't been updated in a while is that it just works. When I DID have issues early in the development of the program, the author was very responsive and quick about doing it. It's logical and easy to post code and other types of hints. I use it every day, juggling the three or so projects that seem to be perpetually on my plate.