Is it possible to implement the following query using Criteria API?
select order from ORDER as order,ITEM as item
where item.itemID like 'ITM_01' and item in elements(order.items)
Is there any sort of non-SQL API for talking to SQL Server? I'm curious if there is a more direct way to retrieve table or view data.
(I don't have a problem with SQL, just curious if any of the layer between the SQL parser and the underlying data store is exposed.)
I've a dynamic web app in Eclipse that is using tomcat s a runtime environment.
I cannot add javadoc path tomcat Servlet API
as appears, the edit button is always disabled!
![alt text][1]
[1]:
I'm looking for a C or C++ API that will give me real-time spectrum analysis of a waveform on Windows.
I'm not entirely sure how large a sample window it should need to determine frequency content, but the smaller the better. For example, if it can work with a 0.5 second long sample and determine frequency content to the Hz, that would be wicked-awesome.
Using the Twitter REST API Method: favorites for a user, this returns a list of statuses of each favourite. Is there a way to get the favourite count other than calling users/show, and accessing the property this way? Seems an ineffecient way of determining if there are more than 20 favourites for paging purposes.
I need to append/format a url with a list of ids for an api call
however, when i put the list at the end of the api
https://api.twitter.com/1.1/users/lookup.json?user_id=%s'%a
i just get an empty string as a response.
i have tried turning the list into a string and removing the square brackets doing
a = str(followers['ids'])[1:-1]
but i still get the same problem. and im assuming that its being caused by the single quote at the start.
i have tried removing the apostrophe from the string doing
a.replace("'", "")
and now i have run out of ideas
thanks
Hi ,
I am doing the small application for link exchange,
so before i approve the URL , i want to check his/her site page rank,
I know , there some site tell the Google page rank position ,
But am looking some API , for page rank checking...
Thanks
Bharanikumar
Hello All,
Can we use private method in MPMoviePlayerController
e.g:
-(void)setOrientation:(int)orientation animated:(BOOL)value;
for playing movie in portrait mode. Did apple approve private api?
Multiple sites have buttons where you can tweet, digg, etc. On this page you'll see you can buttons for 6 sites (search twitter and you'll see them).
Is there a lib or api i can use to generate these buttons?
Hi all,
i am new in iPhone try to search image using kooaba API but i am not getting proper response
i need URL of image which user try to search. but i am not getting URL of image.
following is my response xml
58199oljm27fr8ro02kbm7occ
http://search.kooaba.com/q/58199oljm27fr8ro02kbm7occ
Short Cut to Hollywood
but i need data in tage
please help me,
with regards
Does Windows provide some sort of evented API so I can run some code whenever a drive (say a usb stick) is attached?
Like ReadDirectoryChangesW is for events on the filesystem?
I am trying to use the youtube API to pulldown some videos for my site. Currently am running this code here:
//Youtube Videos Pull Down
$youtubeURL = "http://gdata.youtube.com/feeds/api/videos?alt=json&q=cats+cradle+chapel+hill&orderby=published&max-results=10&v=2";
$youtubeSearch = file_get_contents($youtubeURL, true);
$youtubeArray = json_decode($youtubeSearch, true);
Not having any problems accessing certain elements of the associative array however youtube's api is putting $ in many of its array elements .. such as [media$group]
Anytime I try to access an array with one of the $ elements in it, it doesn't work. Suggestions?
I have tried preg_replace but can't seem to get my expression right.
Hi,
I'm trying to get Google Maps Directions API working with jQuery, and
I have the following code..
http://pastebin.com/6jcGt706
Where #end is a select list in the HTML.. I'm Using jQuery 1.4.. I'm
not sure as to what is going wrong.. Can you please help me with
this...
Would appreciate if any one could help me fix the problem with this..
Thanks!
I have functionality built in python on a central server. I wish to expose this api over the network to an iphone application. What would be the best way to do that?
Is it possible to create web services in python and have the iphone app use those? If so could anyone give me pointers as to how to create web services in python.
If someone has a better idea on how to go about doing this let me know =)
The greenlet package is used by gevent and eventlet for asynchronous IO. It is written as a C-extension and therefore doesn't work with Jython or IronPython. If performance is of no concern, what is the easiest approach to implementing the greenlet API in pure Python.
A simple example:
def test1():
print 12
gr2.switch()
print 34
def test2():
print 56
gr1.switch()
print 78
gr1 = greenlet(test1)
gr2 = greenlet(test2)
gr1.switch()
Should print 12, 56, 34 (and not 78).
I have authlogic going on my app, but now I need to have an an API. I
don't want to establish a session, just want a user to send in data in
a json request such as:
{"type":"address","password":"mypassword","name":"my notificaiton name
goes here","user":"myusername","text":"my interesting stuff goes
here"}
So questions -
1) is this a decent approach?
2) how do i do the auth inside my rails controller?
Hi all
I am looking for some compare application that i will be able to use from my code .
I need to compare files and know if they identical if not to get the lines and text where the difference was found.
Most;y i compare a text(ASCII) files.
So i need program with easy api for that thing.
Thanks for help.
I have a file that is generated inside (hudson server) /var/lib/hudson/jobs/jobtitle/1/out.txt
I need to fetch this file, but doing a GET request for http://myhudson:8090/job/jobtitle/1/out.txt doesn't actually locate the file.
Basically, I have another box that will grab this file from the hudson server. This box will make the out.txt file available for download.
Another challenge is the build number directories. How would I be able to use the hudson API to stop or delete the specific builds running ?
I am forced to do iterate through all build numbers to send STOP or DELETE api call in php using wget to do the REST API call. This is not very efficient.
for ($i=0; $i < 3000; $i++){
exec('wget -O /dev/null "http://myhudson:8090/job/' . 'jobtitle' . '/$i/stop"');
}
Has anyone here used Microsoft Anti-Virus API to scan file uploads using any anti-virus ? What is your experience. I want to use mcafee, trend or other well known AV to be called programatically.
In API documentation, and sometimes even used in discussions here on Stack Overflow, I sometimes see the pound (#) character used instead of the dot (.) as the separator between the class name and the method name. For example:
Settings#maxPageSize
I'm wondering what this usage means, and where it comes from?
Is it possible to use the criteria api to load a set of parent objects along with a filtered, eagerly loaded set of child objects? I'm trying to query a list of categories and at the same time load the categories products that start with the letter M. The query below gives me the results I want but the Products are not eagerly loaded, that is NHibernate performs additional queries when I enumerate the Product collection:
var categoriesWithProducts = session.CreateCriteria<Category>()
.SetFetchMode("Products", FetchMode.Eager)
.CreateCriteria("Products")
.Add(Expression.Like("Name", "M%"))
.List<Category>();
What am I missing here?