« first day (2727 days earlier)      last day (2108 days later) » 

Anonymous
2:01 AM
 
just did some math
correlation between being Following me and being born dangerously high, can we get someone from the CDC to explain this
@Mego Dates input as UNIX timestamps or
year day month also acceptable
 
Anonymous
@quartata Format doesn't matter as long as you aren't getting additional info
 
I would recommend putting the leap year bit in the comments in
Other than that it's straightforward
 
Anonymous
I think the criteria for leap years is common enough knowledge that it's not really necessary to include it
 
2:18 AM
we need a sandbox site that gives everyone the permission to move questions to main
 
?
 
instead of posting sandboxed questions as answers to a meta question, it would be much better to have a way to post them as questions that are then able to be moved to main (like moderators can move questions between sites now)
i don't think it will ever happen (we never got a site design other than the network-wide redesign) but it would be nice
 
3:07 AM
@Mego I think it wouldn't hurt to mention that leap-years don't happen every 4 years
 
 
1 hour later…
4:20 AM
This challenge will be particularly hard for languages that don't have date libraries, if you think that's a problem.
 
5:12 AM
It's a Miracle, I got Funky2 to print the number 3.
 
@ATaco GitHub or no?
 
Publishing now, I'
I've been forgetting to do that
 
Cool
 
And it's all in C#.
Whoops, I thought I .gitignore'd bin and obj
 
@ATaco public static Token claim(StringClaimer claimer){
0/10 lowercase method name
 
5:21 AM
Right, Standards.
I don't like naming it Claim because there's a class of the same name.
 
I have a feeling that Token should be an abstract class since it never seems to be getting instantiated directly but I could be wrong.
 
It very much should be, But I haven't gotten around to it because it doesn't explicitly need Abstract methods
(Static methods cannot be abstract, for some reason)
 
@ATaco Because you can't override static methods
There's no point in making a static method abstract
 
Yeah, it wouldn't make sense to override them anyway, as hiding them has the same effect.
 
Super tempted to go through and fix all the glaring code style issues
 
5:25 AM
I never claimed to be a clean coder.
 
Things not to do ever: call a static method on an instance
Unless you're golfing
 
Well, Good news is I'm not ever doing that.
The bad news is I'm using static methods to provide instances.
 
Well that's ok
 
See: Claim
 
That's like a factory pattern, right?
 
5:26 AM
I believe so?
 
Anyway, that's fine
 
Tokens have a claim method which provides themselves or a subclass of themselves.
But claim can fail, returning null.
 
delegate(CallData dat){ <-- ancient C# 2.0 syntax not seen in over a decade
 
It's literally the only way I know how to do it.
 
dat => {
 
5:27 AM
Danke
 
Or (CallData dat) => if it doesn't compile without a type annotation
 
The best thing about using an OOP tokenizer
is I can actually have Operator precedence
No more horrifying R2L.
 
In this.GetType().Name.Substring(3).ToLower();, what's the Substring call for?
 
That is probably one of the hackiest things that this does.
A Variable's type is just it's class type lowercase without the Var part.
It would 100% be nicer just to hardcode it.
But I uh, Don't.
 
0
Q: Sort odd numbers first

WillmoreSort an array of integers such that the odd numbers come first. Shortest solution wins.

 
5:44 AM
hello
 
5:58 AM
Someone tell Safari that the "Disable Cache" button should disable the cache
 
G'day Mandeleev.
 
6:10 AM
@Pavel if you want to see terrible things, look at the Meta.Get function.
 
o no
 
What's wrong with iterating through a dictionary up to 2^n times?
(On a good day, Metatables can have Metamethods too)
 
> flop
more lowercase methods
 
Flop is a terrible method and deserves it.
 
In VarFunction.cs, why do you have delegate Var Func(CallData data);? You could use System.Func<CallData, Var> instead.
 
6:15 AM
Because I literally only know how to use delegate
 
Builtin types tho
 
I never implied it was a better method to do it.
It's just all I know.
 
@ATaco else if (key is VarString && defined.Contains(key as VarString)) can be else if (key is VarString s && defined.Contains(s))
if(key is VarNumber n){
    return double_vars[n] = val;
}
 
I'll do that as soon as I remember where that is...
 
VarList.cs
The combined type-check and down-cast operation is nice.
 
6:24 AM
Didn't know that was an option for is statements.
That's rather nice, yes.
 
You can also do it with switch/case
switch(foo) { //foo is an Object
    case int i: //do stuff with i
    case string s: //do stuff with s
}
 
6:36 AM
?. is a neat thing.
 
 
2 hours later…
8:08 AM
LASIK is the greatest thing of all time, holy hell
 
supposedly smile is better
2 day recovery instead of 2 months
 
8:46 AM
0
A: Sandbox for Proposed Challenges

Esolanging FruitSolve the Halting Problem for Modilar SNISP code-golf halting-problem decision-problem interpreter In the spirit of Solve the Halting Problem for Befinge, let's define another 2D language called Modilar SNISP. Modilar SNISP has the following six instructions: \ directs the instruction pointer...

 
@Fatalize Elaborate
 
9:11 AM
@mınxomaτ You arrive to the clinic in the morning wearing your glasses, and you leave the clinic a few hours later not needing glasses
enough said
 
So was it LASIK, or SMILE or FLEX? What's the healing time? What was your correction?
 
LASIK, I basically don't feel any pain after a day. My myopia wasn't that bad (like -2 on both eyes)
 
9:27 AM
I'm too nervous regarding my eyes to get any.
I'll stick with Glasses.
 
0
A: Sandbox for Proposed Challenges

CharlieNow remember, kids, we're parked in the Itchy lot code-golf Imagine a representation of a parking lot like this one: ***************** * * * ··CC··C··CC·· * * ************* * * ··CCCCCCCCC·· * * * **********E****** In this representation a * means a wall, a · a fr...

 
9:55 AM
Interesting, the new docker stack format allows one to change the init process
 
10:07 AM
If statements are working, math is #mathmatical
Everything is going well. Too well.
(What did I do wrong...)
 
10:25 AM
To any of the Jelly people: Did you have/develop a TIO chat bot? The one I'm using needs updating due to the removal of OpenID.
 
CMP: What name would you give to the group of statements like if, while, for and such?
 
@Adám looks like it used openid too
 
Flow Control!
 
10:58 AM
@ATaco control structures
 
11:29 AM
2
Q: Setting the time

NitImagine the following 24-hour clock that can be controlled by arrow keys: ╔══╗ ┌──┐ ║00║:│00│ ╚══╝ └──┘ HH mm Pressing the up arrow twice (↑↑) will increase the currently focused hour input: ╔══╗ ┌──┐ ║02║:│00│ ╚══╝ └──┘ HH mm Pressing the right arrow (→) will focus the other input. ...

 
12:17 PM
@xnor do you have a hint for code-golf.io/fibonacci#python ? I’m so curious about the 37
 
12:27 PM
Heres a quick idea: "Write a program within 500 bytes which, given an ideal computer, halts if and only if an axiom system is inconsistent. Answers are ranked by the consistency strength of the axiom systems they implement this program for."
 
wat
 
That's just the elevator blurb, if it becomes a real question, I'll need to flesh out the details
It's inspired by the programs which go on an infinite search for an inconsistency in ZFC or some other theory and halt if they find one
Obviously this does not supply a well ordering of rankings, since some axiom systems, say ZFC+GCH and ZFC+Diamond, can't be precisely compared by consistency strength
But I can circumvent this by acknowledging this difficulty and yield a collective first place to all programs whose consistency strengh is not exceeded by another's
 
12:48 PM
What tags would it go under?
 
1:13 PM
1
Q: Find the Cell's Neighbours

Dom Hastings...or Toroidal Moore Neighbourhoods Given positive integers h, w and a non-negative integer i, return all of the indices surrounding i. You are to assume a matrix consisting of h rows of w elements, numbered from lowest, in the top left-hand corner, to highest, in the bottom right-hand corner,...

 
1:33 PM
@Adám ChatExchange is being updated not to use OpenID
There's a pull request
 
@quartata There is no pull request for TIOBot, just an issue.
 
No no
The library you use
Oh woops
Different TIOBot
Well tunaki already updated so
 
1:51 PM
@quartata I don't see that tunaki changed anything for the last half year.
 
2:03 PM
So build.gradle needs to be modified to point there
 
@quartata Thank you, that's exactly the info I needed!
 
2:20 PM
Hello
 
@quartata It still isn't working:
/TIOBot-src/src/main/java/com/gmail/socraticphoenix/tiobot/TioBot.java:3: error: package org does not exist
import org.sobotics;
Any ideas?
 
@Adám seems like Maven didn't properly download the package
 
@J.Sallé Maybe because of this?
 
@Adám Not sure, tbh. I've never used gradle
@Adám that URL (https://raw.github.com/SOBotics/chatexchange/mvn-repo/) returns an error 400. Not sure if it's because I've tried opening it in a browser
 
 
1 hour later…
3:32 PM
@J.Sallé I'm not sure, how gradle works, but we're not using the "mvn-repo" on GitHub anymore. We moved everything to Sonatype Central Repository: search.maven.org/…
 
4:01 PM
@Adám I think @FelixSFD found the problem ↑
@FelixSFD I also have no clue how Gradle works. I just found it odd that it was pointing to a page that returned an error
 
0
Q: Find the inverse of a 3 by 3 matrix

Beta DecayChallenge Given nine numbers, a, b, c, d, e, f, g, h, i, as input which correspond to the square matrix: \$M = \begin{bmatrix}a& b& c\\ d& e& f\\ g& h& i\end{bmatrix}\$ Find the inverse of the matrix, \$M^{-1}\$ and output its components. Inverse Matrix The inverse of a matrix 3 by 3 obeys t...

 
0
A: Sandbox for Proposed Challenges

Rohan JhunjhunwalaIrrational Array indexing Starts at 3. I came across this brilliant comment from a user named on the r/programmer humor subreddit context for the curious. To fix the duplicate problem, instead take an extra digit whenever you are about to duplicate a key: arr[3], arr[1], arr[4], arr[15], arr[...

 
4:26 PM
I hate trivial answers. I also hate challenges banning built-ins. Oh no.
 
4:44 PM
I banned built ins because people complain that a challenge is ruined if I don't
 
Well well well.
Just make it hard enough.
Plus, competitions are for each language anyway.
The only problem are the upvotes this is the millionth time I said this, I will stop.
Well, probably some trivial answers are interesting.
Yes it is a builtin. But... interesting is subjective...
 
5:10 PM
Ugh writing this worked example is painfully slow
I'm not sure it will help
It's more of same number crunching
 
5:21 PM
f!#%
I wrote all of that just for it to be closed
fml
 
Now you can complains about languages having built-ins?
Looking at the comments, the built-in issue is the main one. Shaggy complains a bit about the defintion, but there was not a close vote for that. Besides, I expect everyone to know what a matrix inverse is.
 
ffs I'll allow bloody built ins
 
For too easy challenges I tend to answer in esolangs.
However I have not found any one that has built-in floating point support.
Unfortunately.
(anyone know of one? please tell me)
 
5:45 PM
@J.Sallé I've meant to ask you: What's your avatar? Is it a Fe (ᚠ)?
 
@Adám Yes, it's a Fehu rune. It's supposed to mean "prosperity", some people use it as "wealth" as well
 
6:26 PM
@user202729 A ton, if you count golf langs...
 
 
1 hour later…
7:37 PM
 
7:52 PM
hi
all
anyone here use pandas? I think I am being really thick. why doesn't this work? P = pandas.Series([0,1,0,5,0,0,0,10,0,1]) pandas.ewma(P)
 
8:17 PM
From Japan, we have a product that disguises your phone charging cable as a VGA style D-SUB connector. You know, for kids. http://www2.elecom.co.jp/products/P-APLTDCNDSUB.html
3
 
9:03 PM
Hi everyone
I have a bit of a conundrum
About a month ago I spilled coke in my laptop. The laptop is fine but in the ensuing panic I disconnected my hard drive and the laptop stopped reading it
In a browser extension called OneTab, I had saved URLs of a great many tabs as a sort of very long list of bookmarks
Unfortunately it was all local
And I can't find that page of URLs in my Opera settings (I have yet to look in my Chrome settings but those were two different lists)
Do you have any suggestions on how I could retrieve my tabs at this stage?
Correction: the incident was just under two months ago now
 
OneTab stores in localstorage I believe
Do you have a disk image to work with
 
Not Roaming?
I have just the hard disk itself with data intact
 
@Sherlock9 Have you tried plugging the hard disk into a different computer?
 
No, but I also don't have another computer to test with
 
do you know how to make a disk image, with dd
 
9:10 PM
No, unfortunately
This data is on Windows 10 may be another complication
 
oh
well that makes my next step of "pop that sucker in parted" more complicated
 
I can imagine
 
I'd recommend seeking guidance from someone who knows how to Windows because I'll probably just break something then
the general work flow is "get a disk image, so you're not doing stuff to the physical drive," then find out if it's just the partition table broken or
 
I mean, I have a Macbook to work with
Could I plug the HDD into that and fix it from there?
Alright, I'll wait for someone who knows Windows then
I was kind of hoping I could just overwrite the current Opera install on my new harddrive with the old Roaming data
But that seems like a risky move
 
 
2 hours later…
11:02 PM
@Lynn I guess my hint would be to think more about making the loop execute for the desired number of steps
 
11:14 PM
@xnor not Lynn, but I think I tried that when I submitted my 38, and it was still 38
 
@EriktheOutgolfer think some more about it :)
 
not while playing Contact :P
 
Anonymous
11:26 PM
@Sherlock9 For starters: Get a hard drive reader that can do read-only mode (writes can and will destroy your data). Then, use WinCDEmu to make a disk image.
 
Anonymous
Then you can start the process of trying to actually restore your stuff
 
Anonymous
Alternatively, you can use your Mac (or Cygwin on Windows, running as admin) to use dd to ensure that you get an accurate image
 
@Sherlock9 by "disconnected", do you mean "ripped apart from its roots"?
 

« first day (2727 days earlier)      last day (2108 days later) »