Thursday, October 23, 2014

Hewlett Packard Envy M6 laptop HyperV problem with WIFI (re-visited)

I tried again last week, and turned off WiFi and then tried turning back on HyperV. Blue screen again.
Fortunately my USB hard drive was lying nearby and I plugged that in as a recovery device. It isn't, but the shock of having to deal with this lie forced Windows 8.1 into offering me a true reboot instead of a 're-fresh' and I rebooted into ROM and I was able to turn off Hyper-V there and boot into Windows without having to re-install Windows from scratch again.

Monday, October 20, 2014

Project Euler cheats: problem 1

The joys of self-reference:
 
http://siletum.blogspot.ie/2009/07/joys-of-project-euler.html

and repeating one-self. Five years on, I have decided to have a run again at them, from the start this time using Ruby. From the command-line too. The project Euler site has moved on as well.

https://projecteuler.net/problem=1
"If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000."

1. A brute force method seems the most straightforward

#!/usr/bin/env ruby
sum=0
for i in 1..9
# use modulo – if no remainder then it can be divided by the number

if i % 3 == 0 || i % 5 == 0
sum += i
end
end
puts "sum of multiples of 3 or 5 below 10 is #{sum}"


the first time I ran this I used 1..10 and got 33 as the answer for below 10, so should have used 9

Full program, just changing up to 999 and 1000 respectively:

#!/usr/bin/env ruby
sum=0
for i in 1..999
# use modulo – if no remainder then it can be divided by the number

if i % 3 == 0 || i % 5 == 0
sum += i
end
end
puts "sum of multiples of 3 or 5 below 1000 is #{sum}"


This is still a pretty crappy program, but the two reasons for it are to show how fast you can get going with a Project Euler solution and how relatively simple it is to get started with the Ruby language. This was actually my first program in Ruby, so excuse the rough edges. In subsequent problems I will try to use more of the features of the language and be less literal.

Current correct answer is supposed to be: 233168

Researches: Modulo, logical OR, Ruby # Comment, Ruby end keyword







Saturday, May 3, 2014

Hewlett Packard Envy M6 laptop HyperV problem with WIFI

Just in case, it might promote the links the have them here -- they were hard enough to find

http://h30434.www3.hp.com/t5/Desktop-Lockups-Freezes-Hangs/Cannot-boot-if-HP-ENVY-Bios-Virtualization-enabled-for-Win8/td-p/2006815/page/7


http://superuser.com/questions/731643/why-does-activating-hyper-v-cause-windows-8-1-enterprise-to-stop-booting

Wednesday, April 30, 2014

CCT: Role instances did not start within the time allowed

There is a very recent thread on MSDN which I couldnt post to with a work-around,
and I have since forgotten how i worked around, but the following links might be of assistance



http://blogs.msdn.com/b/jnak/archive/2008/10/28/asp-net-mvc-projects-running-on-windows-azure.aspx


http://blogs.msdn.com/b/kwill/archive/2013/08/09/windows-azure-paas-compute-diagnostics-data.aspx

Her best post ever

Interesting and scientific business case study

http://kriswrites.com/2013/05/15/the-business-rusch-shifting-sands/

Saturday, April 26, 2014

Great article on HyperV crash

http://www.mattwrock.com/post/2013/08/22/Understanding-networking-options-with-a-wireless-Hyper-V-host-and-solving-Catastrophic-failure-%280x8000FFFF%29.aspx

Deja Groundhog -- Win 8.1 Pro BSODs again

Less than 24 hours later, same thing happened again. Got to Windows 8.1 Pro, enabled HyperV, checked to see if I had the latest video drivers that Windows was complaining about, went off to do something else, and came back to see the Window 8 version of the Blue Screen Of Death. Starting to get familiar.

Third time, I was a bit more careful.

I concentrated on applying the automatic Windows 8 updates, then upgraded to Window 8 Professional, then enabled Hyper-V. Bam. Fortunately, this time a restore only went back to the point before the HyperV install and not back all the way to the factory settings, which is something to be pleased about, but this is the second computer I have had to remove HyperV from. This is hardly acceptable -- I never liked the idea of hyperV, but I had made the effort to create all my virtual machines for HyperV, and now here I am with two computers that crash if I try to use HyperV, and an external drive full of virtual images that I might not be able to use with other virtualisers?
Come on Microsoft. And I only just renewed my MSDN subscription. For shame.

And this nonsense about updating your drivers and it will all be OK. Tosh.

Tuesday, April 22, 2014

Windows 8.1 crash and refresh to Windows 8 -- no restore points?

I upgraded to Windows 8.1 to beat the rush, and all seemed to go without incident until yesterday. I allowed the automatic updates to run, but then when I tried to Hibernate my laptop and then re-activate it, everything froze up and Windows corrupted and I chose to Refresh.
It Refreshed all the way back to what must have been Win 8 Home Premium or whatever came from the shop. Yoish. No automatic restore points or anything. I didn't realise Win 8 was so lame. And now I have a peculiar situation where I may have used the wrong licence key. Unmixing this situation will be interesting too...

Windows 8 Profession to Windows 8.1 upgrade E-Pick Fail

Part 2 of a rant -- this is the second time I upgraded to Win 8.1, but the first time I noticed that it was merely "Windows 8.1"  Whatever the hell that might be and not Window 8.1 Professional. I had to choose "Add extra Windows Features and put in my license number before it woud upgrade properly.
What the Foe?