Войдите или зарегистрируйтесь
Вы сможете писать комментарии и посты, ставить лайки и другое
Поиск
Тёмная тема
— English / Español / Deutsch / Русский

Charlotte Zucker - the mother of the Zucker brothers, whom they happily cast in their films (Airplane, The Naked Gun, and others)

недавно
The two brothers from the famous Zucker-Abrahams-Zucker trio - had their mother, Charlotte Zucker, appear in a bunch of their films. Though her roles were mostly brief and cameo in nature, if you enjoy the spoof comedies of that era, you're sure to remember this elderly lady.

In the original "Airplane!", Charlotte Zucker tried to apply makeup.
"The Naked Gun: From the Files of Police Squad!": she played Dominique, the secretary for the mastermind villain.
“I must kill Papshmir.”
Показать полностью...
+2
14

A dried-up future New York in The Fifth Element

недавно
In The Fifth Element, there's a brief and easily overlooked scene in the middle of the movie where a spaceship takes off toward Fhloston Paradise. It only lasts a couple of seconds, but if you pause and take a closer look, you'll notice an interesting detail from the director.
I've numbered the key spots in the screenshot.

What we see is New York of the future. The ocean level has dropped dramatically, making the city look almost unrecognizable. The only question is - where could all the water have gone for sea levels to fall that much?

1 - The Statue of Liberty. It looks taller because of the extended base underneath.
2 - This marks the future ocean level. Somehow the ice caps didn't melt to add more water to the seas. Did humanity ship the water off to other planets?

3 - Manhattan, 4 - Brooklyn, 5 - The Brooklyn Bridge connecting them. With the water gone, the bridge is now spanning a canyon instead of a river.

And on what used to be the ocean floor, they've built a spaceport.
Показать полностью...
+3
15

What technologies does Famabara use?

1 г. назад
Famabara website uses Nuxt 3 as frontend. I like VueJS very much, that's why Nuxt was chosen.

SSR approach allows to have normal HTML on first page load and fast page switch due to SPA mode.

In backend Famabara uses Postgresql, NodeJS, Redis, Go.
+2
127

The foreman at the dock from The Naked Gun made it into the third film (actor Joe Grifasi)

недавно
Remember that memorable interrogation scene on Pier 32 from The Naked Gun?
The actor who played the sleazy dock foreman is named Joe Grifasi.
Показать полностью...
+4
9

The expectation paradox: he wanted a boy, but kept having girls

недавно
A man has five children - all girls. He dreams of a son, an heir! Now his wife is pregnant again. Let's skip the psychology behind all this and focus on the probabilities.

Emotionally, it feels like after five girls in a row, a boy is due. Surely, the odds of finally having a son are much higher now.

But this is a textbook example of the gambler's fallacy - the false belief that if something happens repeatedly, the opposite is bound to happen soon. That's not how probability works.

According to math, the chance of having exactly five girls in a row followed by another girl is 1 in 64, or about 1.6%. But those five girls are already here. The only thing that matters now is the next birth.

And the odds of having a boy? Still 50/50. Every birth is an independent event (assuming randomness), so the previous outcomes don't change the next one.

So yes, there's still a 50% chance they'll have another girl.
+3
57

Syntax highlight in preformatted text

1 г. назад
Write language name after triple backticks (```) and content of preformatted text will be highlighted.
This is example:
 ``` ts
 let projectName: string|null = null;
 projectName = 'Famabara';
 ```
Of course, you shouldn't start backticks-line with a space.

Golang syntax highlight example:
package main

import "fmt"

func main() {
	fmt.Println("Hello, from Go!")
}

Javascript syntax highlight example:
console.log(2**2**3); // 256
console.log(2**(2**3)); // 256
console.log((2**2)**3); // 65

SQL example:
SELECT p.id, p.title FROM posts p LIMIT 10;

For C++ write "cpp", not "c++".
For C# write "csharp", not "c#"

Famabara uses highlight.js for syntax highlight.
+2
46

How to use Quill Editor with Nuxt 3 and SSR (Vue)

недавно
If you try to use Quill Editor with Nuxt 3 when rendering a page in SSR you will get this error:
500 document is not defined.
That means NodeJS doesn't have the global variable 'document'. Because SSR rendering is executed in
a NodeJS environment, not a browser.

The sad fact: <client-only> won't help with this problem. The problem with quill's code is that during import, it assumes it's being executed in the browser. I hope you remember that the code imported from the module is not just imported, but executed, i.e. the authors of Quill wrote it so that the 'document' object is immediately accessed there. Very bad.

One solution is to disable SSR, but its an awful solution. But the second solution is to use dynamic JS imports.

My <script lang="ts" setup> in QuillEditor.vue in Nuxt 3 project:
import 'quill/dist/quill.core.css';
import 'quill/dist/quill.snow.css';
// import Quill from 'quill'; // SSR problem with 'document', need to use dynamic import
import type Quill from 'quill';

const elemForQuillEditor = ref<HTMLDivElement|null>(null);

let editor: null|Quill = null; // Do not store in ref() - it causes bugs!

// ...

async function createQuillAndSetListeners() {
  const Quill = (await import('quill')).default; // This is most important thing - usage of JS dynamic import

  if (!elemForQuillEditor.value) return;
  editor = new Quill(elemForQuillEditor.value, {
    theme: 'snow',
    modules: {
      history: {
        delay: 2000,
        maxStack: 500,
        userOnly: true,
      },
      toolbar: {
        container: [
          ['bold', 'italic', 'underline', 'strike'],
          ['link'],
          [{ list: 'ordered' }, { list: 'bullet' }],
          [{ script: 'sub' }, { script: 'super' }],
          [{ header: [1, 2, 3, 4, 5, 6, false] }],
          [{ color: [] }, { background: [] }],
          ['clean'],
          ['undo', 'redo'],
        ],
        handlers: {
          undo() {
            editor?.history.undo();
          },
          redo() {
            editor?.history.redo();
          },
        },
      },
    },
    placeholder: props.placeholder,
  });
  
  editor.on('text-change', () => {
    if (!editor) return;
    // ... my other code
  });
}

// ...

onMounted(createQuillAndSetListeners);

Now your Quill editor will work in Nuxt 3 even during SSR!
+2
59

A Naked Gun (2025) reference to the TV series Police Squad! (1982)

недавно
The new Naked Gun has one subtle reference that doesn't point back to the original film trilogy, but much further - to the TV series that served as the blueprint for all three movies. In other words, it's a nod to Police Squad! from 1982.

In the final scene of the new film, everyone around the main characters suddenly freezes, while the protagonists themselves are confused about what's happening - yet they're still able to move:
This is a direct callback to the endings of every episode of "Police Squad!". That exact gag happened each time - for example, here's how episode two ends:
Показать полностью...
+2
9

Nuxt 3 and 4: issue with multiple navigateTo calls

19 ч. назад
At work, on one of our projects, I ran into an issue in Nuxt 4 where a page component needs to perform different redirects via navigateTo() based on various conditions during the execution of the setup function. Something like this:

<template>
  Some page
</template>

<script lang="ts" setup>
if (1 + 1 === 2) {
  await navigateTo('/?abc=1', {
    redirectCode: 302,
  });
}

if (2 + 2 === 4) {
  await navigateTo('/?abc=2', {
    redirectCode: 302,
  });
}

if (3 + 3 === 6) {
  await navigateTo('/?abc=3', {
    redirectCode: 302,
  });
}

if (4 + 4 === 8) {
  await navigateTo('/?abc=4', {
    redirectCode: 302,
  });
}
</script>

This is where the problem appears: in the end, the redirect always goes to the very last URL, i.e. in the example above the navigation ends up at /?abc=4. I dug into the documentation but couldn't find anything built-in to prevent subsequent navigateTo calls from being triggered. It seems this behavior is related to vue router.

You can't write it like this either:
if (1 + 1 === 2) {
  await navigateTo('/?abc=1', {
    redirectCode: 302,
  });
  return; // not allowed in script setup
}

In the end, the only solution that worked was introducing a boolean variable and checking it before calling navigateTo:
let isAlreadyRedirected = false;

if (1 + 1 === 2) {
  await navigateTo('/?abc=1', {
    redirectCode: 302,
  });
  isAlreadyRedirected = true;
}

if (!isAlreadyRedirected && 2 + 2 === 4) {
  await navigateTo('/?abc=2', {
    redirectCode: 302,
  });
  isAlreadyRedirected = true;
}

if (!isAlreadyRedirected && 3 + 3 === 6) {
  await navigateTo('/?abc=3', {
    redirectCode: 302,
  });
  isAlreadyRedirected = true;
}

if (!isAlreadyRedirected && 4 + 4 === 8) {
  await navigateTo('/?abc=4', {
    redirectCode: 302,
  });
  isAlreadyRedirected = true;
}
Once again: this is the only thing that solved the problem for me. If you have any other solution, please let me know.
Показать полностью...
+1
1

Manhole covers in New York are made in India

недавно
When you're walking around New York City, you might easily miss an interesting detail: many manhole covers say "Made in India." Here's one of them:
You might not notice it right away. I zoomed in and rotated a section of the photo so it's clearer:
Показать полностью...
+2
12

Perfect Homemade Chicken Broth

недавно
For years, I avoided clear broths. Childhood memories told me they were bland and only meant for sick days. Then I tried this recipe — and everything changed.
It’s crystal clear, gently aromatic, and full of flavor.
Ingredients

1 chicken breast, skin on

2 liters (about 8 cups) water

3 allspice berries

3 whole black peppercorns

2 sprigs fresh parsley

½ tablespoon salt, level
Показать полностью...
+5
16