The Official Status Thread
-
Pick one based on the GEOIP of the visitor, and set the title attribute to GMT?
I have some JSON data with timestamps in this format (always +00:00 for the timezone).
{ // some other fields "created": "2015-10-11T05:03:22+00:00", // the time when the listing was created "purchased": "2015-10-19T03:31:49+00:00" // the time when the listing was completed }
Now, seeing "you sold 3 glazed pumpkin pies at 2015-10-18T02:02:21+00:00" is a lot less useful than seeing "you sold 3 glazed pumpkin pies 25 hours ago" and then being able to hover over it if you really need second precision.
But if I'm doing that kind of thing, I need to update the timestamps. And there are currently 10556 timestamps on the page, and the number will only increase. So I ask again, what format should I use for the dates and how often should I update them?
I'm 18m tall
-
10556 timestamps on the page
I was wondering why the page was taking forever to load. Ever thought of some kind of infinite-scro---- oh wait.
Actually, that might possibly help, since in theory you wouldn't need to load up (and therefore update) all of those elements.
If not, then I would say update according to tier. For example, during the time that timestamps have a resolution of minutes, update them every minute. Once they fall into the hours range, every (half) hour, and so on and so forth.
To make element selection easier you could tag them somehow (class, or whatever), that way you don't end up selecting all of them at once.
Filed under: Nano-Discourse, here we come!
-
Ever thought of some kind of infinite-scro---- oh wait.
At least this way, I can link directly to my sale of some pies and it won't magically change you to the URL of fifteen posts away.
-
magically
Well, that only happens when you're updating the URL while scrolling. Real sites leave the URL alone codtramit!
-
Plus, there's no server-side component of my trading post thing. It's all contained in that one HTML file and the GW2 API. Hiding the table rows until you scroll near them would just make scrolling harder to get right. Each entry is 4 integers and 2 timestamps, so it's not too much of a problem to have thousands of them in memory at once.
-
Have you ever done anything useful with computer code?
-
Maybe? Probably not.
-
LINUX
-
I rode in it once in the passenger seat. Don't remember it being that cramped.
Then again, I wasn't impressed anyway. And given that the (knockoffs of) the original Fiat 500 were very popular around here, that nostalgia angle should have worked on me I guess. NOPE. Also, way too damned expensive for what it is, at least it was at the time, maybe it's more reasonable now.
-
and knee-in-seat in the back seats.
The back seats in those aren't really designed for adults. You'd only really buy one if you didn't need to have adults in the back.
I'm about 1.8m and the photo looks like I'd fit with the seat right back, although I'd just plain not because they're stupid cars for other reasons IMO.Does that pink one have straw for carpets?!
-
Does that pink one have straw for carpets?!
As long as it got the eyelashes, you gotta have those!
-
Anyone with eyelashes on their car should have their car crushed. With them inside.
:car:
-
-
Status: Had some time left this weekend so I made myself a footrest (see earlier desk/footrest discussion upthread):
With a subtle touch of my foot, I can now fling pebbles at my students.
/Mikael
-
Had some time left this weekend so I made myself a footrest
Well, that kinda seems like a waste of ti...
With a subtle touch of my foot, I can now fling pebbles at my students.
Carry on!
-
It's the thing to do if you have a twingo ...
-
exception handling is misnomer to be honest.
THERE WAS AN EXCEPTION! WHAT SHALL WE DO? TRY AGAIN!
My personal favorite was code that would wait 3 seconds and then try writing to the file again before throwing an IllegalArgurmentException. That was rather special.
With a subtle touch of my foot, I can now fling pebbles at my students.
You're a failure as a teacher. Throw heavier things at them. That'll teach them some valuable life lessons.
-
Status: Sitting next to a crock pot of Mac & Cheese for the potluck lunch. and the smell is making me drool.... constantly!
I'm not sure that will last till lunch intact....
Be strong @accalia! resist the temptation!
-
the smell is making me drool.
Better out than in I say. I was swallowing my drool one day when my manager came up behind me and scared me. I also choked on my own drool.
-
I was swallowing my drool
my manager came up behind me and scared me
One advice: stop watching p0rn at work. They are on to you!
-
-
@accalia said:
the smell is making me drool
*hands @accalia a napkin*/me takes it gratefully
Thanks.... mine was about full.
-
-
@accalia said:
[my napkin] was about full.
.... I'm not even going to ask how you got quagmire out of that quote....
nope. not going to ask.
-
.... I'm not even going to ask how you got quagmire out of that quote....
Some guys get a quagmire for many a strange reason...
-
-
-
LINUX
It wouldn't boot. Guy does some things, now it boots.
Not quite sure why you posted this, or even why he wrote the original article.
-
Status: wondering what I should do for timestamp formatting on https://benlubar.github.io/useless-crap/gw2tp.html
Just go Full Discourse, and have every date/time display as "More than 1 ms ago".
And since you don't want to display incorrect information, add a delay to every pageload. At least 1 second will guarantee it'll take more than 1 ms to post any new information.
Also, wtf is up with the GUID in your URL?
?42DDC860-47B5-F545-B670-4A9C86EC80A6C7D41F76-005E-4E73-B767-DEF50625509C
-
It's like a double-GUID with no divider.
-
It wouldn't boot.
Because the EXTREMELY QUALITY LINUX-BASED OS broke itself in a way I've never seen any OS break itself since Mac OS 7.0.0. (Which would permanently corrupt itself if you uninstalled a font. No, seriously. It totally deserved its reputation.)
Guy does some things, now it boots.
He does gibberish things, which results in it booting, but he doesn't know what he did or why it worked.
Seemed like a pretty good summary of the Linux situation.
-
If you stick your head any farther up your ass, you will turn yourself inside out.
-
Jokes on you. Blakey's already inside out.
-
I don't understand what specifically you're objecting to.
-
@Lorne_Kates said:
Also, wtf is up with the GUID in your URL?
It's an API key from https://account.arena.net/applications
I assumed most people here don't have a Guild Wars 2 account, so that's my key.
-
I don't understand what specifically you're objecting to.
Well, let's go over it.
Because the EXTREMELY QUALITY LINUX-BASED OS broke itself in a way I've never seen any OS break itself since Mac OS 7.0.0.
Really? Let's go to the article.
After reboot, suddenly my laptop cannot boot :-(
That is literally all the information that we have. He rebooted, it wouldn't boot. Did he fuck around with his bootloader before rebooting? Did he upgrade the OS? Did he edit something in sbin/init?
We don't know. So, for you to come up with it:
broke itself in a way I've never seen any OS break itself since Mac OS 7.0.0.
Would require quite a leap in logic and a hell of a lot of assumptions on your part.
And, if you think that this is something that only Linux can do, and is something only rivaled by an OS from 1991, did you ever run Windows ME? Windows 95? Server 2008? Because they were all rubbish and all came after that OS.
He does gibberish things, which results in it booting, but he doesn't know what he did or why it worked.
Seemed like a pretty good summary of the Linux situation.
It happens to everyone who spends time in IT. In the process of trying to ascertain why something shit itself, it will occasionally un-shit itself and you really have NFC why. It happens. And those machines usually end up spending the rest of their days without issue. But you cringe every time you reboot the fucking thing, because you don't know what was wrong or what fixed it and you feel like it is dangling on the edge and ready to go at any moment, but it just keeps working.
If you have never had that happen, it is only because you have never been a Sysadmin.
Seemed like a pretty good summary of the
Linux situationsoftware world.FTFTWDHAIHOL
-
You are clearly not the target audience here. Shut the fuk up, your video is terrible and you are annoying.
silently wipes a tear from his eye
First ever review? Congrats!
-
STATUS:
There are only two hard things in Computer Science: cache invalidation and naming things.
-- Phil Karlton
Fuck "off by one errors" bullshit.
These two are kicking my ass enough as it is.
-
Status: went to look at Coding Confession today and found a bunch of posts in Russian, including the following:
which basically translates into "I like it that there are people who speak Russian here!"
:coolstorybro.mp3:
-
Yeah, I don't understand this trend of kids => minivan.
FFS people. Just get an actual van. We love ours. Tons of room for people. Tons of room for stuff. I can put full sheets of plywood / drywall in there no problem.
-
Not quite sure why you posted this, or even why he wrote the original article.
He wasn't the target audience for that post. /annoying
-
FFS people. Just get an actual van. We love ours. Tons of room for people. Tons of room for stuff. I can put full sheets of plywood / drywall in there no problem.
I have a pickup for those purposes. No need to move seats around or remove them. Just start it up and go get what I need.
-
Status: This morning I got an email from a client that was all pissy with me because they cut a check to pay one of my invoices for ~3 times the amount that it should have been.
Let me reiterate: They are pissy, with me, because they wrote a check for ~3x the amount it should have been.
I literally had not opened that check yet. I had no idea of the mistake that had been made...by them. I did not deposit it.
Goddamn people. Hell, I should be the one that is pissy. Now I have to wait until Thursday at the earliest to get a replacement check.
-
@boomzilla said:
FFS people. Just get an actual van. We love ours. Tons of room for people. Tons of room for stuff. I can put full sheets of plywood / drywall in there no problem.
I have a pickup for those purposes. No need to move seats around or remove them. Just start it up and go get what I need.
Depending on what I need to do, I don't need to pull seats out. Those sheets will sit right on top of there. And I can just leave them in there for a bit if I want without worrying about them being out in the weather.
Plus, seats work better than a truck bed for passengers. Actually, a few weeks ago, I saw a couple of guys riding in the back of a pickup and it struck me how uncommon that is any more. You used to see it all the time.
-
Depending on what I need to do, I don't need to pull seats out. Those sheets will sit right on top of there. And I can just leave them in there for a bit if I want without worrying about them being out in the weather.
But, they do tend to beat up the interior. You have to be really careful to not scuff things up.
Plus, seats work better than a truck bed for passengers.
Meh, it is an extended cab. So if I needed to take passengers I could. I really only drive it to pick up stuff though. If I need to take passengers, I take my SUV. We have 4 vehicles and two drivers, so the pickup is just a luxury. We keep it around just for hauling things, and because as a 2000 model we would get shit for trade-in so it is more valuable for us to keep around for random hauling tasks.
-
I bet you can transport a shitload of lawn fertilizer!
-
STATUS:
There are only two hard things in Computer Science: cache invalidation and naming things.
-- Phil Karlton
Fuck "off by one errors" bullshit.
These two are kicking my ass enough as it is.
I meant there are THREE hard things... cache invalidation, naming things, "off by one errors". Fuck. Fuck!
-
Fuck "off by one errors" bullshit.
An off by one error, with suffient time allocated to debugging, will at one stage, however briefly, become an off by two error.
-
@cartman82 said:
Fuck "off by one errors" bullshit.
An off by one error, with suffient time allocated to debugging, will at one stage, however briefly, become an off by two error.given sufficient time and lack of sleep the off-by-one error will become, however briefly an off-by-zero error, and still it will be incorrect.
-
And then people start adding shims to work around it, so when you fix the bug, you get thousands of people screaming at you for 'breaking' their software, so you have to re-break your own software, but only in special circumstances.
Or, to put it another way, be Microsoft fixing Windows.