8
голосов
2ответов
3537 просмотров

How to restrict AJAX API from unwanted use (e.g. someone performing a SELECT *)

I have a restaurant locater web application that mashes up the location of restaurants to a Google Maps. I use JQuery sliders to limit the amount of restaurant to show on the map by having Search filter such as: price, type of food, locale. These JQuery sliders call back via AJAX to an API I cr...

0
голосов
1ответов
850 просмотров

getting Kuler themes with AJAX

Is there a way to request Kuler themes using AJAX, and then storing the themes in an array or something? I've got the API key and verified it's working. But I can't seem to get it working with AJAX... :\ $.ajax({ url:"http://kuler-api.adobe.com/rss/search.cfm", data: {"searchQuery":"blue", "...

2
голосов
2ответов
2428 просмотров

Windows API function equivalents (SetCursorPos, GetCursorPos, mouse_event, keybd_event ...) for Linux (X11)?

I was wondering if there were equivalents of the above mentioned functions for Linux (X11) - I can't seem to find them.

1
голосов
4ответов
608 просмотров

How to add SAN storage support to your application?

I want to add San Storage support in my application. Is there a standard protocol that I can use to communicate with all san storage devices like EMC Centera, Hitachi, NetApp or do I have to use library specific to each vendor? In a nutshell i'd like to save data on device and read it back. I kn...

1
голосов
2ответов
1814 просмотров

Setting a Bitmap in Windows 7 thumbnail preview

I am currently using the Windows 7 API Code pack for an application I am coding in C#. Currently, I understand how to draw part of the Window region or a control into the thumbnail preview: TaskbarManager.Instance.TabbedThumbnail.SetThumbnailClip((new WindowInteropHelper(this)).Handle, new Syst...

0
голосов
3ответов
78 просмотров

Is there some way to determine the client to my HTTP SOAP API currently?

I know that user agent can be faked easily when connecting through HTTP. I want to ensure access to my SOAP API only from iPhone devices. We don't know how many users will be using this when it is released but it might be a lot and we can't handle traffic from outside of the devices. Any other me...

-1
голосов
1ответов
68 просмотров

feed text parser

I'm getting text from an API and it's something like following: text = 'replied to @james and he was visiting this http://some-site.com/another/something/../ so what you think about it'; How can I parse this text and make links as html links and @james as html links also, but with their own hr...

0
голосов
1ответов
786 просмотров

Google Reader Unread Count

I wrote this function to get the unread count of google reader items. function GetUnread($sid) { $url = "http://www.google.com/reader/api/0/unread-count?all=true&output=xml"; $msg = urldecode($msg); $msg = stripslashes($msg); $msg = urlencode($msg); $url = $url . $msg; ...

3
голосов
1ответов
540 просмотров

How can I prevent a package-private interface appearing in Javadoc?

I've got a class like this: package org.jjerms.thing; interface IThing { void doSomething(); } final class Thing implements IThing { /** * This Javadoc pretends (to users outside the package) * that doSomething originates here. */ public void doSomething() { ...

1
голосов
2ответов
1123 просмотров

List processes for specific user

Would someone be able to point me to the C++ API's that I can use to display a list of processes and the user name in Windows? My current code uses the CreateToolhelp32Snapshot Function which shows all the processes running for all users, but I do not know what API's to use to retreieve the user...

0
голосов
1ответов
944 просмотров

In Facebook do I need to check permissions before I attempt an email?

Using the API call notifications.sendEmail you can send an email to a application user that has authorised your app and granted the "email" extended permission. Now lets pretend that I have 10 users I need to send an email to. 5 have given me this permission and 5 haven't. Is it necessary that ...

5
голосов
2ответов
5173 просмотров

News Data API or Feeds

I would like to know if there is any news feeds/api that can be used for coding/datamining. Skygrid for example gives live news feeds and if the news is good or bad, but it's all in flash and they don't seems to provide any rss other than their twitter.

0
голосов
2ответов
636 просмотров

SharePoint Client JavaScript Documentation

I'm attempting to improve the usability of a client's SharePoint deployment via JQuery; and am hitting a brick wall when trying to find any sort of documentation of what's happening in core.js (aside from painfully digging through and trying to parse any sort of meaning out of it --all 250kb of i...

0
голосов
2ответов
522 просмотров

Creating a directory in Application Common Data Directory

I have win32 API application in visual c++. I want to create a directory in Application Common Data Directory. I have the code which is generating following error. I have also tried to add '\0' at the end of string, but the same error appears. Debug Assertion Failed! Expression: (L“String is not...

1
голосов
2ответов
1056 просмотров

Business logic in a data object vs. coupling vs. DTO (vs. ?)

I've got a set of business/domain classes (for a calendar) that are going to be exposed in an internally-public API. In the same API, there are data objects that directly mirror the underlying database structure (NHibernate mapping, but that's unimportant). What I need to do is build typed colle...

1
голосов
3ответов
711 просмотров

OAauth gem in rails problem

I'm trying out OAuth for twitter api authentication and ran into a brick wall when my code spits out the message: (instance of OAuth::Consumer needs to have method `marshal_load') My code: @consumer=OAuth::Consumer.new( "token","secret", { :site=>"http://mysite.com/" }) @request_tok...

4
голосов
2ответов
1054 просмотров

ASP .NET with google map api

i am using google map api with asp .net for making a website, apart from C# which programming languages do i need to learn

4
голосов
1ответов
14906 просмотров

Set static text color Win32

I am making a dll that controls a dialogue box. I like to get a certain area to have red text. This code does compile, but the effect is not seen. Here is the area where the dialogProc is done: LRESULT CALLBACK DialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { switch(mes...

0
голосов
2ответов
888 просмотров

API for displaying video and drawing 2D elements

I'm looking for a Windows library/SDK that will allow me to do the following: Display video from a network stream Draw 2D elements on the displayed image in real time, such as lines, circles, text, etc. Use it in a commercial application (I don't mind paying for it) I'm willing to use any pro...

2
голосов
2ответов
548 просмотров

Twitter API - Validating Twitter is actually Twitter

I've been looking around at various APIs, and since twitter seems to be a common discussion point, I'll use it as an example. A lot of APIs are implementing oAuth which is great for allowing the service to authenicate and authorize the application connecting to it, however, from what I have see...

0
голосов
1ответов
251 просмотров

interacting with Apache in C#

I'm in need of a way of controlling Apache and reading configuration files etc for automating some tasks, does anyone know of any automation APIs or frameworks much like what Microsoft offers for IIS? The application is a C# WinForms app that has a Apache + PHP (WAMP stack essentially). We can't...

0
голосов
1ответов
2094 просмотров

How to make Joomla FaceBook connect to post Wall Entries?

I'm trying to make Joomla's JFBConnect post on the user's FB wall some of the user's actions on the website (forum posts, comments, favorites etc.) Any ideas? API references? Any related Joomla/FB documentation?

0
голосов
1ответов
777 просмотров

How can I create a flat marker in Google maps 3d flash api?

When using map3d, the default marker creation is always perpendicular to the viewport. How can I create a marker that lays down flat against the map? I can't use GroundOverlay because it becomes overly tiny when the map is zoomed out. How can I create a matrix3d object that will rotate/scale/s...

0
голосов
1ответов
806 просмотров

How to get an output console in an Ogre project under MacOSX?

I'm working on a project using Ogre3D. We recently ported our project to MacOSX but there are some things that were linked to the Windows API. In particular I don't know how this should be translated: #if defined( __WIN32__ ) || defined( _WIN32 ) AllocConsole(); #endif It would be nice to ...

1
голосов
4ответов
13832 просмотров

Upload image with facebook API

Question: How to upload an image from my webserver to facebook via FB API? I'm writing an application that retrieves images from the user's photo album, makes some modifications (e.g. adding a watermark) then send it back to photo album. The code I use to upload the photo is as follows <?ph...

15
голосов
3ответов
35258 просмотров

Take picture using webcam from command line

I have a Logitech webcam (QuickCam Pro for Notebooks), and I'd like to take a snapshot using the cam from a command line. Does it have any command line interface? If not, is there an API that will allow me to build a command line tool like this?

2
голосов
2ответов
3644 просмотров

CKEditor custom select menu

I am trying to add my own custom select menu to the new CKEditor. The API is a little confusing so I am unsure how to get this working. I am using the ui dialog function, but really not sure how to get it working. So far I have: CKEDITOR.ui.dialog.select(dialogObj, elementDefinition, htmlList)...

45
голосов
25ответов
13585 просмотров

What do you consider good API documentation?

I have always liked the documentation on Java APIs, generally speaking, but I know some people consider them lacking. So I'm wondering, what do you consider a good example of API documentation? Please, include a link or an actual example in any answer. I want to have references that I (and other...

6
голосов
3ответов
4663 просмотров

List all drives/partitions, and get /dev/rdisc device with Cocoa

Is there a way to list available drives, similar to Disk Utility, and get the associated /dev/rdisk* device for it? Disk Utility has access to this data - when you select a drive and press the Info button, it lists.. Partition Map Scheme : GUID Partition Table Disk Identifier : disk0 Media Name...

0
голосов
3ответов
3237 просмотров

How to access YQL in Python (Django)?

Hey, I need a simple example for the following task: Send a query to YQL and receive a response I am accessing public data from python backend of my Django app. If I just copy/paste an example from YQL, it says "Please provide valid credentials". I guess, I need OAuth authorization to do it. So ...