Wednesday, 16 September 2015

The magic of Aspect Oriented Programming with PostSharp

In this video tutorial, I explain what Aspect Oriented Programming (AOP) is all about, the issues it solves and the benefits of using it.
I demonstrate it with PostSharp, the best framework for implementing aspects and integrating them with your solution.

Quoting PostSharp, it allows developers to eradicate boilerplate by offloading repeating work from humans to machines. PostSharp contains ready-made implementations of the most common patterns and gives you the tools to build automation for your own patterns..

In my demo, I show how to use those ready-made implementations, as well as get started with your own custom ones (best viewed in full screen, for the code screencast).

Wednesday, 26 November 2014

Bookmarklets FTW: Magic Pop-Outs and the Theory of Dog Balls!

Bookmarklets FTW!

As explained in my previous post Bookmarklets FTW: Preview Your Blogspot Posts Like a Boss!, bookmarklets are little (or not so little) helper bookmarks, which actually contain scripts. They can certainly make your life easier with automation. I'm bringing here 2 of them, which I've been using a lot.
  • A bookmarklet that opens streaming videos in little popups (not just Youtube videos).
  • A bookmarklet that opens a tiny remote control for Grooveshark player functions.
  • I'm including a small-but-useful app for keeping popup windows on top.
For more advanced readers, I've added a deeper explanation on the bookmarklet structure and recommendations for bookmarklet editing tools and procedures.


Article Level:

You should have found this
out for youself!

Sunday, 1 June 2014

Project: Keeping Track of your GitHub Open Issues in Real Time

The need

Since my team started working more and more on open-source projects, which are publicly shared on GitHub, I faced a need to have an easy way to follow up whenever new issues (GitHub's euphemism of bugs) were submitted by users.

There is a way to keep track by "watching" repositories of your choice, for which you get email notifications, but those emails are not limited just to newly submitted issues, but also to every pull/push request and comments. Also, for some reason, although I have clearly unsubscribed ("unwatched") specific repositories on my list, GitHub continues to notify me about them (which seems to be an issue in itself).

Thus, I decided (as always) to take things to my own lazy hands, and spent ~2 days building my very own GitHub Issues Notifier.
Get it on GitHub!

Tuesday, 15 April 2014

An HTML5 Session at AUBG

This is a recording of a lecture I made on April 14th, 2014 at the American University in Bulgaria, in Blagoevgrad, in front of computer science students. The session was organized between Telerik and the university's Computer Science Students Union.
Below are the full recording (made with 2 laptops, 1 cordless keyboard, 1 cordless mouse and great help from the students), the pptx presentation, and the demos and links which were presented.

Tuesday, 11 March 2014

This blog is not dead!

It just smells funny...
(Updates will come soon. I hope).

Thursday, 20 June 2013

זכות הצעקה: על המחאות בבולגריה שהעולם מתעלם מהן


אני טקסט פוליטי

זה הפוסט הראשון בבלוג שהחלטתי לפרסם בעברית, וגם הפוסט הפוליטי הראשון (מי שמכיר אותי יודע שאני אדם א-פוליטי, על גבול האנטי-פוליטי), אבל ההחלטה הזאת הגיעה באופן ספונטני במטרה לפרסם ולהפיץ את הבשורה של מה קורה כאן, כי דברים קורים. ובקנה-מידה היסטורי בינלאומי והתקשורת הישראלית משום מה מתעלמת.
את התמונות כאן צילמו חברים קרובים ועמיתים לעבודה, שעמדו עם הרוב המוחה מול בניין הפרלמנט במרכז סופיה.

הפגנות מול בניין הפרלמנט. צילום: סלבייקו אינגיליזוב

Thursday, 23 May 2013

My Very Own Single-Serving Site - Is it 18:00 yet?!

Single-serving sites are awesome. Well, some of them are. Some of them answer really crucial questions.

My contribution to the world of SSS: Is it 18:00 yet?
Sometimes you really really need to know if it's 18:00 already. My informative site "Is it 18:00 yet?" is here to the rescue!
It also shows a countdown till 18:00 (or a count-up, showing how much time has passed since 18:00).
What else happens on the site at 18:00? I'll let you browse and see the wonder for yourself!


GitHub hosting
This SSS is hosted on GitHub (yes! it's possible!). A link to the repository: IsIt6.
To learn about GitHub hosting go to GitHub Pages.

Other examples
Here's a part of my SSSs collection. Some more useful than others:

Wednesday, 22 May 2013

Alon In The World - Now on Facebook

Like my blog?
Really like my blog?
Now you can really really my blog...
Join the sensation! Because that's what all the hip hipsters do!

Yo Dawg, I heard you like tech blogs and liking things on Facebook,
so I put my blog in your Facebook so you can like while you like!
Oh, and thanks for liking my blog!

Thursday, 21 March 2013

Babylon-based dictionaries on Kindle - Round 2

My post "Using Babylon-based dictionaries on your Kindle" seems to have gotten relatively wide attention. Currently the statistics show that 2595 users have seen it, 31 of them commented, 2 more via Facebook and a number of emails I've received from readers.
People's interest in pre-built dictionaries which they can run on their Kindle devices (specifically English-Hebrew dictionaries, but not just) is understandable. There are some issues with the BabylonToHtml conversion tool I've put together.

Due to lack of time for resolving the known issues with the project, or for production of pre-built dictionaries, I've decided to share BabylonToHtml publicly as an open-source project, for anyone who wishes to update/improve it.

Pre-Built Dictionaries in this post!

I'm sharing some pre-built dictionaries in this post. Some were produced by me and some by others. They are shared here so that they can be freely downloaded and used by anyone.
This section will be updated with dictionaries which the readers share with me over time.
 Jump to the pre-built dictionaries section!

Monday, 7 January 2013

Full Recordings of my C# Programming Course on YouTube

The complete set of recordings of the "Programming Fundamentals with C#" course (presented in English) which I've lectured between 2011-2012 on the Telerik Academy, was uploaded to YouTube's Academy channel.

I've compiled here the full list of the videos, in their original presentation order. This may help anyone interested in following this course from start to finish.
All lectures were presented by me, except 3 in which I was absent and were presented by George Georgiev, and the general introduction to the course, presented by Svetlin Nakov.

For convenience, here are links to download the book of the course in Bulgarian and in English, and for each lecture I'm also linking the PowerPoint presentation and the demo materials from the academy site. Additional materials and demo tests can be found on the course's materials page.

Thursday, 18 October 2012

Infographic: How the Internet works

Evolution
I started working for an Internet service provider in 1997 as a dialup networking technical support representative. This means people were using their analogue landline phones in order to get online. I was very proud to be working for the largest ISP and for not having to pay for phone and dialup internet service by the minute.

Most users were running Microsoft's Windows 95 at the time and browsing the pristine web using Netscape Navigator (the great-great grandfather of Mozilla's Firefox and the leading web browser at the time) or early versions of Internet Explorer 4.0 (the molesting uncle of today's Internet Explorer), alongside other software dedicated to long-forgotten non-web-based services with exotic over-smart geeky names like IRC (with its most popular application mIRC, which is still alive and kicking), Archie, Gopher with tools like Veronica (all are great-great-great grandparents of today's search engines like Google or Microsoft's Bing which everyone now takes for granted).

According to statistics, in that year the Internet counted (including myself) 70 million users, which represented just 1.7% of the world's population. This was 15 years ago.
via Fail Blog
Revolution
Around 2.3 billion people, out of a total of 7 billion, 32%(!!!1) of the world's population, are now using the Internet. This number is already twice(!!!1) as large as it was in 2007, just 5 years ago.

The dialup internet I used was transferring data at a rate of 1.44 kilobits per second. Today's slowest internet account I could sign up for is 30 megabits per second, 20,000 times faster than the old account. I have 3 laptops at home running over a fast gigabit wireless network and 2 Android smartphones connected over 3rd generation mobile connectivity..
Last year the UN declared Internet access a basic human right and countries like Finland have already declared Internet access as a basic legal right!

Where the magic happens
People today take Internet for granted. Surprisingly, many of them think the Internet is (or is in) their web browsers. The magic of data communications is still unknown to many of its every-minute users.
How does all this happens? What's going on behind the scenes? The essentials of of networking and computers communications haven't changed much. It's simpler than most people think, once broken into small functions, but still with all the moving parts and computers along the way, it's still a miracle that data can reach from one end of the world to the other with such accuracy and speed.

An animated much-simplified infographic showing how things work was sent to me. I am, as usual, gladly sharing it.

Wednesday, 11 July 2012

Importing HTML5 and CSS3 templates as themes into Sitefinity

This session with the Telerik Academy's "Web design with HTML5 and CSS3" course was an extensive demo showing how a web design template, consisting of an HTML5 page, a CSS3 file and some images can be imported as an ASP.NET theme into Sitefinity and used as a design template for robust pages with dynamic Sitefinity content.
From my lecturing experience I've learnt that the best way to learn something is to teach it. This session was quite interesting for me: being a senior developer of some main parts in Sitefinity for around 3 years now, I've had the pleasure to meddle with many of its internal nuts and bolts, but hardly ever touched the frontend design side of it. This academy session made me dive into the uncharted territory of UI charting and it was loads of fun. I enjoyed it very much.

Monday, 2 July 2012

Wikipedia and the triumph of human knowledge

I see Wikipedia as one of the great triumphs of human technology. After celebrating its 10th year anniversary last year, it never ceases to grow.

"Science fiction writers foresee the inevitable" (Isaac Asimov).
It's is becoming a fact that science fiction often turns into science (at least since the vast technology leaps of the 20th century). Dan Simmons prophesied the DataSphere in his Hyperion book series, a self-aware network encompassing the complete human knowledge. This is what the Internet is rapidly becoming, and Wikipedia is taking a huge part in it.
Alongside the knowledge revolution, in the past few years we have been witnessing the  reverse process of the the print revolution from the 1400s. Electronic books are taking over not-so-slowly. Amazon now admits to sell more electronic Kindle books than printed ones. 
Even the printed version of the great Encyclopædia Britannica was discontinued this year (2012) after 244 years of print! As you can see in the infographic below, Wikipedia currently contains enough English articles to fill 952 volumes of Encyclopædia Britannica (the printed encyclopaedia has merely 32 volumes). The era of digital of knowledge is present..


Here is an informative infographic with a few interesting statistics about Wikipedia. I have received it privately with a request to share. I gladly agreed.

Friday, 29 June 2012

Using Babylon-based dictionaries on your Kindle

UPDATE! A Follow-Up Post on this Project
Since this post got wide attention, I've decided to follow-up on this project.
See my new Babylon-based dictionaries on Kindle - Round 2 post.
Now the project is shared as open-source and pre-built dictionaries are organized and shared.

Lost in translation
The problem
Addressing this issue started by by trying to purchase an Italian-English dictionary for my 2nd generation Kindle, running Kindle software v2.5.3.
One dictionary was offered for sale  (as an ebook) on Amazon's website. The problem was that the dictionary was not actually available for the device for another whole year..

Good translations
Babylon, on the other hand, offers high-quality dictionaries, spanning over pretty much every language. Babylon Translator is a paid software for Windows. Its dictionary files (.BGL) are offered as free downloads.

In a perfect universe
If I only had a way to import Babylon's free content dictionary into my Kindle and use it as the built-in dictionary, it would have been perfect..

The solution presented here was tested on my Kindle 2. I'm pretty sure it should work on newer versions of Kindle as well.
The same Babylon dictionary, used on my PC (Left) and on my Kindle (Right)
(Click for full size)
Article Level:
Reasonably moderate

Wednesday, 11 April 2012

Setting Up Subversion Source-Control with Assembla and TortoiseSVN

Why Source-Control?
When working on sufficiently-large projects, it's good to be able to keep track of changes with a source-control system (sometimes referred to as "revision control system" or "version-control system" or VCS. Personally I prefer the old term "source-control"). The advantages of using such a system:
  • Keeping track of changes:
    Know who made the changes and when.
    Record changes with appropriate comments ("..hmmm.. why did I make this change..?").
  • Reverting and obtaining previous versions.
  • Managing versions and labels of your code in various history points.
  • Potentially sharing the project with other developers ,working together making tracked changes.
  • Some source-control systems allow tracking bugs and tasks, while associating them to changes made in files.
Many enterprises use commercial source-control systems. Since the majority of my enterprise projects have been on Microsoft environments, in the early days I was using Visual Source Safe (VSS), in later years it's been Team Foundation Server (TFS). Both consist of a source server and client applications which integrate with the Windows domain users and with Visual Studio IDE.

On home projects I prefer to use a more modest source control system, preferably one which I can store online for backups and doesn't require a server running all the time.

Article Level:
Reasonably moderate

Tuesday, 6 March 2012

A day in a life of a software developer

This is a short lecture I gave on 01/2012 to the students of the Telerik Academy.

The students who do well in the C# fundamentals course, in which I lecture, are offered jobs at Telerik. The job's pool is split into positions of developers, QA engineers and technical support engineers. Since Telerik's products are made for the usage of developers, knowledge of programming is required for all those positions (not just for the developers' positions).
In order to give the students a better understanding of what they may be facing in the future, Telerik Academy conducted a short seminar in which a lecturing representative of each of the aforementioned position gave an introductory presentation.
Representing the developers, I put together a short lecture, describing the everyday chores of of the poor developer.

Wednesday, 29 February 2012

Douglas Crockford's JavaScript Lectures

Douglas Crockford  is a JavaScript architect working for Yahoo and one of the founding developers of the JavaScript language.

This is a series of fascinating lectures which, I think, should be watched by every developer, especially ones who have interest in web frontend client-side development and JavaScript.
There are many online lectures and tutorials about JavaScript, which is perhaps becoming the world's most common programming language, but not every day you come across such good lectures, given by one of the developers of the language itself.

The first one is quite an amazing overview of the evolution of computers and computer languages. As noted above, the fact that it's presented by a person who has taken part in the actual process, makes it rather special. Should be watched by every geek.

Monday, 27 February 2012

Bookmarklets FTW: Preview Your Blogspot Posts Like a Boss!

Bookmarklets FTW!
Bookmarklets are little (and sometimes not so little) script snippets which are stored as browser bookmarks, thus they can be invoked easily and quickly. They are tremendous help, especially for a lazy programmer like the one I always claim to be, always seeking shortcuts, scripts and automation. Let the computer do the work for you when possible, I say.
I keep a collection of my own home-made bookmarklets which I find handy, and I will share at least some of them here occasionally.
Bookmarklets work on all web browsers except on Internet Explorer, which means they work on all web browsers.
For Google Chrome there is even a option to convert bookmarklets into Chrome extensions!
Article Level:
You should have found this
out for youself!

Monday, 13 February 2012

Sunday, 5 February 2012

Remote Debugging In the Comfort of Your Living Room

Be the domainless master of your own domain
Many times I need to test a project on different operating systems, preinstalled or not preinstalled with specific components (e.g. a 32 bit project built with Windows 7 x64, run on a Windows XP x64 or x86, without an installation of the .NET framework runtime environment) and see how it behaves.
And in many cases it would misbehave.

In such cases I'd like to inspect my errors in order to repair them. And in many cases this is no easy task. It's sometimes hard to trace the problems without a proper debugger.
It's possible, of course, to install  a complete development environment on my test machine, but that would be heavy, take disk space and memory, and in many cases would be quite an overkill.

Fortunately, Microsoft provides the platform and tools for remotely debugging your application.
Unfortunately, accessing a remote machine for debugging requires appropriate permissions, and the remote debugging tools are planned to work when both computers share a domain and can work with common domain users.

A common (and economic) trick for testing an application on multiple environments is by using a virtual machine. I can  run several virtual machines on my computer, each with a different setup and a different OS.
In order to achieve remote debugging, I'd theoretically need to set up a domain server, and start managing users among my virtual machines (or use a real network, such as the one in my workplace, in order to log in as a domain user, given sufficient privileges on the virtual machine).
However, there are tricks to work around this requirement. I'll demonstrate how to run remote debugging from my local machine (not attached to any domain) to a virtual machine (running on its own detached workgroup).
Click to see the wonder in action:
Snap! A crash inside the VM (Click for the screen capture)
Obviously an index was exceeding the bounds of some array. Absolutely valuable information, which will not always be available upon crash, especially if your project is big enough.
In any case, we need to know where this exception is thrown and why.

Article Level:
Not quite rocket science