« first day (738 days earlier)      last day (3293 days later) » 

lol, Google was completing my sentence of a bug in my program, but then it doesn't return useful results
 
hehe mine bejeweled answer got a lot of votes
I really had a bad night sleep because of that
seeing the question and answering on phone isn't easy so I waited till the morning
 
12:20 PM
Been running ArchLinux for 30 seconds, already got an error message. This is starting out well...
 
You should ask that quistion here: codereview.stackexchange.comJens Kloster 14 secs ago
 
I agree with @MartinSchröder. We can call the choices also beers, the players elephants and the score we can call pink. Code still works but where is the readability? — chillworld 15 secs ago
@SimonAndréForsberg lol 29 seconds later then windows should do that :)
 
@chillworld In your answer all the Gem.class is in code formatting, is it an error ? (first line)
 
@JensKloster This is not about cleaning up code, this is about comparing two implementations. This is also not about opinions. This does not belong at Code Review. — Simon André Forsberg 9 secs ago
 
@Marc-Andre I think
I'll change it
@Marc-Andre better? (feel free to improve)
 
12:30 PM
@chillworld better yes, need improve -> not that I see, it's a good answer :D
 
Strange the monkey didn't talked about that
 
12:45 PM
@EthanBierlein thanks for telling people about my game! it means a lot! i would love to hear about whether you have unlocked any spells
@chillworld i really like your difficulty implementation, that is really neat
 
@bazola thx
just wanted to show how easy it sometimes is to get extra features
 
1:06 PM
This question appears to be off-topic because it is a code review request. This is better suited to the Code Review Stack Exchange site. Before posting there be sure to read their FAQ to ensure that your question meets their guidelines. — John Conde 27 secs ago
 
@bazola your game is on App Store?
 
@bazola I haven't unlocked any spells yet, but I'm really enjoying the game. The one thing I think it needs is a thorough beginner's tutorial. :)
 
happy 1-year CR birthday to me
 
Make a cake?
 
I'd end up burning my house down
 
1:20 PM
@DanPantry gratz
monking @DanPantry and @rolfl
 
Make a cake, then make a house.
let myCake = Cake() // nothing burned
 
lol nhgrif
 
myCake.addIcing(Icing.Chocolate)
 
0
Q: A simple BloomFilter Class

SayakissWe have some BloomFilters(like a java.util.set without deletion) and we store them in ehcache(you can think it's as a java.util.Map): For example, Constant.BLOOM_FILTER_CACHE ehcache contains: key value aaa bloomfilter (of name aaa) bbb bloomfilter (of name bbb) ccc bloomfilter (of name...

 
myOven.bake(myCake) // okay... Things may burn now...
 
1:27 PM
myOven.bake(myCake) //sometimes burns.. this is an undocumented feature
 
try {
    myOven.bake(cakeFactoryProvider, cakeFactoryParameterArray,
         myOvenConnection, myOvenConnectionConstructionParameters);
} catch (Exception ex) {
     log.log("whoops");
}
 
Bet you can tell which one is Java and which one is JavaScript
 
@nhgrif no not yet. i'm worried that i need a multiple server infrastructure first, and possibly server queues as well. my server might be able to handle 500-1000 people, but then again it might not, and i dont want to piss a bunch of people off. so for now its just playable in browser
 
I don't think you can try-catch your way out of burning your house down.
3
 
@EthanBierlein you are right :) however, if you read the help it does explain every part of the gameplay
 
1:30 PM
@nhgrif with that attitude you won't be able to
@nhgrif use node, node will easily handle 500-1k connections
 
And your bake method seems overly complicated...
 
er
@bazola, not @nhgrif.
 
that's about the kind of method I am confronted with at work...
 
@bazola there is only one person who reads help files... And that person is usually called "the author"
4
 
@nhgrif no, I did read this chat's help (after googling failed)
 
1:38 PM
@nhgrif fair enough! hehe
 
lol just approved an edit on mine own answer by a 1 rep user :)
TTGTH
 
2:07 PM
Since you already know they're called combinations, why not just search for it? Maybe you'll stumble on something like this. — Andrei V 1 min ago
 
@bazola Ik, but the help can only get you so far. The font is also slightly hard to read.
 
2:23 PM
Yeah @Tomalak. I'm aware of an idiomatic way to do it. We shouldn't try to force new paradigms on old languages. This code review answer of mine covers it pretty well. — RubberDuck 55 secs ago
 
2:44 PM
0
Q: Unity Owin per request lifetime middleware

Nathan CooperHaving changed my website over to owin, I can no longer use Unity's PerRequestLifetimeManager. So I'm writing some middleware for owin in the style of Autofac's Owin integration (link). My middleware creates a child container for each request and stores to in the context.Request.Environment dict...

 
@CaptainObvious That title reads really funny without context
 
Ang Mo Kio Town Garden East is a community park that is situated at the junction of Ang Mo Kio Ave 3 and 8, behind Ang Mo Kio MRT Station. The 5 ha park was built on a site that was formerly of rubber estate, thus the park has groves of rubber trees and other economically important trees such as nutmeg and cinnamon. These trees are enhanced by sculptures of rubber seeds and nutmegs that are found around the park. The park is popular for recreational activities including jogging, foot reflexology, inline skating and t'ai chi. Visitors can enjoy the greenery while exercising or taking a stroll in...
Many people have engaged in cross-dressing during wartime under various circumstances and for various motives. This has been especially true of women, whether while serving as a soldier in otherwise all-male armies, while protecting themselves or disguising their identity in dangerous circumstances, or for other purposes. Conversely, men would dress as women to avoid being drafted, the mythological precedent for this being Achilles hiding at the court of Lycomedes dressed as a girl to avoid participation in the Trojan War. == Historical == === Antiquity === Epipole of Carystus was a Gre...
 
Oh wow.
 
Divine Trash is a 1998 documentary film directed by Steve Yeager about the life and work of John Waters. == Cast == Steve Yeager John Waters Robert Shaye Mink Stole Divine (archive footage) David Lochary (archive footage) Edith Massey (archive footage) Herschell Gordon Lewis Danny Mills Mary Vivian Pearce Vincent Peranio Paul Swift John Pierson Hal Hartley Steve Buscemi Jim Jarmusch Channing Wilroy Mary Avara == References == == External links == Divine Trash at the Internet Movie Database Divine Trash at Rotten Tomatoes...
Okay, I'm done.
 
2:59 PM
0
Q: DRY up RNA/DNA transcription code

SoSimpleI've been going through some of the exercises over on exercism and this is one of my solutions. It's a basic RNA/DNA transcriber. I was happy enough at first but now, looking at it again, the solution looks very repetitive to me. The two methods below are needed because there are tests to ensure...

 
did I miss something?
 
@Lyle'sMug what would that be? a star-fest? a flag-fest? a chat-fest? a question-fest? a review-fest?
4
 
> Did I miss a fest-fest?
 
0
Q: How to reduce the complexity of my code?

Daniela Marques de MoraisI have a list of files, the files have the same names and are in various different formats like swf, jpg, gif and fla. Each swf may contain ONLY a gif image, it's possible a JPG image that does not have SWF, which should be listed. For example: file1.fla file1.gif file1.jpg file2.jpg The outpu...

 
Might be more appropriate in CodeReview than SO — Dragondraikk 22 secs ago
 
3:08 PM
@SimonAndréForsberg @Lyle'sMug never misses a star-fest
3
He causes them
2
 
LOL
 
@SimonAndréForsberg all these one box links.... they are kind of odd???? ▼▼▼
14 mins ago, by Ethan Bierlein
Many people have engaged in cross-dressing during wartime under various circumstances and for various motives. This has been especially true of women, whether while serving as a soldier in otherwise all-male armies, while protecting themselves or disguising their identity in dangerous circumstances, or for other purposes. Conversely, men would dress as women to avoid being drafted, the mythological precedent for this being Achilles hiding at the court of Lycomedes dressed as a girl to avoid participation in the Trojan War. == Historical == === Antiquity === Epipole of Carystus was a Gre...
 
Did I miss Simon's fest-fest?
4
 
Maybe @Dragondraikk. It's hard to say how this would be received on Code Review. Some might say the code is broken. Other's might say it just needs optimized. — RubberDuck 36 secs ago
 
@Lyle'sMug Wikipedia links one-box in chat
(as long as they are by themselves)
 
3:13 PM
@Phrancis I know that, but I meant that they are odd and didn't look like they had anything to do with the surrounding conversation....
 
I think they were related to this:
22 mins ago, by Phrancis
@CaptainObvious That title reads really funny without context
 
@Phrancis I did see that remark and I wasn't sure if they were non sequitur's related to it or not
 
3:27 PM
My school's internet is ****
Every single day there's an announcement saying, [Please excuse this interruption, we seem to be having network issues with the routers.] That sentence even sounds odd.
 
This is almost code review. :) Your approach seems like it will work, because the "only x" will defer the loading until your timeout sets the media to a valid type. — bishop 41 secs ago
 
0
Q: Converting to Base 26 in One Based mode

Jonny PiazziI needed to create a simple method that converts numbers in base 26 (string) using, as expected, letters from a to z. But that's not all, this base 26 needs to be one based. Which means that there is no representation for zero absolute value and there is a representation for 26 absolute value. L...

0
Q: Martian Robots - A Small JS Program

Adam JohnstonThis is my first post so I hope the following is okay. I am here to ask a big favour. I would hugely appreciate you to look at a small piece of code I wrote and provide some thoughts, critiques and any feedback you think is needed. The code is here along with the problem I have attempted to so...

 
@200_success - see the low-quality review queue? codereview.stackexchange.com/review/low-quality-posts/37155
 
youch... auto-pushed, eh?
 
Usually, I would delete those answers as being a comment. Are they OK or not?
@rolfl?
 
3:48 PM
I would wager that
 
@Hosch250 - Sometimes a short answer is great.... this time, it's good information, but not a review.... it's a request for clarification... posed as a statement?
As mods, sometimes it is hard to decide what to do.
 
0
Q: Middleware code for preventing repetitive identical requests in Express

renatoarghI have problems when some of my users starts to frenzy click the save button generating duplicate records on the database. I wanted to create a generic solution so I could reuse it on another projects since its a very commom behaviour for hurried users. var recentRequests = {}, moment = req...

 
People interpret your actions differently
 
If 200 wasn't a mod, and presumably knows the site rules, I would have flagged for a comment.
I just skipped.
 
I skipped too. for a similar reason - in part because python is not my domain
My instinct would have been to review the code as such, because I would not knave known about the python tr function, which, in a sense, makes the answer more valuable.
 
4:00 PM
Didn't we kill at some point? It's back.
 
@Jamal Why don't we have a tag synonym? unity ---> unity3d ?
 
That works, too.
 
@rolfl @Hosch250 I think @200's answer looked alright. I can imagine a commit message "started using String#tr instead".
Just because it's a short answer doesn't mean that it's not an answer.
 
@SimonAndréForsberg Unity is NOT Unity3D!
 
4:06 PM
Unity is the IoC container, don't know what Unity3D is.
 
So perhaps a or something?
Is it just me or is site slow?
 
And, in this case, it is the IoC container.
It seems fine for me.
 
@SimonAndréForsberg Should I edit more things?
 
It seems this would be better on Code Review since it's working code. — John Saunders 25 secs ago
 
@EthanBierlein You might want to take a look at.... hold on.... (damn, site is slow)
19
Q: First Post Review Queue — what is it? Why is it a bad idea to click "No Action Needed"?

rolflWhen you pass 350 reputation you gain access to the Review Queues. One of them is the "First Post" queue. What is this queue, what purpose does it serve, and how should I process items in that queue?

btw, my recent "No Action Needed" in the queue is a bug. I did upvote the answer.
 
4:15 PM
Yeah, it takes a second to switch.
 
Does anyone know a clean technology stack for the web? For the project we're currently using Django (REST API) + ReactJS + NodeJS + JSX, but especially (unit) testing seems to be a hell
 
Use C#/Java for backend and HTML/CSS/JS for client-side.
1
Q: Determine the color of last bean in a tin

ʚïɞ Gemini ʚïɞI have write a program to determine the color of last bean from a tin (char[] beans). "Beans" in a tin are only green or blue. The rule is: If two beans taken out are both greens or blues, put 1 blue "bean" back, else put the green one back. Repeat until there are only 1 "bean" left. I don't kno...

 
@Hosch250 That's too unspecific I'm afraid
 
I'm voting to close this question as off-topic because it's a request for a code review. — Martin James 15 secs ago
 
Sorry, I've only done HTML/CSS for web.
 
4:31 PM
The problem with JS frameworks in my opinion is that in order to get a working application you'll want to use quite a few, but they're never really compatible
And they always limit you in what versions (of the other technologies) you can use
It's like learning Java, Maven and Spring multiplied by 3 in one day
 
@LuizFernando in the future, the Code Review Stack Exchange is a better place for questions of the "is my code correct?" variety. StacckOverflow is more aimed at solving specific programming problems, as in "I'm trying to do X but I run into the following problem...". — eigenchris just now
 
And Python is also annoying because Python 2 and Python 3 are both alive and incompatible
Worst part today was when installing a npm package, it needed me to have Python 2 on the classpath :| talk about messed up dependencies
 
@eigenchris No it's not. Code Review is for questions about "my code is correct, how do I make it better?" (which this question seems to match quite well). Code Review is not for testing code. — Simon André Forsberg 58 secs ago
 
@SimonAndréForsberg thanks for the clarification. I guess I meant "correct" in the sense of "the best way of doing things". — eigenchris 53 secs ago
there's a big difference between "correct" and "the best".
 
4:49 PM
To be honest, this is the first I've heard of Code Review. I'll take a look at it and see if it would make more sense to migrate my question over there instead. Thanks for the info! — Matthew Renze 31 secs ago
 
Hello.
Why is it that whenever that I come on that the chat room is inactive???
sigh...
 
Hi.
 
5:04 PM
Not inactive.,.....
Hey @MannyMeng :)
 
@MannyMeng MONKING!
 
0
Q: Super Resolution in the Wolfram Language, Attempt 2

alan2hereI'm trying a different but related approach to this program from some time ago: Super Resolution in Wolfram Language I think that I have had even more success this time. The program upscales an image with simple interpolation, before choosing random regions from the original image, to transpare...

0
Q: Streaming int support

rolflThis recent question Print Consecutive numbers by comparing two parameters frustrated me because I could not find a convenient way in Java 8 to support the conditions that are required. I answered it in a somewhat cumbersome way for Java 8... (the non-stream part of my answer is "OK" in terms of ...

0
Q: Declaring selectors based on boolean

Jrags87Is this the most efficient way of declaring some selectors based on a boolean value? (Those are not the real names of my selectors, just used them to simplify this example). if ($.cookie('cookieA')) { fadeSearch = $('.selectorA, .selectorB, .selectorC, .selectorD'); } else { fadeSearch =...

 
@CaptainObvious A monkey-question!
 
@Phrancis :)
@rolfl HI!
 
I wonder if @rolfl is in his question complicating things unnecessarily or neccessarily...
It almost looks like something I could've made
What's wrong with...
 
5:07 PM
....waiting...... ?
 
IntStream.rangeClosed(Math.min(a, b), Math.max(a, b)).forEach(System.out::println)
 
It is quite possible I missed something entirely
because the stream output has to be 5,4,3,2,1 for the inputs 5, 1
not 1,2,3,4,5
 
Ah okay...
IntStream.iterate(a, i -> i + Integer.signum(b - a)).limit(Math.abs(b - a)).forEach(System.out::println)
Minus the bugs, that could work?
But it's too ugly already
 
that's not too ugly
and it looks like what @rolfl answered on the original question
 
it is, about....
 
5:12 PM
and I wonder why @rolfl wasn't happy with what he answered?
 
the limit is the issue as I see it... you have to count the values first.
What if you don't have a consistent step.... like a hailstone problem
 
hailstone?
 
So, the collatz sequence... ;-)
 
I am not experienced enough to give a competent answer to your question, but: 1.) You may find this answer to my question on CR interesting: codereview.stackexchange.com/a/90090/68342 2.) You may want to look at the source code sqlbrite, particularly this file which uses a Subject internally to handle reloads/triggers: github.com/square/sqlbrite/blob/master/sqlbrite/src/main/java/…david.mihola 49 secs ago
 
@SimonAndréForsberg Oh, I haven't looked at that though
 
5:13 PM
aha, yes, the collatz sequence..
 
@rolfl Then how does your code solve that issue?
Ah I see what you are onto now
Haven't I made something related to the Colletz sequence one time?
The whole problem is starting to look oddly familiar
 
    long count = ForIntStream.until(10, i -> i == 1, i -> i % 2 == 0 ? i / 2 : (3 * i + 1) ).count();
^^^ collatz count
 
ah, I think I might have a solution
@skiwi yes, it's the typical "Stream until a certain condition has been reached" problem
 
That ^^^
 
Now how do I find that project
I don't even know in what project it was
ProjectEuler is a good candidate
Is there a way to do a full-text search on my own SO/CR questions?
 
5:20 PM
user:me euler is:q
 
Huh, I already made a (Postfix) calculator in Java once? I didn't remember that
I really don't remember
I'm pretty sure I've coded a takeWhile method somewhere on some day
 
@rolfl Essentially you want a IntPredicate and a IntUnaryOperator and transform that into an IntStream, right?
 
@SimonAndréForsberg Yes.
And a seed value too @Simon
 
yes, right.
 
I look at it as being a stream-based for-loop
 
5:27 PM
so, it seems like I have arrived at pretty much the same solution that you arrived at.
Which I think is a good sign for us both. But a bad sign for the Java API.
 
10
Q: Even more extensible and testable BuzzFizz

skiwiInspired by Extensible and testable FizzBuzz I have decided to write my own implementation, partially based on my own answer and on the other answers. First a warning to all of you: Never make such complicated code for such simple jobs! Now the basic requirements of the code: Should be capabl...

^^ What was I smoking when I made that?
 
there are some things you can improve though, @rolfl
Oh, looks like @skiwi has found the accept button!
 
> ..... frustrated me because I could not find a convenient way in Java 8 to support the conditions that are required.
 
@SimonAndréForsberg Yeah, I found a few of those buttons around
 
5:32 PM
@SimonAndréForsberg Sure :)
I think it's past the waiting time for additional answers
 
 
@rolfl but what you are missing most is a streams takeWhile or takeUntil method, right?
 
that would be right.
A .limit(...) like operation that is predicate based
 
 default Stream<T> takeWhile(Predicate<? super T> predicate) {
     Objects.requireNonNull(predicate);
     // Reuses the unordered spliterator, which, when encounter is present,
     // is safe to use as long as it configured not to split
     return StreamSupport.stream(
             new WhileOps.UnorderedWhileSpliterator.OfRef.Taking<>(spliterator(), true, predicate),
             isParallel());
 }
That's JDK 9 code
 
@skiwi has it been approved?
 
5:46 PM
@SimonAndréForsberg Not sure if it's in the JDK 9 dev repo yet, but it's approved
Funny thing is that it's only done last Wednesday: bugs.openjdk.java.net/browse/JDK-8071597
 
Funnily enough, won't support my use case ;-) I need an inclusive/exclusive option.
I would like a takeWhileInclusive()
 
@rolfl Like how?
 
@rolfl Is it possible to change your IntPredicate to make it work anyway?
 
I want the stream to include the terminating value, not exclude it.
The predicate would be:
i -> i  != b
but include the b
 
0
Q: Utility Method to find the Square root of a nuimber

Guest /** * The class MathUtil contains methods for performing basic numeric operations such as the squareRoot functions. Square root of 2.0: 1.4142135623746899 */ public class MathUtil { /** * Returns the correctly rounded positive square root of a double...

 
5:50 PM
So that's a takeUntil?
 
yeah
 
It's so frustrating that I cannot find my code, because I'm 100% sure I have seen this problem
and attempted to solve it
@rolfl What's the use case then, still collatz?
> 1) Stream.takeWhile(Predicate<? super T> test)
Returns a stream consisting of the longest prefix of elements of this stream
that match the given predicate
You want the element after that, right?
 
Think of it as being the difference betwen a while loop, and a do-while loop
 
0
Q: Tic tac toe game, suggestions?

zacbracI'd like to get an opinion on the code I've made for a tic tac toe game in C++. I'm pretty new to C++ but I'd like to improve. I haven't been able to think of any improvements. One bug I'd like to figure out is that if a user enters values that aren't two separate integers the program seems to lo...

0
Q: Having Search Results and Search Criteria in different View/Controller/Model but Render on same page

Isaac LevinI have a View that includes a partial view (it is a basic search form, where the Main view makes a POST to get filter options, and the partial is the search results in Grid Form). I want to be able to call a separate controller on a button click and populate the partial view yet maintain the stat...

 
@rolfl Here you go:
0
A: Streaming int support

Simon André ForsbergAfter reading the problem description and before reading your code, I implemented something that was very similar to what you already have, which means that your approach to the problem is perfectly fine. Spliterator - of unknown size Instead of using Spliterators.spliterator(it, Long.MAX_VALU...

Well that was a quick upvote
 
6:00 PM
next meeting
Now you have my +1
2
 
I really cannot stand it if I cannot get something to work :|
 
No benchmark has been run. With my current method (See Here) I am running out of memory even though I have 32Gb so I am looking for a more efficient method. — Bijan 40 secs ago
 
2 answers and 2 votes until a bronze C# badge.
 
6:25 PM
@Hosch250 One of your questions makes use of . What do you mean?
 
@Mast It uses the Unity IoC container.
Writing a wiki now.
 
Which is, what?
 
0
Q: Array slice type in Java

coderoddeI have this "slice" type for managing array subranges. It is kind of the same thing as Pythons slice notation, yet I did not add negative indexing (since Java's Lists don't do it). So, what you think? Slice.java: package net.coderodde.util; import java.util.Iterator; import java.util.NoSuchEle...

 
0
Q: Can we make quoted code blocks less ugly?

200_successIt is often useful to cite blocks of code, particularly when writing an answer, and you want to distinguish between code that you are proposing and code that you are discussing. However, code blocks that are inside blockquotes currently look rather ugly, with non-uniform yellowish margins around...

 
I'm only familiar with and unity as a unit
 
6:26 PM
Unity is a DI container.
Wait til I get the wiki up.
 
@StackExchange @200_success I think I've seen a similar question before.
I want a skin to turn the whole site charcoal
Doesn't anyone have some CSS injection thingy for that?
 
If I made any mistakes, please let me know.
 
@Hosch250 nevermind
 
"use strict";
let now = new Date();
console.log(now);
// Prints: Tue, 12 May 2015 18:38:39 GMT
// Shouldn't this instead be undefined??
Is this a JavaScript quirk or expected behavior that a new Date() object should default to now if you don't set it?
 
6:44 PM
0
Q: Handling errors of nested promises (AngularJS, JavaScript)

FreelancerThis is in one of my AngularJS controllers: websiteService.get('websites').then(function(data) { $scope.websites = data; websiteService.get('groups').then(function(data) { $scope.groups = data; websiteService.get('websites_groups').then(function(data) ...

 
Hello.
 
Again?
 
Hi.
 
@rolfl Yep.
Is it not allowed to pop in once in a while?
 
2 hours ago, by Manny Meng
Hello.
Well, hello every 2 hours is..... OK, ... once in a while ;-)
 
6:48 PM
@Hosch250 Pretty good, that's better than the average tag wiki
@MannyMeng Feel free to mingle in the conversation :)
 
Hello.
 
no more complaining about IE.... now we have to go to the Edge to complain.....
 
@Mast - you must be new here ... ;-)
 
@rolfl Hello
 
@Phrancis it's pretty common in many languages for new Date objects to default to now.
 
6:51 PM
Team foundation Server is a wonderful tool, if you can get someone to actually use it...
 
Dec 22 '14 at 20:30, by Manny Meng
Hello people..
 
been working on a site based off a copy for a couple of hours only to find out, the original wasn't anywhere close to being up to date....
 
0
Q: Reusability, performance and unit testing concerns

Alundra the dreamwalkerHere's a brief explanation of my method: Provide a string and parse it to HTML code respecting a specific format the accepted format is : For dropdown menu : Test DropDown~Select:Options1; Options2;Options3--- --- For Text area: Test Text area~TextArea:text to display is there a better way to...

 
@Lyle'sMug Only for platform dependent projects (read: Microsoft-only). Cross platform you really want to use either Git or SVN.
Doesn't Visual Studio nowadays include Git as an option?
 
Hello.
 
6:53 PM
???
 
Xcode does.
 
@Mast I agree. I am still a novice at TFS and GIT but I know that they only work if you use them
and yes I use GIT for my personal projects....
 
3 mins ago, by nhgrif
Hello.
 
27 secs ago, by Manny Meng
3 mins ago, by nhgrif
Hello.
 
@Phrancis that's expected.
 
6:54 PM
28 secs ago, by Mast
27 secs ago, by Manny Meng
3 mins ago, by nhgrif
Hello.
 
@nhgrif Is there anything Xcode can't do?
 
Did I miss the hello-fest?
 
Can it auto-type?
 
Is there an echo in this room?
 
@SimonAndréForsberg Hello
 
6:54 PM
two
 
No, it just started
 
@skiwi your two accepts gave me two Enlightened silver badges!
 
@Mast there is nothing Xcode can't do. Can it auto-type? It has code completion and OS X can take dictation...
(So yes...)
Xcode made me toast this morning.
 
@nhgrif No, auto-type. Like driving without having to think about traffic. Just say where you want to go and the car drives.
 
@nhgrif Made you toast what?
 
6:58 PM
Xcode fried your computer?
 
Like, it's become your boss?
 
I think Xcode turned his Mac into a toaster.
That's kind of an upgrade.
 
Chewed up that many CPU cycles, eh?
 
@Mast yes. OS X takes dictation. Plug in a mic, talk, code appears.
 
@nhgrif Auto driving cars don't need a microphone. They need a destination, nothing more.
Xcode seems to be inferior to that.
 
7:00 PM
Funny story... talking dictation....
 
You don't need an IDE for code that writes itself, do you?
 
By the way, I'd like to hear you dictate your code. That's awfully funny to hear.
 
I don't. You asked if it were possible.
 
@nhgrif No, not itself. Whatever you need.
 
But also, it's probably not as funny sounding as you think of you look at Objective-C/Swift naming conventions and consider what code complete would handle.
 
7:01 PM
@nhgrif Code me Battleship! And the IDE will write you some Battleship code.
 
@nhgrif OK thanks for clarifying
@Lyle'sMug Don't get too close to the Edge, you might fall off ;)
 
DONT PUSH ME CAUSE IM CLOSE TO THE EDGE IM TRYING NOT TO LOSE MY HEAD
 
@nhgrif that should be the new Monday Wednesday song...
my week is not starting out well.
 
You know today is Tuesay, right?
2
 
my mortgage payments are going up about $150 a month starting in August.
@nhgrif yeah but by tomorrow I am going to lose my cool I think....
 
I got a Skype interview tomorrow morning though.
 
@nhgrif no...
 
ssshhhh don't tell anyone here....LOL
4
@Lyle'sMug That's good news!
time to start over on Today's project
 
This question is off-topic here, would be better to place it at codereview.stackexchange.commoffeltje 17 secs ago
 
This project is driving me nuts
 
7:10 PM
My boss still hasn't told anyone I'm leaving. Which is going to be really awkward tomorrow when I start training someone...
 
Now I'm trying to deal with Windows Store/Windows Phone specific stuff inside my shared VM...
I think I'd better, well, I don't know, hmm....
There are two things I could do.
 
One, create huge pre-processor blocks in the VM...
Two, put the VM in specific project, even though 90% of it is identical.
 
@nhgrif Just call it part of the BRB policy
 
Three, handle this bit in code-behind, which is stupid.
Four, give up programming entirely and flip burgers - not the optimal solution.
3
 
7:14 PM
unless you're mcdonlds.
 
Right now, I'm leaning toward two, with a series of SO questions first.
 
BRB policy?
I can't see what that was in reply to in my phone
 
@nhgrif The Big Red Bus policy..... I have to do this in case I get hit by a big red bus.....
 
Oh yeah... I've been talking about that policy for a month now...
 
@rolfl Next community-challenge: Bus factor calculator
 
7:18 PM
11 more days
 
0
Q: How to convert a double to a std::string without scientific notation?

kfmfe04Problem I need to convert a double to a std::string which contains no scientific notation and no unnecessary fillers. Using std::fixed with iostream yielded ugly results - extra fillers (0's). The closest working code I could get was to using sprintfs %g and then dealing with exponentials, sho...

 
Code Review question titles work better as statements...
 
@SimonAndréForsberg Nice ;)
 
@skiwi Raising his total of badges in that category to 38 O.o
 
@Mast damnit, now I need to get 4 more...
Ha, @nhgrif, look what I found :)
in The Whiteboard, Feb 21 at 22:27, by Duga
@jww "I cannot figure out how do the same in PHP" is an indication that this does not belong at Code Review. Additionally, OP says in a comment "There is no a single row of code yet". Additionally, this question does not belong on Programmers either. — Simon André Forsberg 1 min ago
 
7:28 PM
@SimonAndréForsberg That guy...
 
Have you seen all his MSO posts?
 
jww, Baltimore, MD and New York, NY
18k 15 35
 
I feel guilty about this, but I'm going with a couple preprocessor blocks for now.
The tutorials at msdn don't make a stink about it...
 
7:48 PM
(FizzBuzz in CSS3)
2
 
0
Q: Saving an uploaded file and returning form data

user1206480I am new to F#. This code is basically a port I did from C#. I am sure there is room for a ton of improvement, so how can I improve and make this more efficient? let SingleFIle (req : HttpRequestMessage) dirName typeDir (fileType : string) userName clearDir deleteExistingFile = ...

 
@skiwi Clever little hack there, didn't know you could have content: in CSS!
 
Found that gem somewhere on the net
 
8:25 PM
0
Q: Solving Diophantine equations - reloaded once

maaartinusInspired by this question, I was curios, if I could solve it for large n. For n=6209, its fifth power overflows long and I decided to stop below such numbers. The current algorithm reimplements the one from the linked question (the description, not the code) and could use some optimizations (but ...

0
Q: Feedback on efficiency of strategy for reducing a 2D array to it's longest unique series that aren't contained within any other

JonlineI have an array whose members are arrays containing strings. Each array has 5 elements, some of which may be empty but always at the end of the array. The order of the strings matters because their hierarchical labels—call them catLists. I need all the longest unique lists, ie. some of the shorte...

 
So, there I am, looking at the front page, and there's this one grayed out question
Then I realize.... oh, yeah, .
 
@rolfl I'm going to regret this, but what's a lombok?
 
lombok is a tool that allows you to write programs in a way that they can be pre-parsed in to Java
In theory, it allows you to replace the 'boilerplate' Java code with instructions and 'macros'.
I dislike it because ... I don't truse what I can't see, and I cant run the code without installing stuff on my computer, and learning a preprocess system
 
@rolfl Thanks
 
8:52 PM
0
Q: Python, while loop and counter

DavidC85Here's the question: Implement function rps() that takes as two parameters the choice (‘R’, ‘P’, or ‘S’) of player 1 and the choice (‘R’, ‘P’, or ‘S’) of player 2 and returns -1 if player 1 wins, 1 if player 2 wins, or 0 if there is a tie. The function rps() should do nothing more than determine ...

 
9:13 PM
@CaptainObvious Feedback on efficiency of strategy for writing titles that are several lines long
 
I suggest you look into how to "flatten" an iterable. I like this answer that I got on Code Review. — TigerhawkT3 14 secs ago
Hi Martin!! I agree, thanks much for your comment. I will delete and post it on codereview! — mekanix 15 secs ago
 
9:32 PM
0
Q: xml based framework for php

mekanixI recently published on github an updated version of my php framework which uses xml intensively and look for reviews from professionals mainly because I do programming as a hobby so I am not experienced. Would appreciate if you guys can have a look and tell me if this is somehow attractive idea...

 
BYE
SEE YOU ALL LATER
 
SEEYA LATER @ETHANBIERLEIN
 
9:59 PM
@rolfl I am going to regret this, but how is in your opinion lombok different from using another language that compiles to Java bytecode? Such as Groovy or Scala?
 

« first day (738 days earlier)      last day (3293 days later) »