Komejo.com

Essays and short stories by Joe K~

Skip to: Content | Sidebar | Footer

Adding User Styles

12 April, 2012 (18:01) | Uncategorized | By: Komejo

Now Google+ is getting into the act! The new look is weirdly off-balance, so here is some hiding/correcting code:

/* Recommendations */
/* Recommendations */
.Qea { display: none !important; }
/* Chat/hangout */
.kba { display: none !important; }
/* Content Width */
#contentPane { width: 800px !important; }
#contentPane .Gb { width: 775px !important; }

To expand on my last post, here’s how you add a user style:
Chrome
Firefox
Safari (create a file called UserStyles.css and add the code first)
Internet Explorer

Fixing the new Gmail

3 April, 2012 (19:50) | CSS, Web Dev | By: Komejo

I hate the new Gmail look. This fixes a few of the most awful things:

.H7.nH { max-width: 85% !important; }
.nH.hx { border-bottom: 5px solid #CCC !important; }
.G3.G2 { border-top: 5px solid #CCC !important;
border-bottom: 0px solid #CCC !important;
border-left: 5px solid #CCC !important;
border-right: 5px solid #CCC !important;
max-width: 100% !important;
padding: 0px 15px !important;
margin-right: 0px !important;
}
.cf.TB { height: 400px !important; }
td.TC .e { display: none !important; }

Place it in your userContent.css file in Firefox, or like so in Chrome.

Opacity in decimal, then Hex

11 February, 2012 (17:00) | CSS, Reference, Web Dev | By: Komejo

If you’ve ever set CSS background colors to semi-transparent, you’ve had to make the cross-browser compatible. Here’s the basic code:

  background: rgba(0, 0, 0, 0.8);
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#cc0E212A, endColorstr=#cc0E212A);
  -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#cc0E212A, endColorstr=#cc0E212A)";

The first line is for all the modern browsers, the next three for MSIE varients (IE7, IE8, etc). Important to note – don’t have a solid color declaration or it will override the filters in IE.

Also, and most annoying, the IE opacity is in HEX, not decimal. (That’s the first two digits of the #cc0E212A string). It’s oddly difficult to find cheat sheets, so here’s one:

10% = 19
20% = 33
30% = 4c
40% = 66
50% = 80
60% = 99
70% = b2
80% = cc
90% = e6

Mostly, this is for my own reference.

Why I Went to Urgent Care on Annual Review Day

1 July, 2011 (00:51) | Essays, From the Author | By: Komejo

Inmage: Stanley FatMax!

It's a Really Good Knife

It really looked to be a fun day. I had two major things on my agenda – pack up my former boss’ office computer (she has moved to Canada to work remotely), and go to lunch with my current boss for my annual review.

My former boss is the office Art Director, and has a dual-monitor Mac Pro. I was to break it down and pack it up to arrive in Toronto in a week or so.  I had ordered her Mac Pro and wisely kept the original box. No problem there. However, the monitors were older and had no boxes. I had similar monitor boxes though, and could easily modify them for my purpose. After all, I am a handy man with a tool!

Read more »

English Ben & Detective Dave (Ch. 11 – Found!)

13 December, 2010 (12:00) | English Ben, Novella | By: Komejo

IT WAS Judy Mallord.

“Well.” She said, “This kinda sucks.”

Dave looked at her for a moment. “Are you… Are you English Ben’s girlfriend? You go by the name of Charon?”

Judy rolled her eyes. “Yes on both counts.”

“Are you here alone?” Dave asked.

Judy stared hard at Dave without speaking. She was clearly making some kind of decision. Suddenly, she looked away and dropped her shoulders. “Aw hell. No. C’mon in.” She turned away and walked inside.

Read more »

English Ben & Detective Dave (Ch. 10 – Back To The Bar)

6 December, 2010 (12:00) | English Ben, Novella | By: Komejo

AS THEY WALKED BACK INTO the Gin-Soaked-Girl, Buttercup was surprised to find that the music was even louder, and that the place seemed to have suddenly become very crowded. Dave walked ahead of her and pushed back to the bar. Luckily, nobody had taken their seats. They did not have to wait very long before a different bartender walked up to them wearing a nametag of “Chad”.

Dave ordered two club sodas with a twist this time, and asked about Ben directly.

Oh yeah, said Chad. “He was a mess. I had to cut him off actually. He was in sad shape.”

“Did you see him leave?” asked Dave.

Read more »

English Ben & Detective Dave (Ch. 9 – Murder?)

29 November, 2010 (12:00) | English Ben, Novella | By: Komejo

BUTTERCUP BLINKED. “What? But he was beat up and…”

“Nope, Banhi says that all happened after he was dead. Something about white blood cells, I didn’t quite catch it. No, he died from a heart attack.”

Buttercup stood quietly for a moment. “What now?”

“Well,” said Dave, “if there’s no murder, then there’s no crime. That means Ben’s innocent, so we don’t have to look for him anymore.”

“Oh.” said Buttercup.

“Well.” said Dave, “Let’s go.”

Read more »

English Ben & Detective Dave (Ch. 8 – The Gin-Soaked Girl)

22 November, 2010 (12:00) | English Ben, Novella | By: Komejo

Bourbon, neat.

SINCE IT WAS STILL FAIRLY EARLY in the evening, Dave dropped Buttercup off at her house so that she could eat dinner and do a little work. He said he would be back after dark, since the bar didn’t open until nine.

“Nine? Nine at night?” said Buttercup. “I usually get to bed by nine. I guess I’ll have to take a nap. Goodness.”

“Yeah, that’s a good idea.” said Dave. “You might want to change, too. I mean, no offense, but that’s not really bar clothes.”

Buttercup looked down at her tan slacks and comfortable blue pullover. “Really? This is just like all the other clothes I have.”

“No kidding? Well, do you have anything darker? Like, black? It’s a Goth bar. You’re pale enough, but you should wear black at least.”

Read more »

English Ben & Detective Dave (Ch. 7 – The Scene Of The Crime)

15 November, 2010 (12:00) | English Ben, Essays | By: Komejo

DAVE CONTINUED TO CAREEN ACROSS TOWN as Buttercup’s head swam. What a day it had been!

“Hey,” said Dave “You thirsty? I need a little coffee or I’ll get the shakes. There’s a place up here on the right that has a drive-through. You want something?”

Buttercup nodded, “Yes please, a coffee would be very nice.”

Dave pulled in and ordered two large coffees. “You want anything in that? Sugar? Cream?”

“No thank you.” said Buttercup. “Black coffee, straight bourbon, and a clear conscience!” She then thumped her fist against her palm in a righteous gesture.

Dave was taken aback; “You drink bourbon?”

Read more »

English Ben & Detective Dave (Ch. 6 – Post-Mortem)

8 November, 2010 (12:00) | English Ben, Novella | By: Komejo

AS THEY DROVE AWAY from the morgue, Dave turned to Buttercup. “I’m sorry about hushing you up like that, but Banhi is a notorious gossip. She’d spread word about the case all over the force.” He then turned back to the road. “I’m… I’m a little worried about your safety. You can put Ben and Harold in the same place the night before the murder, and if Ben knows, he might try something.”

Buttercup thought about this for a moment before she realized she had no idea what Dave had meant. “Like… what?” her voice trailed off.

Dave’s face looked hard. “Here’s the thing; if he killed Harold, and you’re the only witness, it makes sense that he’d want to make sure you didn’t talk.”

Read more »