sabato 4 ottobre 2014

Windows 8.1 update doesn't appear in the store

I lost a lot of time trying to understand why on some windows 8 installation the 8.1 updtate didn't appear. There are multiple reasons why this could happen. But I find I nice and automatic way to detect what the issue is, there a tool from microsoft called "Windows 8.1 Update troubleshooter" that analyze the pc and tell you why it is not appearing. Here the link : Download it and run it, then follow the instructions, at the end it should say you WHY you don't see the update. Digger

giovedì 3 luglio 2014

ASUS Memo Pad 8 USB Drivers (Android development , ADB)

Hi all,
if you are trying to develop using a Windows pc connected to a ASUS Memo Pad 8 and like me have problems because ADB doesn't see the device (adb devices return empty list), try to go to device manager and check how many devices you see related to the tablet.
I had 2 :

1.KOOL (microsoft drivers)
2.Another one (I don't remember the name, could be KOOL again) with an exclamation point

The first (kool) it seems it doesn't matter, I had the driver running but ADB was not working.
The problem is the second one.

After many tries I discovered that the correct drivers are (incredibly) automatically loaded by windows online !
Exactly, right click, update software driver, search online and you are done.

I lost a lot of time because it was not working, simply because my Windows update service was disabled :(
Once enabled I solved the issue.

In case the online update is not working for you, I copied the driver folder downloaded by windows for you, please take note it's for windows 7 64bits (maybe it also works for other 64bit W version, Vista and 8 but I dind't tested so at your own risk)

Uncompress it somewhere, then go in device manager, right click on the device with the exclamation point, update drivers, search the driver in the computer, browse to the folder where you uncompressed the file and you should be ok

sabato 10 maggio 2014

Windows 2012 CORE add minimal GUI (management interface)

Hi all,
Windows 2012 permits us to switch between GUI and CORE version of the operating system.
Core is good due to lower resource usage, GUI is good because you don't need to remember a lot of powershell commands to administer the server.

There is also another configuration in the middle, the minimal graphical interface, I mean , server manager for example, but without "explorer" and Internet Explorer...

So in this post we will se how to start from a W2012 CORE installation and add the minimal GUI.

1. insert the W2012 installation CD, let's say in the D: drive
2. check wich index to use from the install.wim file from the cdrom:

dism /get-wiminfo /wimfile:d:\sources\install.wim

this will return a list of w2012 images version available in the wim file, ordered by "index".
We need to find the gui versions (the one without the core label) :

In this case for example I can use the index=2, server standard

3. we need to mount the image from index 2 just found to local disk, let's say to a new folder called c:\mount

md c:\mount
dism /mount-wim /wimfile:d:\source\install.wim /index:2 /mountdir:c:\mount /readonly

4. now we have in c:\mount the windows 2012 installation files available, we can go on adding the gui


Install-WindowsFeature Server-Gui-Mgmt-Infra –Source c:\mountdir\windows\winsxs

in the end you'll be required to reboot the machine (you could add -restart to the command above if you are ok with an automatic restart )

After the reboot and the login what you'll find will be a command prompt and server manager automatically opened and ready to be used:

mercoledì 9 aprile 2014

Create Hotspot for Android devices from Windows 7

I tried to create an adhoc wireless lan on my W7 to be used by my Android device, but I discoverd it was not able to connect to it, while other W7 machine was able..

Searching in internet I discovered this is a known issue.

But there is another way of creating a wifi connection to be used as hotspot:

create the network:
netsh wlan set hostednetwork mode=allow ssid=forandroid key=12345678

this created a new network in the control panel where the device name is something like
Microsoft Virtual WiFi Miniport Adapter

remeber it in case you need to share for example connections or create bridge.

start it:
netsh wlan start hostednetwork

from now on you would be able to connect to the "forandroid" network using password "12345678".
Probably this connection will be good also for iPhone and other devices but I didn't test it.

From the next reboot the network should be still there, you would just need to start it with the last command

if you are not able to configure it, try this command to check if your network device support hosted network:
netsh wlan show drivers

in the results search for "hosted network supported : yes/no"
if you have a "no" probably you'll not be able to configure it


lunedì 7 aprile 2014

VB.NET ESC button to close Form

It happened today that I was trying to close a form in a VB.NET application using the ESC key.
Usually if you have a Cancel button on the form or similar you can simply set the CancelButton property of the form to that button, but in my case I didn't have that button on the form nor I want to add one.

I tried using the KeyDown event, but, strange, pressing ESC or every other key didn't fire the event routine.

As I didn't have time to investigate and find out why it happened I preferred to search in internet for some easy and fast solution, I find one post from Adam Butler that worked,
it was in C# so I had to simply translate in VB.NET

here's the code to put in your form code to be closed:

Protected Overrides Function ProcessCmdKey(ByRef msg As Message, ByVal keyData As Keys) As Boolean
        If (keyData = Keys.Escape) Then
            Return True
        End If

        Return MyBase.ProcessCmdKey(msg, keyData)
    End Function

giovedì 3 aprile 2014

BCDBOOT failure when attempting to copy boot files (and an operating system wasn't found

If you, like me, tried to deploy Windows8 (maybe for 7 is the same) using a wim image and then used the command

bcdboot c:\windows

and you got the message "failure when attempting to copy boot files" probably you are in the situation I was.
I tried to solve using this command:

bcdboot c:\windows /s s:

(where S: is the small system partition) and apparently with success, but after rebooting the machine you got:

An operating system wasn't found. Try disconnecting any drives that don't contain any operating system.

after many unsuccesful test and many investigation, I arrived to the conclusion the issue is related to the UEFI support of the machine (also if when starting, it appears to be a normal BIOS)

so I solved the issue with the command :

bcdboot c:\windows /s s: /f ALL

that ALL means copy both the BIOS and UEFI files to the disk

Remember S is the system partition, not the partition containing windows files

mercoledì 5 marzo 2014

Origin login window not showing

Today I was trying to run Battlefield 3 but the only thing obtained was the small Origin icon in the bar and in the hidden icons area.

So I went to the log path to see what was going on :


In there all was looking fine until the last few lines:

  29     mar 5 12:16:15.851  Event     Origin::Client::LoginViewController::loadLoginPage                          6720      loadLoginPage[]
  30     mar 5 12:16:15.855  Event     Origin::Client::LoginViewController::validateOfflineWebApplicationCache     6720      Web application cache path: C:/Users/XXXXXX/AppData/Local/Origin/Origin
  31     mar 5 12:16:15.861  Event     Origin::Client::LoginViewController::show                                   6720      Show login window
  32     mar 5 12:16:17.103  Event     Origin::Client::LoginViewController::onUrlChanged                           6720      onUrlChanged: url = []

It seems to say something like "I'm showing the login window" ... unfortunately the login window is not visible so what's going on? Then an idea came in my mind... maybe some issue with the video card? with the drivers? with the screen resolution or something like that? Well, some investigation and I found the problem:

The desktop screen COLOR DEPTH! incredible uh?

first close origin from the icon, right click, close, then :

1. right click on the desktop, Screen resolution
2. click link "advanced settings"
3. click the button "list all modes" (don't know exactly the text, I'm translating from my language)
4. be sure to select a resolution with 16.8 million colors (32bit), click OK, APPLY, OK

Try to start battlefield (or Origin alone) again and see if solved.

Remeber this is only one of the possible issue Origin has to start, there are a lot , including firewall issues, antivirus issues and others.