« first day (1124 days earlier)      last day (3192 days later) » 
00:00 - 19:0019:00 - 00:00

00:00
RELOAD! There are 2394 unanswered questions (93.0833% answered)
00:18
@Quill yep. even Rubberduck's VBA unit tests :)
> In other words, go for the pun, but if you aren't keeping the clarity, you're not being punacious enough.
1
A: Punny/Playful Titles Policy

LaurelWe can do better. It is possible to write a title that is both informative and punny. Compare these two titles: Hangman my logic compared to others A different way to execute a hangman game Now, this wasn't my question, but it had a boring, awkward title. So I suggested a better one. Now, I ...

@easterlyirk One of the bullet points for on-topic questions on CR is asking about "Correctness in unanticipated cases". And regexes are perfectly allowable, see meta.codereview.stackexchange.com/a/2563. — Laurel 33 secs ago
00:44
FWIW that regex question probably wouldn't be too well received, but I wouldn't hammer it either. To the best of OP's knowledge, it's working as intended. Seems like a legit -only question to me.
0
Q: A Car Rental Agency - guaranteeing uniqueness

Andrew Cathcartnew here. Just looking for some constructive (harsh) criticism of a project i've completed and handed in. This is a theoretical implementation of the system, specifically has a simplified registration number and a simplified driving licence number generator. I've added in the other classes for cl...

0
Q: RadixSet - A growing-only Radix/Patricia Tree

MephyI'm looking for a structure to store large amounts of strings (5k to 100k) and then test for existence of new strings against the previous inserted data, in the least possible amount of time (memory is mostly irrelevant). The structure would first be fully loaded at the program start, without any...

@Mat'sMug "punacious" is a great new word
> Punacious D and the Title of Destiny
00:59
I wonder if "Call Q later" could somehow be made into a title
(not really)
01:22
Does your code work as intended, or there's something that needs to change in what it's doing? If it does work as it should, and you're looking for feedback on any/all aspects of your code and/or change how it does what it does, then you could consider posting on Code Review. — Mat's Mug 33 secs ago
01:32
you know when you're reading tutorials that reference 6 different libraries in the title alone that you're probably adding technical debt
0
Q: Refine a web page that Outputs video from my gate & keeps a log of entries

LinkI have a remote opening front gate on my driveway that can also be opened and closed by wifi from my phone. The whole thing is run by several Raspberry Pi's that was mostly set up by my brother when he was living with me. As you may have guessed he is the brains of the outfit. It works pretty goo...

Where is the page on on-topicness?
/help/on-topic
 
2 hours later…
03:32
0
Q: First drafts of Ultima-like adventure code

YongusFriend and I watched most of the thenewboston syntax videos for Python 3 and spent 2 hours attempting to piece together our first program / generic text adventure. First experience with coding. Looking for feedback on silly code and poor conventions. http://pastebin.com/6piazw3F Combat will be...

I was 14 seconds too late
Does Jamal do the majority of modding around here?
we're a team, ...but Jamal is Jamal ;-)
looking at the stats... I haven't been very active last month
04:01
1
Q: Queue resizing array implementation

RockyAfter learning about linked list implementations of a queue I was asked to try a resizing array implementation. I'm looking for constructive criticism. import java.util.NoSuchElementException; /** * ResizingQueue - Resizing Array Implementation. * * @author Rocky * @version 2016-05-31 */ ...

04:12
@Hosch250 As MatsMug says, we're a team, and we tend to complement each other by doing differing amounts of various moderation tasks. We also agree that more moderation is not necessarily better moderation, so we don't compete with each others' moderation stats.
complementing and complimenting makes for a good team
04:29
0
Q: Else-if and instanceof

Emerald214This code checks value's type and cast it into appropriate type, then put it into node. The checking looks long and boring. Is there a way to refactor it? /** * Set node's property. */ public static void setProperty(Node node, String propertyName, Object propertyValue) throws RepositoryExcepti...

04:39
0
Q: Improving time complexity of finding the longest palindrome in Python

Mona JalalMy code passes all the corner cases except for time complexity. Can you please provide some insight as which part of code and how to be modified to pass the time complexity limit? class Solution: # @param A : string # @return a strings def clean_string(self, string): result =...

05:02
> You've earned the tag badge.
05:13
I've broke something
We apologize for any inconvenience, but an unexpected error occurred while you were browsing our site. It’s not you, it’s us. This is our fault. Detailed information about this error has automatically been recorded and we have been notified.
almost all meta sites are broken for me
With the exception of https://meta.stackexchange.com/ and a couple others.
lol
meta.cr works for me
Yeah I have a suspicion something happened when trying to create my friendly sock puppet account.
But it's not caching .. I'll just see if it fixes itself by tomorrow if not I'll contact SE using the support thing.
TTGTB
Night
05:53
@Insane https for lower tier meta doesn't work, could be your problem
Also, monking all
hello
06:18
Monking
@EᴀsᴛᴇʀʟʏIʀᴋ thanks for the backup on that SO question, but it's really not necessary :)
also rep isn't necessarily a good indicator of scope knowledge, so the argument may be more or less invalid ...
06:37
Definitely.
oh, Flux has adjusting my screen... that's probably a good sign it's time to go home
If the code is working and you want to make it nicer there is codereview.stackexchange.com for that. Off the top of my head I would suggest checking out the Dir function (to possibly replace the FileSystemObject) and Right to replace InStr (so you don't pick files like thisisnotajpg.txt). Also rename your counter and counter1 variables so it's clear which is which (row and column). Plus the stuff I already said in my other posts. — arcadeprecinct 6 secs ago
Thanks @j08691, I've added my question to codereview. I dind't know that place existed! Thanks. — R Champniss 36 secs ago
1
Q: Selecting one form to be visible using jQuery

R ChampnissI'm new to JQuery but have managed to get it working the way I want. The problem is, it's a bit convoluted and could easily get out of hand if I add more options. I am trying to show and hide divs based on a user's dropdown selection. I've made a JSFiddle (http://jsfiddle.net/rchampniss/mdy7acwn...

07:10
I would also recommend, for learning purposes, that you submit your working code on codereview.stackexchange.com. Empty catch clauses, wrong casing, bad variable names... ;) — Pieter De Bie 28 secs ago
-1
Q: Tic Tac Toe board

MRGTHey guys I've been trying to use this function to scan in a tic tac toe board but I get a "too few arguments for format" error message, here's my code : void getBoard(char board[SIZE_BOARD][SIZE_BOARD]) { for(i=0; i<SIZE_BOARD; i++){ for(j=0; j<SIZE_BOARD; j++){ scanf("board[%c][%c]",&bo...

@CaptainObvious broken
Maybe you are asking for code review, you may try Codereview stack exchange for that :) — Mathematics 50 secs ago
07:34
I love the smell of a random upvote in the morning.
2
0
Q: Implementation of warning storage

MegaTronI implemented type (UserRuleManager) that will apply list of rules to entity User. I need your code review and your advices. Here is usage of that type private void ProcessUser(User user) { if (!_userRuleManager.ApplyGeneralRules(user)) { SetWarning(); } else if (!_userRu...

0
Q: Code Optimization for workable code for Excel VBA to Import jpg,Jpeg,PNG images from Folder to Excel worksheet

sandeep Issue Copy images from a folder and paste it to a specific Excel Worksheet. Solution From help of different online forums i have solved the issue to do the above task in VBA. Code Sub AddOlEObject() Dim mainWorkBook As Workbook Set mainWorkBook = ActiveWorkbook Sheets("Sin...

Monking :)
07:51
Is this a question about how to optimize/minimize your code? You might want to check out codereview then. — Oliver W. 49 secs ago
@ksno Could be :P So I'm retrieving 20 records from a database. Then I'm setting 4 columns of each record to the same Domain Enitity's properties using setters. Then I collect these 20 objects in an array which I then use to convert to an HTML table. I'm trying to grasp on the repository pattern: codereview.stackexchange.com/questions/129742/… . — Beeelze 28 secs ago
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Nested values copies from one object to another
Zak
Zak
Monking @all
> please kindly post the optimized code which would be dynamic to use.
Zak
Zak
08:13
@Mast Not sure if that's a or just a poor choice of words. I get the impression English is not the OP's first language.
How am I supposed to do source code review, if its possible? Any thoughts. — Rob 21 secs ago
What kind of source code review are you talking about? With Drupal, the user only adds content, all the HTML is produced by the core system, additional modules and themes that are all written in PHP. If you are not familiar with Drupal, you'll probably not be able to do a proper code review. — Paul 54 secs ago
@Zak English isn't that difficult, but yea, could be one or both.
Zak
Zak
@Mast Looks like a positive outcome.
0
Q: Syntax for RemoveDuplicates Function?

user1996971I have the following lines of script to Remove Duplicates from a spreadsheet. I want to delete rows ("A:C") and ("D:F") if there are any duplicates in columns A or D, respectively. Sub RemoveDupe() ActiveSheet.Range("A:C").RemoveDuplicates Columns:=Array(1), Header:=xlYes ActiveSheet.Ra...

Zak
Zak
09:08
@CaptainObvious VTC Broken
09:22
0
Q: JavaScript Image-Slider

st88An implementation of an image-slider I figured out. Could it be further improved? Or should I do it in a completely different way? var boxes = document.querySelectorAll('.box'); var prevButton = document.querySelector('#prev'); var nextButton = document.querySelector('#next'); var imag...

09:37
If your code is working then CodeReview is probably the right place for it. — n.m. 31 secs ago
10:11
monking @Quill and @JeroenVannevel
yo
I saw some comments of yours from july last year on Stack Overflow today
Angular & TypeScript unit tests, not a fun combo
Angular & TypeScript unit tests, not a fun combo
yeah.... I don't mind it, but it feels unnecessarily heavy sometimes
10:16
i'm going to get a coffee before i go on a rant about it..
On a side note, Stack Overflow are hiring software devs again: stackoverflow.com/company/work-here/84398/…
I'm voting to close this question as off-topic because it belongs to codereview.stackexchange.com — Frerich Raabe 8 secs ago
1
Q: C++ variant and variant subsets

GrieverheartI seem to be in a love-hate relationship with C++. It can make some parts of your code elegant and easy to grasp, and some others become an inconceivable mess. And it's not the language itself causing the problem, but the allure of some language constructs which can lead to many headaches in the ...

Hi! Could anyone clarify asked question in the last post posted by Cpt. Obvious? I've reread it 3 times but couldn't get what the OP wants
@OlzhasZhumabek Shouldn't you ask the author instead of us?
10:29
Well, it looks like a kind of
The OP has pretty clearly stated that he wants to know which approach is best
@Mast, just thought that I'm missing something obvious. Sorry.
@DanPantry the move between options is so invisible
@DanPantry Which is a stupid question if you don't specify what you're looking for.
@Mast Yep
It seems more SO question than CR, though it has some complete working example.
@OlzhasZhumabek Why?
10:34
It feels like he wants to solve particular problem
I mean code not yet written
I don't think so, he already has something working.
yep. I want to pull my templated static composite class but not really sure if he wants it. It seems like he has problems with applying visitor
-1
Q: RPN Stack for Real numbers

Yosry ETMi problem that I need a scanf(%s) of a 'char', but I don't know where, or how, I have to put it to still work The RPN calculator. Please HELP!!!!!!!! My code takes operands and operators from the command line (e.g., 3 4 - would return -1), and sends it to the decode function which uses the pop...

0
Q: Haskell | Using fib sequence to generate musical melodies

Jake RiegerSo I recently started picking up the Haskell programming language. I've managed to learn other languages rather quickly, but I'm still having a difficult time grasping some of the basics of Haskell. I decided to practice a little bit today and wrote a program that calculates the Fibonacci Sequen...

10:51
codereview.stackexchange.com — Mohit Jain 55 secs ago
fn main() {
    let vector = vec![1, 2, 3];

    std::thread::spawn(move || {
      println!("{}", vector[0]);
    });

    // vector is "moved" to the other thread, so we can't use it here.
    // This sounds bad, but it actually prevents a data race. Hooray!
    println!("{}", vector[0]);
}
I'm liking this language already
@CaptainObvious Please make that go away.
rust promises a lot of things. Does it really do what it says?
Well, I can't speak for that, but it looks promising
@DanPantry vec![1, 2, 3];?
11:00
I've only picked it up yesterday, so..
Crazy syntax.
@Mast vec! is a macro
things ending in ! are a macro
Oh, that explains a lot.
it just creates a vector out of the given items
the really weird thing is its concept of ownership (which is the whole "moving" thing I mentioned in the code sample)
basically only one scope can have ownership of a binding at a time (from my current understanding)
std::thread::spawn creates a new scope that may potentially outlive the parent scope, so you have to "move" the vector to that scope so that the thread can access it
is it like lack memory aliasing in fortran?
11:02
That eliminates a lot of problems. But at what cost?
@Mast well, it means that the above code sample doesn't work, for example.
And it's something to get your head around
@OlzhasZhumabek I've not used Fortran; that language is older than I am.
@OlzhasZhumabek No.
Memory aliasing is exactly the opposite, kind of. Not exactly, but close enough.
Basically in Rust, variable bindings have an "ownership" property.
When you create a new variable binding, a shallow bitwise copy is made of the previous value
For primitive types (or anything with the Copy trait) this works fine as you'd expect
For types that are on the heap, like vectors, the old binding gets invalidated
Otherwise you'd have two bindings having a different idea of what the vector should contain on the heap = stackoverflow/underflow/segfault
got it. But it really seems like copy or clone methods will be needed, which reminds of java style language
Well, you'd need them if you wanted to copy stuff..
Otherwise you can just use references (like C++)
That's the bit of the book I am reading now, though
11:06
o_O it has references, cool.
There are rules around that, though
> First, any borrow must last for a scope no greater than that of the owner. Second, you may have one or the other of these two kinds of borrows, but not both at the same time:

one or more references (&T) to a resource,
exactly one mutable reference (&mut T).
Monking
in order for my above sample to work i haev either two options
1. move the vector to the thread (and thus not be able to access it in the parent scope) or
2. make the vector have a longer lifetime than the parent scope
by default it will not work. I think that's pretty cool, because it forces you to think about how long your data will live when it leaves scopes etc
In bed he fumbled around for ages, unable to find what he was looking for. He was known for his 404-play.
does it have destructors? otherwise the language is pain
11:11
@OlzhasZhumabek Not really, but there are no classes in rust
all types are allocated on the stack by default
vectors are allocated on the heap, but the pointer is on the stack. as far as I understand once that pointer goes out of scope, the vector is destructed, too (@skiwi might be able to correct me here)
tldr no but there isn't really a need for destructors
I mean, I'm sort of wrong
There's the Drop trait which can be implemented
though that seems to have more in common with C#'s IDisposable
Yeah, was wondering about that. I still pretty much like c++, though it hates me.
C++ is very overhwleming and there's lots of conflicting info online which is why I don't really want to learn it
Rust is a bit confusing though with it's ownership concepts. There's a lot to read...
Yeah, Box wraps a value
(and implements Drop)
I started learning it in school for competitive programming, but what we were told was crap. Pretty much C with STL.
11:16
by default, that stores stuff on the heap, but it will be collected once it goes out of scope
(like vec!)
Again, you need to extend it's lifetime for it to stay longer than the duration of the scope
@DanPantry it seems like everything is unique_ptrs
@OlzhasZhumabek I don't know enough about C++ to know what that is
Monking
Rust seems to basically be C++ with less conflicting information
And less rope to hang yourself with
it automatically releases everything it holds (calls destructor and releases memory to which pointer points to). Well, have you heard about template error strings? I mean what compiler reports when it finds error in a template
11:19
@Mast Mostly needs brain processing power, I don't think it impacts the actual performance
Zak
Zak
Huh. Just gone and reviewed my commit history for this latest project. 292 and counting. It really didn't feel like that many at the time.
@DanPantry You should have tried Rust before 1.0... Turned me off the language, waiting until it's more stable. ):
@skiwi As long as it doesn't make it hard to develop in it. People left C for a reason.
@JoeWallis lol
@Zak hope you don't have to git rebase that
@DanPantry In Rust you can always hook into the moment when an object gets deallocated from the stack, and you can write custom code for your own classes and classes like vector free their data on the heap then (as far as I know)
11:21
@skiwi yes I said later on there's the Drop trait which lets you write a sort-of destructor
But there's no class concept in Rust
@JoeWallis I'm having some trouble navigating stackoverflow because of the < 1.0 time perk :/
@Mast Realistically you'll be fighting compiler errors and not segfaults in Rust
@skiwi I prefer fighting compiler errors over segfaults.
4
@skiwi are compiler errors clearly written? if not, then I believe fighting with segfaults might be in some ways better.
Rust even promises it that it will never segfault on ordinary code, of course it does have unsafe blocks that can spawn dinosaurs
@OlzhasZhumabek The compiler is a very friendly guy
All I'll say is that I'm quite happy with Rust with what I have seen so far
11:24
Segfaults are never better. Segfaults mean you're doing it wrong and leaves you guessing where.
@skiwi Is it any better now after 1.0? I may give it another go
I've never encountered segfaults. Since I'm sitting on windows, when using minGW it simply says that program stopped working, and with MSVS it has great debugger.
I imagine segfaults are one of those things that you never have to encounter to know they are there or be worried about them
@JoeWallis It seems pretty stable to me, the standard library feels to be lacking on certain places but third party libraries on Cargo make up for it in my opinion
Zak
Zak
@DanPantry I think I had 1 branch during the entire thing. It's not that complicated.
11:27
@DanPantry never written any real world code, just finished high school, so I'm pretty green :)
the site was down when I shared it earlier
@OlzhasZhumabek I currently work in languages that are high enough level to (generally) not worry about segfaults. C#, Java, Ruby, Lua, Python and JavaScript
Zak
Zak
@Quill It's still down.
also HTML/CSS, but if you get a segfault in HTML/CSS....
@skiwi Do you have to fix all the Cargo builds still? (I thought they decided to cull a lot of std, so that may explain why it's lacking...)
11:29
@DanPantry I thought that they are kind of static (nothing happens after interpret stage)
@DanPantry then you probably need a drink
@OlzhasZhumabek (that's the joke)
@JoeWallis Only thing I had to fix was my git config when setting up cargo
@DanPantry oh got it :)
@JoeWallis Nothing weird I have needed to do, only yesterday I noticed that I wasn't compiling with --release flags at all at som epoint
have anyone tried to link to binary from older/newer c++ compiler? I want to try soon. I heard that I can have a lot of fun doing it.
11:32
@DanPantry @skiwi Wow, seems much better. I'll have to fix my PC and start learning Rust again.
for some values of fun
fn main() {
    let mut x = 5;
    // need a scope here so we can actually borrow x because...
    {
        // take a mutable reference to the x value
        let y = &mut x;
        // deference y and increase the value of it
        *y += 1;
    }
    // println! takes an &T. We can't have &T AND &mut T in the same scope.
    println!("{}", x);
}
well, that's a bit confusing
bit strange how dereferencing &i32 allows you to modify the original i32..
the keywords are so short
weirdly, this fails too:
fn main() {
    let y: &i32;
    let x = 5;
    y = &x;

    println!("{}", y);
}
but this does not
fn main() {
    let x = 5;
    let y: &i32;

    y = &x;

    println!("{}", y);
}
because in the first sample x will be de-allocated before y (because LIFO)
11:47
require 'rspec'
require_relative '../lib/Validation'
v = Validation.new()
describe 'Size verification with empty right' do
  it { expect { v.EqualSize([1], []) }.to raise_error }
end
Ahh, ruby :P been a while since I've seen that
Now if only I can make it print something useful depending on whether or not it did really catch one...
Unit tests, yay!
There's two of them, one that should and what that shouldn't find one and both go silent.
They shouldn't go silent.
Oh well.
lifetimes in rust are hard, holy crap
Rust uses 'a to talk about lifetimes but doesn't actually explain that 'a means that "this type has the same lifetime as 'a, whatever a is
The good thing is that I have barely needed to use lifetimes so far
so if you have foo<'a>(obj: &'a i32) -> &'a i32 you're saying that the return value of foo has the same lifetime as the value passed to it
IOW the return value goes out of scope at the same time as the obj parameter
12:02
Monking!
hey @syb0rg
@Mast I just got a segfault in my ICCP program lol
I'm trying to figure out how gist.github.com/Connorcpu/3dc6233bd59522f0b6d650e90d781c63 is safe, that's a code sample I found for shared thread access
12:25
This looks like normal OOP to me. Can't see any particular architectural pattern. If you're wondering why your question is being downvoted it's because it's off topic for StackOverflow. There's CodeReview for these sort of questions. — apokryfos 10 secs ago
possible answer invalidation by Gareth Rees on question by Mona Jalal: codereview.stackexchange.com/posts/129821/revisions
@apokryfos Hello! This question would be off-topic on Code Review, since it isn't asking for a review, rather a property about the code itself (it's "architectural pattern"). Please make sure you know what is on-topic for a SE site before you point a user over there! — syb0rg 5 secs ago
12:40
Monking @Zak
This sounds like a question for codereview.stackexchange.comAlex Hall 13 secs ago
@syb0rg - Whilst that is true, this question isn't really off-topic here, it may be better suited to Code Review, but that doesn't make it invalid here. — Sayse 13 secs ago
12:59
@Duga Ugh, user deleted his post before I could tell him he's wrong
Which means that he's right now :/
@Bruno Perfect, now you just have to move it to Code Review. Delete this question here and head over there to post it. — syb0rg 19 secs ago
You should probably post this on the Code Review site (codereview.stackexchange.com), without a specific question you are likely to get down voted here. — Bradley Uffner 10 secs ago
13:16
0
Q: How to make my algorithm for solving a shortest length passed in the regulated time?

ljyI usually solve the problem by java for the problem as long as it can be accepted, because I am not good at C, and this site does not accept python. Usually, as long as the algorithm is the one it wants, my code usually got passed. http://acm.scu.edu.cn/soj/problem.action?id=3330 Windy has ...

0
Q: Optimizing website's javascript core

mrJoeI created a simple app that does votes' analysis of some particular website. User just has to paste url of an entry to the input on my site to see result. Below I paste the javascript logic because I would like to know your opinion about my code. I will be thankful for every advice and code impro...

@CaptainObvious This user seems confused
Zak
Zak
13:30
Just in case anyone missed it. Switzerland just finished a $12 Billion, 17-Year Mega-Engineering project *on-time and on-budget*.
2
@Zak What project?
Zak
Zak
@syb0rg They dug a tunnel under the Alps. bbc.co.uk/news/world-europe-36423250
13:43
0
Q: How to avoid repeating code in this view?

BrunoI've been reading the chapter 8 of this book : http://www.djangobook.com/en/2.0/chapter08.html Here's the view I'm currently coding. It list all characters/guilds according to the type of url. /ranking -> List Top 50 Characters /ranking/guild -> List top guilds /ranking/pvp -> list top killer...

0
Q: Parsing Gaussian 09 output for energy statement on one or more files and reformat it to a table

Martin - マーチンI am a computational chemist working with the program Gaussian 09. After I manually check the output(s) I want to create a summary for easier processing of the obtained values. Also avoid opening all the files again and again. The script searches for the last line of the energy statement. A porti...

14:05
possible answer invalidation by syb0rg on question by Bruno: codereview.stackexchange.com/posts/129851/revisions
14:26
0
Q: Print worksheets depending on checkbox. Slower than before

findwindowI have an userform that has check boxes where user can decide which worksheets to print. Partial code in userform: ' Displays warning box if no report is selected If PrintSelection = 0 Then MsgBox "No Report(s) selected. Please select Report(s) to print.", 0 + vbExclamation, "Incomp...

@cricket_007 I agree, it should be moved to codereview.stackexchange.com — Markon 47 secs ago
@Markon Maybe, I always get some questionable comments when recommending moving an alternative site. So, maybe read this postcricket_007 52 secs ago
Yep. This definitely reads like a CR question. All that's missing is a title that actually says what the code does, rather than asking what every single on-topic question on that site is asking. See here for some title ideas. — Mat's Mug 19 secs ago
Thanks! Feel free to come over to Code Review with your working code looking for improvement =) — Mat's Mug 40 secs ago
15:01
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.comTerrance just now
As this post suggest you may end up adding a lot of code. codereview.stackexchange.com/questions/37304/…Steve Greene 33 secs ago
Triggers to update data warehouse on UPDATE - yes/no?
15:17
0
Q: PDF Stamper Method to Add Field and Script to PDF File

Michael Brandon MorrisThis is related to my (unanswered) question here, but the code has changed considerably since I asked that question. I have a method that takes the filename of a PDF file and a Script object, and applies the Script to the PDF. If you are not familiar, PDFs support JavaScript to perform various ta...

15:40
lol CR is on a whole different level XD So uh, I have never made a class so probably won't go there but array of worksheets...yea.... ^_^; — findwindow 5 mins ago
3
Zak
Zak
@Mat'sMug It's funny. I was reading that answer and knew it was you long before I get to the end and saw your avatar.
lol
@Zak I'm that predictable? ;-)
Zak
Zak
@Mat'sMug Not predictable, more that you have a certain tone and style.
I can also identify a @raystafarian answer on sight.
lol
this is almost better than a paycheck:
> Still blown away by the answer. So many things to consider
15:59
you know how I have nothing better to do with my life than make userscripts?
3
well I did that again
Now there's CommitStrip oneboxing :)
the github oneboxing looks great with rubberduck btw ;)
@Quill watchers count is off
yeah, I just noticed that
looks great otherwise :)
Not this again...
for some reason watchers_count is the same as stargazers_count.... but subscribers_count is the one with the right data....
16:05
@Mast wow, talk about jet-lag
If the code works then this is better suited for codereview.stackexchange.com . This site is for code that is not working. — Scott Craner 31 secs ago
@Mat'sMug Classes are Friends, not Food?
3
bwahaha
Zak
Zak
@Mat'sMug This was still is pretty much my response upon discovering CR.
Blah that's even more work XD But thanks ^_^; Edit: chat is blocked at work ;_; — findwindow 21 mins ago
what employer blocks their employees from chatting during their shift?!
...
@Mat'sMug what employer block stackoverflow for IT employees?
now that's dumb
2
@Mat'sMug Windows is being an ass.
@ClintonWard riiiiiiight. now fake me a CTE and a TVF with MySQL. how simple is it now? — Mat's Mug 2 mins ago
16:40
1
Q: Python get UTC offset for when only naive date time objects are available

mattstThe function below is designed to return a UTC offset string, in the form used widely by timestamps, of the user's current time for when only naive date time objects are available (no time zone information). I've tested it on two systems, which are in different time zones, and it works perfectly...

16:50
0
Q: Add Field To PDF

Michael Brandon MorrisThis is related to here and here. These two methods are used to programatically add a text field to a PDF document. The field can be of any user determined size and have any user determined title, and will be on the pages specified by an enum value. private void AddFieldToPdf(Field field, iT...

@Quill One-box all the things!
@skiwi One-box to rule them all.
There's tools like CodeClimate and Rubocop, absolutely. If you have stretches of repeated code it sounds like your development process is total anarchy. How does any of that pass a code review? — tadman 23 secs ago
17:15
I want one.
One-box to rule them all, One-box to find them, One-box to bring them all, and in the 2nd Monitor bind them
4
possible answer invalidation by Michael Brandon Morris on question by Michael Brandon Morris: codereview.stackexchange.com/posts/129867/revisions
sigh SQL deadlocks because someone decided it was better to implement foreign keys with triggers
@Duga I think not. I added to the original, and didn't replace anything.
@DanLyons sigh cries
I dare not look at git history, because there's a non-zero chance it was me :x
4
17:33
@DanPantry Never seen a fox with that color pattern before.
I "only" need 72 more answers, and 270 upvotes, to get CR's first gold tag badge. @Zak how's the race coming along?
@MichaelBrandonMorris The real question is why you did it. Why don't you post a new question instead?
@MichaelBrandonMorris Read this
rolled back
@MichaelBrandonMorris things usually get messy when there's more than one version of the code in the OP :-)
That ^^
@Mast it's a marble fox (those are the domesticated russian kinds)
17:38
@DanPantry Shiny.
@Mat'sMug @Mast Fair enough. My apologies.
Ah, it happens.
You don't know if you don't know.
It's one of the reasons we keep Duga around, to keep an eye out :-)
Educating people.
@DanPantry You're yellow if you're yellow.
17:41
On, the bright side, the guy who answered saw my edit and it inspired him to give an even better answer. :P
Which is exactly why we can't have edits like that on answered posts, makes it awfully confusing to follow and even harder when there's multiple answers.
I shall avoid doing it again.
http://www.commitstrip.com/en/2016/06/01/a-single-platform/
CommitStrip
A single platform
CommitStrip
1464802858
3
Follow-up questions are the way to go. Feel free to link back.
I'll get you the relevant meta.
@CommitStrip As a web developer, I wish.
17:45
besides, you'll (probably) get more points for posting a second, follow-up question rather than editing an existing one
2
0
Q: Fetching the website version number from the database

Frederik MollerI was just writing some code the other day, and I found myself writing something I am not sure whether it is OK to do it like this, or not. Let me give an example of what this is: I have this Method: public static string STOLENVersion() { string version = string.Empty; ...

0
Q: Astarseach java

Ashraf SirajeeYou are given a graph where the nodes denote cities and each edge denotes the distance of two connecting cities. Each node has a heuristic associated with it. The heuristic is the actual geological distance between a city and the destination city (Blue node). Now find the shortest path from the s...

-1
Q: How to print 1 2 3 11 12 13 21 22 23 31 32 33 123 132 etc from given 3 nos

ShrutiI have 3 numbers and want to print above combinations of numbers without using List.

80
Q: For an iterative review, is it okay to edit my own question to include revised code?

JoelIs it okay to edit the question to include the improved code? I would like to do so for the following reasons: To share the improved code with others To show the answering persons that I take their feedback seriously To make sure that I understood (and implement) the feedback in the right mann...

2
@DanPantry Indeed.
For some reason, my house smells like waffles. I have not had any waffles.
Also, why on Earth is the accept rate of my AngularJS answers so low, especially when there aren't any competing answers most of the time...
@DanPantry Almost like it says something about the people working in that area.
You're right... Hey, wait a minute, I work in that area. >:(
Zak
Zak
17:55
@Mat'sMug I am merely lulling you into a false sense of security mwahahaha Regrettably, I've been busy with work.
Oh man Microsoft, you about to get lit.
They just gave me a notification with a link to "Feedback Hub" with: "How often does your PC unexpectedly restart on this build of Windows 10?"
@EBrown Is there an option for 'all the time'?
Why is it that Outlook needs restarted every 5-8 days?
@EBrown odd, I haven't had issues with Win10. Yet.
18:00
It's often awfully slow after resuming from a hibernate and it reverts extension coupling if it feels like it...
It's been better since I disabled the Windows Update service.
@CaptainObvious 2 more VTC.
nuked
@CaptainObvious 3 more VTC.
nuked
18:03
I like your nukes.
AKA: HAMMERTIME!
git blame is like the quickest game of cluedo ever
so, wazzit you?
@DanPantry We could make a community-challenge out of that.
18:05
i can neither confirm or deny that i wrote a bad line of code in a project which no one else is committing to.
I'm sure it was the bad code fairies.
3
Uhu.
They get everywhere
they're like glitter
and crumbs
So that's what's been pestering my code base.
except they're made of spaghetti and facepalms
18:06
0
Q: Output those which are below mean sorted descending and Output those which are above mean sorted ascending

debayan chakravartyI am working on a program where i have to ascend the numbers which is greater than mean/average and also will descend which is less than the mean/average of the user inputted number series Example- Enter no. of elements you want in:8 Enter element: 1 2 3 8 5 7 6 4 Now we have to fi...

@CaptainObvious huh?
> OUTPUT THOSE WHICH ARE BELOW MEAN SORTED DESCENDING AND OUTPUT THOSE WHICH ARE ABOVE MEAN SORTED ASCENDING
Just in case you are hard of reading. /s
AKA KTHXBYE
That said, if you wander the sorting tag on this site, you'll find plenty of working implementations and answers that explain what's wrong with them, why, and how to improve them. — Mat's Mug ♦ 6 secs ago
18:25
@CaptainObvious In LINQ this would be two lines, IIRC.
yep. too bad it's JAVA
@Mat'sMug There's a three-line method that only uses one OrderBy.
// Method 1
var aboveAvgSorted1 = list.Where(x => x > avg).OrderBy(x => x);
var belowAvgSorted1 = list.Where(x => x < avg).OrderByDescending(x => x);
// Method 2
var sorted = list.OrderBy(x => Math.Abs(x - avg));
var aboveAvgSorted2 = sorted.Where(x => x > avg);
var belowAvgSorted2 = sorted.Where(x => x < avg);
@Mat'sMug ^^^
18:41
looks like you see sharp
18:54
I'm becoming famous!
15
Q: How to use github, branches and automatic releases for version management?

skiwiI understand most of the basic Git/Github concepts by now, however I still have trouble understanding the bigger picture. These are some things that I have managed to get working so far: Push commits Work with branches Integrate Github with Travis CI, a continuous integration system Via Travis...

> views 10000
And it's closed as too broad
Really sounds like I didn't know about the Git Workflow yet :P
or the Programmers.SE scope
:p
They don't even know their own scope :D
woah, 10K views... I missed a zero there... congrats!
00:00 - 19:0019:00 - 00:00

« first day (1124 days earlier)      last day (3192 days later) »