« first day (893 days earlier)      last day (3126 days later) » 
00:00 - 13:0013:00 - 00:00

1:00 PM
0
Q: Project Euler #42 - Triangle Numbers

mburke05Here is the Euler problem referenced, it says: The n\$^{th}\$ term of the sequence of triangle numbers is given by, t\$_n\$ = ½n(n+1); so the first ten triangle numbers are: 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ... By converting each letter in a word to a number corresponding to i...

 
@skiwi Delicious. Needs more chili and less rice though.
 
hmmm.. it doesn't work...
 
@rolfl b..but...but... but she's not a monkey!
 
> I see that we are connected already on LinkedIn. For now, let's keep in touch.
No we're not
Does being a 3rd connection count as being connected?
 
1:15 PM
At LinkedIn, it does.
 
0
Q: MySQL data fetching without page refresh (Jquery & PHP)

ChristopherI've recently finished a prototype for a little raspberry pi website. The main page of the site displays current users found in the room (through bluetooth). I wanted this list updated regularly from data in a MySQL table, so no refresh is needed... when someone walks into or out of the room, the...

 
1:48 PM
Monking
 
2
Q: Comparing two lists and if not exists add it to the list

Please TeachI am getting two different lists of members, then if certain condition meets I am adding more members to the list before converting into an array. Is there anyway this could be improve, I guess we can use linq and cast but I am not advanced in either of the skill i mentioned. List<Member> M...

 
Mronkoin
/me reads transcript
/me confused
 
2:03 PM
@Malachi Seen this yet?
 
Question coming in.
(If @CaptainObvious ever get's off his rear.)
 
0
Q: Translate especially code From c to c#

ali soltani#include <stdio.h> #include <stdlib.h> #include <string.h> char *cell, *start, *end; int m, n; void make_grid(int x, int y, double p) { int i, j, thresh = p * RAND_MAX; m = x, n = y; end = start = realloc(start, (x+1) * (y+1) + 1); memset(start, 0, m + 1); cell = end = start + m + 1; for (i ...

0
Q: Normalizing `DateTime` values

EBrownI have this as part of a project to normalize DateTime values to more readable strings. (No one likes Oct 14, 2015 at 10:05PM EST.) It allows you to make several customizations. If you don't want a time to show up, specify "" for the timeFormat, etc. You can change the reference DateTime so that...

 
@Heslacher You said you're closing that question because it is asking for a codereview.
 
My bad. Corrected and thanks
 
2:18 PM
> I have this as part of a project to normalize DateTime values to more readable strings. (No one likes Oct 14, 2015 at 10:05PM EST.)
 
@rolfl What about it? :P
 
What's wrong with that, except for the 12 hour clock?
 
Seriously @EBrown ^^^^ Really? I hate the "4 seconds ago", and "yesterday" crap people do....
2
 
@rolfl I love it. I don't do 4 seconds ago though.
 
"just now" is even worse D:
 
2:20 PM
that ^^^
@EBrown - I have 8 tabs open all with different parts of stack exchange..... I normally have more, but, I rebooted this morning on this computer.
 
@rolfl I can understand the frustration at that, in that case.
 
Normally, I look at a page, an see, oh, "modified 3 minutes ago", click the link, and it was modified 3 days ago...!
It lies.....
 
This is more-or-less a gimmick.
 
I'm voting to close this question as off-topic because it wouldn't even be valid as code review. — Mathletics 49 secs ago
 
0
Q: Capitalize the first letter of all words in a String

cbojarA rags-to-riches of A method to capitalize the first letter of all words in a String. To recap the requirements: Please implement this method to capitalize all first letters of the words in the given String. All other symbols shall remain intact. If a word starts not with a letter, it shall ...

 
2:22 PM
I suppose it would be better if I updated it with JS.
 
Congratulations @Pimgd on reaching 10k!
6
 
(Which I may do in the future.)
It's also going to be a setting in your account for this particular project, so that you can change it at your will.
 
And, @EBrown, you say: "No one likes Oct 14, 2015 at 10:05PM EST.", but, apart from the AM/PM thing, I love that.
 
Congrats @Pimgd
 
@rolfl I can edit it out I suppose.
 
2:24 PM
Well, you put strong, unsubstantiated, opinionated statements in your posts, you should expect strong responses.
 
@rolfl It's edited out, now.
 
OK, now that I have turned off my touchpad, this computer is becoming usable....
 
I have a ThinkPad that sometimes the touchpad gets in my way.
 
huzzah
 
So a user unaccepted one of my answers today because his question didn't contain all relevant information. I should have seen that it was example code when I first saw it, but I suppose hindsight is always 20/20.
Of course, a different user accepted another one of my answers so no rep lost or gained.
 
What's in a name.
 
I've seen answer invalidation because of bad questions before, but never after they actually accepted an answer. That's... interesting.
 
@JacobRaihle Yeah, I thought it was peculiar. He failed to mention the code was generated by the service.
 
40
Q: Daily vote limit reached; vote again just now

Simon ForsbergEven though this is a very very minor issue, I still think it is an issue. (And I don't think this is a duplicate as the possible duplicate is status-completed while this issue is obviously not status-completed as it happened "just now"). If you have the correct timing when there's a new day on ...

 
@JeroenVannevel Too complicated for what I am doing.
 
2:32 PM
@JacobRaihle where's that?
And welcome to The 2nd Monitor btw, @JacobRaihle, I realized I haven't seen you here before. Another Swede, yay!
 
You're a swede Simon?
 
@SimonForsberg They still haven't fixed it, I wonder if it's even on their backlog.
Perhaps with a no-priority tag.
 
@SuperBiasedMan I believe that's what my profile and IP says.
 
@SimonForsberg it was in reply to EBrown above
And thanks :) I've been around for a few weeks but mostly lurking
 
Monking!
 
2:37 PM
I should read profiles more. Make people here slightly less anonymous.
 
Monking @Mat'sMug.
 
@SimonForsberg yeah, everyone sees your IP right ;-)
 
Zak
So I broke Excel in a non-standard way. As a result, I have irrevocably corrupted my current project.
Thank god for Source Control!
3
 
@Mat'sMug Doesn't matter if they see it or not, my IP still says it :)
 
Zak
@Mat'sMug does Rubberduck have a tool for importing a code repository back to the IDE?
 
2:41 PM
cough spoofing cough
@Zak With the experience you get, you could apply at Microsoft for their test team.
2
 
@Zak wait, there's a standard way of breaking Excel?
4
 
Zak
@Mat'sMug There is for me :)
Yep, very corrupted. Can't even delete the file
 
@Zak in theory the SC panel handles it, not sure if/how it works, that's the part @RubberDuck was working on
 
@Zak wut
 
2:46 PM
Sep 7 at 10:07, by Zak
#Times I've crashed Excel today: 7 (and counting)
 
Zak
Can't delete it, Can't save over it.
 
Geez, I've never seen three answers come in that fast.
 
wonders if I've been crashing Excel the standard way all these years
 
Zak
@Mast IIRC my record was 12 :)
 
@Zak Sounds about right, at least over 10
 
2:47 PM
Tss.. try working on Rubberduck, you crash it 10 times per hour ;-)
2
 
nooo I have 10010 now
it's ruined again
 
initiates down-vote frenzy
 
@Mast I have seen it now. Thanks for pinging me. Still no internet here, it's driving me crazy....
 
@Malachi Still camping?
 
5
Q: Radix sorts in Java

coderoddeI was curious, how in-place radix sort compares to the variant which uses an auxiliary array in order to speed up the sorting. I implemented both and tested it against java.util.Arrays.sort(int[]). Seed: 1439451337582 Radixsort.InPlace.sort in 12074 milliseconds. Radixsort.sort in 6937 millis...

This post doesn't do syntax highlighting
 
2:54 PM
Staying at my in-laws house. Since they aren't here yet, but no internet for at least another week.
 
0
Q: Why is this "hex to dec converter" program not giving desired output in C++?

Anuraag Biswas#include <iostream> #include<stdlib.h> int main() { int hexd=0x356; std::cout<<std::dec<<hexd; return 0; } This code works perfectly for me and print the output 854 but..... #include <iostream> #include<stdlib.h> int main() { int hexd; std::cout<<"Enter a hexadecimal number: "; std::cin>>...

 
I gotta save some data though, my daughter has online testing to do... I will catch you all later when I find some Wi-Fi
 
Good luck
 
@Pimgd I think the OP wanted to turn it off in the data quoted, but the only way to do that is lang-all: none, which is weird.
 
more like jamal editted it in, but I don't have the edit skills to make only the quoted blockquote (is that a thing) non-highlighted
 
2:58 PM
I managed to somehow so I'm editing that
 
Doesn't language:none above the quoted block do that?
 
I think you need this forum for those questions: codereview.stackexchange.comMHakvoort 8 secs ago
 
Geez, four answers already.
 
It unstyles the quoted block but also all the java. I was able to restore the style to just the java and not the quoted block.
 
3:07 PM
It will be better to ask such kind of questions in codereview.stackexchange.com . StackOVerflow is intended for problems, not reviews. — ursa 58 secs ago
 
@EBrown - Timezone transitions can be mind bending — RobH 6 mins ago
Good grief, five answers now.
 
Zak
I do love our sysAdmins. 2 emails, 5 minutes on the phone, and my folder is restored back to where it was just half an hour before I corrupted everything.
 
you should let them know you love em
 
Sounds awesome.
 
not sure how yet
 
3:18 PM
@Pimgd Usually "I love you guys/girls" works pretty well.
 
Zak
Apparently, they're also about to upgrade their backup system so it'll go to every 15 minutes from next week.
 
yes but if you need them for something more often, candy might do a better job signalling...
hmmh
it also depends on how long you need them for, I guess. 5 minutes doesn't seem that long.
 
Zak
@Pimgd I would, but their offices are, like, 50 miles away
 
What's the latest on this?
This is, in most parts, a template announcement - "several months" is mostly a safety term and it may be less time. 9 sites were in the bundle of our "launch party" for design independent graduation. I quite remember the decision to turn down joining in the test with Magento last month. In this case, it's becoming official process and not giving you guys these things won't make the work on the design, or decoupling from it, any faster. I'll look into the potential for a chat event and who can partake in it. — Grace Note ♦ Sep 10 at 12:48
 
Zak
@Mast The chat event or the "totally 6-8 weeks guys" graduation?
 
3:21 PM
Any/Both/Either
 
ahaha
The java syntax highlighter doesn't do Java 8
 
@Pimgd
 
I mean the stackexchange one
5
Q: Radix sorts in Java

coderoddeI was curious, how in-place radix sort compares to the variant which uses an auxiliary array in order to speed up the sorting. I implemented both and tested it against java.util.Arrays.sort(int[]). Seed: 1439451337582 Radixsort.InPlace.sort in 12074 milliseconds. Radixsort.sort in 6937 millis...

this question again
 
Yup, I figured.
 
 
3:25 PM
The joy of evolving/new languages: highlighters aren't used to it yet.
 
you're allowed to space numbers with _ now
and that's not supported yet in the highlighter
hmm
seems they're already aware of the issue
 
My code to fill a DT is usually wrapped in a Function() that returns a datatable - I just pass in the SQL. This makes it easy to get a table. I have similar Functions for Scalars, Dataviews, and other common ADO.Net tasks. This is quite different from bound controls. I just happen to have some spare time for the long reply - not really looking for code review tasks. If you have sticking points feel free to post code. — rheitzman 45 secs ago
 
looking through their commits on google code prettify, if you want it fixed, you'll have to push your own patch...
hmmhm
 
Shouldn't be that difficult, AFAIK Code Prettify is all done with regex and JS
 
I can't even find the java source file
there's no lang-java here
ah, that's ... internal?
hmhmh
 
3:33 PM
Java looks like is included in the main JS file
 
yes
it's ... somewhere in there
bleh, time to go home
 
@Pimgd that feature was actually introduced in Java 7
 
Yes, I realized this later
means it's all the more sad, though =)
[PR_LITERAL,
         new RegExp(
             '^(?:'
             // A hex number
             + '0x[a-f0-9]+'
             // or an octal or decimal number,
             + '|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)'
             // possibly in scientific notation
             + '(?:e[+\\-]?\\d+)?'
             + ')'
             // with an optional modifier like UL for unsigned long
             + '[a-z]*', 'i'),
         null, '0123456789'],
I think it's that part
but that's not java specific
ehhh
I really should go home now
5
 
3:59 PM
@Zak in theory you can create a new workbook, open the repo through the GUI (Open working dir), and then revert all the "changes", but I'm not real sure if anything works at all at this point.
 
I'm voting to close this question as off-topic because this question belongs on another site in the Stack Exchange network - perhaps CodeReview Stack ExchangePaulie_D 33 secs ago
 
0
Q: Gerrit review webpage url

OpusVI've got a problem and I hope you could help me: I collect commit data from "git log" and save it in a csv file incl. Subject, committer, changeID etc. daily. In respect to this csv file I generate directly some readable output and share this with my team. My idea is to create a HTML page where e...

 
@JeroenVannevel Wow.
 
Yeah, those are some insane CSS skills
One of the best of these things I've seen so far
 
I thought I was good at CSS. That puts me to shame.
 
4:13 PM
Speaking of things that scare me
What.. happened here? Why did the codebase multiply tenfold? What necessitated the introduction of dynamic (which is one of the most expensive operations you can do)? — Jeroen Vannevel 3 mins ago
 
Just about anyone could have told them that the "real McCoy" would still be much more expensive than the manufactured ones, and therefore more valuable.
 
Yeah, it's an odd question because we already have a less extreme version of that idea today.
 
I'm voting to close this question as off-topic because it should be posted at Code Review instead of at Stack Overflow. — m.s. 39 secs ago
 
0
Q: Trying to do Type-Driven Development in F#

Daniel P.Allrighty, I've been wanting to try out F# for some real world programming so I decided to try rewriting a program that is being used at work. The pretty simple and liner. It can be reduced to a few steps: Get report templates. In this step I query a DB and get some templates for reports Update...

 
4:32 PM
This made me laugh:
3
Q: Problems after wp_set_password() containing an apostrophe

SamSo we are using a couple of custom things in our WP and one of them is a PW-Recovery form. Using this internally we're setting the password with wp_set_password($password, $userId) Lately we realised a problem with passwords containing the apostrophe character " Setting a password with this w...

 
4:45 PM
posted on October 14, 2015 by Kruherson

I am trying to implement this F(S) function: bellow is my code but is not working: double EnergyFunction::evaluate(vector<short> field) { double e = 0.0; for (int k = 0; k < field.size(); k++){ double c = 0.0; for (int i = 0; i < field.size() - k; i++) { c += field[i] * field[i] + k; } e += pow(c,

 
 
1 hour later…
6:08 PM
1
Q: IEnumerable extension method that ingests SqlCommand and returns query results

E-FrenchThe following ingests a preexisting SqlCommand and returns the values. A couple caveats right now. 1 ) Type properties must be named identical to the SQL column 2) properties must be given a custom [SQLColumn] attribute. The attribute contains a string which I plan to use later for variation...

-1
Q: Why isnt my javascript recursive permutation function working, it should return all permutations of a num

Daniel KobeWhen I feed this function 85, it only returns 85. console.log(PermutationStep(85)); function PermutationStep(num) { var perms = []; rec(String(num), String(num).length, [], ''); return perms; function rec(num, numLength, used, currPerm) { console.log(currPerm); if (currPerm.l...

0
Q: Creating and implementing a "Comparable" class interface in C++

Lucifer SamPlease review my solution to the practice problem in my C++ book. I am concerned about my use of dynamic_cast since casting has not yet been covered in the book and am wondering if there is a better or more idiomatic way to do this. Practice Problem #1 from Chapter 26: Inheritance and Polymorphi...

1
Q: Rock, Paper, Scissors 3-part Java Code

Karla Rose Write a program that lets a user play "Rock, Paper, Scissors" against the computer. The program should ask the user to choose one of the three choices, and then the computer randomly picks one (without knowing what the user has chosen). For this problem, the user should be asked to ent...

 
http://www.commitstrip.com/en/2015/10/14/the-5-stages-of-learning-to-follow-coding-rules/
CommitStrip
The 5 stages of learning to follow coding rules
CommitStrip
1444845641
 
Not really a SO question. Have you tried Code Review codereview.stackexchange.com/questions/tagged/pythonRobertB 48 secs ago
 
@CaptainObvious Wow. That needs a review so bad.
@CaptainObvious Off topic.
 
How did that get 5 stars
 
@Pimgd People wanted you out I guess. :p
 
6:21 PM
Oh, people tend to star that kind of stuff.
 
@TopinFrassi meanies
 
6:31 PM
You are really overstepping what a unit test is supposed to do. A unit test verifies that a method either returns an object correctly or mutates the instance correctly (or throws). It should be up to the method how to accomplish that, but when you are trying to test that its implemented in a certain way, that's not what unit tests are for, that's what code reviews are for. — Ron Beyer 34 secs ago
StackExchange has a different forum for code review... codereview.stackexchange.comJim 44 secs ago
This belongs on codereview.stackexchange.com, which unfortunately isn't an option when voting for migration. — Jim 16 secs ago
Guys there is a bug. No need to move it code review. — sᴜʀᴇsʜ ᴀᴛᴛᴀ 19 secs ago
 
The Dutch doing what they do best
 
0
Q: Low level string manipulation functions in C

brian_oI'm working with a legacy program that does a bunch of markup manipulation, some of it higher-level and specific to the proprietary markup, some of it lower level string stuff. I rewrote and documented the customized low level stuff (and used string.h stuff where applicable). I'm not not usually...

 
@thehowler This isn't behavior testing, this is verifying that its programmed a certain way. Behavior testing is unit testing, verifying that the method "calls certain methods" is a code review task. Unit tests shouldn't care how the work is performed, just that its performed correctly. — Ron Beyer 49 secs ago
 
6:58 PM
Pimgd
10k
hehehehe
I didn't notice this before
 
This should be migrated to CodeReview.stackexchange.com, but while(gross != 0); is a while statement missing a body. — JPhi1618 5 secs ago
This question belongs on codereview but that's not an option? — KevinDTimm 48 secs ago
I recommend posting this to codereview.stackexchange.com. They're set up to review working code whereas SO is more about helping you get things working at all. — John Kugelman 6 secs ago
 
7:27 PM
Anyone want to read a cool article:
in Cardshifter TCG, 4 hours ago, by skiwi
Interesting/funny thing about recurrent neural networks: http://larseidnes.com/2015/10/13/auto-generating-clickbait-with-recurrent-neural‌​-networks/
 
0
Q: Inserting a Java object into a MySQL database

DanI'm writing a method to insert objects into a MySQL database and while everything runs fine I feel my code is bulky and inefficient. What steps would you take to make this code more pleasant to look at and more efficient? public void addAuthorization(Authorization authorization) { try { ...

-1
Q: Java printf complication

heathbmFor this code to run as intended use your cmd/terminal not an IDE. (or you will not see the correct effect of \r) When the 9 in the terminal reaches the right most position after 4 spaces it will turn around and move back 4 spaces and on and on. However when it reaches the start point after a f...

 
@JPhi1618 It belongs on Stack Overflow, not code review. Please read A Guide to Code Review for Stack Overflow usersSimon Forsberg 55 secs ago
@KevinDTimm It's not an option because people keep on making inaccurate recommendations. This question does not belong on Code Review, please read A Guide to Code Review for Stack Overflow usersSimon Forsberg 59 secs ago
 
7:45 PM
@Phrancis Something like that is on my to-do list. No clue where to get started, but that looks interesting.
We tried it in C++ with OpenCV 2 years ago, but it wasn't high priority enough. Project got scrapped.
 
-1
Q: How do I make it so that upon clicking on div # leftExpand, the width of the div #leftBox expands to 30vw?

Brad Grahamdo I make it so that upon clicking on div # leftExpand, the width of the div #leftBox expands to 30vw? $(document).ready(function() { $('#leftBox').css("width", 10vw); }); $('#leftExpand').click(function() { $('leftBox').css("width", 30vw); }); /*Document*/ body { height:...

 
The idea was to videographically determine what component something was, SMD size (as small as 1mm by 0.5mm).
 
8:02 PM
0
Q: Reversing the words in a string.

chrisI am having trouble understanding why my program isn't working as intended. Here is the code : public static String reverseWords(String str) { if (str == null || str.length() == 0) return str; char[] letters = str.toCharArray(); int start = 0; reverse(0, letters.length ...

 
@KevinDTimm In a nutshell, CR is about improving code that already works. I recommend that you visit The 2nd Monitor where Code Review regulars can help you understand the site's scope better. We're also a quite friendly bunch. — Simon Forsberg 41 secs ago
How about an implementation that passes all the tests I've thrown at it? codereview.stackexchange.com/q/13288/489Jerry Coffin 52 secs ago
 
@Duga So be nice if any of them stop by.
 
8:31 PM
Heh, 5 minutes after a Roslyn teammember forwarded my request for a thesis co-promoter to the team, VSDiagnostics gets starred by someone from MS
it was all a trick to get stargazers
 
8:42 PM
Worked perfectly I guess %%
s/%/^
 
now I just need that co-promoter though
 
8:57 PM
@JeroenVannevel well done!
 
Thanks! Made me even open VS to finally look into why some tests are failing
One more star and I might open a file in the editor
6
 
0
A: Updating CSS for "active" tab

RoToRaFirst off, you have a bug. This instruction window.onload = updateNav(); doesn't execute updateNav on load. It executes updateNav immediately and assigns its return value (which is undefined) to onload. Instead it should be: window.onload = updateNav; Also assigning event handlers directly ...

 
@Mast huh? Is that text written in English?
 
0
Q: Project Euler problems 79, 85 in Python

nicolashahnFor one place that I interviewed at (for a Python developer position) I worked with one of the devs on two Project Euler problems, 79 and 85. We talked through different approaches and came up with solutions together, but we coded separately. He seemed impressed that we were able to get through t...

1
Q: Scala Binary Search Tree

rosshsrIn an attempt to get deeper down into Scala, I decided to make a BST using as many interesting concepts as possible in order to explore everything Scala has to offer. Taking inspiration from this question/accepted answer, I wrote: package bst object BST { def apply[T <% Ordered[T]]() : BST[T...

 
9:09 PM
Smartcrop.js - Content aware image cropping https://github.com/jwagner/smartcrop.js/ http://t.co/cmUgwZ2CQ3
 
@Mat'sMug RNN's at work, the whole site is auto generated.
@JeroenVannevel Make it practice on cat pictures.
Plenty of those around.
 
Ugh. I removed RoslynTester 1.5.0 from the NuGet list after it had only 5 downloads because it was broken
A week later we released v1.6.0 with fixes and that one is listed
Today I look and 1.5.0 has 95 downloads while 1.6.0 has 60
People specifically hate the 1.6.0? How should I interpret this?
1.4.0 is at 290 which isn't that much more than when I brought out 1.5.0
 
0
Q: Basic Immutable class design

mc20I am trying to model person in OOPS using immutability. I have created an object bond with age as 25, to change the age I have created a new object and returned. Is there any better way to change the age instead of passing all the values of object again? Is this a correct way to do? import java...

 
9:27 PM
Finally finished all my edits to my post. I can't look at another SVG again today: codereview.stackexchange.com/a/107447/74735
 
@JeroenVannevel wut, I hadn't starred your repo yet?!!?
 
@Mat'sMug You were withholding stargazers?!
Is this because you're jealous of VSD?
 
@Barry: Since I'm just asking one question - how do I increase my code quality - and not about how to do each problem, I figured posting two problems would just give a larger dataset. — nicolashahn 12 mins ago
@JeroenVannevel 1.5.0 is a nicer number, everyone knows that.
 
@JeroenVannevel I'll be jealous when VSD downloads beat RD ;-)
> Rubberduck.Setup.1.4.3.0.exe(4.32MB) - Downloaded 862 times.
Last updated on 2015-07-08
 
You just wait until VSD is mature enough to fix all the things you do wrong in RD
yeah, still a long way to go
 
9:35 PM
0
Q: Python Indentation Issue

PaulI'm having a problem with an indentation in Python 3.x. For some reason the three print statements after 'Deductions' end up indenting at increasing rates, despite the fact that .format parameters are the same for each one. I'm stuck here honestly. def main(): name = input("Enter your nam...

 
TTQW
 
@Mat'sMug what's the VB.NET equivalent of msdn.microsoft.com/en-us/library/w7xf6dxs.aspx ?
The few VB.NET tests we have work, sadly enough. I need to know what the error code is so I can ignore those
but it seems like that doesn't exist for VB.NET?
Lol. Fixed the testing framework so it now fails the test if the test contains uncompilable code
Suddenly 77 out of 642 tests fail
4
oops
 
Either you need to live 136 years to make the amount of seconds you lived overflow a 32-bit integer, or I've had too much whiskey.
7
In any case, I'm off to bed.
 
9:50 PM
People who used this library are totally irresponsible
2
night night
 
s/any/either, if one is so inclined.
 
And remember: just because your country isn't good at soccer, doesn't mean you're any less than Belgium
There are other reasons for that
 
INSERT INTO TimeClock (User, Status, Time, Remark)
VALUES ('Phrancis', 'TTQW', GETDATE(), 'Finally...');
GO
 
0
Q: Project Euler Problem 85 in Python

nicolashahnFor one place that I interviewed at (for a Python developer position) I worked with one of the devs on two Project Euler problems, one being problem 85. We talked through different approaches and came up with solutions together, but we coded separately. He seemed impressed that we were able to ge...

0
Q: Perl code that breaks a line after fixed number of columns

Suresh KoyaHere is a simple program that I created to print a file by breaking it after a fixed number of columns. Since this is a perl file that I working after way long time. I feel it can be optimized but not sure how. Any feedback is great. #This is a simple program that takes a file and the limits th...

0
Q: How can I make this method more readable?

yarixI wish to use this sample to make my code more readable. Could you share with me your ideas on methods naming, variable naming, if-statements. It would be great if you have any URL's. private boolean areEngineersHappy (List<Engineer> engineers) { int notHappyEngineers = 0; int happyEngineer...

 
Hello.
 
10:06 PM
@Mast You've had too much whiskey.
 
0
Q: Performance Improvement, C++, Counting finite abelian groups

Liam NoronhaI wrote this code for this code golfing challenge on the CGPP sister site. It wouldn't really be a competitive entry because I had to write all the functions from scratch. (I didn't even golf anything in my code.) I'm looking for ways to improve performance all-around. Please see the above gol...

 
@Mast 2147483647 / 60 / 60 / 24 / 365.25 = 68.049650385327147818592034882247 years
 
-1
Q: JavaScript OOP Quality in terms of readability (and performance)

Nino ŠkopacI've been a backend web dev for about 13 years, and even though I know my way around jQuery, I don't usually work with OOP JS, but recently I've started working with Google Polymer, and I liked the OOP approach of JS. Here's the code (unrelated to Polymer) (function() { var cleaned_by = { ...

 
@SimonForsberg Actually, if it was unsigned, it would be 136...
 
right. unsigned, then *2 of course
 
10:39 PM
as your code seems to be working code, you might consider asking this on codereview.stackexchange.com. as for the question, making a function for the repeating parts could help a bit. — Félix Gagnon-Grenier 58 secs ago
I'm voting to close this question as off-topic because it should be on a site like codereview.stackexchange — rlemon 19 secs ago
 
-1
Q: Simplify function with repeating if/else parts

user3848987I'm trying to simplify this function, as there can be multiple type of data objcts and for each type there is also a male and a female version. The number and name of the elements in the objects are always identical. As you see, most of the code is repeating... function calculate(type, j, value...

 
10:59 PM
0
Q: Program to calculate smallest number with permutations divisible by a set of numbers

LinusI have written a small program in C to calculate the smallest number where any of its permutations or the number itself is divisible by a set of given numbers. It works great when the number is only 4-5 digits but then it becomes very slow. Do you have any suggestions on optimizations when it com...

 
@CaptainObvious Hey @SirPython, why did you delete your answer to that question
 
I don't know. It seemed like a bad question, so I wrote an answer and deleted just in case the user can fix it up, which I would simply then undelete my answer.
 
@JeroenVannevel More than that. I already fixed most of them.
Most of them were syntax errors, like missing semi-colons, missing using directives, and such.
 
@SirPython just a bit unclear, as long as it gets a new title, and the variables explained it should be okay. your answer was good, I would undelete it :-) (up to you though)
 
Okay, thank :). I have un-deleted it.
 
11:03 PM
In that case, shouldn't that be closed as broken?
 
Zak
11:14 PM
Also, I had an investment analyst HeadHunter call me today. Apparently I came specifically recommended.
Definitely piqued my curiosity
anyway, 'night @all
 
night
Aww I was going to make the comment "did you mean 'you' instead of 'yoU'" hehehe. — Shelby115 8 mins ago
huh
0
A: Simplify function with repeating if/else parts

QuillFirst, you've got a few errors in the following: else if (type == 'length') { if (s == 'f') { if (lengthFemale.hasOwnProperty(i)) { var m = lengthFemale[i][0], l = lengthFemale[i][1], s = lengthFemale[i][2], // <--...

 
11:39 PM
Yo, @SirPython: the value parameter is extraneous
and unused
 
2
Q: Check if more engineers are happy than not happy

yarixI wish to use this sample to make my code more readable. Could you share with me your ideas on method naming, variable naming, if-statements etc. It would be great if you have any URLs. private boolean areEngineersHappy (List<Engineer> engineers) { int notHappyEngineers = 0; int happyEngine...

My answer is competing with another answer on a question that should be closed... lol
Hmm... Thanks, Santa!
Suddenly both answers are getting tons of upvotes...
 
Santas are everywhere
 
Alright, I'm gonna shoot for 200!
 
If there are multiple questions, you should ask them separately. If you like a review, Code Review might be the better place to ask. — Evert 41 secs ago
 
Answer #2:
0
A: Basic Immutable class design

Manny MengGeneral Review Bad Practices First, you import the whole package: import java.io.*; import java.util.*; It is usually better practice to import specific classes. Also, I don't even see the use of any of these packages. Don't import what you don't need: it will affect performance. Formatting...

 
11:56 PM
No actually these all are parts of the same problem. I do use Code Review but only when I have a complete code which is almost functional. — Madelyn Shroeder 21 secs ago
 
00:00 - 13:0013:00 - 00:00

« first day (893 days earlier)      last day (3126 days later) »