News for hackers. Stuff that matters.

craigharley

Re:Why not tax private jets out of business? on Tuesday August 08, 2023 @02:30PM (#37053478)
Taxing private jets, is not the same as "removing all incentives to be successful".
Re:A formula for the n’th digit of 𝜋 and 𝜋^n on Sunday January 15, 2023 @03:51PM (#34393228)
Here is another

const nDigitOfPi = (n) => (22/7).toString()[n+1]

Re:Algorithms in PHP: Deques on Tuesday September 13, 2022 @04:55AM (#32822006)
nieve -> naive

Just a small typo, article is good. Clear examples and good explanations.

How long until my new desktop wallpaper?
Re:Effective Code Browsing on Thursday October 07, 2021 @04:39AM (#28783700)
This was my though too, who cares what lines match where - when an IDE can take me to the line, and more importantly, show me the context for that line.
I thought this was interesting so I created a chart to show the value of US Dollar, against US Dollars over time:

https://i.imgur.com/89MSmlf.png

Re:Switching from Vim to Intellij on Thursday November 05, 2020 @09:23AM (#24998443)
Re:Staff emails claim Boeing 777X ‘shares Max problem’ on Sunday January 19, 2020 @03:07PM (#22093662)
It’s all because of card fees. It’s not economical to charge $0.5
Re:Show HN: Zepel, a Jira alternative for product teams on Thursday August 29, 2019 @10:01AM (#20829538)
Is there any way to import tickets (issues and pull requests) from Github?
Re:Types Are Moving to the Right on Saturday March 16, 2019 @07:55PM (#19411218)
And php does it both ways with its type hinting...

    function foo(string bar): string {
        return “y u do this”;
    }
Re:Super simple graph in TypeScript using an adjacency matrix on Monday February 04, 2019 @01:49PM (#19079350)
How would you recommend going about doing this?
Re:Super simple graph in TypeScript using an adjacency matrix on Sunday February 03, 2019 @02:51PM (#19071781)
I made a super simple graph in typescript using an adjacency matrix because all the ones I could find were really bloated, or used far too much memory since I have have a very dense graph.
Re:Seattle judges throw out 15 years of marijuana convictions on Friday September 28, 2018 @08:32AM (#18092789)
According to the Bureau of Prisons, there are 207,847 people incarcerated in federal prisons. Roughly half (48.6 percent) are in for drug offenses. According to the Bureau of Justice Statistics, there are 1,358,875 people in state prisons. Of them, 16 percent have a drug crime as their most serious offense. There were also 744,600 inmates in county and city jails. (The BOP data is current as of July 16. From BJS, the latest jail statistics are from midyear 2014, and the latest prison statistics from year-end 2013.) That’s an incarceration rate of about 725 people per 100,000 population.

Looks like for federal prisons it's as high as 48.6%, but that looks like it's for all drugs not just cannabis.

It's also probably too big a leap to speculate how many people are incarcerated for drug related incidents (theft to get money to feed a habit for example). Crimes which would probably be greatly reduced in a treatment over prohibition system.

Re:Seattle judges throw out 15 years of marijuana convictions on Friday September 28, 2018 @06:11AM (#18092201)
Do you have a source for that? Not saying you're wrong but would be interested to read.

I had a quick look but couldn't find one.