« first day (834 days earlier)      last day (3482 days later) » 
00:00 - 16:0016:00 - 00:00

00:00
RELOAD!
There are 1452 unanswered questions (94.4563% answered)
00:14
I'm voting to close this question as off-topic because it consists of 3 separate questions, and the first question is asking for a code review and the other two are for reference recommendations. — Maarten Bodewes 6 secs ago
00:59
monking
monking
Hey, @Quill
ouch, gotta hope that doesn't ping
Sorry, it was a mis-type.
That's alright, just gotta hope it doesnt ping him
01:01
Why? Is he asleep?
Or is it that thing that happened a few months ago?
Jul 1 at 23:55, by QPaysTaxes
Never ping me unless either
Although:
Aug 12 at 13:32, by QPaysTaxes
Someone ping me when the shit-throwing monkey is in here.
Did something between him and rolfl/nhgrif?
Yeah, I'll find the meta for you
I think I've read it before. Something about chat room rules?
They were just flooding the room - like @Duga does the VSDiagnostics room, only faster.
01:04
Yeah, this would be the one.
And most of it wasn't that relevant.
I'm trying to find the beginning of the whole thing.
It was a bit of an acidic time, but since the election concluded, it hasn't been as acidic
Jul 1 at 12:29, by skiwi
(btw. What's this Nth Monitor?)
@SirPython probably this:
01:21
do we need to rehash it all?
I'm turning one of my macs into a home server...
I'm here .... wanna have a round ?
(just kidding, promise...!!!)
@nhgrif I agree
I'm going to teach myself Ruby-on-Rails.
So I'm going to make a Rails app backed by Postgres (I think)
And as part of that, also help my girlfriend learn how to develop apps that interact with web APIs.
If I may suggest, without onowing your requirements, that you try a non SQL-based database?
Such as?
01:25
A few come to mind, depending on circumstances. MongoDB, CouchDB, NoSQL, etc.
Mongo and Couch nave REST apis, and fit well with cloud-based storage.
I don't know what I'll actually be developing right now
The main point is learning Rails and the server side of development.
Because that's what the server side guys use where I work.
As I said, I don't know the requirements. My knee-jerk reacion is simply because I am finding that I need to know that stuff urgently, and I don't.
I think I may put those off until another project.
I think I'll learn one thing at a time for right now.
No problem ;-)
I might not even use PostgreSQL and just use SQLite. This is purely on our local network.
01:28
It's funny, how, 10 years ago, I considered DB2, Oracle, Sybase, SQL Server, MySQL, Postgres, Ingress, and so on, to be so different......
heh
Now I just say "SQL things I know", and "Other things I should". It's all about perspective.
I think it's funny how people consider various OOP languages to be drastically different.
Really though, there's only two categories of OOP languages.
Swift and not-Swift.
Thank god, yeah
;-)
Oh right... I'll definitely be doing some sort of SQL.
That was the other thing the gf wanted to learn. Database stuff.
(SQL database stuff rather)
So many job postings want you to have some familiarity with SQL.
01:31
Postgress is relatively well documented, full featured, and stable. It's a good candidate.
The price is right, too
Well, I'm not going to use MySQL...
I would recommend against MySQL, its close enough to the others to be lumped in, but in some ways...... it's just too different
That
And I'd like to be able to use it on OSX/Linux, because ultimately the server machine we use for whatever we're doing will be one of those.
And that rules out MSSQL, even though I really like it.
MS's dirty secret.... they have a database that is really quite good, but it depends on an OS that has more downtime than the database itself.
01:34
Just installing OS updates means scheduled database downtime
Well, that's me. Off for a while (again).
The whole point, of course, for my end, is making all of the communication with the database go through the Rails app. But it would be nice to have a DB to test that library against.
Mat's and co will recommend MVP with a mocked database ;-)
Now, really gone.
Due to the nature of this question, you might be better off posting it on the Code Review site. — Xavier just now
hmm... command line psql is interesting. I know there are visual tools and dev envs, I've had them before... but so far, this is interesting...
(in a good way)
02:11
@EthanBierlein Hello, a photo of you for a change
Yup. ;-)
I decided real photos of me from now on.
Except for the occasional special occasion.
02:27
I like the vase
A question that asks, "Am I on the right path?" is essentially asking for a code review. There's a site that does that, but their requirement is that the question meets their exacting standards. I don't believe that this particular question would be acceptable there, nor is it here; from what I can see it doesn't look like it compiles. — Makoto 27 secs ago
@JeroenVannevel I agree. It is quite the lovely vase. Too bad I'm at a hotel, otherwise I'd buy it and take it home with me.
Hmm...
1
Q: Merge k Sorted Arrays

HengamehPlease review my answer for this interview question: Merge k sorted arrays, using min heap. import java.util.*; public class MinHeap{ public static class HeapItem implements Comparable<HeapItem>{ int[] array; int index; // the index of curre...

Maybe if I just, push it into this suitcase...
02:47
In common usage, theft is the taking of another person's property without that person's permission or consent with the intent to deprive the rightful owner of it. The word is also used as an informal shorthand term for some crimes against property, such as burglary, embezzlement, larceny, looting, robbery, shoplifting, library theft, and fraud (i.e., obtaining money under false pretenses). In some jurisdictions, theft is considered to be synonymous with larceny; in others, theft has replaced larceny. Someone who carries out an act of or makes a career of theft is known as a thief. The act of theft...
> The act of theft is known by terms such as stealing, thieving, and filching.
I'm going to "filch" this vase.
5
Q: A minimal version control system

SimpfallyI just finished writing a simple version control. You register files using "add", and then "com" will save them inside a directory, with an ID attached to it, same ID for all files. With "rev" it will copy back the content of the files, but won't delete any file other than the one in the "commitd...

I wonder...
Nah.
Greetings
@IsmaelMiguel hello
Greetings @IsmaelMiguel
How are thing going on over here?
03:00
Okay
8
Q: Harmless duplicate or are we being taken advantage of?

cimmanonThis question caught my eye because it had accumulated close votes as being a duplicate of another question, which is very rare on CR. The target was a question I reviewed last year by the same user. The new question: Has no indication that it is a follow-up. Makes all of the same mistakes as...

It seems like my decision do close as duplicate started a fire
I had an "unexpected issue" on my trip. But everything worked out.
?
What trip?
If I may ask
Oh, I'm up north in Lutsen, Minnesota.
Oh, right, you said you would be there a few days
03:03
After about one day in I decided that it would be fun to try and bail off of an alpine slide.
The result was... Anything but fun...
If your code is running as such, you might be better at code review. But please read their FAQ before posting. — Olaf just now
"try and bail off of an alpine slide" --> I have no idea what this means
An alpine slide is a long chute on the side of a hill, usually built by ski resorts to supplement summer income. A wheeled cart is used to navigate the slide. The ride is similar to a bobsled ride, except that it rolls over a smooth track—generally concrete, stainless steel, or fiberglass—rather than sliding on ice. The cart accommodates one or two passengers and is controlled by a hand brake located between the rider's legs. Pulling the hand brake handle causes the cart to stop; pushing or letting go of the handle causes the brakes to release, allowing the cart to accelerate. The ride is unique...
Why in the name of God you tried to jump out of that?
That really must have hurted AF
03:08
Actually, the orange stuff isn't just blood
I don't know the right name in English, but it is the result of your body fighting against infections and micro-organisms and all that nastiness
It basically, is a mix of both
(If I'm wrong, please correct me)
I must be healthy then if my body reacted that fast
That picture was taken 10 minutes afterwards.
I can consider it normal then
Once, I scrapped my knees because I tried to jump on a football (a.k.a. soccer) ball and the ball ran away
I scrapped them for almost 1m (~3ft)
It was painful AF
Ow. That sounds painful.
Well, night.
03:20
@EthanBierlein G'night
Have a good night
Take care of that
And don't bail out next time
Putting 1960's era technology in perspective: "It would run in as little as 8k 16-bit words of memory, and used a dedicated 1 megabyte hard disk."
1MB?
That's too much
If I'm not wrong, the DOS executables were initially limited to 64KB
The program I'm referring to ran on an IBM mainframe.
Wow...
I imagine the size of that HDD
(The physical size, not the size in bytes)
03:32
I worked on a project that used a VAX with four 5MB hard disks. They were each about six inches tall and rack mounted.
Holy God!
Let me guess: they were really noisy?
Hard to tell. The trailer we were working in contained something like 15 racks of equipment. The computer took up 3 of them.
How could you focus on such a noisy environment?
0
Q: Immutable object inheritance or instance

rink.attendant.6If I'm creating an immutable class from an existing class, should I override methods that mutate the property or have an instance of it and write my own methods to read from the property? I have an existing class Set which is basically a fancy array. There's a few more methods in the class but f...

It was mostly "white noise", which isn't that hard to tune out. We were often listening to other things on our headsets anyway.
03:38
That explains it
I find it quite dificult to focus without music
Last year, music has been forbidden at work
Supposedly, I've capped 100GB by listening to musics on Youtube
I use headphones under most circumstances when I'm in my office.
And I listen to my iPod.
I couldn't bring my tablet due to some musics being illegally obtained
Well
Not by me, but my friend downloaded them and I copied
I don't think my office cares about what music I listen to, as long as I'm not disturbing anyone.
And I get my work done.
I have to talk with client and answer the phone and do a ton more of stuff
And now that I'm mostly alone at work, it's nearly impossible to listen to anything anyway
But I felt that my focus fell really a lot
But he doesn't care
I'm voting to close this question as off-topic because it is a code review request asking for suggestions. codereview.stackexchange.com is a better site for requests like this. — dasblinkenlight 23 secs ago
03:45
Our phones are VOIP, so we can answer them on our computer and listen/talk through our headsets.
Our phone is a cellphone that is simply used as a regular phone
In fact, I can answer my office phone from anywhere in the world if I'm connected to the VPN.
It's just me and my boss anyway
A VoIP central would be too much
But that is really cool
Well, we have something like 650 people and we do a lot of telecommuting.
Holy God!
Where I'm working it's just me, my boss and his wife
03:48
That's a pretty small operation. I have never worked anywhere that small.
And guess who has to work 16 hours in just 8?
The cat?
There's no cat
Just a temporary slave in exchange of currency with an imaginary value
04:07
0
Q: Java: Dairy Applications With Accounts

Harout TatarianMain static AccountLogin objAccountLogin = new AccountLogin(); static AccountRemover objAccountRemover = new AccountRemover(); static AccountCreator objAccountCreator = new AccountCreator(); static Accounts objAccounts = new Accounts(); public static void main(String[] args) { startDi...

04:43
I thought about that. It's just that i wasn't sure much people actually follow code review — eran otzap 51 secs ago
@Duga That's a kick in the nuts :/
04:57
@eranotzap Code Review has over 67K users, 4 elected moderators, 40K visits daily, and had its graduation announcement 11 months ago. — Mat's Mug 21 secs ago
@Duga And the mod strikes!
:-)
2
@Mat'sMug That was quite a great answer. That should teach him something
By the way
05:04
Meh, I forgot to mention and an awesome community :-(
2
@Quill I flagged both as "Too chatty"
Kids
@Phrancis congrats cardshifters!
2
If you ever feel stupid, remember that today I spent over 9 hours debugging a problem on Windows. I had the "System Interrupts" burning 8-9% of my CPU, and a very slow PC while playing Tera. The problem was that I had the controller plugged in.
in TCG Creation, 7 mins ago, by Stack Exchange
"Imagine that.. Programmers who also like TCG? Who would've thunk?" @Rubberduck203 remember that? http://bit.ly/1NjKh8n
^ A year and 2 weeks ago :)
(the original message, that is)
TTGTB
05:15
Seriously.
SRSLY
06:03
@ita, I'm not sure, but you should ask another question for that; either here, or possibly on Code Review. — Cyphase 14 secs ago
06:45
0
Q: Can I ask for general comments on my project's directory structure

JodesI have a project X, module Y and Z, each have their own repo, IDE project, test directories, and a proprietary CI scripts. It's getting messy and I'd like to restructure it, and want advice on whatever I can do to tidy it, with best tips on best/common practice. Can I ask that on here? Or shoul...

07:26
0
Q: How can I simplify this code?

Benjamin DieleI have some functionality that allows the user to create a Meter, which counts your gas-, water-, and electricity usage. A Meter has one or more Counter objects, which keeps track of your usage for a certain date via CounterReading. Once a Meter is created, you can edit it by adding a new Readi...

08:20
Hi @mplf
I'm just in the middle of reviewing your clock.
@200_success fantastic, I've only just woke up and am reading the style changes Jamie suggested :-)
09:01
Here you go. That was a rather enjoyable review to write.
0
A: Mengenlehreuhr in Python

200_successThrottling Your program runs in a tight loop, consuming all the CPU it can get (and battery power, if on a mobile device). For a clock that a user might want to run in the background for a long time, conservation is important. Inserting even just a 0.1 second sleep between updates brings CPU u...

09:19
@200_success - good answer. I appreciate that :)
09:31
I'm going to blame the clock for making it an enjoyable review though rather than my crappy python ;-)
10:01
@Andy, that Code Review post is off-topic... — Quill 56 secs ago
so slow @Duga
@Andy seems to be using that as reference, even though the post's been closed
@Quill what's that supposed to mean? Did you the suggested solution with reference? — Andy 3 mins ago
10:21
0
Q: How can I format a code block below a list?

t3chb0tWhen I want to list a few things and give a code example below each item how can I do it without writing anything between the list item and the code block? Example: List item Code example not formatted as code List item text Code example formatted as code

10:50
1
Q: Is there any problem connected with synchronization between pthreads ? what kind of other improvements can be done to make code more generic?

ÕŽÕ¡Ö€Õ¤Õ¡Õ¶ Ô³Ö€Õ«Õ£Õ¸Ö€ÕµÕ¡Õ¶I have wrote the small timer using pthreads. For me it is interesting to know is there any problem connected f.e. with synchronization between pthreads ? What kind of other improvements can be done to make code more generic (f.i using templates, etc ...), especially how can I change the code acco...

11:06
0
Q: Wrapping primitives in a simple class

MattMattI made this Primitive class recently for my (opengl) engine; It basically wraps all basic primitive shapes, like cones, toruses, cube, ... which the user can use for various things. I would like to ask your advice if I could improve my class design in any ways; here is my code : Here is Primiti...

11:34
Performance questions are more appropriate for Code ReviewIKavanagh 8 secs ago
8 hours ago, by Ismael Miguel
Supposedly, I've capped 100GB by listening to musics on Youtube
Kids these days..... and no, it's not just you, @IsmaelMiguel ..... Why do people play videos to listen to music? They start a YouTube channel, with a video playlist, then put the thing in to the background, and have a 4-megabit stream running, and listen to about 0.2 megabit of that stream, and throw the rest away.
@rolfl What's wrong with Spotify / Apple Radio / Standard Radio / EveryOtherMusicStreamingService
Deezer FTW.
11:38
Nothing. Nothing at all, but don't use Youtube to play music.
3 mins ago, by rolfl
8 hours ago, by Ismael Miguel
Supposedly, I've capped 100GB by listening to musics on Youtube
It's my kids too. Many people do that.
A lot of kids don't know to download music (.mp3) and make playlists, so they resort to those apps that download the youtube videos and make playlists like that
What's even shittier is that I download videos from Youtube of some albums I like, put those on my phone, listen them for the music only and then complain my phone is getting full :D
For all other purposes I use Spotify
and in some past life I used LimeWire, good old times
@skiwi You know it's easy like sh*t to extract the audio from a video, right?
@Mast But one has to not be lazy for that
This question is better suited for [codereview.stackexchange.com/](codereview), IMO. Anyway, why don't you use ready-made solutions, like Gson? As of your code, off the top of my head - use StringBuilder rather than concatenating thousands of immutable Strings. — SqueezyMo 45 secs ago
11:56
@skiwi I happened to need it yesterday youtube-mp3.org
12:15
Monkin all.
hmm
@Mast for now, increased rep levels and design are still tied together, so it was last priority to be decoupled. The reasons for that are a bit long for a comment... there should be an update about that early next week on Meta SE but if not I'll write more somewhere on this meta. — Pops ♦ 10 hours ago
13:06
@IsmaelMiguel Again... find a better job. If you're a software developer, you're in a field with high demand. If you can't find a job you're perfectly satisfied with, then maybe you simply don't like software development. But if you can't find a job that will let you work a regular 40-hour week, you're not looking hard enough.
@rolfl The reason why I listened to music from Youtube was because Spotify would crash and drag the computer down too. Also, the drivers bugged out and the sound card was being detected as being on PCI 0xFFFF. Which means that I had to manually set VLC to play with a very specific card, using DirectX.
@nhgrif Currently, I can't change job. Only after this contract finishes. Which means that I can't do anything about it till October
Hmm, this is a Ruby-on-Rails related question, but it's actually more of a command line question...
What's going on here:
export POSTGRES_USERNAME='username'
And then the Rails app is grabbing it like this:
username: <%= ENV['POSTGRES_USERNAME'] %>
I mean, it seems to be setting an environment variable, I guess.
13:21
yeah
Are environment variables scoped to the console window they're set in?
@nhgrif They are scoped to the shell and children of that shell
13:37
Is it that kind of environment variable, or is it a user/system-wide one?
I don't know...
13:50
0
Q: Responsive website menu customization

ErasusI'm working on this website: http://goo.gl/WwERo6 and I'm trying to make some changes for horizontal top menu but unsuccessfully. Menu is acting weird, if I resize browser window menu gets bigger and menu items are displayed beneath the website logo. What CSS properties should I change? I tried o...

14:02
Off topic
Voting to close as this is more suited to the code review siteAugusto 24 secs ago
I'm voting to close this question as off-topic because it is asking for code review. Please ask for code review at the Code Review Stack Exchange instead. — Colonel Thirty Two 13 secs ago
14:24
0
Q: Select two numbers from interlaced blocks of numbers

AlexSelect one of two number selection strategies and select two numbers using that strategy. The strategy is selected using an enum implementation of the strategy pattern. Strategy one: Ordered Numbers are selected sequentially. The last number selected is persisted in the database and the next tw...

14:36
FBFriendRequestMarkAsSpamMutationOptimisticPayloadFactoryProtocol-Protocol.h
ah yes, the protocol protocol
FBGroupUpdateRequestToJoinSubscriptionLevelMutationOptimisticPayloadFactoryProt‌​ocol-Protocol.h they're just using a random word generator at this point
I have to disagree with about everything Mat says here. I added a detailed response in an answer. — Steven 4 hours ago
Nicely explained answer, ...but how that architecture is NOT over-engineered to death... is beyond me.
@JeroenVannevel thoughts?
0
Q: HackerEarth Challenge Find Maximum Taste of Fruits

Manush BhattProblem Statement : Samu had got N fruits. Sweetness of ith fruit is given by A[i]. Now she wants to eat all the fruits , in such a way that total taste is maximised. Total Taste is calculated as follow (Assume fruits sweetness array uses 1-based indexing) : int taste=0; for(int i=2;i<=N;i++){ ...

Looks painfully overengineered
Steven's answer is somewhat above my head but I see his rationale
though I suspect he assumes the system in question actually needs such complexity
I think this post would be better suited for a code review site. — Justin Wood 1 min ago
that answer makes me shiver
"That means you'll have to do sorting in your business layer, but that's quite simple actually"
and suddenly your business code is 2k LoC, because you need to sort 9 Dropdowns for you r presenter...
and there isn't even any business logic there
14:50
@JeroenVannevel it's above mine too. I can't find an excuse for having a dbcontext in the composition root
And of course that's the answer OP wanted to hear
@Vogel612 Sounds awful.
this may come as surprise, but... there is code out there that is built upon that
I realized that.
15:18
I do not like IoC frameworks where you have to decorate with attributes. The code shouldn't care how it's getting its dependencies injected.
I can at least provide an argument against putting the dbcontext in composition root @Mat'sMug. How would you point it to a development of test database?
15:34
@JeroenVannevel and that's how you see android is not java.
Sigh DI does not necessarily need an IoC container. DI and Factory and not mutually exclusive. In fact, when doing Pure DI (without an IoC container) you will be using both DI alongside various factory patterns. It's not an either or situation. They complement each other, which makes this question a non-starter in my humble opinion. — RubberDuck 2 mins ago
but that one definitely is a huge wtf
I seriously hate the misconception that DI means using an IoC container.
Without any code it's impossible to answer. If the code works, you might want to try codereview.stackexchange.com rather than SO — Sami Kuhmonen 35 secs ago
You can find a solution here linkamaiaeskisabel 42 secs ago
Sounds like a Code Review question to me, but make sure you bring your real working code. Both are requirements for CR. — RubberDuck 14 secs ago
0
Q: Create a service for authentication:

StankoService communication aplication - Create a service for authentication: The user sends a username and password, and service returns information on whether the user with those data in the database. For storage of data about users, use the XML file. Thanks

15:42
I humbly request down votes on this off topic turd. I've no idea why it has a score of 25.
25
Q: Refactoring large switch statement

avalanchaLately I have been trying to extract till I drop. Well not necessarily till I drop, but I've been trying to be more strict and look at some metrics of my code. I have now come along an old class of mine which has a rather large switch case. Metrics say the method lines of code are beyond evil. I...

@CaptainObvious
I'm not entirely sure OP even finished writing that question @Jamal.
Is it September already?
5
Almost!
Monking
My Advanced C++ class starts in eight days. Maybe I can find some more recent zombies for preparation.
15:48
@RubberDuck DV + VTC applied. WTF. Can a "Protected" question be closed and/or deleted?
(also, why is it protected??)
It must be the high view count.
But it's off-topic :\
Silly monkey. :-)
@Jamal Can you override the protected status and "unprotect" it?
Yes
15:50
I don't think it needs to be unprotected, does it?
It got lots of crap answers so Monkey shut it down.
The right thing IMO.
Ah, right
But none from new users.
I just... It must have gone hot.
Or a few, but they were upvoted.
Lol @Jamal. Ironic.
15:52
Let's at least see if it'll receive three more close votes.
^^ smart
Laundry. Then maybe I can write some code for a change. Bbiab
Keep the mod hammer in the chest, see if the community just takes care of it
@RubberDuck We can't forget to wake up Billie Joe Armstrong when September ends
@Jamal So, nuke it.
@RubberDuck This answer on it is also bad. Saying 'looks fine' on such code should be forbidden.
00:00 - 16:0016:00 - 00:00

« first day (834 days earlier)      last day (3482 days later) »