<div dir="ltr">We need to filter the feed with user's preferred languages. How will he configure that?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 12, 2014 at 10:04 PM, karthik senthil <span dir="ltr"><<a href="mailto:karthik.senthil94@gmail.com" target="_blank">karthik.senthil94@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey<br>
<br>
Are you talking about the language settings ?<br>
Well, the gem wtf_lang covers most of the languages used and hence<br>
there should not be any worry about misinterpretation. However if<br>
further details of a language needs to be saved, we can simulate the<br>
acts-as-taggable-on gem .i.e explicitly tag the post with its<br>
identified language.<br>
<br>
Please tell me, if we will be missing any specific details/features by<br>
following the implementation mentioned in my previous mail.<br>
<br>
Thanking You<br>
Karthik.S<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Wed, Mar 12, 2014 at 9:54 PM, Ershad K <<a href="mailto:ershad92@gmail.com">ershad92@gmail.com</a>> wrote:<br>
><br>
><br>
><br>
> On Tue, Mar 11, 2014 at 5:46 PM, karthik senthil<br>
> <<a href="mailto:karthik.senthil94@gmail.com">karthik.senthil94@gmail.com</a>> wrote:<br>
>><br>
>> Hey Ershad,<br>
>><br>
>> I have checked the act-as-taggable-on gem and the Diaspora codebase to<br>
>> consider the following implementation:<br>
>><br>
>> 1) Add the the languages tag to the post model( acts_as_taggable<br>
>> :language)<br>
>> 2) When post is submitted, use this<br>
>> gem(<a href="https://github.com/nashby/wtf_lang" target="_blank">https://github.com/nashby/wtf_lang</a>) to auto-identify the language<br>
>> and add it to the language_list.<br>
>> 3) Performing queries on the posts model can be done through the<br>
>> languages tag(filtering).<br>
>><br>
>> An important point here is that, if the taggable gem is used, then<br>
>> there is no need for a language model or ActiveRelations.<br>
><br>
><br>
> You are right. How will you manage to update the settings in Diaspora? Have<br>
> you looked at it?<br>
><br>
>><br>
>> Please consider the same and suggest if this approach meets all<br>
>> requirements.<br>
>><br>
>> Thank You<br>
>> Karthik.S<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> On Tue, Mar 11, 2014 at 1:51 AM, Ershad K <<a href="mailto:ershad92@gmail.com">ershad92@gmail.com</a>> wrote:<br>
>> > Thank you, Karthik. Please write us about possibilities I mentioned in<br>
>> > the<br>
>> > previous mail.<br>
>> ><br>
>> ><br>
>> > On Tue, Mar 11, 2014 at 1:36 AM, karthik senthil<br>
>> > <<a href="mailto:karthik.senthil94@gmail.com">karthik.senthil94@gmail.com</a>> wrote:<br>
>> >><br>
>> >> Hey Ershad<br>
>> >><br>
>> >> My GitHub profile : <a href="https://github.com/karthiksenthil" target="_blank">https://github.com/karthiksenthil</a><br>
>> >><br>
>> >> I have interned with <a href="http://www.bigbhk.com/" target="_blank">http://www.bigbhk.com/</a> in the winter of 2013,<br>
>> >> being a core developer of the site.<br>
>> >> Apart from this I have worked on a basic blog-site<br>
>> >> <a href="http://nitkrug.herokuapp.com/" target="_blank">http://nitkrug.herokuapp.com/</a>.<br>
>> >><br>
>> >> Thanking You<br>
>> >> Karthik.S<br>
>> >><br>
>> >><br>
>> >><br>
>> >> On Tue, Mar 11, 2014 at 1:26 AM, Ershad K <<a href="mailto:ershad92@gmail.com">ershad92@gmail.com</a>> wrote:<br>
>> >> > Hi Karthik,<br>
>> >> ><br>
>> >> > We could definitely add a 'Language' model and link the posts using<br>
>> >> > relationships. But I'm more keen to the idea of using tags,<br>
>> >> > preferably<br>
>> >> > with<br>
>> >> > acts-as-taggable-on[1]. Thus we could tag a post with more than one<br>
>> >> > language. What do you think?<br>
>> >> ><br>
>> >> > We could either use an existing API to identify the language(s) or<br>
>> >> > let<br>
>> >> > the<br>
>> >> > user mark the languages manually. Have you explored the<br>
>> >> > possibilities?<br>
>> >> ><br>
>> >> > Also how do you think the user would configure the language?<br>
>> >> ><br>
>> >> > Can you please link to a few projects you worked on?<br>
>> >> ><br>
>> >> > Thanks.<br>
>> >> ><br>
>> >> > [1] <a href="https://github.com/mbleigh/acts-as-taggable-on" target="_blank">https://github.com/mbleigh/acts-as-taggable-on</a><br>
>> >> ><br>
>> >> ><br>
>> >> > On Tue, Mar 11, 2014 at 1:00 AM, karthik senthil<br>
>> >> > <<a href="mailto:karthik.senthil94@gmail.com">karthik.senthil94@gmail.com</a>> wrote:<br>
>> >> >><br>
>> >> >> Hey Ershad,<br>
>> >> >><br>
>> >> >> I have just looked into the code of Diaspora and from the schema.rb<br>
>> >> >> figured out that the posts can be filtered by adding an additional<br>
>> >> >> field to the posts model. This additional field should preferably be<br>
>> >> >> a<br>
>> >> >> foreign key i.e. we can establish an ActiveRelation between the<br>
>> >> >> posts<br>
>> >> >> model and a new model called languages, as this will help in<br>
>> >> >> customising languages with ease at anytime without affecting any<br>
>> >> >> dependencies.<br>
>> >> >><br>
>> >> >> The important part however is identifying the language of the post.<br>
>> >> >> If<br>
>> >> >> it is explicitly provided by the user(from a dropdown of languages)<br>
>> >> >> it<br>
>> >> >> will be easy to implement,but auto identifying the same requires<br>
>> >> >> some<br>
>> >> >> parsing algorithms or other techniques.<br>
>> >> >> I would like to know which of the 2 above methods is required or<br>
>> >> >> preferred.<br>
>> >> >><br>
>> >> >> Also setting up development environment for Diaspora is a long<br>
>> >> >> process<br>
>> >> >> I suppose.<br>
>> >> >><br>
>> >> >> However do keep me informed on your opinion and requirements of the<br>
>> >> >> project.<br>
>> >> >><br>
>> >> >> Thanking You<br>
>> >> >> Karthik.S<br>
>> >> >><br>
>> >> >><br>
>> >> >><br>
>> >> >><br>
>> >> >><br>
>> >> >><br>
>> >> >><br>
>> >> >><br>
>> >> >><br>
>> >> >> On Mon, Mar 10, 2014 at 10:36 PM, Ershad K <<a href="mailto:ershad92@gmail.com">ershad92@gmail.com</a>><br>
>> >> >> wrote:<br>
>> >> >> > Hi Karthik,<br>
>> >> >> ><br>
>> >> >> > Project is to implement a language filter to filter the posts in<br>
>> >> >> > the<br>
>> >> >> > feed<br>
>> >> >> > based on the language.<br>
>> >> >> ><br>
>> >> >> > You may find the diaspora code base in github[1]. How do you think<br>
>> >> >> > we<br>
>> >> >> > should<br>
>> >> >> > go about this project? Do write to us, good luck.<br>
>> >> >> ><br>
>> >> >> > [1] <a href="https://github.com/diaspora/diaspora" target="_blank">https://github.com/diaspora/diaspora</a><br>
>> >> >> ><br>
>> >> >> ><br>
>> >> >> > On Mon, Mar 10, 2014 at 3:46 PM, karthik senthil<br>
>> >> >> > <<a href="mailto:karthik.senthil94@gmail.com">karthik.senthil94@gmail.com</a>> wrote:<br>
>> >> >> >><br>
>> >> >> >> Hey<br>
>> >> >> >><br>
>> >> >> >> I'm Karthik.S pursuing B.Tech(Information Technology) from<br>
>> >> >> >> National<br>
>> >> >> >> Institute of Technology,Karnataka,India.<br>
>> >> >> >><br>
>> >> >> >> I am primarily a Ruby on Rails based web developer and have an<br>
>> >> >> >> experience of about 8 months in the same. I have also worked with<br>
>> >> >> >> a<br>
>> >> >> >> start-up in the winter of 2013 to develop a RoR based<br>
>> >> >> >> application.<br>
>> >> >> >><br>
>> >> >> >> I am avid fan of open source development and very much interested<br>
>> >> >> >> in<br>
>> >> >> >> contributing to the same.<br>
>> >> >> >><br>
>> >> >> >> Hence, I'm interested in working on this particular RoR based<br>
>> >> >> >> project-<br>
>> >> >> >> Language filter for diaspora.<br>
>> >> >> >><br>
>> >> >> >> I would like to have some details regarding this project and the<br>
>> >> >> >> codebase that will be used to work on, so that I can get familiar<br>
>> >> >> >> with<br>
>> >> >> >> the repository before contributing to the same.<br>
>> >> >> >><br>
>> >> >> >> Looking forward to work with SCM this summer :)<br>
>> >> >> >><br>
>> >> >> >> Thanking You<br>
>> >> >> >> Karthik.S<br>
>> >> >> >> 2nd Year,B.Tech(I.T.)<br>
>> >> >> >> NITK,Surathkal<br>
>> >> >> >> _______________________________________________<br>
>> >> >> >> Student-projects mailing list<br>
>> >> >> >> <a href="mailto:Student-projects@lists.smc.org.in">Student-projects@lists.smc.org.in</a><br>
>> >> >> >> <a href="http://lists.smc.org.in/listinfo.cgi/student-projects-smc.org.in" target="_blank">http://lists.smc.org.in/listinfo.cgi/student-projects-smc.org.in</a><br>
>> >> >> ><br>
>> >> >> ><br>
>> >> >> ><br>
>> >> >> ><br>
>> >> >> > --<br>
>> >> >> > Regards,<br>
>> >> >> > Ershad K<br>
>> >> >> > <a href="http://ershadk.com" target="_blank">http://ershadk.com</a><br>
>> >> ><br>
>> >> ><br>
>> >> ><br>
>> >> ><br>
>> >> > --<br>
>> >> > Regards,<br>
>> >> > Ershad K<br>
>> >> > <a href="http://ershadk.com" target="_blank">http://ershadk.com</a><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > Regards,<br>
>> > Ershad K<br>
>> > <a href="http://ershadk.com" target="_blank">http://ershadk.com</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Regards,<br>
> Ershad K<br>
> <a href="http://ershadk.com" target="_blank">http://ershadk.com</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Regards,<br>Ershad K<br><a href="http://ershadk.com" target="_blank">http://ershadk.com</a></div>
</div>