UWP Developing: Don’t forget the firewall on IoT devices

After I deploy my UDP based application to Raspberry Pi 2 running Windows IoT 10.0.10586, this application receives nothing, just like running in a normal Windows computer.

I guess that maybe something related to firewall, but:
1 There is no article related to target that. As the time I’m writing this post, googling “Windows IoT firewall” returns nothing related.
2 There is no page for firewall configuration in Windows IoT utilities site.

Fortunately, a test proved that there is a built in Windows IoT.
By using PowerShell connection, I send the netsh command to create an exception of firewall. It accepted and the my application started to receive package after then.

Related command for reference:
netsh advfirewall firewall add rule name=”A name for this exception” dir=in action=allow protocol=UDP localport=12345

Hope this helps.

UWP Developing: Local network protocal stack issue

I’m working on developing a Universal Windows App (Windows 10 IoT) recently. My app includes a UDP server for receiving packages.

The issue I found is:
When the UWP running on local computer, the datagram sent by local console application cannot be received.

Normally, while developing a socket based network application, another application for making and sending test packages should be prepared. The problem is, for testing UWP application, either the tester should be prepared as UWP application, or this tester can only be used on another computer laying on the same network.

Warning: Do not apply MS16-004 / KB3114503 on SharePoint Server 2013

There is something wrong within this packaged launched and pushed by WSUS January 2016. Microsoft keeps telling us M$ has fired all testers, or should be.

If you have installed this patch, all lists from all SharePoint sites will suck like this:


Lots of errors repeatly: typeError: Cannot read property ‘replace’ of undefined

The quick fix is remove the edit menu. And the final solution is applying January 2016 CU.

No matter MS16-004 / KB3114503 is installed or not, you may want to install the January 2016 CU. Therefore, it’s not necessary to apply this package IMHO.

Best Practice: Move Windows Server VM from vSphere to SCVMM (2012 R2)

Due to the removal of P2V wizard in SCVMM 2012 R2, we need to to this migration manually.

In this scenario, we will move a Windows Server VM hosted in vSphere/ESXi 6 to SCVMM/Hyper-V 2012 R2.
We need:

  • Administrator account with password of the VM to be moved.
  • A working SCVMM 2012 R2 with Hyper-V, and the client tool for management.
  • A working vSphere 6 with ESXi, and the client tool for management.
  • A network shared folder which can be accessed with read-write permission by VM, Hyper-V (optional) and the computer which the client tool of SCVMM located.

Here are the steps:

  1. Download the tool disk2vhd from https://technet.microsoft.com/en-us/sysinternals/ee656415.aspx and decompress it into the network shared folder.
  2. Log into the VM, check these settings:
    IP Address. If it’s set to automatic, make announce to your network admin to either set the VM to fixed IP address, or rebinding the MAC address later.

    • System CPU and memory.
    • OS Release name and bit wide, e.g. Windows Server 2008 Standard 32bit.
    • Hard disks and partitions structure.
  3. Run the disk2vhd at the network shared folder from VM. I suggest you not to copy it to the VM. All partitions which belong to the same hard disk should be exported to the same file at the SAME time. And all partitions from different disk should NOT be in the same exported file.
    For the VM running Windows Server 2003 (R2 included, x86 x64 included), do NOT check the option for virtual-pc. It will prevent the success from installing Hyper-V integration services.
    This step may take a while.
  4. Create a new VM in SCVMM by using the correct name, CPU, memory, OS release name. For my test, I cannot create a VM without hard drive. So just delete it after the creating finished.
  5. Copy the file(s) created from step 3 into the folder of the new VM.
    Due to the Windows bug of calculating free space of the host drive instead of the cluster volume disk, you may be prompted with an error said no enough disk space left for the VHD files.
    In this case, you need to execute the copy from Hyper-V, not form another computer. If your Hyper-V is installed without the full OS, aka Windows Hyper-V Server, you may have to do this by using cmd. The command for mapping a network shared folder as a driver is:

    net use x: \\path\to\your\shared\folder

    If you need to specify the account for accessing that folder:

    net use x: \\path\to\your\shared\folder password /User:domain\account

    After VHD files copying, use this to unmap the folder:

    net use x: /d

  6. Adding the VHD files to the new created VM by correct sequence.
  7. Shutdown the old VM and boot the new one.
  8. Log into the new VM, uninstall the VMware tools and shutdown the OS. If your VM is using Windows Server 2003 and you are using Remote Desktop to access SCVMM, now you have to use keyboard to finish this job.
  9. Install Hyper-V integration services. For Windows Server 2012 and above, it’s optional but recommended. For Windows 2008 R2 and previous, it’s necessary.
  10. Start the VM again and set the IP addresses of network interface cards.
  11. Mark or remove the old VM for avoiding conflicts.

Hope this work-though helps.

Removing preinstalled apps in Windows 10

In Windows 10 releases, lots of apps are pre-installed. Different than in Windows 8/8.1, most of these apps cannot be uninstalled by GUI.
If you want to remove them, you still can do that by using powershell.

Steps:
1 Start powershell with administrator privilege.

2 Enter these 2 commands to prepare the workspace.

Import-Module Appx
Import-Module Dism

3 Enter this command to show all installed package.

Get-AppxPackage -AllUser | Where PublisherId -eq 8wekyb3d8bbwe | Format-List -Property PackageFullName,PackageUserInformation

You will see some apps listed. The packages with status Installed are ready for your further removal.

4 Use this command to remove one app.

Remove-AppxPackage -Package packagefullname

The packagefullname is the text listed by step 3. Usually, it starts with Microsoft and end with 8wekyb3d8bbwe.
You need to repeat the step 4 for each app you want to remove.

Not all apps, Microsoft Edge for example, can be removed but most can.

TFS 2015 Upgrading

There are 2 things you should have in mind about TFS 2015 Upgrading.

1 The database upgrading process will cost much more time than upgrading among Update package of TFS 2013.

2 The dedicated SharePoint integration package is removed and M$ did a shit test again. If you, like me, installed TFS on a server other than SharePoint cluster, now you have to install the whole TFS on all SharePoint servers. After the installation, the upgrading wizard will be popped up but it will failed due to no database can be found. You have to choose to install SharePoint integration role yourself. And after that, you will know that TFS SharePoint integration package 2013 will NOT and NOT ABLE to be removed, lol, just another piece of crap.

[轉載]我害怕閱讀的人──簡媜

原文地址:http://etoe.tc.edu.tw/frs/dw/moid/4ef33d05f26d968c71000000/did/9619
地址來自Google搜索,介紹頁地址不詳。

我害怕閱讀的人 簡媜

不知何時開始,我害怕閱讀的人。
就像我們不知道冬天從哪天開始,只會感覺夜的黑越來越漫長。

我害怕閱讀的人。
一跟他們談話,我就像一個透明的人,蒼白的腦袋無法隱藏。

我所擁有的內涵是什麼?不就是人人能脫口而出,遊蕩在空氣中最通俗的認知嗎?
像心臟在身體的左邊。春天之後是夏天。美國總統是世界上最有權力的人。

但閱讀的人在知識裡遨遊,能從食譜論及管理學,八卦週刊講到社會趨勢,
甚至空中躍下的貓,都能讓他們對建築防震理論侃侃而談。

相較之下,我只是一台在MP3世代的錄音機;過氣、無法調整。
我最引以為傲的論述,恐怕只是他多年前書架上某本書裡的某段文字,
而且,還是不被螢光筆畫線註記的那一段。

我害怕閱讀的人。當他們閱讀時,臉就藏匿在書後面。
書一放下,就以貴族王者的形象在我面前閃耀。舉手投足都是自在風采。
讓我明瞭,閱讀不只是知識,更是魔力。

他們是懂美學的牛頓。懂人類學的梵谷。懂孫子兵法的甘地。
血液裡充滿答案,越來越少的問題能讓他們恐懼。
彷彿站在巨人的肩膀上,習慣俯視一切。那自信從容,是這世上最好看的一張臉。

我害怕閱讀的人。因為他們很幸運;當眾人擁抱孤獨、或被寂寞擁抱時,
他們的生命卻毫不封閉,不缺乏朋友的忠實、不缺少安慰者的溫柔,
甚至連互相較勁的對手都不至匱乏。
他們一翻開書,有時會因心有靈犀而大聲讚嘆,
有時又會因立場不同而陷入激辯,有時會獲得勸導或慰藉。

這一切毫無保留,又不帶條件,是帶親情的愛情,是熱戀中的友誼。
一本一本的書,就像一節節的脊椎,穩穩的支持著閱讀的人。
你看,書一打開,就成為一個擁抱的姿勢,
這一切,不正是我們畢生苦苦找尋的?

我害怕閱讀的人,他們總是不知足。
有人說,女人學會閱讀,世界上才冒出婦女問題,
也因為她們開始有了問題,女人更加讀書。
就連愛因斯坦;這個世界上智者中的最聰明者,臨終前都曾說:
我看我自己,就像一個在海邊玩耍的孩子,找到一塊光滑的小石頭,就覺得開心。
後來我才知道自己面對的,還有一片真理的大海,那沒有盡頭。

讀書人總是低頭看書,忙著澆灌自己的飢渴,他們讓自己是敞開的桶子,
隨時準備裝入更多、更多、更多。而我呢?手中抓住小石頭,只為了無聊地打水漂而已。

有個笑話這樣說:人每天早上起床,只要強迫自己吞一隻蟾蜍,
不管發生什麼,都不再害怕。我想,我快知道蟾蜍的味道。

我害怕閱讀的人。我祈禱他們永遠不知道我的不安,
免得他們會更輕易地擊垮我,甚至連打敗我的意願都沒有。

我如此害怕閱讀的人,因為他們的榜樣是偉人,就算做不到,
退一步也還是一個,我遠不及的成功者。

我害怕閱讀的人,他們知道「無知」在小孩身上才可愛,而我已經是一個成年的人。

我害怕閱讀的人,因為大家都喜歡有智慧的人。

我害怕閱讀的人,他們能避免我要經歷的失敗。

我害怕閱讀的人,他們懂得生命太短,人總是聰明得太遲。

我害怕閱讀的人,他們的一小時,就是我的一生。

我害怕閱讀的人,尤其是還在閱讀的人。