Hey everyone, im hoping someone can help me. I have a search page in a web app and im trying to construct a custom query to hand to my repository so that when a search is done, only when there are search parameters it will do something. I have the logic done so that it detects when there are parameters, but i still dont know how to construct the query and i cant find a simple enough example through my normal channels online. Can someone offer advice? Or forward me to an online resource? Thanks in advance!
Ayende has a good examples of different queries with nhibernate.
http://ayende.com/Blog/archive/2009/05/19/nhibernate-queries-examples.aspx
Related
I am trying to create a Fitbit watchface that displays stock data or certain stock. Does anyone know how to do this. I am just learning how to work this thing
So there is not much on fit bit studio but there are a few very good tutorials that can get a beginner like me started. Here is a link. If there is something out there that somebody knows how to call on an external API to use within fit bit, please don't hesitate to post it in here. It will help me and many other noob programmers :)
https://www.youtube.com/watch?v=gISL5qa607M
I don't have much web development practical experience although I had studied a lot on the web (Treehouse, CodeSchool, other tutorials and articles).
I have found some explanations on how to use Ajax with RoR and jQuery. But I'm having difficulties to understand how to solve my problem as the explanations often use jquery-ujs that I suppose I can't use in my case.
My problem is difficult to explain here but is similar to implementing this shopping cart on RoR, including more parameters like price
The jQuery UI is working for me in my RoR application. What is missing is the AJAX part and how to make it work with RoR
I have found some questions here on StackOverflow that is about this topic but it didn't helped much as they are probably for more advanced users.
So, I believe that the best help would be a tutorial or book or some other reference that is more similar to my problem. However any advice or other kind of directions may help
After struggling a lot, finally I solved my problem.
I will post here the resources and some tricks that helped me. I hope it can help others. StackOverflow didn't let me post all the links. For this reason, I just gave some hints that may help to find some resources.
About the jQuery Ajax concepts, I recommend Code School jquery course "The Return Flight".
The second thing that I think helps is learn to debug. Firebug helped me a log to debug the client side/javascript/Ajax. This link may help on that:
http://www.zyxware.com/articles/2642/debugging-tips-how-to-debug-ajax-requests-using-mozilla-firefox-and-firebug
Since the problem may be to debug RoR. Look for a RailCast on the subject.
One of the things that I took some time is if it would be better to use $.ajax(), $.post(), $.get() or $.getJSON(). The link below may explain better but to sum it up, $.ajax() is the more generic one and the other are simpler ones and that call $.ajax() with specific parameters.
Difference between $.post and $.ajax?
It is important to understand how RoR routing works to call the right url with the right $.ajax() type. "rake routes" may help.
This link may also help to use the right $.ajax() type.
http://old.thoughtsincomputation.com/posts/understanding-rest-in-rails-3
Finally, to send the right format from the javascript to RoR controller, this link may help:
How to send and store data to rails through jquery/ajax as a JSON object?
I already did similar search terms for this topic in this forum.
https://stackoverflow.com/questions/6151668/alternative-to-google-translate-api
But that post is a bit old.. Things may have changed for about a year. And I wonder does anybody know if there's any better REST-based API service that I can use out there since that post was last posted.
Thanks.
I guess Bing translator could be the substitute that u are looking for.
I was looking for alternatives as well and came across a npm package called google-translate-api-browser which does work for my small project, but I can't assure big data translations or requests not being throttled
How does one issue span queries in SOLR (Span, SpanNear, etc)? I've
done a bit of research and I can't tell of a straightforward way to do it.
It would seem that I need to implement a QueryParserPlugin to accomplish
what I want to do. Is this the correct path? Surely this has been done before. Does
anybody have links to examples? I had trouble finding anything.
Span queries aren't currently supported (JIRA issue here).
Judging by this mail thread, it seems that you're on the correct path by implementing a QueryParserPlugin.
If you do implement this, consider submitting a patch!
I have a problem with a SPARQL query engine called "TWINKLE" . Although i found the executible file and it was working perfectly , I failed to find any manual on the net about the usage of TWINKLE. As I am new to the SPARQL querying , i need a bit of help on that regard. CAn anyone suggest how to get more info or help regarding this??
Thanks.
Rajroshan Sawhney.
I assume you're talking about Leigh Dodd's Twinkle tool? I agree that the documention isn't that obvious.
Leigh's talk to Oxford SWIG is worth looking at.