« first day (852 days earlier)      last day (3164 days later) » 

9:00 PM
0
A: Ruby script to deactivate or add users to database table

JonahSome high level advice: Fix your indendation. For example, the indentation is randomly increased on this line: choice_client_ice = gets.chomp.to_i. I mention this only because there is a lot of deep nesting here, which is confusing enough without incorrect indentation. Which brings me to... T...

 
incoming
 
When?
Where?
 
VBScript is a stupid language. Just say'in.
 
It is
Thank God it doesn't exist anymore
 
@IsmaelMiguel You wish
 
9:06 PM
@IsmaelMiguel Lol, what do you think I just had to fix
 
That ^^
 
Questions to improve code do not belong here. You can place them on Code ReviewJan Doggen 59 secs ago
 
Well, it isn't used that much
Only by you
 
I'm voting to close this question as off-topic because it belongs on CodeReview.SE — Jan Doggen 24 secs ago
 
That, I can call near-unexisting
 
9:08 PM
@JanDoggen Close a question if it's off-topic for SO, not because it's more on-topic for Code Review. — Mast 18 secs ago
 
0
Q: Hello, Brainfuck

MastIt has been bugging me for a while that while I understand how the basics of Brainfuck works, I can't get a firm grasp on the advanced features of the language. When printing a sentence, the basics are pretty simple. I've written a generator for such things. Take a basic sentence: Hello, Wor...

0
Q: AngularJS - How can I make this code more clear?

Mati Cicerovar myService = function () { var _enabled = true; var _authUrl = ''; var _clientId = ''; var _sessionLife; var _supported = function () { return _enabled && _authUrl; }; var _saveTokens = function (http, deferred, url, credentials, storage) { cred...

 
you know, CBM-BASIC 2.0 is supposedly dead, too.
 
And VB6...? lol
 
I have a VB6 project for review
But I need to change things there
 
@CaptainObvious Start by writing a better title that says something about your code...
 
9:09 PM
But the stupid compiled crashes!
 
Funniest thing about VBScript, is it's the first language I tried learning. Quickly changed that to C++.
 
My first one was Pascal
 
...CBM-BASIC 2.0
 
2nd was VB
3rd was C
 
then QBasic
 
9:10 PM
4th was Javascript
 
Wot, a downvote on my Brainfuck question?
I never get downvotes.
 
5th was C#
6th was PHP
@Mast Link?
 
@IsmaelMiguel See latest CO.
 
3 mins ago, by Captain Obvious
0
Q: Hello, Brainfuck

MastIt has been bugging me for a while that while I understand how the basics of Brainfuck works, I can't get a firm grasp on the advanced features of the language. When printing a sentence, the basics are pretty simple. I've written a generator for such things. Take a basic sentence: Hello, Wor...

 
Oh
You forgot one thing
Your code has 0 comments
Literally
 
9:12 PM
@IsmaelMiguel It's Brainfuck
It's printing a sentence. You want a comment with that?
 
@Mast that too:
41
Q: FizzBuzz in Brainfuck

Simon ForsbergInspired a bit by a previous Brainfuck question and the recent fizzbuzz invasion, I decided to make FizzBuzz in Brainfuck. The code is entirely my own, except for the inclusion of the Printing a number algorithm that I found on StackOverflow. My code is divided into several parts. Setup Const...

 
@Mast So, the code is basically print("Hello, World") in BF?
 
Have you seen Simon's question?
 
^^ he didn't put this up for review (although it's included in the post):
++++++++++[>++++++++++<-]>>++++++++++>->>>>>>>>>>>>>>>>-->+++++++[->++
++++++++<]>[->+>+>+>+<<<<]+++>>+++>>>++++++++[-<++++<++++<++++>>>]++++
+[-<++++<++++>>]>>-->++++++[->+++++++++++<]>[->+>+>+>+<<<<]+++++>>+>++
++++>++++++>++++++++[-<++++<++++<++++>>>]++++++[-<+++<+++<+++>>>]>>-->
---+[-<+]-<[+[->+]-<<->>>+>[-]++[-->++]-->+++[---++[--<++]---->>-<+>[+
+++[----<++++]--[>]++[-->++]--<]>++[--+[-<+]->>[-]+++++[---->++++]-->[
->+<]>>[.>]++[-->++]]-->+++]---+[-<+]->>-[+>>>+[-<+]->>>++++++++++<<[-
>+>-[>+>>]>[+[-<+>]>+>>]<<<<<<]>>[-]>>>++++++++++<[->-[>+>>]>[+[-<+>]>
 
But it is extremelly well documented
 
9:14 PM
@Phrancis Except in Brainfuck it would more like print(H), print(e), print(l), print(l) etc.
 
@Mast And the BF code in the question was generated by your C++ script?
 
@Mat'sMug Yea, I'm trying to make the step from what I'm currently writing to arcane stuff like that. But I can't get my best practices down so I'm continually dubbing how I should tackle a problem.
@Phrancis Yea.
Should've phrased it differently, now I'm sure...
 
OK. I really don't understand the practical point of doing that...
 
@Phrancis Brainfuck doesn't have a practical point. It's about applied CS.
It's learning about best practices with memory and pointers.
My current Brainfuck style is very, uh, straightforward.
Just like my generator outputs.
But it can't be the best way of doing such.
Which is what CR is all about, right?
Doing something in a 'better' way
 
> It's easy to notice where exactly the code went wrong, right?
 
9:20 PM
@Phrancis Isn't it?
 
So, let's say you get a fantastic review of your BF code, what then?
Are you going to modify your generator to account for that?
 
It's easy to notice where exactly the code went wrong, right? - given the "correct" snippet, yes. Without it... not exactly. I'd suggest you break down the BF code into steps, and add relevant comments to make it easier to follow. Don't get me wrong, I have nothing against esoteric languages. But I think this post could be more clear about the approach taken; this post is a good example of how a CR brainfuck question should be approached. — Mat's Mug ♦ 33 secs ago
 
@Phrancis If at all possible, but that's a step too far.
The step between it, is for me to increase my best practices with the language.
@Mat'sMug You don't need the original snippet, you can see at the output what went wrong.
So, you guys recommend taking it down and give it a major rewrite?
 
@Mast sure. but with the BF code "uncompressed" and with a comment saying "// print 'o'" at the instruction that's supposedly doing that, I think it would be easier, even for someone that's never seen BrainFuck
 
@Mat'sMug That would not only result in repeated code, but also in repeated comments.
Wouldn't that make it worse?
 
9:30 PM
I think the real challenge with BF is not to write it per-se, but rather to write it in a way that it can be understood; and in that regards, I would say: No, that would actually make it better, rather than worse
 
0
Q: App settings helper

Stefan KarlssonThe helper should be able to set a default value if the value can't be fetched with the provided key. There is also a bool that will throw an error if the key value or the default value could not be fetched or converted. Can I make it more compact, safer, and still have the same functionality? ...

 
Ok, just that I learned code should be self-descriptive.
 
BF is hardly self-descriptive... and all (ok, both) non-interpreter/generator questions do include comments to help the reader follow the state of the program.
28
Q: ASCII table in Brainfuck

TyiloI made my first Brainfuck program today, which prints the numbers 0-255 and the corresponding character. I was wondering if I could improve my program, as I'm repeating myself a lot (e.g. 3 x copy & paste "comparer" function): max == 255 LF == 10 space == 32 '0' == 48 '9' == 57 ':' =...

(the other one is Simon's )
 
@Mast you looking for Brainfuck skillz? Be careful what you wish for.
 
@Mat'sMug I know Simon's FizzBuzz, it's one of the things that got me started on the language.
 
9:33 PM
Oh dear, what have I done?
3
 
@SimonForsberg I think it can be used outside the language as well, after being proficient in it.
 
I could post an answer to your question, but I agree with Mug's comment that your question could use some improvement
 
++++++++[>+>++>+++>++++>+++++>++++++>+++++++>++++++++>+++++++++>++++++++++>+++++++++++>++++++++++++>+++++++++++++>++++++++++++++>+++++++++++++++>++++++++++++++++<<<<<<<<<<<<<<<<-]>>>>>>>>>>>----.++++<<<<<<<<<<<>>>>>>>>>>>----.++++<<<<<<<<<<<>>>>>>>>>>+.-<<<<<<<<<<>>>>>>>>>>>-.+<<<<<<<<<<<.
(TTQW)
 
@Mast I know I haven't had much use for my Brainfuck skills
 
@Phrancis Now that's needless repetition.
AFAIK
 
9:34 PM
ok that's it. I'm making a BF interpreter in C-64 BASIC.
2
 
@SimonForsberg As said, I see it as applied memory and pointer knowledge.
 
@Mat'sMug
 
Yea, it definitely needs improvement...
 
@Mast but when dealing with memory and pointers, you normally have more operations than add 1, subtract 1 and while (value != 0)
 
@SimonForsberg
 
9:36 PM
@Mat'sMug make sure to run my FizzBuzz BF code in your interpreter to make sure the interpreter works properly
 
@SimonForsberg It being the FizzBuzz BF, or the interpreter? ;)
 
the thing about Brainfuck that makes it interesting to me is that it requires a completely different way of thinking than what most programming languages is normally about.
 
this will be fun. ...can't copy/paste into/from the C64 emulator
 
Yea, and I'm having trouble using what I know about the language to write programs which follow agnostic design practices.
 
@Mat'sMug Quit while you're ahead :)
 
9:39 PM
@Mat'sMug Now you need a screenshot interpreter.
 
@Mat'sMug Just run OCR on the screenshots.
 
Perhaps C64 emulator can fetch a text file in the file system? One for the BF and maybe one for the code?
 
@Phrancis that is one horribly inefficient way of writing "TTQW", who gave you that code?
 
Even my generator does that better.
 
Zak
9:41 PM
hi
bye
 
@Phrancis the C64 encoding predates everything that's known to Windows
 
Zak
Monknight @all
 
monking!
 
> It should work, though the code Brainf_cker generates is far from optimized
 
Greetings
 
9:41 PM
yeah, far from optimized indeed
 
More like purposely obfuscated.
@Mat'sMug @SimonForsberg @Phrancis Thanks for the feedback. I should've known better. I'll take down the question and re-state it later in a better form.
 
anytime :)
(I know you can do this!)
 
Yea, I'll get it right. Guess I'm just as human as the rest of you and was next in line for messing up :-)
 
Your question was closed?
 
question is, who was behind you? ;-)
> I'll take down the question and re-state it later in a better form.
 
9:47 PM
Ok, please take a look at finfo part at my code reviewed. So, would you recommend to $name = strip_tags($_POST['name']); ? Is that needed to $_FILES['file'] too? Or should I strip the $uploadfile? — madson gr 18 secs ago
 
I didn't saw it, sorry
May I vent something out, with swears bleeped out?
 
@IsmaelMiguel Sw*r *ll *n strs
Markdown stole a *
or 2
 
sure, but I need to say this first: when you say "I didn't [x]", whatever [x] stands for should be infinitive, so "didn't see". go on ;-)
 
@Mast Markdown messed that right up.
 
@EBrown Should've protected my stars.
2
 
9:49 PM
just let me know when your question is ready, @Mast.
 
@SimonForsberg Probably tomorrow, will do.
 
@Mast Damn right you should have.
Anyway, back to fixing this A/C.
 
I [bleeping] hate when some [bleeping] [bleeps] simply [bleeping] downvote a [bleeping] answer and don't [bleeping] have a drop of [bleeping] decency to [bleeping] say what the [bleep] hell is wrong!
(Remove the [bleeps] for a clean version)
 
@EBrown I thought that wasn't your problem?
 
@Mast Maybe he just has to flip all the switches on a circuit board.
 
9:53 PM
2 hours ago, by EBrown
I won't be here tomorrow afternoon, so not my problem. ;)
 
Apparently he has to fix it today instead of tomorrow, then.
 
user image
2
o.O
WTH!?
 
Hmm. Someone must've fallen into the processing plant.
3
 
yuk
 
Yuck
I'm not eating that
LOL
 
10:01 PM
can you spell Photoshop?
 
Mind reader
 
yum
I mean, yuk
 
braaaaaaaiiiiiiiins
 
@Malachi Fopothop?
 
I never thought that statement was worthy of three stars...
 
10:02 PM
hi
 
Hi
 
anyway, TTQW/TTGH, - behave people :)
hi!
 
Greetings
11PM and still working
 
What are you doing that for?
 
10:03 PM
Yeah.
 
Well
The bloody clients wouldn't leave the freaking computer alone
And I have to access it for maintenance
And it can't wait for tomorrow
 
@Jamal as always I must thank you for your quality-improving edit :)
4
 
Because they have a phone and won't pick up
 
> Rumour debunking website wafflesatnoon.com notes that entertainer Weird Al Yankovic tweeted the image back in March 2011. But, it is unclear if Weird Al actually created the image or simply grabbed it from somewhere else.
 
@Malachi That was expected
 
10:06 PM
lol
> For the record, we ate a number of the biscuits during research, and the consensus in the office is that there was no human flesh taste at all. (We'll keep trying, just to be thorough).
 
HAHAAHAHAHAHAHHAHAHHAHAHAH dude, that made me laught! I don't laugh since yesterday!
 
anyway TTGH
TTQW
 
I assume that is AL? Because we don't want any weird AI's around here.
 
@Hosch250 His name is Weird Al Yankovich
 
Weird AL
 
10:08 PM
1
Q: Lights on: playing with buttons in Javascript

CaridorcFirst play with the game a little bit, and it is quite fun (a little hard but very satisfying when you win, be sure to put it full page): <!DOCTYPE html5> <head> <title>Lights on</title> <script> document.addEventListener('DOMContentLoaded', randomize_and_color, false); functio...

 
But he's Al(l) Weird as well
 
Yeah, I figured out that SE's I's look a bit different than l's now.
 
lI
lI
When in doubt, markdown
 
@CaptainObvious OUCH!
 
10:12 PM
@Hosch250 Well sometimes the starting position is too easy...
 
It was 1 and 9.
 
@Mast It won't be my problem tomorrow, which is what it's looking like because we cannot fix it today. (We need several parts to fix it.)
So, I just got voted off the A/C repair train. ;)
 
Hehe, I just got 1, 2, 4, 5.
A single click got it (I've played it three times now).
 
I think that there are only 2^9 = 512 possible positions in my game
 
I'm reviewing that
 
10:16 PM
We will begin operations to move sites back to our New York data center in about 2.5 hours.
 
@Caridorc Dude, I'm a little disapointed :(
 
@IsmaelMiguel I am very beginner in JavaScript, this is my second program in that language.
 
@Caridorc And CSS and HTML?
 
@IsmaelMiguel Why?
Nobody writes perfect code.
 
CSS absolute 0 (maybe that would have simplified styiling?) HTML just a bit (a bit more than JavaScript but not much)
 
10:18 PM
@Mast Style attributes with repeated code, no CSS stlesheet for it, no click handlers, id's with numbers
And that's what I saw in 5 seconds
 
@IsmaelMiguel So? Don't do so freaking negative.
 
And yes, no one writes perfect code
 
@IsmaelMiguel Okay... this should be going into a kind review, not directly at the person in chat.
3
 
@Caridorc OH SH*T!!! My apolegies!!! I didn't saw the ! I'm so sorry!
@SirPython Don't worry
 
@IsmaelMiguel But I will make my best effort to improve it :) I expected it to be not-so-good as a second try. And do not worry a bit of Honesty never hurts.
 
10:20 PM
I'm really sorry
I only looked at the reputation and saw 8k
 
@Caridorc Yea, until you meet an honest brick.
@IsmaelMiguel Reputation only tells something about someone's proficiency with the site, not with writing code.
2
I missed my calling, should've studied Philosophy instead.
 
You're right
 
@Mast True, I am not great coder (beginner by many standards) but I am very active on this site, so my rep is high
 
It's just that I associate reputation with knowledge
 
@Caridorc Activity and rep are not directly linked though.
It's linked with posting many and/or good questions/answers.
Activity is broader.
 
10:25 PM
@IsmaelMiguel Which is sort-of a mistake, because I earned about 1500+ reputation from writing answers like "You should put a semicolon there" in about two weeks.
 
Weird...
 
Yea, I could write stop using namespace std; on half of all C++ questions and get some rep with that.
 
@Mast @SirPython good answers may not give you much rep, obvious ones may make you "rich"
In the end rep is a game, what really counts is the knowledge you gain about programming and best practices
6
00.28 where I live, good night. @IsmaelMiguel I will read your answer tomorrow morning, school is not started yet.
 
Goodnight
And once again, I'm really sorry for my attitude
 
Is there a specific problem you're having? If not, this is probably more appropriate for codereview.stackexchange.com. — seaotternerd 1 min ago
 
10:44 PM
One day, the 2nd monitor will turn ya'll into fine men
3
 
Hey @JeroenVannevel. How are you?
 
Pretty sexy, thank you.
You?
 
I'm fine, but not quite sexy ;)
 
Don't be so hard on yourself. I'm sure that if I was a snake, I'd make sweet sweet snake-lovin' to you
 
posted on September 03, 2015

Tonight at 8:30PM EDT (00:30 UTC), we will begin moving all services from our Denver, CO data center back to New York. The major user-facing services that will be involved in the move are: All Q&A Sites (including Stack Overflow) Stack Overflow CareersChatBlogsStack Exchange APIstackexchange.comArea 51Stack OpenIDWhat you can expect Each of the services listed above will be moved via DN

 
10:49 PM
Huh?
 
That is what threw me off! The Mr. Robot episodes are zero-based
 
Thanks, but I'm already taken.
 
S1E1 is 1.0, S1E10 is 1.9
how funky
 
I've only seen one episode of the show. I'd say it's pretty good.
 
10:52 PM
@EthanBierlein It really is
 
11:06 PM
-1
Q: water volume calculator/Java

user82724I'm at the beginning of my java course and the instructor gave us this question Create a java program that will calculate the water volume of a swimming pool or pond. The basic formula for calculating the volume of water (in gallons) based on the shape of the pond. ______________________________...

 
@CaptainObvious Please, don't just cast CVs without an explanation. Why is there a DV and a CV on this one?
 
I don't know about the DV, but the CV is because it isn't known to be working.
I'm posting a comment.
 
It doesn't live up to the requirements, that's for sure.
I gotta go to bed now, I'll leave it up to the community, and @Mat'sMug, to handle that one.
 
@SimonForsberg I know how you meant it, but it reads like you considere @Mat'sMug not a part of the community.
TTGTB
 
Good night, half of the community.
 
11:16 PM
Good night!
 
@Hosch250 lol
 
@JeroenVannevel Isn't your internship in Spain coming up soon?
 
Night all
 
0
Q: Nothing compiler/interpreter, Part 2

user82726Part 1 I've followed some of the suggestions: Adding newlines to error messages Implementing options (I decided to use boost instead of getopt) Using strerror for fstream failure Things I did not implement yet: Localization Reading code from standard input instead of files Things I'm loo...

 
@SimonForsberg handled by the community and the Mug
 
11:53 PM
I'm voting to close this question as off-topic because it is about Code Reviewpaddy 8 secs ago
 

« first day (852 days earlier)      last day (3164 days later) »