« first day (948 days earlier)      last day (3083 days later) » 

6:00 PM
@DanPantry
 
I just got home, and i've been super busy, so I havne't had much time to work on the app frankly
 
lol
 
@TopinFrassi I have a few beers in the fridge. Grab one, and celebrate
 
@IsmaelMiguel missing "oh, wait..."
 
6:00 PM
@DanPantry We'll manage. I could check it out, I've got some JS magic at home.
 
> I have a few beers in the fridge. Grab one, and celebrate! oh, wait....
 
@IsmaelMiguel Thanks mate!
 
@DanPantry Why not?
^^
 
@TopinFrassi Cool! Probably won't be able to participate, but that's a great idea!
 
@Mat'sMug Still don't get it
@TopinFrassi No problem
 
6:02 PM
@NᴏᴠɪᴄᴇIɴDɪsɢᴜɪsᴇ Yeah, if it works well we'll be able to make that grow a little! And I'm suurrreeee you could participate. :p
 
Oh Windows, how I love your mistakes
 
@IsmaelMiguel jajaja. (No, I don't understand what's happening)
 
@TopinFrassi Size: 200 bytes. Size on disk: 0 bytes
 
6:05 PM
Normally it is the opposite
 
@IsmaelMiguel ooohhhhh lol
 
@IsmaelMiguel So, the entirety of it?
 
@Mast What do you mean?
 
@IsmaelMiguel Very efficient storage.
@IsmaelMiguel It's one big mistake.
 
@Mast Oh yeah. I've discoreved how to get infinite space.
 
6:06 PM
    // Maximum size of tokens/trivia that we cache and use in quick scanner.
    // From what I see in our own codebase, tokens longer then 40-50 chars are
    // not very common.
    // So it seems reasonable to limit the sizes to some round number like 42.
    private const int MaxCachedTokenSize = 42;
 
Step 1: Reduce everything to 200 bytes chunks
Step 2: Measure the size
Step 3: ...
Step 4: Profit!
 
@JeroenVannevel That makes no sense. But, 42's the answer to everything
 
@JeroenVannevel 42 is a round number nowadays?
 
@Mast It's 42 so... yeah
<reallyweird>. I can't connect to google, facebook, our web mail client nor the project's backlog, but Code Review's chat works like nothing was happening. Our network's </reallyweird>
 
I just replied this in an email to my boss:
> </panic> Thanks!
2
 
@Mat'sMug You forgot the opening bracket! :o
 
it was implied in the previous email ;-)
 
@TopinFrassi s/bracket/tag
 
I'm seeing so many gotos in the roslyn source, I kind of want to start using them myself
 
no
don't
 
Zak
6:17 PM
@JeroenVannevel goto can goto Hell
 
I've looked at some of the Roslyn source code before. There were huge chunks of code that looked like it was written by six-year-olds.
 
Look more closely and you'll see that it's actually really smart code
 
compilers are supposed to be smart, not pretty
 
And I would wager that Roslyn is in fact rather pretty
 
@Mat'sMug Yes, but compilers can also be smart and pretty.
Just because it has to be smart, it doesn't mean that it can't be nice-looking.
 
6:20 PM
It's been very interesting so far to see performance considerations implemented in it
Wait until my paper is finished and you can get a guidethrough
 
@EthanBierlein I'd think it's written with performance over readability in mind
 
I figured
 
Zak
I had no idea Death Star V2 was so much bigger than Death Star V1:
 
You're talking about compilers like if they were woman
 
s/compilers/code ;-)
 
6:34 PM
Too late to edit :/
 
Zak
@IsmaelMiguel Well, the singularity isn't that far off:)
 
It's just off-by-1
 
@ShadowWizard give it 6-8 weeks — Mat's Mug 11 secs ago
 
7:02 PM
-1
Q: atm programming in C. only in deposit function

mysaid001 how to write whole the deposit function? cheque deposit log... sample output (iii) Transaction Logs: Print Cheques Deposited in which Month and Year (MM YYYY)? 10 2015 Cheques Deposited Log contents will be sent to the text file ChequeTxnsLog.txt LIST OF CHEQUES DEPOSITED Log Date & ...

 
@CaptainObvious Good luck on finals.
2
 
@Jamal wow.
 
How bad was it?
 
@IsmaelMiguel Scan of 4 pages of a homework, no code
 
7:15 PM
> how to write whole the deposit function?
 
That is a new low
Was a comment left?
 
Negative
 
That isn't good at all
 
The close message was clear enough
OP clearly didn't bother even looking at the Tour, let alone the Help Center, before posting
 
7:20 PM
Alright
Wasn't aware that it was closed
 
The funny thing was that the first question (similarly off-topic) was self-deleted.
 
Weird...
By the way
Is 439 a prime number?
Oh, nice
It is prime
 
0
Q: Is there a cleaner more efficient way to save data in MVC?

Mark KenyonWe have a lot of Controller ActionResults like this in our MVC project. The controllers get really cluttered up. This is a simple example, but we have much more complex ActionResults. This controller accepts a model, and if the primary key is Guid.Empty, handles it as an Add/Create. Otherwise it...

 
@Phrancis I need your SQL expertise...
 
@EBrown What's up?
 
7:31 PM
I'm debating setting up an audit system in our SQL server.
 
OK
 
@Jamal Due on the 11th, 40% of the class credit.
Wow.
 
wait, and the teacher requires a hard copy??
 
Digital submission and printout?
 
7:42 PM
let me guess, printed on a dot matrix printer?
 
Probably trying to save money. Many of my professors print my paper out for grading.
 
how does killing half an acre of trees per year save anyone money?
 
The professor doesn't have to pay for the paper and ink.
They are shifting the cost onto the student.
 
They do something like that at my school. If you want to print a black & white document, it's 5 cents, and if you want to print a color document, you have to pay 15 cents., per sheet for both.
 
I think my post "is not about a particular piece of code and instead is a generally applicable question" (quote from codereview.stackexchange.com) — m4xy 35 secs ago
 
7:48 PM
I have only had to turn in a hard copy for one class - statistics.
The teacher mailed the tests to the library, and I had to go to the library and take the test, then mail it back.
 
lol. That seems like an inefficient system.
 
I think this is probably better for codereview.stackexchange.com. The strategy pattern might be helpful in this context though: sourcemaking.com/design_patterns/strategy. — axlj 49 secs ago
 
My main library was down (Wildwood brach, Washington County) at the beginning of the semester do to water damage (their fire sprinklers went off).
We got to drive down to the RH Stafford library. That was a nice library.
 
Water damage doesn't sound good, especially in a library.
 
No. IIRC, they had to replace a bunch of books and their computers.
And their carpet, but the replace the carpet every couple years anyway.
And, a lot of the books were really trashed, so it was kind of nice, in a way.
 
7:53 PM
Just got an answer on an old SO question of mine...
2
Q: PDO Use MySQL's NOW()

skiwiHow would I use MySQL's NOW() in PDO prepared statements, or how would I workaround using it while keeping in mind that possibly the Apache Server and Database Server might have either a slightly current time mismatch (few seconds), or in rare occasions might be timezones apart? I have the follo...

Frankly, I'm confused by my past self
 
Go on, continue with your ideas. Good luck. — Your Common Sense Dec 20 '13 at 12:38
 
@skiwi You earned my first star of the day.
@janos Now is that sarcasm, or no?
 
@Hosch250 hard to tell...
 
I still remember that guy pissing me off :P
 
@janos Oh hey, the last time I checked on that user they still had a year left in their ban.
 
8:01 PM
@EthanBierlein Sorry to bother you, but do you know Javascript? I desperatelly need help
 
Somewhat. What do you need help with?
 
Come to the Javascript libraries room
 
Where's the room?
 

 Web Development

Everything Web
 
@EthanBierlein :o more information about that?
 
8:08 PM
Not really.
 
@skiwi MySQL datetime gets even more fun when you introduce time zones :D
 
Well, luckily I've learned my lessons since then: Stay away from PHP and MySQL
 
lol, ikr
 
> for some values of "fun"
 
It's most fun on Feb 31st
 
8:11 PM
What does Feb 31st give?
 
@skiwi Syntax Error!
 
Depends on your settings
 
@Phrancis Always fun when the answer starts with "it depends..."
 
SET SESSION sql_mode='STRICT_ALL_TABLES,ALLOW_INVALID_DATES';
create table test (testdate datetime);
insert into test(testdate) values ('2015-02-31');
^ works with no complaints
But when you select it back, you get '2015-03-03'
 
Are you asking for questions, or do you just want a code review? There's a separate site for code reviews: codereview.stackexchange.comBryan Oakley 31 secs ago
 
8:23 PM
But if you change the sql_mode session variable (yes, session variable!) to '' (nothing) when it will truntate 2015-02-31 to '0000-00-00` in the table
Using sqlfiddle I got this
> Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp
 
-2
Q: Weather android application

Evgeny GoldinI'm trying to study many subjects of programming by myself, and sometimes I find it difficult to know if I'm in the right direction in my understaning. I haven't found any rules on posting on this web site, and I hope it's reasonable to ask to evaluate not a small amount of code. Hopefully, anyon...

0
Q: Using factory pattern to create email templates

Daniel GrohFirstly I try to explain my model. I have 3 type of notifications which can have N types of email templates related to a specific status. NotifySupervisor(Vacation vacation); NotifyAdministration(Vacation vacation); NotifyApplicant(Vacation vacation); I've created a type of Factory. I don't c...

0
Q: Q learning with Flappy bird

AytrosMy final assignment Intro to AI is to take a pygame Flappy Bird and modify it to learn to fly itself. I'm having trouble with my implementation as it doesn't seem to be learning much at all. Without cluttering the page with the game code I will just give the main method (my alterations are note...

 
@Phrancis That's rather... odd
 
That's fairly typical for SQL. I wonder if it is part of the definition.
 
except on SQL Server I'd expect you get this:
Conversion failed when converting date and/or time from character string.
 
8:38 PM
^ correct
 
woah, 1934 views!
 
stupid question for you guys: Did there actually was anything t-shirt related when you got your site-design?
 
0
Q: Simple calculator which can operate on more than two numbers on python:

JoeAll the calculator programs I have seen so far seem long, complicated and they can only operate on TWO numbers. Here is mine; simple short and it can operate on as many numbers as you want. Please tell me if there is another way to improve this section of code? x=[] amount=int(input("How many nu...

 
8:53 PM
@SEJPM 6-8 weeks is what we were told
 
@Phrancis as usual, thanks :)
 
Nov 26 at 2:16, by Pops
@rolfl Yes, graduation swag is a thing that happens. I don't think we've changed it from "top two pages of users" but if we did change it and I somehow didn't notice (since people keep asking) then it's whatever the current standard is. You have 6-8 weeks to fight with each other to make the cutoff.
 
possible answer invalidation by Ekult3k on question by Ekult3k: codereview.stackexchange.com/posts/113256/revisions
 
@Phrancis if @rolfl is in any danger of not getting graduation swag, we have a problem
ok, what am I missing here?
Except, the code you posted has 3 identical implementations. Please post your actual code. — Mat's Mug ♦ 3 mins ago
 
@Mat'sMug the Body is huge. It's just going to confuse you more, it's pretty simple, bodies and subjects are different for every template and it's in german, so not gonna help you mmuch, but I added for one template an attachment property. — Daniel Groh 2 mins ago
Make sense, I guess
 
9:04 PM
yeah, except if one wanted to try to refactor it into an abstract factory, they'd be getting the "yeah but my real code does xyz" comment
 
possible answer invalidation by Joe on question by Joe: codereview.stackexchange.com/posts/113302/revisions
 
Ah, I see
 
It does not matter how huge your code is, this site has about double the character limit of other Stack Exchange sites. Stub/hypothetical code is off-topic, and otherwise boiled-down, stripped-of-context and MCVE'd code is severely frowned upon. If someone wanted to help you refactor into an abstract factory, they'd be getting the infuriating "yeah, well, thanks but my real code does XYZ and so this doesn't apply" comment on their answer. Besides, if it's as huge as you say it is, there's a not-so-slim chance that your class might have too many responsibilities - something we can't see now. — Mat's Mug ♦ 6 secs ago
 
		select @ExecuteSQL = aq_selectsql + char(13) + char(10) + aq_fromsql + char(13) + char(10) + aq_wheresql

		from #artqueries

		where aq_id = @loopcounter
Scary
 
9:14 PM
@Phrancis Whhhhat does it do?
 
The fact that it's pretty meta doesn't override the fact that it's building dynamic SQL queries by truncating fragments of queries from fields in a temp table... in a loop...
 
0
Q: web scraping with python

Jarrod McCullochHi I'm quite new to python and my boss has asked me to scrape this data however it is not my strong point so i was wondering how i would go about this. The text that I'm after also changes in the quote marks every few minutes so I'm also not sure how to locate that. I am using beautiful soup at...

 
Maybe, but wouldn't I want a build system where I can produce a build locally similar to how it would be done by my build server? Why should I have to wait to submit code, have the server make the build, deploy it and only then find out my program has a runtime error or something I want to change about it? It's a waste of commits, code reviews and time. :) — sgarg 59 secs ago
 
9:39 PM
@ivan_pozdeev All you've shown is that it isn't even a thing yet. If you can demonstrate that five people can reliably close such questions on a consistent basis, then we might have some standing for discussing the close reason's merit. The reality, however, is quite different; 95 to 99 percent of all questions identified by the Duga bot as suggestions for migration to Programmers or Code Review are not only unsuitable for migration, but also closeable under SO rules. That's not a stellar track record. — Robert Harvey ♦ 26 secs ago
 
@Duga Ain't that the truth
 
How do you create a room an invite a new user into it?
I've managed to create the room, but how invite someone?
 
Where is that menu?
 
I think they need to be in chat first though, unless a mod does a super-ping
Oh, click on the user's profile in chat
 
9:47 PM
He's not in chat, yet... I think...
 
What is their user name?
 
Joe
 
lol
 
Not the one with 74.4K rep...
 
There's 29 pages worth of "Joe" :)
Probably easiest to send a link to the room in a post comment or something like that
 
9:51 PM
@Phrancis Can I use the link from my browser address line directly, or should I use some other link?
/me has already tried with the link from the address bar...
 
http://chat.stackexchange.com/rooms/8595/the-2nd-monitor
Should work fine
 
OK... I'll just have to wait and see if he responds then...
 
or whatever your room link
 
0
A: Trying to Simplify a Java Method

Doc BrownI will just scetch how to approach your problem, but leave the gory implementation details up to you: to avoid duplicate code which differs only in the direction in comparison a<b or a>b, you refactor that part of the code out into a function with an additional int parameter sign. sign should b...

 
-2
Q: SIGSEGV in a simple program

user91739I have this loop ll t,n,total,answer[2][1025]; int arr[100001]; memset(answer,0,sizeof(answer)); memset(arr,0,sizeof(arr[0]*n)); for(int i=1; i<n; i++) { for(int j=0; j<=1024; j++) { int index1=(i-1)%2; int index2=j^arr[i]; ll pre1=answer[index1][j]%MOD; l...

0
Q: How to write pluck function without using map function?

DannyThe pluck function below is based on map function, how to rewrite the pluck function so it doesn't use map function? in other words, how to write a function using for loop that do the same work? _.map = function(collection, iterator) { var result = []; _.each(collection,function(valu...

 
10:11 PM
Really? A Santa-bot?
2
 
@Donald.McLean He's giving us random question/answers to review or look at again!
 
Usually accepted answers without upvotes
 
He has a user profile that explains everything y'know....
 
@IsmaelMiguel I've never gotten around to checking out what he actually gives us. I just registered his gifts!
 
I checked around the gifts. Sometimes they are cool
 
10:15 PM
@holroy Not random.
They are accepted answers with a score of 0.
One is posted every day, 23:00 CET.
 
@Mast I was a little trigger happy there. Should have checked a little more before answering...
 
Happens to the best of us.
 
Can someone with a little more rep than me, check if the new question is any better than the previously deleted (on-hold) question by Jarrod McCulloch?
New question is incoming:
-2
Q: scraping web page using python

Jarrod McCullochHi I'm quite new to python and my boss has asked me to scrape this data however it is not my strong point so i was wondering how i would go about this. The text that I'm after also changes in the quote marks every few minutes so I'm also not sure how to locate that. I am using beautiful soup at...

If not any big changes, then someone might need to educate him a little...
Jamal has closed it...
 
Regardless of the previous version, this one has some serious issues.
 
How much rep do you need to see deleted questions?
Is that at 10K? with access to moderator tools?
Yes, it is! Found it...
 
10:24 PM
-3
Q: scraping web page using python

Jarrod McCullochHi I'm quite new to python and my boss has asked me to scrape this data however it is not my strong point so i was wondering how i would go about this. The text that I'm after also changes in the quote marks every few minutes so I'm also not sure how to locate that. I am using beautiful soup at...

 
I concur with @Mast, this might be salvageable for Stack Overflow if they can describe their specific issue better (e.g., error/exception messages, wrong data, etc.) but definitely not ready for CR
 
@CaptainObvious Too late @CaptainObvious. This is already closed!
 
Oh boy, was that a freaky exam.
I'd never really gotten BCNF normalization, and I had to describe it in my exam.
Fortunately, I'd studied it about 3 times already, and it finally clicked.
I'm now done with my DB class. If I get 100% on this quiz, I'll have gotten 100% on the entire class.
 
Hello.
 
@Hosch250 That's super, great work!
 
10:39 PM
Hello
 
How's it going?
sigh Eclipse, really?!
 
10:55 PM
@TheCoffeeCup Slowly?
 
0
Q: Scanning multiple huge files in Python (follow-up)

camorI'm trying to implement an algorithm able to search for multiple keys through ten huge files in Python (16 million of rows each one). I've got a sorted file with 62 million of keys, and I'm trying to scan each ten file in dataset to look for a key and its value. This is a follow-up code on feedb...

0
Q: Mobile First, Responsive Layout, HTML & CSS Structure

Jonathan MussoI am rebuilding the front-end for an application that I am building and have the content laid out the way I need. I would appreciate any suggestions on how to improve the structure, specifically the header section) with web standards in mind. You can view the Fiddle here. - Apologies, I could ...

 
@TheCoffeeCup Just 71.5%?
 
@IsmaelMiguel JUST???
 
11:11 PM
@IsmaelMiguel Your computer CPU must be bad, then. (no offence)
 
CPU?
No no no...
No
No no no no...
I have an APU
Not a CPU
A really good APU
 
Are you sure? Then why is 71.5% just?
 
Last time I used Eclipse, it would just burn 100% out of my Intel Code2Duo (2.00GHz)
 
@IsmaelMiguel wow.
 
Yeah, pretty bad
 
11:16 PM
You might want to check if the codereview community on stack exchange is a good place to ask this question (as soon as your current code is doing what it is expected to do) — Marged 42 secs ago
 
So I left 2nd monitor open when I went home yesterday
 
I may have some guilt in there
 
@Quill lol
 
I had 22 pings (I got on at home later)
 
Not a bad number.
 
11:20 PM
but yeah... (dat's a lot of traffic)
 
1231 is actually a nice number.
 
If you waited 2 minutes, you would have 1234 messages
 
That also is a nice number.
 
or I could've waited for it to become 1331
 
Well, if there was a debate going on, it might have been closer to 1331 (another nice number).
 
11:21 PM
The joy of high-level applications, you can't debug them...
 
@Mast What's up?
 
OLog. Looks like the page is rendering but the data isn't arriving at the DB.
 
Why can't you debug it?
 
I have no idea what part is causing the trouble.
 
Time to start the debugger and trace the process from start to finish.
 
11:24 PM
Ever since Microsoft took over Skype it's been buggy as hell.
 
You'll probably find three+ errors.
 
@EBrown I have so many issues with Skype
for example: \*test\*
 
Mine has been "Not responding" for hours.
 
should render: *test*
 
@EBrown Why didn't you restart it, instead of waiting for this long?
 
11:25 PM
That ^^
 
but it renders \*test\*
 
@Quill Does Skype support markdown?
 
@Hosch250 I didn't know it was in this state until I went to task manager.
 
What happens when you do *test*?
 
@Hosch250 No, it doesn't
It turns to bold
 
11:26 PM
@Hosch250 It bolds it.
 
Then that is markdown, isn't it?
 
@Hosch250 Yea, well, we're trying deploying a WAR. Not sure you can even debug those.
 
A sort of subset of markdown?
 
@Hosch250 That one item, sure.
 
not really
bolding items with asterisks is earlier than markdown
 
11:27 PM
It also supports _italic_.
 
Are you guys on Windows 10?
 
I am.
 
If you turn on the insider thing, you can give feedback.
 
and if you have characters that make an emoji on the end of a link, it turns it into an emoji anyway, which effectively ruins the query string
 
About applications as well as Windows itself.
Time to restart. BBIAB.
 
11:28 PM
The only way to turn it off is through an XML file too
 
TTQW
 
you can just turn off emoticons in skype's settings
 
@JeroenVannevel emoticons yeah, but not formatting in general
 
possible answer invalidation by 200_success on question by Frank Tudor: codereview.stackexchange.com/posts/45518/revisions
 
11:51 PM
@Duga just converting to a snippet, it's fine
 
@Duga ARGHHHHHHHHHHH!!! The snippet is crashing IE!!!
 
Any PHP devs looking for work?
like a job
 
try the php room on SO
 
I'm not but carry on
 
there's not really any serious PHP developers here (besides ismael)
 
11:55 PM
...
That hurts :/
 
Are you PHP employed?
 
oh shit
 
Are there any serious PHP developers anywhere?
 
3 years now
 
11:56 PM
my bad
 
Sadly, it isn't just PHP
 
@nhgrif s/serious/not foolish/
 
MySQL, CSS, HTML, Javascript (+jQuery)
 
We need U.S. citizens. We have hired some non-U.S. citizens as private contractors, but they also don't live/work in the country, and I think we are looking for non-remote for the PHP positions.
 
he lives in portugal
 
11:57 PM
We're also looking for people who are at, close-to, or above my level in Objective-C/iOS.
 
@nhgrif you won't really find that around here
 
But I have in mind to go to U.S.A.
As soon as I'm fired
 
Yeah, with you I thought it was Subjective-C ;-)
 
(sorry off-topic, didn't realize you were already talking PHP)
 
11:58 PM
Well, with the app I'm working on, it's Procedural-C
Because it was written by idiots.
 
'Ello all
 
Or, when I code with chainsaws, the red-C
And when I code in COBOL or in COBOL, it's redunden-C
 
Also, potentially, we're looking for people with experience with Cordova or hybrid apps.
 
@nhgrif I know almost nothing about C :/
 
@nhgrif I'm planning to start properly learning iOS soon, should I pick up Swift or Objective-C first?
 
11:59 PM
@IsmaelMiguel It's not too hard to pick up
 

« first day (948 days earlier)      last day (3083 days later) »