@wizzwizz4 well, some challenges require hardcoded prompt strings or the like; it's nice to be able to express those in fewer characters than the string itself, and there's a bunch of redundant information there
but you can't really hand-compress it because the decompressor would be longer than the string itself
this is why most newer golfing languages have built-in string decompressors
Write a program that produces an output such that:
At least three distinct characters appear.
The number of occurrences of each character is a multiple of 3.
For example, A TEA AT TEE is a valid output since each of the 4 distinct characters, A, E and T and (space), occurs 3 times.
Of course...
Why is it buff...........ering?
As the Internet isn't perfect, occasionally the videos we watch start buffering. When this happens, I get very annoyed. As the wait gets longer, I get even more annoyed.
Your task is to write a function or program that waits a random amount of time and then outpu...
@mbomb007 you're right, but a) that discussion needs to be moved to chat, b) you're not making the point all that well; the main point here is that big O notation talks about how the program's speed changes as the input gets longer, and thus it's meaningless in relation to any one specific input (only in relation to an infinite set of inputs)
@mbomb007 I would let him know the official definitions of big O, big theta and big omega notations. Worst case, always, and best case. The other person had decided that big Omega was the same as the big O
few people seriously argue that vi is better than vim; when they do, the arguments normally center around low memory usage and availability basically everywhere
although on Ubuntu, the default vi is in fact vim with features removed in order to bring down the disk size (allowing it to be part of the default install), rather than an actual vi
when I get a new laptop, I pretty much literally just install the latest version of Ubuntu on it and start using it immediately, that's about as out-of-the-box as you can get
what sort of config are you thinking of? things like partitioning that are hard to change are available in the installer, everything else is fairly easy to change later
@Pavel Debian includes a brilliant partition manager in the setup system; you can delete everything and it won't kill your files until you press the save button.
Debian also has a Windows-based installer, iirc, and Windows doesn't usually let you kill it whilst it's running.
@LliwTelracs It's highly mathematical. I already posted the definition of big-O, but if someone can't understand it (which I think is likely), then there's no point.
EDIT: Quick note, this is almost certainly confusing Big O notation (which is an upper bound) with Theta notation (which is both an upper and lower bound). In my experience this is actually typical of discussions in non-academic settings. Apologies for any confusion caused.
In one sentence: As t...
Short explanation:
If an algorithm is of Θ(g(n)), it means that the running time of the algorithm as n (input size) gets larger is proportional to g(n).
If an algorithm is of O(g(n)), it means that the running time of the algorithm as n gets larger is at most proportional to g(n).
Norm...
I think I'll wipe my drives, then configure RAID in BIOS. That should work properly, since then the OS doesn't even see that there are multiple drives, as it's being completely handled by the motherboard, right?
I remember the hardest parts of installing Debian were making enough space on the Windows partition to add room for the *nix file systems, and configuring the wifi.
might be best to find a more appropriate chatroom/channel (Ask Ubuntu probably has one!), so that a) we don't drown out attempts to talk in this one, and b) the userbase is more knowledgeable
@Pavel most Linux distributions use a "package manager" to handle automatic installation and updates; programs installed by the package manager are split up in various places around /usr (they share components), with some critical programs being in /bin. If you install programs manually, you're meant to put them in /usr/local/ or /opt/, so that the package manager doesn't try to overwrite the stuff you've done, although nothing's enforcing that.
@mbomb007 The resource he had seemed to have confused him because it was putting O(g(n)) as the time complexity for all cases when it should have been putting g(n).
anyway, on most Linux systems, the only really big directories are /usr (read-only stuff maintained by the system, comparable to Programs on Windows) and /home (user documents, the equivalent of Users on Windows); /var (read-write space maintained by the system) is probably the next-biggest but it's notably smaller
Basically, what I'm trying to do is fit Windows and Linux on a 10GB partition each, and store everything else (programs, files) on a 1200GB partition. (I have 2 480GB drives and a 500GB drive in RAID 0)
@Pavel well, clearly /usr and /home go on the large partition, but Linux prefers each partition to map to one directory, so that might be slightly nontrivial (probably not impossible – worst case you could just use symlinks – but there might not be an option in the installer for it, if you want / to be the Linux-specific partition)
@Pavel that's similar to my personal setup, which has a Windows drive (which Windows calls C: and Linux calls /media/ais523/Windows), a Linux drive (/ on Linux, can't be seen by Windows), and a /home partition which holds all my files
but I'm putting installed programs on the Linux drive
putting both /home and /usr on the same partition but / somewhere else is not an operation that the partitioning system supports in the most naive way, although you could create a /home+usr and then use symlinks to place /home and /usr inside it
well, /boot/efi is the partition that holds bootloaders, and those need to know about each other so that they can do things like let you select which OS to boot (it's also a separate partition per the bootloader spec most widely implemented on modern computers)
@wizzwizz4 it's OK, I didn't actually check to see which message you'd linked it to because it was obvious from context
huh, why do comments and edits on CW posts ping the original author? (Or do they ping everyone who edited?) It seems a bit inconsistent with the idea of CW
Don't know what to call this
Some people here may be familiar with Euler's identity. If not click the link
Now you know what the equation is, what if we change it slightly? No-one like to imagine numbers so instead we're going to use an unknown number x.
So first we get rid of i and replace it...
There'd be a flag that let you switch your account between different privilege levels, and there'd be loads of dummy accounts that you could test the mod tools on.
And people would know what the mod tools were, what they were capable of, and when not to nag mods about doing stuff that only Community Moderators can do.
if you need to contact community mods about something, are you meant to go via the diamond mods or contact them directly? (not that I've ever needed to do something that goes up to community mod level)
Is it worth it to make a golfing language consisting of replacing the six characters "¥£¡¢§ with ⍤⌸⍠⍸⊆⌺ before evaluating as regular APL, then doing the reverse substitution on the result? The purpose would only be to allow usage of those new primitives without having to go multi-byte/character.
I have four digits as a b c and d.
I want to create maximum possible time in 24 hours format.
Example:
1 2 3 4
=> Time: 23:41
0 9 1 7
=> Time 19:07
I am trying to solve this by sorting the element, But there is some logical errors.
Any idea about optimal solution
@wizzwizz4 Unlikely. While my proposed characters are currently meaningless, there probably would be no harm in assigning meaning to these 85: ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüþⒶⒷⒸⒹⒺⒻⒼⒽⒾⒿⓀⓁⓂⓃⓄⓅⓆⓇⓈⓉⓊⓋⓌⓍⓎⓏThey are only good as identifiers.
it's so JavaScript-dependent that I don't run it in (my fairly locked-down) primary browser, but rather in an incognito window that's opened anew each time
which means I have to log in every time too, and I frequently end up triggering a login CAPTCHA because the site doesn't expect me to log in that much
@wat oh, most websites' use of JavaScript actually makes them worse, so I set my primary browser not to run it except on a whitelist of sites; SE's use, while fundamental to making changes the site, is nonetheless more frustrating than having JavaScript off if you're only reading
We are getting a site design at some point. However, the wheels of SE turn very slowly (so slow that oftentimes they don't appear to be moving at all), so it's hard to say when that point will be.
I don't understand this whole "lock down the browser" thing. Really, I don't. I swear my friend spends more time going through NoScript and blocks and user scripts and everything than he does actually reading whatever site he's happened across.
@Mego They move really, really quickly. But there are so many gears, cogs and belts that some (like the Site Design one) turns very slowly but with lots of torque.
I wonder if it's the same as building a computer. My past two purchases were laptops ordered from a boutique (that, yes, I clicked the dropdowns to match my specifications) but mainly because I didn't want to fiddle with actually putting the hardware together.
I just wanted it to work.
Prior to that, when I seemingly had more free time, I would meticulously measure individual parts and benchmarks, purchase specific parts, upgrade on a rotating basis, etc.
well, my approach is fairly simple: turn JavaScript off (thus saving me time being annoyed by active content on a page); if a page doesn't work, just go to a different page
@WheatWizard if being a polyglot is part of the question, # GolfScript + CJam; doing that for a general-purpose challenge is ambiguous, though, because it's also used for a "this answer is in GolfScript but calls into CJam to function"
No offence to anyone, but does anyone else find these kind of explanations really unhelpful / lazy? It kind of looks like the poster doesn't really care about explaining it.
^ * v is something you have to read twice to understand
Anonymous
@TrojanByAccident The people I know from SoCal would riot start an online petition if someone called SF part of SoCal. SoCal is LA and surrounding areas.
@FlipTack Pyke is written in Python though, so a learning curve is to be expected. Same as with Pyth. If an explanation for Pyth is just showing what it means in Python, that's probably good enough.
Anonymous
@Pavel Boston would like to have a word with you. Actually several words, all curses and insults, and very few of them are intelligible.
@DJMcMayhem nah, I (and pretty much everyone else) use that all the time. I was talking more about the lack of clarification and description in the one I linked
Create a program or function to unjumble a 9x9x9 cube of digits by rotating individual 3x3 cubes within it.
This is similar to (but, I suspect, a bit harder than) my Flippin' Squares question.
Input
Input will be a 9x9x9 cube. I'm not going to be as strict over the input as I was last time, 3d...
You don't even really have to use said encoding. You can use your language in UTF-8 and as long as it supports the option of the shorter encoding you can score languages in that.
I'm trying to pipe a string into a program's STDIN without any trailing linefeeds (unless that string itself actually ends in a linefeed). I tried googling around, but I only found people trying to print to the console without a trailing linefeed, in which case Write-Host takes a parameter -NoNew...