Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror

Comment: Re:Rich Family Dies, World At Peril!!! (Score 2) 175

by Archangel Michael (#49752863) Attached to: DNA On Pizza Crust Leads To Quadruple Murder Suspect

I am not sure I understand what your point is. Are you saying the sole cause of poverty in the black community is because they name their kids Darnell and Jamal?

Or are you simply justifying bad behavior by pointing to other bad behavior?

My point is, people like you are the closet racist that you think everyone else is, simply because you keep telling black people that they can't make it without white help (and a huge dose of white guilt). The fact is, that kind of racist attitude is exactly where a large chunk of the problem is.

When you actually see the racist remarks by liberals when a black person succeeds (see Ben Carson), then you'll understand the problem is Racism, it just isn't the kind you're expecting to see. 50 years of white guild progressive policies have decimated the black community.

Comment: Re:Rich Family Dies, World At Peril!!! (Score 1) 175

by Archangel Michael (#49751217) Attached to: DNA On Pizza Crust Leads To Quadruple Murder Suspect

You're not looking at the cause of poverty here, just blaming it. You're also not mentioning a culture of hatred against getting educated, where people are so distrustful of the system that anyone wanting to better themselves to escape are culturally shamed (uncle tom, race traitor) into remaining ignorant. Where people care more about Queen B and Jay Z than math and science.

The worst part, are the real racists who EXCUSE bad behavior as if it is part of the racial makeup of blacks.

I am not dismissing the racism in the country, it exists. But using that as an excuse so that you do not even have to try is the real racism. I actually believe black people can be so much better than liberal democrats and the Race Pimps Al Sharpton and Jesse Jackson are suggesting they can. After all, Ben Carson, Oprah, and Barack Obama are proof that blacks CAN succeed, and that America isn't as racist as some suggest.

Comment: Re:It's RAID 0 (Score 4, Informative) 221

Based on the commit fixes, it's in a function called raid0_make_request, which is only used in raid0.c
raid 10 is in raid10.c, so it doesn't use this function.

The bug is based on the fact that a macro "sector_div" modifies it's first argument [and returns the remainder]. I've removed the obligatory backslashes for clarity:

# define sector_div(n, b)(
{
        int _res;
        _res = (n) % (b);
        (n) /= (b);
        _res;
}
)

This is used in some fifty files. Some just want the remainder [and they don't want the first arg changed so they do]:

sector_t tmp = sector;
rem = sector_div(tmp,blah);

This is effectively what the code wanted, but the actual fix was to do a restore afterwards:

sector_t sector = myptr->sector;

...
rem = sector_div(sector,blah);

...
sector = myptr->sector;

... // use sector [original value only please ;-)]

The last line to restore sector with the original value was the fix.

They should do a full code audit as their may be other places that could be a problem. I've reviewed half the files that use this macro and while they're not broken, some of the uses are fragile. I paraphrase: "sector_div considered harmful"

What they really need are a few more variants which are pure functions that could be implemented as inlines:
rem = sector_rem_pure(s,n)
s2 = sector_div_pure(s1,n)

Or, a cleaner sector_div macro:
sector_div_both(s,n,sector_return,rem_return)

Comment: Re:North Pole (Score 1) 481

by Forever Wondering (#49747103) Attached to: The Brainteaser Elon Musk Asks New SpaceX Engineers

Yes, they do go on forever. I stopped at 100x for the sake of brevity and slashdot eccentricities (e.g. when I put only one loop per line, /. complained about "lines are too short"). At 100x, the south lat (after going one mile south) is 8 ft, 4 in (99x was 8 ft, 5 in). Eventually, the program would need to use semi-infinite precision math (e.g. double wouldn't be enough). Also, I used a 2D approximation for the distance to pole rather than calculate the arc length [I was too lazy/tired]. Still, pretty close, and good enough for illustration purposes.

#!/usr/bin/perl
# tbin/elon -- elon musk's brain teaser

#pragma pgmlns

master(@ARGV);
exit(0);

# master -- master control
sub master
{
        my(@argv) = @_;

        $fmt_big = "%.12f";

        $M_PI = 3.14159265358979323846;
        $M_PI_2 = $M_PI * 2;

        # circumference of the earth
        $Ce = 24901.0;

        # radius of the earth
        $Re = radius($Ce);

        $deg_per_mile = 90.0 / $Re;

        for ($loopiter = 1; $loopiter <= 100; ++$loopiter) {
                dolat($loopiter);
        }

        {
                last if ($altflg);

                $bf = $out[0];
                @rhs = split(" ",$bf);

                $bf = title($rhs[0],"loop");
                push(@title,$bf);

                $bf = title($rhs[1],"degrees S lat");
                push(@title,$bf);

                $bf = title($rhs[2],"dist to S pole");
                push(@title,$bf);

                $bf = join(" ",@title);
                unshift(@out,$bf);
        }

        foreach $bf (@out) {
                print($bf,"\n");
        }
}

# dolat -- calculate for single latitute
sub dolat
{
        my($loopiter) = @_;

        $Cx = 1.0 / $loopiter;
        $Rx = radius($Cx);

        # distance from southern latitude to equator
        $l = $Re - $Rx;

        $deg_S = ($l / $Re) * 90.0;
        $deg_N = $deg_S - $deg_per_mile;

        $dist_to_pole_S = $Re - $l;
        $dist_to_pole_N = $dist_to_pole_S + 1;

        @lhs = _showdist($dist_to_pole_N * 5280 * 12);
        prtf("%3.3dx ${fmt_big} %s mi, %s ft, %s in\n",
                $loopiter,$deg_N,$lhs[0],$lhs[1],$lhs[2]);
}

# _showdist -- show distance in human readable form
sub _showdist
{
        my($tot,$tag) = @_;
        my($tgb,@elap_tgb);
        my($modlhs);
        my($cur);
        my($bf);
        my(@lhs);

        push(@elap_tgb,5280);
        push(@elap_tgb,12);
        push(@elap_tgb,1);

        while (@elap_tgb > 0) {
                $modlhs = 1;
                foreach $tgb (@elap_tgb) {
                        $modlhs *= $tgb;
                }

                shift(@elap_tgb);

                $cur = $tot / $modlhs;
                $cur = int($cur);
                $tot %= $modlhs;

                $bf = sprintf("%d",$cur);
                push(@lhs,$bf);
        }

        @lhs;
}

sub radius
{
        my($c) = @_;
        my($r);

        $r = $c / $M_PI_2;

        $r;
}

sub square
{
        my($x) = @_;

        $x *= $x;

        $x;
}

sub title
{
        my($val,$sym) = @_;
        my($len);

        $len = length($val);
        while (length($sym) < $len) {
                $sym .= " ";
        }

        $sym;
}

sub prtf
{
        my($fmt);

        $fmt = shift(@_);
        $fmt = sprintf($fmt,@_);
        chomp($fmt);

        push(@out,$fmt);
}

Comment: Re:Tolls? (Score 1) 822

I will give you the best and most classic example I use for "all taxes are regressive"

In the 90s, under Clinton and the (R) congress, they passed a Luxury tax on Boats, Planes and other high end things. Completely "progressive" in approach.

What happened was, the rich avoided the taxes, by avoiding buying the very things being taxed. It was so bad, that it nearly ruined a number of industries (Boating) that catered to those "rich" people. It was so bad, that it was quickly and quietly repealed. WHY? Because the taxes didn't hurt the people it was designed for, it hurt the guys building the boats etc. The "Progressive" tax was in fact, quite regressive in result.

I understand what people mean by "progressive" and "regressive" but results matter, not the goal.

Comment: Re:Tolls? (Score 1) 822

I will give you the best and most classic example I use for "all taxes are regressive"

In the 90s, under Clinton and the (R) congress, they passed a Luxury tax on Boats, Planes and other high end things. Completely "progressive" in approach.

What happened was, the rich avoided the taxes, by avoiding buying the very things being taxed. It was so bad, that it nearly ruined a number of industries (Boating) that catered to those "rich" people. It was so bad, that it was quickly and quietly repealed. WHY? Because the taxes didn't hurt the people it was designed for, it hurt the guys building the boats etc. The "Progressive" tax was in fact, quite regressive in result.

I am not against taxes. Just want people to know that I want taxes to be as minimal as possible.

Comment: Streisand Effect (Score 4, Insightful) 369

Dear Principal,

Do you really want to bring this kind of publicity to you and the school you're representing? I'm pretty sure that you won't be able to handle the backlash, and you might actually have to resign or ... get fired.

Unless you have a Board adopted policy, predating the photographs, you're in a really tough position.

Sincerely,
The Internet Community.

Comment: Re:Cost (Score 0) 131

by Archangel Michael (#49743915) Attached to: Pre-Orders Start For Neo900 Open Source Phone

Compare to the Specs on the OnePlus One. And that makes it three times the price of a phone with much better specs, even if it isn't 100% open. The Neo900 is a phone for Tin Foil Hat wearers and unwashed grey beards living in mom's basement. And if you are that paranoid, you probably aren't going to have any phone.

"Take that, you hostile sons-of-bitches!" -- James Coburn, in the finale of _The_President's_Analyst_

Working...