« first day (2083 days earlier)      last day (3055 days later) » 

Anonymous
00:00
@ConorO'Brien +1 for box drawing characters, -1 for incompatibility with ASCII
@ConorO'Brien you can also make a third alphabet
@Mego I like 0 at 00
@orlp true
@ConorO'Brien put ∅ at 0
Anonymous
Then at least make [0-9A-Za-z+/] match up with their base64 values
Anonymous
@NathanMerrill Instances, load from JSON
00:03
@Mego why?
@Mego you can't do instances with functionality
@ConorO'Brien in the unlikely event that a program can be written using just that subset of your codepage it means you don't need a special editor/converter program to turn it into your code page
I don't follow.
@ConorO'Brien you don't have to follow, you have to understand
follow here is meant to refer to your train of thought.
00:07
@ConorO'Brien now you're talking about trains
@ConorO'Brien you do realize a codepage isn't just for fun and giggles?
it maps unicode characters to bytes
your interpreter reads those bytes
(not the unicode)
@orlp that's what I'm doing it for. >_<
now
Anonymous
@NathanMerrill Why not?
if you put a-z etc on the position where they are in ASCII
then you don't need to convert from UTF-8 to your codepage
if the program you've written only uses ASCII characters from your codepage
@Mego because I can't write Java code in JSON
the act() function is the entire reason I'm overriding/implementing the class
00:17
I will achieve world domination
user image
3
GO FORTH MY MINIONS
Anonymous
@NathanMerrill Make it an interface, use reflection to create the instances
that sounds like an absolutely horrific idea
Anonymous
No more horrific than using Java
(I.e. Yet another JS took to make JS harder to grasp)
Anonymous
Really JS just needs a complete rewrite
Anonymous
00:25
And a proper stdlib instead of a bajillion external modules/tools
and you were saying Java is horrific?
Anonymous
Both are
Anonymous
Dynamically load the instances/implementations so that you can add new abilities without needing a restart
Anonymous
Bonus points for dynamic removal and editing of abilities
00:29
@Downgoat gaot can't spele
it still sounds like a terrible idea. You lose all of the advantages of java
Anonymous
Remind me again what those advantages are :P
Anonymous
If you're going to do it at compile-time, with static abilities, the best way to do it would be to have the Ability interface and anonymous singleton classes that implement it
Anonymous
So like:
Anonymous
00:37
public interface Ability { void do(); }

Ability fireball = new Ability() { void do() { launch_fireball(); } };
did you make that on the spot?
00:50
@Mego So, you'd put a list of all 50 abilities in a static class?
Anonymous
@NathanMerrill If you're unwilling to dymanically load them, yep
Any good simple stopwatch programs for Ubuntu?
I will end you
@ΛεγίωνΜάμμαλϠΟΗʹ to time how long it takes to run a program?
time <command>
@orlp No, timing a presentation of mine
@ΛεγίωνΜάμμαλϠΟΗʹ just google 'stopwatch' and use that one :P
Anonymous
00:55
time cat and ctrl-d when you're done
@Mego Nah, need a continually updating one
Anonymous
I'll write you a Python script real fast
I guess a Bash clear/something loop could do it
Nah, Google's is fine
Anonymous
#!/usr/bin/env python3

import time

seconds = 0

try:
    while True:
        print("\r{}:{:02}".format(seconds//60, seconds%60), end='')
        seconds += 1
        time.sleep(1)
except KeyboardInterrupt:
    pass
finally:
    print()
Anonymous
There, made it even though you don't want it :P
01:04
@Mego 0/10 doesn't clear screen
Anonymous
I'm actually quite proud of that
Anonymous
>_>
Anonymous
#!/usr/bin/env python3

import os
import time

os.system('cls')
os.system('clear')

seconds = 0

try:
    while True:
        print("\r{}:{:02}".format(seconds//60, seconds%60), end='')
        seconds += 1
        time.sleep(1)
except KeyboardInterrupt:
    pass
finally:
    print()
@ΛεγίωνΜάμμαλϠΟΗʹ watch -n 1 date
Anonymous
01:06
Are you happy now?
@Mego ...that's really cool
@Mego 1.71/10 leaves previous times on screen
not for me?
@ΛεγίωνΜάμμαλϠΟΗʹ what OS?
Anonymous
@ΛεγίωνΜάμμαλϠΟΗʹ No it doesn't. Get a good terminal that recognizes \r
oic didn't notice it
01:08
the first one works for me also
@ΛεγίωνΜάμμαλϠΟΗʹ clear;python3 .time.py
Anonymous
So you complained about the program not doing something, but didn't actually test to see if it did it?
Anonymous
0/10
no no no, it's 1.71/10
01:08
@ΛεγίωνΜάμμαλϠΟΗʹ what about my bash oneliner?
Anonymous
@seshoumara 2/10 requires installing a package
@seshoumara works great
@Mego what package?
Anonymous
Oh, huh, apparently it's a GNU util. Wonder why it's not bundled with coreutils in cygwin...
Anonymous
But that only displays the current date - it's not a stopwatch
01:11
@Mego idk, I just installed all packages on it :p
Anonymous
-10 for not meeting requirements, -1 for not being cross-platform. Final score: -1/10
Anonymous
See me after class
ima go, got a presentation to finish
is this valid java?
0
A: Draw an ASCII chess board!

416E64726577Java 6, 180 bytes String f(){return(new String(new sun.misc.BASE64Decoder().decodeBuffer(("cm5icWtibnINCnBwcHBwcHBwDQo2uLg0KLi42NCi42uDQo2uLg0KUFBQUFBQUFANClJOQlFLQk5S".replace("2","uLi4uLi4")))));} Not only does this answer use the sun.* library, but simply returning the output string would s...

Anonymous
Good luck
01:12
@ΛεγίωνΜάμμαλϠΟΗʹ see ya
@Mego Probably because it's not a coreutil. It's part of procps.
@EᴀsᴛᴇʀʟʏIʀᴋ yeah, just uses some superfluous parentheses
Anonymous
Why isn't that a default package on cygwin? :(
@ΛεγίωνΜάμμαλϠΟΗʹ within the range of ungolfed?
or just a bit naive
Anonymous
01:14
I swear, once I get my Windows install fixed, I'm installing WSL and alwsl and never looking back
s/m .+/m installing OS X and giving up on Windows entirely./
@EᴀsᴛᴇʀʟʏIʀᴋ If they explicitly state that they could take off 70 bytes, I would call it ungolfed
@EᴀsᴛᴇʀʟʏIʀᴋ I mean, the author says themself, it's longer than just printing the sting
hm, okay
@DJMcMayhem I upvoted your comment.
01:16
: Gender-neutral pronouns that nobody argues over the plurality of EDIT: and don't sound weird and unnatural
o,s;void S(n){o=puts("");}main(){for(signal(2,S);!o;sleep(1))printf("\r%d:%02d",s/60,s++%60),fflush(stdout);}
Anonymous
@ΛεγίωνΜάμμαλϠΟΗʹ shmee
@ΛεγίωνΜάμμαλϠΟΗʹ not gonna happen
"They" is good enough for me
@ΛεγίωνΜάμμαλϠΟΗʹ dhje
01:20
@ΛεγίωνΜάμμαλϠΟΗʹ ko'a
(Hey, you never specified English...)
Please stop pinging, it's making everything lag 'cause apt
Stop making feature requests and people will stop pinging (as much) :P
Anonymous
01:24
@Geobits Damnit
is there a way to do an efficient "after X has occurred Y times" event?
Anonymous
Fire it every time X happens, and keep a counter. Increment it every event. Once the counter reaches Y, do the thing.
I mean, I can listen for X, and increment a counter each time it occurs, but there's a better way, right?
@ΛεγίωνΜάμμαλϠΟΗʹ now it's a stopwatch: for((;;)){ clear;date -u -d @$[$(date +%s)-$t0] +%H:%M:%S;sleep 1; }
Anonymous
@NathanMerrill The other way would be to keep the counter on the other side and only fire the event when the counter reaches Y
Anonymous
01:26
But that's much less clean, since you'd have the after_X_Y_times logic mixed with the X logic
@ΛεγίωνΜάμμαλϠΟΗʹ forgot to define t0
t0=date +%s;for((;;)){ clear;date -u -d @$[date +%s-$t0] +%H:%M:%S;sleep 1; }
I'm going to have lots of "after X turns" events
damn, the chat ate all my backticks
incrementing all of them seems kind of silly
TIL Perl is C derived programming language
Anonymous
01:27
@seshoumara Escape them with backslashes
Anonymous
@NathanMerrill Keep a single turn counter, and have those events wait to do anything until their specific turn counter value comes up
third time's the charm
t0=$(date +%s);for((;;)){ clear;date -u -d @$[$(date +%s)-$t0] +%H:%M:%S;sleep 1; }
Anonymous
And then un-register them
Anonymous
@seshoumara 2/10 it skips
skips what?
Anonymous
01:30
Every ~15 seconds it skips a number
not on my end
I can't believe nobody voted on my strawpoll :(
Anonymous
It does for me
then try sleep 0.5 instead
Anonymous
Then that's too much flashing
01:32
it's no pleasing you, is it? :)
Anonymous
Sure there is. Make it work just like my script, and I'll be happy. :)
it was an alternative in bash, a oneliner at that
:O :O :O :D :D :D :D :D \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ Operator Overloading in Cheddar works!!!!!!!
Created an animal named Max
It is 3 years old
It's name is Max
It's age is 3
Created an animal named Downgoat
YOU CANT ADD TWO ANIMALS TOGETHER SILLY
is output for:
class Animal (private string: name, public number: age) {
    init {
        print "Created an animal named %s" % self.name;
    }

    binary op + (a, b) {
        print "YOU CANT ADD TWO ANIMALS TOGETHER SILLY"
    }

    func getName -> self.name;
    func getAge  -> self.age
}

let myDog: Animal = Animal { "Max", 3 };
print "It is %d years old" % myDog.age;
print "It's name is %s" % myDog.getName();
print "It's age is %d" % myDog.getAge();

let myGoat: Animal = Animal { "Downgoat", 5 };
myDog + myGoat;
@Downgoat Looks like Goat Emotion Overloading works too.
01:40
s/It's/Its
Always remember: It's an apostrophe.
Or its apostrophe is missing o_o
@Geobits >_>
@Geobits *s/ts/ts\//
Anonymous
The best part is, he used it is immediately before that
01:42
> YOU CANT ADD TWO ANIMALS TOGETHER SILLY
is that the serious error message
-.-
Downgoat is younger than Downgoat
wat
are you? ( ͡° ͜ʖ °)
Anonymous
I don't understand how someone can make it through the third grade and still mess up contractions vs possessives
Anonymous
It's really not that hard
Downgoat
TIL Max the Dog is Downgoat
01:45
@EᴀsᴛᴇʀʟʏIʀᴋ I took a page from JS on this one. Trailing slashes are automatically inserted :P
@Geobits s/JS/Vim
Nope. I take nothing from vim.
pls halp JS this.name = a sets this.name on all object of the class
@Mego Its understandable. We cant all be perfec't.
Isn't that because JS objects are barely really objects?
01:48
yeah but im using babel
JS Objects are basically hashmaps
functions are a weird object/class mutant
@Geobits wat
why is that a thing
@Downgoat for chedr: pls no autocomplete slash
wat
gaot is vrey confus
It was supposed to be a ref to semicolons, but it's not really worth explaining or defending at this point :/
:O I have a package from stack exchange!
Is it swagalicious?
01:52
It is indeed
Is it from Iceland? Last time I got swag I think it was.
@DJMcMayhem picture please
@EᴀsᴛᴇʀʟʏIʀᴋ sure, one min
What did you get it for?
01:55
English language learners.
I was a top user during beta
Nice. I'm due puzzling swag IIRC.
Sorry for potato quality
I hope I get PPCG swag when/if they distribute it.
01:59
You should. Top two user pages at grad time, which I'm sure you were.
It'll be November at the earliest though, since we won't get our design until then.
It's too bad I wasn't active until graduation. I would love PPCG swag
Maybe I could convince them to donate some
I want a beanie.
I'd buy some for $20 :(
@DJMcMayhem Good luck. Last time I remember someone asking for a mug on Meta (that worked, anyway), they turned it into a haiku swag contest. Most of the time, though, it just gets downvoted and closed ;)
> dshorter (who asked this question) will receive the mug that he asked for in the first place. Sorry about hijacking your question and turning it into a bizarre haiku contest. Well, no, I'm not really sorry.
02:04
@DJMcMayhem um..
TIL you is spring disguised as hat
Sounds legit
I, for one, must protest the site immediately: imageidentify.com/result/13lbgkssrp1c2
10
@EᴀsᴛᴇʀʟʏIʀᴋ lol
@Geobits Hm, I would have expected "down arrow".
But that works too.
I'll probably get swag if/when vi.SE ever graduates
you think the knob will?
02:17
Welp.
woah
type-a-message-of-the-keyboard effect
@Doorknob you should change your name to "first-aid-kit fire"
Okay, I am not the grinch.
@EᴀsᴛᴇʀʟʏIʀᴋ I'd be shocked if he didn't
02:27
I beg your pardon, sir?
@Sherlock9 Wolfram is stupid. Clearly that's a binocle.
what about me
@DJMcMayhem How many lenses till we get a pinochle?
I thought that was just a reanimated wooden puppet with a monocle
@Sherlock9 3.1415926
Xnor's python game on point, as usual.
1
A: Draw an ASCII chess board!

xnorPython 3.5, 56 bytes for r in['rnbqkbn',*'p....P','RNBQKBN']:print((r*8)[:8]) This uses an idea by zawata to encode each line as (r*8)[:8], with a string repeated 8 times and trimmed to length 8. The pawns and empty rows are just 'p'*8, '.'*8, and 'P'*8, with no trimming. The first row uses ...

02:51
is it me or the longest time one waits for an upvote is right before a milestone?
@DJMcMayhem actually i didn't figure out the key idea until i zawata's answer
@DJMcMayhem Dam it. I should have thought of that XD
@xnor why 3.5 not 3
@ASCII-only * unpacking in Python 3
Wait, Python 2 has no unpacking?
03:01
Not with *
You get a syntax error
D: D: TIL
10
A: Python: unpack to unknown number of variables?

Evan FosmarkYou can use the asterisk to unpack a variable length. For instance: foo, bar, *other = funct() This should put the first item into foo, the second into bar, and all the rest into other. Update: I forgot to mention that this is Python 3.0 compatible only.

more specifically, python 2 can unpack function args, python 3 can unpack variable assignments, and python 3 can unpack inside of lists and the like
Well, I was going to edit that link to remove the onebox, but it has the whole post in there already, so never mind.
03:26
Right now I'm trying to figure out how difficult it would be to write a custom LLVM backend.
The answer so far appears to be "very difficult"
Backend? I'd think so
What are you trying to write a backend for?
Also it's slightly easier if you follow the guide
for Quest-for-Tetris. It would basically allow us to compile a ton of languages.
To QFTASM?
yes
I know you're thinking "that sounds horrendously impractical" but so is everything else.
No, it doesn't look very impractical
03:31
wat wat wat
But you may need more target machine info first - endianness, pointer and number sizes
@Downgoat halp what am i, i don't think i can access that at school
@Downgoat That's a good thing, it means you don't need to change your profile picture for Halloween
@Downgoat do you still think the PPCG logo is no good?
@PhiNotPi When you're trying to write a LLVM frontend for a high-level language, nothing sounds horrendously impractical
03:49
I'm looking at CIL right now.
@PhiNotPi Wait wat
Common Intermediate Language (CIL, pronounced either "sil" or "kil"), formerly called Microsoft Intermediate Language or MSIL, is the lowest-level human-readable programming language defined by the Common Language Infrastructure (CLI) specification and is used by the .NET Framework and Mono. Languages which target a CLI-compatible runtime environment compile to CIL, which is assembled into an object code that has a bytecode-style format. CIL is an object-oriented assembly language, and is entirely stack-based. Its bytecode is translated into native code or — most commonly — executed by a virtual...
Yeah, I know, I used C# for the whole of last year, but I'm just wondering why
What do you call the horizontal bar in a capital G?
@HelkaHomba I think it may be a "bar"
@HelkaHomba - Nope, it's a "spur"
Typeface anatomy describes the graphic elements that make up printed letters in a typeface. The strokes of a letter are the lines that make it up. Strokes may be straight, as in k l v w x z, or curved, as in c o s. If straight, they may be horizontal, vertical, or diagonal; if curved, open or closed. Typographers also speak of an instroke, where one starts writing the letter, as at the top of a c f, and an outstroke, where the pen leaves off, as at the bottom of c e j k t y. A main vertical stroke is called a stem. The letter m has three, the left, middle, and right stems. The central stroke of...
Thanks
Father is a graphic designer, pick up the lingo :p
@JonathanAllan the spur is something different...
oh, so then it's a "bar"
04:00
the spur is that little thing, I think "bar" is most correct, although I can't find any source with G as a particular example
maybe even a crossbar
@PhiNotPi That's because it used to be only a serif I think, and still is in most serif fonts
I think bar is most correct as crossbar connects on both sides
It's a counter apparently
Also crossbar is just a bar crossing any other part of a letter I think, e.g. t and f
I'm just gonna say bar
04:04
oh, was just about to suggest asking on graphicDesign.SE :)
0
A: Sandbox for Proposed Challenges

Jonathan AllanDigital Diversity A positive integer may be represented in an integer base 1 < =b < inf. When converted to that base it has some number of distinct digits. Any positive integer in base 1 has 1 distinct digit. Most numbers in base 2 have 2 distinct digits, the exceptions being those of the for...

according to this the t would be a crossbar, yes
(6) obviously
@ASCII-only I don't think "counter" is correct either. I saw that image already, and I think I figured out that the line next to "counter" is actually pointing to the inside of the G.
It just coincidentally happens to be parallel to the thing we are wondering about.
but note that (16) is a "horizontal bar"
yep (11) is "counter"
Maybe a good one for GraphicDesign.SE after all :)
@PhiNotPi Yeah, I was just reading Wikipedia and it said the counter is a space
04:09
"A short horizontal stroke, as in the center of e f t A and the middle stroke of E F, is called a bar."
same article on wikipedia that point to the (6) as a "crossbar"
any thoughts on Digital Diversity ^?
Why I was asking:
0
Q: Appease Your Google Overlords: Draw the "G" Logo

Helka HombaWrite a program or function that takes in a positive integer N, and outputs an N×N pixel image of Google's "G" logo according to this* construction: For example, if N is 400, a 400×400 pixel logo should be output, with correct dimensions and colors: It should look accurate regardless of...

Oh yay SVG scaling, no internet from laptop though ;_;
calls it a crossbar
@HelkaHomba ^
04:51
@Geobits yeah i've not been very active on main for the last few months. I promise I'll be back to collecting green internet points after marching band is over
1
Q: Appease Your Google Overlords: Draw the "G" Logo

Helka HombaWrite a program or function that takes in a positive integer N, and outputs an N×N pixel image of Google's "G" logo according to this* construction: For example, if N is 400, a 400×400 pixel logo should be output, with correct dimensions and colors: It should look accurate regardless of...

Anonymous
@Maltysen You're in marching band? All is forgiven. Point those toes higher, though.
@HelkaHomba impressive
05:02
@Mego oh have you done marching band too? what do you play?
Anonymous
@Maltysen I did marching band in high school, clarinet
cool
Anonymous
It's been a few years, but I still have the tendon and ligament damage :P
It rhymes with the answer... but otherwise not so good imageidentify.com/result/00jr3i8727ya9
@Mego haha, yeah it really strains your calves
especially the backwards
Anonymous
05:05
@Maltysen Most of the damage is in my arch and heel, actually
Anonymous
I got (and still have) killer calves, though
05:54
;_; I don't know what exactly you would call my profile picture though
Anonymous
Fish?
It's not exactly a fish though
Might mislead Wolfram
Anonymous
Well it can't recognize a friggin penguin
Anonymous
So why would it recognize that?
06:03
@Mego Well, yeah, it's a photo
I'd expect for it to be trained mainly on photos
 
3 hours later…
08:49
0
A: Sandbox for Proposed Challenges

Kevin CruijssenKevinC's Sequence Could use a better title / sequence-name.. code-golfnumber-theorysequence Input: A positive integer n. Output: In this sequence we start with the decimal number 1/n. Then we take the sum of digits up until the n'th digit after the comma (1-indexed); followed by the sum of...

09:02
I missed drama yet again :(
@Fatalize Drama?
see first star
Yeah, looks like the King of Drama is back tried to come back
Was back.
Proof that Vim > Emacs:
Emacs /ˈiːmæks/ and its derivatives are a family of text editors that are characterized by their extensibility. The manual for the most widely used variant, GNU Emacs, describes it as "the extensible, customizable, self-documenting, real-time display editor". Development of the first Emacs began in the mid-1970s and continues actively as of 2016. Emacs has over 2,000 built-in commands and allows the user to combine these commands into macros to automate work. Emacs Lisp provides a deep extension capability allowing users and developers to write new commands using a dialect of the Lisp programming...
(Links to the subsection entitled "Emacs pinky".)
09:17
evil-mode looks like the best solution
> Richard Stallman as St IGNUcius, a saint in the Church of Emacs
What the hell…
Well, y'know, people and their religious fanaticism...
 
1 hour later…
0
A: Sandbox for Proposed Challenges

ʰᵈˑLetter-correct challenge The idea is simple. You've to create a "visualised" letter-correct, by providing 3 strings (input can be comma separated, separate inputs, or as an array). The first segment is the word you want to correct, and the second segment is the letters you want to replace, and t...

11:08
@Dennis - created pull for Factorial and Primorial base conversions... not sure how I should build Jelly to test (so link attrdicts may not be right) - if you want me to do so, let me know what to do
Allo allo!
11:46
!olla ollA
  0 1 2 3 4 5 6 7 8 9 A B C D E F
0 ₀ ⬚ ¶ ' " ` ~ | @ # $ % & + - *
1 × ÷ / \ ( ) { } [ ] ⊏ ⊐ < ≤ > ≥
2 = ≠ , ; . : ! ? σ Σ γ Γ ρ α β π
3 ω ¯ a A b B c C d D e E f F g G
4 h H i I j J k K l L m M n N o O
5 p P q Q r R s S t T u U v V w W
6 x X y Y z Z 0 1 2 3 4 5 6 7 8 9
7 ← → ↑ ↓ ò ó
8
9
A
B
C
D
E
F
Codepage of my language
you have A B C D E F twice?
oh nevermind
first line looks like it's part of the page -.-
._.
        a←1
"a\e1"
Huh
Even by opening STDIN with r:UTF-8 the arrow is transformed in some sort of weird ASCII control code
/usr/bin/env: ruby --encoding utf-8: No such file or directory
ok
12:38
How to make vim not add a newline in a file?
by not using it
;_;
Hello world in Y: ∅O⊏"Hello, World!"⊐
seems long
∅O is the print function, ⊏args⊐ is the call syntax
why not just ()
1
Q: Code that detects changes on itself

Golo RodenChallenge: Write a piece of code that only runs when the code is not being altered. If you change anything, the code should detect this and deny running. Of course, it should not be possible to just alter the detection mechanism (since this is a change in itself).

0
Q: Error in c programming

amit kumarI am new in c programming. i described all the variable and the problem i got is 3d=a+b+c is wrong d=(a+b+c)/3 is correct Why is it so?

@NewMainPosts ಠ_ಠ

« first day (2083 days earlier)      last day (3055 days later) »