kibiz0r

joined 2 years ago
[–] [email protected] 25 points 4 days ago* (last edited 4 days ago) (7 children)

How does it handle the half-penny? Does it round up or down, collect the remainder at the end, pull an Office Space, what?

[–] [email protected] 7 points 6 days ago

DO NOT DROP THOSE F BOMBS

[–] [email protected] 31 points 6 days ago

Maybe they could add something to the road, to keep the taxis going in the right direction. Some kind of guard rails on the road.

And if it’s just taxis on those rail roads, they could go a lot faster.

You could probably connect a bunch of taxis together to move them more efficiently, too.

Imagine, if you could connect cities with these kinds of high speed, high capacity rail roads! Robo taxis are the future!

[–] [email protected] 5 points 6 days ago

On a Mac, you can do opt+hyphen or shift+opt+hyphen, for en dash or em dash respectively.

[–] [email protected] 5 points 6 days ago (1 children)

Well, Pakistan isn’t exactly a leader in world peace either…

Which Country Is The Greatest Threat to World Peace?

The US was the overwhelming choice (24% of respondents) for the country that represents the greatest threat to peace in the world today. This was followed by Pakistan (8%), China (6%), North Korea, Israel and Iran (5%). Respondents in Russia (54%), China (49%) and Bosnia (49%) were the most fearful of the US as a threat.

[–] [email protected] 46 points 1 week ago* (last edited 6 days ago) (2 children)

I often want to know the status code of a curl request, but I don't want that extra information to mess with the response body that it prints to stdout.

What to do?

Render an image instead, of course!

curlcat takes the same params as curl, but it uses iTerm2's imgcat tool to draw an "HTTP Cat" of the status code.

It even sends the image to stderr instead of stdout, so you can still pipe curlcat to jq or something.

#!/usr/bin/env zsh

stdoutfile=$( mktemp )
curl -sw "\n%{http_code}" $@ > $stdoutfile
exitcode=$?

if [[ $exitcode == 0 ]]; then
  statuscode=$( cat $stdoutfile | tail -1 )

  if [[ ! -f $HOME/.httpcat$statuscode ]]; then
    curl -so $HOME/.httpcat$statuscode https://http.cat/$statuscode
  fi

  imgcat $HOME/.httpcat$statuscode 1>&2
fi

cat $stdoutfile | ghead -n -1

exit $exitcode

Note: This is macOS-specific, as written, but as long as your terminal supports images, you should be able to adapt it just fine.

[–] [email protected] 9 points 1 week ago

I usually hate political cartoons, but credit where credit is due: that’s a sick illustration.

[–] [email protected] 16 points 1 week ago

As in “full of law”

Like, just jam-packed stuffed to the gills with law, to the point where they vomit law out into the world and we all boil to death slowly in their law-infused stomach acid

[–] [email protected] 27 points 1 week ago

Nobody is forcing them to use Google services.

If you’re a small business with no IT budget, your options are pretty limited.

You can choose from 2 or 3 horrible companies that actually integrate with your stuff out-of-the-box, or you can do a bunch of manual work that none of your competitors are doing.

For a lot of companies, it’s not ignorance or carelessness, but a sober understanding that they’ll have to “render unto Caesar” before they can move on.

[–] [email protected] 13 points 1 week ago (2 children)

Lots of victim-blaming in these comments

[–] [email protected] 5 points 1 week ago

We have mistaken rationality for a philosophy rather than a methodology, and efficiency for a virtue without any particular end in mind.

To have a unique, personal, subjective, divergent human experience is to sin against your prescribed algorithm.

[–] [email protected] 4 points 1 week ago

We have mistaken rationality for a philosophy rather than a methodology, and efficiency for a virtue without any particular end in mind.

To have a unique, personal, subjective, divergent human experience is to sin against your prescribed algorithm.

view more: ‹ prev next ›