How to get the New Windows Copilot on any device

Windows 11 24H2 has a new Copilot interface, designed to be used in a larger window instead of a side panel on your desktop. You can actually use it on any device or web browser, though.Microsoft already has a web app version of its Copilot AI chat assistant, available at copilot.microsoft.com in the web browser.

The custom web app more closely mirrors the Fluent UI used in other Windows 11 applications. Your previous conversations are listed in the left sidebar, which collapses when you shrink the window. The new Windows Copilot feels a lot more polished than the standard web app, with more fluid animations. It’s not clear why Microsoft won’t just make the new Windows Copilot the regular Copilot web app, but maybe that will happen eventually.

There’s both a light and dark mode in the Copilot web app, as well as the option to synchronize with your device’s current theme. You can click the profile icon at the top-right corner and select ‘Appearance’ to change the visual theme.

[mai mult...]

What is a TS File?

While using your computer, you might run into a file with a .TS extension. Unlike most extensions that represent a specific kind of data, a file with “.ts” extension can be either a video file or a TypeScript code file. So, what’s the difference between them, and what’s a TS file anyway?

What Is a Transport Stream (TS) File?

The meaning of a TS file depends on what kind of content it holds. For instance, if you come across a TS file while working with videos and DVDs, then it stands for Transport Stream. These files use the MPEG-2 compression algorithm to achieve maximum efficiency and compatibility across various media types, including internet streaming and broadcasting.

You’ll commonly find these files on DVDs, Blu-ray discs, and digital broadcasting systems like DVB, ATSC, and IPTV. The data stored in these files (video, audio, subtitles, etc.) is broken down into small chunks. You’ll have a tiny piece of video, followed by a tiny piece of audio, and then maybe a subtitle chunk. Each of these chunks carries some extra data that helps detect errors within them. This data also tells each chunk when it’s supposed to play.

This way of representing data includes extra information that isn’t useful for storage but has advantages for broadcasting. Since all the data is broken into small pieces, you can send each piece over a connection in real time. And if there’s any error in a chunk, the receiver can use the extra data present in each chunk to detect the error and skip over it.

The most important thing to note is that the receiver doesn’t need the entire stream. It can easily start from anywhere in the middle of the transmission, assemble the data from that point on, and use it in real time.

[mai mult...]

How to improve your coding with ChatGPT

Is ChatGPT Any Good for Coding?

ChatGPT can be powerful as a tool. It can develop more efficient methods of doing things and even give you a heads-up when needed. However, it’s not a human, and you should be wary about what it tells you to do. ChatGPT can hallucinate vividly and sometimes has trouble recalling things that it just gave you. This is even worse when considering using two approaches to get the same result. It isn’t intelligent enough to know which one of the options you choose to go with, so you’ll have to “label” it.

GPT can serve as a “code companion” to developers. Many of us know that sometimes, we miss tiny details, and GPT can help keep us aware of those details. If you’re a new coder, you can ask GPT questions to help you understand complex concepts and break those down into more digestible bits. More experienced coders can use GPT to look up things they might have spent hours scouring forums. I remember learning a new way to do a wave-function collapse algorithm from ChatGPT after spending almost eleven hours (!) looking for a simple explanation online. GPT is also really great at giving you code snippets. For example, the prompt, “How do I Sort an Array in Python,” provided us the following code block:

“How can I implement a binary search in Java?” gives you this:

When prompting ChatGPT for snippets like these, be succinct. Don’t combine more than one idea at a time, and specify the language.

[mai mult...]