That situation clearly never happened:
reverendryan
@reverendryan
Best posts made by reverendryan
-
RE: :wtf: How can this be so wrong??? (AKA the Discopocalypse thread)
-
The If-Switch anti-pattern
I'll just leave this here.
function print100(){ for($i=1; $i<101; $i++){ echo $i; if ($i!=0 && $i %3 == 0 && $i % 5 == 0){ $case = 0; } elseif ($i!=0 && $i % 3 == 0) { $case = 1; } elseif ($i!=0 && $i % 5 == 0){ $case = 2; } else { $case = 3; } switch ($case) { case 0: echo "FizzBuzz"; break; case 1: echo "Fizz"; break; case 2: echo "Buzz"; break; case 3: echo ""; break; } } }
That's not discourse breaking the indentation, that's how he did it.
-
RE: The IT Anecdotes thread
I once changed an AUTOEXEC.BAT file command from PROMPT=$P$G to PROMPT="RUNTIME ERROR IN 230, CALL SYSOP". The professor in charge of the lab wasn't able to run his demo program that day...
Back in the day when computers still sometimes had floppy drives but everyone had long since stopped using them, the administrative staff where I worked was moving in to a new building.
I found an old DOS boot floppy and a copy of Basic and whipped up some fake error screens. Each computer got a slightly different version. Mostly streams of silly text-mode error messages ("ERROR: Water in your disk drive") or fake blue-screens, all of which ended with "Remove the floppy disk from your drive and press ctrl-alt-delete".
The best one I did, after finding all my old DOS stuff including a graphics library, was a screen that looked almost exactly like Mac System 7. It even went through the happy mac loading screen, loaded some extensions and then showed the desktop. If the user tried to click anything, they got a bomb error (thus perfectly replicating System 7 *cough*).
They retaliated a couple months later by turning my office pink.
-
The new guy
My first look at the new guys code turned this up:
switch(true) { case !decision.released:
And then while copying that to paste here, I noticed this pattern in that same
ifcase block:&& !!decision.viewed
I'm still trying to figure out if it's an extra ! or completely superfluous. Today is going to be a long day.
-
RE: How To Demoralize Employees: A DIY Guide for Terrible Companies
@Lorne_Kates said:
I hijacked an unused bookshelf, moved it into my office, and it's piled full of snacks and treats.
That looks like our Communal Bookshelf of Weight Gain, which is mostly full of candy, chips, and other high-calorie low-nutrition items. Also hot sauces, which are very important.
-
RE: AWS issues
@Yamikuronue Something is still different, though, or the credit balance would be bouncing back with the restart loop fixed and the bot banned.
According to Ben's graph, between 10:00 and 12:00 UTC we were using credits at a rate of about 28/hour, or a net loss of 4 credits per hour (we earn 24/hour), while in the 8-hour overnight period we gained credits at a rate of about 1.5/hour. If I've mathed correctly that's a net spend of about 50 credits per day. We can accumulate up to 576 credits. At this burn rate we run out of credits in only 12 days if we start with a full bank which is why I think something is still changed/wrong.
There's an actual CPU Credit Usage graph that @ben_lubar could pull with two weeks of history.
-
RE: Driving Anti-Patterns - Necro Edition
This afternoon on my way back from lunch, I was headed east on a 2-lane highway. There was absolutely no oncoming traffic, and no one behind me for at least 1000'. I was at the end of 4 or 5 cars.
A guy in a van waiting at a stop sign decided to cut me off, turning left into my lane just in front of me. He accelerated so hard that his trunk door flew open causing him to abort his turn and stop on the shoulder just in front of me.
Thanks, guy. You couldn't have waited another 5 seconds for me to pass?
-
RE: Mandatory Fun Day
Two separate but equal forums encourages dupes
All forums are equal, but some forums are more equal than others.
Filed under: Forum Farm
Latest posts made by reverendryan
-
RE: The Official Status Thread
status: the entire customer care office is shut down because someone saw an insect on the ceiling. It turned out to be one of these:
@reverendryan,
software developerexterminator -
RE: AWS issues
@ben_lubar That's... more subtle than I was expecting; we're mostly under the 24-credit mark on the left (if only just), and mostly at/over on the right. Not the smoking gun I was hoping for, though, in terms of pining down a specific event.
@e4tmyl33t said in AWS issues:
I don't think that's how it works. You only earn credits if you're idle, not if it's under any sort of load. While you're burning credits, you don't earn any. At least that's how I read it.
It does; our credits accumulate regardless of usage, they are just spent immediately if we're using the CPU above the threshold.
AWS said in [http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/t2-instances.html#t2-instances-cpu-credits]
Each T2 instance starts with a healthy initial CPU credit balance and then continuously (at a millisecond-level resolution) receives a set rate of CPU credits per hour, depending on instance size. The accounting process for whether credits are accumulated or spent also happens at a millisecond-level resolution, so you don't have to worry about overspending CPU credits; a short burst of CPU takes a small fraction of a CPU credit.
When a T2 instance uses fewer CPU resources than its base performance level allows (such as when it is idle), the unused CPU credits (or the difference between what was earned and what was spent) are stored in the credit balance for up to 24 hours, building CPU credits for bursting.So, maybe we should talk short- and long- term fixes. @apapadimoulis, would you approve upgrading the instance class to t2.large to accommodate our current credit usage, until the forum can be moved out of AWS in December? If you wanted to crowd-fund the difference, I'm sure enough people (myself and @accalia at least) would donate.
-
RE: AWS issues
@Yamikuronue Something is still different, though, or the credit balance would be bouncing back with the restart loop fixed and the bot banned.
According to Ben's graph, between 10:00 and 12:00 UTC we were using credits at a rate of about 28/hour, or a net loss of 4 credits per hour (we earn 24/hour), while in the 8-hour overnight period we gained credits at a rate of about 1.5/hour. If I've mathed correctly that's a net spend of about 50 credits per day. We can accumulate up to 576 credits. At this burn rate we run out of credits in only 12 days if we start with a full bank which is why I think something is still changed/wrong.
There's an actual CPU Credit Usage graph that @ben_lubar could pull with two weeks of history.
-
RE: AWS issues
@ben_lubar Do the logs go sufficiently far back to determine what else has changed? If the bot were the sole cause of the high CPU usage, things should have returned to normal by now. They're definitely better than a couple days ago, but still not great.
What does the two-week credit usage look like? If there is a day where it suddenly changes, can it be reconciled with the access logs to find the cause?
-
RE: AWS issues
@ben_lubar We'd need to move off the burstable t2 class and on to the m3 or m4 class. Or at least move to a t2.large which gets 36 credits/hour instead of 24.
@accalia said in AWS issues:
if it's money that's the problem i'm sure we could stump up a collection among the regulars to pitch in the 20$ or so that would be needed to refresh our CPU credits and get us back on our feet.
I almost started a GoFundMe yesterday, but I have no way of getting the money to @apapadimoulis
-
RE: Discussion of NodeBB Updates
@ben_lubar can we afford to upgrade to a t2.large or even an m4.large?
-
RE: The Official Status Thread
@Tsaukpaetra We had trouble with our local Server Essentials DC a few months ago, and I did exactly that- a VPC in Amazon with a domain controller and a VPN link to/from the office. It's worked fabulously so far.
-
RE: The Official Status Thread
@Weng Works on my wife, as long as it's something like this http://www.redrobin.com/menu/full-menu-rrtrh2/bar-menu/boozy-shakes.html
-
RE: World of VNC
@Polygeekery said in World of VNC:
What the fuck?
Is it reskinned Windows, or some cheap Chinglish knockoff?The clock looks a lot like IceWM, which has a few XP themes.