Rx Challenge


if you consider yourself RX pro, this challenge is for you. I decided to initiate weekly RX challenge and I let you  one week to solve it before I will publish solution. I will post it in a form of MS Test  method. and I will also post it on http://stackoverflow.com/questions/28176932/rx-challenge-1-by-bnaya-eshet on this challenge you have to make the following test pass by making buffer that triggered on timeout, count or flush request public void Buffer_ShouldBulkOn_CountTimeoutOrFlush_Test() { // produce a buffer that should produce its bulk // as result of one of...
no comments

Union with C#


this post is about cool, fun yet not so practical capability of C#.actually C# support this capability from its' early days, yet I become aware of It quite recently by my colleague Ofir Makmal. Union is kind of cool thing where you can look at the same address space from different angle. for example: 64 bit can be a long, 2 integer or 8 bytes. the trick is to set the offset of the field within the memory structure.this is done by using and like shown in the following snippet: class StrangeStruct { ...
no comments

Surface Pro 3 tip


if you own Surface Pro 3 tablet you might notice that the F keys functionality is quit annoying. by default you have to press the Fn key along with the F key. this can be very annoying when trying to work with software like Visual Studio. to overcome this issue all you have to do is to learn single shortcut. Fn + CapLock: this shortcut toggle the Fn functionality between the F keys and the defaults keys (Home, End, etc.)
no comments

Israel at War


I don't use to write non-technical post, but this isn't regular time at Israel,Israel is under missile attack for more than 2 weeks. we are facing cynical terrorist organization which is hiding behind it's ownlocal population. we do recognize that Palestinian people are suffering,but so are the people of Israel. the south of Israel is under missile attach for more than 14 years, they're having only 15 secondsto find shelter when missile alarms turn on.the terrorist is aiming our civilian population while hiding behind their own civilian population.they fire rockets from schools,  hospitals, mosques and even UN buildings. what...
no comments

Entity Framework 7 is Missing Again


Entity Framework 7 is Missing Again the original title of this post was "EF7: better late than never" but when I was learning more about Entity Framework 7's design I was somewhat disappointed. for me then main scenario for Entity Framework is SOA, where EF should be placed on the server side. as we all know server side should be stateless. but EF Team is keeping to ignore it as this scenario and focusing on stateful context. from my perspective the ORM 's best design is stateless server components + stateful client components which responsible of delegating command...
no comments

TPL Dataflow Starvation


TPL Dataflow Starvation this post is dealing with TPL Dataflow issue that may cause starvation.the TPL Dataflow team aware of it, so we can expect it to be fix in the near future.until then, you should be aware of it in order to avoid potential starvation of some of your Dataflow Blocks. so when does it happens? the starvation will happens when you have 2 blocks which is linked to the same source block and the first block linked block has limit Bound Capacity. usually you structure your blocks fabric this way,when you want a fallback semantic...

Code Paste


Code Paste during the years I maintains code snippets as notes for myself.recently goes over it and thought it might be useful to some of you, so I decided to publish it on my blog. you can see my code snippet at http://codepaste.net/searchall you have to do is to fill the "By" filed with my name and click search. enjoy it
no comments

Observable.FromAsync is it the right choice?


Observable.FromAsync is it the right choice? one of the most common RX's practice is to use Observable.FromAsync for executing asynchronous IO operations. typical code may look like: Code Snippet var webClient = new WebClient(); IObservable<string> uris = ...; var dataStream = from uri in uris                     from data in Observable.FromAsync(                         () => webClient.DownloadDataTaskAsync(uri))                     select data; behind the scenes RX set a Task continuation (ContinueWith) and propagate the result through AsyncSubject, actually it is a bit complex and messy implementation combination with TPL Dataflow (.NET 4.5) may offer better solution to asynchronous...