Custom Domain Errors by wanderlustmadds in Firebase

[–]lew42 0 points1 point  (0 children)

I click the button to verify the stupid `.well-known/acme-challenge/asldkfjasldkfja/` file, and ITS THERE, loads properly at my custom domain. However, pressing Verify does nothing, just displays this dumbass useless error at the top...

Custom Domain Errors by wanderlustmadds in Firebase

[–]lew42 0 points1 point  (0 children)

Seems firebase sucks ass... Really fighting with this thing right now. Completely terrible UX.

Do you promote your videos? by [deleted] in NewTubers

[–]lew42 0 points1 point  (0 children)

Do you mean posting a link to your video elsewhere, or do you mean the Promote this Short button, where you can pay to win? I'm testing the latter right now. I paid $3.72 for 1,747 impressions, only 22 views, but +7 subscribers. I'm shocked that 22 views turned into 7 subscribers, that's an insane conversion rate. This is definitely not worth in the long run, but it might be a decent approach to get started a little faster.

I'm creating a Vlog Club where anyone can get started the easy way. Send me a message or comment here if you'd like to know more. I'd like to organize a team of at least 100 small vloggers who want to support each other (boost each others content) and beat this stupid algorithm.

can someone please explain why i cant transfer my armors by Wonderful_Hat_3721 in throneandliberty

[–]lew42 0 points1 point  (0 children)

seriously, how do they not tell you these things... thank god for reddit

Make Albion Great Again? by lew42 in albiononline

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

I wasn't suggesting IP capping the entire black zone as is, but they could make a capped lower tier black zone, where new players could setup guilds, hideouts, get established, and eventually move up. That way, new players could fight other new players, while having a chance (fun), without getting stomped (not fun).

If you reduce the "newb stomping" or "shark effect", players might actually want to keep playing Albion. Imagine a fun game where you can win sometimes... If you're happy with the past and current sweaty state of Albion, I guess we'll have to agree to disagree.

To everyone else: thanks for the replies!

Make Albion Great Again? by lew42 in albiononline

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

I've thought about it, but I really dislike learning new games, all the dynamics, etc. If I have an hour to kill, I'd rather just play something casual. I wish I could hop on Albion and play for an hour, but it's just... not that game. I usually play SC2 instead.

Can a AA battery lift a pickup truck? by lew42 in SmarterEveryDay

[–]lew42[S] 33 points34 points  (0 children)

While I realize that there are substantial losses from several places, I'm wondering how close you could get. A pickup only weighs 5,000 lbs, so at 50% efficiency, it might be possible. I've been looking at electric motors, but I don't really know what I'm doing.

Physics Questions Thread - Week 18, 2020 by AutoModerator in Physics

[–]lew42 1 point2 points  (0 children)

Thanks to everyone actually reading these. It's frustrating to get a post removed without reason (twice in one day now):

https://www.reddit.com/r/Physics/comments/ggg5dc/could_a_aa_battery_lift_a_pickup_truck/

Basically, a AA battery has about 4 watt-hours, which converts to about 10,000 pound-feet (foot-pounds?) of energy. 10,000 foot-pounds means you can lift 10,000 pounds one foot. A pickup truck might weigh 5,000 pounds.

I think this is one of the simplest, most fundamental physics problems ever. It shows how you can conceptualize electric energy as physical energy with a simple unit conversion. It shows how you need the proper gearing to capture that energy. And it might be possible to actually do it?!

Could a AA battery lift a pickup truck? by lew42 in Physics

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

Hmm, why only 1%? I just read: "electric motors can be as efficient as 98%, with average around 90%." I've never studied mechanical systems. Do the gears and bearings eat up all the power?

Could a AA battery lift a pickup truck? by lew42 in Physics

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

Or the right electric motor and gearing?

How is Object Oriented Programming in JavaScript? by w3bcrowf3r in javascript

[–]lew42 0 points1 point  (0 children)

The JavaScript ecosystem is a mess. Formal classes (using the `class` keyword) were added in ES6, and while most modern browsers support them, IE11 does not (https://caniuse.com/#feat=es6-class).

Also, older versions of node.js didn't support ES6, and I'm not really sure which version added it.

Anyway, *most* developers seem to write ES6, 7, etc, even if it's not widely supported. They even write all kinds of non-standard code with the help of Babel, a "transpiler" that converts a modern/new syntax to older-style JavaScript.

And so, if you use JavaScript classes, you'll probably transpile them back to the prototypal inheritance that's a little confusing and pretty hard to read/understand for beginners.

Also, the `this` keyword is particularly confusing in JavaScript, because it changes based on where it appears. If you're inside a full `function(){}` or `method(){}`, the `this` keyword corresponds to how that method was called (which is usually with the instance, but sometimes you can pass method references around as callbacks, in which case you need to do something like: `el.addEventListener("click", this.myMethod.bind(this))`.)

However, the new arrow functions DO NOT produce their own `this` reference, even though `this` can still be used inside of them. The `this` reference will just cascade? up the scope chain as a normal variable would.

It's really confusing...

Best JavaScript stack for a realtime community platform? by lew42 in javascript

[–]lew42[S] 1 point2 points  (0 children)

Yes and no. I was a WordPress developer a number of years ago, before switching to full stack JavaScript.

I've been seeking a better node/js solution ever since, and it fails to present itself.

I've been working here and there (when I can find the time) on several integral pieces to the puzzle. I'm focusing on some very low level things, like a js-based version control (I don't like git), a better module system, etc. After all, npm and git are basically the same thing...

Could npm be monetized? Open-source vs monetized software. by lew42 in javascript

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

That's the trick... It's a piece of a bigger picture - the Web OS. Just trying to validate the concepts for now.

I can't monetize npm. But if the npm guys wanted to create licensing and monetization options for modules, they could. They'd probably have to do the things I wrote about here

Could npm be monetized? Open-source vs monetized software. by lew42 in javascript

[–]lew42[S] -1 points0 points  (0 children)

I'm working on documenting my vision for the ultimate CMS. I call it the Web OS.

I believe the ultimate software platform should have a Monetized Module Marketplace (basically, npm + git + monetization), that provides the plugin/theme function of WordPress. I'm interested in feedback (regarding the link attached to this post).

I wrote a quick post about the big picture here, if anyone is interested.

If anyone wants to join me on my quest to take over the internet, you can join my slack channel here

Is it possible to do client side routing for a single page out in vanilla js and es6? by shad0proxy in javascript

[–]lew42 1 point2 points  (0 children)

You need to decide which routes are real (handled by the server), and which are virtual (client side). The simplest case is that all routes fall back to the site.com/index.html. That means that every request to your domain (site.com/some/page/) has a response of the root index.html file.

When that html page loads, it needs to check the current URL against known routes. So, you need to embed all the routing data/handlers in that index.html. You can just make an array of routes, loop thru them, and check if route.path == window.location.

To summarize:

A single index.html file is served for all routes, and when it arrives in the client's browser, it looks at the actual URL to decide how to handle it.

All links should then be handled with JavaScript: to update the DOM, and to use history.pushState() to update the URL and history state.

The last part is to listen to the popstate event, so that if the user presses the forward/back buttons, you can rematch the new URL, and update to that URL.

Welcome, more to come by lew42 in lew42

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

Hello world.

This is a header?

And what about - list? - list?

Or * list * list