« first day (2783 days earlier)      last day (2077 days later) » 

12:22 AM
yay, I matched the byte count of an answer that used a creative I/O format without needing a creative I/O format
 
12:48 AM
@LuisfelipeDejesusMunoz (1) that looks like begging for vote. (2) some posts are not salvageable, or "cannot be improved such that one will like it".
 
@NathanMerrill Well, thank you for all of your help on generating ideas for the KOTH, I posted a draft which needs a lot of work in the Sandbox
Thanks to @dzaima too!
 
1:18 AM
taking a look :)
Why do you pass "None", and not an empty list for prevReap?
 
I could pass an empty list. Doesn't matter all that much?
 
it's better for consistency
 
Alright. Fixing
@NathanMerrill Fixed
 
1:45 AM
So I just discovered it's shorter to embed a cross call to C than it is to bypass the type safety even within the facilities offered by Clean. Does anyone know of a linux system call with a shorter name than time, which ideally takes no arguments and gives me an integer that changes frequently?
Wait no it has to take at least one argument, otherwise it just stays unevaluated.
 
uhhhh
could you use brk lol
Oh how about dup?
That should work
Eventually you'll run out of file descriptors but
 
I think that also needs a valid file descriptor
 
That can just be 0
(stdin)
 
My computer booted into a GRUB command line and I'm not sure what to do
ls reports (hd0) and I can't figure out what anything else does
Anyone know anything?
 
@Pavel Does it have a man or a help?
 
1:57 AM
@Pavel normal
 
@quartata That cleared the screen and put me back at grub
@Οurous The help text scrolls by at light speed and there's no scroll :/
 
@Pavel less / more?
 
@Οurous This isn't bash
I can't run normal commands
 
I guess try boot
 
@Pavel My UEFI shell has less though
 
1:59 AM
but I feel like there's an error
 
> you need to load the kernel first
 
oh right
uhhhh lets see
 
I mean it isn't ubuntu, I think, but it is still grub.
 
Not really since I don't seem to have an (hd0,1)
I tried
 
kernel /vmlinuz root=/dev/hd0
I think?
 
2:02 AM
Can't find command kernel, unfortunatly
 
@Mr.Xcoder Hey, a lot of schools in USA don't even know what the flip the olympiads are in the first place.
 
wait wait
OK uh
so when you did ls did it list no partitions
 
@Pavel set pager=1, then help should paginate it
 
(hd0) is the only output of ls
 
ls (hd0)?
ls (hd0,0)?
 
2:04 AM
(hd0): Filesystem is unknown.
disk `hd0,0' not found.
 
uhhhh
i think something bad has happened
 
I have no idea if this is helpful in this situation but I can try booting a live os and running fsck?
 
yeah do that
 
I really hope the filesystem is fine because I have spent several days on a paper on there
 
your files are probably fine
but maybe not the partition table
 
2:08 AM
...here's to hoping fsck works
 
@Pavel id recommend making a disk image if you have another drive big enough to hold it
 
I do not
Ok, live image booted
I can access the root partition of my old drive, but not the /home partition, which is, well, the important one
Um, I'm having trouble unmounting the device
 
hm?
 
Well you can't run fsck if it's in use, right
And I'm not sure how to make it not in use
It got mounted when the liveos booted
 
Where did it get mounted
df
 
2:23 AM
df|grep sda doesn't show anything...
[liveuser@localhost dev]$ sudo fsck -n /dev/sda
fsck from util-linux 2.32
e2fsck 1.43.8 (1-Jan-2018)
Warning!  /dev/sda is in use.
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sda

The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem.  If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
 
you should not have run it while in use but it doesn't matter
 
The -n flag doesn't do any writing
It just checks for errors
 
oh yeah didn't see it
 
I've tried the -b 8193 and -b 32768 flags and got the same output
/dev/sda2 isn't mounted. I can fsck it and it asks if I want to remove the dirty bit. Should I?
That's my home partition
 
why's it say fsck.fat
you're on ext4 right
 
2:32 AM
Pretty sure
 
you want e2fsck
 
[liveuser@localhost dev]$ sudo e2fsck -n /dev/sda2
e2fsck 1.43.8 (1-Jan-2018)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/sda2

The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem.  If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
Hmmmmm
 
are you sure sda2 is what you think it is
 
Not anymore
 
it might be boot partition
try mounting it
 
2:35 AM
Yep, EFI
 
can you show me df
 
Filesystem          1K-blocks    Used Available Use% Mounted on
devtmpfs              3963500       0   3963500   0% /dev
tmpfs                 3990660   38564   3952096   1% /dev/shm
tmpfs                 3990660    1412   3989248   1% /run
tmpfs                 3990660       0   3990660   0% /sys/fs/cgroup
/dev/sdb1             1878048 1878048         0 100% /run/initramfs/live
/dev/mapper/live-rw   6185484 5403776    765324  88% /
tmpfs                 3990660      16   3990644   1% /tmp
vartmp                3990660       0   3990660   0% /var/tmp
Wait, that's 1
 
Hold up
lsusb
 
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 5986:0266 Acer, Inc
Bus 001 Device 004: ID 0a5c:21e6 Broadcom Corp. BCM20702 Bluetooth 4.0 [ThinkPad]
Bus 001 Device 003: ID 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 
This reminds me of the time I decided it was a great idea to move my windows machine from MBR to GPT three hours before I had an assignment due.
 
2:38 AM
(I tried mounting /dev/sda3 and got mount: /mnt/sda3: unknown filesystem type 'LVM2_member'. but IDK what that means)
I think my home partition just isn't there
Mm, KDE partition manager shows it
 
Er I guess lsusb didn't get what I wanted
My suspicion was that you were scanning the USB drive
Wanted to know what dev that was
 
This sounds like the time I tried to dual boot Windows and Ubuntu and tried using Grub without a guide
 
@quartata No the device is correct
Model: ATA INTEL SSDSCMMW24 (scsi)
Disk /dev/sda: 240GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size   File system  Name                  Flags
 1      1049kB  945MB   944MB  ext4
 2      945MB   1285MB  340MB  fat16        EFI System Partition  boot, esp
 3      1285MB  240GB   239GB                                     lvm


Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes.
^ parted output
I'm just going to try to re install fedora and hope the installer picks up on my home partition
 
why did sda1 get mounted though
I think you should probably not do this at night
 
It's not night here
They both got mounted automatically
 
2:45 AM
I don't think it was an intentional decision to have this issue either.
 
@Pavel ?? thought you were PST
anyways
 
Yeah it's not even 8 yet
 
@Pavel yeah but /run/user/1000 is like /tmp
@Pavel what definition of night are you on
 
When it's a reasonable time for me to be asleep
 
8 is evening. 10 is night.
12 is "I should sleep now" and 2 is a mistake
 
2:47 AM
how were your partitions laid out before this
 
I had swap, root, home, efi, boot
I think
 
Oh oh oh woops I misread this df output
On mobile the lines wrap
well ls /mnt I guess
 
Nothing there right now
I unmounted everything
 
mount sda1 again?
 
config-4.17.19-200.fc28.x86_64  grub2                                                    lost+found                                         vmlinuz-4.17.19-200.fc28.x86_64
config-4.18.5-200.fc28.x86_64   initramfs-0-rescue-3be81bd8ca6247f6adfde16a71d00680.img  memtest86+-5.01                                    vmlinuz-4.18.5-200.fc28.x86_64
config-4.18.5-300.fc29.x86_64   initramfs-4.17.19-200.fc28.x86_64.img                    System.map-4.17.19-200.fc28.x86_64                 vmlinuz-4.18.5-300.fc29.x86_64
I think that's /boot
 
2:52 AM
yeah looks fine
so what's on sda3
 
I can't tell:
[liveuser@localhost dev]$ sudo mount sda3 /mnt
mount: /mnt: unknown filesystem type 'LVM2_member'.
 
I'm wondering if like somehow a partition got inserted in between and GRUB config wasn't changed or something
 
The KDE partition manager seems to be a bit smarter than me
 
wait you're usng LVM?
 
I didn't tell it to use LVM, at least
I just went with defaults
 
2:56 AM
what distro is your livecd
 
Fedora 28, trying to recover Fedora 29
 
sudo yum install lvm2 or whatever
 
Looks like ext4 to me
/me twiddles thumbs while dnf fetches repo data
 
Sorry to interrupt, but if I want some help answering a question/learning more about the question and/or topic, what would I do?
 
Says lvm2 is already installed. I installed lvm2-devel because why not, I guess?
 
2:59 AM
sudo vgscan
 
  Reading volume groups from cache.
  Found volume group "fedora" using metadata type lvm2
 
@seadoggie01 which challenge?
@Pavel ok good
 
@seadoggie01 learning about the question: comments on the post or ping the OP in here. Answering: ask here or a language specific room
 
I'm downgrading to F28 after I get my essay back, I think
 
24
Q: 8bit virtual machine

Felix PalmenBackground I like my old 8-bit 6502 chip. It's even fun to solve some of the challenges here on PPCG in 6502 machine code. But some things that should be simple (like, read in data or output to stdout) are unnecessarily cumbersome to do in machine code. So there's a rough idea in my mind: Invent...

 
3:01 AM
Sep 8 at 1:24, by Dennis
@Pavel 29 is still in alpha, no? Good luck...
 
@Οurous Thanks! (Doing it in VBA, so I don't think language room is an option :)
 
@quartata How do I access the filesystem though?
 
@seadoggie01 in general, my advice is to just make it work and then golf it.
 
first do sudo vgchange -a y fedora
 
I'm trying to complete the challenge, (mostly for the experience) but I don't know a ton about low-level operations. I'm pretty good at programming though.
 
3:04 AM
3 logical volume(s) in volume group "fedora" now active
Looks good?
 
sorry needed to check a manpage
 
@Οurous "Just make it work" :D
 
uhhh sudo lvscan I think?
 
  ACTIVE            '/dev/fedora/home' [120.00 GiB] inherit
  ACTIVE            '/dev/fedora/fedora-swap' [8.00 GiB] inherit
  ACTIVE            '/dev/fedora/root' [94.37 GiB] inherit
 
mount that first one
 
3:05 AM
YAAS
MY ESSAY
THANK YOU SO MUCH
 
i dont know what happened to your grub config or why fedora 29 decided that real power users set up LVM for a home and a swap but there you go
grab your crap and run far far away
sometimes when you stare into the bleeding edge the bleeding edge stares back and promptly cuts your nose off
8
 
So I have it partially running in Excel, but the first test example shows the second byte of RAM increasing by 10... is that because the accumulator has a 10 stored in it? I thought that I should be incrementing by 1
 
Yep, got everything important in google drive now
 
i could probably fix your grub if you wanted but
 
I'd rather go back to safety anyway, and reinstalling seems easier than downgrading
 
3:22 AM
@seadoggie01 That is a good question to ask the OP
 
@Οurous Ah. Okay, thanks. I didn't know if this was something that I was blindly overlooking :)
Crap. Never mind. I ignored the goto commands. Doh!
 
 
3 hours later…
6:30 AM
If anyone wants to test dummy this quiz ill be giving out.. it would be greatly apreciated. Please try to complete it in 1 minute and let me know how it goes. If you guys can't solve it in that time I'm certain the intended audience won't either.
 
@AshwinGupta Looks easy enough. Assuming the "intended audience" knows C pointers.
 
And floating point to integer conversion rules...
Actually it seems to be a trick question. o1, o2, and o3 are out of scope after main() runs.
 
At least it's not something to solve in a hurry, 1min is too unforgiving
 
7:08 AM
@AshwinGupta yeah that's certainly a 1-minute question, if the audience knows what a pointer is.
It's bothering me that main doesn't return anything.
Oh I see the note.
 
Dyalog problem solving competition: PPCGer Lynn's bio (about 1/3 down).
 
7:50 AM
Hi! First time posting here, but I heard that it's the place to go to advertise new languages. I've started creating a golfing language called MathGolf, which takes most of its inspiration from CJam, 05AB1E, and some of my own ideas. The main idea behind it is to include 1-byte shorthands for many commonly used values and operators, combined with lots of implicit mapping. Same goes for strings and lists.
Without any boring builtins, I've managed to write a FizzBuzz program which is 22 bytes long, beating the 05AB1E solution by quite a bit. If you want to check it out, you can find it at github.com/maxbergmark/mathgolf , I'd love some feedback and some suggestions for future additions, since there are still 77 unused command bytes, and some operators that haven't been implemented for all data types.
 
@maxb You can also post about it here
 
@Fatalize Thanks! I'll make a post there
 
The best way to advertise a new language however is to simply answer some challenges with it
 
8:07 AM
Oh yeah that reminds me I need to do more work on my language. A statement which I think a large number of people here can relate to.
 
Yeah I want to start doing some challenges with it, I've started doing it on my own. I was a bit unsure if the language needed to have an online interpreter for the answers to be valid, is that the case?
 
An online interpreter is not required
It would help if you link to the interpreters github in your answers if you want to increase awareness of it though
 
0
Q: Yeah But No But Yeah

maxbMy colleague recently sent me the following piece of JavaScript as a joke: let butScript = (nrOfButs) => { for(var i = 0; i < nrOfButs; i++){ if(i % 3 == 0){ console.log("Yeah") } if(i % 2 == 0){ console.log("But") } if(i % 3 ==...

 
An online interpreter does help with getting more people to try your language though
 
I'll try to get my language on TIO when it's more finished, but I guess that I'll start answering questions then!
 
8:17 AM
@maxb if you can answer more than a few questions in it it's way beyond the threshold of finished that TIO needs
 
You can just ask Dennis to pull changes every now and then, it takes mere seconds for him apparently
 
I mean basically the only thing I reliably have working between months is math and IO, and Dirty is on TIO. You can totally put MathGolf on TIO.
Ended up being a more appropriate name than I thought.
 
Is there a guide on how to make your language usable on TIO? I've just focused on getting it working, but I want to make sure that the code page and I/O works properly.
 
You should discuss it with Dennis in the TIO chat room
 
Okay, thanks!
 
 
2 hours later…
10:36 AM
@Neil s/matched/undercut by 3/
@quartata fedora did that for me way back when I originally installed fedora 14(?)
mind you I only recently updated to 28
although, node's much more stable for me now for some reason
(under previous versions node processes would randomly eat 1GB memory and hang...)
 
 
1 hour later…
12:03 PM
Just a quick poll: what do you think about keeping commutativity for operators? E.g. if 5[1]* gives [5], should [1]5* give the same result, or is it better if it gives another result, e.g. [1,1,1,1,1]?
 
@maxb For golfing?
 
yeah
 
@maxb Surely you shouldn't waste precious possibilities by having two ways to write the same‽
 
@Adám That was my thinking, but I also find myself in situations where I have to swap the two items on the stack before applying my operator. I guess you'll have troubles either way.
 
@maxb For a stack based language, commutativity is practical
can lead to a lot of unnecessary swaps otherwise. especially for common operators
 
12:10 PM
@Emigna Guess it's time for some refactoring then
 
:)
 
 
2 hours later…
1:44 PM
@maxb a sacrifice of stack-based languages is that there's a lot of stack management to be done. IMO commutative things should stay commutative, and for commonly used things that aren't commutative (e.g. concatenation, subtraction) it's worth it sacrificing having 2 built-ins for each argument order (though of course that depends on what the language is for)
 
@dzaima I was thinking about implementing reverse-order division/subtraction, since I've had to deal with swapping elements too many times when I've used CJam. I'll see when I get around to it, hopefully this weekend.
 
2
Q: Block-sorting rows and columns in a 2D array

CharlieGiven a 2D array of integers, let's sort its rows and columns in blocks. This means that you only have to sort a given row or column, but applying the transformations needed for sorting it to every other row or column in the 2D array. Rules Input will be a 2D array of integers and a 1-indexed ...

 
2:21 PM
Maybe I'm missing something, but isn't "Yeah but no but yeah" basically FizzBuzz in disguise?
 
@AdmBorkBork I guess it could be seen as a simpler version of FizzBuzz. I didn't think of it when I posted the challenge.
 
@AdmBorkBork yeah but no but yeah
 
When I received the code snippet from my colleague, I wrote a quick CJam program and sent it back to him. That's where I got the idea for the challenge.
 
ovs
@RushabhMehta I got your idea for "Yeah But No But Yeah" to work at 77 bytes.
 
2:37 PM
@ovs It seems as if your input is off by one, i.e. When input 0 is given, the output is what should be given by input 1
@ovs Here it is in python in 75 bytes
 
2:59 PM
@ovs Ooo cool!
 
3:13 PM
I am testing some options for NSP feed. I'm pretty sure that the problem is that the sandbox is too big, feed on smaller questions work fine.
 
3:52 PM
@user202729 This is why code golf is always great at stress-testing SE :D
If I had to guess, I'd bet it broke after 2000 answers
 
@user202729 What if they fixed it, and we didin't notice because NSP is disabled
 
Just tried yesterday it doesn't work.
 
Is it mangled, or does it not come in at all?
I completely forgot we disabled it
 
@maxb Speaking of the sandbox, now that you've posted to main please edit your sandbox post to be only a link and then delete it to help keep the sandbox tidy. Thanks!
 
@DJMcMayhem We went past 2000 long ago.
Probably 2048?
 
4:01 PM
It was working until recently, and recently we would've crossed the 200-page mark
 
Time to launch a new sandbox
 
@Pavel :/
Well we used to have multiple sandboxes in the past but it was abandoned, everyone knows...
(what was the reason for that?)
 
It was decided there isn't any point to it
 
4:23 PM
And I assume the upkeep was a pain
 
4:34 PM
Does anyone know of any links to references of a turing machine that is called "worm" or something that results in very large numbers? I remember it having a property called an "active head"
I can't find specifically what I'm looking for on google
 
@user202729 reasons are sometimes plain consensus, no more
 
4:54 PM
found it
 
 
1 hour later…
W W
6:05 PM
 
6:39 PM
@WW Yep, thanks!
I thought it might be a good construct to use for this challenge
I probably won't make an attempt though. Not too experienced with brainfuck
 
I'm pretty sure most people are aware that windows usernames are case insensitive
but as is turns out, using the windows api to query for nt username preserves the case that the user logged in with
how dumb is that?
 
7:31 PM
Windows is case-insensitive except when It's Not.
7
 
 
2 hours later…
9:04 PM
@WW why does everything related to fast-growing functions sound like a SciFi superweapon.
 
@Οurous BFG(9000)
 
@quartata see that could be Bellmanns Fast Generator
 
9:22 PM
Oh god damn it, Google is killing Inbox.
 
9:39 PM
@mınxomaτ What do you mean?
 
Exactly what I said.
 
How are they "killing" INbox?
 
._.
 
Wtf Google.
I love inbox.
 
9:47 PM
^
 
How does one start a "user outcry"
 
LOL
 
user image
8
 
10:15 PM
@Οurous This is really awful. Inbox is like 70% of my daily phone usage. Argh...
 
@mınxomaτ Well, supposedly all the features have made their way into gmail, so it shouldn't be that bad
 
Haha, good one. Inbox is about the whole UI concept of Inbox. Bundling, pinning, no unread count to stress you. Gmail is never going to get these features, because it works differently at a basic level.
I think their motivation is pretty simple: Inbox = no ads, Gmail = ads.
 
TIL Gmail has ads
And I've been using it for years
 
^ this
 
10:37 PM
I will cherish the day Google asked me to try Inbox by Gmail. It is now a memory of a bygone era
 
@Zacharý goat damn it
 
10:56 PM
That was a serious question.
 
11:13 PM
great thanks for looking over that question yesterday @Οurous @user202729
 
@AshwinGupta no problem
@AshwinGupta I want to add though, that passing the arguments in the reverse order with the same names that they have in main is a bit confusing, and may lead to silly mistakes that aren't a result of being incompetent, but just visually missing the name swap. Something that wouldn't happen in reality because nobody should call their variables that.
Maybe use one two three? And keep the swap? That'll make them pay attention but still be clear.
 
11:44 PM
@Οurous you're totally right, but it was done intentionally. The context is I am interviewing students for a very competetive STEM club at my high school and those who claimed to know C on their application are being tested. As long as the applicants get a 2/3 we are fine. If they switch o1 and o2 values, we will only take off 1 point (not two even though both are technically wrong).
Essentially 2/3 is good enough, but we just want to see who is really paying attention and gets a 3/3 also.
 

« first day (2783 days earlier)      last day (2077 days later) »