The infinite monkey theorem states that a monkey hitting keys at random on a typewriter keyboard for an infinite amount of time will almost surely type a given text, such as the complete works of William Shakespeare.
In this context, "almost surely" is a mathematical term with a precise meaning, and the "monkey" is not an actual monkey, but a metaphor for an abstract device that produces an endless random sequence of letters and symbols. One of the earliest instances of the use of the "monkey metaphor" is that of French mathematician Émile Borel in 1913, but the earliest instance may be even earlier...
I've searched the internet for this and I don't think I've been able to phrase the question concisely for any search engines, so I'm turning to people!
I've got a laptop and I would like to know what is faster: running Windows through a virtual machine on Ubuntu (/ Mint) or running Ubuntu as a V...
I have found a critical security vulnerability that allows arbitrary elevation to administrator from unprivileged accounts.
1. Grant Full Control of the Windows directory (and all its contents and subdirectories) to Everyone. 2. Log on as an unprivileged user and perform these actions...
So I manage to be able to share more than one Server Content at the same time with the same PC.
If someone want to know how can I do this, is easy. Make a batch script and put this:
@echo off
calibre-server.exe -p 8081(OR THE PORT NUMBER YOU WANT TO USE) --with-library "PATH-TO-YOUR-LIBRARY"
...
Actually, people are idiots. They usually aren't only too stupid to use a computer, they're too stupid to use a car, a powertool and even a fridge and they spend their life watching TV instead of learning something
It says so right on the first page in the Idiot Hand Guide for Smart People®
@OliverSalzburg No... When you use Winzip to extract archive you need Winzip. But when there's self-extracting archive the file does not require Winzip to be extracted.
Or the guy who exported from the US to Brazil for years without incidents, then started selling Xbox Ones and Iphone 5s and those are almost always reported (by the brazilian mail) as "stolen". Only those.
sorry I'm quiet. I'm buried in a land of regex and hashes in Ruby
honestly, I'm really getting used to this duck typing thing where you can just stuff a bunch of stuff in a Hash with arbitrary symbols as keys, rather than formally declaring the structure of your data in Classes or Structs like you would in Java or C#
it makes the code slightly less readable sometimes, but in general, unless I'm returning a data structure to a method from another file, I don't see a reason not to use ad-hoc structures built out of hashes in my code
cross-file (or worse, when you're making an API that you want other people to use!), you definitely need a class with getters and setters for all the properties, so that the code kind of documents itself of "HEY, this is what you can do with me", without making them call .inspect on it
I attempted this yesterday, but failed. Spent all day today in putty. I just wanted to ask what would be the best way to approach running a .NET app (twitchmodbot.sourceforge.net) on mono? (I have no idea how I would interact with the interface, as it is designed for windows) I use CentOS 5
@JordanRichards X11 is a client-server protocol for displaying/rendering GUIs. That code you linked to requires a GUI, and Mono uses X11 for displaying its GUIs. A program that requests a UI to be displayed is called an X11 client. That program is an X11 client. There are multiple X11 server-side implementations that do different things. One is Xorg, which is optimized for rendering on your local system with a monitor and graphics card, incl. hardware acceleration.
You can't (efficiently) use Xorg in your case because the latency and bandwidth available over the public internet are too low, so you need it compressed somehow. Xrdp is an X11 server that uses the compressed Remote Desktop protocol that Windows uses.
When you install and start Xrdp, it'll open up a standard RDP port on your server that you can connect to using the Windows built-in Remote Desktop Connection program (trust me, your install of Windows has it, unless you've heavily modified your installation). You'll get a GUI with a login prompt, and once you login with your user account (the same one as your putty login, though please don't use the root account), you'll get a desktop environment (if you have one installed).
Once you're at that desktop environment (which will be something like KDE, Gnome, LXDE, XFCE, etc. depending on what you've installed), you can just pop open a terminal, and run mono on the main .exe of that program, and it should display its GUI within that RDP session.
This all assumes that you're able to install suitably modern versions of mono and Xrdp, which as I've stated something like a dozen times already, is orders of magnitude easier and less painful on a modern OS version, not CentOS 5 from March 2007.
@JordanRichards Of course. When you close the RDP client on your Windows PC, the session housing the actual programs running in it keeps running on your server.
You can connect and disconnect at will and the session should keep running.
2.10.8 is pretty old... it could have performance problems or bugs, depending on exactly what the TwitchModBot is trying to do, or it may not work at all if TwitchModBot depends on very new (.NET 4.0 or newer) APIs or functionality. you'd have to try it. your chances would be better on the latest version of mono, but if it works fine on that old version, so be it.
one thing you can do as a sort of smoke test (just to see whether that version of mono will work) is download Mono 2.10.8 on Windows, and run TwitchModBot on your local desktop PC using mono, from the command line... you know, something like mono TwitchModBot.exe
just because it works on Windows isn't a 100% guarantee that it'll work equivalently on Linux, but it'll at least indicate that Mono implements the APIs needed for it to function.
@JordanRichards different versions of Mono support the APIs from different versions of the .NET Framework.
not even the very latest mono supports 100.00% of all .NET Framework APIs; there are some that are "too Windows-specific" to be supported, and some that just aren't done yet
it's really just a case by case basis, I can't tell you anything more specific than that without looking at the code of TwitchModBot
the only thing that is generally true is that, the newer your Mono version is, the more likely it'll support all the APIs needed
XFCE is the kind of bad that you'd only use on a very resource-constrained system (or on a system where you don't want to use up a lot of bandwidth sending images of your desktop back and forth over the public internet, as is this case), but you'll get used to it
@JourneymanGeek Huh. I had a hunch it was Acronis while searching, but the screenshots looked different enough... forgot they did custom tools for other companies.