last day (368 days later) » 

12:16 PM
@Izzy I've ported the whole gist mess to a full repository and imported everybodies gists as branches to make it easy to see differences between them and port anything useful between them. For example the diffs in your branch to main are here: github.com/alerque/SE-AutoReviewComments/compare/…
 
HIB lets you gift stuff now
 
@benjol See ^^^, but I've got all those gists in a single repo as branches that you can fork here if you like: github.com/alerque/SE-AutoReviewComments
 
@Caleb Thanks a lot! That link to benjol, please. That's what I've meant by "colorizing differences" for the old bunch we seem to be :)
 
I'm going to work on merging Izzy's changes into master and bumping to 1.4.0 if you don't minde
 
@Caleb No prob with me, but maybe consult with Benjol for a few things. As I'm only active on a few sites, my changes have not been thoroughly tested.
 
12:21 PM
@JourneymanGeek what are you doing with the RPi?
 
@Sathya: at the moment, its a ghetto NAS
 
@Caleb I'm e.g. not that sure concerning my changes in lines 79-81. Worked for me (better than the original ones). But what might I have missed?
 
I'm pondering moving the things that the mini ITX box does into it too, so torrent downloading.
 
@Caleb Ooops?
 
@Izzy Nope. I bounced our troller from chat and cleaned up the last few bits of mess.
 
12:24 PM
@Caleb Also, some of my comments in the script might be removed (e.g. line 4 from the end; shall I do that kind of cleanup in my Gist, and you pull again then?)
@Caleb scrolling up Ah, I see :)
Wow, you've got da powa!
 
@Izzy That would work, or you can fork the repo and make the changes in you branch there, that would be easier in merge back in at this point.
 
@Caleb No more farmers with forks today, please :) I'm already editing...
@Caleb OK, done. Removed some obsolete stuff, and added a few hints where I'm not sure whether some more work/check is needed.
 
12:40 PM
@Izzy And I pulled your latest into the branch: github.com/alerque/SE-AutoReviewComments/compare/…
 
@Caleb & @Izzy, thanks for your interest in contributing to the script
My problem with pulling your forks as they are is that there are the 'custom' bits (i.e. the default messages).
This means that (beyond the fiddly problems of getting the proxy here to play nice with github) I have to check each detail, line by line.
Work in other words :)
 
@Benjol That's why I setup branches, so we can pull in the script modifications but leave people's comments and custom stuff in their own branches (preferably that they then fork to continue editing).
@Benjol You can't SSH?
 
no, https seems to be ok though, but not always
haven't quite worked out why.
That and I changed machine a while ago, and can't quite remember what I have to do so that github will recognise me and accept commits from here
If I must confess all, I've been using git for years, but only ever on my own. So I can handle branching and merging, and sort of grok remotes. But never done both
@Izzy are you still around?
 
1:15 PM
@Caleb woops, forgot to @ you on that paragraph...
 
@Undo ok, thanks!
 
1:44 PM
@Benjol No worries, I'm here.
 
@Benjol Sorry, was busy on some prod issue here. Yes, I'm still here. Give me a minute to catch up...
 
@Izzy How does this patch look‌​. I rebased your commits on @Benjol's latest and selected only the parts of the diff that were not changes to the default data set.
 
@Caleb Checking...
 
@Izzy There was one bit that you changed that I left out, specifically this line and the one after in: gist.github.com/Benjol/…
It looked like you simplified the hack but did not account for the case of having and exact mach (yours started the match with a space).
possibly your version with a regex starting (/ ?Stakc... would work.
 
@Caleb That's one of the 3 pieces @Benjol should take a closer look at.
 
1:52 PM
(Install link here)
 
@Benjol the part Caleb just pointed at: On the sites I'm active, the "Stack Exchange" string was always remaining in $SITENAME$ (e.g. "Welcome to Software Recommendations Stack Exchange"). I lacked the time to check for all possible sites, so this was my "quick hack" to get rid of it. Might need improvement, but my replacement did a better job for the sites I'm on.
 
It doesn't appear to be working (not finding site specific data it my local storage) so I must have missed something.
 
@Benjol 2nd piece is lines 185+186 in this patch. Is there any place where you depend on GetStorage() returning undefined? If not, my patch could stay.
@Caleb Did you import my defaultMessages? If not, you don't have "site specific" data stored.
 
@Izzy I looked for that and didn't see any, but I wasn't very throural.
 
Maybe I should place my Export into a separate file somewhere to share...
 
1:56 PM
@Izzy If I hit import/export I see your messages yes. This might have to do with not including that line 78 thing.
@Izzy Yes, that would be what needs to go it your meta post for this site, at least the section relating to here.
 
@Benjol 3rd and last part requiring a closer look: Lines 352+356. Should work fine (and substr should be slightly faster than a regex replace), but the regex replace (which you also used before) might be more "error-prone". Not sure.
@Caleb I don't think so, but let me check again. AFAIR that line just strips of the " Stack Exchange" part from the Welcome message.
@Caleb I could put that into a separate Gist meanwhile, and you could pull it into your corresponding branch?
@Caleb line 80 had placed it into localStorage. But Benjol's original script did that as well.
 
@Izzy I imported that bit anyway. (and clobbered the one I had already pushed so that is now what shows up at github). I did add tho ? modifier on the space just in case.
@Izzy shweeet.
 
That might cause a little "Ugh" if we have a site that's just called "Stack Exchange". Do we have such?
 
Works now!
 
@Caleb Great! Umm: Benjol left the building?
I was hoping for some feedback on the 3 sections mentioned...
@Caleb you could even try this link as external source to import from I guess – now that I've placed my export on Git :)
@Caleb why is my second Gist listed as "secret", and how to change that (should be public – or do I get something wrong here)?
 
2:26 PM
@Izzy, back
Stack Overflow doesn't have the Stack Exchange on the end of the site name
 
@Benjol Great! Can you give me some feedback on those 3 sections? Just to make sure I didn't go wrong there :)
@Benjol OK, so the regex-replace cannot take it away (but neither to any harm here).
 
that's 1st bit
 
So you agree to my change here – or did I miss something else here?
 
1
A: AutoReviewComments - Pro-forma comments for SE

CalebI have taken the liberty of doing some organization. I have created a full blown Github repo here. The master branch is the latest from benjol's gist and all commit history is included. The master branch can be installed from this alternate location as a userscript using this url. This should m...

 
@Izzy, I'm not sure. I'm afraid I'm no good at just looking at diffs and seeing if it will work in all cases or not.
@Caleb, thanks for your help. I think that as a minimum I would take my last version and update it to point to github instead of gist.
But I'm not yet comfortable absorbing all of Izzy's modifications until I've had time to look at them properly
@Caleb however I guess I'd have to have that last version in both places (otherwise the people who are still pointing at gist will never discover that there's a new version)
 
2:36 PM
@Benjol Understandable. That's why I was a little hesitating when Caleb started pushing :)
@Benjol You could include some message with the latest Gist variant, which shows up in the header of the "popup".
Something like "Attention: new versions have moved to..."
 
@Izzy, ok, here's what I propose to do short term (i.e., now, if I can get it working): update to 1.4.0, and change the url to point to github
I'll copy-paste that into gist too
that way everyone will be pointing to the right place
From there, people can rebase their forks at least onto that
and we can move ahead from there
But maybe it should just be a V1.3.1, as there's no really important functional changes...
@Caleb, thoughts?
(I'm gone in 20 minutes BTW)
 
@Benjol Thanks! I thought my site-specific stuff was some "important functional change" – but that might be subjective :)
(or not yet included)
 
@Izzy, no, but what I'm proposing is to do this before I integrate your changes
 
(so not yet included) :)
 
to separate the "moving house" commit from the "adding new stuff" one
I much prefer small commits
makes merging easier :)
 
2:43 PM
@Benjol Good idea, yes!
Btw @Caleb and @Benjol I've just checked through the other forks. That one from Oliver is worth a closer look, and maybe should be integrated as well (not sure yet what it does, need to take a second look). The others don't seem to really add anything.
According to Olivers commit-messages, it includes some quick-insert buttons and hover-styling.
 
@Benjol Hence why I did not merge them into master! My branch in an inbetween where we can test what it would look like to merge them.
 
@Caleb Just one thing I don't understand. Who's "in charge" now?
 
@Benjol I will update master to auto-refresh from master for now.
 
does the fact that it's under your username in github mean I can't commit?
 
@Benjol I would like you to be.
 
2:48 PM
@Caleb, so how does that work?
 
It's your baby, I just wanted to push the possibility of merging changes from other branches and that was getting too confusing in gists.
 
@Caleb I guess Benjol was rather referring to "what do I have to do to write to the new repo" – i.e. how does it work technically
 
@Caleb, yes, more that. Is the fact that it's under github.com/alerque a problem, does it need to be transferred to me? or something like that?
 
@Benjol isn't it open source?
 
@Benjol We can transfer the whole thing to your github account.
Then the rest of us can fork off of it and you can be the one to manage pull request and merge them into main.
 
2:51 PM
you are the main repository, "master" so to say, where people find the actual thing
 
ok...
 
@Braiam Open Source means you can get the source and modify it – but not necessarily you can transfer your changes back to the originating place :)
 
I think I need a bit of time to get my head around this (I'm going in 10 minutes). Please bear with me...
 
branchs and forks you can pull them if you find them useful for your code base
 
@Braiam, yes, but that does imply some careful code review
 
2:52 PM
@Benjol I do!!! I'm in the same boat. Never worked with git before, this is my first day with Gist :)
 
@Benjol If that is amenable I will initialize a transfer to you now.
 
@Caleb. Only if you think you've got nothing left to do
I can't guarantee to have everything up and running in the next 7 minutes!
 
@Izzy Not a good way to start. This was a bit of a mess to start with and that's always the ugliest part. You have to fight messes by making a little more along the way.
 
@Caleb, and thank you for doing the uphill pushing
@Caleb, I actually have a personal repo with all the history (comments) in... but you don't want to know that now, I think :)
 
@Caleb Not a... wait: Didn't you push me this way? :)
 
2:59 PM
I'm gone guys. Thanks and I'll try to pick up the ball in the not-too-distant future
 
@Benjol I just made the transfer request. As soon as you accept it and it's safe in your account I will clone and make some tweaks on my branch back in my own fork. Master in the one I transferred is exactly how you left it except the aut-update URL was fixed.
@Izzy Yes, that was before I realized other people had changes and it was likely that some of them could get merged and the whole thing needed more infrastructure. We're on the right track now.
@Benjol I imported all the history from the gist but if you had commits/comments outside of that, it's a little late :) (although not impossible to fix).
 
3:24 PM
ah people learning git :D my favourite SCM
If anyone has any questions that the docs don't immediately make apparent feel free to msg or email me
 
3:50 PM
@NickWilde I might come back to that (to get myself started ;)
@Caleb Right. "I'll do my very best" :)
 
 
6 hours later…
9:49 PM
@Izzy I refactored this post, and you might want to check it since I put some words in your mouth.
5
A: What are our canned comments?

IzzyThe easy way to comment The AutoReviewComments user script provides a handy way to keep a collection of template comments on hand. I (Izzy) modified this script with some features to handle site-specific comment templates. My version is published in this gist (but be warned that it includes my c...

 
> but be warned that it includes my custom comments as the default and will overwrite yours
Not quite true. It does so only via the "reset" link
 
@Izzy Aaa, true. Can you fix?
 
It won't overwrite what's in localStorage.
@Caleb Just looking through for what else might need :)
 
The real issue here is going to be mix and match between data formats. I tried to simplify by pushing for the new format for the new script or the old one for the other. The fact that the new script works with the old format if you use it exclusively is not mentioned.
 
@Caleb Done. Maybe you cross-check again what I broke now? ;)
@Caleb I had that in originally. It's a one-way ticket, though (as it doesn't work the other way without manual corrections), but I thought it might be convenient for one or the other. But yeah, better keep it simple :)
@Caleb good point, yes: Meat is raw :) Did another edit as well ("Tips for sharing").
 
10:06 PM
@Izzy external source is already a feature!?!?!?
That. Changes. Everything.
 
@Caleb Was for quite a while already. If you wanna try that: Make sure to first export your customizations. I didn't try how it works with the modified script.
@Caleb I knew you would like that :)
 
I don't suppose the external url fetch is per site :(
 
Nope. It depends on the source, is my guess.
Old format = all global, new format = global/per site.
It sucks in the entire source AFAIK, and replaces what you have.
My guess is it simply "wgets" the source, and feeds it to the import function. But I didn't check yet.
 
@Izzy The export as JSON also nukes the per site data.
I think the two data formats this is going to need to go to do this right, and just know to use a blank value if the key isn't found.
 
An import always nukes everything first, and then imports.
 
10:12 PM
It would be nice if we could sanely do the import per-site too. Then we can just suck from whoever does the best work on that sight without manually merging all the time.
 
@Caleb Full ack! I just postponed that for now to get started at all.
Yuck! Bug!
function LoadFromRemote(url, done, error) { doesn't ClearStorage("site-");!
Hope I don't forget that until tomorrow (forgot to transfer my Github Pwd to my wallet, so I cannot fix from here)
 
How hard is your password?
(I'm supposing by pwd you meant password)
 
If it's not that hard, we can hack it for you. :P
 
facepalm
 
5 tries from my end. A lot more from yours :)
 
10:17 PM
Oh wow. Must be really good :)
 
Well, I could use the "forget" link. But that above bug will hardly register with anyone.
Though not "cleared", values are still overwritten.
@Seth I hope so. This is not Spaceballs, and I'm neither King Roland nor President Screw :)
 
@Seth Well, this is a recommendations site. :P What tool do you use to hack into people's accounts?
 
lol.
 

  last day (368 days later) »