« first day (697 days earlier)      last day (3321 days later) » 

5:00 PM
@Legato Just bear ^^ that in mind ;)
 
Well, Enjoy.
 
2 hours ago, by sᴉɔuɐɹɥԀ
I do now LOL
 
@phpguru: not being allowed to comment code is ludicrous, in my view. The whole point of this is to add a record of what is happening in production (i.e. keep it permanently). Any "review" that refuses it is, I think, missing the point of code review. — halfer 2 mins ago
 
@Lyle'sMug
 
I wonder who's the other person still playing the stackegg game.
 
5:08 PM
I hop on there now and again if I have nothing better to do
 
0
Q: Is removal of some redundant code a good idea?

thomasbtvI have posted a question: C++/CLI wrapper around a C library In the C library (and subsequently in the C++/CLI wrapper), I have removed a bunch of structs and methods that are very redundant with the ones posted. Examples: Examples of posted code: typedef struct { int left; int top; ...

 
0
Q: Groovy method optimization to build <String, List<List>> tokens

RanPaulI have a string array: def invoices = [LEDES98BI V2, LINE|INVOICE_DATE|INVOICE_NUMBER|INVOICE_TOTAL, 1|20150301|INV-Error_Test1|22, 2|20150301|INV-Error_Test1|24, 3|20150301|INV-Error_Test2|26, 4|20150301|INV-Error_Test2|28,] I tried to convert it to HasMap<String, List<List>> with key as invo...

 
@JeroenVannevel What is that?
 
@Legato april/ops fools
 
5:21 PM
> The second phase of the project to get Gentoo Linux to a wider user base will involve the creation of floppy disk sets containing a compact version of the operating system and a selection of software essentials. It is estimated that sets could be created using less than 700 disks each and sponsorship is currently being sought. The launch of Gentoo Disk™ can be expected in about a year.
 
Keep on being awesome @200_success @rolfl.
 
Thanks!
And will keep trying to be the moderator you seem to think I am.
3
 
1
Q: Suffix Array Construction

Michael HarveySo I'm trying to implement a suffix array for use in programming competitions. I'm using the CodeForces example and trying to "make it my own" so I can make sure I understand it and feel better about using it. Here's what I have so far: struct SuffixArray { vector<int> sa, pos, tmp; int ...

 
I'm not trusting anyone today. @rolfl :P
When does the global leaderboard update?
 
which one?
I turned on the egg again, I see it's close to winning....
Someone has been consistently playing:
> Congratulations! Your Site has made it to the very top and won the internet!. It doesn't get any better than that! And now, try to grow your next Site even faster!
 
5:29 PM
Nice!
 
I've been playing!
lol
I was trying to figure out who was playing with me, there was someone else.
 
0
Q: Common operations on a linked list (user defined)

prodicusI have just started learning data structures and for the past two days I was going through linked lists. I have implemented the basic/common operations on the linked lists operations. I would love for some feedback and best practices. P.S: I will also try the STL method, but for starters I di...

0
Q: Dirty parquet written on C++

rel1xFirst string includes 4 integers: N, M, A, B (1 ≤ N, M ≤ 300, A, B ≤ 1000). Each next line include M-symbols. Symbol . is a clean cell, * and ** are dirty. I need to find the sum for cleaning if A its sum of ** cell, B is sum of *. What I can do better? #include <iostream> #include <string> #i...

 
@rolfl Didn't someone write an auto-vote script yesterday? I wonder if it is running on our site
 
...
 
No idea.
 
5:31 PM
It reset.
 
what , the game or the bot?
 
The game.
 
the game just ran through to the end, complete, and won.
started over.
 
Oh
Thank CRitters
I was reading a meta post on it, and I thought it reset by the time I looked back.
 
8
Q: StackEgg autoclicker

JonathanI wrote a quick and dirty auto-clicker for the StackEgg. Any comments, both on code and effectiveness? function doRound() { var stats = []; $(".egg-stat").each(function () { // Find the number of hearts for each stat. var title = $(this).attr("title"); title && st...

 
5:32 PM
Is there a "Area 51 phase" that comes before private beta?
(for the egg)
 
OP is from SO mostly though so it might just be running there, if at all...
Hm, Anime passed PPCG
 
@SimonAndréForsberg I've seen it reset three times, don't think so.
I wasn't here for that, but how were we doing when we got reset?
 
this time, we won the internet so apparently "great!"
I gotta say, if there is one Stack Exchange employer that I have big trust in, it is Jon Ericson.
Commented on his blog and got a response.
> Once again, I'm really sorry about this whole incident. I'm extremely grateful that you brought it up on meta because I know many people were disturbed by it.

Thanks again for the feedback,
Jon
(there was of course a bit of text above this part as well)
 
I see.
 
Hey, did you see Rainbolt's thing showing how to do it?
16 hours ago, by Hosch250
in The Bridge, 49 mins ago, by Rainbolt
PRIVATE BETA: Alternate questions and answers. Simple.
PUBLIC BETA: Alternate questions and answers until one is maxed. Then add in Quality. Then add in Users.
GRADUATED: Alternate questions and answers until one is maxed. Then add in Quality. Then add in Users.
ALL STAGES: Ignore warnings exactly 4 times. Then address them.
2
This is the best method so far, and it is how PPCG won so many even with the reset trolls.
They've been being trolled for hours now, with bots.
 
5:42 PM
@Hosch250 yup, I saw that. Although I tend to address warnings quicker than that.
 
That's not cool.
 
@Legato What isn't?
 
Their being reset trolled.
 
No.
They started it, but they've more than been repaid.
2
 
It is sad that people are fighting back on them. That doesn't help the situation at all.
 
5:43 PM
They think it might be Anime. Arqade is being reset trolled too.
 
Ugh, this whole thing is ugly.
 
Stack Exchange will hopefully feel like a peaceful place when this is over.
2
 
-1
Q: Accordion with dynamic content

Elad LachmiWe just started using React in our project, and I am still getting my head around it. I would like to get some best practice advice. We want to create an accordion where when each of the panels is opened, data gets loaded from the server and displayed. The JSX structure we currently have is somet...

 
@SimonAndréForsberg until all the peeps on SO are no longer distracted and the crap questions start flowing back in...
 
6:01 PM
0
Q: Corrects the encoding of a CSV file in Qt

k_dog345I'm hoping for a little bit of a code review to ensure I am doing utf-8 right. I am developing a csv_fixer that allows a user to select the encoding of the file so we can correctly handle encoding errors. Also, there is a choice to skip this, in which case I am just removing the fields that have ...

 
@RubberDuck IKR
 
6:19 PM
Seems like it's time to win the internet again!
God, I hope they release the source for this game.
 
Calculating the cost of something is hard.
 
sshhhh... but updated: pastebin.com/scnzn3F2
 
is that clickbot up for review on the main site yet?
 
6:34 PM
THere is one there, I based mine off it: codereview.stackexchange.com/questions/85542/…
Mine has smarter heuristics, and logging, and.... more ;-)
 
I have a strange craving to play some old school zelda.
 
6:51 PM
@rolfl OP.
Also, how do I run this....>:
 
Chrome console...
Maybe FFox as well, but in chrome, open the Stack Egg...
 
Okay.
 
type Ctrl-shift-I
find the condole... has a blue > prompt (after some error messages).
then paste the code.
 
Ugh.
 
should print out a number, then just watch
 
6:54 PM
Sweet, thanks!
 
Works?
 
Well, I got the number.
Yeah, I think it's working.
 
Okay. Lets put this away until after work..... 8bbit.com/play/legend-of-zelda-the/491
 
@Legato - which version did you pull? You should have this one:
27 mins ago, by rolfl
sshhhh... but updated: http://pastebin.com/scnzn3F2
 
Yes, I noticed! I have that version.
It's working.
 
6:57 PM
VM11076:38 Clicked button 1: 261 days have elapsed – your Site is fully graduated.
2015-04-01 14:57:12.868VM11076:8 Already played 261 days have elapsed – your Site is fully graduated.
2015-04-01 14:57:25.868VM11076:24 Low on 3
2015-04-01 14:57:25.872VM11076:38 Clicked button 3: 262 days have elapsed – your Site is fully graduated.
2015-04-01 14:57:38.264VM11076:24 Low on 0
2015-04-01 14:57:38.266VM11076:38 Clicked button 0: 263 days have elapsed – your Site is fully graduated.
should see stuff like ^^^
 
Yup.
It's beautiful. :O
 
It's mesmerizing.
 
This week has been irritating, that's for sure.
 
@rolfl What's the difference?
 
Logging, it only votes 1 time per round, and it sets a random timer for each bot
 
7:07 PM
okay
 
About to win., ... ;-)
 
We're gonna win the internet now me thinks
 
What will it do .... ?
 
vote to restart
bot doesn't work here
 
bit it ticks right on afterwards... I like:
> Emergency on 1
2015-04-01 15:09:39.246VM11076:38 Clicked button 1: 1 day has elapsed – your Site is in private beta.
 
7:11 PM
incoming DateTime question
 
0
Q: Unit Tests for getting the first Monday of the month

Lyle's MugI have an application that runs hourly, and I want to use it to also send an email at the start of the day of the first Monday of the month. I searched and found information to help me code what I needed, and all my tests pass, but I want to make sure that I am testing for all edge cases and tha...

 
What's the actual question ? If you are looking for a code review you should post it on codereview.stackexchange.comSvetlin Zarev 1 min ago
 
@malachi no, NSA is american, I work for Belgium department of defence
 
@chillworld part of the 25-man hiring spree we did a few weeks ago?
 
7:27 PM
Belgium needs 25 defenders?
 
Can't trust the Dutch
 
They have these ovens .....
 
No, that's the Germans
Them too
 
hi there!
 
Speaking of dutch ovens......
hi @skiwi
 
7:34 PM
My nation called me
 
0
Q: Parsing (crawling) HTML to get strings with HTML

MarciI have HTML structure like this <div class = article-comments> <div class="article-comment"> <div class="article-comment-header">...</div> <div class="article-comment-content">...</div> </div> <div class="article-comment"> <div class="article-comment-header">...</div> <...

 
3 happy bots crunching away, and a 4th I am not sure is a bot, or has a different heuristic
This makes me think there's someone who keeps voting for downvote, but gets overruled by upvote.
 
@JeroenVannevel nah malachi was thinking I did work for NSA ^^
lol I saw there pay check every year, I wish I had that :p
 
7:49 PM
@rolfl I was about to try it in IE11 but the pastebin is gone :(
 
I can fix that....... 2 minutes.
 
0
Q: Rethrow the same exception to provide more info

CequielIt's a good practice to rethrow the same exception to provide more specific information? For example: var sitemap = "a string containing an XML document"; try { // throw InvalidXmlException if the document is not well formed parse(sitemap); } catch (InvalidXmlException e) { throw new In...

 
@CaptainObvious Umm... Wut?
 
> I know its very wrong at the moment, it 's just mashed up stackoverflow examples.
oh boy
 
@sᴉɔuɐɹɥԀ ^^
 
7:55 PM
Works good!
 
looks good.
 
For IE, anyways.
 
Winning the internet. :P
 
dafuk
0
A: What goes into the Excel Workbook object that increases file size?

user3819867It's the part where the government collects the logs. raises tin foil hat, scratches hat, puts it back on They've been doing this since Windows 3.1.

 
I like how it's an actually answer.
 
8:00 PM
@rolfl I can do better : google.be/…
 
Did you guys try typing "Do a barrel roll" in com.google?
 
0
Q: Responsive bullets with centered html content

Rwam DevIn my current project I develop a responsive site which has only on desktop a fixed width. Otherwise it's fluid. My client or rather my art director ;) want's fluid bullets with horizontal and vertical centered content on the site. To illustrate that I created a dabblet. Here is my HTML for the b...

 
@Legato nice one
 
Added benefit of momentarily making things readable!
 
8:14 PM
@Legato did you see pac man in google maps?
 
@chillworld That's a cool one.
 
indeed
 
0
Q: File descriptors and terminal commands exercise in c++

dagi12I have to do following homework at school. Main.cc program tracks the flow of information through the "connections". This is accomplished in such a way that each command is connected to two connections of the parent process. The parent is responsible for the transcription of data betwe...

 
you can pac man in your street ^^
 
@chillworld How?
 
8:23 PM
@SimonAndréForsberg maps.google.com
 
@rolfl Again: How?
 
@FreeMan well On Topic is also "OT" ;) — Mat's Mug 34 mins ago
@Mat'sMug OP is Occupation Pottery, but most people consider it Original Poster... :P — FreeMan 29 mins ago
 
I think I finally get how this Stack Egg thing works
 
I think I finally get how this Pac Man thing works
 
8:31 PM
0
Q: First time writing Python OOP - need opinion on choice of decisions

GrowinManDisclaimer: This question is very much like the one posted here. I gathered some opinions about my options from the answer there. Here, I just want validation about the choices I'm deciding to stick to and see what people think about the decisions specifically. Also, gather suggestions about othe...

 
@Mat'sMug Um... Data? Attachments? Unicorns maybe?
 
@JeroenVannevel it started out as an extension method, but I dropped the extension part because for some reason the console app didn't like having an extension method inside the class it wasn't static. so I made it work...I will look into that further though.
 
@Lyle'sMug put the extension method in a separate static class
I put mine typically in Extensions.cs
 
as long as it is in the same namespace right?
I am starting to remember now....lol
 
You can always just import it, no?
 
8:42 PM
yes, I could do that as well.
I have created string extensions before, I couldn't remember at the time how to make it work. now that you said that thought it brought back fond memories....lol
 
This is more suited for codereview as your code works — Bhargav Rao 1 min ago
 
Oh, we're about to win the internet again!
 
SO is not a site for code review but for questions. — Jens Gustedt 1 min ago
Is there a more elegant way to do this? ... Better ask it on codereview — Bhargav Rao 1 min ago
 
@chillworld I know of it. Have yet to use it though.
@SimonAndréForsberg Of course, CR is awesome.
 
if you don't have a specific problem, and just want your code reviewed, try codereview.stackexchange.comDLeh 1 min ago
 
8:51 PM
Someone with a goto statement just got recommended to Code Review...
 
@rolfl Your bot really does not handle restarts
 
@Legato HOLY CARP that's dizzying
 
Restarted.
 
@sᴉɔuɐɹɥԀ No more than your new name.
5
 
what I was about to say ^^
 
8:52 PM
@SimonAndréForsberg Was that so hard? Care to spin a patch?
 
omg...
 
@rolfl pastebin.com/gQt3bJYh -- untested (of course)
I think it should work
Added this:
if (buttons.length === 1) {
  click = 0;
}
 
Play Pac-Man in your own neighborhood on Google Maps...
 
@SimonAndréForsberg There were two buttons, though, right?
 
@nhgrif does that mean your pacman is being chased by young hoods instead of ghosts?
 
8:57 PM
@rolfl Not that I saw.
 
Well, if you're in St.Louis, Pac-Man is probably being chased by racist police officers.
 
There is a "continue vs restart" option if there is one successful "Restart" vote, I think
 
Hey... how does tag synonym suggestions work?
Which way should I suggest?
SO has and (not sure why)
should go away...
 
^ Definitely.
 
Do I need to suggest as a synonym to , or suggest the other way around?
 
9:03 PM
0
Q: Convert a list of dictionaries to a dictionary of dictionaries

JackI need to convert a list of dictionaries to a dictionary of dictionaries, with a particular item as the new key. This is the way I'm currently doing it: >>> a [{'bar': 'baz', 'id': 'foo'}, {'bar': 'baz', 'id': 'qux'}] >>> { item['id']:{ sub_item:item[sub_item] for sub_item in item i...

 
Plus, is already a synonym of generics...
 
@nhgrif no more stars..... :(
 
Anyone is welcome to vote if they care.
 
You already did it.
 
9:03 PM
I just did it.
When I saw that was there.
 
stackoverflow.com/tags/synonyms < ---- See the top of this now the arrow points the correct way
 
I agree with you, I have no power on SO though.
 
Alexander O'Mara is making some questionable suggestions...
 
Definitely not inherently, I'd be against that.
I sort of understand the second one. Is there a ?
 
Yes.
 
9:08 PM
Meh, SO problems.
 
I don't think is a good tag at all though.
 
No font-weight questions here ;-)
No manipulation questions either.
 
Yeah.
 
Yeah, CR ftw.
 
@sᴉɔuɐɹɥԀ is hard to ping now.
 
9:10 PM
0
Q: C# Tasks to do processing

mikeI am trying to use Tasks to do some data processing in parallel. It will be constantly running. It reads from a queue file and if there is data to process the task will start. Once the task stops it will again read the queue file to see if there is other processing to be done. What would be t...

 
Just start the same way for him as you do for simon.
That's what I keep in mind anyway.
 
On my phone, the characters don't line up right. It looks more like: s! as first two characters.
 
@CaptainObvious Ink to write, song to sing, wing to fly, ...task to do something.
 
@nhgrif You can just do si -> press Tab I think
 
@JeroenVannevel your voting system is a little wacky.... it was slow so I thought I hadn't clicked, and I clicked several times, and then it upvoted like 4 times...
 
Word.
I upvoted it.
Though I don't think it benefited you anymore.
 
@Lyle'sMug yeah, the whole site is a little slow
and you can vote multiple times
 
lol
 
CodeReview moved up!
#6 baby.
3 more to overtake SO
 
@sᴉɔuɐɹɥԀ You lose out to @SimonAndréForsberg though.
 
9:15 PM
We're only a bit behind SO, that would be cool if we beat them
 
Evening
 
@SimonAndréForsberg What I find remarkable, is that you Q has not been edited....
 
What if you do sic -> Tab ? Not sure if it picks out that character as a C
 
That makes it a brilliant Q.
 
@nhgrif and @SirPython
 
9:16 PM
lol @sᴉɔuɐɹɥԀ I'm still not used to your name. :D
 
He has that for a month.
Hahaha.
 
oh god
 
@SimonAndréForsberg @sᴉɔuɐɹɥԀ comes before @SirPython for me in the tab order.
 
@rolfl Been considering making an edit to remove that disqualify PPCG, what kind of edit did you think of?
 
0
Q: Validate input of month/year, otherwise set it to current month/year

PeterIs there a cleaner way of doing this? I'm using filter_input to first check for valid input, then using it again to assign the variable. Also, my condition in if/else seems quite long. Any tips would be appreciated. Thanks. $optionsMonth = array('options'=>array('min_range'=>1, 'max_range'=>12...

 
9:17 PM
none.... and that's the thing, you got it right, tags and all. Meta.se is a killer for these things.
 
@nhgrif okay. Thanks for teaching me how to ping @sᴉɔuɐɹɥԀ btw. I got confused by that.
 
Change "disqualify PPCG" to "synonymize PPCG with tiaras.stackexchange.com"
 
@rolfl I didn't even get Jamalized!!!
 
What's the topic of the evening in the chat? :)
 
@Jamal probably haven't seen it...
@nhgrif tiaras? Why?
 
9:18 PM
@sᴉɔuɐɹɥԀ The backward c isn't a c. Most efficient way is (at) -> s -> (tab)
 
I gotta remember that "search all chat rooms" feature in the future
 
Jamal really slowed down!
 
Actually, that'd be pretty funny if Stack Overflow got changed to "Tiara Central - A question and answer site about tiaras, dresses, ponies for Princess professionals and enthusiasts!"
 
When I first started this, I wondered if he was a bot.
 
^this
 
9:28 PM
Ping ping ping ping! Looks like you guys got that one figured out now lol.
 
@sᴉɔuɐɹɥԀ Figured what out?
 
@sᴉɔuɐɹɥԀ what?
 
He probably just means his name.
 
@sᴉɔuɐɹɥԀ ¿ʇɥƃᴉɹ
 
9:33 PM
@nhgrif Now that would have been a good one!
 
I told everyone just start tagging simon, and you'll come up first.
 
Tiaras Overflow
 
Should have called it daipers then.
 
Would be on-topic on that site?
 
Right now I am a bit tempted at making a Area 51 proposal.
 
9:37 PM
Ride the rep wave!?
@SimonAndréForsberg So your addendum to the script makes the internet winning more efficient?
 
Only at game-end.... it automatically restarts it.
 
That's an issue? I haven't noticed anything.
Seems to just keep on keeping on.
 
someone has to manually click on the restart button... but it depends on the previous state....
if the previous state had less than 4 hearts on questions, then it would "by accident" click the restart button anyway
 
9:55 PM
Welp... I think I have a canonical answer in the works...
0
A: How to create class methods that conform to a protocol shared between Swift and Objective-C?

nhgrifA Swift class that conforms to an Objective-C protocol must treat any Objective-C types in that protocol as optionals. In trying to figure this out, I created the following Objective-C protocol: @protocol ObjCProtocol <NSObject> @required + (id<ObjCProtocol>)classMethod; @required - (id<ObjCPr...

 
Whoa. This person wrote a Brainfuck interpreter in FiM++ as an example for their FiM++ interpreter that compiles in Java/Scala. Wow.
I learned about Nightmare Moon with Pinkie Pie and Rarity:
    By the way, "[".
    On page numbered by Pinkie Pie of Sweetie Belle I read about Twilight.
    When either Twilight is nothing or Twilight is equal to zero:
        Did you know Angel is one, because he's gonna hold the bracket number?
        Rarity got one more!
        I did this while Angel had more than zero:
            On page numbered by Rarity of Discord I read about Derpy.
            When Derpy was equal to "[":
                Angel got one more.
@SimonAndréForsberg @Mat'sMug What do you think of that? ^^ lol
 
Pure awesome!
Now I guess it's up to me to write a FiM++ interpreter in Brainfuck.
 
sigh..
Mine, of course, is the one with 3 votes... lol
 
Make a FiM++ interpreter in Brainfuck that interprets LOLCODE that interprets a Brainfuck implementation of another FiM++ interpreter that interprets Brainfuck code for FizzBuzz!
@nhgrif At first I thought it was Whitespace code.
 
I quickly sang new line, because why not. Your faithful student, Flutterjerk.
@SimonAndréForsberg Also:
 
10:03 PM
> I noticed that nhgrif didn't point out that is also possible...
0
Q: Optional Appears in the result

silencefoxI am currently learning swift and I wrote the following silly code but the result shows like this : "The monster is Optional("sihso") when the hero is at level 2". i don't know why there is the word optional there. var level = 2 var mons = [1 : "SHhi", 2 : "sihso", 3 : "shssh"] var monster = mo...

 
@sᴉɔuɐɹɥԀ that's FIM++?
 
Yup
Dear Princess Celestia: Letter About Cider.

Today I learned Applejack's Drinking Song.

I learned about Applejack's Drinking Song:

  Did you know that Applejack likes the number 99?

  I did this while Applejack had more than one.
    I sang " 'Applejack' jugs of cider on the wall, 'Applejack' jugs of cider,".
    Applejack got one less.

    When Applejack had more than 1:
      I sang "Take one down and pass it around, 'Applejack' jugs of cider on the wall.".
    In the end, I did this instead:
(from the same repo)
 
oh my gosh, I should let my little girl learn it, she would love the part about it talking about my little pony characters.
TTGH
later
 
Are you ditto-ing your joy of discussing "My Little Pony" @sᴉɔuɐɹɥԀ
 
10:14 PM
No, the TTGH part ;p
Oh and before you ask, No; I'm not making a FizzBuzz in FiM++ lol.
 
in The Nineteenth Byte, 1 hour ago, by user23013
now there seemed to be a 200+rep limitation for restarting
This one was rather funny
English subtitles are available
 
0
Q: Observer Pattern with an Observer observing multiple Subjects

Peter FeatherstoneIs the below a good solution for an observer to monitor multiple subjects. My only fear is that if an observer was monitoring a wide range of subjects then the update method could get quite large checking each instance to see what type it is but I can't think of another way to implement this: Jo...

 
10:39 PM
0
Q: Optimization for Conway's Game of Life

rcplusplusTo represent all the cells I'm using a variable std::vector<bool> cells to represent the cells where true represents a live cell. To update the canvas, I have a variable std::vector<int> neighborCounts, where neighborCounts[i] represents how many live neighbors cell[i] has. In the update loop, I ...

 
10:53 PM
0
Q: String concatentation with wxWidgets

T145I have some of the following code for a small game I made as an experiment: string congrats = "Congratulations, Player "; if (turn == 1) { congrats += "1"; } else { congrats += "2"; } congrats += "!"; wxString wxCongrats(congrats.c_str(), wxConvUTF8); ...

 
@sᴉɔuɐɹɥԀ hahaha... love your upside down innovation :)
 
1
Q: Functional, Loaner-Like Pattern For Consuming SQS Queues, Deleting Queue Items On Success

FullTimeCoderPartTimeSysAdminWhat I keep shooting for and falling way, way short of is basically an implementation of the loaner pattern for use with SQS or RabbitMQ queues that may or many not contain messages. Desired flow when a caller calls withLoanedItem[A]{block: LoanedItemType => ...}: Check queue for messages co...

 
This scares me
There are limits to what one should do on April 1st
 
11:09 PM
Does @Duga catch chat messages?
in NSChat on Stack Overflow Chat, 22 secs ago, by nhgrif
@DuncanC and anyone else interested... I've been writing a pretty good amount of Swift since it was publically available basically. If anyone has some working Swift code that they want to have someone take a look at and see if they can make it more Swift-esque, you're welcome to post a question to Code Review.
 
11:20 PM
0
Q: Find minimum element in a rotated array

Calculus5000Here's an implementation of finding the minimum element in a rotated array using binary search (one that is sorted in ascending order, and all elements are distinct). Please let me know of any improvements that can be made to it. import java.util.List; public class RotatedArray { /** ...

 
@nhgrif I'm sure I've told you this, but I'm going to learn Swift over the summer, I look forward to your insight. :D
 
Truth @JeroenVannevel some people take it too far... How many people will read that not realizing its a joke?
And I hate to disappoint everyone, but there's not a compiler for FiM++ yet.
 
@RubberDuck It has an april fool's tag, to be fair.
Though it's kind of obvious.
 
I hadn't even noticed the tag
 
Then again, I'm probably not the audience you speak of since I was linked from here, with that in mind, and saw it the day of.
Anime and Manga is definitely going to win.
Well
I dunno.
 
11:29 PM
Anyone doing stackegg here?
 
But it's set to double CR's current stackegg
 
Yup.
 
@Mehrad Haha thank you! I'm stuck with it for 30 days, we'll see if I still like it then lol.
@nhgrif I'm pretty certain Simon did not set it to monitor chat rooms
@RubberDuck Yeah all I could find was an interpreter
It interprets in Java so I might maybe try it. Really big maybe.
 
It's likely that he won't.
 
11:37 PM
Oh really @Phrancis? Last I checked you couldn't actually run it.
 
Fun fact, when people use the word "might" they usually mean something that's not likely to happen. Whereas "may" is when they are likely to do something.
 
@RubberDuck Could be the case; didn't spend much time looking into it... Mostly just killing time at work
 
extension String {
    func a() -> String {
        return self + "a"
    }
}
 
No. ^. Just... No.
 
@Legato i might verify that fact
 
11:40 PM
extension String {
    func a() -> String {
        return self + "a"
    }

    func A() -> String {
        return self + "A"
    }
}
 
W.h.y.W.o.u.l.d.A.n.y.o.n.e.W.a.n.t.T.o.D.o.T.h.a.t.?.foo(bar)
2
 
let s = String().A.p.r.i.l.F.o.o.l.s
 
@sᴉɔuɐɹɥԀ ¿uʍop ǝpısdn ǝɯɐu ɹıǝɥʇ ʇnd ǝuoʎuɐ plnoʍ ʎɥʍ
6
 
Yeah, I was going to change it just for today. Guess the joke's on me now!
 
11:45 PM
Heh.
 
I think I'm going to fire up miniAudicle and write something fun in ChucK
 
@SirPython How do you do that?
 
@MannyMeng Sec.
 
@sᴉɔuɐɹɥԀ By the way, I think flipping your avatar was a really nice touch.
 
11:51 PM
0.5::second => dur beat;
4::beat => dur measure;

now + 16::measure => time stop; // 64 beats
1 => int stepCounter;

while ( now < stop ) {
    <<< "Now:", now, "Step:", stepCounter >>>;
    beat +=> now;
    1 +=> stepCounter;
}
<<< "end program" >>>;
@Legato Thanks :) I like it
 
That's a language called Chuck, eh?
 
Yes. It's designed with audio/music in mind. Has really nice time manipulation functions
The variable declaration is backwards compared to most languages, which is a bit odd
But the ChucK operator => is used for a lot of things
chuck](VM): sporking incoming shred: 1 (120bpmPrintLines.ck)...
Now: 196352.000000 Step: 1
Now: 218402.000000 Step: 2
Now: 240452.000000 Step: 3
Now: 262502.000000 Step: 4
Now: 284552.000000 Step: 5
Now: 306602.000000 Step: 6
...
Above function prints that at exactly 120bpm until it reaches 64 (16 measures, e.g., a typical verse length)
Then I want to write in an oscillator so it plays a sound each iteration and then increment the frequency of the oscillator (or whatever)
It's pretty neat how you can chain dur variables
 
RELOAD!
 

« first day (697 days earlier)      last day (3321 days later) »