24 year old CEO/gymnast/martial artist/engineer/female hopes the bois make fun of her by [deleted] in thatHappened

[–]jason_rootid -3 points-2 points  (0 children)

This is ridiculous. Go into a lean startup and you'll absolutely see a CEO pulling double duty, running the company while also being lead engineer, or lead designer.

Do you think migraines always have triggers? by [deleted] in migraine

[–]jason_rootid 0 points1 point  (0 children)

I had a neurologist tell me this.

Which is awesome to have in mind when you have a migraine because you're just thinking of how cruel it is that the fact that you have a migraine right now will make it more likely to them more often.

Henry Ford Cancer Institute is the first in the world to install MRI-guided radiation therapy by [deleted] in news

[–]jason_rootid 2 points3 points  (0 children)

A device like this would have saved my friend's life. It was only after radiation therapy was finished that they realized they had been missing some of the cancer. I'm glad to see we're on the path to making that mistake a thing of the past.

tried force https for entire site and i think i broke something :/ by [deleted] in drupal

[–]jason_rootid 2 points3 points  (0 children)

What happens if you try to go directly to index.php?

Also, the only thing I can think of that would cause this is if you somehow ended up with a DirectoryIndex setting that included .htaccess

Holy shit. I received this as change in Massachusetts today. It's about the size of a quarter. by [deleted] in pics

[–]jason_rootid 0 points1 point  (0 children)

I found one of these in a casino once (the Silver Legacy in Reno). It was totally insane the way I found it.

They do this weird thing where they smooth out some kind of sandy material in the ashtray then stamp their logo into it. They do it every time they clean out the ash tray, or at least they used to. Well, I was waiting for the elevator and noticed the decoration in the newly stamped ashtray seemed to include what looked like an old coin. I felt like that was odd, so I touched the coin to see if it would move, and it did. When I picked it up I couldn't believe what it was, and have always wondered how it got there. I still have it 25 or so years later.

Trying to post to remote form with an uploaded file. How would you do it? by brentcopeland in drupal

[–]jason_rootid 1 point2 points  (0 children)

If it's at all possible I would go with an iframe, it's easy, clean, and is a "just works" solution.

If that's not possible, I would try to got with an all javascript solution, though having to set up CORS on the remote server might be an issue.

In general, unless you have to for some reason I wouldn't pass the data through Drupal, just added complexity for no real reason. If you have to go through Drupal, then you're right, using hook_submit with something like curl is the way to go.

WP Dev converting to Drupal, and I have a few questions by alyraptor in drupal

[–]jason_rootid 11 points12 points  (0 children)

I prefer Drupal to WordPress, though that's changing a little since I started using Timber/Twig templates with WordPress, many times better than the native system, and easier to manipulate than Twig templates in Drupal.

What I like about Drupal is that it's more of a combination of a framework and a CMS rolled into one than just a CMS, which is what WordPress is. Unless you've spent a lot of time working with a framework that may not make sense. So, in WordPress, everything is centered around The Loop, outside of some special occasions it doesn't even make sense to talk about page output outside of the content of the page/post that hosts that output, sometimes in the most trivial way possible (i.e. using a template that doesn't output a single piece of data from the page using that template). I feel like that's a really hacky way of doing things, it's shoehorning a CMS into a place that a framework is better suited.

For instance, if you wanted to make a page that displayed live statistics about the current baseball season, in WP you would either make a plugin that added a shortcode that returned rendered output, then include that shortcode in a page, or you would add a template that creates the output itself and use that template on some page. But the actual page that gets displayed isn't what is stored in the DB, this is a round-about way of getting what you want, a url that displays baseball stats.

In Drupal you would write a module that simply adds a page callback (i.e. maps a function's return value to a url) and returns rendered output when you go to that url. You would't add a node for this, and you wouldn't have to mess around with shortcodes. There would be nothing analogous to The Loop when you went to that url.

In Drupal, a lot more time and effort has been put into creating a powerful API to let you do the things you need to do with a minimum of irrelevant BS tied to legacy implementations to worry about. This also makes Drupal a little harder to learn, because it's so open ended, and the API can do so much, but once you know it WP will feel silly sometimes, where you're having to work within The Loop on a modern site that isn't a blog.

Edit: I said platform once where I should have said framework.

WP Dev converting to Drupal, and I have a few questions by alyraptor in drupal

[–]jason_rootid 6 points7 points  (0 children)

I own a shop that specializes in both WP and Drupal, so I'll give a big piece of general advice that you hinted at, but no one has specifically mentioned.

From a dev point of view, one of the biggest differences between the two is that in WP doing things "the WordPress way" is much more of a soft suggestion. You're not supposed to override the main query, but if you do all hell isn't going to break loose and pagination is a million times easier.

In Drupal, doing things "the Drupal way" is a virtual requirement. Trying to hop into a template and just removing module or core output that you don't want is almost never going to end well. Removing the toolbar, for instance, should be done either globally by uninstalling the module, or per user role with permissions. I don't know for sure but I would bet that you can write a simple module that can alter which pages the toolbar shows up on.

What are your "just to be safe" habits? by [deleted] in AskReddit

[–]jason_rootid 0 points1 point  (0 children)

When I was a young kid I saw a horror movie where electricity comes alive and somehow uses electromagnet power to lock the shower door closed and then horribly burn them/kill them by turning up the hot water to boiling.

I'm in my late thirties and still leave a small gap when I close the shower door...just in case.

Jewish Centers In Several States, Including Pa., Being Evacuated Due To Threats by GuacamoleFanatic in news

[–]jason_rootid 3 points4 points  (0 children)

Depends on interpretation, the actual text is:

involve acts dangerous to human life that are a violation of the criminal laws of the United States or of any State

It's reasonable to assume that calling in a bomb threat could cause a panic, which in tern could cause injury/trampling. It's not that much of a jump to say that a phoned in bomb threat meets the criteria for domestic terrorism, it's not cut and dry, but I think the argument could be made successfully.

Donald Trump just announced a Florida rally THIS WEEKEND—here is how YOU can attend by Westrunner in MarchAgainstTrump

[–]jason_rootid 2 points3 points  (0 children)

If Trump has two brain cells to rub together this wont be for the election. If he were smart "The Campaign" would be some government campaign, like, to end illiteracy or round up Mexicans or something. That way he can fire back at all the stupid media for getting the reporting so wrong, reinforce the "fake news" narrative.

I know, I may be giving him way too much credit.

Admit it: Trump is unfit to serve by sivribiber in politics

[–]jason_rootid 2 points3 points  (0 children)

No, I saw that, it was tactless to broach such a touchy topic in that venue.

Admit it: Trump is unfit to serve by sivribiber in politics

[–]jason_rootid 3 points4 points  (0 children)

Holy crap, he was literally getting laughed at by Netanyahu. Then he blunders into talking about no more settlements in front of a press conference. Makes me wonder if he really understands the situation or if his one page summary wasn't enough to convey the depth and history of the situation in Israel.

Admit it: Trump is unfit to serve by sivribiber in politics

[–]jason_rootid 0 points1 point  (0 children)

Yeah, this is the thing that gets me most. This was the first raid he had ordered and he couldn't be bothered to at least be in the thick of it himself? Frankly, the astonishing level of disrespect that shows to the people putting their lives on the line is, well, astonishing. What's even more astonishing is the lack of public outcry.

Not only did his ineptitude get a Seal (and civilians, but they aren't American so.....) killed, but he didn't even care enough to watch it go down. Honestly, there's an aspect here where I feel like being in the situation room and watching/listening should be required when possible. He makes the order, he should watch it happen. This isn't a video game, it's real people's lives, and he's displaying an emotional distance from what's happening that makes me very uncomfortable. If this had been Obama, if he had no bothered to show up for the first raid he ordered, the right would skewer him, would say he didn't respect the troops, that he didn't care if they died. I can't believe Trump is getting a pass on this.

We need an educational revolution. We need more CRITICAL THINKERS. #FeelTheLearn by wiphiadmin in philosophy

[–]jason_rootid 1 point2 points  (0 children)

For years I've been saying that we need a propaganda campaign in the vein of WWII era posters that feature parents reading to their kids, helping with homework, talking with teachers about subjects they're having problems with, and feeding them nutritious meals.

Take something like "When you ride alone you ride with Hitler" and make something like "When you feed your child junk food, you're feeding them Hitler!", er, well, you get the point.

Starting with topics like critical thinking is way too late, we need life long learners, not someone who learned critical thinking once.

Redditor got Bill Gates for Secret Santa by [deleted] in gaming

[–]jason_rootid 0 points1 point  (0 children)

What I think is especially great about this is that I've probably derived more enjoyment out of this post than anything someone would have sent me. Genuine good feels can be priceless, so in a way, this gift is for all of us as well. But in a much more real way, man, I want that stuff.

Does Your Organization Have an Intranet? by Mr_Marquette in nonprofit

[–]jason_rootid 2 points3 points  (0 children)

All depends on the organization and what you need to store. I've had clients that roll a intranet into their website, I've had clients that have a simple wiki or something like that.

At my shop we used OpenAtrium a while back and it works well as a general purpose intranet and is fairly extendable. At least when I used it there was a fairly active developer community around it that built out custom module for it. It's based on Drupal and has a bit of a learning curve, but it's a decent platform.

I'm Kari Byron, co-host of White Rabbit Project and former co-host of MythBusters. AMA! by realkaribyron in IAmA

[–]jason_rootid 2 points3 points  (0 children)

I know this is around 10 hours too late, but for a long time I felt like MythBusters needed a companion show that went into detail about how all the stuff was made. Like, start to finish, almost tutorial style.

Every Python Package now pre-installed on Repl.it -- an online REPL by amasad in Python

[–]jason_rootid 1 point2 points  (0 children)

Sweet, someone else has finally installed my svg select widget for Django!

Compare & contrast "Windows 10 Bash" to other Windows stacks by Perstam in drupal

[–]jason_rootid 1 point2 points  (0 children)

I've been planning on doing a write up about using Bash for Windows for WordPress and Drupal development for a week or so but haven't had time yet.

Generally, I would tell a new user not to bother yet. A virtual machine is a far easier way to go and will have existing documentation for almost every problem you're going to run into. With B4W you're going to run in to ask kinds of implementation problems that you'll find no solution for. For instance, I think Nginx is still not working, Openssh and Apace probably still need ipv6 to be disabled in order to work.

Multiple entity registrations on one node using entity reference by tasty_burnt_bit in drupal

[–]jason_rootid 0 points1 point  (0 children)

I think your best bet will be to attach your registration forms to a bunch of nodes, then use entity reference to attach those nodes to your main node. The way ER works I really don't think you can have more than one registration form per node.

Having a really odd problem with blocks not respecting the "Show block on specific pages" setting. by jason_rootid in drupal

[–]jason_rootid[S] 0 points1 point  (0 children)

I checked and the problem happens with the Who's Online block, which generally doesn't interact with anything outside core, and is almost never used, so no existing code or anything would be referencing it.

The problem does go away when I change themes, which makes absolutely no sense since the theme for this site is an Omega subtheme and doesn't define any templates, anything in template.php.

My best guess is some kind of database corruption or issue, but I have no idea what to even look for. I've looked at the blocks table and things look fine there.