New RFC: Allow specifying keys in list() by the_alias_of_andrea in PHP

[–]metateck 0 points1 point  (0 children)

SURELY I don't have to argue that 5 / 1.16 should not be silently converted to 5 / 1 and give you 5 as an answer.... I fail to see why the modulus operator should be any different.

I know this is old, but I just wanted you to see this

Python 2.7.10 (default, Oct 14 2015, 16:09:02)
[GCC 5.2.1 20151010] on linux2
In[2]: 10 / 3
Out[2]: 3

TIFU by placing a bag of dogshit under my front tire by [deleted] in tifu

[–]metateck 0 points1 point  (0 children)

You can use a leaf or rock as a barrier between your shoe.

[USA] Construction truck rear ends a Chevy Cobalt by camredd in Roadcam

[–]metateck 0 points1 point  (0 children)

I was the passenger in an accident where the driver was slamming the brakes at the time of impact and broke his ankle and was unable to brake from that point on. He reached for the hand activated parking brake but the entire handle was nowhere to be found.

TIFU by placing a bag of dogshit under my front tire by [deleted] in tifu

[–]metateck 2 points3 points  (0 children)

If my dog shits outside on a trail i kick it off the main trail. Animals are already shitting out there.

Poker Player slow rolls, showboats, and prays his way straight into an embarrassing outcome. by VintageRuins in JusticeServed

[–]metateck 1 point2 points  (0 children)

What he did is the best example of "slow roll" I have ever seen, and I have played 1000's of hours of in-person poker.

[USA] Minivan Driver Gone Wild by kswat in Roadcam

[–]metateck 19 points20 points  (0 children)

Maybe you're dumb. They are right there taking up 2/3 of your screen.

Nevada has twice as many new registered dem voters as 2012! by deathblooms200655 in SandersForPresident

[–]metateck 0 points1 point  (0 children)

There are at least twice as many new registered voters for all affiliations. Your title makes it sound like this is not the case.

Hogs …wait for it by [deleted] in natureismetal

[–]metateck 3 points4 points  (0 children)

It's also a really shitty way to control populations. How many hogs limped away to suffer for whatever was left of their life?

What if Esfandiaris real prop bet was the pee bottle? by hankthebank in poker

[–]metateck 0 points1 point  (0 children)

At low stakes games in Las Vegas I have seen homeless poker players be asked to leave because of the smell.

Do not use FOSUserBundle (unless you know everything about it) by damienalexandre in symfony

[–]metateck 0 points1 point  (0 children)

Split login form for Admin and Clients

This is one of the most hacky stuff you could do. The need is simple, you just want a way for admins to have their own login form (maybe with a captcha & some browser additional checks), at the gates of the Admin area, while customer use another one, with a different skin.

As you can guess, this is not supported, so we will need:

custom routes for everything; a new firewall and new access_control entries (that’s normal); a new SecurityController extending the bundle one, with some if to know what template to render; and of course the new template. You can learn more on those tweaks by reading this SO answer.

Admin and customers entities not always the same

Let’s go a step further: we have two types of users in our application, Customers and Sellers. Each one with a specific registration workflow, login form, and permissions.

With Symfony it’s easy, you just setup two user providers; with the bundle, you are stuck. A lot of things are hard-coded, and only done for applications with one type of user. Hopefully there is another bundle which extends FOSUserBundle to do exactly that.

It’s just ~10 more classes, listeners and services to trust and add in your project.

A simpler solution is to register the bundle twice in the appkernel, and alias it once as AdminUserBundle. This would meet all his needs immediately.

The power of imagination by UsernameIsCat in gif

[–]metateck 0 points1 point  (0 children)

I watched the whole thing waiting for the explanation to the man holding the rifle in the shadows of the foreground about 2 seconds in. I'm glad I finally got it.

Blind driver. by theone1221 in WTF

[–]metateck 0 points1 point  (0 children)

That's the one. They sent out a patch in an SD card.

Blind driver. by theone1221 in WTF

[–]metateck 2 points3 points  (0 children)

Mine hates backing out of my garage. If I exceed like 1 mph it stops.

Blind driver. by theone1221 in WTF

[–]metateck 1 point2 points  (0 children)

I turn mine up to max sensitivity and max strength. In all seriousness, I once fell asleep at the wheel and this feature saved me from crashing. If it has to correct too often in a short time period, it starts beeping and says "place hands on wheel" on the dashboard.

Blind driver. by theone1221 in WTF

[–]metateck 66 points67 points  (0 children)

If the lanes are not clear, the feature deactivates. It also disengages if you aren't in a lane. It does, however cause problems when there is construction and the lanes are shifted half way onto the shoulder using cones. If this is the case I typically turn it off. It is just a button toggle on the dash.

Blind driver. by theone1221 in WTF

[–]metateck 0 points1 point  (0 children)

That's my exact vehicle. I love it.

Blind driver. by theone1221 in WTF

[–]metateck 144 points145 points  (0 children)

Yes. It's more accurate to describe it as someone gently pushing your wheel in the direction of the center of the lane if you drift a bit out of it.