Spring Roo 1.2.4 @RooWebJson doesn't generate .aj files if backing jsonObject doesn't have @RooJpaActiveRecord |
After looking a bit more into the actual json methods that are generated on
a controller for a domain class annotated with @RooJpaActiveRecord, I
noticed that they are all geared towards CRUD operations (ie affect the
database). This means that from Roo's point of view, it wont make sense to
generate controller json methods for entities that are not domain classes
(stored in db), as it wouldn't know what business methods you are looking
for. This means I would need to create my own manually in my controller,
as only I know what it is I want to do.
|
pip installs packages, but doesn't mark them as executable, so python doesn't find them |
You best bet is virtualenv Do your workaround to install the virtualenv.
sudo pip install virtualenv
Resources for virtualenv to get you started:
http://simononsoftware.com/virtualenv-tutorial/
http://www.virtualenv.org/en/latest/
|
Repeater with Buttons doesn't fire OnItemCommand even when DataBind doesn't happen when IsPostBack is true |
Try using this code instead:
<asp:Repeater ID="rptExpenses" runat="server">
<ItemTemplate>
<asp:ImageButton ID="ibRemove" ImageUrl="~/Images/delete.png"
runat="server"
CommandName="Remove"
CommandArgument='<%# Container.DataItem %>'
OnCommand="ibRemove_Click"/>
</ItemTemplate>
</asp:Repeater>
And this in the code behind:
protected void Page_Load(object sender, EventArgs e) {
if (!IsPostBack) {
rptExpenses.DataSource = ExpenseIds;
rptExpenses.DataBind();
}
}
protected void ibRemove_Click(object sender, CommandEventArgs e)
{
var btn = (IButtonControl)sender;
switch (btn.CommandName)
{
case "Remove":
//delete it, use btn.CommandArgument to find id to
|
Sqlite3 doesn't create table, and doesn't give error |
NSString *queryTablaConf = @"CREATE TABLE IF NOT EXISTS configuraciones (id
int(11) NOT NULL, idioma int(1),fecha date,PRIMARY KEY (id));";
In your code after this line just added this block for successful creation
of table and check once.
if (sqlite3_exec(turutaDB, queryTablaConf, NULL, NULL, &errMsg) !=
SQLITE_OK)
{
NSLog(@"Failed to create table");
}
|
Loop doesn't stop + doesn't update random string |
Math.random() actually returns a pseudo-random number seeded from the
current time. So it's not surprising that it doesn't update for every loop.
As for this.short: this always refers to the “owner” of the current
function. So the this in this.short = random is probably different from the
this in your while loop. What you need to do is assign this to a variable
first. For example:
var current = this;
while (!current.short) {
...
current.short = random;
}
|
RESTORE DATABASE doesn't work, and doesn't report any error |
I think restore sometimes doesn't happen because the database being
replaced is in use at that time. Try adding this before RESTORE DATABASE
command:
ALTER DATABASE [TestMLS] SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
|
validation method doesn't gets called and segue doesn't gets triggered |
You could try not to use performSegueWithIdentifier inside viewDidAppear
(performSegue actually take you to the other ViewController). Instead you
could call it from an IBAction method connected to the done button, after
calling in the same method processFieldEntries. I hope this can help you :)
|
Why std::transform doesn't guarantee the order (but for_each guarantee the order)? Doesn't this allow trick implementation for performance? |
This non-restrictive definition allows for parallel computing. An
implementation may choose to apply transform function using several
threads. See also related question: STL algorithms and concurrent
programming
Think of it as a semantic difference in algorithms (that is, that
represents programmer's intent rather than being just another tool). With
for_each you state that you need a sequential scan. With transform you
state that you only need to aply a function to every item in the container,
but you don't care how it will be done.
|
eax doesn't take parameter after mov |
Your ebp points to 0xffffd368. The instruction is
mov eax, DWORD PTR [ebp+0x8]
which means that the address 0xffffd370 will be read. Looking at the stack
dump, indeed, at 0xffffd370, there is the value 0x00000001, which is equal
to eaxs initial value.
|
get_by_id doesn't seem to get by id |
Are you mixing up string and int IDs? Datastore models can have either, but
they're not the same. (The auto-generated IDs are ints but, for example, an
ID passed as a URL parameter will be a string and you'll need to convert
it.)
|
NG-Options doesn't let me set the value |
When Angular generates the HTML select options, the value attribute (of
each option element) might not be what you would expect... it is set as
follows:
. when using array as the datasource, the value is set to the array index
. when using object as the datasource, the value is set to the key/property
name
When the the user selects one of the options, Angular uses the index (or
key) to lookup the value in array (or object) -- that looked-up value is
what the model is set to. (So, the model is not set to the value you see in
the HTML! This causes a lot of confusion.)
E.g., for an array datasource, Angular will set the model value to the
value in the array at the index specified by the selected option value
parameter. If your datasource array is [ 2013, 2014, 2015], the generated
HTML will
|
LESS really doesn't work |
You can try the following workaround - start your .less file with valid CSS
code, for example
h1 {}
and below put your LESS code:
@color: #25d14d;
h1 {
color: @color;
}
I've faced the same problem and that helped me unexpectedly.
|
NAvigation bar doesn't appear |
It sounds like you're changing the pop up in the simulated metrics
inspector. That inspector allows you to tell Xcode about things that will
exist in your app that don't exist in the storyboard.
It sounds like you want to add a navigation controller into the storyboard
to wrap one of the view controllers in your tab controller. You can do that
in the editor menu by choosing the "Embed in" menu, and then choosing
"Navigation Controller".
Choosing that item will insert a new navigation controller, make the
selected view controller the root of the navigation controller, and
re-route any segues that used to point at the selected to controller to
point at the navigation controller instead.
|
Why doesn't my map work in IE8? |
ArcGIS API for Javascript run at IE 8
and dojo run at IE 8
but there is a javascript code not run directly in IE 8
as Chrome and firefox
you must write javascript code correctly to run at IE 8
and IE 8 can`t run this code :
dojo.byId('details').innerHTML = content;
this link help you to write correct code to run at IE 8
http://msdn.microsoft.com/en-us/library/ie/ms533897(v=vs.85).aspx
|
ListView doesn't appear at all |
The first issue I see is in your first nested LinearLayout
android:layout_height="fill_parent"
try changing that to
android:layout_height="wrap_content"
You don't have room for anything else because you are telling it to take up
all of the height.
Also note that fill_parent is deprecated and you should use match_parent
instead. This isn't a problem but could be in the future. LinearLayout has
a horizontal orientation by default so you don't need to declare that but
it doesn't hurt to do it...just an FYI on that
|
FB like button doesn't appear |
Seems like you are using the XFBML version. You need this in your body:
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src =
"//connect.facebook.net/en_US/all.js#xfbml=1&appId=XXXXXXXX";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
and
<html xmlns:fb="http://ogp.me/ns/fb#">
in your html tag.
|
my do-while loop doesn't end |
It will never be true because you are comparing pointers not the actual
string content. Yet another reason you should use std::string (the
comparison operator for this will compare the string itself).
The C way of doing this comparison is to use strcmp, the C++ way is to use
std::string and rely on it's comparison operators (namely operator==). But
since this is tagged C++ I strongly suggest you use std::string.
You can find the documentation for strcmp here and the one for std::string
here.
|
Ant doesn't build second jar |
Check buildfile.xml, there should be a <copy> task for the first jar and
not for the second.
Update: Try using <fileset dir="${artifact.temp.output.jar2:jar}"
erroronmissingdir="true"/> to see if there's something wrong with the
path.
Also try to print the paths to check if they are correct:
<echo>${artifact.output.jar2:jar}</echo>
<echo>${artifact.temp.output.jar2:jar}</echo>
|
makeKeyAndOrderFront doesn't do either |
Probably you need to activate the application, which I presume
TransformProcessType() will not do automatically, and know
-makeKeyAndOrderFront: will not.
Have you tried calling [NSApp activateIgnoringOtherApps:YES]?
|
log.d doesn't appear in Logcat |
Try "Unable to open log device '/dev/log/main': No such file
or directory", set the log level.
If you don't see the service menu, make sure that your ROM support it,
otherwise you maybe need to use another ROM (usually official) or just use
Log.i() instead.
|
The Bomb doesn't get placed when I want it to |
I suspect that the GameTimer.Update event is fired as soon as
GameTimer.Start() is called. Add a counter variable and only set
canDrawBomb to false on the second call (and equaly only disable the timer
on the second call)
Or use the DispatcherTimer if that is available in XNA, which definitely
does not fire on the Start call.
|
Why doesn't ng-if work? |
I confirmed the comment on angular's documentation about using the unstable
branch by creating this fiddle:
<!DOCTYPE html>
<html class="no-js" ng-app>
<head>
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0rc1/angular.min.js"></script>
</head>
<body>
<p ng-if="1 == 0">True</p>
{{1==0}}
</html>
here's the fiddle Running this fiddle results in the output you were
expecting.
Your code, but with the unstable build.
|
Jquery doesn't see tag |
Ok so i found that there was no problem in the tags or code, the problem
was that, i was trying out one cloud IDE and when you press to run for some
reason it doesn't run the scripts. I have found it out because i have
downloaded the project and open the html file just with the browser and it
works just fine.
|
Trying to get the sum, but doesn't seem to be working |
Your print is indented, which means it's inside the if inside the for loop,
so it happens for every "A" or "B". You want it after the loop.
for grade in student_grades:
if grade in "AB":
honor_roll_count = honor_roll_count + 1
print honor_roll_count
|
Cron Job Doesn't Run |
The cronjob is running just fine, but the cron daemon (daemons in general
as far as I know) have no access to stdout so cannot output messages to the
terminal.
To test it you can, however, output what you want to a file using
*/1 * * * * echo "job every minute" >>$HOME/filename
which will output (and concatenate) the text to a file named "filename" in
your home directory every minute.
|
Why doesn't the move? |
I shouldn't be getting downvoted. Here is a working fiddle:
http://jsfiddle.net/NmcZj/
$('#scroll').click(function() {
$('.rightslide').animate({left: "-=100%"});
});
That should do it. (the difference is the "-=")
|
Why doesn't 'C:' mean what I think it means? |
You are not trying to change to actual folder, but to "c:", proper command
will be
import os
os.chdir('c:\')
And it will work just fine. The reason for double backslash is to escape
the backslash (which works as escape character).
|
Div tag doesn't close in php |
There are 10 opening divs and 9 closing divs in $PostBlock. A closing
</div> should be added where necessary. An easy way to see what the
output looks like is to break it into lines like this:
$PostBlock = "
<div id='Grp_Cell'
style='width:930;background-color:#999999;text-align:left;'>
<div id='Grp_Cell' style='float:left;'>
<div id='Tbl_Cel'>User: ".$f_User."</div>
<div id='Tbl_Cel'>Replies: ". $f_Replies."</div>
<div id='Tbl_Cel'>Views: ".$f_Views."</div>
<div
id='Tbl_Cel'style='background-color:777777;height:112;'>Post started on
".$f_Time.". </div>
</div>
<div id='Grp_Cell' style='float:right;width:600;'>
<div id='Tbl_Cel'>Subject:
|
Why doesn't my box show? |
In the css file do .box, not #box.
#box is if you have id="box", .box is if you have class="box"
Well, you just edited the question, so this is null and void
Ahh, found the problem. Take the .box{} out of the body{}.
|
Why ISA doesn't need request_mem_region |
This particular driver allows accesses to all the memory in the range
0xA0000..0x100000.
If there actually are any devices in this range, then it is likely that
some other driver already has reserved some of that memory, so if silly
were try to call request_mem_region, it would fail, or it would be
necessary to unload that other driver before loading silly.
On a PC, this range contains memory of the graphics card, and the system
BIOS:
$ cat /proc/iomem
...
000a0000-000bffff : PCI Bus 0000:00
000c0000-000cedff : Video ROM
000d0000-000dffff : PCI Bus 0000:00
000e4000-000fffff : reserved
000f0000-000fffff : System ROM
...
Unloading the graphics driver often is not possible (because it's not a
module), and would prevent you from seeing what the silly driver does, and
the ROM memory rang
|
Why it doesn't print the "Hello"? |
You need the %s placeholder in addition to the %d placeholder. See below:
printf( "%d %s", number, "Hello" );
... notice that "Hello" is a string literal (and hence a NULL terminated
string), meaning that a %s placeholder is required if you wish to pass
"Hello" as an argument. Since you are using a string literal, I suggest you
simply do as follows:
printf( "%d Hello", number );
Remark:
The %d placeholder is for an integer.
The %s placeholder is for a string (NULL terminated array of characters).
|
Why is IE7 & IE8 says that it 'hasLayout', when it doesn't? |
Looks like all "table" elements have hasLayout===true by default. The
opacity for tr is not working, since you need to define opacity for td
instead.
|
App icon doesn't appear |
Rose - That looks ok. Couple places to look/items to try:
You did in fact copy all of the icon files into your project as well,
correct?
Try removing these entries from your plist and adding them in by dragging
the icons to the App icons area on your Target > Summary page.
|
clearTimeout doesn't work |
Don't declare this variable again, just remove var; you are creating a
local copy of this variable by using the var keyword. The statement creates
the variable locally in that specific function.
typingTimer = setTimeout(function(){
|
scrolltop() doesn't work in IE9 at all |
Listen to the window's scroll event instead:
$(window).on('scroll', function() {
document.getElementById("fly").style.top = $(document).scrollTop() * 5
+"px";
});
Demo
Tested in latest Chrome, Firefox, Opera 15 and IE8. Seems to work fine in
any browser, the main issue is that IE does not parse the body's onscroll
attribute to the window.onscroll property as other browsers do. Live Test
Case. Test case source:
<body onscroll="42;">
document.body.innerHTML = 'Does ' + (window.onscroll ? '' :
'<b>not</b> ') +
'parse body onscroll attribute to window.onscroll';
So assigning the event handler directly to window.onscroll would also solve
the issue, but as you're using jQuery the .on() method is preferred for
event binding. It patches cross-browser incon
|
gdb doesn't stop on breakpoint |
I don't know specifics of the check framework you are using, but some such
frameworks execute code-under-test in a child process. If check does that,
then your behavior is expected -- you are only debugging the parent
process, but your code executes in a child.
You can easily confirm this guess: replace the printf in your code with
abort. If GDB doesn't stop on SIGABRT, then my guess is likely correct, and
you'll want to (gdb) set follow-fork-mode child.
Alternatively, read up on multi-inferior debugging. You can ask GDB to
debug both the parent and the child with set detach-on-fork off
(documentation).
|
JS Math.random doesn't get -9- |
If it is indeed only happening on item #9, it suggests to me some type of
number verses string problem.
First change the variable name of 'id' to something else, that name could
cause problems.
Then declare it at the top with a var, the same as you are doing with the
cobras array.
I would change 'id' to a string, and convert the result of the Math
function using parseInt.
Change the index values you are giving in the array to strings as well, so
they become keys instead.
Then add single quotes around the value given in the checkAnswer calls from
the area tags.
No guarantee that this would fix the problem, but at least you know for
sure that the random item, and the item chosen, are all strings.
|
Why my ActiveMQ doesn't start |
Take the in off of your JAVA_HOME
%JAVA_HOME%injava.exe
The script is adding it.
Try some of the troubleshooting here. Perhaps your version of the jdk is
not compatible.
https://confluence.atlassian.com/pages/viewpage.action?pageId=238617797
|
session_start(); doesn't work? |
This line in me.php...
echo (headers_sent())?'sent':'not sent';
is breaking your session_start call.
By outputing text you are forcing headers to be sent.
replace with
if (headers_sent()) die ("Headers have already been sent");
That way you are not sending the headers while testing to see if the
headers are sent :)
|
prefetch_related doesn't cache |
If you look at the docs:
https://docs.djangoproject.com/en/dev/ref/models/querysets/#prefetch-related,
it says that
prefetch_related, on the other hand, does a separate lookup for each
relationship, and does the ‘joining’ in Python
From my understanding, this is exactly, what you see.
|