Moderated by: Dean Menezes
Linux Tutorials, Resources and Links Page
Google releases Chrome OS based on Linux.by qbguy (no login)M$ expected to rename Windows to "Internet Explorer OS" |
VLC 1.0 Released!by qbguy (no login)http://www.videolan.org/vlc/
VLC is a free and open source media player that has ASCII art output. Also runs on M$ OSes. |
* Should I use ext or ReiserFS for my filesystemby Anonymous (no login) |
* ext3 of course, ReiserFS murders your wife!by Clippy (no login) |
* I don't talk to ASCII's imposterby (Login burger2227)R
|
* ReiserFS: putting the stab in /etc/fstabby Anon (no login) |
* I consider that to be a featureby Anon (no login) |
* Ubuntu 9.10 and Windows 7 both scheduled for release on October 22by qbguy (no login)
|
* What a coincidence. Does Ubuntu have the XP mode option too?by (Login burger2227)R |
It has VirtualBox and QEMU but obviously Cannonical doesn't give out XP licensesby qbguy (no login)You can also run Windows program with WINE.
|
* It also has DOSEMU which is like NTVDM which might be why you're askingby qbguy (no login) |
How /dev/random worksby Dean Menezes (Login dean.menezes)Linux-Forum From drivers/char/random.c in the Linux source code:
* This routine gathers environmental noise from device drivers, etc., * and returns good random numbers, suitable for cryptographic use. * Besides the obvious cryptographic uses, these numbers are also good * for seeding TCP sequence numbers, and other places where it is * desirable to have numbers which are not only random, but hard to * predict by an attacker. * * Theory of operation * =================== * * Computers are very predictable devices. Hence it is extremely hard * to produce truly random numbers on a computer --- as opposed to * pseudo-random numbers, which can easily generated by using a * algorithm. Unfortunately, it is very easy for attackers to guess * the sequence of pseudo-random number generators, and for some * applications this is not acceptable. So instead, we must try to * gather "environmental noise" from the computer's environment, which * must be hard for outside attackers to observe, and use that to * generate random numbers. In a Unix environment, this is best done * from inside the kernel. It is NOT an algorithmic pseudo-random number generator. |
Random numbers using QB in Linuxby (Login burger2227)R If you were on Linux, you could do this to have random numbers from 1 to 8.
|
|
* OK, I fixed it by editing Clippy's postby qbguy (no login)
|
|
Regular Expressionsby qbguy (Login dean.menezes)Linux-Forum Regular expressions can be used to search for text that matches a certain pattern rather than an exact string. They can be used in many command-line tools such as (e)grep, sed, awk and are also a feature of many programming languages.
Any non-metacharacter, or a metacharacter (one of .*+?[]()|\^$), preceded by a backslash (\) matches itself. [s] matches any of the characters inside the brackets. (e.g. [a-z] means any lowercase letter). [^s] matches any character NOT inside the brackets. (e.g. [^a-z] means anything that isn't a lowercase letter). You can include dashes and ] inside the bracket expression by preceding them with a backslash. A . matches any character. A ^ means the expression has to be at the beginning of a line; a $ means it has to be at the end of the line. * means zero or more of the previous expression. + means one or more. ? means zero or one. | can be put between two regexes to mean either the first or the second. Expressions in parenthesis can be retrieved later (in sed, etc) by using \1 \2 \3 (\n for the nth one). Also, braces may be supported as a shortcut to specify multiple matches (e.g {5,} is 5+ matches or {1,5} is between 1 and 5 matches). === Operator precedence === Repetition takes precedence over concatenation, which in turn takes precedence over alternation. A whole subexpression may be enclosed in parentheses to override these precedence rules.
|
Ways to run QBASIC programs on GNU/Linuxby qbguy (Login dean.menezes)Linux-Forum 1. DosBox
DOSBox is an emulator which emulates an IBM PC compatible computer running MS-DOS. It is intended especially for use with old PC games. Some of you might have used it on Vista. DOSBox works well for emulation, but it has the disadvantage of being much slower than native DOS, NTVDM on Windows, and Dosemu. Dosbox's speed can be improved by setting cycles=max in /etc/dosemu.conf Note: disks must be mounted via the mount command in dosbox 2. Dosemu Dosemu can run on both x86 and x86_64 but not embedded architectures like ARM. It usually runs faster than DOSBOX when both are set to max speed, and has the advantage that it can also be used on a framebuffer as well as in X. The amount of CPU it uses can be changed by running speed.com inside dosemu, or to do it permanently, edit dosemu.conf in /etc/dosemu and change hogthreshold to 0 for max speed [or to some higher positive number than the default of 1]. NOTE: If you recieve the error "LOWRAM mmap: Invalid argument Segmentation fault" when running from a terminal or nothing happens when you run it from a GUI, You should edit /etc/sysctl.conf or /etc/sysctl.d/10-process-security.conf (depending on distribution): delete this line if it exists: vm.mmap_min_addr = 65536 add this line: vm.mmap_min_addr = 0 You can mount folders with the lredir command and your home (~) folder is already mounted as d: 3. QB64 QB64 is a program that lets you compile your QBASIC programs to a native Linux binary. However, it does not have a native 64-bit version yet. It translates to C++ so it requires g++ to be installed. It is considered more QBASIC compatible than FreeBASIC and in the future, it will emulate DOS interrupt calls and x86 instructions. 4. FreeBASIC FreeBASIC is another compiler that is QBASIC compatible. It can produce programs that run in a terminal, whereas with QB64 your programs always run in QB64's emulated screen 0. For maximum QBASIC compatibility, run Freebasic with fbc -lang qb. You should be able to use FreeBASIC's new commands in QBASIC mode by prefixing them with TWO underscores. Like QB64, it does not have a 64-bit version.
|
Post about the BAS program, which runs on Linuxby qbguy (no login)http://www.moria.de/~michael/bas/ "Bas is an interpreter for the classic dialect of the programming language BASIC. It is pretty compatible to typical BASIC interpreters of the 1980s, unlike some other UNIX BASIC interpreters, that implement a different syntax, breaking compatibility to existing programs. Bas offers many ANSI BASIC statements for structured programming, such as procedures, local variables and various loop types. Further there are matrix operations, automatic LIST indentation and many statements and functions found in specific classic dialects. Line numbers are not required." |