560 blogs tracked4,950 posts indexed

Line

We track 15 posts about Line from 10 engineering blogs. Most active: The Daily WTF, Oona Räisänen, The Daily WTF. Latest post: Oct 5, 2026.

Raw tag behind this topic:line

Companies writing about Line

Recent posts

  • Quiz: How to Launch an HTTP Server in One Line of Python Code (opens on the source site)

    Real Python ·

    In this quiz, you’ll test your understanding of How to Launch an HTTP Server in One Line of Python Code. By working through this quiz, you’ll revisit how to start Python’s http.server from the command line, bind it to an address and port, and choose which directory it shares. You’ll also check your knowledge of running CGI scripts, building a handler on top of BaseHTTPRequestHandler, serving over HTTPS, and knowing when to keep this server out of production. [ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet Python Trick delivered to your inbox every couple of days. >> Click…

  • Representative Line: Unique Testing (opens on the source site)

    The Daily WTF ·

    Nikolai M's team had a flaky CI/CD build. About 0.5% of the time, one of their tests would fail: frequent enough to be annoying, but not so frequent that it motivated management to assign anybody to investigate. Nikolai eventually dug in, taking the initiative. Microsoft's implementation of UUIDs calls them GUIDs. The GUID is, per the docs, really just a wrapper around UUID algorithms, and supports a variety of different UUID variants. I'm sure at some historical point, this wasnt't true, and Microsoft had some weird internal algorithm. That's not really here nor there, but the test that was…

  • CodeSOD: Extremely One Line (opens on the source site)

    The Daily WTF ·

    Autoformatting your code is a standard thing to do these days. And in those days past, if we're being honest. There's no excuse to not use some kind of autoformatter. Whether you configure your editor to do it or are a weirdo like me who runs a formatter from the CLI as a build step, you've got an easy way to format your code so it looks neat and readable. And some IDEs, like Visual Studio, are pretty insistent about doing this for you. Which makes today's code sample a bit more perplexing. This comes from an ancient ASP .Net application that Austin has the misfortune to work with: protected…

  • 121+ Cyber Monday email subject line examples in 2026 (opens on the source site)

    Twilio ·

    Find hundreds of Cyber Monday email subject lines with templates and examples to inspire your email campaigns this shopping season.

  • Representative Line: So Much Room (opens on the source site)

    The Daily WTF ·

    Today's representative comment ran out of room. int maxLen = getColumnSize(session, "audit", "text_value1") - 16; // Leave some room for No, it isn't continued on the next line and just got trimmed out, except perhaps by a careless merge. This is the entire comment. Clearly, written by David Chase, the creator of "The Sopranos". There are so many things we might be leaving room for. We could leave some room for dessert. Leave some room for activities. Leave some room for the holy spirit. Leave some room for improvisation. [Advertisement] ProGet’s got you covered with security and access…

  • Quiz: Rock, Paper, Scissors With Python: A Command Line Game (opens on the source site)

    Real Python ·

    Check your understanding of building a command line rock paper scissors game in Python, from player input and loops to enums and dictionary rules.

  • Representative Line: Both Ways Bug Me (opens on the source site)

    The Daily WTF ·

    There are many cases where some sort of debugging block sneaks by, especially cases where we see preprocessors or templates working, which leave us with nonsense like if (true == false) running in production. But Codemonkey found a new twist on that sort of thing, in a SQL query being run in production. WHERE (some conditions) AND (1 = 0 OR (1 = 1 AND (other conditions))) The OR means that by twiddling the first equality check, we can toggle "always return rows" with "return based on condition". Toggling the second we can make it "never return rows", which I'm not certain is actually useful.…

  • Representative Line: We All Register This (opens on the source site)

    The Daily WTF ·

    Today's maybe more of a "representative data sheet entry" than anything else. Every developer has the experience of reading the documentation. If you've been at this for some time, you've probably read bad documentation. Documentation that is incomplete, inaccurate, or otherwise flawed. Or, my personal favorite, the brief time where Oracle tried to put all of its documentation into an Adobe Flex site (aka, a Flash application, not a real web app). That one had fun bonus features, like "breaking copy and paste" and "preventing you from deep linking to a piece of the documentation". But…

  • One line of Python, and a 3× drop in p99 (opens on the source site)

    Soundcloud ·

    We removed one log statement from a service’s hot path this week. Its 99th-percentile response latency fell from a steady to , and CPU…

  • Opening Sublime Text from the command line (opens on the source site)

    Rob Allen ·

    I nearly always open Sublime Text from the command line using subl and have specific requirements for when it should open a new window or re-use one. If I'm opening a directory, then I would like it to re-use the same window if I have previously opened that directory. However if I open a random file, I never want that file in the last directory window as it's unrelated. To do this I wrote a… continue reading.

  • Offline command line translation with TranslateGemma + Ollama (opens on the source site)

    Evan Hahn ·

    I wrote a simple script that translates text at the command line, completely offline. Here’s an example of how it works on my computer: echo '¿Cómo estás?' | translate # => How are you? It combines a few tools: TranslateGemma, a special-purpose language model for translation Ollama, a tool for running language models locally Efficient Language Detector, a library that detects the language for a piece of text Here’s the pseudocode of how it works: source = read_stdin() # Uses Efficient Language Detector source_language = detect_language(source) # Uses JavaScript's `navigator.language`…

  • CSS fix to prevent orphan icons dropping to a new line (opens on the source site)

    Stanko Tadić ·

    When an HTML element becomes too narrow, its content starts to wrap into multiple lines. This is intended behavior and works well in many cases. However, for short text, it doesn't look great when the last word or icon drops to the next line, becoming an orphan. For example, you might see something like this: Click here for more info It doesn't look great when the icon is left alone on its own row. Luckily, there's a simple CSS solution. Solution # Only thing we need to add is a single line of CSS: text-wrap: balance; This property tells the browser to wrap the text in a way that best…

  • Animated line drawings with OpenCV (opens on the source site)

    Oona Räisänen ·

    OpenCV is a pretty versatile C++ computer vision library. Because I use it every day it has also become my go-to tool for creating simple animations at pixel level, for fun, and saving them as video files. This is not one of its core functions but happens to be possible using its GUI drawing tools. Below we'll take a look at some video art I wrote for a music project. It goes a bit further than just line drawings but the rest is pretty much just flavouring. As you'll see, creating images in OpenCV has a lot in common with how you would work with layers and filters in an image editor like GIMP…

  • AWS Command line: S3 content from stdin or to stdout (opens on the source site)

    Luciano Mammino ·

    The AWS CLI s3 cp command supports streaming content to and from S3 using stdin/stdout with the - argument. This enables powerful pipelines without intermediary files.

  • Animated line drawings with OpenCV (opens on the source site)

    Oona Räisänen ·

    OpenCV is a pretty versatile C++ computer vision library. Because I use it every day it has also become my go-to tool for creating simple animations at pixel level, for fun, and saving them as video files. This is not one of its core functions but happens to be possible using its GUI drawing tools. Below we'll take a look at some video art I wrote for a music project. It goes a bit further than just line drawings but the rest is pretty much just flavouring. As you'll see, creating images in OpenCV has a lot in common with how you would work with layers and filters in an image editor like GIMP…

Related topics

This page is generated automatically from the engineering blogs we follow. Every post links to its source, where it was published. See all sources.

Privacy choices

Reading never requires analytics. These choices last 90 days on this browser.

Essential sign-in and security storage always stays on. Read the privacy notice.