facebook link recognizer for rails? [closed] - ruby-on-rails

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am developing an app that allows users to post to walls/groups very much like facebook or a classic forum. I really like the way you can post a link on facebook and the link will be recognized as a video, pic, or other media and will automatically display. Its a great feature b/c it keeps users on facebook instead of leaving the site. On that note, I was looking to implement something similar for my the app I am developing. Are there any rails plugins/gems that do this kind of thing?
Yes, I know how to google and have done so. I realize that I could write regular expressions to scan the link and then take an according action. However, I am looking for an existing implementation to save a boat load of time.
Any and all input would be appreciated.

Existing implementations would probably be employing some form of regular expression, although another approach is using custom "Markdown" syntax or BB code to make the regular expression easier.

Related

Use Reddit API to access front page data on IOS [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
How do you use the reddit API to get the title/upvotes/op of a post using IOS? Is it even possible or do I have to parse the HTML? I have already parsed the front page but the posts I get don't match the desktop version at all. I feel there must be an easier way to access this information.
You sort of answered this yourself. Use the Reddit API, request the information you want and parse the JSON that's returned from the API. Specific community support found here but be sure to try and solve your problems by searching first.
You'll find a wealth of information on parsing JSON on StackOverflow, including examples specific to your language.
You can easily get the front page JSON by requesting: http://reddit.com/.json to start with.

Ruby on Rails Events Application [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am relatively new to Ruby on Rails. I have built few sample apps but now I want to build a real world app like an events website which gives information on forthcoming events, event galleries, etc. Can some one give more ideas on this or something already built on github to learn using it.
Thanks in advance.
By the types of question you are asking, it seems to me that you are not very experience in Rails. Therefore, I recommend you to complete Michael Hartl's tutorial: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book. Although it won't teach how to make galleries and such, it will teach you the fundamentals that you need for your app. For instance, in your case you will understand how to create an Event model with information in a database that you can then show. After that, you can go ahead and check out things like spud_photos( https://github.com/gregawoods/spud_photos) which is a gem that allows you to create image galleries.
Good luck

How do I create a poll on the facebook wall? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to create a poll on the facebook wall. Is it possible to do?
For some reason the creation of "questions" (aka polls) is not available yet in the API. If you want you should log a bug at developers.facebook.com/bugs and mark it as a wishlist item.
As far as I know it isn't possible.
You can only read questions with => "HTTP GET request to the /USER_ID/questions endpoint with the user_questions or friends_questions permissions"
...but I haven't tested it yet.
You can try one of many pre made poll apps, like this, just search for polls at the top in the apps, then install them on your page http://www.facebook.com/mypoll.page .
Another way would be to make an app that does the job, I have created apps before to add tabs to Facebook, you can put whatever you want on them then like a poll. Im not 100% how to post it to your wall without digging some more, but the example I posted above shows the poll posted on the wall.

Hack Firefox to use custom URLs? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I am using an extension that depends on the page. I would like to use the extension for each board which means I need a board unique url. It currently looks like this
http://phpbb-site.com/forum/viewforum.php?f=BOARDNUMBER
I'd like to trick Firefox into having BOARDNUMBER in the location part of the url.
Then the extension will work and I won't have to tweak it. The problem is that I can't think of any way I can have Firefox use nice urls. I only need it to work on my computer. I don't own the site. What can I do? Can I use a proxy program? I was thinking maybe I could write a quick asp.net program which essentially does a GET request on the site and replaces all links to include the boardnumber and ignores that part of the url when making the request. It's probably a bad idea because I am sure lots can go wrong
Any ideas?
You should be able to do this using a simple script in Fiddler.

Print Page functionality in MVC [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Anyone done this in MVC? any info would be great!.
Thanks.
You can get pretty far simply by including a print.css file for media type print.
Hide everything you don't want and include logical page breaks and demensions (inches, etc... actually format more correctly using the print.css override).
I have used a custom controller (or filter) to handle links using something like index.print instead of index.html, which simply overrides the master layout with a layout more suitable for printing, but I still feel that the alternate stylesheet is the best way to go.
http://www.alistapart.com/articles/goingtoprint/
Printing a page isn't really a matter for ASP .NET or MVC. Printing is a client-side operation, and therefore can (and should) be done entirely in client-side code. JavaScript has a method call for this:
window.print()

Resources