Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. I built non-autoregressive decision models with RL a year ago(convaiinnovations.com ↗)
    179comments
  2. AI-generated posters don’t have to be horrible(john.hartnup.uk ↗)
    572comments
  3. Btrfs/ZFS/bcachefs under workloads classic benchmarks skip(bartosz.fenski.pl ↗)
    10comments
  4. Human brain is two separate organs, Stanford Medicine-led research finds(stanford.edu ↗)
    201comments
  5. A graphical desktop for the ZX Spectrum(github.com/mindbox77 ↗)
    87comments
  6. Tin: full-text search for Postgres(planetscale.com ↗)
    57comments
  7. The Secret Life of Circuits(coredump.cx ↗)
    60comments
  8. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    603comments
  9. Black Holes or Black Hole Stars? Astronomers Spar over 'Little Red Dots'(quantamagazine.org ↗)
    26comments
  10. Supabase (YC S20) Is Hiring for OrioleDB(supabase.link ↗)
    discuss
  11. New evidence for hidden chambers beyond Tutankhamun's tomb(nature.com ↗)
    14comments
  12. Show HN: CUA-S1 – A System One Model for Computer Use(github.com/trycua ↗)
    discuss
  13. Suzanne Ciani's Buchla Cookbook(echo.orpheusinstituut.be ↗)
    1comments
  14. GPT-6 Astra Solves a WWI German Radio Cipher(prinzai.com ↗)
    149comments
  15. San Francisco Onion Futures Company(onionfutures.com ↗)
    134comments
  16. Almost Never Use AI to Write Anything Substantive(erichgrunewald.substack.com ↗)
    44comments
  17. Cloudflare Quick Tunnels(cloudflare.com ↗)
    303comments
  18. How to Write with an LLM(sockpuppet.org ↗)
    366comments
  19. If math is more than proof, we need to better celebrate the rest of it(terrytao.wordpress.com ↗)
    214comments
  20. What Zig felt like, coming from Rust(besok.github.io ↗)
    150comments
  21. You can run Git on object storage if you re-make packfiles(tigrisdata.com ↗)
    29comments
  22. Saving another 100TB of RAM(cloudflare.com ↗)
    97comments
  23. How OpenAI Used Its Own LLMs to Design Its Jalapeño Chip(ieee.org ↗)
    124comments
  24. Communication by means of modulated Johnson noise(pnas.org ↗)
    23comments
  25. SDCC – Small Device C Compiler(sourceforge.net ↗)
    26comments
  26. Asking Authors About Their Own Papers(medium.com/tmlrorg ↗)
    51comments
  27. Ray Ozzie and the Optimism of Being Early(reproof.app ↗)
    22comments
  28. Science Is Open Software(jepedersen.dk ↗)
    59comments
  29. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    130comments
  30. Why building a Rust LSP is hard(rust-glancer.github.io ↗)
    55comments

Ubuntu Bug 255161: Openoffice can’t print on Tuesdays

244 pointsby 12y agobugs.launchpad.net
37 comments
12y agoHN ↗

I usually rely on LibreOffice, but I was tempted to get OpenOffice back on my machine just to try out the bug.

Anyway, thank you for the link.

12y agoHN ↗

It's interesting to follow some of abrianb's comments by date:

"When I click print I get nothing." -Tuesday, August 5, 2008

"I downloaded those updates and Open Office Still prints." -Friday, August 8, 2008

"Open Office stopped printing today." -Tuesday, August 12, 2008

"I just updated and still print." -Monday, August 18, 2008

"I stand corrected, after a boot cycle Open Office failed to print." -Tuesday, August 19, 2008

12y agoHN ↗

My girlfriend just stated, sitting desk to desk: "Every time I remove HN icon from bookmarks bar, it keeps reapearing". My answer, while reading this thread: "Must be a bug, file it." (of course she knows why)

12y agoHN ↗

To be fair, if that bug happened to me, even with 10-20 data points I don't think I would have figured out it was a Tuesday bug.

12y agoHN ↗

file is funny, i just did file on standard JS file

  >file main.js 
  >main.js: ASCII C++ program text, with very long lines
12y agoHN ↗

Why does file always passive aggressively note the fact that you're using 'very long lines'? I'm not sure it's relevant to the format of the file.

12y agoHN ↗

`file` does more than identify the file format; it also looks for properties. It can detect sizes and color properties for most image and video formats, various audio properties for audio formats etc.

"Very long lines" is sort of a property of text files. It means it's unlikely to have been written by hand for one thing.

12y agoHN ↗

Hmmm... I'm cynically inclined to believe it's there as a condescending remark about people the authors of file think aren't real hackers because they're not wrapping their lines to 80 characters.

12y agoHN ↗

I'm cynically inclined to believe it's there to identify people who can't read the source to discover the cutoff is 300 characters.

12y agoHN ↗

But it also has this warning for plain text files - so it's not just about source code where 300 lines is indeed quite long. However 300 characters is very short for a paragraph of text, if you aren't manually wrapping your plain text.

12y agoHN ↗

eh, still useful for checking if plaintext or not for those who live in the terminal

12y agoHN ↗

Speaking as someone who has worked a lot on mime types: Do not ever use `file` as a means to identify a file type. Use the shared-mime-info database.

http://standards.freedesktop.org/shared-mime-info-spec/share...

File has its own internal database. It can do more than the mime type db and is great for quickly identifying and getting lots of info about various file types, but it is AWFUL when used within other apps. Please, don't use it like so.

12y agoHN ↗

nice!

  ~$ xdg-mime query filetype /etc/passwd
  text/plain
12y agoHN ↗

Yeah, I'm not sure about that. According to the xdg-mime(1) man page:

"The query option is for use inside a desktop session only."

Why wouldn't it work from a console session? Or even a non-login session (e.g. cron job)? I'm not sure I want to trust a command-line program that only works as part of a desktop session. It sounds like the sort of fragile doodad that makes weird assumptions about its environment, which might one day no longer be true even in that environment, to me.

Can anyone shed any further light on that crazy usage restriction?

12y agoHN ↗

What it actually means is that it needs the various XDG basedir variables to be set, which they sometimes aren't in a non-desktop session (this is becoming less common).

http://standards.freedesktop.org/basedir-spec/basedir-spec-l...

xdg-mime merely looks at the shared-mime-info db, processes files accordingly and spits out the result.

Also, I did not actually say you should use xdg-mime; I said you should use the shared-mime-info database. xdg-mime is a (very crappy) interface for it, but using an xdg library is a lot, lot more efficient.

12y agoHN ↗

Thanks for the reply.

If not xdg-mime(1) then, do you know of another file(1)-like command-line app which does use the shared-mime-info database?

12y agoHN ↗

For use on the command line, feel free to use xdg-mime (it does not just do mime types, it also does associations with them which means you can view and change associations between file types from it). I don't know of any other tool like it although I was working on one in python (but it's not production ready).

12y agoHN ↗

Crazy... wouldn't it make sense to combine both DBs?

12y agoHN ↗

No, the databases are very different. `file` can do some very advanced file processing, while xdg-mime has a regex-ish syntax for scanning part of the file.

More to the point though, the xdg database is extensible. While `file` requires playing with the source.

12y agoHN ↗

But then one could combine the good parts of both? Very advanced file processing + extensible database, sounds awesome. ;)

I mean seriously, once I wrote a simple web app in Go and the content-type for static serving was determined via file. (It's just so easy.) But nobody in the world wants to have Desktop stuff installed on her server.

12y agoHN ↗

The databases are not combinable, that doesn't mean they don't look at each others' improvements. File keeps an eye on new formats in s-m-i and vice versa.

12y agoHN ↗

That's the least one can do when working with Copy&Paste ;)

12y agoHN ↗

Not sure I agree with this recommendation... shared-mime-info database usually trails file(1) database by several years. Case in point: pcap-ng file format was added to file(1) in 2011; was added to mime-info database in 2013.

Also, file --mime FILENAME gets you the mime type.

12y agoHN ↗

The file database is not extensible. This means it will not recognize file formats specific to your setup, etc. With the shared-mime-info database, you can have user-wide and system-wide extensions to the database, so installed programs can (and do) install their own mime types. If you need to deal with, for example, a custom image or archive format you can also set that up.

Additionally, the shared-mime-info database is much better curated than the file mime database; file has a lot of wrong mime types (I have gotten a dozen or so fixed so far). If there are file types that are missing from shared-mime-info, please report them on https://bugs.freedesktop.org/ (there are guidelines for good mime type reports, follow those and you can get a fix merged in very fast).

12y agoHN ↗

This one's great! Thanks for sharing. Makes you wish there was a real cause though instead of speculation.

12y agoHN ↗

Whoa that's pretty crazy. It seems the pattern is a 6 being mistaken for an 8 but surprised Xerox didn't release the upgrade when they discovered the issue. Why wait for someone else to call you out on it?

12y agoHN ↗

I used to have a very simple HTML email that would cause Outlook 97 to corrupt its PST and need manual rebuilding.