Archive for the ‘Windows’ Category

I recently deployed an Azure Cloud Service with Remote Desktop enabled. However, when I went to connect to it on port 3389, the server refused the connection. I remember there was something I had to do, but I had never written down the steps. So, here’s what you need to do, in case you’re looking 🙂

Note: I use Remote Desktop Connection Manager, a.k.a. RDCMan, also from Microsoft, instead of the standard RDC client. I feel it’s much better, more configurable, and great if you need to work with many remote desktops. I’ve love to know why they don’t include it in Windows!

Step 1: Find your Cloud Service and Slot in Azure Portal

In Azure, find your Cloud Service. Also select the slot to which you want to connect, such as Production or Staging.

Step 2: Select the Roles and Instances option

You’ll see it on the left.

Step 3: Choose the item to which you want to connect and click Connect

For example, your web role instance. This will download an .RDP file. You can double-click this file to connect. Ooh! Neat!

Step 4: If you’re using RDCMan…

To connect with RDCMan, you’ll need to grab the Cookie: something something something string out of the RDP file. Open it in Notepad++, or your text editor of choice, and grab that value. Ignore the s: text.

In RDCMan, for the VM, add the string under Connection Settings tab in the Load balance config textbox.

Step 5: You’re Connected!

Enjoy!

 

 

I’m continuing my resolution to record as many of my programming and technical presentations as possible. I recently spoke at the inaugural Indy.Code() conference. It was excellent, with an incredible speaker line-up. I hope they, too, post some of their presentations online!

Watch the Video on YouTube

From the synopsis:

Should you write your app “native”Âť or use a “cross-platform”Âť solution like React Native, Xamarin, or NativeScript? The new wave of native-cross-compiling solutions provide significant cost savings, code reuse opportunities, and lower technical debt. Does wholly native, per platform development, still play a role in future mobile development? Let’s discuss together.

In this presentation, we’ll discuss:

  • The growth of native, hybrid, and cross-platform mobile development solutions
  • Cost analysis of multiple native and cross-platform apps
  • Considerations for each native and cross-platform solution
  • Lessons learned

Slides are available here: https://t.co/5iLhEoEfen

If you have any questions, I’m happy to answer them! Please email me or ask on Twitter.

 

I recently purchased an LG UltraWide 21:9 display. Why an ultra-wide and not 4K? a) I write code for a living and this is a great way to get two windows full size side-by-side without an extra monitor. b) It was only $130 instead of $400 due to a Best Buy sale. Sold!

I get home, connect it to my Surface Book, and nothing works. The screen just blinks on and off, on and off, blinkety blink, blinkety blink. No Bueno. Changing the cable made the blinkety blink go away, but the display control panel would suggest trying different settings, and wouldn’t light things up.

My friend Shane recommended I get an Active MiniDP to HDMI adapter. So I bought one on Amazon. Still, I didn’t want to wait… that’s 2 days with Prime shipping, and not fast enough.

So, I looked into the MiniDP adapter I was using. I found out it only supports up to 1080P! Maybe it’s DP 1.1 or something. Whatever it is, it couldn’t support a 2560×1440 or thereabouts display.

Fry’s had the answer – I made sure I found a MiniDP to HDMI adapter that clearly stated it supports 4K and MiniDP 1.2. The particular product I purchased was the Cirago Mini DisplayPort to HDMI Display Adapter.

I got home and the adapter worked flawlessly.

I hope that helps anyone having a similar issue!

 

I’ve been underwhelmed by Microsoft’s response for documentation regarding SkyDrive and its inner workings. So, I’m on a mission to break things down. I’ll update this blog post as I find more information. As always, any info provided here is used at your own risk. I take no responsibility if you hose a system.

In case you want to see all the SkyDrive process settings:

C:\Users\<your account name>\AppData\Local\Microsoft\Windows\SkyDrive\settings

There are two files of interest:

global.ini and ClientPolicy.ini

There were some settings that surprised me in ClientPolicy.ini:

  • MaxFileSizeBytes = 2147483647 Is the 2 GB max file size mentioned on MSFT’s site? They should probably mention that, since all shipping systems are 64-bit and video files and ISOs can be pretty big.
    • Update 7-Jan-2015: It appears Microsoft has upped this to 10 terabytes.
  • Tier1MaxFileSizeBytes = 2147483647 These would be Microsoft’s Office file types
  • Tier1FileInclusionList = |doc|docm|docx|dot|dotm|dotx|odc|odp|ods|odt|pot|potm|potx|pps|ppsm|ppsx|ppt|pptm|pptx|rtf|vdw|vdx|vsd|vsdm|vsdx|vssm|vssx|vst|vstm|vstx|vsw|vsx|vtx|xla|xlam|xlm|xls|xlsb|xlsm|xlsx|xlt|xltm|xltx|xlw|
  • MaxItemsInOneFolder = 150000 I wonder if this caused my earlier sync problems, since I had more than 150K files in a folder, and then I deleted the folder. Maybe that messed up Microsoft’s storage system in the cloud? When I finally had a Microsoft technician look at my account, things magically started working a day later. I didn’t change anything, but what happened on their end?
  • MaxClientMBTransferredPerDay = 131072
    • Update 7-Jan-2015: It appears Microsoft has upped this to over 250000. Makes sense, given average home broadband speeds.
  • MaxClientRequestsPerDay = 500000 So what happens if you reach your limit?
  • NumberOfConcurrentUploads = 3 I’d rather have more, but it appears the next setting helps here, even though it’s not accessible via the SkyDrive app.
  • AllowUserOverrideOfConcurrentUploads = true
  • SyncTelemetryURL = http://wlepsi3.redmond.corp.microsoft.com/SyncDiag.ashx This one bothers me a bit. What is this URL tracking? And why isn’t it over SSL?
  • LowDiskSpaceLimitMB = 3072 If you want to override the low disk space limit… I’m going to try this on my Dell Venue Pro 8. Update: It worked! Yay!
    • Update 7-Jan-2015: It appears Microsoft has lowered this to 200MB. Much better for tablets! Of course, in the future, tablets will probably have 64GB, 128GB or more by default due to lowered storage costs.
  • AutomaticVerboseLoggingEnabled = true I wonder where the log file is. There’s one in this folder, but it’s used by the SkyDrive process. I’ll play with that in a VM so I don’t mess anything up Smile

I’m also curious as to why SkyDrive.exe can’t be opened in a decompiler. If I request it, the file system says the file doesn’t exist. Is c:\windows\system32\SkyDrive.exe simply a shim? Very interesting.

Breaking down the SkyDrive process, I found what appears to be additional command line parameters. I have not tested these as of yet.

/shutdown
/register
/unregister
/installperfcounters
/uninstallperfcounters
/background
/watson

Until next time… enjoy!

Best,

-Auri

In an earlier post, I pointed to permissions issues causing SkyDrive to stop syncing. I found another solution that also appears to have worked, causing SkyDrive to sync again. Try moving your SkyDrive folder to another location, such as another drive, an SD card you never remove, or other similar area. I suggest a permanent location, not one you unplug and might forget to re-attach Smile I don’t know how long my fix will last this time, but try it and let me know.

Here’s how you change locations:

1. In Windows Explorer, right-click SkyDrive and select Properties.

image

2. When SkyDrive Properties appears, select the Location tab and click Move.

image

Note: In my example, I’ve already moved the folder. In yours, you will probably see c:\Users\username\SkyDrive

3. Choose the folder to move your files to. I called mine Auri’s SkyDrive and put it on my M: drive. Make sure you have plenty of room for your files! This will not trigger a download of all your files. However, you want to have enough room that the copy of existing files doesn’t fail.

4. Click Apply and wait a while. The window may freeze while Windows does its work. On a side note, if any Microsoft engineers are listening, this would be a great place to enhance the user experience. For example, a please wait indicator.

5. Once Windows has copied all the files to the new location, wait a while for Windows to sync, maybe a day. By then, your files may be back in sync and all will be good in the world.

Good luck!

-Auri

I’ve spent the past few days using Dell’s solution for those who need a keyboard for their Venue Pro 8 tablet. It has come in handy when needing to write emails and edit documents. I have yet to write code with it, although I plan to soon. Unfortunately, while the keyboard and case match the Venue Pro 8 perfectly, it’s hard to recommend this accessory for medium to heavy duty work until Dell treats the keyboard with the attention to detail afforded its laptop-bound brethren.

Every time I use a compact keyboard I am reminded all designers of such keyboards must be sadists. They move keys around to obscenely hard to reach places. Sometimes they remove keys altogether, making the keyboard worthless. Dell’s Tablet Wireless Keyboard for their Venue 8 Pro is no exception. Take a gander at the photo below. Why does the keyboard need two Alt keys? Couldn’t that second Alt be used for the apostrophe, which is explicably a Function key combination? Why is the question mark key on the left, next to a full size shift key, when it could have been put in its normal position next to a smaller right shift key?

image

That’s not to say it’s all bad. Actually, the keyboard itself is quite good for short emails and corrections to documents. Expectations are usually low for compact keyboards, so this is better than some when it comes to comfort. I didn’t make many mistakes, although any time I needed certain punctuation I had to stop and think. It’s the ergonomic and functionality decisions, and aforementioned omissions, that make absolutely no sense. For example:

  • The keyboard has no backlight. If Microsoft can insert a backlight in a keyboard half as thin, why can’t Dell?
  • Two watch batteries are required. Yes, it comes with them, but those things are expensive. Why isn’t there a rechargeable battery that could charge via MicroUSB from the Venue Pro’s USB port?
  • I said it before, but come on – what in the world were they thinking with the apostrophe and quote keys? They’ve moved from a normal location – next to : and ; – to requiring a Function Key combination. But they left { and } intact? Who uses those often while typing in Word or web sites? Maybe developers, like me, but we need the quote and apostrophe, too!
  • The keyboard connects magnetically to the case – which is awesome – except, the keyboard doesn’t deactivate itself when the magnet is engaged. That causes key presses to turn the tablet on, thus draining the battery. It also drains the keyboard’s battery. It sounds like a simple engineering task, magnet turning off the power circuit, but maybe I missed something? The magnet is also a bit weak. Don’t treat this like Microsoft’s Surface keyboard. You’ll want to place the keyboard elsewhere if you’re only going to use the Venue Pro 8 as a tablet.
  • If the on-screen keyboard can fit all keys on the Venue Pro’s screen, why can’t the physical keyboard that has more physical room?

If you were a product manager, would you let this thing ship with such obvious issues?

Those gripes aside, I like the keyboard, and its design complements the Venue Pro 8. The design of the folio case, it’s built-in pen holder, and magnetic grip of the keyboard to the case all make this a worthwhile addition to your Dell Venue Pro accessory list. Just don’t expect to get much work done with it if you need apostrophes, dashes, or quotes.

Pros: Keyboard perfectly matches contours of the Venue Pro 8, and connects magnetically. Package comes with a case that looks very nice and can hold the digitizer pen. Keyboard can be left in the car, at home, and so forth, so you don’t have to carry it around when not needed.

Cons: The keyboard + case combo seems to weigh as much as the Venue Pro, practically doubling the weight. Alcohol must have been involved when deciding the keyboard layout. The magnet is a bit weak. The keyboard isn’t good for any long documents due to the layout’s inexplicable key locations.

SAM_8765

Figure: The keyboard connects magnetically to the flap on the case.

SAM_8764

Figure: The keyboard looks great even when not being used. That doesn’t mean it folds back like the Surface – it will fall off if you treat it like Microsoft’s prodigy.

SAM_8763

Figure: The keyboard runs off two CR2025 3 volt batteries. The tray is a bit difficult to remove.

SAM_8776

Figure: The keyboard.

SAM_8762

Figure: Unwrapping.

SAM_8761

Figure: The packaging. Front.

SAM_8760

Figure: The packaging. Back.

There’s no doubt about it – SkyDrive (now OneDrive) is broken in Windows 8.1. At some point, your files may stop syncing, and Windows simply will not let you know. It happened to me across all devices I had upgraded from 8.0 to 8.1. Many forum posts: here, here, here, and here, are complaining about the problem. The real issue? Nobody knows. Microsoft hasn’t been helpful, either, turning a deaf ear to consumer complaints, and offering no advice in their forums other than to run their SkyDrive troubleshooter. What does that do? It simply restarts the SkyDrive service most of the time, which doesn’t solve the problem.

Researching the issue a bit more, I noticed in the File Manager event log, a message of “Error message: Offline availability: found one item with an empty resourceId, aborting”. That sounded like a permissions/access issue may be causing a file to be unreadable. This lead me to try resetting all the permissions on the SkyDrive folder. Guess what? That process caused other pop-ups to appear. Pop-ups with error messages about file permissions being unable to be changed or accessed. Aha! Progress! If those files can’t be read by SkyDrive’s sync tool, maybe that’s holding up all my syncing!

By moving out those files above and restarting the SkyDrive services, my sync is working again! I don’t know how long this will last, but I hope the steps below will help you troubleshoot the issue on your end.

1. Open Explorer and right-click your SkyDrive folder and select Properties.

image

2. Click Security, then Advanced, and you should see something similar to the dialog below. Make sure SYSTEM, Administrators, and your own user name all have Full control.

image

3. Check the box Replace all child object permission entries with inheritable permissions from this object and click Apply.

4. Make note of any files on which you receive errors so you can find them and move them out of the SkyDrive folder to somewhere else. This appears to be what was tripping things up for SkyDrive on my end.

5. Move the files from Step 4 to a folder outside of SkyDrive. I zipped these up and kept that ZIP folder in SkyDrive. I have not yet found the reason for those files to have issues. It’s possible setting their permissions again may fix it. My guess is some files may have domain credentials attached that may cause trouble, since I sync with my work PC.

6. Open an elevated command prompt by pressing Windows + X and selecting Command Prompt (Admin).

image

7. Shut down SkyDrive by typing skydrive /shutdown in c:\windows\system32. You should be starting in c:\windows\system32, but if not, you can type cd “c:\windows\system32” to get there. Wait two minutes.

8. Start up SkyDrive by typing skydrive from that same prompt, this time without the /shutdown command, and wait two minutes. Launch the SkyDrive app from the Start menu as well, just to make sure everything’s kickstarted. Check to see if the SkyDrive Sync Engine Host process is running in Task Manager. You can press Control + Shift + Escape to bring up Task Manager, sort by name, and find SkyDrive Sync Engine Host under Processes. If the SkyDrive process doesn’t launch after a couple minutes, try restarting your machine.

image

9. You’ll see a lot of disk activity while SkyDrive appears to scan your files and folders all over again. Depending on the number of files and folders you have to sync, this could take a while.

10. Check again in a few hours and see if your SkyDrive folder online appears to properly match with your machine. If it does, then my fix worked.

Good luck!

Best,

-Auri