Monday, 6 March 2017

[Windoof (7)] Prepend user PATH to the system PATH environment variable

This is not possible. Probably for security reasons, Windoof always appends a user variable called PATH to the system variable PATH. It looks to me as if Winzigweich does not trust in Windoofs right management. However. work around for cmd.exe usage by creating shortcuts with the shortcut command being
cmd.exe /K set PATH=%_PATH%;%PATH%
where _PATH is a user variable containing the path portion that should be prepended. In my case the system PATH variable contained the path to a broken sqlplus installation. So I wanted to overrule that.

Tuesday, 21 February 2017

[Java] jEdit (or other Java application) freezes goes black when dragging it from main monitor to another on multi monitor extended desktop Windows 7 environment

Funny enough, it used to work but after a distributed software update at the office, I have mentioned problem. The freeze was under Windows 7 and 32 bit Java 1.8.0_131. Under Windows 10 and 32 bit Java 1.8.0_131 and HoSpot build 25.131-b11 the java applicatioin does not freeze but on the extended screens black out but the application still works.

The problem is the usage of the Direct3D pipeline. You need to switch it off. Therefore define the environment variable
J2D_D3D
with the value
false
and your done. You just have to restart affected applications (obviously for the freeze anyway).


I found the workaround described at OTN.

Wednesday, 1 February 2017

[blogger.com] Using my configuration of Alex Gorbatchev's syntax highlighter in my blogs

Html

<pre class="brush:[brush alias]">your code here</pre>

Available brushes

Brush nameBrush aliasesFile name
ActionScript3as3, actionscript3shBrushAS3.js
Bash/shellbash, shellshBrushBash.js
ColdFusioncf, coldfusionshBrushColdFusion.js
C#c-sharp, csharpshBrushCSharp.js
C++cpp, cshBrushCpp.js
CSScssshBrushCss.js
Delphidelphi, pas, pascalshBrushDelphi.js
Diffdiff, patchshBrushDiff.js
Erlangerl, erlangshBrushErlang.js
GroovygroovyshBrushGroovy.js
JavaScriptjs, jscript, javascriptshBrushJScript.js
JavajavashBrushJava.js
JavaFXjfx, javafxshBrushJavaFX.js
Perlperl, plshBrushPerl.js
PHPphpshBrushPhp.js
Plain Textplain, textshBrushPlain.js
PowerShellps, powershellshBrushPowerShell.js
Pythonpy, pythonshBrushPython.js
Rubyrails, ror, rubyshBrushRuby.js
ScalascalashBrushScala.js
SQLsqlshBrushSql.js
Visual Basicvb, vbnetshBrushVb.js
XMLxml, xhtml, xslt, html, xhtmlshBrushXml.js

For its setup see also to-integrate-alex-gorbatshevs-syntax

Friday, 30 December 2016

[WDMyCloud] ordinary users ssh recurringly breaks

Setup

Call me paranoid but I do not like Windoof file share even in my own home network, so I set up ssh. But it periodically breaks but I do not know why and have not got to investigate into it. I guess, however, that there is sort of system update.

Symptoms

Obviously, the connection fails. But, I get some messages too.
  1. On the command line connection try I see
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
       
  2. After having worked around it, it is a permission denied.                                  
  3. In MyCloud:/var/log/sshd.log I get
    User <your user> from debian.fritz.box not allowed because not listed in AllowUsers

Work-around

  1. Use the command you get provided to remove the offending key:
    ssh-keygen -f "/home/<your user>/.ssh/known_hosts" -R <remote fqdn or ip address>
  2. Add in /etc/ssh/sshd_config your user name to the list after AllowUsers. It is a space delimited list.
  3. You need to reload the ssh config, e.g. with /etc/init.d/ssh reload

Update on firmware update

Installing a normal firmware update (why does WD it called like this since it is a patch of the Debian OS they use and not something in the eproms or what ever?) breaks it as well. Point its as far as I can tell they just replace the whole OS. Having that said it obviously removed my guerilla installation of subversion. I mere apt-get update && apt-get install subversion fixed this but file persimissions where left too untidy to leave key authentication working. Fix: chown thiemo /DataVolume/shares/Thiemo && chmod g-w /DataVolume/shares/Thiemo

Friday, 18 November 2016

[Citrix] Slow "connection" to a windoof computer

You work from remote possibly over the internet with a windoof over citrix session and you can count each and every pixel the pointer hops to?
You might want to check the theme of your windoof over citrix session that is active for your user. Change it to the classic theme and re-try. For me it helped a great deal. Pointer movement is nearly as smooth and fast as on a local computer.

[git] Create a local branch from another branch

From the active branch git checkout -b <LOCAL_BRANCH> From a donator branch git checkout -b <LOCAL_BRANCH> <DONATING_BRANCH...