25 March 2020

Coronavirus or Covid-19 affects USA and Europe

British Prime Minister Boris Johnson on Monday decided to limit the displacement of the UK population for at least three weeks to stop the spread of the new coronavirus pandemic, which has killed more than 300 people in the country.

In France, the Prime Minister decided to limit exits to a maximum of 1 km from home, for a maximum of one hour.

The IMF is preparing to mobilize its full lending capacity of $ 1 billion.

The head of the World Health Organization, Tedros Adhanom Ghebreyesus, says that the Covid-19 pandemic is "accelerating", as more than 350,000 cases worldwide have been registered so far. "It was necessary to:
🔘 67 days from the first reported case to reach 100,000 cases
🔘 11 days for the next 100,000 cases
🔘 4 days for another 100,000 cases ”, Ghebreyesus told a press conference.

20 June 2017

Skype is not working as from 20 June 2017

It looks like microsoft did it again - another update and skype is not working properly again. What is with this guys? aren't they testing their software? Some simple unit tests would avoid such things once and forever.
BTW - updating windows - does not help as well, it looks like we will have to stay without skype a few days.

Microsoft, since you bought skype - you made it worse.

I could help with reorganizing the work in Skype department :)

19 November 2014

X-Frame-Options & SAMEORIGIN

Refused to display 'http://extremedev.example.com' in a frame because it is set 'X-Frame-Options' to 'SAMEORIGIN'

This is an error that can appear when you want to display a site through an iframe of another site. It will not allow for the site within the iframe to be displayed.

So what to do in this case?

There are several articles on the internet that are suggesting that you need to add some headers that will allow the display of the site through the iframe from different domains. For example: https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options

22 October 2014

Generic Method for wrapping around any code

Hey all,,
We often need to run something before some code logic and after it was executed.

As a simple example we can take the try-catch block, everybody has this in their application and is using it more then two times for sure.

What we can do in this case is to write a generic method that will allow to run our code inside a try-catch statement. This method will look like this:


Code:
public static void TryDo(Action action, ILogger logger, string messageDescription)
{
    try
    {
        action();
    }
    catch (Exception)
    {
        // Do some logging stuff here
    }
}

05 January 2014

IE 11 first impressions

Hi all,

Several weeks ago I tried saw an update in my windows 7, it was Internet Explorer 11. I said, great, maybe this version of IE will be a good one, but unfortunately it wasn't it.

The first problems that I have encountered, even before opening IE 11 was when I tried to install it. I selected it to be installed as an update, it required other updates also, so I waited for it to download, and finally Windows says: "You need to restart windows for changes to apply". WHAAT?

Why when installing a browser I need to restart windows? Microsoft -> that is not good, not good at all.

But wait, that's not all, after I agreed with the restart, it was restarting around 15 times, with a message failure to install updates. Then finally after one hour, yes this is truth ONE hour, my desktop appeared, however unfortunately I could not start any application, I couldn't even go to control panel through the start menu.

In order to make my computer work again, I had to go to control panel through explorer, and uninstall, manually all the updates installed on that day - that was a very very long process. And guess what windows says to me after each update uninstall: "You need to restart....", Ough noooo, again???
After doing that my windows was ok again, but without IE 11, I tried above procedure several times, because I wanted to see IE 11 but it looks like it was not possible to do that on that computer, so I tried on another.

First impression about IE 11 was that there is not big difference, but then I opened Developers Tools, I was impressed, but then after starting to use it I was getting disappointed, more and more.

It was really really buggy.

The thing is that I am a developer that is working with sites that are updating HTML content a lot of times per second, which as you understand requires good rendering capabilities from browser, but also requires a good Developer Tools that can handle these changes in HTML source.

Well IE 11 Developer Tools is not good enough to handle this, so it crashed, and even after I closed Dev Tools and reopened it did not start again, so I had to close and reopen the entire browser again.

For me it was impossible to work with this browser + it was sometimes failing even on sites that are not updating the content so many times.

However there is something that I like and that is that Microsoft has finally decided to include automatic updates in this browser, which in my opinion they had to do a long time ago.

So guys, how do you like the new IE 11?

Regards,
Roman

17 May 2013

IE9 and console.log problems

Hello everyone,

I have found that Internet Explorer 9 has some problems when you want to use console.log in your sites.
If you have for example:

Code:
console.log('www.extremedev.blogspot.com');

then in IE9 without the Developer Tools open it will throw an exception (but you will not be able to see it because the Developer tools is not opened).
This happens because IE does not find the console object.

There is a small fix for this - you have to

06 December 2012

Visual Studio 2012

Hello,

Well, as everybody know Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft.

I've started from using the Visual Studio 2003, this was many years ago and at that time it seemed amazing. But the technologies are developing very fast and we have to keep the pace together with it, by at least having the latest IDE.

At a first look at any new IDE it is hard to use it, and as I noticed - especially for Senior Developers with more than 5 years of experience. They seem very hard to be convince to use a new technology, application and IDE.

13 November 2012

HTML5: audio tag

Hello everybody,

We will discuss about the audio tag in this post.
This tag is available in HTML 5.
You can play an audio file right in browser, and you can do that without using flash.

A note that I did not find anywhere is that not all browsers support mp3 files and not all browsers support wav files. This is why you need to have both mp3 and wav files.

So a cross browser solution - that will work on IE, Chrome, Firefox and Safari will be something like this:

Orchard: Change Page Title

Hello,

Here is how make so that you have a custom title for a custom page (View).

Open the View (.cshtml) file that you want with a custom title and add this code at the top of the file:

Code:
@{
    Layout.Title = T("Custom Title | EXTREMEDEV").Text;
}

29 October 2012

Orchard: Change favicon

Hello,

As you all probably know Orchard is a free, open source, community-focused project aimed at delivering applications and reusable components on the ASP.NET MVC platform.

So, now about the favicon, to change the default Orchard's favicon you need either to install the Favicon module, which I think is too complicated for this case, or to override the location of the favicon by overriding the default Document.cshtml template - just copy/paste to your theme.

You will find something like below in Document.cshtml:

Code:
RegisterLink(new LinkEntry {Type = "image/x-icon", Rel = "shortcut icon", Href = Url.Content("~/.../FavIcon.ico")});

Change the path of the href attribute to where your favicon is, and here it is you have your own favicon.

Happy coding!!!

21 May 2012

SSIS on SQL Server 2008 R2

Hi all,

These days I had a chance to take a look at SQL Server Integration Service 2008 R2 (SSIS) and do you know what? it is a really good thing when you need to Extract, Transform and Load (ETL) data from a DataBase to another.

However, unfortunately it is very buggy and is still like something that is not fully implemented, like not all the functionality was implemented till the end.
What I've found during several days of investigations on SSIS is:
1) it is very hard to maintain;

07 March 2012

Remove Skype haha foto virus / worm

Hello,

Remember my post about Skype haha foto http://goo.gl/...?Facebook.com-IMG....JPG

After several days, I have found on the internet how to remove this worm.  Read below:

Try locate in processlist file called mdm.exe, and kill the process, Then download any startup program management utilities - for example Nirsoft Startup.cpl and look for "Windows Firevall engine" that references the "c:/windows/mdm.exe". Delete or disable those in startup and delete the file itself under c:/windows/mdm.exe

YouTube Service sent you a message: Your video has been approved

Hello,

Here is an interesting email that is being sent to many people.



From: YouTube Service
To: someEmail@someDomain.com
Sent: Wednesday, March 7, 2012 11:56 AM
Subject: YouTube Service sent you a message: Your video has been approved

17 February 2012

Transaction count after EXECUTE indicates that a COMMIT or ROLLBACK TRAN is missing. Previous count = %ld, Current count = %ld

Such an error has appeared these days to me in SQL using SPROC in another SPROC where these are using transactions:


Msg 266, Level 16, State 2, Procedure SPROC_NAME2, Line 0
Transaction count after EXECUTE indicates that a COMMIT or ROLLBACK TRANSACTION statement is missing. Previous count = 1, current count = 2.

So what is that???
I will explain.

13 February 2012

Carousel with variable item-sizes

Carousel with variable item-sizes


I have implemented a Javascript / jQuery + CSS Carousel which is auto-scroll-able, but also has the possibility to manually scroll the items.

The biggest advantage of this carousel is that you can have items of different size and the carousel is not changing its size.

Here is the how you define the items that will be displayed in the Carousel:

Code:
<li><a href="#"><img src="./img/item5.png"></a></li>
<li><a href="#"><img src="./img/item3.png"></a></li>

To configure the speed of scrolling when auto-scrolling you need to amend this line of code:

Need more? Leave comments and subscribe to my blog.

.