473,396 Members | 1,767 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Creating a vCal-interpreter

I'm currently trying to write a vCal-interpreter, so that I can use a
google-calendar to show upcoming, and recently performed events.

The issue that I have now, is that I wish to split up the vCal-info
into blocks with data.
What I'm after right now is a way to fetch the row-nums from a string
where the rows are

First Occurence of
BEGIN:VEVENT
and then the first occurence of
END:VEVENT

(So I can divide it into blocks)

Jul 5 '07 #1
6 1608
It never fails!
Just after posting the message I found a way to do this!

On 5 Juli, 10:51, daGnutt <gnutt.halvords...@gmail.comwrote:
I'm currently trying to write a vCal-interpreter, so that I can use a
google-calendar to show upcoming, and recently performed events.

The issue that I have now, is that I wish to split up the vCal-info
into blocks with data.
What I'm after right now is a way to fetch the row-nums from a string
where the rows are

First Occurence of
BEGIN:VEVENT
and then the first occurence of
END:VEVENT

(So I can divide it into blocks)

Jul 5 '07 #2
New problem (I'm sure this one is really easy)
In a string i have many rows, I want to extract some data from one of
those rows

Example:
>From the row "DTSTART;TZID=Europe/Stockholm:20070603T190000"
I wish to extract the value "20070603T190000" into an variable

Example 2
>From the row "DTSTART;VALUE=DATE:20070616"
I wish to extract the value "20070616"

These two examples are the only two variants of which I wish to
extract the information (at this point)

Can anyone give me a quick fix?

On 5 Juli, 10:56, daGnutt <gnutt.halvords...@gmail.comwrote:
It never fails!
Just after posting the message I found a way to do this!

On 5 Juli, 10:51, daGnutt <gnutt.halvords...@gmail.comwrote:
I'm currently trying to write a vCal-interpreter, so that I can use a
google-calendar to show upcoming, and recently performed events.
The issue that I have now, is that I wish to split up the vCal-info
into blocks with data.
What I'm after right now is a way to fetch the row-nums from a string
where the rows are
First Occurence of
BEGIN:VEVENT
and then the first occurence of
END:VEVENT
(So I can divide it into blocks)

Jul 5 '07 #3
And?
Did you find the answer already? ;-)

Else try "explode".

R.

"daGnutt" <gn***************@gmail.comwrote in message
news:11**********************@57g2000hsv.googlegro ups.com...
New problem (I'm sure this one is really easy)
In a string i have many rows, I want to extract some data from one of
those rows

Example:
>>From the row "DTSTART;TZID=Europe/Stockholm:20070603T190000"
I wish to extract the value "20070603T190000" into an variable

Example 2
>>From the row "DTSTART;VALUE=DATE:20070616"
I wish to extract the value "20070616"

These two examples are the only two variants of which I wish to
extract the information (at this point)

Can anyone give me a quick fix?

On 5 Juli, 10:56, daGnutt <gnutt.halvords...@gmail.comwrote:
>It never fails!
Just after posting the message I found a way to do this!

On 5 Juli, 10:51, daGnutt <gnutt.halvords...@gmail.comwrote:
I'm currently trying to write a vCal-interpreter, so that I can use a
google-calendar to show upcoming, and recently performed events.
The issue that I have now, is that I wish to split up the vCal-info
into blocks with data.
What I'm after right now is a way to fetch the row-nums from a string
where the rows are
First Occurence of
BEGIN:VEVENT
and then the first occurence of
END:VEVENT
(So I can divide it into blocks)


Jul 5 '07 #4
I have tought about that, however the row that I want to extract this
data from is among alot of other rows. Therefore I'm thinking in the
rows of this

Perhaps writing up a reg-exp searchstuff (my head is tired right now)
that searches for a row ex

(not sure that my regexp are right for five cents, so I'm mixing
regexp with pseudo-code)
^DTSTART;[possibly "TZID=Europe/Stockholm" OR "TZVALUE=DATE"][data-to-
be-extracted]$

can anyone help me?

On 5 Juli, 16:24, "Richard" <root@localhostwrote:
And?
Did you find the answer already? ;-)

Else try "explode".

R.

"daGnutt" <gnutt.halvords...@gmail.comwrote in message

news:11**********************@57g2000hsv.googlegro ups.com...
New problem (I'm sure this one is really easy)
In a string i have many rows, I want to extract some data from one of
those rows
Example:
>From the row "DTSTART;TZID=Europe/Stockholm:20070603T190000"
I wish to extract the value "20070603T190000" into an variable
Example 2
>From the row "DTSTART;VALUE=DATE:20070616"
I wish to extract the value "20070616"
These two examples are the only two variants of which I wish to
extract the information (at this point)
Can anyone give me a quick fix?
On 5 Juli, 10:56, daGnutt <gnutt.halvords...@gmail.comwrote:
It never fails!
Just after posting the message I found a way to do this!
On 5 Juli, 10:51, daGnutt <gnutt.halvords...@gmail.comwrote:
I'm currently trying to write a vCal-interpreter, so that I can use a
google-calendar to show upcoming, and recently performed events.
The issue that I have now, is that I wish to split up the vCal-info
into blocks with data.
What I'm after right now is a way to fetch the row-nums from a string
where the rows are
First Occurence of
BEGIN:VEVENT
and then the first occurence of
END:VEVENT
(So I can divide it into blocks)

Jul 5 '07 #5
Why not "explode" at the ":" ?
The date part will be the first chars in the second item of the array.
Or is that too simple?

If ($suggestion=="too_simple") then {
give("more_details");
}

R.

;)

"daGnutt" <gn***************@gmail.comwrote in message
news:11**********************@o61g2000hsh.googlegr oups.com...
>I have tought about that, however the row that I want to extract this
data from is among alot of other rows. Therefore I'm thinking in the
rows of this

Perhaps writing up a reg-exp searchstuff (my head is tired right now)
that searches for a row ex

(not sure that my regexp are right for five cents, so I'm mixing
regexp with pseudo-code)
^DTSTART;[possibly "TZID=Europe/Stockholm" OR "TZVALUE=DATE"][data-to-
be-extracted]$

can anyone help me?

On 5 Juli, 16:24, "Richard" <root@localhostwrote:
>And?
Did you find the answer already? ;-)

Else try "explode".

R.

"daGnutt" <gnutt.halvords...@gmail.comwrote in message

news:11**********************@57g2000hsv.googlegr oups.com...
New problem (I'm sure this one is really easy)
In a string i have many rows, I want to extract some data from one of
those rows
Example:
From the row "DTSTART;TZID=Europe/Stockholm:20070603T190000"
I wish to extract the value "20070603T190000" into an variable
Example 2
From the row "DTSTART;VALUE=DATE:20070616"
I wish to extract the value "20070616"
These two examples are the only two variants of which I wish to
extract the information (at this point)
Can anyone give me a quick fix?
On 5 Juli, 10:56, daGnutt <gnutt.halvords...@gmail.comwrote:
It never fails!
Just after posting the message I found a way to do this!
>On 5 Juli, 10:51, daGnutt <gnutt.halvords...@gmail.comwrote:
I'm currently trying to write a vCal-interpreter, so that I can use
a
google-calendar to show upcoming, and recently performed events.
The issue that I have now, is that I wish to split up the vCal-info
into blocks with data.
What I'm after right now is a way to fetch the row-nums from a
string
where the rows are
First Occurence of
BEGIN:VEVENT
and then the first occurence of
END:VEVENT
(So I can divide it into blocks)


Jul 5 '07 #6
I would then need to explode it at "\n" so that I would change the
rows as well... And afaik (haven't tried yet) I don't think that
explode would like regexps for delimiter.

But I would be out sailing on the black sea here...

On 5 Juli, 22:07, "Richard" <root@localhostwrote:
Why not "explode" at the ":" ?
The date part will be the first chars in the second item of the array.
Or is that too simple?

If ($suggestion=="too_simple") then {
give("more_details");

}

R.

;)

"daGnutt" <gnutt.halvords...@gmail.comwrote in message

news:11**********************@o61g2000hsh.googlegr oups.com...
I have tought about that, however the row that I want to extract this
data from is among alot of other rows. Therefore I'm thinking in the
rows of this
Perhaps writing up a reg-exp searchstuff (my head is tired right now)
that searches for a row ex
(not sure that my regexp are right for five cents, so I'm mixing
regexp with pseudo-code)
^DTSTART;[possibly "TZID=Europe/Stockholm" OR "TZVALUE=DATE"][data-to-
be-extracted]$
can anyone help me?
On 5 Juli, 16:24, "Richard" <root@localhostwrote:
And?
Did you find the answer already? ;-)
Else try "explode".
R.
"daGnutt" <gnutt.halvords...@gmail.comwrote in message
>news:11**********************@57g2000hsv.googlegr oups.com...
New problem (I'm sure this one is really easy)
In a string i have many rows, I want to extract some data from one of
those rows
Example:
From the row "DTSTART;TZID=Europe/Stockholm:20070603T190000"
I wish to extract the value "20070603T190000" into an variable
Example 2
From the row "DTSTART;VALUE=DATE:20070616"
I wish to extract the value "20070616"
These two examples are the only two variants of which I wish to
extract the information (at this point)
Can anyone give me a quick fix?
On 5 Juli, 10:56, daGnutt <gnutt.halvords...@gmail.comwrote:
It never fails!
Just after posting the message I found a way to do this!
On 5 Juli, 10:51, daGnutt <gnutt.halvords...@gmail.comwrote:
I'm currently trying to write a vCal-interpreter, so that I can use
a
google-calendar to show upcoming, and recently performed events.
The issue that I have now, is that I wish to split up the vCal-info
into blocks with data.
What I'm after right now is a way to fetch the row-nums from a
string
where the rows are
First Occurence of
BEGIN:VEVENT
and then the first occurence of
END:VEVENT
(So I can divide it into blocks)

Jul 6 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: rdsteph | last post by:
Python411 is a series of podcasts about Python, aimed at hobbyists and others who are learning Python. Each episode focuses on one aspect of learning Python, or one kind of Python programming, and...
6
by: owen | last post by:
Generally speaking, what does it mean when I see a "button" with red text showing this message instead of the control I've dragged onto the web form in Design View.? (But the page works fine at...
2
by: Pawan | last post by:
Hi Guys, I have this current assignment where I have to develop online forms for local municipal authorities. I have to use adobe acrobat to create online forms from PDFs (which I have never done...
15
by: Carlos Lozano | last post by:
Hi, What is the right way to create an OCX COM component. The component is already registerred, but can't create an instance. I am using the reference to the interop module created. If I use...
2
by: LIN | last post by:
Hello, Greetings. I am creating a web site which will contain lot of articles. I had been planning to create simple HTML page on the server everytime i posted a article (eg. article12.html )....
2
by: Patrick | last post by:
I want to define a set of web-form templates in XML and render the equivalent web-form with ASP.NET, then process any input server controls on the form. Reading the XML file from Page_load is...
0
by: Ravi Ambros Wallau | last post by:
Hi: I've created a custom control - a grid that uses Infragistics to display some filters, the grid itself, and some buttons. Well, when using this control directly on WebForm, everything works...
12
by: Mats Lycken | last post by:
Hi, I'm creating a CMS that I would like to be plug-in based with different plugins handling different kinds of content. What I really want is to be able to load/unload plugins on the fly without...
15
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. ...
9
by: =?Utf-8?B?YmJn?= | last post by:
Hi all, I read somewhere "using kernel stuff in thread is not good.." if ManualResetEvent object is created in thread but not actually used, will it affect performance? Bob
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.