dracoblue.net

Forwarding X on Linux/Unix Machines

Like ssh.com says, you need to do the following things to successfully forward an X-Server to your client. [ol]

  • Servers X-Config needs to have:
    AllowX11Forwarding              yes
    
  • Clients Set in [em]/etc/ssh2/sshd2_config:[/em]
    ForwardX11 yes
    
  • Now connect via following command:
    ssh -X [email protected]
    
  • After that, use declare command to set the display to your servers one:
    declare -X DISPLAY="99.99.99.99:0.0"
    

    (with your IP)

  • [/ol] Thats it.

    In Articles, Linux, X Window System, open source, ssh by DracoBlue @ 2007-07-03 | 63 Words

    Updated geshi highlighter for pawn + samp

    Elyks reported a problem #384 with current version of the pawn-highlighter for geshi. The issue was a duplicated entry for 'sizeof'.

    II uploaded the

    updated pawn.php for geshi 1.0.

    In GeShi, open source, pawn, php by DracoBlue @ 2007-06-15 | 30 Words

    Convert Title-String to Url Slug in PHP or Lua

    When making your urls looking better, you may want to convert a title to a url-slug.

    An url-slug is in common a string containing only alphanumeric letters and '-'. Following php and lua function converts it to that format.

    php:

    function toSlug($str) {
    return str_replace(" ","-",ereg_replace("[ ]+"," ",ereg_replace("[^ A-Za-z0-9]","",$str)));
    }
    

    lua:

    function toSlug(str)
    return string.gsub(string.gsub(str,"[^ A-Za-z]",""),"[ ]+","-")
    end
    

    The

    toSlug function also replaces multiple spaces with one ' -' only.

    You can find this Lua-How-To at luanet.net, too.

    In Lua, open source, php by DracoBlue @ 2007-06-13 | 80 Words

    How to convert pawn/pwn to samp 0.2 / pawn 3.2.3664

    The new pawn compiler finally arrived and is used at sa-mp. But this also means that most scripts/libraries won't compile anymore or give warnings.

    Thatswhy I posted an How-To about converting a script step by step from samp 0.1 to 0.2.

    In Articles, open source, pawn by DracoBlue @ 2007-06-05 | 42 Words

    Libraries ready for sa-mp 0.2 and latest pawn language compiler

    Due to the 4 player script server release for samp 0.2 I updated today the widely used libraries for latest pawn compiler. Please update them all, to avoid warnings.

    Other 0.2 Ready GameModes/Libraries and Filterscripts can be found at the

    0.2#Ready-Page

    In dini, dprop, dtest, dudb, dutils, open source, pawn by DracoBlue @ 2007-06-04 | 52 Words

    Page 41 - Page 42 - Page 43