Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×

Comment Re:A few if statements needed... (Score 1) 329

#!/bin/bash

function getSedExtRegexArg()
{
        if isMacOsX
        then
                # All I want to do is echo '-E', but echo is too clever for that.
                printf '%s' '-E'
        else
                echo '-r'
        fi
}

function isMacOsX()
{
        [[ "$( uname )" == 'Darwin' ]]
}

function normalizePath()
{
        echo "${1}" | sed "$( getSedExtRegexArg )" \
                -e 's:[/][.][/]([.][/])*:/:g' \
                -e 's:[/][.]$:/:' -e 's:^[.][/]+::' -e 's:[/][/]+:/:g'
}

echo "/ is '$( normalizePath '/' )'"
echo "// is '$( normalizePath '//' )'"
echo "//root// is '$( normalizePath '//root//' )'"

Comment Re:Making music (Score 1) 502

You cannot create music on the audio hardware that comes onboard a PC or Mac.

I'm new to the area. Where can I buy the drugs that you're on?

I know more than one producer who uses plain old audio. Most music software has a "Render to audio file" feature that bypasses the audio subsystem completely. This removes one variable from the equation, and is thus preferred.

Comment Re:Getting popcorn (Score 1) 69

And yet, Google doesn't even offer a telephone number to call in the event of account-related problems, such as account lockouts, hackers, etc. Google's account "recovery" mechanism amounts to asking you to provide a bunch of details you either don't know or don't remember. If you fail to do that, Google's response is "try again, harder."

Is it worth trusting a company that has that type of customer support strategy? Want to pay Google $10 per month for 1 terabyte of Google Drive storage, and hope you'll never, ever need Google to intervene on your behalf, in response to a problem with your irreplaceable data? Want to take the same gamble with your domain names?

I will NEVER use Google to "manage" my most important assets.

Comment Separation of Concerns (Score 4, Insightful) 391

In my 25 years of professional programming experience, I've noticed that most often, most programming problems are caused by improper implementations of the separation of unrelated concerns, and coupling of related concerns. Orthogonality is difficult to achieve in many programming exercises, especially regarding cross-cutting concerns, and sometimes the "right" way to code something is tedious and unusable, involving passing state down through several layers of method parameters.

Comment Re:Drone Occupation (Score 1) 506

It's more profitable to pay a civilian to build a drone than it is to pay a soldier to remain enlisted. Soldiers require expensive maintenance and upkeep, and don't have much money to put back into consumerism. Civilians are expected to maintain themselves, and put nearly all of their money back into consumerism.

Slashdot Top Deals

"When the going gets tough, the tough get empirical." -- Jon Carroll

Working...