Internet wifi drops/disconnects. Connected to wifi but no internet.

Windows 10. Broadcom bcm94313hmgb. | 15-07-2016

After migrating to Windows 10 from 7 I had Wi-Fi internet issue. After some time (e.g., 5 minutes) my WiFi connection was reporting "No Internet". Reconnecting manually to the WiFi was fixing the issue. After digging some time in the internet I found out that this has something to do with IPv6 address assignment. If you don't need it you can disable it using the "Disable IPv6" tool from microsoft site.

Mirror on my site in case mentioned site is down: download.

People also reports that in some cases that helped to solve Ethernet issues in Windows 10.

Additionally I have installed the newest Broadcom drivers I could find for my bcm94313hmgb chip. It was broadcom_bcm_5.10.97.7 from this site: Broadcom BCM943XX/BCM43XX WLAN Driver 5.10.91.4 for Vista

Audio In Motion (AIM) SC808 - No sound problem

AIM SC808 | 10-01-2016

If you want to use SC808's daughter board (or HD Audio connection probably too) you have to disable integrated audio card in BIOS! Otherwise Windows doesn't install drivers for the daughter board (it is visible as a separate card in Windows Sound panel).

Convert any TypeScript value to Enum string value

VS 2013 Update 4 | 20-12-2014

Enum conversions in TypeScript are a bit tricky. You can't be sure what will you receive when converting from your Enum. Let's take following enum as an example:
enum Categories {
drawing = 1,
painting
}
When you take a look at the output of below conversions:
var str: string = "painting";
var num: number = 2;
var numStr: string = "2";
var category: Categories = 2;

console.log(Categories[str]);
console.log(Categories[num]);
console.log(Categories[numStr]); //The most interesting case
console.log(Categories[category]);

Enum Conversion Output

You will notice that generally converting from number gives a string and converting from string gives... number or string.

I was trying to solve a scenario where I had an unknown value (enum number value as a string or as a number or just an enum string value but I didn't know which one at the moment) and I needed to map it to the enum string value. I end up with below function. It's pretty generic because it can map any value to any enum.
function varToEnumStringVal(value: any, enumerator: any): string {
var en: { [index: string]: any } = enumerator;

if (!isNaN(parseInt(value)))
return en[value];

var num = en[value];

return en[num];
}
Usage:
var str: string = "painting";
var num: number = 2;
var numStr: string = "2";
var category: Categories = 2;

console.log(varToEnumStringVal(str, Categories));
console.log(varToEnumStringVal(num, Categories));
console.log(varToEnumStringVal(numStr, Categories));
console.log(varToEnumStringVal(category, Categories));
And now you can be sure that you will receive enum string value:

Enum Function Conversion Output

Catalyst Control Centre: Host application has stopped working

AMD/ATI drivers 12.10 & 13.12 | 06-01-2014

I had above problem with Catalyst Control Centre after downgrading AMD/ATI drivers from 13.12 version to 12.10 version. I have solved this by unhiding my user folder in C:\Users.
  1. Go to C:\Users and right click your user's folder. Pick “Properties”.

  2. Alter

  3. Check the “Hidden” box and click “Apply”. When prompted choose “Apply changes to this folder, subfolders and files”.
  4. After this operation is completed uncheck the “Hidden” box and again click “Apply”.
After it is done you should be able to properly launch the Catalyst Control Center.

If you, after downgrading your drivers, also have problems with running games and/or steam you can see this post.

Problems after downgrading AMD/ATI radeon drivers

Win7. Amd/Ati drivers 12.10 & 13.12 | 06-01-2014

I was searching the Internet for information why Mechwarrior Online does not use my Radeon 6950 in 100%. I found information that downgrading amd/ati radeon drivers to 12.10 version (I had 13.12 ver) may help. So I uninstalled 13.12 from “Add or Remove programs” then downloaded 12.10 version and installed it. Unfortunately that operation totally destabilized my PC... After long investigation I found that this downgrade had broken my Direct3D. But the symptoms was really strange:
  • While launching steam there was “Steam client bootstrapper has stopped working” error
  • I couldn't start Mechwarrior Online. The launcher was starting but after clicking “Play” nothing was happening.
  • Launching “dxdiag” was giving “DxDiag has detected that there might have been a problem accessing Direct3D” error.
I realized that this last one is a major issue. Uncle Google said that there is no option to reinstall DirectX neither the Direct3D. Only tips was to update them to the newest version. Unfortunately I had the newest version so the installer didn't want to update a thing. Reinstalling drivers and many other things didn't help neither.

Workaround

The funny thing is that there is a workaraound for this problem. I could run everything properly in “Windows 7 compatibility mode” plus “Run as administrator”. Steam, Mechwarrior Online, everything was working.

Solution

The only thing that really solved the issue was Display Driver Uninstaller.
  1. Download DDU (I used 10.0 version from here)
  2. Uninstall the AMD/ATI radeon drivers through the “Add or remove programs”
  3. Restart your system into safe mode
  4. Use the downloaded DDU to clear your system from any AMD/ATI files
After restart you should be able to run DxDiag without any errors. That means the problem is solved. You can now safely install any version of AMD/ATI drivers.

If you, after downgrading your drivers, also have problems with running Catalyst Control Centre you can see this post.

Downgrade and root Asus Padfone without loosing applications data

4.1.1 Jelly Bean | 06-10-2013

I have recently managed to root my Padfone 1 (prime) with JB without losing apps data and apps settings. I want to share how I have done that and which guides I have used.

Unfortunately there is no possibility to root Asus JB android version so you have to downgrade to Ice Cream Sandwich (ICS) and this cause losing all data stored in Padfone's internal memory. Luckily there is great App Backup preinstalled by Asus in Padfone.
Note: If you had already rooted your PadFone on ICS but lost your root after update to JB then there's an option to restore it. See this thenrz's guide on xda-developers.

  1. First of all backup all photos, music, videos and other personal files stored in padfone's internal memory. SD Card will stay untouched so you can copy your data on it but it is always safer to copy the backup to your PC.
  2. Then we can backup applications. Run App Backup on Padfone. In the top right corner tap "Data only" and choose "Data and APP" option. This is very important to switch this option. If you don't do that then you will have to install all applications manually after rooting. Select all applications you want to backup. In the left bottom corner press the circular arrow. Make sure that "Copy backup file to" is set to some place on your MicroSD and press ok. After the backup process is completed you may want to copy the backup file to your PC to make sure it is safe.
  3. We are now ready to downgrade to ICS. To do this please follow this Marc Schattorie's guide on padfoneclub. I have used international WW_PadFone-user-9.18.8.41_WW_9.1.15.zip from "Download official full firmware packages here (Removed from the Asus website)" section. Put it into SD Card and follow "How to install?" steps.

    How to install?
    First, make sure you have the firmware (*.zip) file in the root of an external SD card.
    Also, make sure that the Padfone is fully charged, and connected to a power source.
    If you're downgrading or changing the firmware region by using a full firmware package, we would recommend using the wipe feature before you apply the update.

    1. Undock the Padfone.
    2. Power off the Padfone.
    3. Hold down the volume down button, keep holding it, and press the power button. Now you will enter the first menu.
    4. Press the power button to enter "download mode".
    5. Select the second option to install from an external SD card.
    6. Wait for the installation to complete, depending on the update, your device will reboot automatically, or you
    have to select the reboot option manually when it appears.
  4. When we are on ICS we can use this sparkym3's guide on xda-developers to obtain the root.
  5. After rooting we must save the root that we could restore it after updating to the newest android version. To do this we will use Voodoo OTA Rootkeeper application. Download it from Google Play store and run it. To save the root tap the "Protect root" button.
  6. Now we can use standard android update system to update it to the newest version. Go to settings -> about padfone -> system firmware update and tap the "Check Update" button. Android should find and proceed with the newest update.
  7. Now the last two things. After android is again updated to JB we must use the OTA Rootkeeper to restore the root. Lunch it and tap the "Restore root" button. Restart your Padfone and again run OTA Rootkeeper. You should now see all status positions checked. You have root on JB!
  8. Go to App Backup. In the top left corner tap "Backup List" and choose "Restore List" option. Tap on your backup and tap OK. After App Backup finishes the restore process you should see all your applications with all your settings and data.

Hide/Remove SD Card Icon From Statusbar - Asus PadFone

Android 4 | 21-05-2013

[Deprecated] The newest update to Android 4.1.1 (PadFone-10.2.4.1-0) lets user to easily remove SD card icon from status bar.

Android 4 stock ROM for Asus PadFone puts permanent SD card icon into status bar. You can't turn it off and if accidentally clicked Android unmounts the sd card...

Alter

I have found workaround for unrooted phones to disable sd card notification till next system reboot:

1. Expand status bar

Alter

2. Hold down your finger on SD Card notification until "App info" option appear. Click it.

Alter

3. You will see informations about "System UI" application. Tap "Force Stop" button to shutdown this app. Get back to home screen.

Alter

4. Here you are. Notification should disappear till next system restart.

Alter

If you have rooted your android you can try uninstalling "System UI" application but I don't know how this will impact on system stability.

MVC. Return image dynamically drawn in controller.

MVC 3 | 10-08-2012

I wasted some time for this so I decided to post the solution. If you have problem returning dynamically drawn image from controller below informations may help.

The task looks easy and should be achieved with this code:
public ActionResult Hello(string text)
{
//Create new image
Image img = new Bitmap(100, 50);
Graphics g = Graphics.FromImage(img);

//Do some drawing
Font font = new Font("Arial", 24);
PointF drawingPoint = new PointF(10, 10);

g.DrawString(text, font, Brushes.Black, drawingPoint);

//Return Image
MemoryStream ms = new MemoryStream();
img.Save(ms, ImageFormat.Png);

return new FileStreamResult(ms, "image/png");
}
Unfortunately this won't work. At least not in .Net 4.0.
Perceptive person will notice that after writing image to the stream it position property isn't at the beginning and FileStreamResult apparently can't deal with this.

Alter

After reseting stream position everything works well (bold line).
public ActionResult Hello(string text)
{
//Create new image
Image img = new Bitmap(100, 50);
Graphics g = Graphics.FromImage(img);

//Do some drawing
Font font = new Font("Arial", 24);
PointF drawingPoint = new PointF(10, 10);

g.DrawString(text, font, Brushes.Black, drawingPoint);

//Return Image
MemoryStream ms = new MemoryStream();
img.Save(ms, ImageFormat.Png);

ms.Position = 0;

return new FileStreamResult(ms, "image/png");
}
Additionally the view which asynchronously (but without ajax) retrieve image from our controller:
<div id="divResult"></div>

<input type="text" id="txtText" value="Hello" />

<input type="button" name="submit" onclick="javascript:Hello();" value="Draw" />

<script type="text/javascript">

function Hello()
{
var link = '@Url.Content("~/Controller/Hello")';

var txt = document.getElementById('txtText').value;

link += '?';
link += 'text=' + txt;

document.getElementById('divResult').innerHTML = '<img src="' + link + '" alt="' + txt+ '" />';

return false;
}

</script>

MioPocket setup freezes

MP 4.0 | 25-07-2012

If You can't install MioPocket on your device because after clicking Run MioPocket it stops and nothing happens this is what you should do:
  1. Go to SDcard\MioAutoRun\Scripts

  2. Edit Unlock.mscr with notepad

  3. Find line containing If(WndExists("MainShell"))

  4. Comment whole IF block. That mean change this:

    If(WndExists("MainShell"))
    #Add message to log
    WriteFile(InstallLogFile, "Unlock.mscr: Hiding the main menu...^NL^", TRUE)

    Minimize("MainShell")
    Run(ProgramsFolder\"TroNik\WindowHide.exe", "MainShell")
    EndIf

    to this:

    #If(WndExists("MainShell"))
    # #Add message to log
    # WriteFile(InstallLogFile, "Unlock.mscr: Hiding the main menu...^NL^", TRUE)

    # Minimize("MainShell")
    # Run(ProgramsFolder\"TroNik\WindowHide.exe", "MainShell")
    #EndIf

  5. Repeat installation steps.

If problem still occurs you should see what's inside install log: \MioAutoRun\Backup\InstallLog.txt

Change Metro UI Language in Windows 8

Windows 8 CP | 12-03-2012

Some of your Metro Applications are in German? It's because your default language isn't supported and you have deleted all other languages from your system. In that case Windows 8 Consumer Preview will choose German language as default for Metro apps. To choose other, for example english, you have to add that language. Run Metro and type "add language". Choose language you want and add it.
1 2 NEXT >>