Bookmark button

Blog entries for category "Greg's blog":

Syndicate content

Bringing back the Console to .NET for Windows Store Apps – A fully Immersive Console

Keywords: , , .

Some of my friends already know that I have been working on something new over the last few months. Having helped shipping Windows 8, its Store App runtime for .NET applications, and the Async language and Framework features in .NET 4.5 was an awesome experience. I am very proud of our work. But over the last several moths I worked on something new – first a side project, it has now become a full feature. I wished I could have done this as a part of the .NET Team, but resource constraints and business priorities did not make this possible. Today I can talk about it publically, as my own boss. Exciting!

I continue working very closely with the Framework teram, and together we are announcing todfay a crucial update to Windows 8 Store App API Framework.

 
                                                                                                                                                                                                                                                                                       

Happy New Year!!

Keywords: , , .
We wish EVERYONE a merry holiday season and a
Happy New Year 2013!
— Greg & Stacy.

 

Мы желаем ВСЕМ весёлых праздников и поздравляем
с Новым Годом 2013!
— Гриша и Настя.

 

Wir wünschen ALLEN fröhliche Feiertage und ein
Glückliches Neues Jahr 2013!
— Greg & Stacy.

 

Happy New Year 2013 from Greg and Stacy!
Images: 
Happy New Year 2013 from Greg and Stacy!
                                                                                                                                                                                                                                                                                       

Waiting Can Be Fun, or Asynchronous Programming for Windows Store Apps.

Keywords: , .

Asynchronous programming is one of the central themes of the .NET Framework 4.5 release. The async and await keywords in C# 5 and Visual Basic 11 bring a new quality to working with asynchronous code. I had heaps of fun working on the underlying technologies.

The Windows Runtime (WinRT) has also adopted the asynchronous programming model. The WinRT APIs, introduced in Windows 8, are central to writing Windows Store Apps. WinRT async APIs are different than the .NET Task-based async APIs. However, you can use WinRT async APIs as seamlessly as pure .NET APIs, with the same keywords and the same usage principles. In this article I go into detail on how you can do that.

I review the most important types in the WinRT async infrastructure, and how they relate to similar .NET concepts. After that I walk over creating a complete Windows Store App with several different asynchronous operations. I show how to start asynchronous operations, how to retrieve results, and how to work with cancellations and progress monitoring.

Want to know more? Read on..

My sample App can be downloaded from MSDN.

This article assumes that you have a basic familiarity with using the async and await keywords with .NET APIs in C#. Thanks to Rich and Brandon who helped with the editing, upload and publication or this article.

                                                                                                                                                                                                                                                                                       

Async Targeting Pack for Visual Studio 2012 released

Keywords: , .

Update (Feb 2013): Late last year my colleagues published a new version of the Async Targeting Pack, titled "Microsoft.Bcl.Async". It adds support for Windows Phone 7.5 and the Portable Class Libraries.
[More info on the BCL blog]
[NuGet page for the Microsoft.Bcl.Async package]

Original post:
One of the things I have been working on over the past year or so is the end-to-end experience with Asynchronous Programming in the .NET Framework. This is a very large effort involving dozens of people. Today I'd like to advertise one component of this experience we have recently released:

The Async Targeting Pack for Visual Studio 2012 is now available for .NET 4 and Silverlight 5.

The Async Targeting Pack (available via NuGet) allows Visual Studio 2012 to use the new async / await language features in projects that target .NET 4.0 and Silverlight 5.

                                                                                                                                                                                                                                                                                       

Dear Spammers!

Keywords: , , , .

Hi all,

I really would like to get this off my chest. I know that many people feel similar, so I won't hold back the right words..

Dear spammers!
You are a bunch of poor dirty motherfuckers and the world would be so much better if only one of you choked on a piece of shit and died. I create capchas, and you have nothing better to do in your sad lives than wasting time and spamming people manually. I delete all your posts within a few hours, yet you keep trying just to cause pain. You do not engage in legitimate business; you waste people's time and make internet a worse place to be and to do business in. You are simply incapable to do better. You are sad little wankers and I wish you all sent to a remote island where you can suck on each other until your dicks won't need any more enlargements and you can go do normal jobs. Please leave the universe at your earliest convenience.
Thank you!

                                                                                                                                                                                                                                                                                       

Stacy and I are getting married

Keywords: , .

Everyone!

I am so very happy to let you know that in a couple of weeks my princess - Anastasia - will become my Queen!

Please come and celebrate the occasion with us!

Images: 
Greg and Stacy in a sea of red tulips
                                                                                                                                                                                                                                                                                       

I will be in Germany and Russia in the second half of July 2011

Keywords: , , .

I will be in Hamburg, Bremen and Moscow between the 15/07 and the 02/08. I'd like to manage to see everyone. Let's plan ahead and make it happen. Details are below. My email and Skype info is here.

I am really looking forward to it!

Я буду в России и Германии во второй половине июля

Я буду в Москве, Гамбурге и Бремене с 15.07 до 02.08. Хотелось бы увидеть всех, поэтому давайте планировать заранее, чтобы успеть встретиться. Детали ниже. Мой имаил и скайп адрес здесь.

С нетерпением жду встречи!

                                                                                                                                                                                                                                                                                       

Introns in Memory Mapped Files: A Tale of Junk Bytes and Memory Pages

Keywords: , .

A memory mapped files is virtual memory mapped to a physical file on disk, byte-by-byte. Or is it? Like with all advanced technology, the devil is in the detail...

Memory mapped files offer a number of benefits over traditional stream-based I/O. Advantages include random access performance, or the ability to share data across processes. The .NET framework provides built-in support for memory mapped files starting from version 4. In most cases using memory mapped files in .NET is as easy as using traditional file streams: just map a file into memory, open a seekable memory stream, and use it like a normal file while enjoying the performance benefits.

However, some tricky details lurk behind a corner: For instance - what are those weird bytes where an EOF was expected? Wanna know? Read on..

                                                                                                                                                                                                                                                                                       

The RegEx SET operator can cause schizophrenia for perfectly healthy expressions

Keywords: , .

Regular Expressions are a powerful, yet a deceptive text mining tool. There are many pitfalls. One pit that is particularly easy to fall into is that a (sub-)expression can obtain a completely different meaning if it is put within the context of a another (sub-)expression. For instance, using the presumably straight-forward Set operator can be quite tricky..

                                                                                                                                                                                                                                                                                       

Self-correcting software finds its way into real production systems

Keywords: , .

Evolutionary algorithms, genetic programming and self-correcting systems have long remained in the realm of research prototypes and academic experiments. Not any more. It appears that many years of research, cross-team collaboration and internal testing are about to culminate in a main stream product that utilises evolutionary techniques in a real main-stream software development framework.

Today the Microsoft .NET Framework and Base Class Libraries Team is happy to announce some very exciting news..

                                                                                                                                                                                                                                                                                       

Happy 8th of March Dear Ladies!

Keywords: , , .

May you always be loved and cherished!

Orange Rose Before Dusk (by Dennis Mojado, http://photography.mojado.com)
Images: 
Orange Rose Before Dusk (by Dennis Mojado, http://photography.mojado.com)
                                                                                                                                                                                                                                                                                       

Happy New Year!

Keywords: , , .

I hope that everyone is having a great Holiday Season and I wish you a Happy New Year 2011!

My 2010 was a year of conclusions and a year of commencements. If was a year of hard work and of earned achievements. Great things became a part of the past and even greater dreams became present life.

I wish you a bright, energising and enlightening New Year 2011! It will be the first year of a new decade. Hard earned success will set in and long chased goals will come closer.

Please forgive me if I have not been in touch this year, and let us give it another chance in 2011.

Happy New Year!

Images: 
Snowman Gangster: Happy New Year 2011!
ТЫ! Купил Подарки?: С Новым 2011 Годом!
Friedenspanzer: Fröhliches Neues Jahr 2011!
                                                                                                                                                                                                                                                                                       

Ancora Imparo

Keywords: , , , .

In the name and the authority of the Council be it known that Gregory Paperin having fulfilled all the requirements and having passed all the prescribed examinations has been admitted to the degree of Doctor of Philosophy. In token thereof the Council has authorised the Common Seal of Monash University to be hereto affixed.

Images: 
PhD Certificate - Greg Paperin
                                                                                                                                                                                                                                                                                       

I will be in Hamburg over Christmas & New Year

Keywords: , , .

Hey All!

I am planning to be in Hamburg over Christmas and New Year:
Between the 25/12 and the 07/01.

I'd like to manage to see everyone. Let's plan ahead and make it happen. Contact me and we will set a date and a time to meet. I am really looking forward to it!

                                                                                                                                                                                                                                                                                       

.NET time-travel or the lost hour of DST

Keywords: , , .

Every year again comes the DST change...

And every year again .NET developers get confused about a whole hour mysteriously missing from their logs. Others, in contrast, seem to experience an unwelcome déjà vu and to encounter things twice.

In this brief article I discuss how the DateTime type causes many of these problems and give a few tips on using the DateTimeOffset type to avoid most of the problems associated with DateTime in the context of DST transitions.

                                                                                                                                                                                                                                                                                       

The pitfalls of time zone naming conventions

Keywords: , , .

Do you know why "Greenwich Standard Time"-zone has no daylight saving time? And why "US Eastern Standard Time" does not actually apply anywhere on the Atlantic coast of the United States? In this brief article I talk about the pitfalls of name IDs in the Windows time zone database and about what to look out for when doing time zone programming under .NET.

                                                                                                                                                                                                                                                                                       

Kirkland Triathlon at Carillon Point 2010

Keywords: , .

Life has been very busy recently, and training has not always been the top priority, but racing without due preparation was nothing new to me, so I was not too worried before my first triathlon event since I moved to Seattle. However, I have grossly underestimated the role of the geographical layout of the race course: What used to be a "hilly" course in Melbourne turned out to be a lot flatter than a "largely flat" course around western Washington State. However, although the difficult course resulted in slower times compared to what I was used to in Australia, I am happy with my placement relative to other competitors.

Images: 
Kirkland Triathlon 2010 - After a happy finish (1)
Kirkland Triathlon 2010 - After a happy finish (2)
                                                                                                                                                                                                                                                                                       

My first quarter in Seattle

Keywords: .

It’s been a few months since I moved from Melbourne to Seattle, and it is definitely time to write a blog post to update friends and family on how I am doing. I wished I had done this sooner, but things have been busy and so my constant failure to keep in touch more frequently has been perpetuated once again. Recently, however, I have been overwhelmed with a torrent of birthday wished from all over the world, and I feel, I really owe all my friends to write at least a few lines on what I was up to over the last few months (you may notice that it took me over a month to write and publish this post :) ). So, here are some random impressions of my new life.

                                                                                                                                                                                                                                                                                       

Avoid the Facebook scam 'Your friend likes "This guy went too far with revenge on his ex"'!

Keywords: , , .

Just wanted to share this real quick:

There is a really annoying Facebook scam making the rounds - be careful to avoid it!:

You will see that a friend likes a site titled "WOW, This GUY Went A Little Too Far WITH His REVENGE On His EX GIRLFRIEND!" or something along those lines. This is likely to make you curious because it can appear posted by friends who are not typically interested in scandals, quasi-porn and other things like that.

If you click on the link it will take you to the site "shockingxrevenge dot com". Of course, there is no promised video or any kind of other useful or curious information. Instead, if you make the mistake to click the Verify-button on that page, a "Like" note/link will appear on your Facebook profile referencing the scam site. Your friends will see it and the scam will continue spreading.

The wankers who set up the scam obviously do not offer an "Unlike" option. However, you can trick them by clicking the Verify-button again; it will remove the scam link from your profile. (See the Facebook help link: http://www.facebook.com/help/?faq=17219&tq.)

Help spreading this warning, hopefully it will reduce the spread of the scam!

                                                                                                                                                                                                                                                                                       

Race Results 2009/2010

Keywords: , .

Just catching up on the race results form the last season (Summer 2009/2010) - mainly for archiving purposes:

The season finished a while ago and if I was still in Australia, I'd be preparing for the new season right now. I do not really remember many race details and I will save myself the effort to remember the specifics. In fact, I had even trouble remembering a list of all the races I did during the season.

So here is request to all my friends who happen to read this: If you know a race where I took part that is not listed here, please let me know! (Comment of this post, email or in any other way.)

                                                                                                                                                                                                                                                                                       

The Science News Cycle

Keywords: , , .
PhD Comic.com: The Science News Cycle

Remember how all flights were grounded in April this year and then resumed again - for some airlines days earlier than for others? I am convinced that the link between the ash cloud (B), the danger and the need to ground flights (A) was made and publicised just like in this picture.

Images: 
PhD Comic.com: The Science News Cycle
                                                                                                                                                                                                                                                                                       

Victory!

Keywords: , , , .
Thesis Cover
Images: 
Thesis Cover
                                                                                                                                                                                                                                                                                       

Self-Repairing Air Conditioner invented by Monash University Maintenance Services

Keywords: , , , , .

I'd like to share a little story that is, in my personal opinion, very typical of how Monash University operates. Enjoy a good laugh!

Images: 
Maintenance Request Accepted (email printout)
Maintenance Request Completed (email printout)
                                                                                                                                                                                                                                                                                       

Addressing Reviewer Comments

Keywords: , , .

Finally I know it's not just me...

PhD Comic.com: Addressing Reviewer Comments
Images: 
PhD Comic.com: Addressing Reviewer Comments
                                                                                                                                                                                                                                                                                       

Leaving Oz

Keywords: , .

I have not blogged for a while.. Some will have heard - I have been quite busy writing up my thesis. I call it pain train. But I can see the light at the end of the tunnel - just a couple of weeks to go.

Soon after I submit, I will have to leave Australia. I am very sad to leave all my friends and the great city of Melbourne behind, but a new exciting job and new adventures are waiting for me elsewhere.

I'd like to catch up with everyone once or twice more before I leave. I have a giant heap of things to sort out before I leave in mid-May, and very little time, so there are only two good occasions: I want to come together for a few drinks around the uni, and I also will have a house party before leaving. Everyone I know is invited and I hope that everyone can make it at least to one of the two events. It would be great if you came to both, but in case of doubt - come to the party. For details, click on the links below:

Looking forward to seeing you all!!

                                                                                                                                                                                                                                                                                       

Happy New Year!

Keywords: , , .
Happy New Year 2010!

I hope that everyone is having a great Hanukkah and Christmas season and I wish you a Happy New Year 2010!

My 2009 was a year of change and surprise. What was set has vanished, and what was unattainable became reality. Much has been lost, and even more has been found. End whenever there was doubt - action, not inactivity, was the right answer.

I wish you a warm, joyful, and successful New Year 2010! It will be the last year of the first decade of the new millennium. Things that have been started will be finished, and new amazing things will begin. It will be a year of new success and a year of love. And I wish, it will be a year of reunion with old friends.

Happy New Year!

Images: 
Happy New Year 2010!
Happy New Year 2010!
С Новым 2010 Годом!
Glückliches Neues Jahr 2010!
                                                                                                                                                                                                                                                                                       

Half-Marathon (Melbourne Marathon 2009)

Keywords: , .

In case of doubt - always do it; and although I did not have any serious doubt, I did it. Beating all of my personal competitors I have completed a half-marathon! This will stay with me for life.

If you want to know more about the pain and the gain, the experience of agony and of joy I endowed myself with by successfully completing this race, then read on.

Images: 
Arun and me before the race
During the race - going for it!
During the race - the agony is apparent
End spurt
Just before the finish line - Yeeaar!
Yanir, Arun and Julie after the race
Yanir, Arun, Julie and me after the race
Me after the race - I rule !))
Julie aftre the race
Me and Julie after the race
Yanir and me after the race
                                                                                                                                                                                                                                                                                       

Amsterdam

Keywords: , , .

They say I was in Amsterdam, and for a change I still remember. I knew I would have a stopover here on the way from Madeira back to Oz, but I neglected to realise that it was quite a long one. Only having arrived at the Schiphol airport I realised that there was plenty of time to dump my carry-on luggage into a storage locker and to take the train to the city for a few hours.

Images: 
Amsterdam Central Station
Amsterdam - Street impressions (1)
Amsterdam - Street impressions (2)
Amsterdam - Street impressions (3)
Amsterdam - Lots of Coffeeshops as usual
Amazing street artist performance
                                                                                                                                                                                                                                                                                       

Tivoli Hotel Madeira: Huge Disappointment!

Keywords: , , , .

I'd like to briefly report about the bad experience of staying in the Tivoli resort hotel in Funchal (Madeira) and why I recommend to avoid that place at all costs.

                                                                                                                                                                                                                                                                                       

Madeira / ICEC'09

Keywords: , , , , .

I went to Madeira to attend the ICEC'09 conference (International Conference on Evolutionary Computation) where I presented my and Suzanne's work on Dual Phase Evolution. The presentation went extremely well and there were some interesting questions during the following discussion.

Images: 
Already in the airport baggage claim hall - Russian money is welcome on Madeira