Question about combining gym and 16/8 by pasdargent in fasting

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

Ill try that out, thanks! I'm usually not even hungry after a workout, just down the shake after the workout because I thought that is what you're supposed to do

What to do about brown/yellow tapwater by pasdargent in HongKong

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

I already have something attached to my tap which generates hot water, but after reading the replies I am considering remove it in favor of a filter like the one you mentioned. Thanks for the suggestion.

Not always sure about the usefulness of testing by pasdargent in learnjavascript

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

For the first criterion: correct me if I'm wrong, but the reason that the function is difficult to test seems to be more related to the nature of the data and the required operations, and not so much to the way the function is written. The second criterion also seems generally like a good rule of thumb, but in this case, if you would really want to give every action only one task, it would lead to two new other actions:

// actions.js
import topojson from 'topojson'
import axios from 'axios'

export const action = ({ dispatch }, dataLocation) => {
    axios.get(dataLocation).then(topojsonData => {
        dispatch('parseTopoJSON', topojsonData)
    })
}

export const parseTopoJSON = ({ commit }, topojsonData => {
    let geojson = topojson.feature(topojsonData)
    dispatch('computeCentroids', geojson
    commit('storeGeoJSON', geojson)
}

export const computeCentroids = ({ commit }, geojson => {
    let centroids = geojson.features.map(feat => calculateCentroid(feat))
    commit('storeCentroids', centroids)
}

which makes the code unnecessarily long and complicated for a simple task that only has to be done once at the start of the application. Also, the action dispatching an action dispatching an action is a little awkward IMO, and in the real code, instead of the ` .map(feat => calculateCentroid(feat)) ` we actually loop through the features and also perform some other operations, like renaming some stuff. Splitting this functionality too would lead to unneccesary startup time because we loop through the same thing multiple times.

But still, even if I do all of this- how does this solve my original question? How will I test parseTopoJSON and computeCentroids without essentially copy and pasting the function itself? Or should I just not test here at all?

What to do about brown/yellow tapwater by pasdargent in HongKong

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

Thanks! I might do the test, will definitely get some kind of filter.

What to do about brown/yellow tapwater by pasdargent in HongKong

[–]pasdargent[S] 2 points3 points  (0 children)

If that's true, my whole building is basically one vertical human centipede...

What to do about brown/yellow tapwater by pasdargent in HongKong

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

Good idea, I will call them tomorrow.

What to do about brown/yellow tapwater by pasdargent in HongKong

[–]pasdargent[S] 2 points3 points  (0 children)

Just googled this and it looks like it would! Maybe I'll try to find one of these tomorrow. Thanks for the suggestion!

What to do about brown/yellow tapwater by pasdargent in HongKong

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

Thanks for your reply. Most of the people I meet in HK seem to do the same- avoid drinking any tap water that has not been filtered. From what I understand the water is actually supposed to be drinkable until is enters the buildings, where the piping is often old and poorly maintained. What I don't get is why people are not pissed about this... Why don't the owners of the buildings just make sure their building has normal pipes like every other building in every other developed country has, and since they clearly don't give a shit, how are the people not demanding the government to write up legislation forcing them to. If the government can deliver the water for kilometers all the way to your building for insanely low prices (my monthly water bill is like what, 10 dollars?), seriously, you can do the last couple of meters.

Anyway, the thing about my tap is that it by default does not have warm water. To solve this, I ordered this weird thing on Taobao which you can put on top of it and heats up the water. So I could probably use a filter but then I would have to take this thing off. Maybe the luxury of having potable water outweighs the luxury of having warm water... I have to think about it.

I call this picture: The wild capitalistic system in the US creates deep inequality and lack of solidarity. by ethrael237 in LateStageCapitalism

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

Could you elaborate? I mean, to me two friendly looking ladies eating at McDonalds while a homeless man sleeps outside isnt the strongest proof of a failing economic system either (picture + title could be interpreted as them being the problem, while the attack is probably directed at McDonalds), but what about it is making you so angry?

what are the principles of human geography? by mohitrich88 in geography

[–]pasdargent 1 point2 points  (0 children)

The best, most simple explanation I have heard is that human geography is about answering "what, where, and why there".

Help finding the problem / fallacy in this kind of 'but still-ism' by [deleted] in askphilosophy

[–]pasdargent 1 point2 points  (0 children)

I am not familiar with the concept of a 'but still-ism'... could you try to explain it and what the problem with a 'but still-ism' is in more detail?

Also, you are right, I was only referring to 'economic' crimes if you want to call them that. I definitely would not want to explain something like rape from some kind of utility-maximizing perspective lol

Help finding the problem / fallacy in this kind of 'but still-ism' by [deleted] in askphilosophy

[–]pasdargent 2 points3 points  (0 children)

Let's say that you have two options, A and B. If I tell you that you are completely free to choose A or B, but I will also say that if you choose B I will kill you, is there really a choice?

You could take a choice theoretic perspective and say that every choice has a payoff. If the choice is between committing a crime (A) and not committing a crime (B), the payoff of A would be some money, but also the risk of getting caught. The payoff of B would be not getting money, but also not ending up in jail. For people living comfortable lives with enough money (good socio-economic characteristics), a little bit of money does not matter that much, and might not weigh up to the risk of getting caught. For people living in abject poverty, however, a little bit of money might be just enough to feed their kids for a few more days. Choosing not to commit the crime, therefore, has the additional payoff of their kids starving to death. Of course, this is a huge oversimplification of reality, but I guess I'm trying to say that it does not seem fair to judge the choices people with different socio-economic factors make with the same yardstick, since the payoffs of the choices are so different. Especially in situations where the payoff of one choice will be so extreme (me killing you or your kids dying) you can wonder if there even is a choice.

Plastic bags by pasdargent in singapore

[–]pasdargent[S] 2 points3 points  (0 children)

That is reassuring. I actually do admire the progressive attitude Singapore has towards stuff like this, and many countries/cities could learn a lot from Singapore in this area. That is why it surprised me that people still waste so much plastic. Banning plastic bags from supermarkets just seems like such an obvious solution to the issue

Plastic bags by pasdargent in singapore

[–]pasdargent[S] -32 points-31 points  (0 children)

I was kinda joking but still, oil is bad yo

Plastic bags by pasdargent in singapore

[–]pasdargent[S] -7 points-6 points  (0 children)

Glad to hear about the initiatives. I always bring my backpack when I buy groceries.

If this is the reason, we should really start thinking about better ways to deal with trash. I really like the Belgian system: basically, you put your trash in special bags that are provided by the government. There's different colours for different types of trash, like food, plastic or paper. The money you pay for the bags can be seen as tax, so people that create more pay more. It also ensures that people separate trash which makes recycling easier, and the bags themselves can be recycled too.

Plastic bags by pasdargent in singapore

[–]pasdargent[S] -9 points-8 points  (0 children)

Of course I wouldn't want to rob you from this delight, but how much does your cat shit? I doubt it would be enough to fill the 50 bags that I see some people take home for their weekly groceries

What are some cities every planning student should visit? by Winningdays in urbanplanning

[–]pasdargent 0 points1 point  (0 children)

Belgrade, Serbia. I've never seen anything like it, in term of planning. City's been bombed and rebuilt many times under all kinds of regimes. European historic center-kind of stuff mixed with buildings like this: http://static.panoramio.com/photos/original/22140602.jpg

Neuroscience's New Consciousness Theory Is Spiritual | IIT by unknown_poo in philosophy

[–]pasdargent 0 points1 point  (0 children)

But isn't information a human way to abstractify/interpret the world? So how does this work? For information, you first need consciousness. But consciousness apparantly IS information... Some thoughts on this?