what if you can abide by the rules but choose not to?
Then we'll create the backup backup backup likes thread!
what if you can abide by the rules but choose not to?
Then we'll create the backup backup backup likes thread!
Must be using the Thermal Receipt Paper™ font. Did you leave your browser in the sun for too long?
@abarker said:Two likes threads …What will this do to Discourse?
<empty
Either "502 Bad Gateway" or "You are not permitted to view the requested resource".
Toast can't be empty.
@djls45 said in Enlightened:
a very high potential for buggy code.
@djls45 said in Enlightened:
This class is even more useless than it first appears.
You have achieved Enlightenment.
I knocked over a nearly full beer bottle. My usual response to that would have been to yell "god dammit!" But tonight I yelled "wharr garbl!"
I'm betting s get disabled for this thread before this post gets 10 likes.
This is Discourse, so the definition of "worked" is fluid.
INB4 someone takes me literally:
Oh no, I was just making sure I had a good handle on how it allworkedfluid.
So a dude finds a bug in grsecurity:
https://twitter.com/marcan42/status/724745886794833920
They respond just like any rational adult would, by insulting and banning him:
https://twitter.com/marcan42/status/724830847128506373
And banning anyone that retweeted him.
I get this crap about once a month:
Boss: Project X is your #1 priority, don't work on anything but Project X.
Me: But yesterday, you told me "Project Y is your #1 priority, don't work on anything but Project Y." Which one should I work on first?
Boss: Both.
Correct, I was being lazy.
This is Discourse, so the definition of "worked" is fluid.
I think 75% of us will say "stole it from the internet."
Yeah, let's call the group unmentionables_
.
@dcoder It took the author several thousand words to get to this:
In general, there is no point in thinking how this code may work. There will be definitely undefined behavior. Terrible.
And now he has attained enlightenment.
zOMG, three philosophers is a strong fucking beer.
Related: I can't feel my face.
The problem is caused by the nginx service not being able to find the host avatars.discourse.org
@NedFodder said:Shouldn't the mod sign be %?
|no|
.
You're taking the absolute value of a negative, which is a positive, so yes!
More from that guy's post:
A 650 line bash script is practically a harbinger of the apocalypse.
Someone should save that post before it gets Jeffimated...
My company is adrift in a sea of 'ery. Here are just a couple of examples:
I was working on a project with an engineer who is on a different sub-network from me. Since he was using ZFSC, the only way I could get the source from him was for him to copy the files to a USB thumb drive.
Things were working (for some definition of "working") for days. Until one day when he delivers files to me, everything builds ok but tests start failing. "Dude, did you run the tests before you walked over here?" I say, guessing that he was lazy and has just wasted my time. "Yeah, I swear it works on my machine!"
Not convinced, I walk over to his desk, and he was telling the truth. All tests pass on his machine but fail on mine.
Almost an hour of debugging later, I compared the files on the thumb drive with the files on his machine. One file, a file that hadn't been modified in months, had one character different: a digit in a constant in a header file changed from a 7 to a 5. So I ask the dude, "Dude, what did you do to this file?", but he swears up and down that he hadn't touched it in months (and the date stamp on the file backed him up).
"Fine, just gimme the files again." He goes to re-copy the files to the thumb drive, but is presented with a "Error copying file or folder" dialog. Before I can even finish reading the dialog, he'd already closed it and restarted the copy. "Dude, what was that?"
"Oh, this thumb drive has been acting up all week. I just keep re-trying until it works."
so it seems baggers only come with cooties. bummer.
Our group's most senior engineer is the smartest guy in the company. Unfortunately, that doesn't mean he can write good code. This is how his application reads its configuration file:
/* Must re-load config since setup could have changed */
config = fopen (filename, "r"); /* Check for config file */
if (config == NULL)
{
printf ("\nConfiguration file not found, exiting...\n");
getchar();
exit (0);
}
fscanf (config, "%s %d %d %d %d %x %x %d %d %d %d %d %s %d %d %d %d %d %d %d %d %x %d %x %x %x %d %d %d",port,&baud,&footype,&ftype,&retrycount,&mask,&rfl,&xyzsize,xyztype,&passcount,&verbo,&portnum,station,&keyenab,&abc_delay,&footype2,&ftype2,&prdydelay,&ppagedelay,&rst_tim,&spdabc,&(unsigned short) lptport,&silence, &abc_read, &resetable, &customid, &obit, &disptype, &hardtype);
port[5] = '\0';
fclose (config);
First, I'd like to point out the variables footype
and ftype
. The 'f' in ftype
stands for 'foo'. No one who has ever dealt with this code knows the difference between footype
and ftype
. Same goes for footype2
and ftype2
.
Since the config file is one long text string of unnamed values, it is too easy to screw up if you try to edit it by hand. So the engineer wrote another program to make it easier to change the values. You can probably guess that there's a massive corresponding fprintf
in there.
His main application actually runs in multiple processes simultaneously (basically he launches his exe multiple times). So you have multiple processes that need this configuration, and a separate process that writes the configuration while the other processes are still running. This has never worked very well: processes running with different configurations, inconsistent configurations, race conditions, etc.
The engineer's "solution" to this problem was to re-read the configuration file every time he needs any value from the file, hence the comment "Must re-load config since setup could have changed". This block of code was copy-pasted almost two dozen times throughout his code. Need to add a new setting to the configuration file? Search-and-replace every instance of the massive fscanf
and hope you don't miss one. At least all of his code is in one file (several thousand lines long).
The one time I got involved in this mess, I suggested to the engineer that he should at least put all of this in a function so he wouldn't have to search-and-replace. He thought that was a good idea, but he didn't really get what I was saying. Now this block of code only appears 7 times.
I remember the I Love You virus. One of our developers received an email with an attachment from a suspicious source and recognized it as a virus. Thinking he was being helpful, he forwarded the email (and attachment) to the whole company saying something like "If you see an email like this, don't open the attachment." Several people didn't read his message, they just saw an email from someone they knew and immediately opened the attachment.
My wife's can of shaving cream has started rusting, which is leaving a rust stain in our shower. Since I'm the one that has to clean it, I started googling around for ways to prevent it. What does one manufacturer have to say?
We recommend storing the can away from excessive water exposure and humidity.
You mean, like a bathroom? Gee, thanks for that advice.
That reminds me of an old Gallagher joke. He bought a can of mildew remover that had a warning "use only in well ventilated areas". Well, if the area was well ventilated, there wouldn't be any mildew in the first place.
Fixed easily enough bymaking Likes Thread #3 at 1000 postspagination
Toast still can't be empty.
Let's get back to breaking the forums!
We'll get Ben to import it.
That's the spirit!
Toast can't be empty.
@Jarry said:NodeBB has toasters? i think we should talk about it with the devs...I don't recall it even trying to tell me how I should use a community once.
The aim of NodeBB is to build a platform to empower community managers with a tool that works with them and their community. We try to be agnostic when it comes to how you choose to run our forum.
It's kinda refreshing, isn't it...
now that i read the tweets again it reads to me more that @sam is complaining to @JakubJirutka that he's doing work to get disccourse working for his use case, complaining that it's crap, and not contributing anything towards making it better.
!!! Sam is the one being paid to write it, and he's complaining that someone else won't contribute to it for free? Fuck me, that's just wrong.
For those about to submit payment, we salute you.
@izzion said in When developers do support:
But it's a little unfortunate for us as a community that so many OSS software projects don't have much pressure or incentive to actually run as a business. I would expect that capitalist pressure would make having a bug marshall / front person who was more civilized than Torvalds an absolute necessity fairly quickly.
But Discourse is run as a business, and yet their bug report front person is Jeff.
Hey! I've found a new likes thread, guys!
Quick, everyone like all the posts here before the thread gets GUID'ed! Which shouldn't be any time soon since the mod's don't do their job...
You don't like having your questions answered with questions?
True story: Last night at the grocery store, the girl at the cash register and the boy bagging the groceries were complaining about having to take two years of Spanish classes at their high school.
Sir, did you have to take Spanish in high school?
Yes, I actually took four years of Spanish in high school.
Wow, how much of it do you remember?
Nada.
@Captain Shouldn't this topic be called "In which Canadia makes cents"?
@abarker said:We really to need to kick things up a notch in here.
*points likebots at the thread*
And so it begins...
@NedFodder said:@obeselymorbid is a juggernaut of meaningless posts.blah blah blah blah blah blah blah blah blah blah
Edit: "Something has gone wrong. Perhaps this topic was closed or deleted while you were looking at it?" Lemme try again.
Edit2: "Something has gone wrong. Perhaps this topic was closed or deleted while you were looking at it?" Discourse, will you please post this now?
Edit3: "Something has gone wrong. Perhaps this topic was closed or deleted while you were looking at it?" Discourse, go home, you're drunk.
Edit4: "503 Bad Gateway" Must've been really bad.
@loopback0 said:@boomzilla @abarker spoilsports!Do our job, get yelled at. Don't do our jobs, get yelled at.
It's a no win situation.
We weren't trying to break the forum, we were just helping @Onyx test his Chrome extension. Honest!
@Onyx said in Let's create DUMB PASSWORD RULES:
- Passwords may not contain lewd words. Parts of your password may be censored if you disregard this rule.
Filed under:
pa**word
Shirley it's pbuttword
.
What will this do to Discourse?
Either "502 Bad Gateway" or "You are not permitted to view the requested resource".
Did we really need to revive both**emphasized text backup like threads?
Wait. Don't answer that.
Status: I got married two months ago. The day we left for our honeymoon just happened to be election day. We just bought a house, and our closing day just happens to be inauguration day. I had this conversation with my wife last night:
Is Trump trying to steal every big moment from our marriage?
Probably. I bet our first kid will be born on Trump's birthday.
When is that?
*checks wiki* June 14.
*counts on fingers* We're never having sex in September, I'm not taking any chances.
SO DO YOU WANT THE BOTS OR NOT?!?! MAKE UP YOUR MlND!!!