The Official Status Thread
-
Status: Doing bulk find/replace of some function calls because somehow the Windows-only safe string handling functions made it into our code which needs to work on Linux as well.
CFLAGS+= -fvisibility=hidden
Oh... I see.... (or not as the case may be.)
Um.
-
sprintf_s becomes sprintf
You might be able to use
snprintf
instead, which is โsafeโ (read: it will silently truncate longer strings but will at least always give back a null-terminated string).
-
mysql_real_sprintf
-
-
I'm writing WTF code:
// Periodically free resources if (Phase % 0x100 == 0) { GC.Collect (); // Need to run this periodically for resources' finalizers to run (later) OwningPtr.DisposeAll (); // This frees resources (in main thread, in predictable workflow) that were finalized (and thus resurrected here) }
[Size=7]As far as I care, all people here should stop whining about others' WTF code and start writing their own WTF code[/size]
EDIT: for the curious (all of you):
class OwningPtr : IDisposable { protected static List<IDisposable> sDisposables = new List<IDisposable> (); public virtual void Dispose () { } // overridden in child classes ~OwningPtr () { lock (sDisposables) { sDisposables.Add (this); } } static internal void DisposeAll () { lock (sDisposables) { foreach (var disp in sDisposables) disp.Dispose (); sDisposables.Clear (); } } }
Beat that.
-
Definitely WTF code.
-
Current status: missing caffeine, trying to remember that old, old design document for a network with resource always being available, never moving, and stored in multiple locations...
-
-
Status: So, my laptop died - the HDD started reporting errors, so I replaced it with one I had handy while stuff was still accessible.
Unfortunately doing this resulted in the fan 'dying' because one of the fins fell off and stopped it spinning. Lenovo Thinkpads refuse to even POST under that circumstance. Removing the errant fin fixed that (while I wait for a new "thermal unit")
My spare HDD is going along fine having reinstalled the OS and recovered what I could from the dying drive.
In the meantime I asked TableTop Support (distinct department from both Sysadmins and Development) for a new 500G disk to replace my dead/dying one.
I didn't get a new one. I got what I can only assume is a second hand one since someone's written 'AS' in caps on the top label.
And today I get this...
```diff Dec 11 09:37:23 thinkpad klogd: sd 6:0:0:0: [sdb] Unhandled sense code Dec 11 09:37:23 thinkpad klogd: sd 6:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_SENSE Dec 11 09:37:23 thinkpad klogd: sd 6:0:0:0: [sdb] Sense Key : Hardware Error [current] Dec 11 09:37:23 thinkpad klogd: sd 6:0:0:0: [sdb] Add. Sense: No additional sense information Dec 11 09:37:23 thinkpad klogd: sd 6:0:0:0: [sdb] CDB: Read(10): 28 00 38 8b cc b7 00 00 08 00 Dec 11 09:37:23 thinkpad klogd: end_request: I/O error, dev sdb, sector 948686007 Dec 11 09:39:24 thinkpad klogd: sd 6:0:0:0: [sdb] Unhandled sense code Dec 11 09:39:24 thinkpad klogd: sd 6:0:0:0: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE Dec 11 09:39:24 thinkpad klogd: sd 6:0:0:0: [sdb] Sense Key : Medium Error [current] Dec 11 09:39:24 thinkpad klogd: sd 6:0:0:0: [sdb] Add. Sense: Peripheral device write fault Dec 11 09:39:24 thinkpad klogd: sd 6:0:0:0: [sdb] CDB: Write(10): 2a 00 1d 05 91 f7 00 00 30 00 Dec 11 09:39:24 thinkpad klogd: end_request: I/O error, dev sdb, sector 486904311 ```
For those unaccustomed to such logs - this is not too dissimilar to what I saw on my first drive when it wasn't feeling too well - only my first drive had SMART and that's how I could tell it was definately on its way out.
The PoS 2nd-hand HDD TableTop Support gave me not only doesn't support SMART, on closer examination it's slower - 5400rpm vs the 7200rpm it was set to replace.
Just as well all I'm using that drive for at the moment is as an external with a local copy of (parts of) our SVN in preparation to do some work.
Which won't be happening, if this isn't just a one off...
-
Which won't be happening, if this isn't just a one off...
knowing what it actually takes to get that error, and what it generally means for the state of the drive when it does happen this is rather likely.
... bummer. any chance of yelling at tabletop support and getting them to give you a proper new, still in original packaging, HDD.
and also a new fan while you're at it as i'm sure that missing blade has increased the noise and vibration caused by the fan a considerable amount.
-
She doesn't look much like Carl.
http://the-walkingdead.com/wp-content/uploads/2014/10/Top-5-Carl-Grimes-Moments.jpg
http://cdn.funnyisms.com/fbf17c28-8326-4897-b4d6-caf1de3dd3da.jpg
-
Niiice.
I like those four-panel Coral jokes, although last time I checked, I thought it was more Shane that called him that, but maybe I was wrong. (Someone put together a video, of course, purporting to contain every time in the first two seasons someone said his name, and I only heard one time I would have considered a Coral instead of Carl, and like I said it didn't sound like Rick to me, but maybe I was wrong.)
-
and also a new fan while you're at it
Already ordered when the current fan decided to follow HDD#1...
-
Fryin' da chicken!
-
Hungry. Very hungry.
-
Chicken is cooked and cooling a bit before the eating can begin.
-
Status: Even hungrier than I was at my last post.
-
Chicken seasoned and cooled. Let the eating begin!
-
Status: Stomach is about to acid-burn a hole through the front of my abdomen and engulf the nearest loose objects like an amoeba.
-
Chicken is cooked and cooling a bit before the eating can begin.
Chicken seasoned and cooled. Let the eating begin!
Damn east coast lunch time. Making it hard to focus here in MST, where lunch is still two hours off.
-
The PoS 2nd-hand HDD TableTop Support gave me not only doesn't support SMART
You learn something new every day, I was not even aware that you could buy a hard drive without SMART.
-
Status: going through shitty ticket system to close old ones I left open due to not wanting to deal with the ticket system. Apparently they do periodically check on backlogs (but not very often as some are 6 months old).
-
Status: going through shitty ticket system to close old ones I left open due to not wanting to deal with the ticket system. Apparently they do periodically check on backlogs (but not very often as some are 6 months old).
Didn't know that you worked at my company
-
And we are switching to using it for managing promotion of changes from QA to Prod (well the approval to do so) rather than the basic forms we fill out now.
-
-
@Intercourse said:
You learn something new every day, I was not even aware that you could buy a hard drive without SMART.
For the curious, and easily amused, I'll post the output of the SMART queries when I remember.
As I tried to indicate... my request for a new'at least 500G' drive was satisfied with a (at least) 2nd-hand drive.
The fact that it isn't SMART, leads me to wonder how long it had lain in whatever drawer it was retrieved from...
It behaved today (compiled 3 branches of target whole system - including OS - without sdb appearing in logs as above) , but still...
-
The fact that it isn't SMART, leads me to wonder how long it had lain in whatever drawer it was retrieved from...
I am going to take a wild guess that it was one of the first 500GB SATA drives to come off the line if it does not have SMART. It has been a long time since I have run across a non-SMART hard drive. I can't even remember the last time...
-
An email tomorrow (B)CC'd to my line manager tomorrow may be in order tomorrow then.
Ostensibly the HDD they supplied was meant to be my main HDD. My (randomly sourced) spare is filling that gap nicely since it took them too long to reply to my emailed request. My 'reply' was one of them turning up to my desk with HDD in hand (a day later) with she (snide) comment "here you go, don't say we're slow in responding"
Having received it, and having no immediate need for where my randomly sourced drive came from, used it for bog standard stuff. Results are... well, I've just posted them.
Same twat is 'responding' to my request for a new 'thermal unit'.
I can hardly contain myself.
-
make sure you remember to get the security footage. both so he doesn't have proof, and so we can laugh. ;-)
-
Same twat is 'responding' to my request for a new 'thermal unit'.
http://www.vintagefans.com/graphics/gallery/restored desk fans/1927c. General Electric/1.jpg
Here ya go, keep your fingers clear, the guard is a little dodgy. Don't say we are slow in responding...
-
status: apparently our outside contractor checked in 20 GB of images/media to this website since the last time i did an svn update....
this is going to take a while.
-
Current status: caught up on threads here (for now)!
-
status: apparently our outside contractor checked in 20 GB of images/media to this website since the last time i did an svn update....
this is going to take a while.
Are they legit? What kind of images are crucial to a project that take up that much space?
-
they're legit. the site really is that big. it's got archives going back like 20 some odd years.
but they shouldn't have been added to SVN.....
-
That's what I meant by legit.
The app that I'm working on right now has many TBs of images, but those are stored on the NAS, and definitely not checked into SVN. Definitely a bad idea to store user images with SVN.
-
Status: Where is this in the Database?
-
Status: I just ordered replacement laptops for a client to replace laptops that are < 3 months old.
~3 months ago they put in a request for picking out "the highest powered laptops they could buy". I suggested some high-end machines and they asked if there was anything more powerful.
"Uhmmmm, yeah, maybe a gaming laptop. Those are going to be heavy though. Too heavy for your purposes."
"We will manage. Spec some out and get them ordered."
"You are not going to like it..."
Fast forward to today, now we are ordering replacements because hauling around ~10lb laptops (with a 90 minute battery life) is not fun. Ahhhhh, the wondrous ways that companies can piss away money.
-
on the plus side you now have goodies to hand out to your dev friends to make them happy. gaming laptops are always fun to have.
-
gaming laptops are always fun to have.
Yeah, until you have to transport them, or run on battery power, or try to use them on your lap without toasting your genitals, etc.
-
@Intercourse said:
Yeah, until you have to transport them, or run on battery power, or try to use them on your lap without toasting your genitals, etc.
Tout them as contraceptive computers. ;)
-
@Intercourse said:
until you have to transport them
granted,
@Intercourse said:
or run on battery power
GAMING
@Intercourse said:
or try to use them on your lap without toasting your genitals
is that really an issue something like a sheet of plywood, or y'know a table, wouldn't solve?
-
is that really an issue something like a sheet of plywood, or y'know a table, wouldn't solve?
Well, as I sit here in my living room chair, with a laptop on my lap, it is not always that easy. The ones we ordered were heavy and very hot running.
Also, they are not sure what they want to do with them yet. I know them pretty well though and I would be willing to wager that they tell me to just take them. They piss money away like a poor person who just won the lottery.
-
@Intercourse said:
I know them pretty well though and I would be willing to wager that they tell me to just take them.
MOBILE LAN PARTIES!
just add generator and LTE2WiFi and you can came on top of mountains!
-
-
Uh, your name is Intercourse.
-
But, it is not IntercourseInASleepingBag.
I picked that name as a dig towards Discourse and did not intend on sticking around this long. Now I really wish I could change it.
-
I'm mostly sure @PJH could help you with that.
-
@Intercourse said:
Now I really wish I could change it.
IIRC you can petition admins to update your username after the deadline for changing it but it causes some wonkiness on quotes of old posts.
EDIT: Hanzo'ed
-
Hmmmm, perhaps. We will see what PJH says.
-
Status:
WHO THE BELGIUM KEEPS CALLING ME?!