Currently, I am using PandoraBoy to listen to my Pandora stations. In the preferences, it allows you to set global hotkeys to control playing, like/dislike, volume, stations, etc.
What I would like to do is allow the built-in media keys on my MacBook Pro's keyboard (F7-F12: Previous, Play/Pause, Next, Mute, Volume Up, Volume Down) to control PandoraBoy like they do iTunes.
Right now, I am using Command-F(7-12) to control it, but that requires me to hold down the "fn" and command keys
Is there a way to bind these commands to the media keys without needing to function-shift them?
What is the easiest way to transfer files from (and into) my pc to(from) my windows mobile pocket-pc (Tytn II) just by using the wifi I have at home?
Is there any simple app that I can install on the pc or the pocket-pc that helps me do this?
The OData website at http://www.odata.org/home has been updated today to provide a much more engaging page than the previous sterile attempt. Moreover its now chockful of information about the progress of OData including a blog, a list of products that produce OData feeds plus some live OData feeds that you can hit up today, a list of OData-compliant clients and an FAQ. Most interestingly SQL Azure is listed as a producer of OData feeds:
If you have a SQL Azure database account you can easily expose an OData feed through a simple configuration portal. You can select authenticated or anonymous access and expose different OData views according to permissions granted to the specified SQL Azure database user.
A preview of this upcoming SQL Azure service is available at https://www.sqlazurelabs.com/OData.aspx and it enables you to select one of your existing SQL Azure databases and, with a few clicks, turn it into an OData feed. It looks as though SQL Azure will soon be added to the stable of products that natively support OData, good news indeed.
@Jamiet
Related blog posts:
OData gunning for ubiquity across Microsoft products
Share this post: email it! | bookmark it! | digg it! | reddit! | kick it! | live it!
I'd like to perform efficient paging using containstable.
The following query selects the top 10 ranked results from my database using containstable when searching for a name (first or last) that begins with "Joh".
DECLARE @Limit int;
SET @Limit = 10;
SELECT TOP @Limit
c.ChildID, c.PersonID, c.DOB, c.Gender
FROM
[Person].[vFullName] AS v
INNER JOIN CONTAINSTABLE(
[Person].[vFullName],
(FullName),
IS ABOUT ( "Joh*" WEIGHT (.4), "Joh" WEIGHT (.6))
) AS k3
ON
v.PersonID = k3.[KEY]
JOIN
[Child].[Details] c
ON
c.PersonID = v.PersonID
JOIN
[Person].[Details] p
ON
p.PersonID = c.PersonID
ORDER BY
k3.RANK DESC,
FullName ASC,
p.Active DESC,
c.ChildID ASC
I'd like to combine it with the following CTE which returns the 10th-20th results ordered by ChildID (the primary key):
DECLARE @Start int;
DECLARE @Limit int;
SET @Start = 10;
SET @Limit = 10;
WITH ChildEntities AS
(
SELECT ROW_NUMBER() OVER (ORDER BY ChildID) AS Row, ChildID
FROM Child.Details
)
SELECT
c.ChildID, c.PersonID, c.DOB, c.Gender
FROM
ChildEntities cte
INNER JOIN
Child.Details c
ON
cte.ChildID = c.ChildID
WHERE
cte.Row
BETWEEN
@Start+1 AND @Start+@Limit
ORDER BY
cte.Row ASC
Hi!
How can I programmatically refresh Visual Studio Solution Explorer?
I can get a hold of the solution explorer window object, but don't know what to do with it!
var solutionExplorer = (UIHierarchy)DTE.Windows.Item(Constants.vsext_wk_SProjectWindow).Object();
Thanks.
Hi,
can any one please send me the project(in android) where there is only client program which can connect to server and read the response from the server.send to my mail id [email protected]
Thanks and Regards,
Pushpa
Hello, my jQuery.ajax return JSon object. I firstly read other articles. but their response text not likes mine.
My Response content: from firebug response
{"item":"[{\"country\":\"USA\",\"lan\":\"EN\"},{\"country\":\"Turkiye\",\"lan\":\"TR\"}]"}
Now i trying to alert countryName:
$('#loadData').click(function() {
$.ajax({
type: "POST",
url: "WS/myWS.asmx/getDaa",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
$("#jsonResponse").html(msg);
$.each(msg.item, function(i, d) {
alert(this.country);
debugger;
});
},
});
});
but it is alerting "undefined"
I am new to Netbeans. Is it possible to work directly on the server files through sftp to avoid downloading/uploading each time. Will the intelisense work the same ?
If it is possible I can't find how to do that or what plug-in i need to use. And if it isn't what other free php IDE offers this option ?
Hi at all,
I have created a very simple blog at www.example.com with a only one page.
When I connect to www.example.com I see all posts inserted in the database ( in mysql ).
Now I want that every 60 seconds an ajax request check in the database if there are new posts. If there are new posts these will be inserted at the top above the old posts.
This is my question:
How can I through Ajax retrieve only new posts ( and so distinguish old posts and new posts ) ?
I Was reading random questions and answers here on SO and came across this question:
C#, IAsyncResult and the thread pool
The question is asked is X method using the thread pool or using normal threads.
What's the difference between using the thread pool and a normal thread?
What is the best and useful debug tool in Linux environment for Perl and C++ scripts?
In related to that, does anyone know the differences between Eclipse to DDD tools?
Thank you,
YoDar.
Currently I am using ctype_alnum to check for alphanumeric type in csv file. But one of my data has white spaces between them and so ctype_alnum gives me false.
Example: ctype_alnum("Here is 23");
So my question is how can I check for white spaces in string in php ?
Is it possible to set font-family for any of the non-flash Google chart visualizations? Specifically for things like the text on the chart axis. Google charts is powerful, but ugly. And unfortunately I can’t move to something nicer, like gRaphael.
Hi,
I would like to create a configuration panel for the homepage of the web-app I'm designing with Django.
This configuration panel should let me choose some basic options like highlighting some news, setting a showcase banner, and so on.
Basically I don't need an app with different rows, but just a panel page with some configuration options.
The automatically generated administration area created by Django doesn't seem to handle this feature as far as I can see, so I'm asking you for some directions.
Any hint is highly appreciated.
Thank you in advance.
Matteo
I'm using a DGV to show a list of images with text captions as a picklist. Their must always be a one and only one selection made in the list. I can't find a way to prevent the user from clearing the selection with a control-click on the selected row.
Is there a property in the designer I'm missing that could do this?
If I have to override the behavior in the mouse click events are there other ways the user could clear the current selection that need covered as well?
Is there a third approach I could take that's less cumbersome than my second idea?
I have a table called activities which contains a number of activities for projects (for example 6 activities are related to one project). On a manage projects page, you can see the projects, and I have one column which needs to display the number of tasks associated with the project (in that particular row).
So basically, I need a query or PHP calculation that can add up the number of tasks for the project and then display this number dynamically! I know exactly what I need, just do not know how to implement it. Any help is much appreciated! Thanks.
I am taking over someone elses code. What are some good ways to learn what that programmer did as quickly as possible? I have been running it, stepping through it and looking at the callstack. What else can I do?
Sorry I forgot to mention, but there is little documentation and I have been trying to fix simple problems. Thanks!
I just came across a SQL statement that uses AS to alias tables, like this:
SELECT all, my, stuff
FROM someTableName AS a
INNER JOIN someOtherTableName AS b
ON a.id = b.id
What I'm used to seeing is:
SELECT all, my, stuff
FROM someTableName a
INNER JOIN someOtherTableName b
ON a.id = b.id
I'm assuming there's no difference and it's just syntactic sugar, but which of these is more prevalent/wide-spread? Is there any reason to prefer one over the other?
Hello,
I have the following hash of countries;
COUNTRIES = {
'Albania' => 'AL',
'Austria' => 'AT',
'Belgium' => 'BE',
'Bulgaria' => 'BG',
.....
}
Now when I output the hash the values are not ordered alphabetically AL, AT, BE, BG ....but rather in a nonsense order (at least for me)
How can I output the hash having the values ordered alphabetically?
I'm trying to program a Hebrew site with a search option.
I am using php 5 with Apache 2.2, on a Debian 5 (Lenny) with
appropriate code pages enabled.
I am using _POST to pass arguments to a script. If I pass
English word to the script everything works, but when I use Hebrew
nothing is passed through the POST function. When I use ECHO
to show _POST, the variable is empty.
What might be the problem?
Hi!
I need some advice about how should I start coding something.
So here is the context:
I've just finished building a CMS that manage a SQLite database. My application will be picking this database and use its content as the application's content. So far it's pretty simple.
The application will have a navigation that will browse through various workflows, and once at the end workflow, it'll show contents from the database. A consultation kind a thing, example: Liquids - Juice - Orange Juice - Informations about Orange Juice.
For my SQLite transactions, so far I believe I'll be using fmdb. It looks like a great wrapper.
Here's a simple schema from one of the database:
Workflow:
id: { type: integer(3), primary: true, autoincrement: true }
workflow_id: { type: integer(1) }
name: { type: string(255) }
That table's rows will be my navigations. Do you believe I should use a navigation controller? If so, then how could I generate the navigation tree from it?
I have a good working knowledge of Objective-C and Foundation framework, but never went too far with it so that is why I'm asking before starting in the wrong direction :)
Thanks a lot.
While setting up a third party closed source CMS (Sitefinity) the setup doesn't create all tables and procedures necessary to run it. The software lacks a logging system itself and it made me wonder: could I trace and monitor failing SQL statements from MySQL?
This serves more than only the purpose of solving my issue with Sitefinity. More often I wonder what's send to the MySQL server, not wanting to dive into the software products or setup a debugging environment etc.
I tried JetProfiler (only performance) and looked through a few others, but although they monitor a lot, they don't monitor query failures, timeouts or logon attempts. Does anyone know a profiler, tracer, monitoring tool, commercial or free, that can show me this information?