In general, traffic isn't paying attention. They will swerve blindly into the bike lane to get around other cars to take a right and I can't depend on them to be watching out for me.
Once I stop moving I remove the option of swerving out of the way. After my first month of biking here and almost getting hit several times, I just gave up and I ride as aggressively as everyone here drives. I hate it. Biking in New York, Portland or anywhere else I've lived is just a different game. Philly is the most stressful place I've biked.
Not saying that's safe... But it is legally accepted
I pay at least as much attention when I am the lone cyclist at a red light (particularly at night) as when I am actively moving and riding in traffic, and have had a number of vehicles come to a stop a bit close or a bit too quickly for comfort. This is in an area with _a_lot_ of cyclists.
I will also concede that motorcyclists are generally much better on the road than "analog" bikes, at least when they aren't in a group and their loud-ass bikes aren't waking me up at 1 AM.
My tail lights on my bike are rather bright and flashy. It's still happened before. There isn't really "a" solution. It's better awareness, better visibility, everyone being more proactive, etc.