« first day (434 days earlier)      last day (3575 days later) » 

5:01 PM
@syb0rg I clicked on that thing was wondering why no music video started playing!
 
Hello, world.
 
@Jamal It uses crapscript
In formatting at least ^^
 
select 'hi!';
 
Hello @Phrancis
 
@skiwi adds tag
 
5:04 PM
I see we have created two camps! One that wants it as simple as possible, and others that actually think about it.
 
I'm not sure that there is a proper language tag for that. It's a Google sheet function, not a programming language per-say.
 
I might as well in any interview question in the future take a more interesting approach by default to weed out the companies that simply want to hire a coding monkey that cannot talk.
 
Hmmm depends on your definition of interesting @skiwi.
You definitely wouldn't want to over engineer it.
 
I agree on not over-engineering
But FizzBuzz is a perfect example of returning a Stream<String>
And well adding min and max arguments is also a very logical step
But I would stop there, I wouldn't abstract it more away or you'll get some heavyweight solution
To me the solution I presented is as easy as the regular loop and possibly written even faster, I did a mess up on fizzBuzzify though, I should just have used the three dumb switch statements
 
5:09 PM
@syb0rg sythesis -> synthesis?
 
@skiwi Err, oops. Good catch!
 
@Jamal there are only two questions with . I'm changing it to
 
Contribution level: Spotted a typo
3
 
@Mat'sMug You like that blur effect?
 
hold on
damn
there's a dark-gray cloud in the background, doesn't seem to be there
oh crap
it's the 2nd monitor
I need a better 2nd monitor
 
5:12 PM
@Mat'sMug I can kinda see it.
 
@syb0rg I think the blur makes it "shine" brighter
 
@Mat'sMug I'm trying to implement now.
 
maybe this will help:
IDK
 
It kinda hurts my eyes in my implementation...
 
possible
 
5:16 PM
 
you render it dynamically?
 
MONKING!!!
 
hey @SimonAndréForsberg
 
Hi @SimonAndréForsberg
 
Evening @SimonAndréForsberg
 
5:17 PM
@Mat'sMug Yeah
 
I love the triple ping :)
 
Monking @SimonAndréForsberg
 
Ehh, the haze hurts my eyes to much. The sharpness looks better IMO.
 
Is this some kind of fizzbuzz day? Or what's all the buzz about?
3
 
5:19 PM
Hitting a hot network question list near you: codereview.stackexchange.com/q/56844/27623
 
@SimonAndréForsberg it's about the fizz
 
That Tritium program sounds really interesting
 
@bazola I'm working on finalizing it up for release, and creating a website for it.
It will probably be a few weeks before it is completely ready.
 
very cool
 
Oh @SimonAndréForsberg about the Java/Tesseract tool, I'm in the process currently of writing up a draft email to my boss to let him decide if I can use the code as my own or not
 
5:24 PM
Looks like is in need of some cleaning.
 
It's a bit complicated as the code is surely my own, but the idea came from work related stuff, hence the idea itself is under discussion
 
@bazola Yeah, I'm planning on releasing simultaneously to Github, Hacker News, and Code Review.
I might get the site for the project reviewed before the actual project is released though.
 
By the way, for those of you using Xcode:
@bazola To find every where a method is called, right click on the method and choose "Open in assistant editor". At the top of the assistant editor where the file structure is shown, hover over "Callers". i.stack.imgur.com/FV9AF.pngnhgrif yesterday
 
I did a couple @Jamal, but I don't want to blow up the front page. I'll look at a few more later.
 
@Jamal Thanks! Finally I got the Java gold badge! :)
5
@skiwi Alright, no worries. I have plenty of other things to focus on anyway. But let me know the results :)
 
5:30 PM
When is this going to be released?
172
Q: Profile Page Makeover, Part 2: the Prototype

David FullertonWow, that took longer than expected (though right around the 6-8 week mark), but we finally have a semi-working prototype of the new profile page. Recap There’s a longer explanation on part 1 but the gist of it is this: we’re splitting the profile into two pages: An “About Me” page which is w...

 
congrats @SimonAndréForsberg!
 
@SimonAndréForsberg I'm approaching my C++ goldie, which I never thought would be a possibility. I still need 25 answers and less than 100 upvotes.
 
@syb0rg 6-8 weeks
 
@Mat'sMug I'm expecting an even bigger congrats in about 17 days when I reach 20K
 
:)
 
5:32 PM
It's been closer to 9 weeks since that post was created though.
 
@ckuhn203 I'll work on it gradually. I do wonder if should eventually be burninated, but I'm not concerned about that now.
 
On CodeReview?
 
Maybe. It's a pretty general tag. Only 33 questions.
And they're all over the board.
 
0
Q: Deleting nodes having greater value on right side

user2761431My iterative solution to the problem. My logic follows Method 2 mentioned in the solution to that problem. Suggestions welcome. #include <stdio.h> #include <stdlib.h> struct node { int data; struct node* next; }; void printList (struct node* head) { struct node* current; for (...

 
I'm not sure that code is the OP's, based on the link. ^^
 
5:42 PM
It's not even loading for me.
 
I need help for a function name....
I'm creating a Fraction struct. I can access the numerator or denominator via myFraction.numerator or myFraction.denominator
But I want to create a function for returning the numerator/denominator as a tuple.
 
Why? Doesn't your Fraction struct already encode this?
 
Encode what?
I just want a function that return (self.numerator, self.denominator)
As a convenience function
Because if somewhere off in the future I have a function that takes an (Int,Int) tuple as the argument, passing the result of that function is a little cleaner than building the tuple on the fly.
And does it hurt for the function to exist and not be used?
 
func fraction(str:String) -> (numerator:Int,denominator:Int)
{
var numerator = ...
var denominator = ...
return (numerator, denominator)
}
 
@skiwi Wow, that's even more over-engineered than the FizzBuzz I wrote a year or so ago!
2
@nhgrif If Switft is as Swift as it sounds, I think I might rather learn Swift :)
 
5:53 PM
Okay, I'm done cleaning for the day. Good thing I came across this question, which was lacking a language tag all this time.
...since '11.
 
Simon, do you mean swift as in efficient code that runs fast?
What's wrong with this?
func greatestCommonDenominator(first: Int, second: Int) -> Int {
    return second == 0 ? first : greatestCommonDenominator(second, first % second)
}
there's a logic error in it...
 
how does the operator binding work?
is it (second == 0) ... or second == (0 ? ...)
 
I just put parenthesis around (second == 0) and the problem persists.
 
which call fails?
 
Well, it's recursive, and second == 0 is never evaluating to true.
 
6:04 PM
yeah but for which initial input?
 
Oh
42 and 6
 
can you step through? does the == compare values or references?
 
values
 
hey nhgrif, while you are here I just want to thank you for all the help you have given me!
 
I'm in the Swift playground... so I'm not 100% sure how this stuff actually works.
No problem Bazola.
You are giving me a free copy of your Dwarf game, right? ;)
Hang on, I think there's a different issue @Nobody
 
6:08 PM
Absolutely! haha
 
nope, nevermind...
 
@Mat'sMug The 2nd Monitor couldn't be better than the one we have IMO.
 
lol my old computer screen
 
Hmm, no, the function works. The problem is elsewhere...
 
@SimonAndréForsberg It would be hard to over engineer it even more
 
6:09 PM
Oh... welp, I'm dumb.
 
@skiwi Is that a challenge?
 
lol
 
Perhaps I should make a FizzBuzz program that solves a Samurai Sudoku?
I have no idea how that would work though.
 
I was thinking about doing a FizzBuzz in which one functions sets a bitmask, the other function takes in a bit mask and prints the correct value based on the bitmask.
 
you solve 100 puzzles
 
6:12 PM
Use the leftmost two bits for fizz and/or buzz.
 
@SimonAndréForsberg I think it'd be better for you if you wouldn't do that.
 
Fizz & Buzz mapping to some puzzle type, FizzBuzz being the samurai; non-fizz/buzz are just "normal" sudokus
 
I should find time to work on my other program, I'm sure you ahe also seen it @SimonAndréForsberg
Not the FizzBuzz question of today, but the question before
 
@nhgrif So what was it?
 
@skiwi What other program?
@Mat'sMug That would be too crazy I think, even for me.
 
6:15 PM
I'm trying to reduce the fraction in the didSet part of the numerator or denominator...
 
:o project euler site was hacked? :( projecteuler.net/news
@SimonAndréForsberg This one below
 
Which.... sets those properties and triggers the `didSet`....
Which.... sets those properties and triggers the `didSet`....
Which.... sets those properties and triggers the `didSet`....
Which.... sets those properties and triggers the `didSet`....
Which.... sets those properties and triggers the `didSet`....
Which.... sets those properties and triggers the `didSet`....
 
14
Q: Tool to calculate profitability of certain items in a game

skiwiI have created a tool that lets me calculate the profitability of doing certain actions in an MMORPG game which I play, it's more edging towards a quick-and-dirty solution than towards a neat solution because it's simply a tool and does not need excessive robustness, however I do think there is r...

 
@nhgrif Staaaaaaaaaaaaaaack Overflow!
@nhgrif Is there no way of accessing the variables directly without triggering the didSet ?
 
Yea, I knew it was stackoverflow, but my first assumption was it was in the recursive function.
 
6:17 PM
ah, finally managed to model OP's entities with yUML. ....damn
 
That's what I'm researching... but it looks like not... even though this was an option in Objective-C...
I think I have a different solution though.
 
@Mat'sMug I just used Player & Team for my example, all others are just the same concept anyway
 
@nhgrif Or is there a way to change the value that actually gets set? didSet is called after the actual set I suppose, so is there anything for before the actual set?
 
I can use willSet, and set and I think I'm just going to do it in set
 
@JeroenVannevel nice answer you got here
 
6:20 PM
I'm just glad EF was being friendly and didn't give me errors with the mapping
I would've called it off otherwise
 
I find his model ...scary
like, way too complicated for what it does
 
It's mainly those two intermediate classes that he defined himself that make it really inconvenient to read
 
these damn licensing issues are killing off all my vigor to publish FOSS
 
yeah
 
6:26 PM
make a scruffy out of it! ;)
pretty clean
the PlayerAccount being referred to as Player was confusing, too
 
Yeah, I removed all his Player* names
 
This is Code Review not Code Golf. — ckuhn203 9 mins ago
:/ That's not Code Golf.
 
once you scrub the dirt from it, it's an okay model
 
yeah
(yay, [badge:revival]!)
 
@Mat'sMug: Take my ammo: point me at targets and I shoot (after some short verification and if I did not already hit)
 
6:30 PM
0
A: Tracking sports statistics

Jeroen VannevelI made a small example to show you that all your worries are in the past. Before you implement this yourself though, keep Mat's remarks in mind: I made this as a quick sketch and separating the mappings from the context, naming conventions, etc are important for your code's clarity. That being ...

 
@Mat'sMug: Target down, also had some collateral damage :)
 
:D
 
@Phrancis: Yeah, now that you say it the word comes back to my mind.
 
@Mat'sMug what did you use to make that flowchart you posted in your answer there?
 
6:36 PM
click it
 
Ah neat, I need to learn to use that thing. Tutorial somewhere?
 
Are there different "looks"?
 
yeah, there's Plain and there's Boring, too.
and you can change the size and direction
(the links above the textbox)
 
Sweet
 
6:41 PM
I've put the edit link as the alt text of the image, too. we do have blind users.
@JeroenVannevel could TournamentMatch be superfluous?
In that case TournamentMatch class should be deleted and replaced by composition 1:N Tournament - TournamentMatchResult. The names of classes are misleading which should be corrected. — VDohnal 1 min ago
 
0
Q: Followup to BigInteger Cube Root Optimization

Brian J. FinkFollowup to this Here's my current code for this cube root approximation: public static final BigInteger _3=BigInteger.valueOf(3); public static BigInteger cbrt(BigInteger n) { BigInteger temp=BigInteger.ZERO.setBit(n.bitLength()/3+1), root; do { root=temp; temp=root.add(root...

 
I'm excited, by end of today my music studio room will be functional again :D
 
you play?
 
Just got the sound hooked up. (Fires up Spotify)
 
6:48 PM
Not really I'm more of a producer. I can fake playing bass or drums
 
oh
 
haha like the logo
 
Me too, my partner made that (as well as everything in the graphics section). It looks spiffy on a business card too
 
6:50 PM
Yeah love that one
 
♪ 01 War
wtf the player lists the song it's playing ..at the bottom?
I'd put some of those in a video game
 
Ever need some music made let me know. Also, everything in the Psych-Nein section you can download free. You should listen to Dark Matter there it's awesome.
 
♪ 07 Dark Matter
 
<3 Stephen Hawking samples in there
 
:)
 
7:04 PM
Hm:
Vladimir Putin, Branson, MO
44 8
4
 
0
Q: Text-based terrain generator (Part 2)

Vladimir PutinI've updated my text-based terrain generator a lot. Even though I haven't worked on it all that much. I really just want to know, like usual, is there anything I can improve? How can I shorten the code? What can be made more efficient? Yada yada yada... #!/usr/bin/env python from random import ...

 
> This code is about as portable as the Great Pyramid of Cheops.
2
100
A: Draw with your CPU

squeamish ossifrageC (Intel Core Duo + OS X/Darwin), 248 bytes #include <unistd.h> #include <mach/mach_time.h> #define M mach_absolute_time() main(){char*s="JJJIHGFGHIJJJ@BDFHJJJHFDB@JJJJ@JJJJBBBBBBB";uint64_t i,t,y=1;for(;*s;s++){ for(i=40;i;i--){for(t=M+(*s&15)*9090909;t>M;)y*=7;usleep((11-(*s&15))*9091);}}} T...

 
This is a good playlist if you like metal, punk, industrial
 
@Nobody thinks of a joke involving politicians and snakes
 
7:12 PM
lol
 
@Jamal: No actually I was thinking about a joke about posting questions with a bare chest
 
By just opening Eclipse, my CPU graph wrote "Simple Mail Transfer Protocol". — lolesque yesterday
 
Yay, today's question also went hot!
 
@skiwi So did mine! (yours was a bit hotter than mine though)
 
I see both of [FizzBzz in Objective-C] and [Is this FissBuzz Swift-y] in the hot list :)
 
7:15 PM
@syb0rg How do you define hotness? Votes? Views?
 
Thermometer.
3
 
@skiwi A combination. You beat me in both votes and views.
 
I'm still intending to get a slver badge on 25 upvotes... But I've yet to do such a good question :)
 
0
Q: Yet another FizzBuzz

Jerry CoffinSince today is apparently a good day for...unlikely FizzBuzz implementations, I decided to contribute another, this one in C++: #include <iostream> #include <functional> #include <vector> #include "xrange.h" int main() { std::vector<std::function<void(int)> > funcs { [](int i) { std...

 
void(int), what did I just read?
The whole qustion... what did I just read?
 
7:19 PM
0
Q: Java dog owner simulator

JavaCoderI've just started programming and read a book called Head First Java. I thought it would be fun to make a training project that i can put all the stuff i learn into. So the question is if the code i've written in here is just really bad or good code written for a beginner. I've got 4 classes M...

3
Q: Yet another FizzBuzz

Jerry CoffinSince today is apparently a good day for...unlikely FizzBuzz implementations, I decided to contribute another, this one in C++: #include <iostream> #include <functional> #include <vector> #include "xrange.h" int main() { std::vector<std::function<void(int)> > funcs { [](int i) { std...

 
@skiwi I'm just five short on Everyone Loves Fibonacci.
 
@ckuhn203 5 4
Oh cool, my question from yesterday is now my best scoring question
 
Can someone explain to me what the heck a FizzBuzz is?
 
> Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz"
 
It's an interview question @Phrancis.
Although, I'm not sure I wouldn't laugh at someone who asked me to implement fizzbuzz at an interview.
 
7:23 PM
ckuhn: codereview.stackexchange.com/questions/56844/… My answer isn't Code Golf. :/
 
Darn close with all those ternaries nhgrif.
 
CodeGolf is about implementing something with the fewest possible characters.
 
@ckuhn203 I'd implement it in my way and impress them ;)
 
The posted answer is about implementing the given problem in the most efficient way possible.
 
Ah. I think I could make that with SQL hah - Next question I'm asking!
 
7:25 PM
I'm in the camp that you write code people can read efficiently.
 
I am too.
But sometimes efficiency is of the upmost importance.
See my other answer on that question.
 
I did. And I up voted your other answer.
 
And this answer you're claiming is codegolf is prefaced by the disclaimer "if we want to sacrifice readability in favor of performance"
 
I'm not going to argue with you @nhgrif. I didn't feel it was an advisable way to do it, so I down voted. It's not personal.
So, please don't make it personal.
 
What's not readable about it?
The ternary operators?
 
7:30 PM
The nested ternary operators. Yes.
I'm fine with using them for quick, one liners. But the second you nest them they because thrice as hard to read.
2
Thanks @Santa!
 
I'd argue the same is true for nesting anything, really.
 
So would I.
 
And either you can or can't read ternary operators, but the problem is the nesting and not the ternaries.
Because in this case, we're using ternaries because we're inlining them in a function call.
 
I would agree with that.
 
Or I think it's actually a macro.
 
7:35 PM
I wouldn't know.
 
So David K's answer is virtually the same level of nesting as my ternary answer.
Except his answer provides no efficiency bonus.
 
All this football leaves me less time to code :( Just 2 more days to hang on
 
But for whatever reason, my human brain can easily understand his answer.
 
Probably just a matter of getting/using ternary more.
I could actually reformat the ternary a bit to make it even more if-else looking minus the word if or else
 
@Mat'sMug Isn't it just Match? I don't think Match and MatchResult are necessarily the same (although they probably should be)
 
7:40 PM
for (int i = 1; i <= 100; ++i) {
    NSLog(@"%@",
        i % kFizz ? (
            i % kBuzz ? (
                @"FizzBuzz"
            ) : (
                @"Fizz"
            )
        ) : (
            i % kBuzz ? (
               @"Buzz"
            ) : (
               @(i)
            )
       )
    );
}
 
Come on @nhgrif. You really think that's readable?
 
No, I think it's perfectly readable as it is.
But now the only difference between that and using if else is the fact that it's nested in the function call.
for (int i = 1; i <= 100; ++i) {
    NSLog(@"%@",
        /*if*/ i % kFizz ? (
            /*if*/ i % kBuzz ? (
                @"FizzBuzz"
            ) /*else*/ : (
                @"Fizz"
            )
        ) /*else*/ : (
            /*if*/ i % kBuzz ? (
               @"Buzz"
            ) /*else*/ : (
               @(i)
            )
       )
    );
}
 
@JeroenVannevel IDK, his naming is way off, IMO OP's priority is to address the naming, to make sense out of everything.
interesting answer/approach here:
0
A: Returning the lowest and highest number based on input

ActiveHighIf you are only worried about showing Min and Max, and nothing else is the desired result then why not use an immediate calculation approach like this? It surely does not store unnecessary inputs - using System; namespace ConsoleApplication1 { class Program { static void Main(s...

 
That's ^ an answers that makes you go "D'oh! I was overthinking it."
 
@JeroenVannevel good point about Math.Max & Math.Min
I don't understand the comment though
Nope. You can use Math.Max. I just try to avoid type casting as a whole. Ternary is faster than that. — ActiveHigh 52 secs ago
 
7:51 PM
Yeah, me neither
There's an overload for each numeric type
 
yeah
 
And even if they internally cast; this will never be a performance bottleneck
 
and who cares about performance, user gets prompted for a number at every loop iteration...
well
nah
it's anyway, OP should be guided into writing readable / maintainable code; performance is the least of OP's concerns
yay [badge:necromancer]! thanks @Santa!
 
that dog thing looks juicy
 
the dog owner thing?
 
7:59 PM
actually the question is OT as the code is not valid I think
 
public void poop() {
    System.out.println(name + ": *poops*");
}
 
@Mat'sMug yup
agh, it got an answer
now I have to selectively filter out what has been answered
this is why I hate followup-answering
 
Obj C & Java fizzbuzz went hot.
 
@JeroenVannevel and an early checkmark
 
That was fast.
Uh oh. . See ya guys.
 
8:07 PM
later @ckuhn203!
 
Can anyone link an easy-to-understand FizzBuzz?
I'd be curious to understand the math behind it
 
@syb0rg MARCO
0
Q: Fraction (rational number) structure with custom operators

nhgrifFirst, the struct itself: struct Fraction { var numerator: Int { get { return self.numerator } set (newNumerator) { self.numerator = newNumerator } } var denominator: Int { get { return self.denominator } set (newDenominator) { ...

@Phrancis
Fizz buzz (also known as bizz buzz, or simply buzz) is a group word game for children to teach them about division. Players take turns to count incrementally, replacing any number divisible by three with the word "fizz", and any number divisible by five with the word "buzz". Play Players generally sit in a circle. The player designated to go first says the number "1", and each player thenceforth counts one number in turn. However, any number divisible by three is replaced by the word fizz and any divisible by five by the word buzz. Numbers divisible by both become fizz buzz. A player who...
 
Merci
 
0
Q: Fraction (rational number) structure with custom operators

nhgrifFirst, the struct itself: struct Fraction { var numerator: Int { get { return self.numerator } set (newNumerator) { self.numerator = newNumerator } } var denominator: Int { get { return self.denominator } set (newDenominator) { ...

 
Spotify just shuffled to this song. Hilarious XD
(nothing vulgar in it)
 
8:11 PM
Is there an online resource for performing SQL queries?
like, without a backing database, just using a temp table.
 
7
A: Why does int i = 1024 * 1024 * 1024 * 1024 compile without error?

Eric Lippert I have no idea why the second variant produces no error. The behaviour that you want is a feature. For you to use any feature, the feature must be thought of, considered to be a good idea, designed, specified, implemented, tested, documented and shipped to users. For Java, one or more of th...

> For C#, all of those things did happen -- about fourteen years ago now -- and so the corresponding program in C# has produced an error since C# 1.0.
and lol:
Stupidest tech-hipster answer I've read on this site so far. Not only does this answer not actually answer the OP, but it just stands to insult a programming language. This is not constructive nor helpful. The worse part is that some people actually upvoted this garbage. — CyberneticTwerkGuruOrc yesterday
 
@nhgrif what RDBMS?
 
any, but probably SQL Server preferred
I wanted to try SQL FizzBuzz.
Because I suspect it can be done without loops...
 
SEDE perhaps?
 
8:14 PM
d'uh!
 
0
Q: Text Adventure with Combat in Python, Game reset Function

MattOPlease suggest improvements to this game to make it more idiomatic python. Also how should I refactor to make line 183 (restart game instance if you die) actually work? import random import time class Hero: def __init__(self): self.level = 1 self.max_hp = 3 self.hp =...

 
@nhgrif I can think of a way to do without loops but I'm curious to see what you are thinking of, do share your sqlfiddle after a while
 
there's a fiddle for everything huh
 
8:30 PM
1
Q: FizzBuzz in SQL--no loops

nhgrifMS SQL Server, no loops. ;) WITH Numbers AS ( SELECT 1 as Number UNION ALL SELECT Number+1 FROM Numbers WHERE Number < 100 ) SELECT CASE WHEN Number % 15 = 0 THEN 'FizzBuzz' WHEN Number % 5 = 0 THEN 'Buzz' WHEN Number % 3 = 0 THEN 'Fizz' ELSE CAST(Number as varchar) ...

 
What is the % operator for? I've only use it as a wildcard so far
 
Modulo
 
???
 
It does integer division and returns the remainder
5/3 is 1 and 2/3rds, right?
5%3 = 2
10/7 = 1 and 3/7ths. 10%7 = 3
 
So it basically rounds the answer to the closest integer?
 
8:32 PM
No.
This isn't how it's executed... but it subtracts the number on the right until it can't any more (without going negative) and returns what's left
 
AHH now I get oit
it
 
25 % 7
25 -7 = 18 -7 = 11 - 7 = 4
so 25 % 7 = 4
Because 25/7 = 3 and 4/7ths
 
OK good to know
That would not work on decimals or would it?
 
No.
It's only for integers.
For decimal... it'd be something like...
 
Actually the remainder is (mathematically) well defined also for real numbers but most programming languages (that I know of) do not offer it
 
8:35 PM
What?
The remainder part of a decimal number is basically the decimal part.
But there's not an operator to easily get it...
 
In mathematics, the remainder is the amount "left over" after performing some computation. In arithmetic, the remainder is the integer "left over" after dividing one integer by another to produce an integer quotient (integer division). In algebra, the remainder is the polynomial "left over" after dividing one polynomial by another. The modulo operation is the operation that produces such a remainder when given a dividend and divisor. Formally it is also true that a remainder is what is left after subtracting one number from another, although this is more properly called the difference. T...
 
Basically... A % B works nice for integers, but for decimal numbers you'd need something like... (A/B) - CAST(CAST(A/B as Int) as decimal(10,2))
We've had 7 questions in the last 24 hours.
6
 
lets make it to fizzbuzz questions?
 
halfway there
 
hm maybe I should get my feet wet in some obscure language with fizzbuzz? How about javascript ^^
 
8:42 PM
Will have one FizzBuzz question in a bit
@Nobody How about
 
Anyone gonna do FizzBuzz in Brainfuck? :P
3
 
That, too!
 
I don't think should even be allowed on CR. lol
 
0
Q: Using if in XML

MinAin this simple program for write minimum of 2 numers : cin>>a,b; min=a; if (b<min){ min=b; } cout<<min; create XML for this program: <start> <InOut> <in> a </in> <in> b </in> <out> min </out> </InOut> <calc> <ins> a=3 </ins> <ins> b=5 </ins> ...

 
8:44 PM
I'd attempt assembly myself, but division scares me.
 
@Jamal looks like your name's all over this FizzBuzz
 
@Jamal: division in assembly is only one mnemonic
 
Except I don't know a thing about Brainfuck. :-/
 
The only language not yet done (today) that I could manage would be , and I may do that... I wanted to do a FizzBuzz using bitmasks...
 
@Nobody I mainly know x86, and it's always been tough for me to get it working well.
 
8:45 PM
Wait. Since when was the express version of Visual Studio a 30 day license?
WTF?
 
Time for a cigarette.
 
@nhgrif Is there one version that you can just plug into the playground and it runs?
 
@CaptainObvious This makes little sense to me.
 
@Jamal You forgot about FizzBuzz in Whitespace
 
lol
 
8:48 PM
@Jamal: You make the x86 assembler and I try to write brainfuck
 
Uh, everything you need to put into the playground is in my question. There's just no actual using the struct, but you can easily do that.
 
@Nobody I can give it a try, I suppose. I still have plenty of time this summer to continue with Java.
 
Fortunately Arch Linux has a package for a brainfuck interpreter ^^
 
Any python people want to find out if this code works or not?
 
@Mat'sMug That's the only bad answer by Eric Lippert that exists in the universe
 
8:57 PM
i have flowchart for detect minimum in 2 number i write c++ code replace flowchart image i edit this code and replace flowchart with c++ code @Jamal — MinA 57 secs ago
Anyone want to help out here?
 
Now it should work @syb0rg Apparently I have no clue how to do these setters/getters right...
 

« first day (434 days earlier)      last day (3575 days later) »