Saturday, June 2, 2018

iPhone is not recognized by Windows 10 1803 April 2018 Update

After an update to 1803 iPhone 6S+ was not visible in the Windows Explorer.

Device manager showed driver unrecognized.

All the Apple support articles suggested updating drivers, etc.., but nothing helped.

For example:

1. This one

2. And this

3. And this

I’ve lost all hope, but then Firefox (I’m giving it a new chance to replace Chrome) suggested to download and install Media Feature Pack from Microsoft to improve video playback.

Miraculously, after a reboot, my iPhone was recognized.

Sunday, May 27, 2018

Git – merging conflicts

git commit -am <message>       # add & commit your local changes
git pull origin master         # pull the latest codes
git status                     # see the files that have conflicted (untracked files)

# If you want to keep your changes then
git checkout . --ours

# Or, if you want to keep remote changes
git checkout . --theirs
git commit -am <message>           # add & commit with a new message
git push origin master             # push to remote  


Angular (First Blood) Resources – Angular CLI – a wizard for upgrading Angular Versions

Friday, January 23, 2015

Firefox 35–Fails to login to twitter

Had this issue where Firefox fails to login to twitter, just retuning me to the login screen. Tested with Chrome – no issue there.

The solution was to clear the cookies for Twitter in Firefox.

Options->Privacy Tab –>Remove individual Cookies->Search for and remove all the relevant cookies.

Issue resolved.

Saturday, January 10, 2015

Fast way to open CMD or Powershell from Windows Explorer


This is an amazing tip I found as a comment on the Rick Strahl’s Web Log (by peSHIr).

So, I’ve usually used Shift + Right Click to get to the “Open Command Window Here” option in the menu. It works, but the following tip is much nicer.

Just type cmd or powershell (overwrite the existing path) in the path field of the Windows Explorer, and hit Enter.

That is it! The cmd will just open directly in the path you were browsing in your Windows Explorer.

Great tip!


Thanks peSHIr

Tuesday, October 28, 2014

C# Creating a windows scheduled task inside a folder



Recently I needed to work with windows scheduled task, and noticed that it is possible to consolidate/organize the tasks inside tasks scheduler in folders. Essentially a possibility to consolidate the tasks by topics or vendor.


In order to work with task scheduler I’m using the Task Scheduler Managed Wrapper, by David Hall, available from or as a nuget download.

Sub Folder management:

So it took me a minute to understand that sub folder collection and all the related functions are located under RootFolder and not available as immediate TaskService children.

TaskService taskService = new TaskService();
 if (taskService.RootFolder.SubFolders.FirstOrDefault(x=>x.Name=="MyFolder")==null)

taskService.RootFolder.SubFolders["MyFolder"].RegisterTaskDefinition("MyTask", taskDefinition);

You need to check for existing folder with the same name, calling CreateFolder with existing name will throw an exception.

Thursday, October 23, 2014

How to view source code of an email in Outlook 2013

    Sometimes you need to review an email source code (especially if you are the one who sent the email).

    In Outlook 2013:

    1. Open the email in a new window.
    2. In the ribbon – find the Actions drop down menu.
    3. In Other Actions menu, choose the “View Source” option.



Thursday, October 16, 2014

New (for me) Windows shortcuts


All tested on Windows 8 and 8.1


Ctrl+Shift+ESC – Opens Task Manager

Ctrl+Shift+Right Click on the Taskbar – adds “Exit Explorer” option to the context menu.


Win+X – opens a very useful menu with menu shortcuts. (this one is not very new, but some people don’t know about it - I use it every day)


Saturday, October 4, 2014

Cash Back–Smart shopping

Just discovered this, so here is what I know at this point (probably going to update this post later with additional info).
If I’m wrong about something, whoever reads this, please feel free to provide more information in comments.
The cash back sites are probably getting some revenue for referring customers to specific vendors. Some of that revenue they share with the customers.
The main thing to remember is that in order to be eligible for any refund, I need to pass through the cash back web and not go directly to the vendor site. This probably means that can get a refund only from a single cash back site, even if signed up with several ones which have contract with a specific vendor.
Currently known cash back sites:
Ebates – Should be good for ebay, purchases.
Extrabux – Should be good for AliExpress,
BeFrugal – Should be good for AliExpress,
PouringPounds – for British vendors
Following the signup, there is usually a need to confirm the email address and to set cash back checks postal address. As an alternative, which is great for non US users like me, there is an option to get the cash back to paypal account.
Now, all that is left is to wait for the Black Friday Smile

* Disclaimer – the links to cash back sites contain my referral code, which means that I’ll get some refund for referral. In most of the cases, it will also generate some for the person who signs.

My blogNote

I’m going to make some changes to this blog.

From the beginning it was all about my (lack) of memory, and having an online storage for all the stuff that is going to be helpful for me in the future. I assumed that it will be helpful for others as well, therefore I choose a blog and not some closed and private storage.

The assumptions are still true, but the content, which was primary software development oriented, is probably going to change, as I’m going to use this blog for my “life hack” content as well.

The blog was abandoned for a while, but this just means that I’ll have even more things to rediscover and to share.

The idea of sharing the stuff that I discover and to use some of it to generate any kind of revenue for myself is new for me, so hope it will work out with minimal hiccups…

Wish me luck.

Friday, December 21, 2012

Always run Visual Studio as administrator under Windows 8

This is a default state for many developers and this functionality is available under properties menu in Windows 7 but has vanished in Windows 8.

In order to enable VS running as administrator in Windows 8:

you have to right-click devenv.exe and select "Troubleshoot compatibility".

1. select "Troubleshoot program"
2. check "The program requires additional permissions"
3. click "Next", click "Test the program..."
4. wait for the program to launch
5. click "Next"
6. select "Yes, save these settings for this program"
7. click "Close"


Saturday, November 10, 2012

Windows context menu – Flag directory

So I’ve been looking for a while an option to flag a directory with “Moved” folder.

Why would I need it? Well, for example, when downloading a torrent files, I would like to move some of the content but in the same time to keep the originals for seeding. So in order to remember what was moved and what wasn’t I would have to:

1. Create a new folder
2. Rename it to some name, like “Moved”

The fastest way to do this is by Ctrl+Shift+N and renaming.

Sounds simple, but when doing it a lot you start thinking about automation.
So here is a simple code which can update your registry to add 2 options:

1. Right click on any folder on the Windows Explorer side bar would have “Mark Moved” entry

2. In the right click menu inside a folder, New menu would have “Mark Moved” entry


Copy the following to a text file, rename .txt to .reg and run.

Windows Registry Editor Version 5.00
"Command"="\"CMD\" /D /E:ON /c for /F \"tokens=*\" %%a IN (\"%1\") do md \"%%~dpa\\Moved\""
"FriendlyTypeName"="Mark Moved"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\Mark Moved]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\Mark Moved\command]
@="CMD.EXE /C MD \"%1\\Moved\""

The information was merged form the following two sources:

Next steps would be to add an icon to the explorer toolbar or ribbon.

Tested on Windows 8.

Thursday, November 8, 2012

Error 0xE8000012 when connecting iPhone to iTunes after migration to Windows 8

Took me to long to find an solution, but it works only for jailbroken iPhones:
Using any file browser on the phone (like iFile) browse to /var/root/Library and delete Lockdown folder.

Sunday, September 16, 2012

Threads in WinRT


Just a small example that shows the use of Task.

private async void Button_Click(object sender, RoutedEventArgs e)
    string text = await Task.Run(() => Compute());
    this.TextBlock.Text = text;

Thursday, September 1, 2011

jQuery $.ajax–Error:Internal Server Error

The javascript code:

    var dataString = "{Id:'" + id+ "',name:'" + name+ "'}";
        type: "POST",
        url: "Default.aspx/SubmitName",
        data: dataString ,
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function (message) {
            alert('Thank you!');
        error: function (jqXhr, textStatus, errorThrown) {
            alert("" + textStatus + "; " + errorThrown);

The server side function:

    public static bool SubmitName(string id, string name)
       //some logic here
        return false;

This code would receive an “Internal Server Error” 500 because in the JS the first parameter name is “Id” while on the server side it is “id”. The parameter names have to be the same (including casing!).