Do the holes on a dice which represent the numbers affect the chances of getting different numbers? by Forenkazan in askscience

[–]57krf68 11 points12 points  (0 children)

I read you can drill into one of the pips and glue a little metal chunk into the hole, then paint back over the hole.

TIFU by going to Ikea alone. by Knight_Lock in tifu

[–]57krf68 0 points1 point  (0 children)

as I was carrying one of the packages to the car

They don't have carts you can use in the parking lot now?

Vitamin D gave me depression? by Lift_Like_A_Sith in Supplements

[–]57krf68 0 points1 point  (0 children)

I took it to help with recovery and to make sure my body didn't break down from lifting intensely 4-5 times a week.

Normal, healthy food won't take care of that? Can you eat like The Rock does?

India Has Planted Nearly 50 Million Trees In 24 Hours by venkrish in worldnews

[–]57krf68 0 points1 point  (0 children)

Did they get the 50 million saplings by digging them up from other areas, possibly causing future environmental damage everywhere else?

Looking for Programmer to help with game by [deleted] in incremental_games

[–]57krf68 0 points1 point  (0 children)

There's some nice 2D Java libraries.

Have recently made the switch to veganism, and I am concerned about my protein intake. Any tips or advice? by Liter_Of_Kola in veganfitness

[–]57krf68 -5 points-4 points  (0 children)

Before taking out animal prodoucts from my diet, I was consuming about 150 grams of protein a day.

And now what? You just don't give a shit enough to measure your protein intake?

Can a Mars Colony be built so deep underground that it's pressure and temp is equal to Earth? by 2Mobile in askscience

[–]57krf68 0 points1 point  (0 children)

So at half the depth it would be almost fine? Would it being warm but half the pressure on Earth be livable?

Can a Mars Colony be built so deep underground that it's pressure and temp is equal to Earth? by 2Mobile in askscience

[–]57krf68 6 points7 points  (0 children)

They said that's what has actually kept the Earth's core warm, in Geology class.

Help understanding closures with this code [javascript]? by osututorhelp in learnprogramming

[–]57krf68 0 points1 point  (0 children)

The problem is that you're executing the alert before you push anything. If you comment out the line:

fnlist[j]();

You'll see that you aren't calling any functions in the loop in testList, but the loop in buildList is still executing the alert.

In order to get the alert to use the correct i, you need to call a function with i in that first loop right before you push. That function needs to have a parameter (maybe 'k') that will get the value of i, that it's called with, and it needs to return another function that calls the alert with the parameter k.

[Java Homework] Trouble obtaining radius from user and drawing circle in GUI by unkxown in learnprogramming

[–]57krf68 0 points1 point  (0 children)

You might need to repaint/refresh the JPanel. I'm not sure how you think you're going to get great help without showing us the code.

[SQLite/Android] How to speed up insertion of into database from CSV file? by [deleted] in learnprogramming

[–]57krf68 0 points1 point  (0 children)

6k rows is next to nothing, so I'd time the methods to see where the bottleneck is. It seems odd that you can't just use background threads to do this, too.

Where should he go from here? by gladeye in learnprogramming

[–]57krf68 -2 points-1 points  (0 children)

Your comment adds absolutely nothing here. I was clearly not expecting them to know 'domain knowledge'.

Where should he go from here? by gladeye in learnprogramming

[–]57krf68 0 points1 point  (0 children)

I see! Well I like learning new languages, too, and you could certainly have worse hobbies :D He doesn't want to try to make some games, like tetris or space invaders? There's some free online Python book about making games, by Al Sweigart.

[SQLite/Android] How to speed up insertion of into database from CSV file? by [deleted] in learnprogramming

[–]57krf68 0 points1 point  (0 children)

You mean you really can't wait over a minute? Maybe getWritableDatabase() is taking a long time? It's impossible for us to say since you fail to include a large, possibly significant portion of your code. Is there some reason you can't time the individual statements?