<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>timestamp &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://wordpress.com/tag/timestamp/</link>
	<description>Feed of posts on WordPress.com tagged "timestamp"</description>
	<pubDate>Sat, 06 Sep 2008 16:05:01 +0000</pubDate>

	<generator>http://wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[MS SQL - DateTime related Functions]]></title>
<link>http://vijaydev.wordpress.com/?p=202</link>
<pubDate>Sun, 24 Aug 2008 11:18:42 +0000</pubDate>
<dc:creator>Vijay Dev</dc:creator>
<guid>http://vijaydev.wordpress.com/?p=202</guid>
<description><![CDATA[Many a times I have come across code snippets that either format a timestamp value for displaying to]]></description>
<content:encoded><![CDATA[<p>Many a times I have come across code snippets that either format a timestamp value for displaying to the user or compare with another timestamp value. Often its much easier to let the database do the same. However, since the database needs to use functions on the columns to do these conversions, indexes on these columns go unused thereby affecting performance.</p>
<p>To display the current time in a user-readable format, say Aug 24 2008 04:25 PM, the <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html" target="_blank">SimpleDateFormat</a> class in Java can be used thus :</p>
<p><code><br />
Timestamp currentTime = new Timestamp(System.currentTimeMillis());<br />
SimpleDateFormat sdf = new SimpleDateFormat("MMM dd yyyy hh:mm a");<br />
String currentTimeFormatted = sdf.format(currentTime);<br />
System.out.println(currentTimeFormatted);<br />
</code></p>
<p>On the other hand, this can be easily achieved in a SQL query (MS SQL) :</p>
<p><code> SELECT CONVERT(CHAR, GETDATE()) AS 'FormattedDate'; </code></p>
<p>The next one is another useful query (again, MS SQL) that I came across recently (for which I am yet to figure out an equivalent Java code !!) - this truncates the time part of the timestamp and makes it 00:00:00.000 in order to represent the midnight of that particular day.</p>
<p><code> SELECT CAST( FLOOR( CAST(GETDATE() AS FLOAT ) ) AS DATETIME) AS 'DateTimeAtMidnight';<br />
</code></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Backdating Timestamps: So Awesome]]></title>
<link>http://awaitingtenure.wordpress.com/?p=411</link>
<pubDate>Sat, 23 Aug 2008 19:48:45 +0000</pubDate>
<dc:creator>eyeingtenure</dc:creator>
<guid>http://awaitingtenure.wordpress.com/?p=411</guid>
<description><![CDATA[Any reader who has ever needed to work as much overtime as possible should understand why my free ti]]></description>
<content:encoded><![CDATA[<p>Any reader who has ever <a href="http://awaitingtenure.wordpress.com/2008/08/14/my-cars-name-is-helen/trackback">needed to work as much overtime as possible</a> should understand why my free time has been at a premium, and why my most recent entries haven't been very punctual. If it weren't a matter of pride and if I didn't value the writing practice that keeping a blog provides, I'd forget about keeping up with my daily entries, just updating this thing whenever I felt compelled.</p>
<p>Alas for my Saturday mornings, but it is a matter of pride and I do value the practice.</p>
<p>In case you've missed out on any of the backdated entries and would like to catch up, feel free to use the calendar to preview the titles of the last month's entries, or use the following list.</p>
<blockquote><p><a href="http://awaitingtenure.wordpress.com/2008/08/22/anti-papist-ironies/trackback"><strong>Anti-Papist Ironies</strong></a> --- In this rare detour into personal religion, a response to anti-Catholic criticisms.<br />
<a href="http://awaitingtenure.wordpress.com/2008/08/21/working-guys-and-dolls/trackback"><strong>Working Guys and Dolls</strong></a> --- Equal opportunity employment doesn't mean equal retention and turnover.<br />
<a href="http://awaitingtenure.wordpress.com/2008/08/20/be-cool-to-the-camera-guy-part-two/trackback"><strong>Be Cool to the Camera Guy, Part Two</strong></a> --- Unsatisfactorily answering the age-old question: Isn't teaching the hardest job, ever?<br />
<a href="http://awaitingtenure.wordpress.com/2008/08/19/blame-expendable-women/trackback"><strong>Blame Expendable Women</strong></a> --- Neo-conservative leaders aren't sexist --- they know women can defend themselves.<br />
<a href="http://awaitingtenure.wordpress.com/2008/08/18/be-cool-to-the-camera-guy-part-one/trackback"><strong>Be Cool to the Camera Guy, Part One</strong></a> --- You accomplish nothing by being rude to the service industry's peons.<br />
<a href="http://awaitingtenure.wordpress.com/2008/08/17/good-thing-coplands-dead/trackback"><strong>Good Thing Copland’s Dead</strong></a> --- If you've never heard the Lincoln Portrait, be glad.<br />
<a href="http://awaitingtenure.wordpress.com/2008/08/16/three-drill-monte-for-oil/trackback"><strong>Three-Drill Monte for Oil</strong></a> --- Stephen Colbert lampoons both ridiculous sides of the energy debate.<br />
<strong><a href="http://awaitingtenure.wordpress.com/2008/08/15/alma-mater-of-siblings/">Alma Mater of Siblings</a></strong> --- Younger sister follows in steps of older brother, but it could just be a coincidence.<br />
<strong><a href="http://awaitingtenure.wordpress.com/2008/08/14/my-cars-name-is-helen/">My Car's Name is Helen</a></strong> --- My very special relationship breaks down.</p></blockquote>
<p>Will I be back on track next week, even though I'll be working four days next week, the school photography season is only just picking up and I have two weekly band rehearsals I have to worry about? <a href="http://en.wikipedia.org/wiki/Magic_8-ball">Signs point to yes</a>.</p>
<p>See you all tomorrow.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[timestamp]]></title>
<link>http://666hellrid3r.wordpress.com/?p=13</link>
<pubDate>Tue, 29 Jul 2008 09:34:17 +0000</pubDate>
<dc:creator>666hellrid3r</dc:creator>
<guid>http://666hellrid3r.wordpress.com/?p=13</guid>
<description><![CDATA[to get an actual time stamp, also insertable in sql database as date type

import datetime, time
sta]]></description>
<content:encoded><![CDATA[<p>to get an actual time stamp, also insertable in sql database as date type</p>
<p><code><br />
import datetime, time</p>
<p>stamp=datetime.datetime.fromtimestamp(time.time()).strftime("%Y-%m-%d %H:%M:%S")<br />
</code></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Night Owl gets the Early Bird...]]></title>
<link>http://knewblog.wordpress.com/?p=51</link>
<pubDate>Thu, 17 Jul 2008 13:29:00 +0000</pubDate>
<dc:creator>knewblog</dc:creator>
<guid>http://knewblog.wordpress.com/?p=51</guid>
<description><![CDATA[Awaking early versus late has a significant impact on one&#8217;s day.  I was just staring at someon]]></description>
<content:encoded><![CDATA[<p>Awaking early versus late has a significant impact on one's day.  I was just staring at someone's home page on their blog and it offered a nice scenic glimpse of a bridge goin over a river in what looks like a park with grass and trees.  The area is engulfed in a thick, yet not too thick you can't see, fog.  Its beautiful and its generally something you can only witness early in the day.</p>
<p>As  I looked at the photo at this website, I wondered what it must be like for birds who are required according to human work definition to get up early and "get the worm."  (do birds in Mexico arise early to get the worm from tequila bottles...?)  I wondered if birds realized the significance in the difference between that part of the day and let's say a few hours later.  I feel that they must awake early because nature directs them to, but if they had the choice like some lazy humans do, to arise later than expected and catch a different part of the day first, would they realize at some point, the beauty they have been missing as I did today?</p>
[caption id="attachment_52" align="alignright" width="150" caption="www.annapodris.com"]<a href="http://knewblog.files.wordpress.com/2008/07/sunriseowl.jpg"><img class="size-medium wp-image-52" src="http://knewblog.wordpress.com/files/2008/07/sunriseowl.jpg?w=150" alt="borrowed from www.annapodris.com" width="150" height="148" /></a>[/caption]
<p>I have for the most part been a night owl, preferring late night hours versus arising at 6 a.m. only to have coffee and venture to a 9-5.  I have worked overnight hours several times and have found my work to be more productive...  and when I went to school, I always arose late for class...  and when I went to class in college, I always performed better in later classes than those 7 a.m. lectures.</p>
<p>Night hours have always seemed special to me and more fitting.  Maybe its because there's less activity going on.  Or maybe cause there's less people around.  Or maybe because its less sunny and therefore generally cooler than the daytime heat.  Or maybe it has to do with energy and that there's less chaotic energy in the air to disrupt my overly sensitive senses.</p>
<p>But lately, being unemployed, I find myself awaking around 7 and going to bed around 11.  Its a weird sensation waking up early and I have grown to like it.  I feel like I am more part of the real world, even though I am not working.  I feel as if I am doing what is correct by nature.  And when I do get up early, I go outside with the doggie and admire the way the day is at that time.  If I was still enjoying cigars and coffee, you can be sure I would have one or both of those things during these moments.  The weird thing is that I am not even tired anymore at 7.am.  I do get tired around 9 for some reason, but at 7, where I used to be groggy, its as if I was supposed to be up and I don't even need any stimulants to make me feel more awake as most people seem to require.  If I was working, this feeling would be ideal.</p>
<p>Anyway, I just wanted to share my appreciation for the a.m. with you.  I wonder if there other night owls who have gone through the same thing...  you know a transfer from a night owl to an early bird.  Is it part of getting older?  Is it part of my constant urge to eat?  Is it my subconscious trying to kick my lazy conscience in to gear and get me motivated?  Is it just my senses connecting to the part of the day that just seems to glisten with natural beauty?  Not sure, but its nearing 9, and I must get in a nap...</p>
<p style="text-align:right;">owl photo borrowed from <a title="owl at sunrise" href="http://www.annapodris.com">www.annapodris.com</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[PHP: Calculando o intervalo entre duas datas]]></title>
<link>http://nodesign.wordpress.com/?p=99</link>
<pubDate>Mon, 14 Jul 2008 22:19:53 +0000</pubDate>
<dc:creator>Couto</dc:creator>
<guid>http://nodesign.wordpress.com/?p=99</guid>
<description><![CDATA[Para encontrarmos o tempo percorrido entre duas datas, devemos converter cada data em uma imagem de ]]></description>
<content:encoded><![CDATA[<p>Para encontrarmos o tempo percorrido entre duas datas, devemos converter cada data em uma imagem de hora, calcular a diferença e, depois, converter a diferença em uma saída legível para nós.</p>
<p>Para isso usaremos a função mktime(), que retorna um timestamp, ou seja, o numero de segundos desde que a época UNIX começou(1 de janeiro de 1970). </p>
<p>Para resolver este problema vamos criar uma função que recebe duas datas e retorna a quantidade tempo percorrido entre elas:<br />
<!--more--></p>
<pre>
// Determinando um intervalo entre duas datas
// formato: dd/mm/aaaa

function calculaIntervalo($data1,$data2=''){
	// se data2 for omitida, o calculo sera feito ate a data atual
	$data2 = $data2=='' ? date("d/m/Y",mktime()) : $data2;

	// separa as datas em dia,mes e ano
	list($dia1,$mes1,$ano1) = explode("/",$data1);
	list($dia2,$mes2,$ano2) = explode("/",$data2);

	// so lembrando que o padrao eh MM/DD/AAAA
	$timestamp1 = mktime(0,0,0,$mes1,$dia1,$ano1);
	$timestamp2 = mktime(0,0,0,$mes2,$dia2,$ano2);

	// calcula a diferenca em timestamp
	$diferenca = ($timestamp1 &#62; $timestamp2) ? ($timestamp1 - $timestamp2) : ($timestamp2 - $timestamp1);

	// retorna o calculo em anos, meses e dias
	return (date("Y",$diferenca)-1970)." anos,".(date("m",$diferenca)-1)." meses e ".(date("d",$diferenca)-1)." dias";

}
</pre>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Implementing concurrency with timestamp (row versioning)]]></title>
<link>http://seesharper.wordpress.com/?p=50</link>
<pubDate>Mon, 14 Jul 2008 08:43:37 +0000</pubDate>
<dc:creator>stephengodbold</dc:creator>
<guid>http://seesharper.wordpress.com/?p=50</guid>
<description><![CDATA[Having just written up some basic concurrency handling in the services I&#8217;m creating I thought ]]></description>
<content:encoded><![CDATA[<p>Having just written up some basic concurrency handling in the services I'm creating I thought I might post a few things I came across on the way. </p>
<p>1. timestamp != date or time </p>
<p>The timestamp data type in SQL server is not a date or time. In fact, it's not even related. It's a binary field that increments each time a row is changed. This means it's really just what it's synonym - rowversion suggests it is. A row version. If you want to use it, it maps to the .Net SqlBinary type. More on this later...</p>
<p>2. Error severity level</p>
<p>I found getting a description of the error severity levels notoriously difficult. Using the SQL RaiseError function with error level 1 causes the error to be swallowed as informational within the action, rather than raising as an exception to the framework. This can be quite frustrating at first but I found a good guide to error handling in SQL server <a href="http://www.sommarskog.se/error-handling-I.html#severitylevels">here</a>. This guide gave me just about everything I needed to know and I highly recommend it.</p>
<p>3. timestamp == SqlBinary</p>
<p>As mentioned, the timestamp type maps to the SqlBinary type (see <a href="http://msdn.microsoft.com/en-us/library/ms131092.aspx">here</a> for a compleye type mapping list). If you don't want to pass the Sql type around all over the place, use the .Value property to obtain the byte array that makes up the timestamp and keep it in your object instead. You could make this field read only as well, but considering most of the time if the user changes this field (unless they know exactly how many row changes between now and their update reaching the database) their change will cause the update to be rejected anyway.</p>
<p>You'll notice in the MSDN list timestamp doesn't map to a specific .Net framework type. Use rowversion synoym instead which maps to byte[]. I've read a few blogs and articles that recommend using rowversion instead, so that if the concepts diverge in future editions behaviour remains consistent. I think this is a good idea, and that the mappings chart provides a solid reason to trust these recommendations. </p>
<p>So there they are, a few little hints that I picked up on my way to implementing some kind of concurrency control through row versioning. </p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Just when is the 'official' start of the next day?]]></title>
<link>http://knewblog.wordpress.com/?p=4</link>
<pubDate>Sun, 06 Jul 2008 10:57:00 +0000</pubDate>
<dc:creator>knewblog</dc:creator>
<guid>http://knewblog.wordpress.com/?p=4</guid>
<description><![CDATA[Tomorrow.  What does this word mean?  Sure, there&#8217;s a definition and an origin, but that]]></description>
<content:encoded><![CDATA[<p>Tomorrow.  What does this word mean?  Sure, there's a definition and an origin, but that's not what we are here to discuss. What we are looking for here is an answer to the question of when the next day actually begins</p>
<p>Some say midnight, others say 7 a.m. and many say its when you wake up after a sleep, but what truly defines tomorrow.</p>
<p>Let me give you an example of the confusion.  Let's say I have been up till 5 a.m., partying, writing, watching infomercials...  whatever it is I have been doing, I am still up at 5 a.m. doing it.  Now technically it is after midnight and therefore by definition, it is already the next day ( I mean the time machine inside this computer already has changed the date.)  But at midnight, it doesn't necessarily feel like the next day, unless of course its new year's eve 1999 and it feels like the next millenia.  But the clock reads Jan.1 2000 so technically, it is tomorrow.</p>
<p>But I continue to stay up until 5 a.m.  When I awake once again at 11, I begin my routine for the next day and it is therefore at that moment that I can say for myself it is tomorrow.  But the dilema worsens when I stay up until 11 and begin my day without ever going to sleep.  Now of course by definition, it was already tomorrow at midnight, but using the "it is a new day after you wake up theory," then tomorrow is still today... but since the date has changed in the computer, then technically this tomorrow is actually still yesterday, right?  Do you follow me with this?</p>
<p>Many people would say that the next day begins with a new sunrise, but what if the sun rises around 8:30 somewhere, and you are already well slept, and awake by 6 a.m.  For you, the past day is already behind you, and you have begun your next day even before there is light to illuminate your day...   but is that tomorrow?</p>
<p>I raise this question, today, as I have gotten into the habbit of defining the next day as 7 a.m.  I am not sure how this got started, but I think I can refer to the film GROUNDHOGS DAY starring Bill Murray and Andy McDowell when everyday in Bill Murray's world, when the clock reached 7 a.m., he would wake up in the same day he just fell asleep on.  But the one time he moved forward into the next day, was when he stayed up past that 7 a.m. time.</p>
<p>But today, I awoke just before 6 a.m. and created this blog.  Now by my standards that I have grown accustomed to, it hasn't even become the next day yet... it is still yesterday because its before 7 a.m., but I have already slept and its past the sunrise so last night has come and gone.  Man am I confused.  Its like PURGATORY FOR TIME.</p>
<p>Perhaps tomorrow, I will have a better understanding of today, or maybe later today, I ill better understand tomorrow.  Either way, enjoy your tomorrow today!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Giving synapses a 'born on' label]]></title>
<link>http://brainwindows.wordpress.com/?p=58</link>
<pubDate>Mon, 30 Jun 2008 16:50:40 +0000</pubDate>
<dc:creator>andrewhires</dc:creator>
<guid>http://brainwindows.wordpress.com/?p=58</guid>
<description><![CDATA[Memories are thought to be encoded by the patterns of synaptic connections in the brain. Learning ca]]></description>
<content:encoded><![CDATA[<p>Memories are thought to be encoded by the patterns of synaptic connections in the brain. Learning can either delete or change the strength of existing synapses, or add new synapses. Following a learning process, how can we tell which synapses were added to encode this new memory?  </p>
<p>One strategy is to make a <a href="http://download.neuron.org/supplementarydata/neuron/45/2/279/DC1/S2.jpg" target="_blank">timelapse movie</a> of the synapses.  In mice, this can be accomplished by installing a <a href="http://www.nature.com/nature/journal/v420/n6917/full/nature01273.html" target="_blank">cortical window</a> on the skull, and imaging the changes in structure of GFP labelled neurons. However, this is technically demanding, only works with sparsely labeled neurons, and accesses only a small subset of the neurons which may be involved in the learning process.  </p>
<p>Ideally, one could have a tag which can discriminate between synapses existing before learning takes place, and new ones generated after learning has occurred. Whole brain regions could then be examined at a single timepoint to see where new synapses were added. In a large step towards that goal, <a href="http://www.tsienlab.ucsd.edu/HTML/People/Michael/Main_Lin.htm" target="_blank">Michael Lin</a> et. al, from the <a href="http://tsienlab.ucsd.edu/" target="_blank">lab of Roger Tsien</a>, <a href="http://dx.doi.org/10.1073/pnas.0803060105" target="_blank">report TimeSTAMP</a>, a genetic label for newly synthesized protein.</p>
<p><a href="http://brainwindows.wordpress.com/files/2008/06/picture-10.png"><img class="alignnone size-full wp-image-59" src="http://brainwindows.wordpress.com/files/2008/06/picture-10.png" alt="" width="394" height="305" /></a></p>
<p>The authors engineered the NS3 protease from the hepatitis C virus (HCV) to cleave itself at just the right pace. They then fuse tags (fluorescent proteins or epitopes) before and after the cleavage site. This fusion is then tagged to the end of a protein of interest. Shortly after synthesis, the protein cleaves off the C-terminal tag, but the N-terminal is left on. This cleavage is inhibitable by a variety of small molecule blockers. In the presence of the blocker, the C-terminal tag stays on. By controlling when drug is applied, they can selectively label a set of proteins of a particular age with the tags.</p>
<blockquote><p>The choice of NS3 protease was very clever, as it is a favorite drug target of biotech and pharma companies.  Many inhibitors of this protein have been synthesized, exhaustively characterized in vitro and in clinical trials. This work is a great example of the standard research flow going in reverse; a basic-science project from an academic lab is actually benefitting from pharma company research. Stability, bioavailablity and toxicity have already been worked out.  One of the biggest impediments is actually getting ahold of these compounds. Companies with their survival hanging on the clinical success of a single small molecule inhibitor are understandably reluctant to hand out stocks for academic research. Note the roller coaster <a href="http://finance.yahoo.com/echarts?s=VRTX#chart9:symbol=vrtx;range=20031201,20080627;indicator=volume;charttype=line;crosshair=on;ohlcvalues=0;logscale=off">stock price of Vertex</a> following results of its NS3 protease inhibitor (VX-950) trials. </p></blockquote>
<p><a href="http://brainwindows.wordpress.com/files/2008/06/picture-9.png"><img class="alignnone size-full wp-image-61" src="http://brainwindows.wordpress.com/files/2008/06/picture-9.png" alt="" width="334" height="545" /></a></p>
<p>The authors use PSD-95 tagged to TimeSTAMP as a proxy marker of synaptic age. In neuronal culture, they show that newly synthesized synapses have a C-tag / N-tag ratio of about twice as large as old synapses.</p>
<p><a href="http://brainwindows.wordpress.com/files/2008/06/picture-8.png"><img class="alignnone size-full wp-image-60" src="http://brainwindows.wordpress.com/files/2008/06/picture-8.png" alt="" width="496" height="482" /></a></p>
<p>They extend the technique to whole fruit fly brains, showing a very heterogeneous distribution of CaMKII synthesis across Kenyon cells in different areas of the mushroom body.</p>
<p>So far TimeSTAMP has not been shown to work in mice. Mice were not included in the paper due to the long generation time for transgenics. Given the good signal to noise and the large number of possible inhibitor molecules, I think this technique could be quite powerful in mammalian systems. It's big advantage would be to label large populations of neurons or synapses in diverse brain regions, including those inaccessible to two-photon microscopy. TimeSTAMP's success in labeling new synapses in the intact brain will be dependent on finding a protein to tag at the synapse with low turnover over the course of a learning experiment. Though PSD-95 appears to be a reasonable marker in culture, others have shown a higher rate of turnover in vivo, making in unsuitable for a synaptic marker. </p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Linq and Sql Server Timestamp Columns - Why Binary?]]></title>
<link>http://barelygenius.wordpress.com/?p=11</link>
<pubDate>Tue, 24 Jun 2008 15:11:59 +0000</pubDate>
<dc:creator>bradymoritz</dc:creator>
<guid>http://barelygenius.wordpress.com/?p=11</guid>
<description><![CDATA[As explained a bazillion times before on the net, the timestamp column in sql server is not a dateti]]></description>
<content:encoded><![CDATA[<p>As explained a bazillion times before on the net, the timestamp column in sql server is not a datetime or anything to do with time.  It is a binary(8) column which contains a big number which is incremented on every edit of any row of any table in the database. It is also identical to the rowversion column.</p>
<p>Now for my gripe. I've used strongly typed datatables in past projects and with some manipulation, you can get the datatable to treat the timestamp column as a bitint (Int64). Why does this matter? Because I've used it for some simple version tracking in the past, and this requires I perform range checking on these versions. A simplified explanation:</p>
<p>-Use the largest timestamp in my cached table<br />
-Query the database table for any timestamps larger than this one<br />
-Retrieve these new or updated items to be merged back into the original dataset</p>
<p>This normally is not useful for 2 or N tier apps, but in my instance I am transferring data over the net via a webservice so would like to only retrieve the new or changed records to the client.</p>
<p>Gripe time: why are these columns Binary? The only way I was historically able to query on them is to force sql server to cast them as a bigint, through some magic in the typed datatable. But now Im using Linq as my data access layer. I love linq so far, but I have tried every trick I can think of and it will not make this work- Linq will always fail with a illegal cast type error when it attempts to load the record.</p>
<p>So, whyt exactly are these binary? Wouldnt it be much easier to make use of rowversion and timestamps if they were represented as a real datatype like int64/bigint? I know I wouldnt have wasted half a day yesterday on this if this were the case.</p>
<p>So now it looks like Ill switch to using a datetime column that I hope is udpated with every edit or insert. Should work ok, but not my preference.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Generalità sulla pacchettizzazione audio e video]]></title>
<link>http://lellodixit.wordpress.com/?p=23</link>
<pubDate>Sun, 08 Jun 2008 15:09:32 +0000</pubDate>
<dc:creator>lellodixit</dc:creator>
<guid>http://lellodixit.wordpress.com/?p=23</guid>
<description><![CDATA[Per poter trasmettere segnali audio e video digitali su reti a pacchetti, una volta eseguita la codi]]></description>
<content:encoded><![CDATA[<p class="MsoNormal" style="text-align:justify;line-height:150%;">Per poter trasmettere segnali audio e video digitali su reti a pacchetti, una volta eseguita la codifica e la compressione, occorre incapsulare il contenuto informativo in pacchetti appunto, i quali sono costituiti da una parte di intestazione (header) e da una parte contenente l’informazione utile (payload).</p>
<p class="MsoNormal" style="text-align:justify;line-height:150%;">Il processo è simile sia per la voce che per il video, per cui la seguente descrizione generale è valida a grandi linee per entrambi i flussi:</p>
<p class="MsoNormal" style="text-align:justify;line-height:150%;">
<ol style="margin-top:0;" type="1">
<li class="MsoNormal">Il flusso di bit in uscita dal codificatore, ad      intervalli temporali regolari ed equispaziati, viene suddiviso in “pezzi”,      ossia blocchi di bit che possono avere in alcuni casi dimensione      variabile. Ad ogni pezzo è assegnato un timestamp, ossia un’etichetta      temporale che indica l’istante di generazione alla sorgente.</li>
<li class="MsoNormal">Ciascun pezzo viene incapsulato in un pacchetto per      il trasporto in rete, tramite l’aggiunta di un header contenente      informazioni come istante di generazione o timestamp (ricavabile dal      timestamp inserito al passo 1), numero di sequenza progressivo ed altre      informazioni. Il pacchetto risultante è formato quindi dall’header e dal      payload, quest’ultimo consistente nell’informazione utile (ossia il pezzo      di audio o di video).</li>
<li class="MsoNormal">Può essere necessario in alcuni casi eseguire la      frammentazione di un pezzo in più pezzi di dimensione più piccola, dando      luogo ad altrettanti pacchetti, i quali saranno in tal caso caratterizzati      dallo stesso timestamp ma da numeri di sequenza diversi.</li>
<li class="MsoNormal">Il pacchetto generato al passo 2 (ed eventualmente      3) ha tutte le informazioni necessarie, dal punto di vista      dell’applicazione, per essere trasportato in rete.</li>
</ol>
<p class="MsoNormal" style="text-align:justify;line-height:150%;">Al lato ricevente dell’applicazione saranno eseguiti dei passaggi complementari in ordine inverso, ossia l’eventuale riassemblaggio nel caso di frammentazione, il de-incapsulamento e l’estrazione dell’informazione utile dai pacchetti.</p>
<p class="MsoNormal" style="text-align:justify;line-height:150%;">I passaggi successivi ai passi 1-4 saranno quelli di incapsulare i pacchetti generati al passo 2 (ed eventualmente 3) in ulteriori pacchetti per fornire ad esempio informazioni utili per il supporto al controllo d’errore, all’indirizzamento, e così via.</p>
<p class="MsoNormal" style="text-align:justify;line-height:150%;">
<p><strong>Riferimenti</strong></p>
<p>Tesi di laurea in Ingegneria Elettronica di Antonio Mancosu, A.A. 2005/2006:<em> “Controllo del ritardo di playout nelle comunicazioni audio-video su reti a pacchetti”</em>.</p>
<p><em>Antonio Mancosu</em></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[CakePHP + timestamp]]></title>
<link>http://openil.wordpress.com/?p=263</link>
<pubDate>Fri, 25 Apr 2008 18:12:51 +0000</pubDate>
<dc:creator>वीर</dc:creator>
<guid>http://openil.wordpress.com/?p=263</guid>
<description><![CDATA[เวลา save แล้วอยากให้ CakePHP ใส่ timestamp ให้ด้ว]]></description>
<content:encoded><![CDATA[<p>เวลา save แล้วอยากให้ CakePHP ใส่ timestamp ให้ด้วยเวลาที่ row ที่ add เข้าไปถูก create เป็นครั้งแรก. ประมาณว่าต้องการเก็บว่า row นั้นสร้างมาแต่เมื่อไหร่. ผมใช้ callback function ใน model เอา เขียนสั้นๆ ก็เป็นอันใช้ได้.</p>
<p>[sourcecode language='php']class Corpus extends AppModel {<br />
    function afterSave($created) {<br />
        if($this->id && $created) {<br />
            $data = $this->read();<br />
            $data[$this->name]["created"] = date("Y-m-d H:i:s");<br />
            $this->save($data);<br />
        }<br />
    }<br />
}[/sourcecode]</p>
<p>เวลาสั่ง save จาก controller, afterSave ก็จะถูกเรียกแล้วก็ไปแก้ column: created ให้เป็นเวลาปัจจุบัน. ถ้า row นั้นถูกสร้างขึ้นใหม่ (ตรวจสอบได้จาก $created).</p>
<p><strong>update #1:</strong> แต่จะให้ดีใช้ beforeSave ดีกว่า. จะได้ save ครั้งเดียวไปเลย (ตาม comment ของ พี่ป๊อก) แล้วก็ดูเป็นธรรมชาติดีด้วย :-).</p>
<p>[sourcecode language='php']class Corpus extends AppModel {<br />
    function beforeSave() {<br />
        $data[$this->name]["created"] = date("Y-m-d H:i:s");<br />
        return true;<br />
    }<br />
}[/sourcecode]</p>
<p>แต่ถ้า edit แต่ไม่ได้ create corpus ก็คงต้องวิธีมาตรวจสอบเอา.</p>
<p><strong>update #2: ลองดูอีกนิด จริงๆ แล้วไม่ต้องใช้ before/after save เลย. CakePHP ทำ timestamp ให้เองแบบที่ต้องการเลย โดยที่ไม่ต้องทำอะไร ... แป่ว</strong></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Дата и время публикации]]></title>
<link>http://dmych.wordpress.com/?p=145</link>
<pubDate>Wed, 23 Apr 2008 18:30:32 +0000</pubDate>
<dc:creator>dmych</dc:creator>
<guid>http://dmych.wordpress.com/?p=145</guid>
<description><![CDATA[Иногда бывает нужно написать что-то сейчас, но не выкла]]></description>
<content:encoded><![CDATA[<p>Иногда бывает нужно написать что-то сейчас, но не выкладывать в блог сразу, а опубликовать позже, спустя некоторое время.</p>
<p>Когда вы уже написали запись, обратите внимание на правую колонку и найдите там статус публикации (‘Publish Status’).</p>
<p style="text-align:center;"><img class="alignleft size-full wp-image-629" style="float:left;margin-left:10px;margin-right:10px;" src="http://faq.files.wordpress.com/2008/04/timestamp-1.jpg?w=216&#38;h=297" alt="" width="216" height="297" /></p>
<p>Нажмите ссылку <strong>Edit</strong>, расположенную рядом со словами «Опубликовать немедленно» (Publish Immediately) чтобы получить доступ к дате и времени публикации.</p>
<p>Затем введите дату и время когда вы хотите, чтобы запись появилась в вашем блоге. Потом вернитесь к записи и нажмите <strong>Publish</strong>. Ваша запись будет сохранена и появится в блоге в указанное время.</p>
<p>Вы можете «публиковать в будущем» столько записей, сколько пожелаете. Также вы можете изменять дату и время публикации для любой неопубликованной записи.</p>
<p>Еще раз.</p>
<p>Обычно когда вы нажимаете кнопку «Publish», запись, которую вы написали, публикуется немедленно. Однако, иногда бывает желательно изменить естественный порядок вещей.</p>
<p><strong>Публикуем в прошлом</strong></p>
<p>Нажмите <strong>Edit</strong> в статусе публикации (<em>Publish Status area</em>) и поменяйте дату и время на более ранние. Нажмите <strong>Publish</strong>. Запись будет опубликована немедленно, но она окажется где-то в середине вашего блога, не в самом начале. Она будет датирована датой и временем, которые вы указали перед публикацией.</p>
<p><strong>Публикуем в будущем</strong></p>
<p>Нажмите <strong>Edit</strong> в статусе публикации и выставьте дату и время в будущем. Нажмите <strong>Publish</strong>. <em>Ваша запись не появится в блоге</em> до тех пор, пока не наступит тот момент времени, который вы указали. По наступлению времени, указанного при публикации, запись будет опубликована автоматически.</p>
<p><em>Источники: </em></p>
<ul>
<li><em><a href="http://faq.wordpress.com/2006/05/31/can-i-schedule-a-post/" target="_blank">http://faq.wordpress.com/2006/05/31/can-i-schedule-a-post/</a></em></li>
<li><em><a href="http://faq.wordpress.com/2006/05/31/can-i-schedule-a-post/" target="_blank"></a></em><em><a href="http://faq.wordpress.com/2006/10/23/post-options-post-timestamp/">http://faq.wordpress.com/2006/10/23/post-options-post-timestamp/</a></em></li>
</ul>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Mobile 'phone time-stamp query]]></title>
<link>http://johnnytroop.wordpress.com/?p=102</link>
<pubDate>Mon, 31 Mar 2008 04:11:45 +0000</pubDate>
<dc:creator>johnnytroop</dc:creator>
<guid>http://johnnytroop.wordpress.com/?p=102</guid>
<description><![CDATA[&#8216;S&#8217; sent me a mobile &#8216;phone message at 0330 this morning. Not surprisingly it woke]]></description>
<content:encoded><![CDATA[<p>'S' sent me a mobile 'phone message at 0330 this morning. Not surprisingly it woke me up, but I returned to sleep immediately after replying : <em>Go sleep, young lady. Text you in daytime.</em></p>
<p>My query, other than <em>"What the hell are you doing up at 0330?"</em>, is that the message was time-stamped at 0331. The time displayed upon my 'phone, however was 0330 (a minute earlier). The clear implication is that messages are either time-stamped by the sender's mobile 'phone, or centrally by the service provider.</p>
<p><!--more--></p>
<p>A time-stamp via the service provider (network), in my case 1-2-Call, seems the logical solution, but what if the sender and receiver subscribe to different networks? The other big provider in Thailand is D-Thai. Would the time-stamp be from the sender's service provider, or the receiver's provider?</p>
<p>Or do the networks simply not bother? Is the time-stamp based solely on the sender's phone?</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[New Pin + More]]></title>
<link>http://misslilperson.wordpress.com/?p=215</link>
<pubDate>Sat, 01 Mar 2008 07:22:49 +0000</pubDate>
<dc:creator>MrsHollywood</dc:creator>
<guid>http://misslilperson.wordpress.com/?p=215</guid>
<description><![CDATA[Click on the circled area in the plaza as shown below to go to the pool to get the new pin:

Then, t]]></description>
<content:encoded><![CDATA[<p><font color="#3366ff">Click on the circled area in the plaza as shown below to go to the pool to get the new pin:</font></p>
<p><img src="http://misslilperson.wordpress.com/files/2008/03/pool.jpg" alt="pool.jpg" height="355" width="414" /></p>
<p align="center"><font color="#3366ff">Then, the pin will be located below the life ring/preserver thing, and next to the Lifeguard chair. It is an Aqua Grabber pin.</font></p>
<p align="center"> <img src="http://misslilperson.wordpress.com/files/2008/03/life.jpg" alt="life.jpg" align="left" height="449" width="356" /></p>
<p align="center"><font color="#ff6600">There is one new background in the Sport Shop:</font></p>
<p align="center"> <img src="http://misslilperson.wordpress.com/files/2008/03/lots_of_people.jpg" alt="lots_of_people.jpg" height="188" width="167" /></p>
<p align="center"><font color="#0000ff">Sports Shop Secrets:</font></p>
<div align="center">
<ul>
<li><b>Click the Tennis Racket for the Orange Football Helmet</b></li>
<li><font color="#0000ff">For the silver surfboard, click the penguin's surfboard, and then the seashell, and then the starfish thing to get the silver surfboard.</font></li>
</ul>
</div>
<div align="center"><font color="#0000ff"><br />
</font><br />
THE FISHING LURE IS NOW AVAILABLE:</div>
<div align="center"></div>
<div align="center"> <img src="http://misslilperson.wordpress.com/files/2008/03/jumping.jpg" alt="jumping.jpg" height="547" width="413" /></div>
<div align="center"></div>
<div align="center">Your Penguin,</div>
<div align="center">MrsHollywood</div>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Ottimizzare il codice: un esempio pratico con bash e java (1/2)]]></title>
<link>http://paso.wordpress.com/?p=350</link>
<pubDate>Wed, 27 Feb 2008 05:06:57 +0000</pubDate>
<dc:creator>Paso</dc:creator>
<guid>http://paso.wordpress.com/?p=350</guid>
<description><![CDATA[Questo articolo si riallaccia al post di qualche giorno fa sugli esempi di utilizzo del comando awk ]]></description>
<content:encoded><![CDATA[<p align="justify">Questo articolo si riallaccia al post di qualche giorno fa sugli esempi di utilizzo del comando <a href="http://it.wikipedia.org/wiki/Awk"><b>awk</b></a> intitolato "<a href="http://paso.wordpress.com/2008/02/12/qualche-esempio-di-utilizzo-di-awk-ed-utili-risorse-web/"><i>qualche esempio di utilizzo di awk ed utili risorse web</i></a>".In quell'occasione vi avevo accennato al programmino java per convertire dei <i>timestamp</i> in date leggibili. Tutto questo perchè in questi giorni io ed il mio socio di tesi (<i>pes</i>) stiamo analizzando una serie di dati proveniente dagli archivi dei <b>database</b> di <a href="http://sourceforge.net/"><b>SourceForge</b></a> (hihi abbiamo i super-privilegi di poter sguazzare liberamente negli <b>enormi</b> immensi oscuri database di SF :) )</p>
<p align="justify"><!--more--></p>
<p align="justify">In particolare dobbiamo elaborare delle statistiche durante un arco di tempo prefissato, ma i databases di <b><a href="http://sourceforge.net/"><b>SourceForge</b></a></b> usano il <i>timestamp</i> in secondi per il tipo di dato <i>date</i> (ovvero la data). Quindi a noi serviva convertire il numero in un formato più comprensibile e facilmente gestibile anche con un foglio di calcolo (e badate bene che non ho detto excel :D ). Mi serviva quindi un programmino semplice e veloce per fare questa conversione ed ho subito pensato di usare <a href="http://it.wikipedia.org/wiki/Java_%28linguaggio%29"><b>Java</b></a> dato che sapevo già quali metodi usare senza bisogno di <i>googlare</i> o cercare nelle <a href="http://java.sun.com/javase/6/docs/api/">API</a>. ;)</p>
<div align="justify"></div>
<p align="justify">La prima versione da me scritta consisteva in una semplice <b>classe java</b> che convertiva un solo <i>timestamp</i> alla volta (per esempio, il timestamp in secondi per la data di oggi vale circa 1204069465). Quindi era necessario uno script in <b>bash</b> + <b>awk</b> per iterare la funzione.</p>
<p>[sourcecode language='java']<br />
import java.util.Calendar;</p>
<p>public class DataConverter {</p>
<p>   public static void main(String[] args) {<br />
      long timestamp;<br />
      Calendar cal;<br />
      int d, m, y;</p>
<p>      timestamp = Long.valueOf(args[0])*1000;<br />
      cal = Calendar.getInstance();<br />
      cal.setTimeInMillis(timestamp);</p>
<p>      m = cal.get(Calendar.MONTH)+1;<br />
      d = cal.get(Calendar.DAY_OF_MONTH);<br />
      y = cal.get(Calendar.YEAR);<br />
      System.out.println(d + "/" + m + "/" + y);<br />
   }<br />
}[/sourcecode]</p>
<div align="justify"> Il codice è autoesplicativo quindi non lo spiego (al massimo chiedete nei commenti), l'unica cosa che vi faccio notare è che ho moltiplicato il valore in ingresso per 1000 convertendolo così in millisecondi per sfruttare il metodo java già implementato.Poi per lanciarlo usavo lo stesso script di cui vi ho parlato nel <a href="http://paso.wordpress.com/2008/02/12/qualche-esempio-di-utilizzo-di-awk-ed-utili-risorse-web/">post precedente</a> e quindi non lo riporto per non allungare il post.<br />
Il programma di per se è veloce se eseguito poche volte, ma guardate i tempi che si ottengono quando lo ho lanciato su un elenco di  11000 date (notate l'utilissimo comando <a href="http://www.ss64.com/bash/time.html"><b>time</b></a>):</div>
<p><code>paso@casa:~/polimi/tesi/prove$ time ./convertiDate.sh &#124; sh &#62; dateOutput.txt<br />
&#160;<br />
real    18m10.902s<br />
user    9m37.256s<br />
sys     2m49.275s<br />
paso@casa:~/polimi/tesi/prove$</code></p>
<p align="justify">troppo lento! più di 18 minuti 8O su un P4 da 3.2ghz, mica su un <b><a href="http://it.wikipedia.org/wiki/Commodore_16">commodore 16</a></b> :D</p>
<div align="justify"></div>
<p align="justify">È chiaro che si tratta di una programma fatto in fretta e furia e quindi per niente adatto su grandi numeri. Il collo di bottiglia è nella continua invocazione dell'intera classe java e non di solo una sua parte (tipo un sigolo metodo o un insieme ridotto di istruzioni), e quindi la continua riallocazione delle risorse (che vengono <a href="http://it.wikipedia.org/wiki/Garbage_collection">distrutte</a> ogni volta che termina le istruzioni) necessarie per la sua esecuzione porta via i cicli di CPU poiché caricare i dati è decisamente più lento che eseguirli.</p>
<div align="justify"></div>
<p align="justify">Nella prossima puntata vedremo come ottimizzare il codice utilizzando un solo linguaggio (Java) per fare tutto quello che ci serve.</p>
<p align="justify">PS: non so come mi sia venuto in mente di fare questo post così tecnico però mi piaceva e ci tenevo, magari può sempre servire a qualcuno, in fin dei conti i blog sono fatti per essere utili anche agli altri, altrimenti mi tenevo un diario segreto e personale nel mio comodino e buonanotte al secchio :)</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Calcular diferença entre 2 datas com PHP]]></title>
<link>http://clares.wordpress.com/?p=26</link>
<pubDate>Sun, 10 Feb 2008 04:21:34 +0000</pubDate>
<dc:creator>Rafael Clares</dc:creator>
<guid>http://clares.wordpress.com/?p=26</guid>
<description><![CDATA[ Diferença entre datas com a função mktime()
Um exemplo simples de como calcular a diferença en]]></description>
<content:encoded><![CDATA[<p style="text-align:center;"> <strong><span style="color:#333399;">Diferença entre datas com a função mktime()</span></strong></p>
<p align="left">Um exemplo simples de como calcular a diferença entre 2 datas utilizando o php, como bem sabemos um dia possui 24 horas que equivale a (<span style="color:#333399;">24 * 60  * 60)</span>  igual á <span style="color:#333399;">86400</span>.</p>
<p align="left">A função <span style="color:#333399;">mktime</span> recebe os argumentos (<span style="color:#333399;">hora</span>, <span style="color:#333399;">minuto</span>, <span style="color:#333399;">segundos</span>, <span style="color:#333399;">mes</span>, <span style="color:#333399;">dia, ano).</span></p>
<p align="left"><span style="color:#ff0000;">&#60;?php<br />
<span style="color:#000000;"><span style="color:#339966;">#setando a primeira data  10/01/2008 </span><br />
<span style="color:#333399;">$dia1</span> = <span style="color:#3366ff;">mktime</span>(<span style="color:#ff6600;">0<span style="color:#000000;">,</span>0<span style="color:#000000;">,</span>0<span style="color:#000000;">,</span>01<span style="color:#000000;">,</span>10<span style="color:#000000;">,</span>2008</span>);<br />
<span style="color:#339966;">#setando segunda data 10/02/2008</span><br />
<span style="color:#333399;">$dia2</span> = <span style="color:#3366ff;">mktime</span>(<span style="color:#ff6600;">0<span style="color:#000000;">,</span>0<span style="color:#000000;">,</span>0<span style="color:#000000;">,</span>02<span style="color:#000000;">,</span>10<span style="color:#000000;">,</span>2008</span>);  <br />
<span style="color:#339966;">#armazenando o valor da subtracao das datas</span><br />
<span style="color:#333399;">$d3</span> = (<span style="color:#333399;">$dia2</span>-<span style="color:#333399;">$dia1</span>);<span style="color:#339966;"><br />
#usando o roud para arrendondar os valores<br />
#converter o tempo em dias</span><br />
<span style="color:#333399;">$dias</span> = <span style="color:#3366ff;">round</span>((<span style="color:#333399;">$d3</span><span style="color:#ff6600;"><span style="color:#000000;">/</span>60<span style="color:#000000;">/</span>60<span style="color:#000000;">/</span>24</span>));<br />
<span style="color:#339966;">#converter o tempo em horas</span><br />
<span style="color:#333399;">$hrs</span> = <span style="color:#3366ff;">round</span>((<span style="color:#333399;">$d3</span><span style="color:#ff6600;"><span style="color:#000000;">/</span>60<span style="color:#000000;">/</span>60</span>));<br />
<span style="color:#339966;">#converter o tempo em minutos</span><br />
<span style="color:#333399;">$mins</span> =<span style="color:#3366ff;"> round</span>((<span style="color:#333399;">$d3</span>/<span style="color:#ff6600;">60</span>));<br />
<span style="color:#339966;">#exibindo  dias &#124; repudizira na tela 31</span><br />
<span style="color:#3366ff;">echo</span> <span style="color:#333399;">$dias</span>."&#60;br&#62;"; </span></span><br />
<span style="color:#339966;">#exibindo  horas &#124; repudizira na tela 744</span><span style="color:#ff0000;"><span style="color:#000000;"><br />
<span style="color:#3366ff;">echo</span> <span style="color:#333399;">$hrs</span>."&#60;br&#62;";</span></span><br />
<span style="color:#339966;">#exibindo  minutos &#124; repudizira na tela 44640<br />
</span><span style="color:#3366ff;">echo</span> <span style="color:#333399;">$mins</span>."&#60;br&#62;";<br />
<span style="color:#ff0000;">?&#62;</span>
</p>
<p align="left"><span style="color:#000000;">Importante lembrar que acima hrs é o total de horas entre as duas datas e o mesmo para minutos.</span></p>
<p align="left">Para tornar o exemplo útil você precisa setar de forma dinâmica os valores para <span style="color:#333399;">$dia1 </span>e <span style="color:#333399;">$dia2, </span><span style="color:#000000;">como exemplo imagine que seu sistema grava a data (mktime) de um post e faça o calculo do (<span style="color:#333399;">diaAtual - diadoPost</span>).</span></p>
<p align="left"><span style="color:#333399;">Dica:</span></p>
<p>Para passar para o formato comum uma data em mktime() use o date como abaixo:<br />
<span style="color:#333399;">echo date('d/m/Y',$dia2);</span></p>
<p><span style="color:#000000;">Até logo,</span></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Changes + Updates]]></title>
<link>http://misslilperson.wordpress.com/?p=118</link>
<pubDate>Sat, 02 Feb 2008 04:08:12 +0000</pubDate>
<dc:creator>MrsHollywood</dc:creator>
<guid>http://misslilperson.wordpress.com/?p=118</guid>
<description><![CDATA[The top and the bottom of the screen has changed:

and&#8230;(again, we have Disney&#8217;s advertis]]></description>
<content:encoded><![CDATA[<p><em>The top and the bottom of the screen has changed:</em></p>
<p><em><img width="846" src="http://misslilperson.wordpress.com/files/2008/02/membership.jpg" alt="membership.jpg" height="32" style="width:619px;height:66px;" /></em></p>
<p><em><font color="#008000">and...(again, we have Disney's advertising, which New Horizon Interactive DID NOT do)</font></em></p>
<p><img width="667" src="http://misslilperson.wordpress.com/files/2008/02/disney.jpg" alt="disney.jpg" height="104" style="width:634px;height:88px;" /></p>
<p><em><font color="#3366ff">The 'Save the Migrator Project' has begun at the Beach:</font></em></p>
<p><img width="276" src="http://misslilperson.wordpress.com/files/2008/02/migrator.jpg" alt="migrator.jpg" height="302" style="width:262px;height:282px;" /></p>
<p><em><font color="#008000">The new Rowboat pin is in the Lighthouse.</font></em></p>
<p><img width="154" src="http://misslilperson.wordpress.com/files/2008/02/rowboat.jpg" alt="rowboat.jpg" height="96" /></p>
<p><em><u><font color="#ff6600">New Catalog!!!</font></u></em></p>
<blockquote><p><font color="#ff00ff"><em>Click on the rainbow pin in the new catalog on the admiral jacket to get green goggles.</em></font></p>
<p><img width="415" src="http://misslilperson.wordpress.com/files/2008/02/circle.jpg" alt="circle.jpg" height="215" style="width:415px;height:306px;" /></p>
<p><em><font color="#8a2be2">Click on the Russian Hat for the Red Viking Helmet.</font></em></p>
<p><em><font color="#8a2be2"><img width="331" src="http://misslilperson.wordpress.com/files/2008/02/russian.jpg" alt="russian.jpg" height="329" /></font></em></p>
<p><em><font color="#0000ff">Do this 4 times to get the Blue Viking Helmet.</font></em></p></blockquote>
<p><font color="#ff6600"><em>There are four new backgrounds for your player cards.</em></font></p>
<p><em><font color="#008000">Rockhopper has once again left Club Penguin in his rowboat, look at the telescope to see him.</font></em></p>
<p><em><font color="#008000"><img width="508" src="http://misslilperson.wordpress.com/files/2008/02/rowboat1.jpg" alt="rowboat1.jpg" height="636" style="width:444px;height:364px;" /></font></em></p>
<p><em><font color="#800080">There is also a new Club Penguin poll out on the homepage:</font></em></p>
<blockquote><p><em><font color="#800080">Q: What's your favorite part about Rockhopper's visit this time?</font></em></p>
<p><em><font color="#800080">Possible Answers:</font></em></p>
<blockquote><p><em><font color="#800080">a) Pirate Parades!</font></em></p>
<p><em><font color="#800080">b) Free life jackets!</font></em></p>
<p><em><font color="#800080">c) Visiting Yarr!</font></em></p>
<p><em><font color="#800080">d) Just glad that he's okay.</font></em></p>
<p><em><font color="#800080">e) Who's Rockhopper?</font></em></p></blockquote>
<p><em><font color="#800080">My Answer: Pirate Parades, and Visiting Yarr! (I always love free stuff, but the life jackets in my opinion were ugly this time around, so I didn't vote for that.</font></em></p>
<p><em><font color="#800080">Voting Percentages so far:</font></em></p>
<blockquote><p><em><font color="#800080">a) 19%</font></em></p>
<p><em><font color="#800080">b) 19%</font></em></p>
<p><em><font color="#800080">c) 8%</font></em></p>
<p><em><font color="#800080">d) 45%</font></em></p>
<p><em><font color="#800080">e) 9%</font></em></p></blockquote>
</blockquote>
<p><em><font color="#ff6600">Have a great Valentine's Day!</font></em></p>
<blockquote>
<p align="center"><em><font color="#008000">Your Penguin,</font></em></p>
</blockquote>
<blockquote>
<p align="center"><u><font color="#3366ff">MrsHollywood</font></u></p>
</blockquote>
<blockquote><p><em><font color="#800080"></font></em></p></blockquote>
<p><em></em></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Rockhopper's Crunched Boat]]></title>
<link>http://misslilperson.wordpress.com/?p=116</link>
<pubDate>Tue, 29 Jan 2008 19:49:03 +0000</pubDate>
<dc:creator>MrsHollywood</dc:creator>
<guid>http://misslilperson.wordpress.com/?p=116</guid>
<description><![CDATA[Here&#8217;s an update on Rockhopper&#8217;s ship. You can go to the Beacon Lighthouse and look thro]]></description>
<content:encoded><![CDATA[<p><span style="color:#ff6600;">Here's an update on Rockhopper's ship. You can go to the Beacon Lighthouse and look through the telescope to see this:</span></p>
<p><img src="http://misslilperson.wordpress.com/files/2008/01/ship.jpg" alt="ship.jpg" width="568" height="552" /></p>
<p>Remember to click "home" to see all of the more recent posts.</p>
<p>Your Penguin,</p>
<p>MrsHollywood</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[It's About Time]]></title>
<link>http://esignature.wordpress.com/2008/01/23/its-about-time/</link>
<pubDate>Thu, 24 Jan 2008 03:07:51 +0000</pubDate>
<dc:creator>Mike Ambrose</dc:creator>
<guid>http://esignature.wordpress.com/2008/01/23/its-about-time/</guid>
<description><![CDATA[A key requirement for an electronically signed document is a trusted time stamp. This is very import]]></description>
<content:encoded><![CDATA[<p>A key requirement for an electronically signed document is a trusted time stamp. This is very important for non-repudiation of contracts (was I bound by this at the time?) and for other important documents such as the disclosure of patentable inventions.</p>
<p>Proof of the existence of a signed document at a given time can be demonstrated by having a time stamp of the document signature issued by a trusted timestamp authority (TSA). A TSA is an entity that can demonstrate that it maintains its clock against a recognized time source such as NIST in the US. There are also standards for trusted time stamps such as <a href="http://www.ietf.org/rfc/rfc3161.txt" title="RFC 3161" target="_blank">RFC 3161</a> and ANSI X9.95, and a number of vendors that provide this service.</p>
<p>The basic process for obtaining a trusted time stamp is this:<br />
The requesting party generates a hash or digital signature (only hashes may be signed in RFC 3161 compliant signatures) of the signed document and sends this value to the TSA. The TSA attaches a time stamp token to the hash, then digitally signs it with the TSA's certificate. The requesting party validates the time stamp token and then associates this token with the signed document. This establishes that the signed document existed at the time of the time stamp. It does this without the TSA being aware of the conents of the digital document being signed, thus preserving the confidentiality of the signed document.</p>
<p>There are several ways of generating a time stamp token. RFC 3161 requires support of a time stamp token that contains the time as Zulu time, specified to the second, or better. It also requires that the TSA include a unique serial number with every timestamp issued so that the TSA name and token serial number define a unique time stamp.</p>
<p>Some other methods of generating timestamps rely on "document chaining" which includes a piece of the previous timestamp with each certificate thus establishing the validity of the time. Other methods combine this with using a single timestamp for a given interval of time so that many documents receive the same timestamp, and it is calculated as function of all of these documents. Should this timestamp be challenged several other document authors could be used as witnesses! An interesting survey of timestamping methods by Michael de Mare can be found <a href="http://www.cs.stevens.edu/~mdemare/docs/SUNYIT-2004-01.pdf" title="Survey of Timestamping Methods" target="_blank">here</a>.</p>
<p>Some other methods proposed use transient keys, meaning the key used for signing the document hash is a function of the time. Generation of "trusted time stamps" is an area of significant activity, and many vendors will emphasize the advantages of their (often proprietary) methods.</p>
<p>Usage of a trusted time stamp is necessary for increasing the reliability of an electronic signature in a document. For many documents an institution may rely on its own time server for a TSA - this is legitimate as long as the institution is able to document its timekeeping policies and demonstrate their reliability in the event that the time stamps are challenged.</p>
<p>With many vendors pushing their own methods for time stamping and the significant complexity that can be attached to the topic it is easy to get confused. However the question that a relying party should ask is "How good do they have to be?" There are many ways of legally establishing the time of the occurence of an event. Just insure that you can justify yours!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Rockhopper Crashes!!!]]></title>
<link>http://misslilperson.wordpress.com/2008/01/16/rockhopper-crashes/</link>
<pubDate>Thu, 17 Jan 2008 03:22:23 +0000</pubDate>
<dc:creator>MrsHollywood</dc:creator>
<guid>http://misslilperson.wordpress.com/2008/01/16/rockhopper-crashes/</guid>
<description><![CDATA[Uh-oh!!! If you look through the telescope in the Beacon, you see Rockhopper crashing into the icebu]]></description>
<content:encoded><![CDATA[<p><font color="#ff6600">Uh-oh!!! If you look through the telescope in the Beacon, you see Rockhopper crashing into the iceburg!!!</font></p>
<p><font color="#0000ff">Here are the pics:</font></p>
<p><img width="613" src="http://misslilperson.wordpress.com/files/2008/01/iceburg.jpg" alt="iceburg.jpg" height="561" /></p>
<p>And...</p>
<p><img src="http://misslilperson.wordpress.com/files/2008/01/boat.jpg" alt="boat.jpg" /></p>
<p>Your Penguin,</p>
<p><u>MrsHollywood</u></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Dances and Wigs]]></title>
<link>http://misslilperson.wordpress.com/2008/01/07/dances-and-wigs/</link>
<pubDate>Tue, 08 Jan 2008 03:33:48 +0000</pubDate>
<dc:creator>MrsHollywood</dc:creator>
<guid>http://misslilperson.wordpress.com/2008/01/07/dances-and-wigs/</guid>
<description><![CDATA[Okay, so I already did the post about the catalog stuff, and I finally found a guy wearing that new ]]></description>
<content:encoded><![CDATA[<p><strong>Okay, so I already did the post about the catalog stuff, and I finally found a guy wearing that new blonde wig...Here it is...(click to enlarge)</strong></p>
<p><strong><a title="wig.jpg" href="http://misslilperson.wordpress.com/files/2008/01/wig.jpg"><img src="http://misslilperson.wordpress.com/files/2008/01/wig.jpg" alt="wig.jpg" width="194" height="187" /></a></strong></p>
<p><strong>Also, I was talking about how you pour coffee with the coffee shop uniform on, and so here it is. You only pour one cup of coffee though, and then your penguin just stands there with the coffee cup. You have to move to another spot, and dance again to pour another cup.</strong></p>
<p><img style="width:140px;height:116px;" src="http://misslilperson.wordpress.com/files/2008/01/coffee.jpg" alt="coffee.jpg" width="158" height="132" /></p>
<p>(This is me holding the coffee cup, after pouring it with that black thing. The coffee cup is not part of the apron, it's a coffee cup, not part of the apron. The apron is just plain green.)</p>
<p>REMEMBER TO CLICK "HOME" ON THE TOP OF THE PAGE TO SEE MORE RECENT POSTS.</p>
<p align="center">Your Penguin,</p>
<p align="center"><span style="text-decoration:underline;"><span style="color:#ff0000;">MrsHollywood</span></span></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[How to sign and timestamp PDF file in Delphi.]]></title>
<link>http://neevia.wordpress.com/2008/01/07/how-to-sign-and-timestamp-pdf-file-in-delphi/</link>
<pubDate>Mon, 07 Jan 2008 17:14:04 +0000</pubDate>
<dc:creator>neevia</dc:creator>
<guid>http://neevia.wordpress.com/2008/01/07/how-to-sign-and-timestamp-pdf-file-in-delphi/</guid>
<description><![CDATA[uses ComObj;
&#8230;..
procedure TForm1.Button1Click(Sender: TObject);
var NVsign : Variant;
    ]]></description>
<content:encoded><![CDATA[<p>uses ComObj;<br />
.....<br />
procedure TForm1.Button1Click(Sender: TObject);<br />
var NVsign : Variant;<br />
    retVal : Integer;<br />
begin<br />
 NVsign := CreateOleObject('Neevia.PDFsign');<br />
 NVsign.CertificateFile := 'c:\cert.pfx';<br />
 NVsign.CertificatePassword := 'password';<br />
 NVsign.TimeStamp := true;<br />
 NVsign.TimeStampServerURL := 'http://tsa.neeviaPDF.com/tsa';<br />
 NVsign.X := 0; NVSign.Y := 0;<br />
 NVSign.Width := 6; NVSign.Height := 2;<br />
 NVSign.Units := 1; NVSign.ViewType := 2;<br />
 NVSign.Image := 'c:\stamp.jpg';<br />
 NVSign.Reason := 'I am the creator of this document';<br />
 NVSign.TextColor := '#0000FF';<br />
 retVal := NVsign.SignPDF('c:\in.pdf', 'c:\out.pdf');<br />
 if retVal &#60;&#62; 0 then Application.MessageBox(PChar('Error code=' + IntToStr(retVal)),'',0)<br />
  else Application.MessageBox('Done','',0);<br />
 end;</p>
]]></content:encoded>
</item>

</channel>
</rss>
