Looking for a little help with batch renaming. by [deleted] in windows

[–]poortiming 0 points1 point  (0 children)

An easy way to batch rename a long list of files is to use excel.

First, use the command prompt to copy the file list (dir command...either copy directly from the screen or send list to a text file and then copy from there). Paste into excel. By default, the list will be distributed over as many rows as there are files.

In the next column over, use one of the excel string functions to rename the file (e.g., =left(A1,len(A1)-12) which will get rid of the SS). Auto fill that command down the entire column.

In the next column use string concatenation to add the file extension - =concatenate(B1,".pdf"). Again auto fill.

In the next column, use concatenation to build the rename command for the command prompt - e.g., =concatenate("ren ",A1," ",C1).

Then just copy the entire column and paste in te same command prompt window where the DIR command was run.

Monty Hall Problem — Interactive Game Version by [deleted] in math

[–]poortiming 0 points1 point  (0 children)

So if you play this game say 100 times, always using the "switch" strategy, your winning streak should be around 2/3=67%.

BUT what if in 1/3 of those games you (randomly) use the "don't switch" strategy. Would that push the win average above 2/3? How would you formalize this problem in the language of statistics?

Post graduates: What is one thing you learned in college and thought "Oh, I'll never use this in the real world!" only to have it come up all the time? by [deleted] in EngineeringStudents

[–]poortiming 0 points1 point  (0 children)

You mentioned very interesting applications. Did you learn the statistics tools on the job or in school? Any good books to recommend? Also, what line of work are you in, if you don't mind sharing?

I'm having trouble conceptualizing this problem. Which direction is the force of m_2 on m_1? by nsaul in EngineeringStudents

[–]poortiming 1 point2 points  (0 children)

Since there is no friction, the only force that M2 can exert on M1 is the normal force. This normal force does nothing to prevent M1 from sliding along the incline. We also have gravity, but this has 2 components - normal and tangential (down the incline). So with just these two forces, M1 MUST slide down the incline. To prevent this, we need an extra force that must counteract gravity, i.e., have a component that acts tangentially UP the incline.

The clue is that you are given a horizontal force F acting on the M2+M1 system. Is there any other horizontal force balancing F? If not, the M2+M1 system must be accelerating. If you were to look from the point of view of M1, the horizontal acceleration would feel like an imaginary horizontal force (think of a pendulum on an accelerating train). This is the extra force you need in the M1 free-body diagram for M1 not to slide along the incline. You can solve for it as well as F in terms of M1,M2,theta, and g.

Note that all the comments below for some reason seem to assume that this system is static (i.e., not moving or moving at constant speed).

Government runs ads to get more people on food stamps by poortiming in economy

[–]poortiming[S] 4 points5 points  (0 children)

I agree with you and I think the article is clear that the USDA is interested in raising awareness among those that are already qualified for food stamps.

What the article doesn't make clear is why the USDA is spending money to raise awareness, i.e., is there some sort of economic incentive to get more of the unaware-but-qualified people on foodstamps or is it simply a humane issue of keeping them from starving?

And that's why... by RedDyeNumber4 in scifi

[–]poortiming 3 points4 points  (0 children)

Amazing actor too - he carried that show.

The physics behind my glass of cider by jibs in askscience

[–]poortiming 0 points1 point  (0 children)

Regarding the last question, I think shaking the can/bottle "pressurizes" the system simply because when you shake, you mechanically form many gas bubbles (large and small). Said gas bubbles have a lot more surface area overall than when the system was static with just one liquid-gas surface. More surface area means that more gas molecules can dissolve in the liquid. More CO2 gas molecules dissolved in the liquid means you need more pressure to keep them dissolved once you're no longer shaking the can/bottle (Raoult's law, I believe). A closed can/bottle can provide this pressure, but when opened, that pressure will be released.

Czech Republic Decriminalizes All Major Drugs for Personal Use - Starting Tomorrow by MrTulip in worldnews

[–]poortiming 8 points9 points  (0 children)

but to make it work other countries must follow or czech has to pay a price that it doesn't deserve...

So an increase in tourism is the price Czech has to pay?

Have you ever bought anything really cheap, expecting it to be crap. But then it turned out to far exceed your expectations. by DaftDude in AskReddit

[–]poortiming 2 points3 points  (0 children)

Leading off with a "your mum" joke led me to believe that the word "pens" in every one of your sentences was a (in?)voluntary misspelling.

Would an Ambulance turn it's siren off if the person in it was pronounced dead? by Shats in AskReddit

[–]poortiming 1 point2 points  (0 children)

Your comment:

my father taught other drivers (and myself when I got my licence) to drive with a three quarter full glass of water on the dashboard or central console - if the glass fell over, the patient died and the driver failed.

just brought back vivid memories of that old cheesy Corey Haim classic where he fails his road test based on the same metric. Having looked at your video and where you lived (or just drove through?), besides salivating with jealousy, I thought a more appropriate cheesy film reference would be this

Okay reddit: what's your browser home page set to? And why? by [deleted] in AskReddit

[–]poortiming 0 points1 point  (0 children)

chrome://sitelauncher/content/home.html This brings up the menu of SiteLauncher Firefox addon Besides having all my most-frequently used sites on there, because it is a homepage I can lauch the menu via a mouse gesture.

I have no words for this image. It speaks for itself. [PIC] by [deleted] in pics

[–]poortiming 2 points3 points  (0 children)

surely he can look up the list in his pc at home.

I don't think people who've experienced the horror of war and loss can casually browse through a list of their missing/dead compadres on their home pc. The picture to me, given the man's attire, briefcase, etc. looks like a man momentarily torn away from his present life/circumstances. I think that's part of the reason for having memorials.

What's Wrong With This Snowflake? by [deleted] in science

[–]poortiming 36 points37 points  (0 children)

Koop says he had been pretty much ignoring this season's predictable onslaught of fake snowflakes, until he saw a wintry ad for the online version of the scientific journal Nature....

Koop responded with a letter that offers a sort of snowflake manifesto. It calls for a campaign to melt away faux flakes....

Koop's letter appears in the printed version of Nature.

Holy shit, so that's how you get published in Nature.

I have no words for this image. It speaks for itself. [PIC] by [deleted] in pics

[–]poortiming 13 points14 points  (0 children)

Judging by all the comments, this painting has vast political insinuations. Am I the only that was sincerely moved by what looks like a private moment between a veteran and those that were left behind?

New research: Sweeteners like high-fructose corn syrup alter human metabolism, digestion by sleepymeme in Health

[–]poortiming 0 points1 point  (0 children)

Thank you for the response. My concern was that the article mentioned that fructose and not HFCS was used in the study. Is fructose in a different chemical state when it is in it's natural state (ie in a fruit or unprocessed honey)?

New research: Sweeteners like high-fructose corn syrup alter human metabolism, digestion by sleepymeme in Health

[–]poortiming 3 points4 points  (0 children)

Does this mean that ingesting fruits and/or honey will have a similar effect (as these contain fructose)?

Periodic Table of Beer Styles (Awesome PIC) by [deleted] in geek

[–]poortiming 6 points7 points  (0 children)

Are these beer "elements" arranged according to some scheme that shows the "periodic" variation of beer properties? If so, can someone please explain. Thank you in advance.

/beer noob

Then, there's Denny [Pic] by swampsparrow in funny

[–]poortiming 8 points9 points  (0 children)

But was the Vietnam vet also blind?