NetBeans SVN Error
I tried to configure SVN in netbeans after creating the server on a
machine on the local network. on my computer i do TELNET 3690 she
succeeded.
when configuring netbeans it returns me this error:
org.apache.subversion.javahl.ClientException: E210004: Number is larger
than maximum
Bolger
Thursday, 3 October 2013
Wednesday, 2 October 2013
Need help validating radio buttons with JavaScript
Need help validating radio buttons with JavaScript
I've read over a large number of other questions like mine that have been
answered, and I still can't seem to get my code to work. Hoping someone
can shed light onto where I'm going wrong.
Here's the section of HTML:
<span class="formbold">Will you be attending the ceremony and
reception?</span><br/>
<input type="radio" name="receptionattend" value="yesboth" /> Yes, both!<br/>
<input type="radio" name="receptionattend" value="yesc" /> Yes, but only
the ceremony! <br/>
<input type="radio" name="receptionattend" value="yesr" /> Yes, but only
the reception!<br/>
<input type="radio" name="receptionattend" value="no" /> No, you guys are
lame!
And here's the simplest validation code I have:
function validateForm()
var y=document.forms["rsvpform"]["receptionattend"].checked;
if (y==null || y=="")
{
alert("Please indicate whether or not you will attend.");
return false;
}
}
HALP!
I've read over a large number of other questions like mine that have been
answered, and I still can't seem to get my code to work. Hoping someone
can shed light onto where I'm going wrong.
Here's the section of HTML:
<span class="formbold">Will you be attending the ceremony and
reception?</span><br/>
<input type="radio" name="receptionattend" value="yesboth" /> Yes, both!<br/>
<input type="radio" name="receptionattend" value="yesc" /> Yes, but only
the ceremony! <br/>
<input type="radio" name="receptionattend" value="yesr" /> Yes, but only
the reception!<br/>
<input type="radio" name="receptionattend" value="no" /> No, you guys are
lame!
And here's the simplest validation code I have:
function validateForm()
var y=document.forms["rsvpform"]["receptionattend"].checked;
if (y==null || y=="")
{
alert("Please indicate whether or not you will attend.");
return false;
}
}
HALP!
how to create an url to modify respons on a google-form
how to create an url to modify respons on a google-form
When you submit a form, you have the possibility to modify the respons via
a link gave when you submit the form.
I create a script on a spreadsheet linked to this form, I need to send to
the user this link (to allow the user to modify later his respons). hope
my english is clear
When you submit a form, you have the possibility to modify the respons via
a link gave when you submit the form.
I create a script on a spreadsheet linked to this form, I need to send to
the user this link (to allow the user to modify later his respons). hope
my english is clear
understanding this C++ module?
understanding this C++ module?
Given a type Money that is a structured type with two int fields,
dollars and cents. Assume that an array named monthlySales with 12
elements , each of type Money has been declared and initialized .
Assume that a Moneyvariable yearlySales has also been declared . Write
the necessary code that traverses the monthlySalesarray and adds it all
up and stores the resulting total in yearlySales. Be sure make sure that
yearlySales ends up with a valid value , i.e. a value of cents that is
less than 100.
Now i'm not asking for the answer but, i'm asking how do i approach it.
simply because i'm not sure how to address the question like how to code
it. I have understand the first paragraph of the question respectively.
here is my snippet of code. now im just stuck on how to compute it. i just
need a bit of guidance. Thanks! the code i have so far it access the array
i have of 12 elements and assigns them random numbers of dollars and cents
respectively.
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <cmath>
using namespace std;
struct Money
{
int dollars,cents;
};
int main()
{
Money monthlySales[12], yearlySales;
for (int i = 0; i < 12; i++)
{
monthlySales[i].cents =rand()%99;
monthlySales[i].dollars =rand();
}
return 0;
}
Given a type Money that is a structured type with two int fields,
dollars and cents. Assume that an array named monthlySales with 12
elements , each of type Money has been declared and initialized .
Assume that a Moneyvariable yearlySales has also been declared . Write
the necessary code that traverses the monthlySalesarray and adds it all
up and stores the resulting total in yearlySales. Be sure make sure that
yearlySales ends up with a valid value , i.e. a value of cents that is
less than 100.
Now i'm not asking for the answer but, i'm asking how do i approach it.
simply because i'm not sure how to address the question like how to code
it. I have understand the first paragraph of the question respectively.
here is my snippet of code. now im just stuck on how to compute it. i just
need a bit of guidance. Thanks! the code i have so far it access the array
i have of 12 elements and assigns them random numbers of dollars and cents
respectively.
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <cmath>
using namespace std;
struct Money
{
int dollars,cents;
};
int main()
{
Money monthlySales[12], yearlySales;
for (int i = 0; i < 12; i++)
{
monthlySales[i].cents =rand()%99;
monthlySales[i].dollars =rand();
}
return 0;
}
Event bound to document fragment doesn't work after reappending
Event bound to document fragment doesn't work after reappending
I have a document fragment which is created like this:
var element = $("<div/>", {
class: "test"
});
Then I bind a click event on it and add it to the DOM:
element.click(function () {alert("click event successfully recognized");});
$("body").append(element);
This works perfectly so far. You may try this Live DEMO
Note: Please spare me your comments about the deprecated usage of alert()
for debugging.
The problem: Imagine all elements contained by body need to be removed to
display something else. But when this other displayed thing is not needed
anymore and the element is added to the DOM again the bound events won't
work anymore.
Like this:
$("body").empty();
$("body").append(element);
Live DEMO
Please respect that hiding the element instead of removing them is not an
option. I primarily would appreciate a detailed explanation of why this
happens and how this could be solved. I would prefer to not bind the event
again.
I have a document fragment which is created like this:
var element = $("<div/>", {
class: "test"
});
Then I bind a click event on it and add it to the DOM:
element.click(function () {alert("click event successfully recognized");});
$("body").append(element);
This works perfectly so far. You may try this Live DEMO
Note: Please spare me your comments about the deprecated usage of alert()
for debugging.
The problem: Imagine all elements contained by body need to be removed to
display something else. But when this other displayed thing is not needed
anymore and the element is added to the DOM again the bound events won't
work anymore.
Like this:
$("body").empty();
$("body").append(element);
Live DEMO
Please respect that hiding the element instead of removing them is not an
option. I primarily would appreciate a detailed explanation of why this
happens and how this could be solved. I would prefer to not bind the event
again.
Tuesday, 1 October 2013
Showing actionsheet causes CGContext invalid context errors
Showing actionsheet causes CGContext invalid context errors
I'm using actionsheet to display lists of data for the user to choose
from. The problem is that showing the actionsheet using [self.actionSheet
showInView:self.view]; is causing several CGContext errors. The same code
worked well in iOS 6.
Code:
self.actionSheet = [[UIActionSheet alloc] initWithTitle:nil
delegate:nil
cancelButtonTitle:nil
destructiveButtonTitle:nil
otherButtonTitles:nil];
[self.actionSheet setActionSheetStyle:UIActionSheetStyleBlackOpaque];
CGRect tableFrame = CGRectMake(0, 40, 320, 214);
self.tableView = [[UITableView alloc] initWithFrame:tableFrame
style:UITableViewStylePlain];
self.tableView.dataSource = self;
self.tableView.delegate = self;
[self.actionSheet addSubview:self.tableView];
UISegmentedControl *closeButton = [[UISegmentedControl alloc]
initWithItems:[NSArray arrayWithObject:@"Done"]];
closeButton.momentary = YES;
closeButton.frame = CGRectMake(260, 7.0f, 50.0f, 30.0f);
closeButton.tintColor = [UIColor redColor];
[closeButton addTarget:self action:@selector(dismissActionSheet:)
forControlEvents:UIControlEventValueChanged];
[self.actionSheet addSubview:closeButton];
[self.actionSheet showFromView:self.view];
[UIView beginAnimations:nil context:nil];
[self.actionSheet setBounds:CGRectMake(0, 0, 320, 485)];
[UIView commitAnimations];
Errors:
CGContextSetFillColorWithColor: invalid context 0x0. This is a serious
error. This application, or a library it uses, is using an invalid context
and is thereby contributing to an overall degradation of system stability
and reliability. This notice is a courtesy: please fix this problem. It
will become a fatal error in an upcoming update.
CGContextSetStrokeColorWithColor: invalid context 0x0. This is a serious
error. This application, or a library it uses, is using an invalid context
and is thereby contributing to an overall degradation of system stability
and reliability. This notice is a courtesy: please fix this problem. It
will become a fatal error in an upcoming update.
CGContextSaveGState: invalid context 0x0. This is a serious error. This
application, or a library it uses, is using an invalid context and is
thereby contributing to an overall degradation of system stability and
reliability. This notice is a courtesy: please fix this problem. It will
become a fatal error in an upcoming update.
CGContextSetFlatness: invalid context 0x0. This is a serious error. This
application, or a library it uses, is using an invalid context and is
thereby contributing to an overall degradation of system stability and
reliability. This notice is a courtesy: please fix this problem. It will
become a fatal error in an upcoming update.
CGContextAddPath: invalid context 0x0. This is a serious error. This
application, or a library it uses, is using an invalid context and is
thereby contributing to an overall degradation of system stability and
reliability. This notice is a courtesy: please fix this problem. It will
become a fatal error in an upcoming update.
CGContextDrawPath: invalid context 0x0. This is a serious error. This
application, or a library it uses, is using an invalid context and is
thereby contributing to an overall degradation of system stability and
reliability. This notice is a courtesy: please fix this problem. It will
become a fatal error in an upcoming update.
CGContextRestoreGState: invalid context 0x0. This is a serious error. This
application, or a library it uses, is using an invalid context and is
thereby contributing to an overall degradation of system stability and
reliability. This notice is a courtesy: please fix this problem. It will
become a fatal error in an upcoming update.
The original code came from another stackoverflow answer, see
http://stackoverflow.com/a/2074451/654870.
I'm using actionsheet to display lists of data for the user to choose
from. The problem is that showing the actionsheet using [self.actionSheet
showInView:self.view]; is causing several CGContext errors. The same code
worked well in iOS 6.
Code:
self.actionSheet = [[UIActionSheet alloc] initWithTitle:nil
delegate:nil
cancelButtonTitle:nil
destructiveButtonTitle:nil
otherButtonTitles:nil];
[self.actionSheet setActionSheetStyle:UIActionSheetStyleBlackOpaque];
CGRect tableFrame = CGRectMake(0, 40, 320, 214);
self.tableView = [[UITableView alloc] initWithFrame:tableFrame
style:UITableViewStylePlain];
self.tableView.dataSource = self;
self.tableView.delegate = self;
[self.actionSheet addSubview:self.tableView];
UISegmentedControl *closeButton = [[UISegmentedControl alloc]
initWithItems:[NSArray arrayWithObject:@"Done"]];
closeButton.momentary = YES;
closeButton.frame = CGRectMake(260, 7.0f, 50.0f, 30.0f);
closeButton.tintColor = [UIColor redColor];
[closeButton addTarget:self action:@selector(dismissActionSheet:)
forControlEvents:UIControlEventValueChanged];
[self.actionSheet addSubview:closeButton];
[self.actionSheet showFromView:self.view];
[UIView beginAnimations:nil context:nil];
[self.actionSheet setBounds:CGRectMake(0, 0, 320, 485)];
[UIView commitAnimations];
Errors:
CGContextSetFillColorWithColor: invalid context 0x0. This is a serious
error. This application, or a library it uses, is using an invalid context
and is thereby contributing to an overall degradation of system stability
and reliability. This notice is a courtesy: please fix this problem. It
will become a fatal error in an upcoming update.
CGContextSetStrokeColorWithColor: invalid context 0x0. This is a serious
error. This application, or a library it uses, is using an invalid context
and is thereby contributing to an overall degradation of system stability
and reliability. This notice is a courtesy: please fix this problem. It
will become a fatal error in an upcoming update.
CGContextSaveGState: invalid context 0x0. This is a serious error. This
application, or a library it uses, is using an invalid context and is
thereby contributing to an overall degradation of system stability and
reliability. This notice is a courtesy: please fix this problem. It will
become a fatal error in an upcoming update.
CGContextSetFlatness: invalid context 0x0. This is a serious error. This
application, or a library it uses, is using an invalid context and is
thereby contributing to an overall degradation of system stability and
reliability. This notice is a courtesy: please fix this problem. It will
become a fatal error in an upcoming update.
CGContextAddPath: invalid context 0x0. This is a serious error. This
application, or a library it uses, is using an invalid context and is
thereby contributing to an overall degradation of system stability and
reliability. This notice is a courtesy: please fix this problem. It will
become a fatal error in an upcoming update.
CGContextDrawPath: invalid context 0x0. This is a serious error. This
application, or a library it uses, is using an invalid context and is
thereby contributing to an overall degradation of system stability and
reliability. This notice is a courtesy: please fix this problem. It will
become a fatal error in an upcoming update.
CGContextRestoreGState: invalid context 0x0. This is a serious error. This
application, or a library it uses, is using an invalid context and is
thereby contributing to an overall degradation of system stability and
reliability. This notice is a courtesy: please fix this problem. It will
become a fatal error in an upcoming update.
The original code came from another stackoverflow answer, see
http://stackoverflow.com/a/2074451/654870.
Is it possible to set a debug point in freemarker template file?
Is it possible to set a debug point in freemarker template file?
I have alot of coding in freemarker template files for view layer in my app.
I was wondering if i can set a debug point with eclipse. Is there any good
plugin that i can use to debug freemarker template files?
I have alot of coding in freemarker template files for view layer in my app.
I was wondering if i can set a debug point with eclipse. Is there any good
plugin that i can use to debug freemarker template files?
Subscribe to:
Comments (Atom)