« first day (2343 days earlier)      last day (2502 days later) » 

9:05 AM
Oh nooooooo
 
Jim
@Mendeleev Clearly one of my favorite games
 
Doesn't everyone love FTL?
 
FTL: Faster Than Light is a top-down roguelike space ship simulator created by indie developer Subset Games, which was first released for Microsoft Windows, OS X and Linux in September 2012. In the game, the player controls the crew of a single spacecraft, holding critical information to be delivered to an allied fleet eight sectors away, while being pursued by a large rebel fleet. The player must guide the spacecraft over eight sectors, each with planetary systems and events procedurally generated in a roguelike fashion, while facing rebel and other hostile forces, recruiting new crew, and...
 
Okx
oh i though it meant free to lose
:P
 
How often do the mod elections take place?
 
Okx
9:21 AM
yearly
 
46
Q: When do moderator elections take place?

ThursagenI'm really confused on this. I have no idea on several things: When do elections begin? Is there a set time each year? Do elections actually take place each year? Can I vote? Where do I vote? Etc. Can someone please help me?

Thanks anyway, googled
 
@MartinEnder OK, I've removed "regex" since PCRE is the grandfather of all the advanced regexes.
I still think .NET is missing. No C# derivs?
 
@Adám well, if anything then Perl is...
 
Anonymous
4 messages moved to Trash
 
9:37 AM
@MartinEnder Perl is the parent of PCRE on the chart.
 
@Jim IMO FTL has the best soundtrack of all the games I've played
 
Anonymous
@Mendeleev But Bastion and Transistor
 
@Mego Have not played those
 
Anonymous
I highly recommend both. Great storytelling, gameplay, and soundtracks.
 
@Adám right, the point is that Perl's regex syntax inspired most modern regex flavours (including PCRE), not PCRE (obviously)
@Mego this. although their narration is even more impressive than their soundtracks.
still need to revisit and finish Transistor though
 
Anonymous
9:42 AM
@MartinEnder I like the narration, but I'm very much a music guy, so personally I think the soundtracks are their best quality.
 
Okx
wait, you're not a penguin?
 
well, I guess I'd also consider myself "a music guy" at least in terms of enjoying and appreciating it (not so much in terms of making music myself). I was just really impressed by how well the narration flows even if it responds to player choices.
 
Jim
@Mendeleev I agree
 
@Jim yay
 
Anonymous
@MartinEnder The last level of Bastion had really good narration
 
9:45 AM
that ending was phenomenal. best game ending I can think of.
 
Anonymous
Also I didn't realize at first that the same guy narrated Bastion as Rucks also narrated Transistor. Completely different styles.
 
@MartinEnder I ran out of YouTube links. Got any suggestions that I can drop into the Practice Room? :P
 
All I know about Transistor is that it's about a sentient sword
 
suggestions for?
@Mego oh, just noticed that the release of Pyre is only a month away... maybe that'll motivate me to get Transistor done by then
 
Good music. To add some variety to what I listen to.
 
Anonymous
9:49 AM
@Mendeleev It has very different gameplay mechanics compared to Bastion, but it's fantastic
 
@Mego What's the genre?
 
@Mithrandir I mostly listen to post-rock (i.e. mostly instrumental rock), and some math rock and hardcore. some post rock gems that come to mind: youtube.com/watch?v=MAEJ6pX8-W0 youtube.com/watch?v=dne11-PA3JQ youtube.com/watch?v=SBOVkptjJhE
 
@MartinEnder do you know year of no light?
 
@MartinEnder hardcore like hardcore rock? Or the genre hardcore?
 
9:53 AM
@flawr I do, but I've only ever really gotten into Ausserwelt
 
Xcoder and Mego are the only people on the starboard...
 
I clicked the middle one. How is it supposed tob e related to rock?
 
@Mayube the genre hardcore/post-hardcore.
 
@Mayube And feersum as well
 
@feersum how is it not?
 
9:54 AM
interesting, quite a contrast to the other styles you listed
@Mr.Xcoder oh yeah missed that one, nevermind then
 
Ah well the first 2 minutes just sounded like an air conditioner.
2
 
@feersum True ^
 
@Mayube yeah I guess, although I've found that there's a surprising amount of overlap both in terms of bands and of fan bases. the biggest post-rock oriented festival I know (in the UK) also has equal amounts of bands from those three genres
 
I need a .NET collection for an example, what would be a simple (shortest?) way to get one?
CMC: Return a .NET collection.
 
@MartinEnder I just ordered that album, the other one I really like is tocsin
 
9:56 AM
@Adám Ruby: ->{'a .NET collection'}
 
@flawr I don't think I've heard that one. I think I'd listened to Vampyr, but I only just found out that it's a live album.
 
@Mendeleev Loophole.
 
I might have listened to Nord as well at some point
 
@Mr.Xcoder is joke
 
I know :P
 
9:57 AM
It's 3 AM here. I need to go to sleep.
 
@Adám Ninja'd
 
ah right
 
@Adám I knew that.
 
Anonymous
@feersum You've summed up hardcore very well
 
Anonymous
@MartinEnder @Mithrandir I'm a big fan of all things progressive. Dream Theater is by far my favorite band.
 
Anonymous
9:59 AM
Pink Floyd is up there for me, too
 
Progressive like from smooth to hard?
 
Looks like I'm definitely talking to people with very different tastes :P
 
Anonymous
@Mr.Xcoder Progressive as in "who needs consistent, normal time signatures?"
 
I guess the only band I listen to that is primarily labelled as prog is Karnivool, but math rock and some hardcore also have a lot of overlap with prog rock/metal
messed up time signatures are the best
 
@Mego oooh. Those are awesome.
 
10:01 AM
Sya, GTG
 
Anonymous
The Dance Of Eternity being very prog is practically a meme at this point
 
@Mr.Xcoder o/
 
@MartinEnder math rock (?)
 
very technical, also lots of weird time signatures
 
But even more strange is when you have more than the standard notes in an octave.
Like
 
10:02 AM
can range from fairly soft stuff with emo/indie-like vocals to fairly hard instrumental rock
 
Do we have a challenge for printing A\nBC\nDEF\nGHIJ\n...?
 
I'm more of an EDM guy myself, been into liquid DnB and japanese EDM lately
 
Okx
CMC: Do that ^
@KritixiLithos yes we do now
 
@KritixiLithos should that last one be GHIJ?
 
10:07 AM
26 is non-triangular, so this challenge cannot exist.
 
yes... I messed up there
 
@KritixiLithos Something like ↑⎕A⊂⍨26↑∊1↑⍨¨+\⍳6?
 
@feersum okay then, how about the pattern repeat for 3 alphabets concatenated together? (26 × 3 = 78 which is triangular)
 
@Mego you might like scale-the-summit.bandcamp.com/album/the-migration if you're into prog
 
Surely some language has a triangularly-sized alphabet.
 
10:10 AM
@feersum Hebrew.
 
Anonymous
@MartinEnder I've heard of them, but I haven't listened to them yet
 
@Adám no, the lengths of each run is only one more than the previous
throughout the pattern
 
@feersum עברית?
 
what's the smallest triangular number you can add to 26 to make a triangular number?
ah, 10
 
Which version of Hebrew alphabet has a triangualr number?
 
10:13 AM
so if you start the alphabet triangle with ABCDE and go up from there, it'll work fine
ABCDE\nFGHIJK\nLMNOPQR\nSTUVWXYZ
 
Anonymous
@Mayube Alternatively, English alphabet + digits
 
@Mayube 2
oh, triangular nubmer
 
@MartinEnder 2 is not a triangular number
 
@Adám ⍪{⍵↑⎕A↓⍨+/⍳⍵}¨⍳8, IO 0
@feersum all of them, though 15.2 might not
 
10:15 AM
@Uriel try that for three alphabets concatenated together so that the end result will still be a triangle
 
I just impulse bought a Steam Link. ;-;
 
@KritixiLithos ⍪{⍵↑(+/⍳⍵)↓⎕A,⎕A,⎕A}¨⍳13?
@Mego ⍪{⍵↑(+/⍳⍵)↓⎕A,⎕D}¨⍳9
 
@Riker im generally online between 08 - 23 UTC
 
@Uriel you can drop the parentheses around ⎕A,⎕D and ⎕A,⎕A,⎕A
 
Really? No .NET guys in here?
 
10:21 AM
I'm more of a .ORG guy.
 
Anonymous
@Adám Oh, I missed your question. What kind of Collection are you looking for?
 
@Mego Anything.
 
is the type of the collection's elements irrelevant as well?
 
@MartinEnder Pretty much, yeah.
 
Anonymous
A (C#) List<int> would probably be easiest: List<int> lst = new List<int>({1, 2, 3, 4, 5});
 
10:23 AM
@Mego I'd assume such a simple thing does not require the very latest .NET, right?
 
how about "".ToList()?
 
@Mego can you skip the first List<int> for var?
 
Anonymous
@Adám Of course not. 2.0 introduced generics.
 
Anonymous
@Uriel Yes, but I don't like to.
 
10:24 AM
why not? o_O
it's visual bloat that adds no additional information
 
@MartinEnder Strange. My .NET string does not have a ToList method ⍨
 
ToList() is provided by Linq
 
Anonymous
@MartinEnder I prefer having the types as part of the definition in strongly-typed langs
 
@Mego Something off here.I'm on 4.0 and can't create a list.
 
Anonymous
My inner C programmer won't let me use var :P
 
10:26 AM
@Adám using System.Collections.Generic;
 
Anonymous
@Adám What code are you using? The code I posted above?
 
@Uriel I was/am trying a solution using the partition function provided by with ⎕ML←3
 
Anonymous
@Mayube Also that
 
@Mego well, c++ has auto
 
Anonymous
@Uriel Not when I first learned it :P
 
10:26 AM
It also has writing the type only once, period.
As in vector<int> lst{1,2,3,4,5};.
 
Anonymous
@feersum Yeah, C# could do with initializer lists
 
Anonymous
auto was introduced in C++11. I learned C++ in 2009, and didn't know anything about C++11's planned features, or the beta implementations (like C++0x).
 
@Mayube Yeah, turn out it is the type specification that made troubles.
@Mego It is in APL.
 
Anonymous
And that's not touching on auto's previous use as a storage class :P
 
Anonymous
10:35 AM
@Adám Then I can't help you :P I haven't found time to learn APL yet
 
Anyway, now I have a way to create an array. Thank you all anyway.
 
Anonymous
Glad to help
 
@Mego Never too late.
 
Anonymous
@Adám Oh, I intend to learn it. I've just been too busy with work lately to do any language learning or development.
 
def prop(a,b):
	for i in range(2,a):
		c= 1
		d=1
		if sq(i):
			while (d < b):
				e = (i*d*d)+1
				f = int(e**.5)
				if (e - f*f)==0:
					print(f,i)
					d = b+1
				else:
					d = d+1
		else:
			print("Square ****",i)
For b > 100000, why the python code magically stops at 60?
 
10:38 AM
@Uriel ehhh, I get this using partition, ⊃(⎕A,⎕A,⎕A)⊂⍨{1++/⍵>+\⍳78}¨⍳78
 
@KritixiLithos +\⍳⍵}¨⍳78
 
1
Q: Triangular Dependencies

MayubeA triangular number is a number that is the sum of n natural numbers from 1 to n. For example 1 + 2 + 3 + 4 = 10 so 10 is a triangular number. Given a positive integer (0 < n <= 10000) as input (can be taken as an integer, or as a string), return the smallest possible triangular number that can ...

 
@Mego (You know python, right ?) Did you see my above question ^^^ ?
 
@KritixiLithos (⎕A,⎕A,⎕A)(78⍴⎕A)
 
thanks
 
10:47 AM
Hmm, we have challenges such as largest number in 10 bytes. What about smallest positive real number in x bytes?
 
@Mithrandir repost alert! Lol
 
Yeah, I do that when I like things ;P
 
@Mayube Everyone will find an answer for 1
 
@Fatalize 0.1 < 1
 
@Mayube 1/MAX_INT
 
10:53 AM
@Downgoat wouldn't work in all languages, wouldn't necessarily work if byte limit was 5, also I think you can get smaller than that
 
Actually i think CGFloat might have smallest number built in brb
CGFloat.leastNormalMagnitude
Doesn't work with such small byte limit though
Wait DBL_MIN works for 7 byte
 
Anybody knows python ?
Nobody knows python ?!
 
nobody knows python
nobody in the entire world
 
Mayube, mayube is true.
 
I know some
 
11:04 AM
@totallyhuman What's happening here ?
 
Stops at 60 what?
 
I mean it magically stops to produce any pairs after 60
But for b <10000 it works fine.
 
11:18 AM
@Mayube @Mego Here is a nice example:
      ⎕USING←'System.Collections'
      h←⎕NEW Hashtable
      h.Add¨('Product' 'APL')('Vendor' 'Dyalog')
      h
System.Collections.Hashtable
      ⌷h
 System.Collections.DictionaryEntry  System.Collections.DictionaryEntry
      (⌷h).(Key Value)
  Vendor  Dyalog    Product  APL
 
hi
 
heyya lembik
 
I am thinking of a challenge that finds and copies code from ppcg answers
as I find it annoying to do by hand ;)
any suggestions for how to ask this?
I suppose it's too hard to get the code to find code in a particular language?
 
0
Q: How much Mana do I need?

ArnauldDungeon Master was one of the first ever real-time role-playing games, originally released in 1987 on the Atari ST. Among other exciting things for the time, it offered a rather sophisticated spell system based on runes. Your task today is to write a program or function that evaluates the number...

 
11:37 AM
@Mithrandir what's your taste then? :)
 
@MartinEnder usually epic instrumental or Jewish music
 
surely, post rock isn't very far from epic instrumental? :P
how about this then? youtube.com/watch?v=JbnhjsDI_ho
 
Sorry, earbuds aren't available ATM
In a few
 
hi @MartinEnder
 
11:41 AM
do you think it's plausible for code to only extract code from PPCG answers? That is to be able to tell what is code and what is not?
I really want to ask a challenge about this :)
 
@Lembik I did that yesterday with all my SOGL answers
 
not 100% reliably. but just taking the first code block should work in >99% of the cases
 
@dzaima Oh! I am not sure what SOGL means though
 
@Lembik it's my golfing language
 
@Lembik SOGL is a programming language
 
11:42 AM
ninja'd
 
@dzaima so you wrote code in SOGL to tell whether an input text was code or not?
 
no
I extracted all of the codeblocks with its code
 
@MartinEnder I think I may give it a go as a challenge. Although another challenge that just tries to work out what language something is in might be good too.
@dzaima why did you do that? Was that part of a challenge?
 
no, just wanted to see what are some commonly used function combinations to add 1-byters for :p
 
ok :)
my challenge would need a language that can extract ppcg answers from the web
so may exclude the very esoteric ones
 
11:46 AM
I was thinking about a challenge to find the most used character from a language
 
@Lembik So Python, JS, 05AB1E, Ruby and Powershell should compete
 
@Mr.Xcoder cool.
 
Jelly had internet access AFAIK
 
and obviously Java/C etc.
 
Also Bash and PHP
 
11:47 AM
and perl!
no one mentions perl any more :)
 
Wait, isn't Perl dead ? :P
 
well... more dead than 05AB1E?
 
Okx
What about Assembly :(
 
@Okx that sounds tricky!
 
@Okx You golf a web answer in Assembly and I'll give you 200 rep if you get it below 200 bytes.
 
Okx
11:49 AM
sorry no way
200 bytes?
 
Yep.
Joke :P
 
Okx
i will give you a 500 rep bounty if you get below 200 bytes :P
 
SOGLOnline SOGL technically has internet access
 
hang on.. is this assembly just to get a url?
as in wget in assembly?
 
@Okx Ok, I will steal JonSkee's rep from SO and will give you 500k if you get it below 200 bytes
 
Okx
11:50 AM
i will hack SE and give you 10 mil if you get it below 200 bytes
 
Should start learning assembly :)
 
hmm.. so how hard is it to fetch a url in assembly?
0
A: download file from url in assembly language in osx

johnfoundDownload from where? If assume you want to download from a WWW, it is pretty simple task: Using sys_socketcall (eax=102) create a socket, then connect to the desired URL, then send a HTTP command: http_request db "GET /file_url HTTP/1.1", 13, 10, 13, 10 Read the socket by lines until you re...

just call curl or wget from your assembly code :)
 
@Lembik So about 2k bytes :)... Sounds easy
 
hmm.. it's an interesting question
maybe actually a nice code-golf question in the end
but is there an assembly hello world?
I mean such a challenge
 
Not really
 
11:54 AM
Not really in reply to which part ? :)
 
@MartinEnder that's long
 
13
Q: Life is a Maze: We take the wrong Path before we learnt to walk

Kevin CruijssenInput: A maze containing the characters: -- (horizontal wall); | (vertical wall); + (connection); (walking space); I (entrance); U (exit). I.e. an input could look like this: +--+--+--+--+--+--+--+--+--+--+ I | | | + +--+--+--+ + + + +--+ + | ...

 
@Mithrandir well it's a full album
(although it's only 7 tracks or so, so the individual tracks are fairly long as well, but you wanted epic, right? ;))
 
Okx
no extra answers from this bounty so far :( codegolf.stackexchange.com/questions/119783/zooming-in-on-a-map
 
@Mr.Xcoder what were you replying "Not really" in reply to?
 
Okx
11:59 AM
assembly hello world: .print "Hello, World!"
 

« first day (2343 days earlier)      last day (2502 days later) »