I have the calendar.ics file. I have to read that file from my application and transfer the data in to Google calendar in android. I am new to android. I need some help to do this.Can anyone help me to do this?
I have the following LINQ that I would like to also order by file creation date, how is this done?
taskFiles = taskDirectory.GetFiles(Id + "*.xml")
.Where(fi => !fi.Name.EndsWith("_update.xml", StringComparison.CurrentCultureIgnoreCase))
.ToArray();
Firstly I used this call jQuery('#grid').jqGrid('editRow',id,true,pickdates);, it worked fine with UI Datepicker integration, but editRow is implemented for inline editing, but I prefer modal dialog, so I switched to editGridRow, now I can't find the way to call my custom function (pickdates) in onClick-event. My current call is jQuery('#grid').jqGrid('editGridRow',id,{closeOnEscape:true,width:400,savekey:[true,13]});
Thanks
Anatoliy
I'd like to know if having to conditionals when using a JOIN keyword is a good practice.
I'm trying to filter this resultset by date but I'm unable to get all the branches listed even if there's no expense or income for a date using a WHERE clause. Is there a better way of doing this, if so how?
SELECT
Branches.Name
,SUM(Expenses.Amount) AS Expenses
,SUM(Incomes.Amount) AS Incomes
FROM
Branches
LEFT JOIN Expenses
ON Branches.Id = Expenses.BranchId AND Expenses.Date = '3/11/2010'
LEFT JOIN Incomes
ON Branches.Id = Incomes.BranchId AND Incomes.Date = '3/11/2010'
GROUP BY Branches.Name
I have a website www.askvioletnow.com. I added a flash mp3 player that plays a sound clip when you go to the page.
I know Flash doesn't work on the iPhone OS, but is there a way to get this type of mp3 player to work on an iPhone? I'm thinking maybe a javascript mp3 player.
What I would ultimately want is to replace my flash mp3 player with a different mp3 player and have it so the player is available on Windows and Mac computers as well as iPhone devices.
Thanks in advance.
I am having issues adding an image across a view while moving finger across the screen.
Currently it is adding the image multiple times but squeezing them too close together and not really following my touch.
Here is what I am trying:
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch * touch = [touches anyObject];
touchPoint = [touch locationInView:imageView];
if (touchPoint.x > 0 && touchPoint.y > 0) {
_aImageView = [[UIImageView alloc] initWithImage:aImage];
_aImageView.multipleTouchEnabled = YES;
_aImageView.userInteractionEnabled = YES;
[_aImageView setFrame:CGRectMake(touchPoint.x, touchPoint.y, 80.0, 80.0)];
[imageView addSubview:_aImageView];
[_aImageView release];
}
}
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
[self touchesBegan:touches withEvent:event];
}
Any suggestions is much appreciated.
EDIT:
What I want:
After taking or choosing an image, the user can then select another image from a list. I want the user to touch and move their finger across the view and the selected image will appear where they drag their finger, without overlapping, in each location.
The AlertView should look like this.
AlertView Message:
Please provide one of the following parameters to find the doctors.
Speciality
Location
Insurance
please anyone solve the above problem
i'm traversing through the document when i get the tr tag i have created the tr element using createelement later i used insertbefore to insert it into the document
but its not working
i tried for one week but didn't get any thing
The function "WriteStartElement" does not return anything. I find this a little bizzare.
So up until now I have been doing it like this.
XmlDocument xmlDoc = new XmlDocument();
XmlTextWriter xmlWriter = new XmlTextWriter(m_targetFilePath, System.Text.Encoding.UTF8);
xmlWriter.Formatting = Formatting.Indented;
xmlWriter.WriteProcessingInstruction("xml", "version='1.0' encoding='UTF-8'");
xmlWriter.WriteStartElement("client");
xmlWriter.Close();
xmlDoc.Load(m_targetFilePath);
XmlElement root = xmlDoc.DocumentElement;
Saving the doc, then reloading it to get hold of the start element so i can write attributes to it. Does anybody know the correct way of doing this because I'm pretty sure what I'm doing isn't right.
I tried to use xmlWriter.AppendChild() but it doesnt seem to write out anything. :(
What's the difference between these two constructors in perl?
1) sub new {
my $class = shift;
my $self = {};
$self->{firstName} = undef;
$self->{lastName} = undef;
$self->{PEERS} = [];
bless ($self, $class);
return $self;
}
2) sub new {
my $class = shift;
my $self = {
_firstName => shift,
_lastName => shift,
_ssn => shift,
};
bless $self, $class;
return $self;
}
I am using the second one so far, but I need to implement the PEERS array in the second one? How do I do it with the second constructor and how can we use get and set methods on those array variables?
I have the following XSLT node:
<xsl:for-each select="Book[title != 'Moby Dick']">
....
</xsl:for-each>
However, I'd like use multiple filters in the for-each. I've tried the following, but it doesn't seem to work:
<!-- Attempt #1 -->
<xsl:for-each select="Book[title != 'Moby Dick'] or Book[author != 'Rowling'] ">
....
</xsl:for-each>
<!-- Attempt #2 -->
<xsl:for-each select="Book[title != 'Moby Dick' or author != 'Rowling']">
....
</xsl:for-each>
I'm building a rails app that has an image upload field. I don't have any idea how to handle images in Rails. (The uploaded image would also require some processing as well.) Can anyone tell me how I can go about doing this?
thanks.
I am using the following code to work out an inc and ext VAT price:
$('#totalexvat').text(totalprice);
var vat = totalprice / 100 * 17.5;
vat = roundNumber(vat,2);
$('#totalincvat').text(totalprice-vat);
Sometimes i get .3 or .9 instead of what I would like to be .30 or .90 because it's money, is there a way to do this?
Hy i need to inherent a class from another.
Parent has private var "_data" and private method "_test" and public method "add"
Now the child have a public method "add", that uses the private method from the parent "_test" and the private var "_data".
How do i do this?
var Parent = function(){
var _data = {};
var _test = function(){alert('test')};
this.add = function(){alert('add from parent')}
}
var Child = function(){
this.add = function(){// here uses the _data and _test from the Parent class
alert('add from child')
}
}
// something to inherent Child from Parent
// instance Child and use the add method
And i think im miss the prototype concept (http://stackoverflow.com/questions/892467/javascript-inheritance)
I created a table in richtextbox like this :
//Since too much string appending go for string builder
StringBuilder tableRtf = new StringBuilder();
//beginning of rich text format,dont customize this begining line
tableRtf.Append(@"{\rtf1 ");
//create 5 rows with 3 cells each
for (int i = 0; i < 5; i++)
{
tableRtf.Append(@"\trowd");
//A cell with width 1000.
tableRtf.Append(@"\cellx1000");
//Another cell with width 2000.end point is 3000 (which is 1000+2000).
tableRtf.Append(@"\cellx2000");
//Another cell with width 1000.end point is 4000 (which is 3000+1000)
tableRtf.Append(@"\cellx3000");
//Another cell with width 1000.end point is 4000 (which is 3000+1000)
tableRtf.Append(@"\cellx4000");
tableRtf.Append(@"\intbl \cell \row"); //create row
}
tableRtf.Append(@"\pard");
tableRtf.Append(@"}");
this.misc_tb.Rtf = tableRtf.ToString();
Now I want to know how I can put text in headers and in each cells.
Do you have an idea?
Thanks
While developing GUI using Java ME- I get the wordwrap for the text being shown on ChoiceGroup, but the text on the ChoiceElement doesn't get shifted to the new line if the length of the text exceeds the size of screen. How can we get the wordwrap for the text being shown on the ChoiceElement?
I would like to create a few static subdomains like:
mycategory.mydomain.com
in a rather small website and would like it to point to the folder:
mydomain.com/mycategory
without showing such redirection in browser address bar.
What is an easiest way to achieve it? I can do it in either IIS settings, asp.net, C# code, etc
I guess there are better ways then creating a few separate Sites in IIS - one for each subdomain.
I have a Java bean ala
@XmlRootElement public class Bean {
@XmlElementWrapper(name = "ints") @XmlElement(name = "int")
int[] values;
// constructors, getters, setters, etc...
}
JAXB is producing XML like
<bean>
<ints>
<int>12</int>
<int>34</int>
<int>56</int>
</ints>
</bean>
I would like the array indices to be included on the <int> tags as array position conveys important value. Preferably as attributes like
<bean>
<ints>
<int id='0'>12</int>
<int id='1'>34</int>
<int id='2'>56</int>
</ints>
</bean>
Is there a way to do this?
I want to define a method that take an integer as input and creates dynamically a list of all descending integer numbers to zero. I find trouble into calling method for the n-1 element
Hi,
I need to display some text in cocos2d layer. I added UITextView to it. I added the text in the text View. But, for setting the font by ( UIFont class), I could not do it. I saw the list of supported fonts for iPhone, In that list Copperplate Gothic Bold is not there. I downloaded it from net. It is working good for CCLabel and CCFontMenuItem. How can I make it work for UILabel ?
* Assertion failure in -[UILabel setFont:], /SourceCache/UIKit/UIKit-963.10/UILabel.m:445
2010-05-19 16:07:43.282 testOfGameScreen[1155:207]
* Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: font != nil'
2010-05-19 16:07:43.285 testOfGameScreen[1155:207] Stack: (
I am getting the above error when using UIFont with Copperplate Gothic Bold
Thank you.
We have a Asp.Net Vb.Net application with around 35 webforms.There are some remote users who do not have the functional idea of the webforms.So i was thinking of adding a help file in my project.Is there any special component or javascript ? will it be a good option if i go with form by form or a single help file ?