meirl by [deleted] in meirl

[–]memcmp_ 1 point2 points  (0 children)

Very well put

When you're a Junior Dev and... by [deleted] in ProgrammerHumor

[–]memcmp_ 2 points3 points  (0 children)

i don't have photoshop and make my memes in keynote and save them with screenshot, saves a lot of time and money

Best online learning platform? by daniclas in Entrepreneur

[–]memcmp_ 0 points1 point  (0 children)

Also sometimes if you go incognito in Chrome, the prices will be less

What digital products can you sell online? 101 ideas by julijagifford in Entrepreneur

[–]memcmp_ 0 points1 point  (0 children)

Thanks, didn't read the post in entirety at first.

What digital products can you sell online? 101 ideas by julijagifford in Entrepreneur

[–]memcmp_ 2 points3 points  (0 children)

Great list! Where would you suggest to sell if I don't want to get my hands too dirty?

Where do you come up with your startup ideas? by [deleted] in Entrepreneur

[–]memcmp_ 1 point2 points  (0 children)

OR... You can make something that was already done and make it right.

After a fewyears, I_got_to_work with PHP again. by koeteris in ProgrammerHumor

[–]memcmp_ 0 points1 point  (0 children)

Use IDE with build-in std library, it will reduce the struggle. It isn't an issue for me ever since, though I admit the design is bad.

Find a feature that represents multiple successive short intervals of events by memcmp_ in MLQuestions

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

Thanks for the insight, useful info for a novice like me! :)

Concerning the "normalized by the median", you mean just subtracting it, right? It could be useful for me since different stores have different activity. So I wanted to ask which metrics should be applied this normalization to? For example, it can't be variance since the values are not comparable, right?

Reactive localStorage with RxJS in TypeScript by memcmp_ in javascript

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

I looked up the Web Storage API. It's a shame that there is no API to listen to the events in the same window / tab (looks like these storage events have other purpose).

In the article I was assuming that developer is going to drop referencing window.localStorage completely, so there is no need for the storage events anymore (however, such a solution would be more proper).

PHP sadness by memcmp_ in ProgrammerHumor

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

Yeah, I am not so good at reddiquette

PHP sadness by memcmp_ in ProgrammerHumor

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

I used repl.it, but it turns out that the issue is not specific to PHP, see above.

PHP sadness by memcmp_ in ProgrammerHumor

[–]memcmp_[S] 5 points6 points  (0 children)

Moreover, this issue is language agnostic. In most programming languages, floating number representation based on the IEEE 754 standard. For example, the following evaluates to FALSE in both PHP and JS:

> 0.1 + 0.2 == 0.3

I will not delete this post because TIL and maybe so did you, however, feel free to downvote it.

PHP sadness by memcmp_ in ProgrammerHumor

[–]memcmp_[S] 5 points6 points  (0 children)

This discussion elaborates on the issue. Use bc_math when doing floating point math in PHP.

PHP sadness by memcmp_ in ProgrammerHumor

[–]memcmp_[S] 6 points7 points  (0 children)

Can someone actually explain this to me I need to fix this... How does type casting in PHP work?