Thursday, 19 September 2013

enclose table name containing spaces - d2rq language

enclose table name containing spaces - d2rq language

How do I enclose table name (sql server) containing space while mapping
files using d2rq language? table name is Compression Stats
So in my mapping file I have among other things:
d2rq:condition "Compression Stats.VelocityID = '2145C'" ;
I tried [], ```, () around table, and table.column, but nothing is
working. Does anyone know?

WIndows store create app packages not working with third party dll

WIndows store create app packages not working with third party dll

During the development of my Monogame game, I needed a calculation
library, and included a library called Jace. This works fine; however,
when I try to generate an Appx package for deployment to the Windows
Store, I get an error that the namespace for Jace can't be found.
My guess is that this means that I can't use a third party library. Is
this the case and, if so, is there a way around it, or do I need to
rewrite the entire library inside my Store App?

Extjs 3.4 ComboBox: how to preselect a record when the combobox is first loaded?

Extjs 3.4 ComboBox: how to preselect a record when the combobox is first
loaded?

I'm using Extjs 3.4. I need to set up a type ahead combobox like this: The
combobox is using a JsonStore, when the combobox is first loaded onto the
page, I need to preselect a value. Later on, the user can change the value
to other record.
combobox.store.on("load",function(){
combobox.setValue(value);
});
But the value will be set every time the combobox is loaded. I only need
to set up the value when it is first loaded.
Thanks in advance!

MySQL - One SQL request instead two (both request include diffrent COUNT(*)

MySQL - One SQL request instead two (both request include diffrent COUNT(*)

Once again i need yours help ;). I have a lot data and mysql request are
slower and slower so the need request that i need i want group in one
comand.
My example DB structure:
|product|opinion (pos/neg)|reason|
__________________________________
|milk | pos | good |
|milk | pos |fresh |
|chocolate| neg | old |
|milk | neg | from cow|
So i need information about all diffrent product (GROUP BY) count of it,
and count of pos opinion for each product. I want output like that:
|product|count|pos count|
_________________________
|milk | 3 | 2 |
|chocolate| 1 | 0 |
I hope that my explain was good enought ;) Or go to work: I write two
commands
SELECT COUNT(*) as pos count FROM table WHERE product = "milk" AND opinion
= "pos" GROUP BY `opinion`
And Second one
SELECT product, COUNT(*) FROM table GROUP BY `product`
I don't know how to join this two request, maybe that is impossible? In my
real use code i have additional category collumn and i use WHERE in second
command too

bb::cascades::Button: click handler - determining the sender

bb::cascades::Button: click handler - determining the sender

I'm creating multiple (undefined at design time) number of buttons
programatically. How can I determine which button was clicked in my
handler?
for (int i = 0; i < XXX; i++) {
Button *btn = Button::create();
QObject::connect(btn, SIGNAL(clicked()), this, SLOT(onButtonClicked()));
...
}
void MyClass::onButtonClicked() {
???? Which button ???
}
On all platforms I'v previously used (Borland.VCL, Cocoa, Cocoa Touch,
WinRT/PRT, Android...) event handler always(!!!) has a sender parameter
indicating the object instance invoked the event.
So, how to do it in BlackBerry Cascades?
PS. Pleas don't tell me I have to create my own Subclass of Button, add a
SIGNAL onClicked(MyButton *sender) and propagate it... This will end my
BlackBerry development in it's early beginning. :)

Wednesday, 18 September 2013

How to block eclipse P2 update Pop up in RCP application comes at right corner

How to block eclipse P2 update Pop up in RCP application comes at right
corner

I am having an RCP based application which has P2 update plugin installed.
I want to block the popup comes into the right end corner of RCP
application , whenever it get installed. I know it will come because of
version change or upgrade but I just dont want that popup to come. Either
that else there is a checkbox in install plug-in ![enter image description
here][1]
[1]: http://i.stack.imgur.com/9375i.png in Automatic Updates of Preference
page. I want to uncheck the checkbox by default.Even this issue will then
automatically solved.

Is it possible to build iphoneos6.1 projects in Xcode 5, preserving the behaviour of views laid out in an Xcode 4.6.3 storyboard?

Is it possible to build iphoneos6.1 projects in Xcode 5, preserving the
behaviour of views laid out in an Xcode 4.6.3 storyboard?

Our build server was recently updated to use Xcode 5's xcodebuild. We've
installed the iphoneos6.1 so that we can still use iPhone SDK 6.1 for some
legacy projects that do not yet support iOS7. However, when we use
xcodebuild to build these projects using -sdk iphoneos6.1, we still see
problems with UIViewController's contents being laid out underneath
navigation bars and tab bars.
Is there some way to build these projects that were developed with Xcode
4.6.3/base sdk iOS 6.1 using Xcode 5's xcodebuild, but preserving the
views as they were laid out in the storyboard developed using Xcode 4.6.3?
I took a look at the man page for ibtool, but I'm not seeing any option
related to choosing a target SDK, or anything else that seems relevant to
the "extends edges" problem I noted above.
Note that we haven't updated the storyboard using Xcode 5 - the project is
continuing to be developed in Xcode 4.6.3, and only touches the Xcode 5
toolchain when our build server clones the project's git repo and builds
using xcodebuild.