Thursday, February 28, 2019

Play Windows Games on Linux with Proton * Valve * Steam * Proton

**

Excel i Laza

http://wiki.freepascal.org/FPSpreadsheet

http://wiki.freepascal.org/Lazarus_Application_Gallery#ScanTo

http://forum.lazarus.freepascal.org/index.php?topic=39806.0


HP Laserjet 1010 @ Windows 10 x64 tips:

I've got my old laser printer HP LaserJet 1010 working just fine with Windows 10. 

You need to download the HP Universal Printer Driver.  (see link below).   Manually setup the printer to print on port Dot4.    It works!

Universal printer download

--------------

I'm using HP Universal Printing PCL 5 (v6.1.0) to get this printer working with Windows 10.  

Go into properties and the PORTS tab.    Select (check) DOT4_001 and also check ENABLE BIDIRECTIONAL SUPPORT


Hope that helps you,


[]

Wednesday, February 27, 2019

The best of ...

Ubuntu – a complete desktop Linux operating system, freely available with the largest community support of any Distro. The Ubuntu community is built on the ideas enshrined in the Ubuntu Manifesto: that software should be available free of charge, that software tools should be usable by people in their local language and that people should have the freedom to customize and alter their software in whatever way they see fit.


Linux Mint – a Ubuntu-based distribution whose goal is to provide a more complete out-of-the-box experience by including browser plugins, media codecs, support for DVD playback, Java and other components. It also adds custom desktop options and menus, several unique configuration tools and a web-based package installation interface. Linux Mint is compatible with Ubuntu software repositories.
MX Linux – a cooperative venture between the antiX and former MEPIS communities. It is a midweight OS using Xfce as the default desktop. MX Linux features simple configuration, high stability, solid performance and medium-sized footprint.

http://www.networksecuritytoolkit.org/nst/index.html
-------------{ Unreal flavored linux distros:



NuTyX is a Linux From Scratch documentation LFS and Behind Linux From Scratch documentation BLFS-inspired distro built for intermediate and advanced Linux users, and those interested in committing themselves to improving their Linux system skills.

It was developed to be highly flexible thanks to its custom package manager, cards, which enables users to compile source packages from ports, install individual binary packages, and also install groups of related binary packages like in the case of DEs like Xfce or KDE.

Robolinux is a distro built to provide users with a free secure Linux distribution that increases productivity and saves time.
It has a one-click Windows feature which allows you to run Windows apps somewhat natively (thanks to its VM feature). Robolinux is also keen on security and ensures that users who run Robolinux alone or together with Windows XP, 7, and 10 don’t ever have to worry about viruses, a learning curve, or performance issues.

Void is a multipurpose Operating System built from scratch based on the monolithic Linux kernel to house a hybrid binary/source package management system and a unique implementation of various processes.
This gives its users the ability to manage software as well as to build software directly from their source.vIt has support for Raspberry Pi single-board computers and being a rolling release, it is always up to date.

Drauger OS is a beautiful, secure, performance-focused gaming desktop Operating System and it prides itself with being more secure than Windows. It aims to provide users with the best gaming platform possible while maintaining user preference.
Drauger OS uses a modified Xfce desktop which offers users an improved performance, easier access to functions, overall stability, and a smooth gaming experience.

Modicia OS is an Ubuntu LTS and Debian-based Linux OS developed by MODICIA Development Company for their public bodies and professional clients.
It boasts of 10% swappiness, program speed increase by 25%, and 20% RAM efficiency thanks to its active Turbo Boost processors. It also comes with Wine HQ pre-configured alongside the typically bundled apps, preinstalled dictionaries with multi-language support, etc.

Bliss is an open source Android-based Operating System that aims to be usable across various platforms. It has Bliss ROM for Android devices, Bliss OS for PCs, and ROM & OS Development for business and educational institutions.
Bliss OS is free and compatible with PCs, MacBooks, and Chromebooks with support for both BIOS/CSM and UEFI boot.


POP Linux is a new Linux distro designed to have minimal clutter on the desktop. The creators of Pop OS system 76  specialize in building custom Linux PCs, and they have managed to tweak the Pop with the necessary improvements on the graphical interface. Switching between integrated Intel graphics and a dedicated NVidia graphics with a single mouse click. However, you can install NVidia drivers when doing the first time installation instead of using the open source Noveau drivers that are present in most distributions.
The Pop! _ OS does not support true hybrid graphics, as it is Windows. Switching between the Intel and NVidia graphics solutions is easy when you compare it with other Linux distributions. Pop! _OS works on any PC and with functionalities expected from a Linux distro. Forbes earlier suggested Pop OS is giving good Desktop experience on Lenovo ThinkPad X1 Laptop.
Pop OS is still emerging as a convenient tool for managing dual graphics options.
Prominent Features
  • Ubuntu based
  • Built from scratch
  • Customized GNOME 3 as the preferred Desktop Environment
  • Better Support
  • Runs well on System 76 Laptops
Minimum Requirements for Installation
  • 2GB RAM though the recommended is 4GB
  • Minimum 16GB storage the recommended is 20GB
  • 64-bit processors
Based onUbuntu
Desktop Environment GNOME (default), Budgie and more
Package Managementdpkg
General PurposeDesktop and Multipurpose
Download Linkhttps://system76.com/pop

--------------------{ Professionals distros:

Fedora 29 is the distro that defines new technologies that integrate into the Operating System resulting in some innovative features of any distribution. The only downside is the short support cycles that last for only a month after the release of the next version, which is usually six months.
  • Gnome 3.30
  • Fedora silverblue
  • TLS 1.3
  • Python 3.7
  • Perl 5.28
  • ZRAM support for ARM images
  • New notification area
Minimum Requirements for Installation
  • 6GB free hard disk space
  • 2GB RAM
  • Intel 64-bit processor
  • AMD processor with AMD-V and AMD64 extensions
Based onRedhat
Desktop EnvironmentGNOME (default)
Package ManagementRPM, Built 'dnf' on top of it
General PurposeDesktop
Download Linkhttps://getfedora.org/




Tuesday, February 26, 2019

Programmers tips

If you want to create cross-platform apps use Java, Delphi or Lazarus IDE.
If you want to create Windows apps only, the best choice is Visual Studio .NET C# and ASP.

The linux facts

The best linux distro to install on hard disk is Linux Mint for desktop purposes.
For web server and programming, try to install Centos Linux.
If you want only web server based on LAMP, try Turnkey Lamp distro.

Linux and Unix philosophies:

  • All files are just streams of bytes.
  • All devices behave much like files.
  • All directories are also files (this is no longer strictly true).
  • Each program does one small job VERY well.
  • The “shell” provides powerful mechanisms like pipes and redirects that allow you to combine multiple commands into a single step.
  • The shell is just another program…nothing special.
  • Users on the system are protected from each other.

Other flavor of linux:

http://www.slackel.gr/forum/about.htm

https://www.salixos.org/

http://vectorlinux.com/





Friday, February 22, 2019

SmartCard @Linux

https://ubuntuforums.org/showthread.php?t=1447218

https://kbpdfstudio.qoppa.com/how-to-setup-usb-smart-card-hardware-pkcs11-signing-on-linux/

https://twiki.cern.ch/twiki/bin/view/LinuxSupport/LinuxSmartCard

http://adnotech.adwin.fr/public/Classic_Client_Linux_User_Guide.pdf

https://sourceforge.net/projects/opensc/

https://linux.die.net/man/1/opensc-tool

https://forums.linuxmint.com/viewtopic.php?t=134926


https://wiki.debian.org/Smartcards

https://wiki.archlinux.org/index.php/Smartcards

https://archive.fosdem.org/2018/schedule/event/smartcards_in_linux/attachments/slides/2265/export/events/attachments/smartcards_in_linux/slides/2265/smart_cards_slides.pdf

https://www.tldp.org/HOWTO/Smart-Card-HOWTO/applications.html

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/managing_smart_cards/enabling-smart-card-login

https://ubuntuforums.org/showthread.php?t=1557180

http://blog.fkraiem.org/2013/03/13/linux-smart-card-authentication-howto/




Protect your web site contents

All of the correct CSS variations are:
.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}
<p>
  Selectable text.
</p>
<p class="noselect">
  Unselectable text.
</p>

-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
Disallow them from being able to answer when the window's onBlur event is fired. They can still use other devices, but they won't be able to cheat on the same computer.


<body oncopy="return false" oncut="return false" onpaste="return false">

Example

Prevent text selection of a <div> element:
div {
  -webkit-user-select: none; /* Safari 3.1+ */
  -moz-user-select: none; /* Firefox 2+ */
  -ms-user-select: none; /* IE 10+ */
  user-select: none; /* Standard syntax */
}



<script language="JavaScript">
  /**
    * Disable right-click of mouse, F12 key, and save key combinations on page
    * By Arthur Gareginyan (arthurgareginyan@gmail.com)
    * For full source code, visit https://mycyberuniverse.com
    */
  window.onload = function() {
    document.addEventListener("contextmenu", function(e){
      e.preventDefault();
    }, false);
    document.addEventListener("keydown", function(e) {
    //document.onkeydown = function(e) {
      // "I" key
      if (e.ctrlKey && e.shiftKey && e.keyCode == 73) {
        disabledEvent(e);
      }
      // "J" key
      if (e.ctrlKey && e.shiftKey && e.keyCode == 74) {
        disabledEvent(e);
      }
      // "S" key + macOS
      if (e.keyCode == 83 && (navigator.platform.match("Mac") ? e.metaKey : e.ctrlKey)) {
        disabledEvent(e);
      }
      // "U" key
      if (e.ctrlKey && e.keyCode == 85) {
        disabledEvent(e);
      }
      // "F12" key
      if (event.keyCode == 123) {
        disabledEvent(e);
      }
    }, false);
    function disabledEvent(e){
      if (e.stopPropagation){
        e.stopPropagation();
      } else if (window.event){
        window.event.cancelBubble = true;
      }
      e.preventDefault();
      return false;
    }
  };
</script>








PROTECT YOUR PICS:

<IMG SRC="issues/pictures/cexample.gif" onMouseDown="popupMsg('This image is Copyrighted -- Computer Hope 2007')">


<script>
var isNS = (navigator.appName == "Netscape") ? 1 : 0;

if(navigator.appName == "Netscape") document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);

function mischandler(){
return false;
}

function mousehandler(e){
var myevent = (isNS) ? e : event;
var eventbutton = (isNS) ? myevent.which : myevent.button;
if((eventbutton==2)||(eventbutton==3)) return false;
}
document.oncontextmenu = mischandler;
document.onmousedown = mousehandler;
document.onmouseup = mousehandler;

</script>
<BODY oncontextmenu="return false" onselectstart="return false" ondragstart="return false">


<script language="javascript">
document.onmousedown=disableclick;
status="Right Click Disabled";
Function disableclick(e)
{
  if(event.button==2)
   {
     alert(status);
     return false; 
   }
}
</script>





<Body>
  <Table>
   <tr oncontextmenu="return false">
    <td>
     <asp:datagrid id="dgGrid1">---</asp:datagrid>
   </td>
  </tr>
 </Table>
</Body>


<script language=JavaScript>
<!--

//Disable right mouse click Script
//By Geek Site.in


var message="Function Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// --> 
</script>





<body oncontextmenu="return false;">