Category Archives: Information Technology

Windows 10 Keeping Boot Up All the Time

Challenges

The machine is an Apple iMac and utilised bootcamp for running Windows 10. The machine has been tested and deployed for almost 1 month and suddenly the machine always keeping in reboot state and restore all the time.

Solution

After setting up to make the machine to have the small memory dump and no restart, the initial finding that it’s something to do with keyagent.sys. This particular driver is relating on Apple in general. After back and forth to Apple and Apple basically saying that because they only support up to installing the Bootcamp and soon after that it’s not their responsible and it needs to go Microsoft Support instead.

Eventually the machine gets redo the Bootcamp from beginning. At this stage, accidentally noticed when you do the Windows Updates, there is a driver that needs to be installed automatically (Intel Display Pro). Soon installing this driver, the machine went black and restart and trying to restore again so it’s similar symptom !!!

End up there is a configuration apparently from Windows 10 to NOT to install driver automatically (under System > Advanced System Setting > Hardware tab > Device Installation Settings > No > Never install driver software from Windows Updates) but in Windows Updates item stil; showing the Intel Driver Display Pro plus the rest of Windows KBs to be downloaded/installed. So we need to reset this Windows Updates component and found away to do this via http://www.thewindowsclub.com/reset-windows-update-to-default and after couple reboots and the driver is gone.

Environment

  • Apple iMac
  • Microsoft Windows 10 Home

Challenges in Deploying App via Git/BitBucket or manually to Azure/DigitalOcean

Git Bash

  • Change the location of the WAMP directory. By default goes to [username@machinename] directory and if you are running WAMP the folder is supposed to be pointed to C:\wamp\www
cd /c/wamp/www
  • Command to undo git init
rm -rf .git
  • Commands  to add and commit the additional changes, and then push the changes to the remote repository:
git add index.html 
git commit -m "Celebration" 
git push azure master

 

DigitalOcean

 

  • When setting up Laravel web application, the main page is loading as HTTP 500 Error, to find out is to check the Apache log.

The Apache’s log for Ubuntu is located under:

/var/log/apache2/error.log

 

  • The Welcome page is up but the rest of the routing is not working. Made some adjustments on Apache: 

Enable mod_rewrite on the apache server:

sudo a2enmod rewrite

Edit /etc/apache2/apache2.conf, changing the “AllowOverride” directive for the /var/www directory (which is my main document root):

AllowOverride All

Then restart the Apache server:

sudo service apache2 restart

 

Useful links

Troubleshooting on Legacy Survey App running on ASP.NET 2.0

We built this legacy application back in 2007 and have a major upgrade on 2009 and been running since then but then there is no much activity since 2014. Then reassure-ct again in late 2015.

Couple findings

  • Error on the session

This is a bit shock cause .cs file is never being change since 2009 !!!

Solution: Change the code accordingly to handle the missing handling of Session.

Find another one which is relating on Debug mode. Set: <compilation debug=”false”> in Web.Config. There is a possibility that there is a bug previously and didn’t set back into False.

http://blogs.msdn.com/b/prashant_upadhyay/archive/2011/07/15/pros-and-cons-of-using-debug-true-in-asp-net-applications-in-production-environment.aspx

  • Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

Turn out that the database server is registered under web.config still using the new production server. Need to change to a new server.

  • The application message came up: “You have a duplicate in MostLeast Preferred section. The option only can be used once of those questions. Please re-select it again.” Check the answer in the application and no duplicate answer.

Turn out that the actual matrix answer records in the database table has a duplicate for that particular question. Looks like entering twice. Not sure causing this at this stage. However by removing the duplicated entries, it solve the problem.

 

Exploring Dell iDrac

Challenges

  • Certificates error when launching Virtual Console in Internet Explorer and having a white window/pop-up instead
    • The solution is to  upgrade the latest firmware for iDrac when having down time on the server or alternatively just use Firefox browser instead and this will launch Java Web Console instead. This solution is working well.

Exploring Hololens

Inspired Hololens projects

Microsoft HoloLens: Partner Spotlight with Trimble – https://youtu.be/kXVW4sUsh3A

Microsoft HoloLens: Partner Spotlight with Volvo Cars – https://www.youtube.com/watch?v=DilzwF90vec&feature=youtu.be

Microsoft HoloLens: Partner Spotlight with Case Western Reserve University – https://www.youtube.com/watch?v=SKpKlh1-en0&feature=youtu.be

Microsoft HoloLens: Partner Spotlight with Autodesk Fusion 360 – https://www.youtube.com/watch?v=Hx6biWE2VsM&feature=youtu.be

The evolution of Microsoft’s HoloLens – https://www.youtube.com/watch?v=3oXEY1J7XxA&feature=youtu.be

Resources

Hololens development videos, documents, tools and many more – https://channel9.msdn.com/coding4fun/kinect/HoloLens-Development-Videos-Docs-Tools-and-more 

MVA Building Windows 10 Games with unity 5 –https://mva.microsoft.com/en-US/training-courses/building-windows-10-games-with-unity-5-12572

Exploring Internet of Things (IoT) and Machine Learning

Predictive Maintenance Solution

Creating a solution will result in the following Azure services being provisioned:

  • Azure AD (1 Basic)
  • Azure IoT Hub (1 S2 Standard)
  • Azure Event Hub (1 Basic)
  • Azure Storage (2 GRS Standard)
  • Azure Stream Analytics (1 Streaming unit)
  • Azure App Services (2 Standard)
  • Azure Machine Learning Workspace (1)
Remote Monitoring Solution

Creating a solution will result in the following Azure services being provisioned:

  • Azure IoT Hub (1 high-frequency unit)
  • Azure Stream Analytics (3 streaming units)
  • Azure DocumentDB (1 S2 instance)
  • Azure Storage (1 GRS standard, 1 LRS standard, 1 RA-GRS standard)
  • Azure App Services (2 S1 instances, 2 P1 instances)
  • Azure Event Hub (1 basic throughput unit)

Resources

Internet of Things in General

Machine Learning

Machine Learning Tutorial: Create first experiment in Azure Machine Learning – https://azure.microsoft.com/en-us/documentation/articles/machine-learning-create-experiment/

Videos

The Microsoft Cloud Platform for Developers (Glukose/heart rate/stress app monitoring app) – https://channel9.msdn.com/Events/Visual-Studio/Connect-event-2015/012
Harness Predictive Customer Churn Models with Cortana Analytics Suite – https://channel9.msdn.com/blogs/Cloud-and-Enterprise-Premium/Harness-Predictive-Customer-Churn-Models-with-Cortana-Analytics-Suite