Is it possible to get NHibernate to generate a query similar to the following with HQL or Criteria API?
select
*
from (
select
row_number() over ( partition by Column1 order by Column2 ) as RowNumber,
T.*
from
MyTable T
)
where
RowNumber = 1
I can get it to execute the inner select using the formula attribute, but I can't figure out a way to write a HQL or Criteria query that lets me wrap the inner select in the outer one.
function isNewUsername(str){
var result;
$.post('/api/isnewusername',
{username:str},
function(data) {
result = data.result;
},
"json");
return result;
}
So , my problem is very simple but I can not figure it out . I want to access result from the isnewusername function . I am very curious about answer because I spent 1 hour on it .
Thank you
Is it possible to authenticate to google calendar (when you know the username/password) using its JavaScript API?
I tried calendarService.setUserCredentials(username, password); but it didn't work
Hi,
I'm developing a tool that searches the keyword entered by the user on a given site. My problem is, it searches the keyword only on html/web pages but not on the PDF/MS-Word files found on the site.
Can anyone suggest me some api/tool or provide the code that can search text from the given online PDF/MS-Word/Text file?
i am very new to Google maps i want calculate the distance between two places in android .for that i get the two places lat and lag positions for that i write the following code:
private double getDistance(double lat1, double lat2, double lon1, double lon2) {
double dLat = Math.toRadians(lat2 - lat1);
double dLon = Math.toRadians(lon2 - lon1);
double a = Math.sin(dLat / 2) * Math.sin(dLat / 2)
+ Math.cos(Math.toRadians(lat1))
* Math.cos(Math.toRadians(lat2)) * Math.sin(dLon / 2)
* Math.sin(dLon / 2);
double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
double temp = 6371 * c;
temp=temp*0.621;
return temp;
}
the above code cant give the accurate distance between two places .what is the another way to find distance please give me any suggestions thanks in advance....
Since getting a satisfactory answer on SuperUser is very difficult, I want to rephrase this question and ask:
Is there any way to programatically detect a mouse was plugged in the usb port, and change the cursor speed in windows (perhaps through an API)?
I'd like to use C#, but I'm open to any language that can run on a windows 7 machine.
I have an website on asp.net-mvc, I'm thinking of using paypal for payments, is it possible to use paypal api for selling website's currency to users and buying it back ?
hi friends,
I am making an iphone game , In that I want to upload score on face book. I am new to face book codes, I've got it's API from github.com. But I don't know how to write or post directly my message on wall of face book of log in account. I've done log in portion.
Can any one help me????
I am looking for a web service API that I can use to send MMS messages. Most web services like Twilio and TextMarks only support SMS. I am looking for a similar service that supports MMS. Are there any out there?
I'm in the process of settings up a website (I'm using DJango) to begin selling some toys I build and need a way of calculating shipping costs for my customers.
Are there any (preferably free) shipping calculators which accept a customers address and return the cost for different delivery companies / delivery options?
It would be nice if the API could indicate cost vs delivery time.
We'll be shipping world-wide if that makes a difference?
I am wondering what my options are for using GData and specifically the analytics api on android to build a small widget. After searching around for a while I couldnt come up with any libraries with decent examples.
Are there any dedicated libraries with some decent examples / doco to do this sort of thing? I would like to target 1.6 but if the are 2.0 only I guess that is fine too.
I am experiencing a strange phenomenon with Blogger GData API 2.0 on Android. I am using
the BloggerService to retrieve blogs. First time it works fine.
However EVERY SECOND TRY I get a NullPointerException:
Caused by: java.lang.NullPointerException
at com.google.gdata.wireformats.AltRegistry.lookupType(AltRegistry.java:190)
at com.google.gdata.client.Service.parseResponseData(Service.java:1860)
at com.google.gdata.client.Service.getFeed(Service.java:1054)
at com.google.gdata.client.Service.getFeed(Service.java:916)
at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:631)
at com.google.gdata.client.Service.getFeed(Service.java:935)
Hello,
So I am trying to use YQL to access the flickr api but I have been having some issues. From reading the YQL info, it seemed like I could use any flickr query in YQL but for some reason I cannot use flickr.people.getPublicPhotos call to access all pictures from a certain person. When I try any such query it isn't recognized. Is this possible? Am I doing something wrong?
Thanks!
Hi,
I am developing a facebook application (FBML) and i want to ask for certain extended permissions for the first time a user comes to app. How to do that?
Note that I am not using new graph API for this app.
Does anyone know of how to capture from Facebook analytics around the use of the "like" button--i.e., if I've got thousands of pages with the Like button on them, how to query Facebook to see how many likes each of them has received? Is there a Facebook API call for this?
Thanks!
Hi,
I'd like to find out a way to enumerate all available wifi networks using Java 6.0 and any third-party API.
Unfortunately, I'm not able to find a solution to this problem, all I got is a library that I can't use because I don't have any example.
I'll be very pleased if someone could help me.
The target platform is Win XP/7.
Edit: the library I found is named jwlanscan
Rob
Hey, I've been developing an application in the windows console with Java, and want to put it online in all of its console-graphics-glory.
Is there a simple web applet API I can use to port my app over?
I'm just using basic System.out and System.in functionality, but I'm happy to rebuild my I/O wrappers.
I think something along these lines would be a great asset to any beginning Java developers who want to put their work online.
I have a asp.net website and i need to import address books from yahoo, msn and aol. I have already done gmail import by downloading the google contacts api. But i cannot find the same for yahoo,msn and aol. does anyone know if there's a single dll avilable that can do this? or any other way is fine.
Hi guys, im developing an Android application for twitter that will sync data coming from the people you follow.
The problem is that:
http://api.twitter.com/1/statuses/friends.json
provides me the last 100 persons ive followed and i wanted to display only 20 for each 'page'.
I believe that the 'cursor' parameter doesnt do what i need, so i'm trying to figure out a way to store it.
Can you guys give me enlightenment?
Thanks in advance
I'm trying to draw a graph on an ASP webpage. I'm hoping an API can be helpful, but so far I have not been able to find one.
The graph contains labeled nodes and unlabeled directional edges.
The ideal output would be something like this.
Anybody know of anything pre-built than can help?
Does Python3 have a built in method to do this? Any guidance at all would be great! :)
The website in question exposes all of its information and even gives you an API key to use.
Hello
Im looking for a way to get an application, any application, that has been started using ShellExecuteEx or CreateProcess to draw on an offscreen surface such as a bitmap instead of drawing on the desktop, this should include any dialogs the (Open, Save, messages) that the application invokes.
I am familiar with the Windows API, GDI and device context, any suggestions would be much appreciated.