Warning: session_start(): open(/var/lib/php/sessions/sess_01ha50i1qkfng75gj2p297tnl2, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
massageVNCOptions - allow specifying passwordfile relative to user dir [1025266]

Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1025266 // massageVNCOptions - allow specifying passwordfile relative to user dir

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2190L/14K).

sS massageVNCOptions(S s) {
  S sub = "passwordfile=";
  int i = indexOf(s, sub);
  if (i < 0) ret s;
  int j = i+l(sub);
  if (isLetter(charAt(s, j)))
    ret print("massaged", insertString(s, j, f2s(userDir()) + fileSeparator()));
  ret s;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025266
Snippet name: massageVNCOptions - allow specifying passwordfile relative to user dir
Eternal ID of this version: #1025266/6
Text MD5: 1d5b020cbace841f3c25d48737ecb231
Transpilation MD5: e8b677d7601ed990fdb52abf45293071
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-17 00:55:16
Source code size: 251 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 692 / 871
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)