KoblentsBlog Photography
Contact About
Published Oct 14, 2014
This is a common mirror - Donnelly 012017 - electrochromic, very nice, used on a variety of cars. For google search results, this is likely found on Buick Regal and Century models from 1997 ('97) to 2004 ('04). Possibly on others - Park Avenue, maybe some Chrysler models, who knows.
So there are two types of mirror mounts - the ones that clip on, and the ones that have a screw. Dismounting the kind with a screw is trivial. Dismounting the kind with a clip is annoying, mostly because of the incredibly vague instructions: "The rearview mirror is removed from the support by prying with a small flat-bladed tool." The shop manual is similarly vague: use a small flat-bladed tool to remove the mirror. Awesome. Useful! No, just kidding, not useful.
So here's what you're looking at. There's an oval-shaped mount attached to the mirror; the mount is clipped onto the rearview mirror support. The support is nice and metal, which is important because of how we need to remove it. At the bottom of the mount, next to the glass, there's a nice opening. Grab yourself a sturdy flat-bladed screwdriver - preferably 4mm, so on the large side of precision screwdriver. Stick it in the opening, all the way until it doesn't go farther, and pry down, and up. You should see the entire mirror move a bit. You're prying against metal, not your windshield. Keep prying until the entire mount pops off. You don't need to pull the mirror, just pry until it pops. It feels a bit like things are going to break, but it's the only way to do it. Once it pops, you're done! There're some more details after the jump, if you care.
 
Published Oct 3, 2014
To follow up on my previous post, here are some more cool things I learned about sizeof and classes in C++. I've been doing a lot of fun stuff with serializing and de-serializing classes with c-style casts to and from byte pointers, because it works fantastically well and very quickly and lends itself well to storage. Of course there are safer ways to do it, but that's the beauty of the things I'm doing - overhead is cut out whenever possible. So, fun learnings. A small overview first, and the rest after the jump.
Let's use well-recognizable types, defined in
<stdint.h>
. (See my previous article about sizes.) Let's assume we're on a 32-bit system and pointers are 32 bits in size.
1234567
class Foo {
	public:
		int8_t		a_byte;
		int16_t		a_short;
		uint32_t	a_uint;
		uintptr_t	a_ptr;
};

What do we get from
sizeof(Foo)
? It's fairly simple, by inspection, to count the bytes: 1 + 2 + 4 + 4 (because we assumed 32-bit system, 32-bit pointers) = 11 B. But now let's check out the more interesting cases after the jump.
 
 
« December 2014 September 2014 »
© Copyright Koblents.com, 2012-2024