Windows 10: strange little issues

I’ve just switched to Windows® 10. And while the experience is mostly pleasant, I did encounter a few annoying issues. One is even blocking the behavior I want to obtain. Here we go:

  • User profile folder name issue:
    • On a new system I had a local account (simple username, SDolha). I logged in to that, and connected with my Microsoft® account – Everything fine, settings synchronized.
    • Going to Settings – Accounts again I noticed that I have other members of the family displayed in Family list, since I added them before through Family Safety, a Microsoft® service, which – I thought – is also great: I could just enable my wife and children accounts to be able to login on the computer, without needing to create accounts for them separately (as I had to do before). Ad I did that, clicking Enable on each account in my family.
    • Then, the first time that Robert, one of my children, logged in with his account – – Windows® created a user profile for him, and also a folder in C:\Users, as normal. But guess: what folder name has Windows® decided to allocate? Was it “RDolha” or “Robert” as I would accept? No. It was a completely unpleasant surprise: “RDolh”!
      • I suspect that a programmer wrote a code to obtain a substring from the e-mail address and inadvertently added a minus one to the retrieved length, as he or she wanted to avoid having the “@” char extracted. And substr(“”, indexOf(“@”, “”) – 1) is “RDolh” in a zero based indexing system, as in .NET!
      • To resolve the issue I had to delete the account completely, and then:
        • Log in to my account, ensured I enabled from Settings – Accounts – Family and other users – Family section to log in;
        • Log in to a local administrator account (other than mine, to avoid having my family member list loaded) and delete account from Other users section of Settings – Accounts – Family and other users;
        • Create a new RDolha simple user account by selecting “I want to enable login for a user without a Microsoft® account” and “The user doesn’t have an e-mail address”;
        • Log in to RDolha simple user – at this time the folder is correctly created as C:\Users\RDolha;
        • Finally, associate the Microsoft® account to it (which was still enabled to login in the step A, from the Family members of my Microsoft® account.)
  • Strange unacceptable username issue:
    • Trying to do the above for my wife, which has her Microsoft® account (with first name set to Ioana and last name set to Dolha online), I was just unable to create her simple user account with name “Ioana” – it gave this error: “Please choose another username”. Note that I did NOT have another user with Ioana name on my system.
      • Surprisingly, these names were all fine: “Ioan”, “IoanaP”, “IoanaPV”;
      • Moreover, for all these names worked (I tested just to try to find the cause of this issue): “Robert”, “RDolha”, “RDolh”, “RDol”;
      • So this time, I’m not able to see what was causing the issue.
  • New OneDrive way issues:
    • First, smart files disappeared; this was expected, since in previous Windows® versions, OneDrive allowed setting “Online only” for some files in OneDrive folder, and the system in this case didn’t actually hosted the file locally synchronizing changes, but rather download it just when needed, requiring network access at that time (some apps had also had hard times with this since they may have been designed without the new smart file system in mind, and tried to load the file in a standard way but crashed as it hasn’t existed on the drive). And users got confused about all these situations, especially as they often tried to load files when they didn’t have the connection.
      • For power users, still, this is bad, since now I have to either synchronize all files in a folder to see them in apps using the OneDrive folder, or don’t see them at all.
    • But the really ugly thing is that it seems now I cannot set some Windows® libraries (Documents and Pictures) to have a Save location (nor Public save location) pointing to the corresponding folder on OneDrive.
      • If I try to update Save locations from Explorer, it’s OK for a limited time;
      • But then, when I rerun OneDrive app (e.g. if I log out and log in again), it overrides these settings and makes the Save locations back to the local folders (Documents and Pictures from C:\Users\[MyUsername]) – it’s very annoying;
      • Strangely, this doesn’t occur for my account on another computer (a workstation), it’s happening only on my new laptop;
      • Trying to somehow make OneDrive to select itself as the default save location for these libraries, I found this Help document with title set to “Files save to OneDrive in Windows 10”. There it’s said:

        • But guess what! This Documents and Pictures does not exist in the settings window of the new OneDrive (in Auto save tab I only have Photos and videos and Screenshots, which allow automatically importing pictures and videos from cameras plugged in to the computer and screenshots made by hitting PrtScr key to OneDrive – these work as expected)!
Posted in Computers and Internet | Leave a comment

JavaScript: investitie pe termen lung

Aproape ca imi pierdusem speranta in JavaScript, dar am observat ca abia acum incep clientii sa se mute. Parca e mai greu ca la WPF desi aici cred ca nu-i vorba de curba de invatare prea abrupta ci de obisnuinta personala si de frica de a iesi de sub umbrela.

Dar trebuie: ca sa fii multiplatforma pe client, iar daca n-ai ceva greu de facut, JavaScript based server side follows.

La nivel de development tools umbrela Microsoft n-a disparut, totusi, si asta e f. bine. Ba devine o umbrela multiplatforma itself.

Posted in Miscellaneous | Leave a comment

Surface 1: 0-0-0 black becomes green

I recently started to see a very awkward issue repeated with my Surface 1 on Windows RT (not often, but still more than a couple of times already): sometimes it suddenly displays all pure black pixels (those with RGB 0-0-0 only!) as green. Note that partially colored pixels are not greenized the same way (e.g. 255-0-255 still displays magenta correctly, and 1-0-0 or 1-1-1 still display almost black color).

Restarting or shutting down and starting the device again doesn’t seem to help or helps only after trying several times. But once I saw the problem has been resolved at random, while the Surface splash screen text was displayed (first on green, then immediately on black, while it was still loading), and another time while I was already logged on.

After some time I haven’t seen the problem for a while so I thought it was resolved by an update. But it repeated today for about 5 minutes (3 restarts tried). Now it again seems solved and unrepeatable…

I find this very strange. Has anyone else found the same behavior?

Update: I reproduced the issue for a longer time. This time I managed to find strange lines drawn on some screens.

Update 2: I got the issue a few times more, and these times more persistent. I finally managed to get it solved by going to Settings, Update and Recovery, Recover advanced settings, Command Prompt (safe debugging mode). When Command prompt appeared I used “color 2f” command and similar calls to test colors. Surprise: they all worked fine! Then I restarted normally and now black is black again. Let’s see if this is temporary or permanent…

Update 3: It took 3 days to get the issue appearing again. This time the previous trick didn’t work. It must be something wrong with the hardware controller or with its software driver.

Posted in Miscellaneous | 2 Comments

Back to artists?

I told you so. After the Modern UI era, artists are going to be re-employed! UI has recently changed and (although not entirely) it looks like old style again. 90’s fashion comes back, unfortunately! We’ll soon have again corner rounding requirements heavy drawing, etc. Now that I’ve just got used and started to like the new way, which allowed me to work as a full UI developer with no need for an artist around me. Oh well… :-)

OneDrive UI

Posted in Computers and Internet | Tagged , , , | Leave a comment

Tablets and Mini PCs are dead

I knew it before: tablets were (only) fashion. But then I started to think I was wrong, as I have saw so many people (both consumers and business users) with such devices in their hands. (I even purchased a Surface™ myself – which is still amazing, and I still use it – but not as often as I originally thought I would.) Now I believe I was wrong when I said I was wrong: small and large screens seem to eventually be the only ones that matter as I don’t see people with tablets anymore (or not so often).

But there’s another story to link here. Recently I’ve seen a new type of PCs on the market – more or less powerful processing units with fast yet large enough SSD storage, marketed as Mini PCs. Wow, I said at first… But then I saw this: processing power and storage units seem to have become small enough so that phones will eventually replace Mini PCs completely when they are docked to large screens and when keyboards and pointing devices are connected to them. (At least when they get powered by Microsoft’s Windows® 10.)

Posted in Computers and Internet | 2 Comments

Thumb.Drag events are not raised in Silverlight™ custom control unless…

Ever tried to create a custom control for customizing the behavior of a Thumb object? It may not be as easy as expected. The first issue is that the Thumb class is sealed in Silverlight™ so there you cannot inherit your custom control from there. Instead you need to define a custom control and reuse a Thumb instance inside its template.

<ControlTemplate TargetType=”local:CustomThumb”>
   <Thumb x:Name=”PART_Thumb” Cursor=”Hand”>

In code behind, of course, you find the actual Thumb object and attach DragStarted, DragDelta, and DragCompleted event handlers:

public override void OnApplyTemplate()
thumb = GetTemplateChild(“Thumb”) as Thumb;
thumb.DragStarted += Thumb_DragStarted;

The code compiles and builds just fine, but then you get a second issue: in Silverlight™ you’d soon find out that the event handlers are never raised, although you can confirm the Thumb is there! This is not required in WPF, but to resolve the issue in Silverlight™ you’d need to add a root panel to host the Thumb object!

<ControlTemplate TargetType=”local:CustomThumb”>
     <Thumb x:Name=”PART_Thumb” Cursor=”Hand”>

I hope it would help somebody, someday…

Posted in Computers and Internet | Leave a comment

Raspuns corect

Cum poate raspunde un ateu sau agnostic daca un crestin ortodox il saluta traditional “Hristos a inviat!”?

Consider ca raspunsul trebuie sa fie unul care sa nu-l faca sa se simta prost pe niciunul dintre cei doi:

  • Nu “Fals c-a-nviat” cum raspundeam eu pe la 14 ani si nici glume de genul “Aoleu, un zombi printre noi!?”;
  • Daca poate trece peste intelesul religios al cuvintelor, spunandu-le doar ca parte a unei traditii, de ce nu, “Adevarat, a-nviat” (eu nu pot insa, simt ca mi se opreste vorba in gat);
  • Altfel, printr-o urare neutra precum “Buna ziua”, care indica faptul ca s-a inteles ca e vorba de salut si ofera respectul cuvenit fata de persoana si religia respectiva, fara a afecta insa nici constiinta ateului.

Actualizare: Un raspuns ca “Sarbatori fericite si tie!” (mersi Tania pt. idee) e mai personal decat cel generic propus de mine, si indica si faptul ca se accepta existenta unei sarbatori. Intr-adevar, ateii pot sarbatori impreuna cu religiosii, cel putin faptul ca au zi libera de la stat. Dar urarea aceasta merge doar in primele zile, iar enuntul invierii se repeta uneori saptamani intregi dupa!… :-)

Ramane de discutat insa ce poate spune un ateu sensibil care ciocneste un ou, ca obicei, in ziua de Paste si i se adreseaza aceleasi cuvinte. Eu prefer in acest context sa nu raspund, ciocnirea efectuandu-se totusi si discutand apoi imediat despre oul a carui coaja a crapat… Dar asta doar daca nu pot evita ciocnirea oualor cu totul, pentru ca si tacerea aceea scurta mi se pare ca poate fi interpretata, daca persoana e mai cu capsa pusa, ca un afront adus religiei sale si chiar nu vreau sa simta asta, asa cum nici eu nu vreau sa simt vreo rautate din partea unui teist cand afla ca sunt ateu!

Posted in Sănătate și întreținere | Tagged , , , | 1 Comment